This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: [no-commit-intention] Naive unnamed fields for main_type [Re: [patch] Fix gdb-gdb.py for flds_bnds copy-pastes]


On Thu, 09 Feb 2012 16:16:21 +0100, Joel Brobecker wrote:
> Personally, I don't know what the obstacles are for switching to C99
> (technical, FSF policy?).

I do not see anything even close to C90 compatibility, there are tons of
errors with `gcc -std=c90 -pedantic', `sort -u' of them below.


Regards,
Jan

coff-x86_64.c:174:13: error: ISO C90 does not support ‘long long’ [-Werror=long-long]
pex64igen.c:2114:5: error: expected expression before ‘/’ token
pex64igen.c:2114:66: error: too many decimal points in number
./dwarf2.c:3549:3: error: ISO C90 forbids mixed declarations and code [-Werror=edantic]
readline.c:826:36: warning: ISO C forbids conversion of function pointer to object pointer type [-pedantic]
rlprivate.h:462:1: error: unknown type name ‘sigjmp_buf’
opcodes/i386-dis.c:728:26: error: comma at end of enumerator list [-Werror=edantic]
gdb/
i386-tdep.c:3481:24: error: use of C99 long long integer constant [-Werror=long-long]
        gdb/common/i386-xstate.h
                #define I386_XSTATE_X87         (1ULL << 0)
error: ISO C forbids forward references to ‘enum’ types [-Werror=edantic]
error: ISO C forbids assignment between function pointer and ‘void *’ [-Werror=edantic] 
error: ISO C does not allow extra ‘;’ outside of a function [-Werror=edantic]
error: ISO C forbids empty initializer braces [-Werror=edantic]
error: array initialized from parenthesized string constant [-Werror=edantic]
error: array size missing in ‘GdbMethods’
error: excess elements in array initializer [-Werror]
error: format ‘%x’ expects argument of type ‘unsigned int *’, but argument 3 has type ‘int *’ [-Werror=format]
error: initializer element is not computable at load time [-Werror]
error: invoking macro GDBPY_NEW_EVENT_TYPE argument 6: empty macro arguments are undefined in ISO C90 and ISO C++98 [-Werror]
error: non-ISO-standard escape sequence, '\e' [-Werror]
error: string length ‘1107’ is greater than the length ‘509’ ISO C90 compilers are required to support [-Werror=overlength-strings]
error: string length ‘1912’ is greater than the length ‘509’ ISO C90 compilers are required to support [-Werror=overlength-strings]
error: struct has no members [-Werror=edantic]
error: type of bit-field ‘building_fullname’ is a GCC extension [-Werror=edantic]


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