Mark Mitchell
cd4e8331bd
re PR c++/4884 (g++ 3.0.2 problem with -fvolatile)
...
* g++.dg/init/new2.C: New test.
PR c++/4884
* call.c (build_op_delete_call): Allow for the fact the placement
may be a COMPOUND_EXPR.
From-SVN: r51466
2002-03-27 19:16:36 +00:00
Neil Booth
c9d892a83f
c-common.c (c_expand_expr): Fix prototype.
...
* c-common.c (c_expand_expr): Fix prototype.
* c-common.h (c_expand_expr): Always declare, update.
* c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
* c-objc-common.c (c_objc_common_init): No global hook.
* expr.c (expand_expr): Use langhook.
* expr.h (enum expand_modifier): Conditionally declare.
* langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
(LANG_HOOKS_INITIALIZER): Update.
* langhooks.c (lhd_expand_expr): New.
* langhooks.h (struct lang_hooks): New hook.
* toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
(lang_independent_init): Don't default hook.
ada:
* misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
(gnat_init): Don't set hook.
(gnat_expand_expr): Fix prototype.
cp:
* cp-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
* cp-tree.h (init_cplus_expand): Remove.
(cxx_expand_expr): New.
* expr.c (cplus_expand_expr): Rename cxx_expand_expr,
fix prototype.
(init_cplus_expand): Remove.
* lex.c (cxx_init): Don't call init_cplus_expand.
java:
* expr.c (java_lang_expand_expr): Rename java_expand_expr,
fix prototype.
* java-tree.h (java_lang_expand_expr): Similarly.
* lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
(java_init): Don't set hook.
objc:
* objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
From-SVN: r51462
2002-03-27 18:28:06 +00:00
Mark Mitchell
2b613c6ac3
* dyn-string.c: Add libgcc exception to copyright notice.
...
From-SVN: r51461
2002-03-27 18:26:18 +00:00
Andrew Haley
3cb2054594
dwarf2-signal.h (MAKE_THROW_FRAME): Add for IA-64.
...
2002-03-25 Andrew Haley <aph@cambridge.redhat.com>, Hans Boehm <Hans_Boehm@hp.com>
* include/dwarf2-signal.h (MAKE_THROW_FRAME): Add for IA-64.
(INIT_SEGV, INIT_FPE): Add versions that use __libc_sigaction
instead of syscall on IA-64.
Add FIXME comment.
From-SVN: r51459
2002-03-27 17:08:47 +00:00
Anthony Green
5cb27a4697
libgcj.spec.in: Add CHECKREFSPEC.
...
2002-03-27 Anthony Green <green@redhat.com>
* libgcj.spec.in: Add CHECKREFSPEC.
* configure.in: Ditto.
* configure.host: Ditto. Check references for xscale-elf.
* configure: Rebuilt.
From-SVN: r51457
2002-03-27 16:41:44 +00:00
Anthony Green
f5cfade6fa
InvokeReturn.java: Modify test for targets which do not yet support reflection.
...
2002-03-27 Anthony Green <green@redhat.com>
* libjava.lang/InvokeReturn.java: Modify test for targets
which do not yet support reflection.
From-SVN: r51455
2002-03-27 16:31:18 +00:00
Anthony Green
fe4dabf80c
jni.exp (gcj_jni_run): Fix cross build test.
...
2002-03-27 Anthony Green <green@redhat.com>
* libjava.jni/jni.exp (gcj_jni_run): Fix cross build test.
From-SVN: r51453
2002-03-27 16:29:04 +00:00
Anthony Green
30cc872274
libjava.exp: Add the wrapper link options only when we're linking.
...
2002-03-27 Anthony Green <green@redhat.com>
* lib/libjava.exp: Add the wrapper link options only when we're
linking.
From-SVN: r51451
2002-03-27 16:27:06 +00:00
Richard Henderson
6dad5a5631
re PR target/6054 (GCC 3.1 for ia64 fails to restore gp after indirect call in Linux kernel)
...
PR target/6054
* config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
TARGET_CONST_GP. Simplify conditions.
* gcc.dg/20020326-1.c: New.
From-SVN: r51444
2002-03-27 02:34:14 -08:00
Richard Henderson
59f9687974
freebsd.h, [...] (LOCAL_LABEL_PREFIX): Define.
...
* config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
* gcc.dg/debug/20020327-1.c: New.
From-SVN: r51443
2002-03-27 02:30:45 -08:00
Danny Smith
f3f1190dd9
cygwin.h (TARGET_DLL, [...]): Remove unused switches.
...
* config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
(MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
Remove unnecessary masks.
(MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
(SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
-mwindows, -mdll switches and their negations.
From-SVN: r51440
2002-03-27 09:51:53 +00:00
Bryce McKinlay
058330951d
re PR java/5850 (resolving inherited member variables with same name works poorly)
...
Fix for PR java/5850:
* parse.y (lookup_field_wrapper): Call itself recursively for enclosing
context if field was not found in the current scope.
* expr.c (lookup_field): Don't look in enclosing contexts.
From-SVN: r51438
2002-03-27 08:27:27 +00:00
GCC Administrator
473aef78b4
Daily bump.
...
From-SVN: r51437
2002-03-27 08:18:11 +00:00
Neil Booth
31c816cfbd
gcc-common.c (lang_mark_false_label_stack): Remove.
...
* gcc-common.c (lang_mark_false_label_stack): Remove.
* ggc.h (lang_mark_false_label_stack): Similarly.
ada:
* misc.c (ggc_p): Remove.
From-SVN: r51433
2002-03-27 07:30:52 +00:00
Benjamin Kosnik
3eb35fcfd4
c/: Guard with _CPP_.
...
2002-03-26 Benjamin Kosnik <bkoz@redhat.com>
* include/c/: Guard with _CPP_.
* include/c_std/: Same.
* include/Makefile.am: Fixup install, link routines for null
c_base_headers_extra scenarios.
* include/Makefile.in: Regerate.
From-SVN: r51431
2002-03-27 04:29:32 +00:00
Vladimir Makarov
aee8f532df
pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
...
* pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
* pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
or __rtems_ is defined.
From-SVN: r51430
2002-03-26 20:56:23 -07:00
Richard Henderson
1ef9531bf7
alpha.c (alpha_emit_set_const): Add a REG_EQUAL note if a non-trivial load was emitted.
...
* config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
if a non-trivial load was emitted.
(alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
in high+extra+low case.
From-SVN: r51428
2002-03-26 19:03:18 -08:00
Richard Henderson
62d3b526c6
* gcc.dg/pragma-re-2.c: Avoid empty source file warning.
...
From-SVN: r51426
2002-03-26 18:30:23 -08:00
Richard Henderson
300d40935c
* config.gcc (sparc*-solaris): Use float_format=sparc.
...
From-SVN: r51424
2002-03-26 18:24:28 -08:00
Richard Henderson
9a1d8b2d29
20020312-2.c: Don't test epilogue vs global register on sparc.
...
* gcc.dg/20020312-2.c: Don't test epilogue vs global register
on sparc.
From-SVN: r51422
2002-03-26 17:43:36 -08:00
Richard Henderson
6a3177b9fb
20001101-1.c: Add -mcpu=ultrasparc.
...
* gcc.dg/20001101-1.c: Add -mcpu=ultrasparc. Only run on
sparcv9 systems.
* gcc.dg/20001102-1.c: Likewise.
From-SVN: r51420
2002-03-26 17:23:35 -08:00
Richard Henderson
b3689904c1
sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
...
* config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
* config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
* config/sparc/linux.h, config/sparc/linux64.h: Likewise.
* config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
(WINT_TYPE_SIZE): Fix at 32.
From-SVN: r51418
2002-03-26 17:17:07 -08:00
H.J. Lu
cd862df851
config.table: Support --with-build-subdir.
...
2002-03-26 H.J. Lu (hjl@gnu.org )
* config.table: Support --with-build-subdir.
* configure.in: Likewise.
* configure: Rebuild.
From-SVN: r51416
2002-03-26 14:56:51 -08:00
Hans Boehm
d6220b3ad7
* include/dwarf2-signal.h: Temporarily back out last change.
...
From-SVN: r51415
2002-03-26 22:44:48 +00:00
Richard Henderson
1eefb6c149
toplev.c (rest_of_compilation): Delay emit_initial_value_sets until after eh landing pad generation.
...
* toplev.c (rest_of_compilation): Delay emit_initial_value_sets
until after eh landing pad generation.
* config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
* config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
From-SVN: r51411
2002-03-26 14:07:47 -08:00
Phil Edwards
dcce8b1d54
endif-pedantic1.c, [...]: New tests.
...
2002-03-26 Phil Edwards <pme@gcc.gnu.org>
* gcc.dg/cpp/endif-pedantic1.c,
gcc.dg/cpp/endif-pedantic2.c: New tests.
From-SVN: r51410
2002-03-26 21:48:40 +00:00
Richard Henderson
361ea006e5
* expr.h (ADD_PARM_SIZE): One more convert for INC.
...
From-SVN: r51409
2002-03-26 13:39:50 -08:00
Phil Edwards
1de38a8829
gcc.c (cpp_options): Preserve relative ordering of -pedantic and warning switches.
...
2002-03-26 Phil Edwards <pme@gcc.gnu.org>
* gcc.c (cpp_options): Preserve relative ordering of -pedantic
and warning switches.
(cc1_options): Likewise.
From-SVN: r51408
2002-03-26 21:38:40 +00:00
Hans Boehm
d7e60e95f8
linux.h (MD_FALLBACK_FRAME_STATE_FOR): Restore more of the signal context.
...
* config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
Restore more of the signal context. Set no_reg_stack_frame.
* config/ia64/unwind-ia64.c (unw_state_record):
Add no_reg_stack_frame, comments.
(uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
(uw_update_context): Adjust bsp when unwinding from leaf,
but not signal frame.
From-SVN: r51407
2002-03-26 21:27:12 +00:00
Geert Bosch
ef83161cd8
* prj-makr.ads, prj-makr.adb : New files.
...
From-SVN: r51406
2002-03-26 22:07:04 +01:00
Tom Tromey
1f3f6dadcb
mauve.exp (test_mauve): Use correct stderr redirection code.
...
* libjava.mauve/mauve.exp (test_mauve): Use correct stderr
redirection code.
From-SVN: r51405
2002-03-26 20:51:19 +00:00
David Edelsohn
7032923ba3
* config/rs6000/aix51.h (WCHAR_TYPE): Define.
...
From-SVN: r51402
2002-03-26 15:13:45 -05:00
Bob Wilson
8be562758e
* config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
...
From-SVN: r51400
2002-03-26 19:32:18 +00:00
Tom Tromey
c8c21a8cd0
re PR java/5942 (tree check failure when compiling Classpath with strictfp StrictMath class)
...
Fix for PR java/5942:
* parse.y (init_src_parse): Added sanity check.
* parse.h (struct parser_ctxt) [modifier_ctx]: Array has 12
elements, not 11.
From-SVN: r51398
2002-03-26 18:59:04 +00:00
Mark Mitchell
46ff504727
re PR c++/4884 (g++ 3.0.2 problem with -fvolatile)
...
PR c++/4884.
* init.c (build_new_1): Allow for the fact the result of
build_function_call may be a COMPOUND_EXPR.
* g++.dg/init/new1.C: New test.
From-SVN: r51396
2002-03-26 18:37:56 +00:00
Nathan Sidwell
6d4c57a0a4
re PR c++/5682 (ICE in build_secondary_vtable)
...
cp:
PR c++/5682
* cp-tree.h (BINFO_PRIMARY_P): Explain meaning better.
(dfs_skip_nonprimary_vbases_unmarkedp): Remove.
(dfs_skip_nonprimary_vbases_markedp): Remove.
* search.c (get_shared_vbase_if_not_primary): Remove.
(dfs_skip_nonprimary_vbases_unmarkedp): Remove.
(dfs_skip_nonprimary_vbases_markedp): Remove.
(dfs_unmarked_real_bases_queue_p): Just get the canonical binfo.
(dfs_marked_real_bases_queue_p): Likewise.
testsuite:
* g++.dg/abi/vbase9.C: New test.
From-SVN: r51392
2002-03-26 18:16:26 +00:00
Richard Earnshaw
fc4a714bd5
* gcc.dg/arm-asm.c: New test.
...
From-SVN: r51390
2002-03-26 17:59:00 +00:00
Richard Earnshaw
56fbb855b6
re PR target/5621 (ARM compiler aborts with asm "m" constraint)
...
PR target/5621
* arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
"Add a pool_range attribute", which was lost during the ARM/Thumb
merge.
From-SVN: r51389
2002-03-26 17:34:22 +00:00
Bob Wilson
3437320b81
xtensa.c (xtensa_valid_move): Allow move from a register into the MAC16 accumulator.
...
* config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
a register into the MAC16 accumulator.
From-SVN: r51388
2002-03-26 17:16:52 +00:00
Andrew Cagney
173028e5ab
Add -Wswitch-enum. Document.
...
Fix PR c/5044.
From-SVN: r51386
2002-03-26 15:36:37 +00:00
Richard Earnshaw
e14365a738
* arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
...
(reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
(reload_muladdsi_compare0_scratch): Delete.
From-SVN: r51385
2002-03-26 13:52:50 +00:00
Loren J. Rittle
46fc709d67
* doc/install.texi (*-*-freebsd*): Update.
...
From-SVN: r51384
2002-03-26 12:35:20 +00:00
Loren J. Rittle
b4a19310cd
* include/posix-threads.h: Support <.../pal.h> on FreeBSD/alpha.
...
From-SVN: r51383
2002-03-26 11:26:13 +00:00
Richard Henderson
8e5fe23fb3
alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK types from the normal argument frame.
...
* config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
types from the normal argument frame.
From-SVN: r51380
2002-03-26 01:07:10 -08:00
Richard Henderson
82cf684b41
expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
...
* expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
(SUB_PARM_SIZE): Cast DEC to ssizetype.
From-SVN: r51379
2002-03-26 01:06:11 -08:00
Richard Henderson
f36dea3c92
sparc.c (function_arg_pass_by_reference): Pass variable sized objects by reference.
...
* config/sparc/sparc.c (function_arg_pass_by_reference): Pass
variable sized objects by reference.
(sparc_va_arg): Receive them by reference too.
From-SVN: r51378
2002-03-26 00:59:39 -08:00
Richard Henderson
43f2b30807
20020307-2.c (main): Pass a variable sized structure.
...
* gcc.c-torture/execute/20020307-2.c (main): Pass a variable sized
structure.
From-SVN: r51376
2002-03-26 00:53:14 -08:00
Hartmut Penner
1447dc6909
s390.c (s390_emit_epilogue): Change epilogue code to not restoring global registers.
...
* config/s390/s390.c (s390_emit_epilogue): Change epilogue
code to not restoring global registers.
From-SVN: r51374
2002-03-26 08:44:47 +00:00
GCC Administrator
f2a8c7f078
Daily bump.
...
From-SVN: r51373
2002-03-26 08:17:37 +00:00
Neil Booth
4f0ade925d
Makefile.in (ggc-common.o): Update.
...
* Makefile.in (ggc-common.o): Update.
* c-decl.c (lang_mark_tree): Rename c_mark_tree.
* c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
* c-tree.h (c_mark_tree): New.
* ggc-common.c: Include langhooks.h.
(gcc_mark_trees): Use new langhook.
* ggc-callbacks.c: Delete file.
* ggc.h (lang_mark_tree): Remove.
* langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
(LANG_HOOKS_INITIALIZER): Update.
* langhooks.h (struct lang_hooks): New hook.
ada:
* misc.c (LANG_HOOKS_MARK_TREE): Redefine.
(lang_mark_tree): Make static, rename.
cp:
* cp-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
* cp-tree.h (cxx_mark_tree): New.
* decl.c (lang_mark_tree): Rename cxx_mark_tree.
f:
* com.c (LANG_HOOKS_MARK_TREE): Redefine.
(lang_mark_tree): Rename ffe_mark_tree, make static.
java:
* decl.c (lang_mark_tree): Rename java_mark_tree.
* java-tree.h (java_mark_tree): New.
* java-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
objc:
* objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
From-SVN: r51369
2002-03-26 07:16:01 +00:00