Jakub Jelinek [Thu, 4 Apr 2002 20:57:53 +0000 (22:57 +0200)]
sparc.md (pic): New attribute.
* config/sparc/sparc.md (pic): New attribute.
(do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
into stack slots.
(split after do_builtin_setjmp_setup): New.
From-SVN: r51870
Loren J. Rittle [Thu, 4 Apr 2002 20:49:38 +0000 (20:49 +0000)]
gcconfig.h: Add support for an unmapped memory hole between the end of the initialized data...
* include/private/gcconfig.h: Add support for an unmapped
memory hole between the end of the initialized data segment
and the start of the BSS on FreeBSD/i386.
From-SVN: r51867
Laurent Guerby [Thu, 4 Apr 2002 20:19:36 +0000 (20:19 +0000)]
make.adb: Implement -margs, remove restriction about file name placement.
2002-04-04 Laurent Guerby <guerby@acm.org>
* make.adb: Implement -margs, remove restriction about file name placement.
* makeusg.adb: Documentation update.
* Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
* Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
From-SVN: r51866
Jakub Jelinek [Thu, 4 Apr 2002 12:47:41 +0000 (14:47 +0200)]
re PR target/6123 (__pic__/__PIC__ not defined when -fpic/-fPIC is specified)
PR c/6123
* gcc.dg/
20020312-2.c: Do not declare global register variable
if __PIC__ or __pic__ is defined.
From-SVN: r51859
Jakub Jelinek [Thu, 4 Apr 2002 12:27:27 +0000 (14:27 +0200)]
re PR fortran/6106 (sparc-sun-solaris2.7 gcc-3.1 extra g77 testsuite failures w/-m64)
PR fortran/6106
* config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
change.
From-SVN: r51857
Bryce McKinlay [Thu, 4 Apr 2002 11:58:38 +0000 (11:58 +0000)]
Arrays.java (qsort): Fix off-by-one errors and use of incorrect "hi" value when count > 40.
* java/util/Arrays.java (qsort): Fix off-by-one errors and use of
incorrect "hi" value when count > 40.
From-SVN: r51854
Jakub Jelinek [Thu, 4 Apr 2002 11:37:32 +0000 (13:37 +0200)]
sparc.c (sparc_va_arg): Adjust va_list by UNITS_PER_WORD for zero sized aggregates.
* config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
UNITS_PER_WORD for zero sized aggregates.
From-SVN: r51853
Richard Earnshaw [Thu, 4 Apr 2002 09:35:01 +0000 (09:35 +0000)]
arm-asm.c: Run this test on ARM chips, not SPARC.
* gcc.dg/arm-asm.c: Run this test on ARM chips, not SPARC. Use
__asm__ so that it works correctly even if -ansi -pedantic-errors.
From-SVN: r51851
Mark Wielaard [Thu, 4 Apr 2002 08:32:28 +0000 (08:32 +0000)]
Modifier.java (toString(int,StringBuffer)): Fix ordering.
* java/lang/reflect/Modifier.java (toString(int,StringBuffer)): Fix
ordering.
From-SVN: r51848
GCC Administrator [Thu, 4 Apr 2002 08:18:08 +0000 (08:18 +0000)]
Daily bump.
From-SVN: r51847
Neil Booth [Thu, 4 Apr 2002 07:48:44 +0000 (09:48 +0200)]
utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
* utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
(builtin_function): Similarly.
From-SVN: r51843
David S. Miller [Thu, 4 Apr 2002 07:21:00 +0000 (23:21 -0800)]
gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new one-character spec for this, just use %(link_gcc_c_sequence).
2002-04-03 David S. Miller <davem@redhat.com>
* gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
one-character spec for this, just use %(link_gcc_c_sequence).
From-SVN: r51842
David S. Miller [Thu, 4 Apr 2002 07:13:38 +0000 (23:13 -0800)]
crtfastmath.c (FPRS_NS): Delete bogus little-endian handling.
2002-04-03 David S. Miller <davem@redhat.com>
* config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
handling.
From-SVN: r51840
Benjamin Kosnik [Thu, 4 Apr 2002 05:32:59 +0000 (05:32 +0000)]
As per DR 184, libstdc++/3139
2002-04-03 Benjamin Kosnik <bkoz@redhat.com>
As per DR 184, libstdc++/3139
* include/std/std_limits.h (__glibcpp_bool_digits): Change to 1.
(numeric_limits<bool>::is_iec559): False.
(numeric_limits<bool>::is_modulo): False.
* testsuite/27_io/ios_init.cc: Add instantiations.
From-SVN: r51838
John David Anglin [Thu, 4 Apr 2002 02:48:18 +0000 (02:48 +0000)]
pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
* pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
(DWARF_FRAME_RETURN_COLUMN): Move.
(ASM_PREFERRED_EH_DATA_FORMAT): Define.
(ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
* pa.c (except.h, predict.h): Include.
(FRP): Delete.
(store_reg_modify, set_reg_plus_d): Revise prototypes.
(output_ascii): Add cast.
(store_reg_modify): Revise to add frame notes.
(set_reg_plus_d): Likewise.
(compute_frame_size): Include space for eh data registers in frame if
the current function calls eh_return.
(hppa_expand_prologue): Ensure register %r2 is saved if the current
function calls eh_return. Save eh data registers if the current
function calls eh_return. Fix code to add frame notes. Emit
blockage to prevent insns with frame notes being scheduled in the
delay slot of calls.
(hppa_expand_epilogue): Restore eh data registers and do final stack
adjustment if the current function calls eh_return. Don't add frame
notes.
(output_call): Revise for change in length of call insn. Don't do
return pointer adjustment for an unconditional jump in the delay slot
of a call when using frame notes.
* pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
(EH_RETURN_HANDLER_RTX): Use saved value on stack.
(ARG_POINTER_CFA_OFFSET): Define.
* pa.md (return_external_pic): New pattern.
(prologue): Correct formatting. Use return_external_pic if current
function calls eh_return.
(call_internal_symref, call_value_internal_symref,
sibcall_internal_symref, sibcall_value_internal_symref): Change default
lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
respectively.
(exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
* configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
list of targets to check using "nop" insn.
* configure: Rebuilt.
From-SVN: r51836
Alan Modra [Thu, 4 Apr 2002 02:38:46 +0000 (02:38 +0000)]
* config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
From-SVN: r51835
David S. Miller [Thu, 4 Apr 2002 01:15:40 +0000 (17:15 -0800)]
gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c library sequence passed to the linker.
2002-04-03 David S. Miller <davem@redhat.com>
* gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
library sequence passed to the linker.
(LINK_COMMAND_SPEC): Use it.
* doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
* config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
From-SVN: r51834
Jason Merrill [Thu, 4 Apr 2002 00:39:22 +0000 (19:39 -0500)]
re PR c++/5118 (c4x-g++ Fails on Templates)
PR c++/5118
* class.c (get_vfield_name): Use the constructor_name.
From-SVN: r51830
Kaveh R. Ghazi [Thu, 4 Apr 2002 00:18:02 +0000 (00:18 +0000)]
linkage.exp: Update last change to handle sparc*-, not just sparc-.
* gcc.misc-tests/linkage.exp: Update last change to handle
sparc*-, not just sparc-.
From-SVN: r51828
Jason Merrill [Thu, 4 Apr 2002 00:11:00 +0000 (19:11 -0500)]
re PR c++/5636 (gcc-3.0.3, memory leakage: function that take a string as parameter will not call local variable destructors if exception is thrown.)
PR c++/5636
* tree.h (CLEANUP_EH_ONLY): New macro.
* stmt.c (expand_decl_cleanup_eh): New fn.
(expand_cleanups): Check CLEANUP_EH_ONLY.
* c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
Use expand_decl_cleanup_eh.
(expand_stmt): Adjust.
* c-common.h: Adjust prototype.
* cp/semantics.c (nullify_returns_r): Just set CLEANUP_EH_ONLY on
cleanup for nrv.
* except.c (struct eh_status): Remove protect_list.
(begin_protect_partials, end_protect_partials): Remove.
(add_partial_entry): Remove.
* except.h: Remove prototypes.
* expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
expand_decl_cleanup_eh.
cp/:
* semantics.c (finish_eh_cleanup): New fn.
* cp-tree.h: Add prototype.
* init.c (perform_member_init, expand_cleanup_for_base): Use
finish_eh_cleanup.
* cp-tree.def (SUBOBJECT, CTOR_STMT): Remove.
* cp-tree.h: Remove references.
* decl.c (begin_constructor_body, end_constructor_body): Likewise.
* dump.c (cp_dump_tree): Likewise.
* pt.c (tsubst_expr): Likewise.
* semantics.c (genrtl_ctor_stmt, genrtl_subobject): Remove.
(cp_expand_stmt): Remove handling of CTOR_STMT and SUBOBJECT.
* tree.c (cp_statement_code_p): Likewise.
* init.c (build_new_1): Set CLEANUP_EH_ONLY on deleting cleanup.
From-SVN: r51827
Hans-Peter Nilsson [Wed, 3 Apr 2002 23:55:22 +0000 (23:55 +0000)]
cris.c (cris_target_asm_function_prologue): Cast uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
* config/cris/cris.c (cris_target_asm_function_prologue): Cast
uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
(cris_target_asm_function_epilogue): Ditto.
(cris_initial_frame_pointer_offset): Ditto.
(cris_simple_epilogue): Ditto.
(cris_expand_builtin_va_arg): Variable-size types come in
by-reference.
From-SVN: r51825
David S. Miller [Wed, 3 Apr 2002 23:48:39 +0000 (15:48 -0800)]
crtfastmath.c (FPRS_NS): Get it right for little-endian.
2002-04-03 David S. Miller <davem@redhat.com>
* config/sparc/crtfastmath.c (FPRS_NS): Get it right for
little-endian.
(set_fast_math): Correct 'fsr' type.
From-SVN: r51824
Jason Merrill [Wed, 3 Apr 2002 23:43:35 +0000 (18:43 -0500)]
re PR c++/5104 (template using std::set_terminate fails due to throw() qualifier in <exception>)
PR c++/5104
* typeck.c (comptypes) [FUNCTION_TYPE]: Don't compare exception
specifiers.
[METHOD_TYPE]: Use same code as FUNCTION_TYPE.
From-SVN: r51821
Richard Henderson [Wed, 3 Apr 2002 22:41:22 +0000 (14:41 -0800)]
Oops, wrong pr number.
From-SVN: r51820
Jason Merrill [Wed, 3 Apr 2002 22:40:50 +0000 (17:40 -0500)]
fix comment
From-SVN: r51819
Richard Henderson [Wed, 3 Apr 2002 22:39:51 +0000 (14:39 -0800)]
re PR rtl-optimization/4330 (Optimizer generates illegal assembly code)
PR opt/4330
* langhooks.h (lang_hooks.decls.warn_unused_global): New.
* toplev.c (check_global_declarations): Use it.
* langhooks-def.h (lhd_warn_unused_global_decl): Declare.
(LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
(LANG_HOOKS_DECLS): Add it.
* langhooks.c (lhd_warn_unused_global_decl): New.
* c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
* c-objc-common.c (c_warn_unused_global_decl): New.
* c-tree.h (c_warn_unused_global_decl): Declare.
* objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
* cp-lang.c (cxx_warn_unused_global_decl): New.
(LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
* g++.dg/warn/Wunused-2.C: New.
* gcc.dg/unused-4.c: New.
From-SVN: r51818
Neil Booth [Wed, 3 Apr 2002 22:26:37 +0000 (22:26 +0000)]
langhooks-def.h (lhd_set_decl_assembler_name, [...]): New.
* langhooks-def.h (lhd_set_decl_assembler_name,
LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
(LANG_HOOKS_INITIALIZER): Update.
* langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
* langhooks.h (struct lang_hooks): New hook.
* tree.c (set_decl_assembler_name): Move to langhooks.c.
(lang_set_decl_assembler_name): Remove.
(init_obstacks): Don't set hook.
(decl_assembler_name): New function.
* tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
(decl_assembler_name): New.
(lang_set_decl_assembler_name): Remove.
cp:
* cp-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Redefine.
* tree.c (init_tree): Don't set hook.
From-SVN: r51817
Jakub Jelinek [Wed, 3 Apr 2002 22:21:12 +0000 (00:21 +0200)]
configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32() works properly with .hidden symbols.
* configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
works properly with .hidden symbols.
* configure: Rebuilt.
* config.in: Rebuilt.
* config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
properly with .hidden symbols.
From-SVN: r51816
Richard Henderson [Wed, 3 Apr 2002 21:59:03 +0000 (13:59 -0800)]
* gcc.dg/cpp/ucs.c: Improved long UCS test.
From-SVN: r51815
Jakub Jelinek [Wed, 3 Apr 2002 21:35:46 +0000 (23:35 +0200)]
re PR middle-end/6102 (sparc-sun-solaris2.7 gcc-3.1 RTL checking failure on gcc.dg/
20020201-4.c)
PR middle-end/6102
* df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
USE argument.
From-SVN: r51813
Roger Sayle [Wed, 3 Apr 2002 21:29:26 +0000 (21:29 +0000)]
re PR c++/5998 (regression, all builtins disabled)
PR c++/5998:
* decl.c (duplicate_decls): Don't mess with assembler names when
redeclaring builtin functions as static.
From-SVN: r51812
David S. Miller [Wed, 3 Apr 2002 20:13:50 +0000 (12:13 -0800)]
crtfastmath.c: New file.
2002-04-03 David S. Miller <davem@redhat.com>
* config/sparc/crtfastmath.c: New file.
* config/sparc/t-crtfm: New file.
* config/sparc/linux.h (ENDFILE_SPEC): Use crtfastmath.o
* config/sparc/linux64.h (ENDFILE_SPEC): Likewise.
* config/sparc/sol2.h (ENDFILE_SPEC): Likewise.
* config/sparc/sp64-elf.h (ENDFILE_SPEC): Likewise.
* config/sparc/elf.h (ENDFILE_SPEC): Likewise.
* config.gcc (sparc*-*-{elf*,linux*,solaris2*}): Add
sparc/t-crtfm to tmake_file.
* config/sparc/sparc-protos.h (sparc_emitting_epilogue): Add.
From-SVN: r51808
Richard Henderson [Wed, 3 Apr 2002 17:54:04 +0000 (09:54 -0800)]
sched-rgn.c (sets_likely_spilled): New.
* sched-rgn.c (sets_likely_spilled): New.
(sets_likely_spilled_1): New.
(add_branch_dependences): Use it.
From-SVN: r51806
Hans-Peter Nilsson [Wed, 3 Apr 2002 12:08:47 +0000 (12:08 +0000)]
* gcc.dg/wchar_t-1.c, gcc.dg/wchar_t-1.c: Fix typo last change.
From-SVN: r51804
GCC Administrator [Wed, 3 Apr 2002 08:17:15 +0000 (08:17 +0000)]
Daily bump.
From-SVN: r51802
Richard Henderson [Wed, 3 Apr 2002 07:56:47 +0000 (23:56 -0800)]
re PR rtl-optimization/4311 (unrolling loops creates non-ending loop)
PR opt/4311
* loop.h (LOOP_FIRST_PASS): New.
* loop.c (strength_reduce): Mind it when deciding to unroll.
* toplev.c (rest_of_compilation): Set it.
From-SVN: r51798
David S. Miller [Wed, 3 Apr 2002 06:31:45 +0000 (22:31 -0800)]
sparc.md (ldd peephole2s): Fix final arg to mems_ok_for_ldd_peep when the order of the loads being...
2002-04-02 David S. Miller <davem@redhat.com>
* config/sparc/sparc.md (ldd peephole2s): Fix final arg to
mems_ok_for_ldd_peep when the order of the loads being examined
is reversed.
* config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
existing comment to increase comprehension of this situation.
From-SVN: r51796
Zack Weinberg [Wed, 3 Apr 2002 05:34:46 +0000 (05:34 +0000)]
* config/sh/sh.md: Don't use union real_extract.
From-SVN: r51794
Richard Henderson [Wed, 3 Apr 2002 04:19:56 +0000 (20:19 -0800)]
* libgcc2.c (__bb_exit_func): Revert 03-31 change.
From-SVN: r51792
David O'Brien [Wed, 3 Apr 2002 03:49:19 +0000 (03:49 +0000)]
config.gcc (i386-dg-dgux, [...]): Include as many configury headers via tm_file as possible.
2002-04-02 David O'Brien <obrien@FreeBSD.org>
* config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
Include as many configury headers via tm_file as possible. This
includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
* config/openbsd-oldgas.h: New file.
* config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
config/i386/i386-coff.h, config/i386/i386-interix.h,
config/i386/iscdbx.h, config/i386/linux-aout.h,
config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
config/i386/vxi386.h: Do not directly include configury headers.
* config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
Directly include configury headers that are no longer automatically
included by the above headers.
* config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
* config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
(TARGET_VERSION): Define.
* config/i386/beos-elf.h, config/i386/freebsd.h,
config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
config/i386/sco5.h, config/i386/sysv4.h
(TARGET_VERSION): Do not need to protect.
* config/i386/freebsd64.h (TARGET_VERSION): Fix style.
* config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
config/i386/freebsd-aout.h, config/i386/i386-aout.h,
config/i386/i386-interix.h, config/i386/linux-aout.h,
config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
(YES_UNDERSCORES): Do not define - not needed.
* config/i386/bsd.h, config/i386/gas.h (LPREFIX,
ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
* config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
(LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
* config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
* config/i386/isccoff.h, config/i386/v3gas.h: Remove.
Approved by: Richard Henderson <rth@redhat.com>
Message-ID: <
20020402190415.D29320@redhat.com>
From-SVN: r51791
Eric Botcazou [Wed, 3 Apr 2002 03:41:40 +0000 (03:41 +0000)]
function.c (assign_temp): Accept either type or decl argument.
* function.c (assign_temp): Accept either type or decl argument.
Detect variables whose size is too large to fit into an integer.
* stmt.c (expand_decl): Pass the decl, not the type.
Co-Authored-By: Richard Henderson <rth@redhat.com>
From-SVN: r51788
David O'Brien [Wed, 3 Apr 2002 03:40:56 +0000 (03:40 +0000)]
protoize.c: Match include directory usage with cppdefault.c.
2002-04-02 David O'Brien <obrien@FreeBSD.org>
* protoize.c: Match include directory usage with cppdefault.c.
Approved by: Richard Henderson <rth@redhat.com>
Message-ID: <
20020329131400.C19829@redhat.com>
From-SVN: r51787
Jeff Law [Wed, 3 Apr 2002 03:21:29 +0000 (03:21 +0000)]
combine.c (simplify_comparison): Avoid narrowing a comparison with a paradoxical subreg when...
* combine.c (simplify_comparison): Avoid narrowing a comparison
with a paradoxical subreg when doing so would drop signficant bits.
Co-Authored-By: Hans-Peter Nilsson <hp@bitrange.com>
From-SVN: r51785
David S. Miller [Wed, 3 Apr 2002 02:39:18 +0000 (18:39 -0800)]
20020402-3.c: New test.
2002-04-02 David S. Miller <davem@redhat.com>
* gcc.c-torture/execute/
20020402-3.c: New test.
From-SVN: r51781
Steve Ellcey [Wed, 3 Apr 2002 02:33:07 +0000 (02:33 +0000)]
builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode if POINTERS_EXTEND_UNSIGNED is defined.
* builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
if POINTERS_EXTEND_UNSIGNED is defined.
From-SVN: r51778
Benjamin Kosnik [Wed, 3 Apr 2002 02:32:52 +0000 (02:32 +0000)]
ios.cc: (ios_base::Init::_S_ios_destroy): Remove flush calls.
2002-04-02 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/5268
* src/ios.cc: (ios_base::Init::_S_ios_destroy): Remove flush calls.
* testsuite/27_io/ios_init.cc (tests04): Add test.
libstdc++/3983
* include/bits/basic_ios.h (basic_ios::_M_get_fctype_ios): Remove.
(basic_ios::_M_ios_fctype): Consistently name to _M_fctype.
* include/bits/basic_ios.tcc: Same. Remove outdated comments.
* include/bits/istream.tcc: Use _M_fctype, make consistent with
ostream.
* testsuite/27_io/ios_init.cc (tests03): Add test.
From-SVN: r51777
Richard Henderson [Wed, 3 Apr 2002 02:06:26 +0000 (18:06 -0800)]
local-alloc.c (contains_replace_regs): LO_SUM may contain replace regs.
* local-alloc.c (contains_replace_regs): LO_SUM may contain
replace regs.
* gcc.c-torture/execute/
20020402-2.c: New.
From-SVN: r51773
Hans-Peter Nilsson [Wed, 3 Apr 2002 02:01:31 +0000 (02:01 +0000)]
bprob.exp: Skip for mmix-*-* and cris-*-*.
* g77.dg/bprob/bprob.exp: Skip for mmix-*-* and cris-*-*.
* g++.dg/bprob/bprob.exp, gcc.misc-tests/bprob.exp: Ditto.
From-SVN: r51772
Hans-Peter Nilsson [Wed, 3 Apr 2002 01:45:43 +0000 (01:45 +0000)]
f77-edit-i-in.f: xfail for mmix-knuth-mmixware.
* g77.dg/f77-edit-i-in.f: xfail for mmix-knuth-mmixware.
* g77.f-torture/execute/io0.x, g77.f-torture/execute/io1.x,
g77.f-torture/execute/
20001201.x,
g77.f-torture/execute/u77-test.x: New files.
From-SVN: r51771
Hans-Peter Nilsson [Wed, 3 Apr 2002 01:22:14 +0000 (01:22 +0000)]
wint_t-1.c: Mark excess errors for mmix-knuth-mmixware.
* gcc.dg/wint_t-1.c: Mark excess errors for mmix-knuth-mmixware.
* gcc.dg/wchar_t-1.c: Ditto.
From-SVN: r51770
Richard Henderson [Wed, 3 Apr 2002 00:12:59 +0000 (16:12 -0800)]
* doc/standards.texi: Document required freestanding libc entry points.
From-SVN: r51768
Alan Modra [Tue, 2 Apr 2002 22:49:44 +0000 (22:49 +0000)]
rs6000.md (ctrdi*): Add FPR constraint and associated splitter.
2002-04-02 Alan Modra <amodra@bigpond.net.au>
* config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
associated splitter. Remove MQ constraint.
(ctrdi_internal4): Correct CCmode clobber.
From-SVN: r51767
Tom Tromey [Tue, 2 Apr 2002 22:20:30 +0000 (22:20 +0000)]
natClassLoader.cc (findClass): Compare against `3', not `0'.
* java/lang/natClassLoader.cc (findClass): Compare against `3',
not `0'.
From-SVN: r51764
Franz Sirl [Tue, 2 Apr 2002 22:01:54 +0000 (22:01 +0000)]
20020402-1.c: New test.
2002-04-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* gcc.c-torture/execute/
20020402-1.c: New test.
From-SVN: r51762
John David Anglin [Tue, 2 Apr 2002 19:44:45 +0000 (19:44 +0000)]
milli64.S ($$dyncall): New function.
* milli64.S ($$dyncall): New function.
* t-linux (LIB1ASMFUNCS): Revise module list.
(LIB1ASMSRC): Use pa/milli64.S.
From-SVN: r51760
Richard Henderson [Tue, 2 Apr 2002 18:32:10 +0000 (10:32 -0800)]
inclhack.def (AAB_solaris_sys_varargs_h): Move and rename solaris_sys_varargs_h.
* fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
rename solaris_sys_varargs_h.
From-SVN: r51759
Nick Clifton [Tue, 2 Apr 2002 16:44:39 +0000 (16:44 +0000)]
Remove previous delta
From-SVN: r51757
Mark Wielaard [Tue, 2 Apr 2002 14:20:44 +0000 (14:20 +0000)]
mauve-libgcj: add java.net.DatagramSocket.DatagramSocketTest2 to list of testsuite crashers.
* mauve-libgcj: add java.net.DatagramSocket.DatagramSocketTest2 to
list of testsuite crashers.
From-SVN: r51753
Bryce McKinlay [Tue, 2 Apr 2002 13:55:14 +0000 (13:55 +0000)]
IdentityHashMap.java (put): Set new threshold correctly when resizing table.
* java/util/IdentityHashMap.java (put): Set new threshold correctly
when resizing table.
From-SVN: r51751
Nick Clifton [Tue, 2 Apr 2002 13:51:01 +0000 (13:51 +0000)]
(output_return_instruction): Do not create the conditional part of the return instruction...
(output_return_instruction): Do not create the conditional part of the return
instruction, if there is no condition to be used.
From-SVN: r51750
Phil Edwards [Tue, 2 Apr 2002 12:57:23 +0000 (12:57 +0000)]
Makefile.am (install-data-local): Use mkinstalldirs.
2002-04-02 Phil Edwards <pme@gcc.gnu.org>
* include/Makefile.am (install-data-local): Use mkinstalldirs.
* include/Makefile.in: Regenerate.
From-SVN: r51747
Paolo Carlini [Tue, 2 Apr 2002 12:07:07 +0000 (14:07 +0200)]
basic_string.h (replace(i1, i2, _CharT* k1, _CharT* k2), [...]): New specializations to optimize for the common cases of pointers and iterators.
2002-04-02 Paolo Carlini <pcarlini@unitus.it>
Nathan Myers <ncm@cantrip.org>
Philip Martin <philip@codematters.co.uk>
* include/bits/basic_string.h
(replace(i1, i2, _CharT* k1, _CharT* k2),
replace(i2, i2, const _CharT* k1, const _CharT* k2),
replace(i1, i2, iterator k1, iterator k2,
replace(i1, i2, const_iterator k1, const_iterator k2):
New specializations to optimize for the common cases of
pointers and iterators.
(replace(pos, n1, s, n2)): Tweak.
* include/bits/basic_string.tcc: Tweak comments.
* testsuite/21_strings/replace.cc (test04): New tests.
Co-Authored-By: Nathan Myers <ncm@cantrip.org>
Co-Authored-By: Philip Martin <philip@codematters.co.uk>
From-SVN: r51746
Richard Kenner [Tue, 2 Apr 2002 12:00:30 +0000 (12:00 +0000)]
stor-layout.c (layout_type, [...]): Give one-element array the same mode as its component.
* stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
the same mode as its component.
From-SVN: r51745
Richard Henderson [Tue, 2 Apr 2002 08:35:51 +0000 (00:35 -0800)]
re PR rtl-optimization/190 (Optimization bug for x86 target)
PR opt/190
* final.c (this_is_asm_operands): Export.
* output.h (this_is_asm_operands): Declare.
* config/i386/i386.c (print_operand): Error odd asm operands.
From-SVN: r51741
GCC Administrator [Tue, 2 Apr 2002 08:18:58 +0000 (08:18 +0000)]
Daily bump.
From-SVN: r51740
Richard Henderson [Tue, 2 Apr 2002 08:14:57 +0000 (00:14 -0800)]
* config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
From-SVN: r51736
Benjamin Kosnik [Tue, 2 Apr 2002 02:41:50 +0000 (02:41 +0000)]
acinclude: More extensive checks for msgfmt, --enable-nls.
2002-04-01 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/5542
* acinclude: More extensive checks for msgfmt, --enable-nls.
* aclocal.m4: Regenerate.
* configure: Regenerate.
From-SVN: r51732
Phil Edwards [Tue, 2 Apr 2002 02:07:22 +0000 (02:07 +0000)]
exception (__verbose_terminate_handler): Point to docs.
2002-04-01 Phil Edwards <pme@gcc.gnu.org>
* libsupc++/exception (__verbose_terminate_handler): Point to docs.
* docs/doxygen/doxygroups.cc: Doxygen hooks for abi::__cxa_demangle.
* docs/html/18_support/howto.html: Document the demangler.
* docs/html/17_intro/howto.html: And link to it.
* docs/doxygen/mainpage.html: Describe user-vs-maintainer docs.
* docs/doxygen/run_doxygen: Print user-vs-maintainer.
From-SVN: r51730
Richard Henderson [Tue, 2 Apr 2002 01:44:51 +0000 (17:44 -0800)]
inclhack.def (solaris_sys_varargs_h): New.
* fixinc/inclhack.def (solaris_sys_varargs_h): New.
* fixinc/fixincl.x: Rebuild.
From-SVN: r51729
Richard Henderson [Tue, 2 Apr 2002 00:05:39 +0000 (16:05 -0800)]
* gcc.c-torture/compile/920625-1.x: XFAIL -O1.
From-SVN: r51726
Richard Henderson [Mon, 1 Apr 2002 23:28:46 +0000 (15:28 -0800)]
unwind-ia64.c: Include ia64intrin.h.
* config/ia64/unwind-ia64.c: Include ia64intrin.h.
(atomic_alloc, atomic_free): New.
(SIZE, MASK_FOR, PTR_IN): New.
(emergency_reg_state, emergency_reg_state_free): New.
(emergency_labeled_state, emergency_labeled_state_free): New.
(reg_state_alloced, labeled_state_alloced): New.
(alloc_reg_state, free_reg_state): New.
(alloc_label_state, free_label_state, free_label_states): New.
(push, pop, dup_state_stack, free_state_stack): Use them.
(desc_label_state): Likewise.
(uw_frame_state_for): Free label states and state stack.
(uw_update_reg_address): Eliminate warnings.
From-SVN: r51722
Vladimir Makarov [Mon, 1 Apr 2002 22:44:29 +0000 (22:44 +0000)]
pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON, [...]): Redefine them.
2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
* config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
From-SVN: r51713
Phil Edwards [Mon, 1 Apr 2002 21:56:42 +0000 (21:56 +0000)]
linker-map.gnu: Export __verbose_terminate_handler.
2002-04-01 Phil Edwards <pme@gcc.gnu.org>
* config/linker-map.gnu: Export __verbose_terminate_handler.
* libsupc++/Makefile.am (sources): Add cxa_demangle.c, dyn-string.c.
Make new LTCOMPILE variable, use it in new special build rules.
* libsupc++/Makefile.in: Rebuild.
* src/vterminate.cc (__verbose_terminate_handler): Enable use of
runtime __cxa_demangle.
* docs/html/install.html: Update prereqs and instructions.
* docs/html/19_diagnostics/howto.html: Bring naming for
verbose_terminate_handler into line with reality.
From-SVN: r51709
Phil Edwards [Mon, 1 Apr 2002 21:55:12 +0000 (21:55 +0000)]
cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
2002-04-01 Phil Edwards <pme@gcc.gnu.org>
* cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
(is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
not compile if IN_GLIBCPP_V3 defined.
* dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
From-SVN: r51708
Phil Edwards [Mon, 1 Apr 2002 21:54:28 +0000 (21:54 +0000)]
dyn-string.h: Also allow IN_GLIBCPP_V3 to redefine names.
2002-04-01 Phil Edwards <pme@gcc.gnu.org>
* dyn-string.h: Also allow IN_GLIBCPP_V3 to redefine names.
From-SVN: r51707
Neil Booth [Mon, 1 Apr 2002 20:26:18 +0000 (20:26 +0000)]
c-decl.c (grokdeclarator): Update.
* c-decl.c (grokdeclarator): Update.
* c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
* c-tree.h (c_mark_addressable): New.
* c-typeck.c (default_function_array_conversion, build_unary_op,
build_array_ref, convert_for_assignment): Update.
(mark_addressable): Rename.
* calls.c (try_to_integrate, expand_call): Use langhook.
* expr.c (expand_expr): Use langhook.
* langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
* langhooks.h (struct lang_hooks): New hook.
* stmt.c (expand_asm_operands): Use langhook.
* tree.h (mark_addressable): Remove.
ada:
* decl.c (gnat_to_gnu_entity): Update.
* gigi.h (mark_addressable): Rename.
* misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
* trans.c (tree_transform): Update.
* utils.c (create_var_decl): Update.
* util2.c (build_binary_op, build_unary_op,
fill_vms_descriptor): Update.
(mark_addressable): Rename, update.
cp:
* call.c (build_addr_func): Update.
* class.c (resolve_address_of_overloaded_function): Update.
* cp-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
* cp-tree.h (cxx_mark_addressable): New.
* decl.c (register_dtor_fn, cxx_maybe_build_cleanup): Update.
* decl2.c (build_cleanup): Update.
* except.c (build_throw): Update.
* init.c (resolve_offset_ref): Update.
* pt.c (convert_nontype_argument): Update.
* semantics.c (finish_asm_stmt, simplify_affr_init_exprs_r): Update.
* typeck.c (decay_conversion, build_array_ref, build_unary_op,
unary_complex_lvalue): Update.
(mark_addressable): Rename.
f:
* com.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
(mark_addressable): Rename.
(ffecom_arrayref_, ffecom_1): Update.
java:
* java-tree.h (java_mark_addressable): New.
* lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
* typeck.c (mark_addressable): Rename, update.
objc:
* objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
From-SVN: r51705
Bob Wilson [Mon, 1 Apr 2002 20:07:21 +0000 (20:07 +0000)]
xtensa.c (xtensa_va_arg): Fix compiler warning in previous change.
* config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
in previous change.
From-SVN: r51704
Mark Wielaard [Mon, 1 Apr 2002 19:59:12 +0000 (19:59 +0000)]
BitSet.java (BitSet(int)): if nbits < 0 throw NegativeArraySizeException
* java/util/BitSet.java (BitSet(int)): if nbits < 0 throw
NegativeArraySizeException
(clear(int)): Use sign extended shift.
(flip(int)): Likewise.
(get(int)): Likewise.
(nextClearBit(int)): Likewise.
(nextSetBit(int)): Likewise.
(set(int)): Likewise.
From-SVN: r51701
Bob Wilson [Mon, 1 Apr 2002 19:52:18 +0000 (19:52 +0000)]
xtensa.c (xtensa_va_arg): Fix to handle arguments for which MUST_PASS_IN_STACK is true (e.g....
* config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
From-SVN: r51700
Richard Henderson [Mon, 1 Apr 2002 19:28:39 +0000 (11:28 -0800)]
* g++.dg/other/new1.C: Use __SIZE_TYPE__.
From-SVN: r51698
Benjamin Kosnik [Mon, 1 Apr 2002 18:39:37 +0000 (18:39 +0000)]
basic_ios.h (basic_ios::_M_exception): Move.
2002-04-01 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/3129
* include/bits/basic_ios.h (basic_ios::_M_exception): Move.
(basic_ios::_M_streambuf_state): Move.
* include/bits/ios_base (ios_base): To here.
* include/bits/ios_base.h (ios_base::_S_local_words): To
_S_local_word_size.
(ios_base::_M_word_array): To _M_local_word.
(ios_base::_M_words_limit): To _M_word_size.
(ios_base::_M_words): To _M_word.
Comment.
* include/bits/basic_ios.tcc: Adjust.
* src/ios.cc (ios_base::_M_grow_words): Tweak.
* testsuite/27_io/ios_base_storage.cc: Add tests.
libstdc++/5207
Kenny Simpson <theonetruekenny@yahoo.com>
* include/bits/ios_base.h: Fix.
Richard Henderson <rth@redhat.com>
* include/bits/ostream.tcc (ostream::operator<<(_CharT)): Correct
last change.
* include/bits/basic_string.h: Tweak formatting.
From-SVN: r51695
Mark Wielaard [Mon, 1 Apr 2002 18:09:25 +0000 (18:09 +0000)]
mauve-libgcj: Add JDK1.3...
* mauve-libgcj: Add JDK1.3, JDK1.4, JLS1.2 tests, remove ignored tests
that can be compiled now and add testsuite crashers to ignore list.
From-SVN: r51693
Kaveh R. Ghazi [Mon, 1 Apr 2002 16:33:55 +0000 (16:33 +0000)]
* gcc.misc-tests/linkage.exp: Special case 64-bit solaris2.
From-SVN: r51691
Roger Sayle [Mon, 1 Apr 2002 16:32:59 +0000 (16:32 +0000)]
re PR c++/5998 (regression, all builtins disabled)
PR c++/5998:
* decl.c (duplicate_decls): Overwrite the RTL when (and only
when) overwriting a built-in function. Don't use COPY_DECL_RTL,
but follow the SET_DECL_RTL idiom used elsewhere in the function.
From-SVN: r51690
Gabriel Dos Reis [Mon, 1 Apr 2002 14:01:24 +0000 (14:01 +0000)]
template-as-base.C: Expect error.
* g++.dg/inherit/template-as-base.C: Expect error.
* g++.dg/inherit/namespace-as-base.C: Likewise.
From-SVN: r51687
Paolo Carlini [Mon, 1 Apr 2002 08:55:05 +0000 (10:55 +0200)]
2002-04-01 Paolo Carlini <pcarlini@unitus.it>
* config/locale/ieee_1003.1-2001/codecvt_specializations.h
(codecvt::do_out, codecvt::do_unshift, codecvt::do_in):
By definition, sizeof(char) == 1.
* include/bits/locale_facets.tcc (money_get::do_get,
money_put::do_put): Ditto.
* testsuite/21_strings/inserters_extractors.cc
(test04): Ditto.
From-SVN: r51685
Neil Booth [Mon, 1 Apr 2002 08:46:10 +0000 (08:46 +0000)]
c-common.c (unsigned_conversion_warning, [...]): Use new hooks.
* c-common.c (unsigned_conversion_warning, convert_and_check,
unsigned_type, signed_type, shorten_compare,
c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
(unsigned_type, signed_type, signed_or_unsigned_type): Rename.
* c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
New.
* c-decl.c (grokdeclarator): Update.
* c-format.c (check_format_types): Update.
* c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
* c-typeck.c (build_binary_op, convert_for_assignment): Update.
* convert.c (convert_to_integer): Use new hooks.
* expmed.c (make_tree): Use new hooks.
* expr.c (store_expr): Use new hooks.
* fold-const.c (operand_equal_for_comparison_p, build_range_check,
all_ones_mask_p, unextend, fold): Use new hooks.
* langhooks.h (struct lang_hooks_for_types): New hooks.
* tree.h (signed_or_unsigned_type, signed_type,
unsigned_type): Remove.
ada:
* gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
Rename.
* misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
* trans.c (tree_transform, convert_with_check): Update.
* utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
Rename.
cp:
* cp-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
* decl.c (grokdeclarator): Update.
* mangle.c (write_integer_cst): Update.
* typeck.c (build_binary_op): Update.
f:
* com.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
(unsigned_type, signed_type, signed_or_unsigned_type): Rename.
java:
* expr.c (build_java_binop): Update.
* java-tree.h (java_signed_type, java_unsigned_type,
java_signed_or_unsigned_type): Update.
* lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
* parse.y (patch_binop): Update.
* typeck.c (signed_or_unsigned_type, unsigned_type,
signed_type): Update.
objc:
* objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
From-SVN: r51684
GCC Administrator [Mon, 1 Apr 2002 08:17:05 +0000 (08:17 +0000)]
Daily bump.
From-SVN: r51683
Richard Henderson [Mon, 1 Apr 2002 06:52:45 +0000 (22:52 -0800)]
unwind-ia64.c (alloc_spill_area): Fix offset.
* config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
(desc_frgr_mem): Fix reference to f16-f31.
From-SVN: r51679
Kaveh R. Ghazi [Mon, 1 Apr 2002 05:08:51 +0000 (05:08 +0000)]
varray.h (VARRAY_CHECK): Const-ify.
* varray.h (VARRAY_CHECK): Const-ify.
* ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
ggc_mark_rtvec, ggc_mark): Const-ify.
From-SVN: r51677
Kaveh R. Ghazi [Mon, 1 Apr 2002 03:18:49 +0000 (03:18 +0000)]
rtl.h (RTL_CHECK1, [...]): Const-ify.
* rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
RTVEC_ELT): Const-ify.
From-SVN: r51676
Neil Booth [Sun, 31 Mar 2002 22:59:14 +0000 (22:59 +0000)]
diagnostic.c: Include langhooks-def.h.
* diagnostic.c: Include langhooks-def.h.
* Makefile.in (diagnostic.o): Update.
From-SVN: r51674
Neil Booth [Sun, 31 Mar 2002 22:40:57 +0000 (22:40 +0000)]
c-common.c (c_unsafe_for_reeval): Rename.
* c-common.c (c_unsafe_for_reeval): Rename.
* c-common.h (c_unsafe_for_reeval): Rename.
* c-decl.c (finish_incomplete_decl): Rename.
(c_init_decl_processing): Don't set langhook.
* c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
* c-objc-common.c (c_objc_common_init): Don't set langhook.
* c-tree.h (finish_incomplete_decl): Rename.
* langhooks-def.h (lhd_unsafe_for_reeval): New.
(LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
(LANG_HOOKS_INITIALIZER): Update.
* langhooks.c (lhd_unsafe_For_reeval): New.
* langhooks.h (struct langhooks): New hooks.
* toplev.c (incomplete_decl_finalize_hook): Remove.
(wrapup_global_declarations): Update.
* tree.c (lang_unsafe_for_reeval): Remove.
(unsafe_for_reeval): Update.
* tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
Remove.
ada:
* gigi.h (finish_incomplete_decl): Rename.
* misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
* utils.c (gnat_init_decl_processing): Don't set hook.
(finish_incomplete_decl): Rename.
cp:
* cp-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
* lex.c (cxx_init): Don't set hook.
objc:
* objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
From-SVN: r51673
Neil Booth [Sun, 31 Mar 2002 22:32:05 +0000 (22:32 +0000)]
diagnostic.c (print_error_function): Remove.
* diagnostic.c (print_error_function): Remove.
(default_print_error_function): Rename.
(report_error_function): Update.
* diagnostic.h (print_error_function): Remove.
(default_print_error_function): Remove.
* langhooks-def.h (struct diagnostic_context): Predeclare.
(lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
(LANG_HOOKS_INITIALIZER): Update.
* langhooks.h (struct diagnostic context): Predeclare.
(struct lang_hooks): New hook.
cp:
* Make-lang.in (error.o): Update.
* cp-lang.c (LANG_HOOKS_PRINT_ERROR_FUNCTION): Redefine.
* cp-tree.h (struct diagnostic_context): Predeclare.
(cxx_print_error_function): New.
* error.c: Include langhooks-def.h.
(lang_print_error_function): Rename. Update.
(init_error): Don't set hook.
f:
* com.c (lang_print_error_function): Rename.
(LANG_HOOKS_PRINT_ERROR_FUNCTION): Redefine.
(ffe_init): Don't set hook.
java:
* lang.c (LANG_HOOKS_PRINT_ERROR_FUNCTION): Redefine.
(java_dummy_print): Remove.
(lang_print_error): Rename. Exit early if inhibiting output.
(inhibit_error_printing_function): New.
(java_init): Don't set hook.
(lang_init_source): Use new boolean.
From-SVN: r51672
Franz Sirl [Sun, 31 Mar 2002 22:12:27 +0000 (22:12 +0000)]
rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
(PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
!flag_pic.
(CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
* config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
of PIC_OFFSET_TABLE_REGNUM thruout.
* config/rs6000/rs6000.md: Likewise.
* config/rs6000/darwin.h: Likewise.
From-SVN: r51671
Richard Kenner [Sun, 31 Mar 2002 19:48:22 +0000 (19:48 +0000)]
emit-rtl.c (adjust_address_1, [...]): Cast value to unsigned HOST_WIDE_INT, not unsigned int.
* emit-rtl.c (adjust_address_1, offset_address): Cast value to
unsigned HOST_WIDE_INT, not unsigned int.
From-SVN: r51670
Jakub Jelinek [Sun, 31 Mar 2002 18:45:21 +0000 (20:45 +0200)]
PR middle-end/6096, middle-end/6098, middle-end/6099
PR middle-end/6096, middle-end/6098, middle-end/6099
* reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
CODE_LABELs.
(fill_slots_from_thread): Likewise.
From-SVN: r51668
Jakub Jelinek [Sun, 31 Mar 2002 18:43:31 +0000 (20:43 +0200)]
sparc.c (function_arg_record_value_1): Pass complex floating fields in float regs.
* config/sparc/sparc.c (function_arg_record_value_1): Pass complex
floating fields in float regs.
(function_arg_record_value_2): Likewise.
From-SVN: r51667
Hans-Peter Nilsson [Sun, 31 Mar 2002 18:38:57 +0000 (18:38 +0000)]
mmix.md (define_constants): Remove misleading FIXME.
* config/mmix/mmix.md (define_constants): Remove misleading
FIXME. Add MMIX_fp_rO_OFFSET.
("nonlocal_goto_receiver"): Don't have stack-frame address of
saved rO as part of the pattern. Remove FIXME.
("*nonlocal_goto_receiver_expanded"): Similar. Generate address
here, at output-time.
From-SVN: r51664
Jakub Jelinek [Sun, 31 Mar 2002 18:37:36 +0000 (20:37 +0200)]
re PR middle-end/6100 (sparc-sun-solaris2.7 gcc-3.1 RTL checking failure w/-m64 on compile/
20020320-1.c)
PR middle-end/6100
* config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
REG_BR_PRED.
(output_v9branch): Likewise.
From-SVN: r51663