This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
For what it is worth the xlc lslpp information is Fileset Level State Description xlC.C 3.1.4.0 C C for AIX Compiler I note that my copy of the ANSI-C Standard ISO/IEC 9899: 1990 Programming languages-C doesn't have the trailing comma varient in section 6.5.2.2 A colleague notes that VMS Dec C gives a warning for the idiom. ____________________Reply Separator____________________ Subject: Re: 4.17.86 on AIX 4.2.0.0 using IBM xlc Author: Andrew Cagney <ac131313@cygnus.com> Date: 17/03/99 19:24 Andrew Cagney wrote: > > rodneybrown@pmsc.com wrote: > > > > AIX 4.2.0.0 xlc gives an error for trailing commas in enum declarations > > Specifically compiling gdb-4.17.86/gdb/blockframe.c it gives > > > > "gdb-4.17.86/gdb/target.h", line 57.22: 1506-046 (S) Syntax error. > > "gdb-4.17.86/gdb/breakpoint.h", line 114.17: 1506-046 (S) Syntax error. > > Thanks, Hmm (is this a nightmare comming true?), Looking at C manual: 6.5.2.2 Enumeration specifiers Syntax enum-specifier: enum identifieropt { enumerator-list } enum identifieropt { enumerator-list , } enum identifier enumerator-list: enumerator enumerator-list , enumerator enumerator: enumeration-constant enumeration-constant = constant-expression and the relevant line: enum thread_control_capabilities { tc_none = 0, /* Default: can't control thread execution. */ tc_schedlock = 1, /* Can lock the thread scheduler. */ tc_switch = 2, /* Can switch the running thread on demand. */ }; So, what to do about this one? Andrew