This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r120495 - in /branches/gcc-4_1-branch/gcc: Chan...


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]