This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 3.2.1 draft release notes, 3rd draft
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Joe Buck <jbuck at synopsys dot com>
- Cc: Mark Mitchell <mark at codesourcery dot com>, Joe Buck <Joe dot Buck at synopsys dot COM>,"gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Thu, 17 Oct 2002 20:13:14 -0700
- Subject: Re: gcc 3.2.1 draft release notes, 3rd draft
- References: <20021016003507.GL15067@codesourcery.com> <200210160139.g9G1dbX24187@piper.synopsys.com>
On Tue, Oct 15, 2002 at 06:39:37PM -0700, Joe Buck wrote:
> Zack writes:
>
> > It would be easy to insert in here
> >
> > advice ("Please use __typeof() instead");
>
> OK with me, I wanted to do something to minimize re-reporting of this
> issue.
For now, how's this patch look?
zw
* c-decl.c, cp/decl.c (start_decl): Point users of old
"initialized typedef" extension at __typeof.
===================================================================
Index: c-decl.c
--- c-decl.c 9 Oct 2002 21:27:35 -0000 1.351
+++ c-decl.c 18 Oct 2002 03:12:07 -0000
@@ -2821,7 +2821,7 @@ start_decl (declarator, declspecs, initi
switch (TREE_CODE (decl))
{
case TYPE_DECL:
- error ("typedef `%s' is initialized",
+ error ("typedef `%s' is initialized (use __typeof instead)",
IDENTIFIER_POINTER (DECL_NAME (decl)));
initialized = 0;
break;
===================================================================
Index: cp/decl.c
--- cp/decl.c 15 Oct 2002 23:59:19 -0000 1.950
+++ cp/decl.c 18 Oct 2002 03:12:11 -0000
@@ -7292,7 +7292,7 @@ start_decl (declarator, declspecs, initi
switch (TREE_CODE (decl))
{
case TYPE_DECL:
- error ("typedef `%D' is initialized", decl);
+ error ("typedef `%D' is initialized (use __typeof instead)", decl);
initialized = 0;
break;