Tom Tromey
e9c00e62d0
More for PR libgcj/11737:
...
* java/io/ObjectInputStream.java (processResolution): Use
getMethod.
(getMethod): Make method accessible.
(getField): Make field accessible.
(setBooleanField): Don't call setAccessible here.
(setByteField, setCharField, setDoubleField, setFloatField,
setIntField, setLongField, setShortField, setObjectField):
Likewise.
(callReadMethod): Don't check whether method is null. Catch
NoSuchMethodException.
* java/io/ObjectOutputStream.java (callWriteMethod): Initialize
cause on thrown exceptions.
From-SVN: r70038
2003-08-01 03:34:52 +00:00
Stepan Koltsov
e14c33e5af
re PR libgcj/11728 (HashMap serialization does not work)
...
2003-07-31 Stepan Koltsov <yozh@mx1.ru>
Fix for PR libgcj/11728:
From-SVN: r70037
2003-08-01 03:32:42 +00:00
Matt Kraai
5bea01beb9
* texi2pod.pl: Remove extra line.
...
From-SVN: r70036
2003-08-01 03:10:56 +00:00
Tom Tromey
f7fe97da36
re PR libgcj/11737 (java.io.ObjectOutputStream.writeObject does not work with HashMap)
...
Fix for PR libgcj/11737:
* java/io/ObjectOutputStream.java (getMethod): Make method
accessible.
(getField): Likewise.
(writeObject): Use getMethod.
Import PrivilegedAction and AccessController.
(callWriteMethod): Don't check whether m is null. Catch
NoSuchMethodException.
From-SVN: r70035
2003-08-01 03:02:00 +00:00
Kaveh R. Ghazi
3c260e1d97
builtin-types.def: Use LONGDOUBLE' instead of
LONG_DOUBLE' throughout.
...
* builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
throughout.
* builtins.def: Likewise.
From-SVN: r70034
2003-08-01 02:11:17 +00:00
Phil Edwards
b3f2a0325d
libstdc++-v3-dg.exp: Rename...
...
2003-07-31 Phil Edwards <pme@gcc.gnu.org>
* testsuite/lib/libstdc++-v3-dg.exp: Rename...
* testsuite/lib/libstdc++-v3.exp: ...to this.
* testsuite/libstdc++-v3.dg/dg.exp: No special case needed now.
From-SVN: r70033
2003-08-01 00:49:14 +00:00
Jason Merrill
57ac311fb9
tweak
...
From-SVN: r70032
2003-07-31 20:38:56 -04:00
Jason Merrill
4020919528
Makefile.in (bubblestrap): Don't require a previous full bootstrap.
...
* Makefile.in (bubblestrap): Don't require a previous full
bootstrap.
* expr.c (mostly_zeros_p): No longer static.
* tree.h: Declare it.
* stmt.c (resolve_asm_operand_names): Don't copy the pattern
unless we need to do substitutions.
From-SVN: r70031
2003-07-31 20:37:40 -04:00
Roger Sayle
2598550fa6
fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and pow(x,c)*x as pow(x,c+1) for constant values c.
...
* fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
as pow(x,2.0) when the latter will be expanded back into x*x.
(fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
* builtins.c (expand_builtin_pow): Ignore flag_errno_math as
pow can never set errno when used with an integer exponent.
Always use expand_powi when exponent is -1, 0, 1 or 2.
(fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
as 1.0/(x*x). This avoids unbounded recursion as we now prefer
the pow forms of these expressions.
* gcc.dg/builtins-27.c: New test case.
From-SVN: r70030
2003-08-01 00:36:53 +00:00
GCC Administrator
e3da5a9a50
Daily bump.
...
From-SVN: r70028
2003-08-01 00:16:06 +00:00
Geoffrey Keating
a8ee6e2dc9
Makefile.tpl (libsubdir): Use gcc instead of gcc-lib.
...
2003-07-31 Geoffrey Keating <geoffk@apple.com>
* Makefile.tpl (libsubdir): Use gcc instead of gcc-lib.
* Makefine.in: Update.
Index: gcc/ChangeLog
2003-07-31 Geoffrey Keating <geoffk@apple.com>
* Makefile.in (libexecdir): New.
(libsubdir): Use gcc instead of gcc-lib.
(libexecsubdir): New.
(ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
(DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
gcc-lib.
(installdirs): Make libexecsubdir.
(install-common): Put executables in libexecsubdir.
(itoolsdir): Use libexecsubdir.
(itoolsdatadir): New.
(install-mkheaders): Separate data files and executables.
(install-collect2): Put executables in libexecsubdir.
(uninstall): Remove libexecsubdir.
* mkheaders.in: Update for new arrangement of files.
(libexecdir): New.
(libexecsubdir): New.
(itoolsdir): Use libexecsubdir.
(itoolsdatadir): New.
* gcc.c (gcc_libexec_prefix): New.
(STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
(standard_exec_prefix_1): Use libexec.
(standard_exec_prefix_2): New.
(standard_libexec_prefix): New.
(process_command): Update for new arrangement of files. Compute
gcc_libexec_prefix. Update for change from gcc-lib to gcc.
From-SVN: r70024
2003-07-31 23:36:43 +00:00
Nathanael Nerode
631099c959
inclhack.def (stdio_va_list): Avoid bogus replacement which triggers on Interix.
...
* inclhack.def (stdio_va_list): Avoid bogus replacement which
triggers on Interix.
* fixincl.x: Regenerate.
From-SVN: r70023
2003-07-31 23:33:08 +00:00
Jakub Jelinek
a132b6a818
i386.c (legitimate_pic_address_disp_p): Disallow TLS SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
...
* config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
* gcc.dg/tls/opt-7.c: New test.
From-SVN: r70022
2003-08-01 00:54:30 +02:00
Richard Kenner
d759e96dc1
* dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): Fix error.
...
From-SVN: r70019
2003-07-31 18:26:19 -04:00
Doug Gregor
e64a227a8d
Tests for user specialization of standard containers.
...
From-SVN: r70018
2003-07-31 22:23:38 +00:00
Richard Kenner
c67b2a58d8
* dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
...
From-SVN: r70013
2003-07-31 17:31:24 -04:00
Per Bothner
40e941afc1
opts.c (in_fnames, [...]): Moved here from c-opts.
...
* opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
(add_input_filename): New function.
(handle_options): Call add_input_filename directly instead of
with a lang hook.
* opts.h (in_fnames, num_in_fnames): Moved here.
(add_input_filename): Declare.
* c-decl.c: Need to #include opts.h.
* Makefile.in (c-decl.o): Also depends on opts.h.
* c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
(c_common_handle_filename): Replaced by add_input_filename.
* c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
Remove.
* langhooks.h (struct lang_hooks): Remove handle_filename hook.
* langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
(LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
* c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
From-SVN: r70012
2003-07-31 12:26:17 -07:00
Benjamin Kosnik
17472bb623
Reshuffle 23_containers testsuite.
...
2003-07-31 Benjamin Kosnik <bkoz@redhat.com>
Reshuffle 23_containers testsuite.
* 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
vector_resize.cc: Split into...
* 23_containers/bitset/cons/1.cc: New.
* 23_containers/bitset/cons/6282.cc: New.
* 23_containers/bitset/count/6124.cc: New.
* 23_containers/bitset/operations/1.cc: New.
* 23_containers/bitset/operations/2.cc: New.
* 23_containers/bitset/test/1.cc: New.
* 23_containers/bitset/to_ulong/1.cc: New.
* 23_containers/deque/cons/1.cc: New.
* 23_containers/deque/cons/2.cc: New.
* 23_containers/deque/operators/1.cc: New.
* 23_containers/list/capacity/1.cc: New.
* 23_containers/list/cons/1.cc: New.
* 23_containers/list/cons/2.cc: New.
* 23_containers/list/cons/3.cc: New.
* 23_containers/list/cons/4.cc: New.
* 23_containers/list/cons/5.cc: New.
* 23_containers/list/cons/6.cc: New.
* 23_containers/list/cons/7.cc: New.
* 23_containers/list/cons/8.cc: New.
* 23_containers/list/cons/9.cc: New.
* 23_containers/list/modifiers/1.cc: New.
* 23_containers/list/modifiers/2.cc: New.
* 23_containers/list/modifiers/3.cc: New.
* 23_containers/list/operators/1.cc: New.
* 23_containers/list/operators/2.cc: New.
* 23_containers/list/operators/3.cc: New.
* 23_containers/list/operators/4.cc: New.
* 23_containers/map/insert/1.cc: New.
* 23_containers/map/operators/1.cc: New.
* 23_containers/map/operators/1_neg.cc: New.
* 23_containers/multiset/insert/1.cc: New.
* 23_containers/priority_queue/members/7161.cc: New.
* 23_containers/queue/members/7157.cc: New.
* 23_containers/set/operators/1_neg.cc: New.
* 23_containers/stack/members/7158.cc: New.
* 23_containers/vector/bool/1.cc: New.
* 23_containers/vector/bool/6886.cc: New.
* 23_containers/vector/capacity/1.cc: New.
* 23_containers/vector/capacity/2.cc: New.
* 23_containers/vector/capacity/8230.cc: New.
* 23_containers/vector/cons/1.cc: New.
* 23_containers/vector/cons/2.cc: New.
* 23_containers/vector/cons/3.cc: New.
* 23_containers/vector/cons/4.cc: New.
* 23_containers/vector/cons/6513.cc: New.
* 23_containers/vector/element_access/1.cc: New.
* 23_containers/vector/modifiers/1.cc: New.
* 23_containers/vector/modifiers/2.cc: New.
* 23_containers/vector/resize/1.cc: New.
From-SVN: r70011
2003-07-31 18:48:48 +00:00
Zdenek Dvorak
9143c6b76b
combine.c (try_combine): Set JUMP_LABEL for newly created unconditional jump.
...
* combine.c (try_combine): Set JUMP_LABEL for newly created
unconditional jump.
From-SVN: r70010
2003-07-31 18:37:23 +00:00
Zdenek Dvorak
b7de586461
* fold-const.c (fold): Fold some comparisons of bit operations.
...
From-SVN: r70009
2003-07-31 18:29:34 +00:00
Andreas Tobler
049d2251b8
btest-gcc.sh: Add make check-target-libjava.
...
2003-07-31 Andreas Tobler <a.tobler@schweiz.ch>
* btest-gcc.sh: Add make check-target-libjava.
From-SVN: r70008
2003-07-31 20:10:10 +02:00
Andrew Pinski
5011c2ca46
crash18.C: Remove.
...
2003-07-31 Andrew Pinski <pinskia@physics.uc.edu>
* g++.old-deja/g++.other/crash18.C: Remove.
From-SVN: r70007
2003-07-31 11:06:44 -07:00
Jan Hubicka
fdacb904ee
cgraph.c (create_edge): Fix typo.
...
* cgraph.c (create_edge): Fix typo.
* i386.c (pic_symbolic_operand): Reorder tests.
From-SVN: r70006
2003-07-31 17:50:54 +00:00
Tom Tromey
46b6ccc8fc
Arc2D.java (getBounds2D): Implement.
...
* java/awt/geom/Arc2D.java (getBounds2D): Implement.
(containsAngle): Likewise.
(getStartPoint): Rewrote.
(getEndPoint): Likewise.
(setAngleStart(Point2D)): Likewise.
From-SVN: r70002
2003-07-31 15:57:03 +00:00
Nathan Sidwell
8100063ee7
gcov.texi (Invoking Gcov): Describe output name mangling more fully.
...
* doc/gcov.texi (Invoking Gcov): Describe output name mangling
more fully.
(Gcov Data Files): Update.
From-SVN: r70001
2003-07-31 13:39:44 +00:00
Rainer Orth
515aab7cef
pthread1.cc: Add alpha*-*-osf* to dg-do run, dg-options.
...
* testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
dg-options.
* testsuite/thread/pthread2.cc: Likewise.
* testsuite/thread/pthread3.cc: Likewise.
* testsuite/thread/pthread4.cc: Likewise.
* testsuite/thread/pthread5.cc: Likewise.
* testsuite/thread/pthread6.cc: Likewise.
* testsuite/thread/pthread7-rope.cc: Likewise.
From-SVN: r69999
2003-07-31 12:03:59 +00:00
Rainer Orth
2a4e8ebc13
re PR bootstrap/9330 ([alpha-osf]small alphaev56-dec-osf5.1 --enable-threads=posix problem)
...
* config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
default.
* gthr-posix.c: New file.
* gthr-posix.h: Define _REENTRANT if missing.
Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
* config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
by gthr-posix.o.
* config/alpha/t-osf-pthread: New file.
* fixinc/inclhack.def (alpha_pthread): New fix.
* fixinc/fixincl.x: Regenerate.
* fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
* doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
warning.
Fixes PR bootstrap/9330.
From-SVN: r69998
2003-07-31 12:01:07 +00:00
Roger Sayle
620a329bbb
configure.in: Add new THREADCXXFLAGS variable.
...
* configure.in: Add new THREADCXXFLAGS variable.
Handle POSIX threads on alpha*-dec-osf*.
* configure: Regenerate.
* Makefile.am: Add THREADCXXFLAGS to AM_CXXFLAGS.
* Makefile.in: Regenerate.
Co-Authored-By: Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
From-SVN: r69997
2003-07-31 11:55:06 +00:00
Rainer Orth
689a714d9f
configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5* without GNU ld.
...
* configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
without GNU ld.
Update comment.
* configure: Regenerate.
From-SVN: r69996
2003-07-31 11:49:56 +00:00
Nathan Sidwell
ffd49b1995
pt.c (coerce_template_parms): Refactor.
...
cp:
* pt.c (coerce_template_parms): Refactor.
(fn_type_unification): Increment processing_template_decl when
tsubsting an incomplete set of explicit args.
testsuite:
* g++.dg/template/explicit3.C: New.
* g++.dg/template/explicit4.C: New.
* g++.dg/template/explicit5.C: New.
From-SVN: r69995
2003-07-31 09:16:31 +00:00
Nathan Sidwell
fb5ce3c93a
re PR c++/11347 (Error on valid expression in default value for int argument to inner template.)
...
cp:
PR c++/11347
* pt.c (instantiate_class_template): Increment
processing_template_decl around the tsubst of a template member
class.
(tsubst_qualified_id): Assert we do not have a dependent scope.
testsuite:
PR c++/11347
* g++.dg/template/memtmpl1.C: New.
From-SVN: r69994
2003-07-31 09:10:58 +00:00
Nathan Sidwell
8c6ab2db94
pt.c (coerce_template_template_parms, [...]): Reformat.
...
* pt.c (coerce_template_template_parms, lookup_template_class,
can_complete_type_without_circularity, instantiate_class_template,
tsubst_decl, unify): Reformat.
From-SVN: r69993
2003-07-31 09:06:26 +00:00
Vladimir Makarov
caf819ae17
Prevent interblock move of CC0 setter.
...
From-SVN: r69992
2003-07-31 07:56:36 +00:00
Kaveh R. Ghazi
0fd4ac72a2
* com.c (ffecom_init_0): Use `dconsthalf'.
...
From-SVN: r69991
2003-07-31 05:49:14 +00:00
Danny Smith
822ed7f806
gc.h (GC_CreateThread): Declare with WINAPI attribute.
...
* include/gc.h (GC_CreateThread): Declare with WINAPI
attribute.
* win32_threads.c (GC_CreateThread): Make definitions consistent
with declaration. Cast &thread_table[i].handle to PHANDLE
in call to DuplicateHandle
(thread_start): Declare as static.
From-SVN: r69990
2003-07-31 04:52:36 +00:00
Roger Sayle
1aa0a5f67e
* builtins.def: Alphabetize.
...
From-SVN: r69989
2003-07-31 03:16:24 +00:00
Matt Kraai
4bd0bee99e
c-tree.texi: Normalize spellings of "lowercase" and "uppercase".
...
* doc/c-tree.texi: Normalize spellings of "lowercase" and
"uppercase".
* doc/cpp.texi: Likewise.
* doc/md.texi: Likewise.
* doc/rtl.texi: Likewise.
* doc/tm.texi: Likewise.
From-SVN: r69988
2003-07-31 01:32:24 +00:00
Matt Kraai
7f02cb5ccd
* objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
...
(objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
of cc1obj.
From-SVN: r69987
2003-07-31 00:57:25 +00:00
Chris Demetriou
498887c8a9
mips.h (SIZE_TYPE, [...]): Undef these macros before defining them.
...
2003-07-30 Chris Demetriou <cgd@broadcom.com>
* config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
macros before defining them.
From-SVN: r69985
2003-07-30 17:46:45 -07:00
GCC Administrator
a57ee9cd5b
Daily bump.
...
From-SVN: r69981
2003-07-31 00:16:08 +00:00
Jan Hubicka
9faa149ca3
decl2.c (maybe_make_one_only): Use mark_referenced.
...
* decl2.c (maybe_make_one_only): Use mark_referenced.
* method.c (use_thunk): Likewsie.
From-SVN: r69979
2003-07-30 23:47:59 +00:00
Ulrich Weigand
10bbf137cf
s390.md (UNSPEC_ROUND, [...]): New constants.
...
* config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
UNSPECV_BLOCKAGE): New constants.
("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
"*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
"fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
(all insns and expanders): Write output control string as brace block
where appropriate. Remove \-escapes for doublequote characters.
From-SVN: r69978
2003-07-30 23:21:24 +00:00
Jan Hubicka
3f2eae23b3
* gcse.c (insert_store): Fix typo in previous patch.
...
From-SVN: r69977
2003-07-30 23:05:43 +00:00
Andrew Pinski
675eab74a0
re PR target/11565 (gcc.dg/i386-387-1.c test flawed due to assumptions made about arch)
...
2003-07-29 Andrew Pinski <pinskia@physics.uc.edu>
PR target/11565
* gcc.dg/i386-387-1.c (dg-options): Add -march=i386.
* gcc.dg/i386-387-5.c (dg-options): Likewise.
From-SVN: r69974
2003-07-30 15:48:45 -07:00
Neil Booth
f0babc9a81
* cppfiles.c (stack_file, open_file_failed): Use path for deps.
...
From-SVN: r69973
2003-07-30 22:30:40 +00:00
Andi Kleen
edeac5de33
* loop.c (check_dbra_loop): Allow LTU in the loop condition.
...
From-SVN: r69971
2003-07-30 13:28:45 -07:00
Zdenek Dvorak
6e885ee3ff
combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
...
* combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
* gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
GCOV_N_VALUE_COUNTERS): New.
* profile.c (compute_value_histograms): New static function.
(branch_prob): Read back the value histograms.
* rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
* rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
* value-prof.c: Add comment on reading the profile.
* value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
* doc/invoke.texi (-fprofile-values): Document behavior with
-fbranch-probabilities.
From-SVN: r69969
2003-07-30 19:23:34 +00:00
Andreas Tobler
fd9b4d64fb
dyn_load.c: Define __private_extern__ to match Apple's system header.
...
2003-07-30 Andreas Tobler <a.tobler@schweiz.ch>
* dyn_load.c: Define __private_extern__ to match Apple's system
header.
From-SVN: r69967
2003-07-30 19:42:28 +02:00
David Edelsohn
0e6cb2cb03
* longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
...
From-SVN: r69966
2003-07-30 13:40:17 -04:00
Ulrich Weigand
656ec3b11f
s390.h (EH_RETURN_HANDLER_RTX): Compute offset symbolically.
...
* config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
symbolically.
From-SVN: r69965
2003-07-30 17:38:14 +00:00