do we still care about building with gcc-4.9?

Alice Carlotti alice.carlotti@arm.com
Wed Jul 15 13:15:56 GMT 2026


On Wed, Jul 15, 2026 at 03:10:05PM +0200, Jan Beulich wrote:
> On 15.07.2026 15:02, Alan Modra wrote:
> > gcc-4.9 does not like the parentheses or cast in AARCH64_FIELD when
> > used in an initialiser:
> > 
> > opcodes/aarch64-opc-2.c:29:3: error: initializer element is not constant
> >    {AARCH64_OPND_CLASS_INT_REG, "Rd", OPD_F_HAS_INSERTER | OPD_F_HAS_EXTRACTOR, {AARCH64_FIELD (0, 5)}, "an integer register"},
> >    ^
> > opcodes/aarch64-opc-2.c:29:3: error: (near initialization for ‘aarch64_operands[1].fields[0]’)
> > 
> 
> To answer your question - I'd much prefer if we did. One of my main test
> systems is at 4.8.5.
> 
> Jan

If this is only a problem in aarch64-opc-2.c, which is a generated file, then
it should be straightforward to modify the generator to avoid using the macro.
I'll sort out a patch for that later today.

Alice


More information about the Binutils mailing list