This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/25795] Proccessing the attribute externally_visible too early
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jan 2007 19:44:25 -0000
- Subject: [Bug c/25795] Proccessing the attribute externally_visible too early
- References: <bug-25795-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from rguenth at gcc dot gnu dot org 2007-01-05 19:44 -------
Subject: Bug 25795
Author: rguenth
Date: Fri Jan 5 19:44:10 2007
New Revision: 120495
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120495
Log:
2007-01-05 Richard Guenther <rguenther@suse.de>
Backport from mainline:
2006-06-24 Jan Hubicka <jh@suse.cz>
PR c/25795
PR c++/27369
* craph.c (cgraph_varpool_nodes): Export.
(decide_is_variable_needed): Do not worry about "used" attribute.
* cgraph.h (cgraph_varpool_nodes): Declare.
* cgraphunit.c (decide_is_function_needed): Do not worry about "used"
attribute.
(process_function_and_variable_attributes): New function.
(cgraph_finalize_compilation_unit): Call it.
* c-decl.c (finish_decl): Do not worry about used attribute.
* c-common.c (handle_externally_visible_attribute): Only validate.
* gcc.dg/pr25795.c: New testcase.
* gcc.dg/pr25795-1.c: Likewise.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/pr25795-1.c
- copied unchanged from r115693, trunk/gcc/testsuite/gcc.dg/pr25795-1.c
branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/pr25795.c
- copied unchanged from r115693, trunk/gcc/testsuite/gcc.dg/pr25795.c
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/c-common.c
branches/gcc-4_1-branch/gcc/c-decl.c
branches/gcc-4_1-branch/gcc/cgraph.c
branches/gcc-4_1-branch/gcc/cgraph.h
branches/gcc-4_1-branch/gcc/cgraphunit.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25795