Command line: gcc -msse2 -O main.c (1) The generated executable causes segmentation fault while running. It looks like some alignment problem.
(2) If test1 and test2 are called directly from main(), not through test3, the problem disappears. (3) If the line "t2 = coeffs" in test1 is commented out, ICE happens: main.c: In function `test1': main.c:33: internal compiler error: in immed_double_const, at emit-rtl.c:481 -- Summary: SSE2 intrinsics cause segmentation fault and internal compiler error Product: gcc Version: 3.4.3 Status: UNCONFIRMED Severity: normal Priority: P2 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jochang at gmail dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18779