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: New ARI warning Wed May 23 01:55:03 UTC 2012


> From: Tom Tromey <tromey@redhat.com>
> 
> >>>>> "Doug" == Doug Evans <dje@google.com> writes:
> 
> Doug> We've been debating whether to move to C++, and yet we can't even move
> Doug> to C99. :-(
> 
> In this particular case I think I somewhat prefer the sized types.
> 
> That said, I wouldn't mind moving to C99.  Of course, it is easy for me
> to say; the important question is whether anybody is building on hosts
> that don't have C99 compilers.

OpenBSD/vax, OpenBSD/m68k and OpenBSD/m88k are still stuck with GCC
2.95, which is almost, but not quite C99.  However, it's been ages
since I've last built GDB on any of those platforms.  So it's probably
time to stop caring about those platforms.  I fear that GDB has become
too bloated to be able to build it a typical machine that runs these
specific OpenBSD versions.  But even GCC 2.95 supports long long as an
extension to C90.

So I'd have no objection to requiring C99, except for one
style-related issue.  I really, really hate mixing declarations with
code (something that C99 started to allow).  So if we switch to
requiring C99, I think we should add a rule to the coding standards
that variables may only be declared at the start of a block.


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