This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [bugs] Re: GCC problem (Was: Re: [bugs] Problem compiling thekernel)
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Andreas Jaeger <aj at suse dot de>
- Cc: Bo Thorsen <bo at sonofthor dot dk>, <bugs at x86-64 dot org>, <gcc at gcc dot gnu dot org>
- Date: Mon, 10 Dec 2001 15:57:36 +0000 (GMT)
- Subject: Re: [bugs] Re: GCC problem (Was: Re: [bugs] Problem compiling thekernel)
On Mon, 10 Dec 2001, Andreas Jaeger wrote:
> > No-one spoke up in favour of this extension (treating compound literals as
> > if they were the brace-enclosed lists they contain) when I asked
> > <URL:http://gcc.gnu.org/ml/gcc/2001-11/msg01161.html>, so I killed it when
>
> Seems that nobody noticed this.:-( The Linux kernel relies on this
> (that's where the example is from) and it seems to work with GCC
> 2.95.x and GCC 3.0 also.
Can Linux be fixed not to? Because at the very least it makes no sense in
C99 mode for a compound literal to be other than an anonymous variable
initialized with particular contents, as specified in C99, and as soon as
the implementation of C99 is essentially finished (though I have no idea
when that will be) I intend to make -std=gnu99 the default, and I hope
Linux won't want to go around using the old standard by -std=gnu89 for
ever.
--
Joseph S. Myers
jsm28@cam.ac.uk