[Bug target/57777] [4.7 Regression] Python module fails compilation with "-march=core-avx2 -O3"

lbbsome9 at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Aug 10 18:47:00 GMT 2013


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

Piotr <lbbsome9 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lbbsome9 at gmail dot com

--- Comment #11 from Piotr <lbbsome9 at gmail dot com> ---
(In reply to Julian Ospald from comment #7)
> (In reply to Jakub Jelinek from comment #6)
> > Created attachment 30425 [details]
> > gcc49-pr57777.patch
> > 
> > Untested fix.
> 
> I have tested that patch on gcc-4.8 and was able to compile the python
> module successfully with "-march=core-avx2 -O3".
> 
> gcc-4.8 is affected as well without that patch, as the title correctly says.

I had a similar situation with gcc 4.8.1, with "-O3 -march=core-avx2" and had
to pass -mno-avx2 in order to compile. For the sake of curiosity could you
confirm if "-O3 -march=core-avx2 -mno-avx2" compiles?



gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.1/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id --with-linker-hash-style=gnu
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin
--enable-initfini-array --enable-java-awt=gtk --disable-dssi
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-isl=/builddir/build/BUILD/gcc-4.8.1-20130603/obj-x86_64-redhat-linux/isl-install
--with-cloog=/builddir/build/BUILD/gcc-4.8.1-20130603/obj-x86_64-redhat-linux/cloog-install
--with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.1 20130603 (Red Hat 4.8.1-1) (GCC) 

system, fedora19



More information about the Gcc-bugs mailing list