This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Don't pedwarn about static const variables in inline functions (PR c/35017)
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 29 Jan 2008 21:50:39 +0000 (UTC)
- Subject: Re: [PATCH] Don't pedwarn about static const variables in inline functions (PR c/35017)
- References: <20080129210304.GN30691@devserv.devel.redhat.com>
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