------- Comment #9 from mahatma at eu dot by  2009-09-19 16:12 -------
Created an attachment (id=18608)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18608&action=view)
sse & 32bit -> -mstackrealign (example only!)

Previous my ideas too heavy. :)
IMHO native solution for this problem is "-mstackrealign". It solving problems
with known to me packages (including zlib). I trying to make
STACK_REALIGN_DEFAULT related from TARGET_SSE && !TARGET_64BIT (see patch). But
got "internal compiler error" on gcc self-compiling with "-march=pentium4".
Without sse (=without -mstackrealign) self-compiling works.

Why -mstackrealign may be bad and why gcc dont' self-compiling so?

Error:
===
/var/tmp/portage/sys-devel/gcc-4.4.1/work/build/./gcc/xgcc
-B/var/tmp/portage/sys-devel/gcc-4.4.1/work/build/./gcc/
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem
/usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -g
-mtune=pentium4 -march=pentium4 -pipe -w -O2 -O2  -g -mtune=pentium4
-march=pentium4 -pipe -w -O2 -DIN_GCC   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition 
-isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED   -I. -I. -I../.././gcc
-I/var/tmp/portage/sys-devel/gcc-4.4.1/work/gcc-4.4.1/libgcc
-I/var/tmp/portage/sys-devel/gcc-4.4.1/work/gcc-4.4.1/libgcc/.
-I/var/tmp/portage/sys-devel/gcc-4.4.1/work/gcc-4.4.1/libgcc/../gcc
-I/var/tmp/portage/sys-devel/gcc-4.4.1/work/gcc-4.4.1/libgcc/../include
-I/var/tmp/portage/sys-devel/gcc-4.4.1/work/gcc-4.4.1/libgcc/config/libbid
-DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o unwind-c.o -MT
unwind-c.o -MD -MP -MF unwind-c.dep -fexceptions -c
/var/tmp/portage/sys-devel/gcc-4.4.1/work/gcc-4.4.1/libgcc/../gcc/unwind-c.c
-fvisibility=hidden -DHIDE_EXPORTS
In file included from
/var/tmp/portage/sys-devel/gcc-4.4.1/work/gcc-4.4.1/libgcc/../gcc/unwind-dw2.c:1555:
/var/tmp/portage/sys-devel/gcc-4.4.1/work/gcc-4.4.1/libgcc/../gcc/unwind.inc:
In function '_Unwind_ForcedUnwind':
/var/tmp/portage/sys-devel/gcc-4.4.1/work/gcc-4.4.1/libgcc/../gcc/unwind.inc:212:
internal compiler error: in ix86_expand_epilogue, at config/i386/i386.c:8570
===


-- 


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

Reply via email to