Please keep me CC'ed as I'm currently not subscribed!

Hi!

I'm currently fixing some minor portability issues in gccrs  and stumbled over 
the following
error [1] which indicates a reference to an ARMv8 target extension in the ARM 
backend which
doesn't seem to exist:

../../gcc/config/arm/arm-rust.c:204:9: error: 'arm_arch8_5' was not declared in 
this scope; did you mean 'arm_arch8_4'?
  204 |     if (arm_arch8_5)
      |         ^~~~~~~~~~~
      |         arm_arch8_4
../../gcc/config/arm/arm-rust.c:206:9: error: 'arm_arch8_6' was not declared in 
this scope; did you mean 'arm_arch8_4'?
  206 |     if (arm_arch8_6)
      |         ^~~~~~~~~~~
      |         arm_arch8_4

Looking at gcc/config/arm.c, the highest level of ARMv8 that is supported in 
the ARM backend is 8.4,
not 8.5 and 8.6 [2]:

/* Nonzero if this chip supports the ARM Architecture 8.2 extensions.  */
int arm_arch8_2 = 0;

/* Nonzero if this chip supports the ARM Architecture 8.3 extensions.  */
int arm_arch8_3 = 0;

/* Nonzero if this chip supports the ARM Architecture 8.4 extensions.  */
int arm_arch8_4 = 0;
/* Nonzero if this chip supports the ARM Architecture 8.1-M Mainline            
                                                           
   extensions.  */
int arm_arch8_1m_main = 0;

/* Nonzero if this chip supports the FP16 instructions extension of ARM         
                                                           
   Architecture 8.2.  */
int arm_fp16_inst = 0;

Does anyone know whether the ARM backend is supposed to support the ARMv8.5 and 
ARMv8.6
baselines or are these only present in the Aarch64 backend? If the latter 
applies, I can
just delete the two if statements in arm-rust.c.

Thanks,
Adrian

> [1] https://github.com/Rust-GCC/gccrs/issues/483
> [2] https://github.com/gcc-mirror/gcc/blob/master/gcc/config/arm/arm.c#L919

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Reply via email to