This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC problem (Was: Re: [bugs] Problem compiling the kernel)
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Bo Thorsen <bo at sonofthor dot dk>, <bugs at x86-64 dot org>, <gcc at gcc dot gnu dot org>, <aj at suse dot de>
- Date: Mon, 10 Dec 2001 16:01:11 +0000 (GMT)
- Subject: Re: GCC problem (Was: Re: [bugs] Problem compiling the kernel)
On Mon, 10 Dec 2001, Jakub Jelinek wrote:
> How big burden would to be keep supporting this in -std=gnu89 and -std=gnu99
> modes? I don't think Linux kernel is the only user of this extension.
You're the expert on initializers in GCC, not me; you'd need to handle a
COMPOUND_LITERAL_EXPR specially for objects of static storage duration in
the appropriate place, and look at the DECL_INITIAL of the
COMPOUND_LITERAL_EXPR_DECL. (Plus add a testcase and docs.)
The extension looked like a completely useless one, since (absent macros,
which I hadn't considered) why would anyone write the additional "(type)"
of the compound literal when they meant just the brace-enclosed list?
--
Joseph S. Myers
jsm28@cam.ac.uk