Eric Botcazou [Thu, 11 Dec 2003 07:58:00 +0000 (08:58 +0100)]
backport: re PR rtl-optimization/13060 ([g77] ICE in fixup_var_refs_1, at function.c:1947 on correct code with "-O2 -fno-force-mem")
Backport from mainline:
2003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
PR optimization/13060
* function.c (fixup_var_refs_1) [SUBREG]: Recognize even if a
replacement already exists. Fix again the whole insn if that fails.
Benjamin Kosnik [Thu, 11 Dec 2003 01:19:00 +0000 (01:19 +0000)]
re PR libstdc++/6243 (testsuite fails almost all tests due to no libintl in LD_LIBRARY_PATH during test.)
2003-12-10 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/6243
* testsuite/lib/libstdc++.exp (v3-init): Add
original_ld_library_path, calculate ld_library path, set
LD_LIBRARY_PATH to both. Based on libjava.exp.
Nathanael Nerode [Wed, 10 Dec 2003 16:57:06 +0000 (16:57 +0000)]
backport: cpptrad.c (_cpp_scan_out_logical_line): Improve test for whether directive begins at the beginning of a line.
Backport from mainline (fixes unreported regression):
* cpptrad.c (_cpp_scan_out_logical_line): Improve test for
whether directive begins at the beginning of a line.
(testsuite)
Backport from mainline:
* gcc.dg/cpp/trad/xwin1.c: New test case.
Andrew Pinski [Mon, 8 Dec 2003 17:36:59 +0000 (17:36 +0000)]
re PR middle-end/10060 (ICE (stack overflow) on huge file (300k lines) due to recursive behaviour of copy_rtx_if_shared, in emit_rtl.c)
2003-12-08 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/10060
* emit-rtl.c (copy_rtx_if_shared): Split out into ...
(copy_rtx_if_shared_1): here and optimize the last one
in the sequence into tail-recursion.
(reset_used_flags): Optimize the last one
in the sequence into tail-recursion.
Mark Mitchell [Thu, 4 Dec 2003 04:47:17 +0000 (04:47 +0000)]
hpux.h (TARGET_HAVE_TLS): Define it to false.
* config/ia64/hpux.h (TARGET_HAVE_TLS): Define it to false.
* config/ia64/ia64.h (TARGET_HAVE_TLS): Define it to true if
HAVE_AS_TLS is true.
* config/ia64/ia64.c (TARGET_HAVE_TLS): Do not define it.
2003-11-29 James E Wilson <wilson@specifixinc.com>
* gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name
instead of in shared_name.
2003-11-20 David Mosberger <davidm@hpl.hp.com>
* config/t-libunwind (LIB2ADDEH): Add unwind-c.c.
(SHLIB_LC): Define.
* unwind-libunwind.c (_Unwind_GetCFA): Implement.
(_Unwind_GetBSP) [UNW_TARGET_IA64]: New function.
Kean Johnston [Wed, 3 Dec 2003 20:10:43 +0000 (20:10 +0000)]
re PR other/12969 (Including sys/byteorder.h breaks configure checks)
2003-12-03 Kean Johnston <jkj@sco.com>
PR 12969
* fixinc/inclhack.def (AAB_svr4_replace_byteorder): Revert the
change I made on 2003-08-11 that removes the mach lines.
Restore them to the same list thats in the head, as per
Nathanael Nerode's changes.
* fixinc/fixincl.x: Regenerated
* fixinc/tests/base/ansi/string.h: Fix test case
Roger Sayle [Tue, 2 Dec 2003 04:36:08 +0000 (04:36 +0000)]
re PR rtl-optimization/11634 ([hppa] ICE in verify_local_live_at_start, at flow.c:555)
PR optimization/11634
* recog.c (split_insn): Factor test of INSN_P and handling of
set_noop_p out of here into the two callers.
(split_all_insns): Add INSN_P test and set_noop_p handling here.
If deleting a no-op set after reload that has a REG_UNUSED note,
mark the basic block as changed and recalculate life information.
(split_all_insns_noflow): Add INSN_P test and set_noop_p handling
here.
Zack Weinberg [Tue, 2 Dec 2003 01:56:18 +0000 (01:56 +0000)]
re PR other/12505 (build failure due to defines of uchar in cpphash.h and sys/types.h)
PR 12505
* configure.in: Check for system-provided 'uchar' type.
* configure, config.in: Regenerate.
* cpphash.h: Only typedef 'uchar' if the system doesn't.
Eric Botcazou [Mon, 1 Dec 2003 08:18:38 +0000 (09:18 +0100)]
backport: re PR rtl-optimization/13041 (linux-2.6/sound/core/oss/rate.c miscompiled)
Backport from mainline:
2003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
PR optimization/13041
* final.c (frame_pointer_needed): Fix comment.
* reload1.c (reload): Decrease alignment of the frame
pointer if it was used for register allocation.
Eric Botcazou [Mon, 1 Dec 2003 08:10:18 +0000 (09:10 +0100)]
backport: re PR target/12900 (g++ ICE in rtl_verify_flow_info_1)
Backport from mainline:
2003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
PR target/12900
* reg-stack (move_for_stack_reg): New prototype. Return
whether a control flow insn was deleted.
(subst_stack_regs_pat): Likewise, using the information provided
by move_for_stack_reg.
(subst_stack_regs): Likewise, using the information provided
by subst_stack_regs_pat.
(convert_regs_1): Record whether a control flow insn was deleted,
using the information provided by subst_stack_regs. Purge dead
edges only if a control flow insn was deleted.
Petur Runolfsson [Wed, 26 Nov 2003 19:54:41 +0000 (19:54 +0000)]
re PR libstdc++/12594 (DRs 60 [TC] and 63 [TC] not implemented)
2003-11-26 Petur Runolfsson <peturr02@ru.is>
PR libstdc++/12594
* include/bits/ostream.tcc
(basic_ostream::operator<<(basic_ostream& (*)(basic_ostream&)),
basic_ostream::operator<<(basic_ios& (*)(basic_ios&)),
basic_ostream::operator<<(ios_base& (*)(ios_base&))):
Implement the resolution of DR 60 (TC): These are not formatted
output functions so don't construct sentry objects and don't
catch exceptions.
(basic_ostream::put, basic_ostream::write): Implement the
resolution of DR 63 (TC) by catching exceptions and setting
badbit.
(basic_ostream::flush): Implement the resolution of DR 60 (TC):
This is not an unformatted output function so don't construct
a sentry object.
Eric Botcazou [Thu, 13 Nov 2003 09:56:51 +0000 (10:56 +0100)]
re PR rtl-optimization/12926 (Wrong value after assignment in initialize list using bit-fields)
PR optimization/12926
* expr.c (expand_assignment) [COMPONENT_REF]: Don't put
the UNCHANGING_RTX_P flag on memory references to read-only
components that are not addressable.
Waldek Hebisch [Mon, 10 Nov 2003 08:17:00 +0000 (09:17 +0100)]
re PR target/12865 (`mprotect' call to make trampoline executable may fail)
PR target/12865
* config/sparc/sparc.c (sparc_initialize_trampoline): Call
__enable_execute_stack only after writing onto the stack.
(sparc64_initialize_trampoline): Likewise.
Roger Sayle [Sat, 8 Nov 2003 15:24:32 +0000 (15:24 +0000)]
backport: re PR target/10467 ([arm] [3.3/3.4 regression] ICE in pre_insert_copy_insn,)
Backport from mainline
PR optimization/10467
PR optimization/11741
* gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
appropriate set to match the code in hash_scan_insn.
* gcc.dg/20030926-1.c: New test case.
* gcc.dg/20031108-1.c: New test case.
* cp_tree.h: Added TFF_NO_FUNCTION_ARGUMENTS.
* error.c (dump_function_decl): Use it to skip the dump of the
arguments.
(dump_expr): When dumping a declaration found within an
expression, always set TFF_NO_FUNCTION_ARGUMENTS
in the flags.