[Bug c/17934] gcc produces bad (misaligned?) sse2 code

2004-10-11 Thread terpstra at ito dot tu-darmstadt dot de

--- Additional Comments From terpstra at ito dot tu-darmstadt dot de  2004-10-11 
16:13 ---
Created an attachment (id=7326)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7326action=view)
The program which demonstrates the problem

Here's what I narrowed it down to.
Compile with: gcc-3.4 -msse2 -O0 test.c -o test
./test
Segfault!


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17934


[Bug c/17934] gcc produces bad (misaligned?) sse2 code

2004-10-11 Thread terpstra at ito dot tu-darmstadt dot de

--- Additional Comments From terpstra at ito dot tu-darmstadt dot de  2004-10-11 
16:17 ---
Oh, and this problem doesn't occure in gcc 3.3.
However, gcc-3.3 ICEs on the larger program.
Since it at least compiles on gcc-3.4, I assume that is a different bug which
got fixed.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17934


[Bug c/17934] gcc produces bad (misaligned?) sse2 code

2004-10-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-11 17:09 
---


*** This bug has been marked as a duplicate of 10395 ***

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17934


[Bug c/17934] gcc produces bad (misaligned?) sse2 code

2004-10-11 Thread terpstra at ito dot tu-darmstadt dot de

--- Additional Comments From terpstra at ito dot tu-darmstadt dot de  2004-10-11 
17:22 ---
This bug does not in any way involve multiple threads.
In my attached test case, gcc starts with an aligned stack and screws up the
alignment by itself.

-- 
   What|Removed |Added

 Status|RESOLVED|UNCONFIRMED
 Resolution|DUPLICATE   |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17934


[Bug c/17934] gcc produces bad (misaligned?) sse2 code

2004-10-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-11 17:26 
---
No, the problem is that main is not aligned see that bug again.

*** This bug has been marked as a duplicate of 10395 ***

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17934