r146800 - in /trunk/gcc: ChangeLog c-decl.c c-t...
jsm28@gcc.gnu.org
jsm28@gcc.gnu.org
Sun Apr 26 13:40:00 GMT 2009
Author: jsm28
Date: Sun Apr 26 13:40:19 2009
New Revision: 146800
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146800
Log:
PR c/39556
* c-tree.h (enum c_inline_static_type): New.
(record_inline_static): Declare.
* c-decl.c (struct c_inline_static, c_inline_statics,
record_inline_static, check_inline_statics): New.
(pop_file_scope): Call check_inline_statics.
(start_decl): Call record_inline_static instead of pedwarning
directly for static in inline function.
* c-typeck.c (build_external_ref): Call record_inline_static
instead of pedwarning directly for static referenced in inline
function.
testsuite:
* gcc.dg/inline-34.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/inline-34.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-decl.c
trunk/gcc/c-tree.h
trunk/gcc/c-typeck.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list