This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Traditional C chokes on struct/union initialization in new cpplex.c
- To: Zack Weinberg <zack at wolery dot cumb dot org>
- Subject: Re: Traditional C chokes on struct/union initialization in new cpplex.c
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Fri, 07 Jul 2000 07:05:26 -0600
- cc: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <20000706101452.K284@wolery.cumb.org>you write:
> > > The way this has been handled in BFD and elsewhere is to simply
> > > omit the union initialization when ___STDC__.
> > >
> > > See this change in BFD as an example.
> > >
> > > 1999-08-06 Ian Lance Taylor <ian@zembu.com>
> > >
> > > * section.c (global_syms): Only initialize union field if
> > > __STDC__.
> > >
> > > Unless there is significant benefit, we should adopt the same
> > > conventions as other GNU projects.
> >
> > Okay, I'll do s/ANSI_PROTOTYPES/__STDC__/ in the patch.
> >
> > BTW the 3-stage completed, any other objections or is it good to go?
>
> Just a tidiness issue: perhaps you should have the definition of
> UNION_INIT in system.h so that it is available to any other file that
> might need this in the future.
Sounds like a good idea to me.
jeff