This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]