From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [no-commit-intention] Naive unnamed fields for main_type [Re: [patch] Fix gdb-gdb.py for flds_bnds copy-pastes]
Date: Thu, 09 Feb 2012 15:37:00 -0000 [thread overview]
Message-ID: <20120209153642.GA12261@host2.jankratochvil.net> (raw)
In-Reply-To: <20120209151621.GB3474@adacore.com>
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]
next prev parent reply other threads:[~2012-02-09 15:37 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-09 9:28 [patch] Fix gdb-gdb.py for flds_bnds copy-pastes Jan Kratochvil
2012-02-09 9:32 ` [no-commit-intention] Naive unnamed fields for main_type [Re: [patch] Fix gdb-gdb.py for flds_bnds copy-pastes] Jan Kratochvil
2012-02-09 15:16 ` Joel Brobecker
2012-02-09 15:37 ` Jan Kratochvil [this message]
2012-02-09 18:56 ` Eli Zaretskii
2012-02-10 18:05 ` Tom Tromey
2012-02-10 19:01 ` Jan Kratochvil
2012-02-10 19:22 ` Tom Tromey
2012-02-10 19:29 ` Jan Kratochvil
2012-02-12 10:20 ` Mark Kettenis
2012-02-12 19:23 ` Jan Kratochvil
2012-02-09 19:07 ` Alfred M. Szmidt
2012-02-09 19:23 ` Stan Shebs
2012-02-10 18:07 ` Tom Tromey
2012-02-09 15:12 ` [patch] Fix gdb-gdb.py for flds_bnds copy-pastes Joel Brobecker
2012-02-09 15:15 ` [commit] " Jan Kratochvil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120209153642.GA12261@host2.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox