riscv32 : -mno-strict-align has no effect
Alex Rocha Prado
alex.prado@nxp.com
Mon Jan 20 01:39:00 GMT 2020
Hi,
Given the test source code below (example):
void foo(void)
{
*((int*) 0x1001) = *((int*) 0x2003);
}
I have run to compilations using the following command lines on gcc 9.2.0:
$ riscv32-unknown-elf-gcc -mno-strict-align -O2 -S -mabi=ilp32 -march=rv32i
and
$ riscv32-unknown-elf-gcc -mstrict-align -O2 -S -mabi=ilp32 -march=rv32i
It happens that both line generate the same code, so there is some kind of problem with gcc, correct ?
Regards,
Alex Rocha Prado
Public information
More information about the Gcc-help
mailing list