This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Prefix attributes vs. grammar
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: Prefix attributes vs. grammar
- From: Theodore Papadopoulo <Theodore dot Papadopoulo at sophia dot inria dot fr>
- Date: Wed, 25 Jul 2001 18:16:15 +0200
- Cc: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
mark@codesourcery.com said:
> The problem is that I think we're playing a losing game: the
> backwards-compatibility issues mean that I don't think we get to
> figure out what this feature should have been. Instead, we are stuck
> with what it is.
> We were very irresponsible when we implemented these features without
> thinking them through.
> I should continue this tradition by simply implementing something
> roughly similar to what is there now without bothering to think about
> it any more. Probably, that would change the meaning of some
> programs, break some others, and enable some entirely new programs.
> However, I will try to be vaguely more conscientious.
Wouldn't it be possible to implement a correct scheme and provide a
migration program (maybe based on part of the current parser, or on the
fixinclude framework) to cannonicalize the syntax of all attributes
???
Run as a preprocessor, that would give the best of all worlds, compatibility
but a clean parser, with an easy migration path since we can emit
warnings, add or supress the special preprocessor at configure time
and eventually, add fixinclude patterns to cope with eg the windows
headers (I do not know how easy this is though).
Theo.
--------------------------------------------------------------------
Theodore Papadopoulo
Email: Theodore.Papadopoulo@sophia.inria.fr Tel: (33) 04 92 38 76 01
--------------------------------------------------------------------
PGP signature