[Bug c/21389] New: optimized code seg faults due to double load on sparcV9

2005-05-04 Thread drew dot johnson at andrew dot com
dot johnson at andrew dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: 3.4.2 GCC host triplet: sparc-sun-solaris2.8 GCC target triplet: sparc-sun-solaris2.8 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21389

[Bug c/21389] optimized code seg faults due to double load on sparcV9

2005-05-04 Thread drew dot johnson at andrew dot com
--- Additional Comments From drew dot johnson at andrew dot com 2005-05-04 19:38 --- Created an attachment (id=8820) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8820&action=view) compile with -O3 or higher, and execution generates seg-fault The included file compiles wi

[Bug target/21389] optimized code seg faults due to double load on sparcV9

2005-05-06 Thread drew dot johnson at andrew dot com
-- What|Removed |Added Attachment #8820|compile with -O3 or higher, |compile with -O1 or higher, description|and execution generates seg-|and execution generates seg-

[Bug target/21389] optimized code seg faults due to double load on sparcV9

2005-05-06 Thread drew dot johnson at andrew dot com
--- 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 > runti

[Bug target/21389] optimized code seg faults due to double load on sparcV9

2005-05-06 Thread drew dot johnson at andrew dot com
--- Additional Comments From drew dot johnson at andrew dot com 2005-05-06 19:04 --- Subject: RE: optimized code seg faults due to double load on sparcV9 I don't think so. Malloc does not guarantee anything but mod-4 alignment. You have to use memalign to get something bette

[Bug target/21389] optimized code seg faults due to double load on sparcV9

2005-05-06 Thread drew dot johnson at andrew dot com
--- Additional Comments From drew dot johnson at andrew dot com 2005-05-06 19:47 --- Subject: RE: optimized code seg faults due to double load on sparcV9 Then what is the point of the -munaligned-doubles flag? Is this simply ignored? I understand your point about malloc, but what if

[Bug target/21389] optimized code seg faults due to double load on sparcV9

2005-05-10 Thread drew dot johnson at andrew dot com
--- Additional Comments From drew dot johnson at andrew dot com 2005-05-10 12:57 --- Subject: RE: optimized code seg faults due to double load on sparcV9 OK, I see your point. Sorry for inconvenience. I see that the status in bugzilla has been updated accordingly. Is there anything