This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/21389] optimized code seg faults due to double load on sparcV9
- From: "drew dot johnson at andrew dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 May 2005 18:53:50 -0000
- Subject: [Bug target/21389] optimized code seg faults due to double load on sparcV9
- References: <20050504193418.21389.drew.johnson@andrew.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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