This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] work-arround for misscompilation of crtstuff
- From: Victor Kaplansky <VICTORK at il dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: mark at codesourcery dot com, rakdver at kam dot mff dot cuni dot cz, richard dot guenther at gmail dot com
- Date: Tue, 13 Nov 2007 11:25:48 +0200
- Subject: [patch] work-arround for misscompilation of crtstuff
Hi,
This patch turns off vectorization for crtstuff in order
to work-arround the problem caused by increased
alignment with enabled vectorization. See a disscussion in
http://gcc.gnu.org/ml/gcc-patches/2007-10/msg00832.html.
Bootstrapped on PPC64.
OK, for mainline testing?
-- Victor
2007-11-13 Victor Kaplansky <victork@il.ibm.com>
* Makefile.in (CRTSTUFF_CFLAGS): Add -fno-tree-vectorize
Index: Makefile.in
===================================================================
--- Makefile.in (revision 130086)
+++ Makefile.in (working copy)
@@ -571,7 +571,7 @@ TARGET_LIBGCC2_CFLAGS =
# Options to use when compiling crtbegin/end.
CRTSTUFF_CFLAGS = -O2 $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -g0 \
-finhibit-size-directive -fno-inline-functions -fno-exceptions \
- -fno-zero-initialized-in-bss -fno-toplevel-reorder \
+ -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize \
$(INHIBIT_LIBC_CFLAGS)
# Additional sources to handle exceptions; overridden by targets as
needed.