riscv32 : -mno-strict-align has no effect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  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






[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux