[no-commit-intention] Naive unnamed fields for main_type [Re: [patch] Fix gdb-gdb.py for flds_bnds copy-pastes]

Mark Kettenis mark.kettenis@xs4all.nl
Sun Feb 12 10:20:00 GMT 2012


> From: Tom Tromey <tromey@redhat.com>
> Date: Fri, 10 Feb 2012 12:21:43 -0700
> 
> >>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
> 
> Jan> `long long' is apparently not supported by ISO C90 compilers, so it
> Jan> is a bug if GDB claims C90 compatibility.  Or what do you mean?
> 
> I mean that this is clearly a C90 violation.
> 
> Another question is whether some compilers accept parts of C99 but not
> all of it.

Quite a few compilers do.  For example, 'long long' was a popular
extension adopted by many vendors even before C99 was ratified.

On OpenBSD we still have some platforms stuck with GCC 2.95.  It
already includes quite a bit of C99 functionality, but some bits are
missing.  The most important one is that it doesn't allow declarations
after statements.  But I (and many C programmers with me) consider
that to be bad style and a C99 misfeature anyway.



More information about the Gdb-patches mailing list