Compilation error when using -Os
Bug #1982289 reported by
Dennis
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.
summary: |
- Compliation error when using -Os + Compilation error when using -Os |
To post a comment you must log in.
Thanks for notifying, we are able to reproduce the mentioned issue and are working on fixing it.