This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/47278] [4.3/4.4/4.5 Regression] hidden weak function not handled properly
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 8 Mar 2011 13:03:49 +0000
- Subject: [Bug tree-optimization/47278] [4.3/4.4/4.5 Regression] hidden weak function not handled properly
- Auto-submitted: auto-generated
- References: <bug-47278-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47278
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-08 13:03:38 UTC ---
Author: rguenth
Date: Tue Mar 8 13:03:34 2011
New Revision: 170775
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170775
Log:
2011-03-08 Richard Guenther <rguenther@suse.de>
PR tree-optimization/47278
* tree.h (DECL_REPLACEABLE_P): Remove.
(decl_replaceable_p): Declare.
(decl_binds_to_current_def_p): Likewise.
* varasm.c (decl_replaceable_p): New function.
(decl_binds_to_current_def_p): Likewise.
* cgraph.c (cgraph_function_body_availability): Use decl_replaceable_p.
* tree-inline.c (inlinable_function_p): Likewise.
cp/
* decl.c (finish_function): Use decl_replaceable_p.
testsuite/
* gcc.dg/torture/pr47278-1.c: New testcase.
* gcc.dg/torture/pr47278-2.c: Likewise.
Added:
branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/torture/pr47278-1.c
branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/torture/pr47278-2.c
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/cgraph.c
branches/gcc-4_5-branch/gcc/cp/ChangeLog
branches/gcc-4_5-branch/gcc/cp/decl.c
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
branches/gcc-4_5-branch/gcc/tree-inline.c
branches/gcc-4_5-branch/gcc/tree.h
branches/gcc-4_5-branch/gcc/varasm.c