[Bug c++/27369] [4.1 Regression] tree check ICE when attribute externally_visible used
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Jan 5 19:44:00 GMT 2007
------- Comment #16 from rguenth at gcc dot gnu dot org 2007-01-05 19:44 -------
Subject: Bug 27369
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=27369
More information about the Gcc-bugs
mailing list