Compilation error when using -Os

Bug #1982289 reported by Dennis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Arm Embedded Toolchain
New
Undecided
Unassigned

Bug Description

Arm GNU Toolchain Version: 11.2-2022.02
Binary package
x86_64

When I compile with -Os I get an error stating "/tmp/ccRelRdU.s:35 Error: syntax error -- `vcvtne.s32.f32 s15,s0'". Full compilation command to reproduce is "arm-none-eabi-gcc -Os -mthumb -mcpu=cortex-m55 -mlittle-endian -mfpu=fpv5-d16 -mfloat-abi=hard -c test.c -o test.o" where test.c has the following code.

int test_function(float value)
{
  int ret_val = 10;
  if (value != 0.0)
  {
    ret_val = (int) value;
  }
  return ret_val;
}

If I simply remove the "-Os" from the compilation command this error goes away.

Dennis (dennisg102)
summary: - Compliation error when using -Os
+ Compilation error when using -Os
Revision history for this message
SRINATH PARVATHANENI (sripar01) wrote :

Thanks for notifying, we are able to reproduce the mentioned issue and are working on fixing it.

Revision history for this message
Stephanos Ioannidis (stephanosio) wrote :

FYI, this is a Binutils (gas) bug and has been fixed by 656412a7a4da0aef43ead1ea976ba0235a7ec30a.

https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=656412a7a4da0aef43ead1ea976ba0235a7ec30a

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.