[PATCH] ppc: avoid C99-style loop
Hans-Peter Nilsson
hp@bitrange.com
Sun Apr 25 20:27:10 GMT 2021
On Fri, 23 Apr 2021, Nick Clifton via Binutils wrote:
> Hi Jan,
>
> > While work towards using/requiring C99 is underway, this "dialect" at
> > present doesn't look to get enforced anywhere,
>
> Well except for the fact that feature of the dialect are now being used in the
> sources...
>
>
> > .../opcodes/ppc-dis.c: In function ?print_insn_powerpc?:
> > .../opcodes/ppc-dis.c:1071: error: ?for? loop initial declaration used
> > outside C99 mode
>
> That error implies that the compiler can operate in C99 mode, but that it is
> not doing so. Is this the case ? If so, then the real bug is that the
> compiler is not being given the flag(s) that it needs to enable this mode.
Perhaps blindingly obvious, perhaps obsoleted, but... is this
because we're missing AC_PROG_CC_C99 in all configure.ac?
brgds, H-P
More information about the Binutils
mailing list