[Bug target/21389] optimized code seg faults due to double load on sparcV9
drew dot johnson at andrew dot com
gcc-bugzilla@gcc.gnu.org
Fri May 6 18:53:00 GMT 2005
------- Additional Comments From drew dot johnson at andrew dot com 2005-05-06 18:53 -------
(In reply to comment #0)
> When -O3 or higher is used, the optimizer utilizes the lddf sparc
instruction
> to load doubles into registers. This can generate a bus-error/seg-fault at
> runtime if the source address of the load is not mod8. The optimizer does
not
> check this, even with -munaligned-doubles set.
This actually fails when -O1 or higher is used. For some reason, I thought
that -O2 was the default.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21389
More information about the Gcc-bugs
mailing list