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

2005-05-10 Thread ebotcazou at gcc dot gnu dot org
--- Additional Comments From ebotcazou at gcc dot gnu dot org 2005-05-10 14:24 --- > OK, I see your point. Sorry for inconvenience. I see that the status > in bugzilla has been updated accordingly. Is there anything else I > should do to close this? No, the status has already been se

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

2005-05-10 Thread drew dot johnson at andrew dot com
else I should do to close this? Drew -Original Message- From: ebotcazou at gcc dot gnu dot org [mailto:[EMAIL PROTECTED] Sent: Sunday, May 08, 2005 6:59 AM To: Johnson, Drew Subject: [Bug target/21389] optimized code seg faults due to double load on sparcV9 --- Additional Comments

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

2005-05-08 Thread ebotcazou at gcc dot gnu dot org
--- Additional Comments From ebotcazou at gcc dot gnu dot org 2005-05-08 10:58 --- > Then what is the point of the -munaligned-doubles flag? Is this simply > ignored? I understand your point about malloc, but what if we have > casts to buffers that are not mod8-aligned? Isn't that wha

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

2005-05-06 Thread drew dot johnson at andrew dot com
ginal Message- From: pinskia at gcc dot gnu dot org [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 3:08 PM To: Johnson, Drew Subject: [Bug target/21389] optimized code seg faults due to double load on sparcV9 --- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-06

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

2005-05-06 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-06 19:07 --- (In reply to comment #4) > 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

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

2005-05-06 Thread drew dot johnson at andrew dot com
mized code seg faults due to double load on sparcV9 --- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-06 18:54 --- I think you violating alignment rules in C: x = tptr[1].f3; p = (char *)tptr; p += 4; tptr = (test1 *)p; -- http://gcc.gn

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

2005-05-06 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-06 18:54 --- I think you violating alignment rules in C: x = tptr[1].f3; p = (char *)tptr; p += 4; tptr = (test1 *)p; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21389

[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 > runtime if the

[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-04 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Component|c |target http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21389