From: Zack Weinberg <zack@codesourcery.com>
To: Joe Buck <jbuck@synopsys.com>
Cc: Mark Mitchell <mark@codesourcery.com>,
Joe Buck <Joe.Buck@synopsys.COM>,
"gcc@gcc.gnu.org" <gcc@gcc.gnu.org>
Subject: Re: gcc 3.2.1 draft release notes, 3rd draft
Date: Fri, 18 Oct 2002 04:48:00 -0000 [thread overview]
Message-ID: <20021018031314.GA14730@codesourcery.com> (raw)
In-Reply-To: <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;
next prev parent reply other threads:[~2002-10-18 3:13 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-14 17:38 Joe Buck
2002-10-15 1:27 ` Mark Mitchell
2002-10-15 10:10 ` Joe Buck
2002-10-15 11:33 ` Mark Mitchell
2002-10-15 19:11 ` Zack Weinberg
2002-10-15 21:19 ` Joe Buck
2002-10-18 4:48 ` Zack Weinberg [this message]
2002-10-18 5:17 ` Mark Mitchell
2002-10-18 7:42 ` John Marshall
2002-10-22 17:20 ` Zack Weinberg
2002-10-15 9:02 ` Alexandre Oliva
2002-10-15 9:18 ` Gabriel Dos Reis
2002-10-15 5:19 Reichelt
2002-10-15 13:00 Ulrich Weigand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021018031314.GA14730@codesourcery.com \
--to=zack@codesourcery.com \
--cc=Joe.Buck@synopsys.COM \
--cc=gcc@gcc.gnu.org \
--cc=jbuck@synopsys.com \
--cc=mark@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).