This is the mail archive of the gcc-patches@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]

Re: [PATCH] Don't pedwarn about static const variables in inline functions (PR c/35017)


On Tue, 29 Jan 2008, Jakub Jelinek wrote:

> 2008-01-29  Jakub Jelinek  <jakub@redhat.com>
> 
> 	PR c/35017
> 	* c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
> 	static decls.
> 	* c-typeck.c (build_external_ref): Don't pedwarn about
> 	static vars in current function's scope.
> 
> 	* gcc.dg/inline-25.c: New test.
> 	* gcc.dg/inline-26.c: New test.
> 	* gcc.dg/inline-27.c: New test.

OK.

-- 
Joseph S. Myers
joseph@codesourcery.com


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