This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fortran and apple rantings...


Stan Shebs <shebs@apple.com> writes:

|> Aldy Hernandez wrote:
|> > 
|> > i've been playing with a macosX and i'm terribly disappointed that a
|> > toplevel make doesn't even build out of FSF sources.  it seems some
|> > magic bits are in the blessed apple sources.
|> 
|> Welcome to my personal hell... :-)
|> 
|> > in any case, i'm trying to bootstrap a sane compiler with the apple
|> > sources, and apple's hacked up gcc complains at the following on the
|> > apple sources (f/global.c):
|> > 
|> >     static const char *const ffeglobal_type_string_[] =
|> >     {
|> >       [999] "??",
|> >       [999] "main program",
|> 
|> These are designated initializers, which started life as a GNU
|> extension and are now part of C99.

Note that this syntax is _not_ part of C99.  The standard rather defines
this:

    static const char *const ffeglobal_type_string_[] =
    {
      [999] = "??",
      [999] = "main program",

Andreas.

-- 
Andreas Schwab                                  "And now for something
Andreas.Schwab@suse.de				completely different."
SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]