Re: New ARI warning Wed May 23 01:55:03 UTC 2012

Maciej W. Rozycki
2012-05-29T13:29:00Z

On Mon, 28 May 2012, Mark Kettenis wrote:

> 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.

Interesting, I found GCC 4.1.2 working reasonably well for the VAX
target, other versions are probably OK too -- why did OpenBSD stick to
such an old version for that target?

Anyway, I reckon GCC used to support long long even before that, although
there might have been issues.

> 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.

FWIW, I concur. I find them confusing and easy to avoid.

Maciej