This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/37170] [4.4 Regression]: gcc.dg/weak/weak-1.c
- From: "hp at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Sep 2008 01:55:32 -0000
- Subject: [Bug middle-end/37170] [4.4 Regression]: gcc.dg/weak/weak-1.c
- References: <bug-37170-507@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #81 from hp at gcc dot gnu dot org 2008-09-22 01:55 -------
Subject: Bug 37170
Author: hp
Date: Mon Sep 22 01:54:03 2008
New Revision: 140539
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140539
Log:
PR middle-end/37170
PR middle-end/37280
* final.c (mark_symbol_ref_as_used): New helper function.
(output_operand): Instead of just looking inside MEMs for
SYMBOL_REFs, use new helper function and for_each_rtx.
* varasm.c (assemble_external): Move #ifndef ASM_OUTPUT_EXTERNAL
to after weak-handling. Don't mark decls with TREE_STATIC as weak.
Make head comment more general.
* config/darwin.c (machopic_output_indirection): Handle weak
references here, like in assemble_external.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/darwin.c
trunk/gcc/final.c
trunk/gcc/varasm.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37170