* [Bug c/57777] Python module fails compilation with "-march=core-avx2 -O3"
[not found] <bug-57777-4@http.gcc.gnu.org/bugzilla/>
@ 2013-07-02 11:23 ` dirkjan at ochtman dot nl
2013-07-02 11:43 ` redi at gcc dot gnu.org
` (12 subsequent siblings)
13 siblings, 0 replies; 14+ messages in thread
From: dirkjan at ochtman dot nl @ 2013-07-02 11:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57777
--- Comment #1 from Dirkjan Ochtman <dirkjan at ochtman dot nl> ---
See https://bugs.gentoo.org/show_bug.cgi?id=475482 for more information.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/57777] Python module fails compilation with "-march=core-avx2 -O3"
[not found] <bug-57777-4@http.gcc.gnu.org/bugzilla/>
2013-07-02 11:23 ` [Bug c/57777] Python module fails compilation with "-march=core-avx2 -O3" dirkjan at ochtman dot nl
@ 2013-07-02 11:43 ` redi at gcc dot gnu.org
2013-07-02 12:33 ` julian.ospald at googlemail dot com
` (11 subsequent siblings)
13 siblings, 0 replies; 14+ messages in thread
From: redi at gcc dot gnu.org @ 2013-07-02 11:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57777
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Please provide preprocessed source of _randommodule.c
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/57777] Python module fails compilation with "-march=core-avx2 -O3"
[not found] <bug-57777-4@http.gcc.gnu.org/bugzilla/>
2013-07-02 11:23 ` [Bug c/57777] Python module fails compilation with "-march=core-avx2 -O3" dirkjan at ochtman dot nl
2013-07-02 11:43 ` redi at gcc dot gnu.org
@ 2013-07-02 12:33 ` julian.ospald at googlemail dot com
2013-07-02 15:41 ` hjl.tools at gmail dot com
` (10 subsequent siblings)
13 siblings, 0 replies; 14+ messages in thread
From: julian.ospald at googlemail dot com @ 2013-07-02 12:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57777
Julian Ospald <julian.ospald at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |julian.ospald at googlemail dot co
| |m
--- Comment #3 from Julian Ospald <julian.ospald at googlemail dot com> ---
Created attachment 30418
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30418&action=edit
_randommodule-preprocessed.c
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/57777] Python module fails compilation with "-march=core-avx2 -O3"
[not found] <bug-57777-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2013-07-02 12:33 ` julian.ospald at googlemail dot com
@ 2013-07-02 15:41 ` hjl.tools at gmail dot com
2013-07-02 17:41 ` [Bug target/57777] " jakub at gcc dot gnu.org
` (9 subsequent siblings)
13 siblings, 0 replies; 14+ messages in thread
From: hjl.tools at gmail dot com @ 2013-07-02 15:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57777
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-07-02
CC| |areg.melikadamyan at gmail dot com
Ever confirmed|0 |1
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
The problem is in
.text
vpgatherqq %ymm8, mag01.10849(,%ymm6,8), %ymm5
.section .rodata
.align 16
.type mag01.10849, @object
.size mag01.10849, 16
mag01.10849:
.quad 0
.quad 2567483615
"mag01.10849(,%ymm6,8)" isn't PC relative.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/57777] Python module fails compilation with "-march=core-avx2 -O3"
[not found] <bug-57777-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2013-07-02 15:41 ` hjl.tools at gmail dot com
@ 2013-07-02 17:41 ` jakub at gcc dot gnu.org
2013-07-02 18:49 ` [Bug target/57777] [4.7/4.8/4.9 Regression] " jakub at gcc dot gnu.org
` (8 subsequent siblings)
13 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-07-02 17:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57777
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Reduced testcase for -O3 -mavx2 -fpic:
void
foo (unsigned long *x, int *y)
{
static unsigned long b[2] = { 0x0UL, 0x9908b0dfUL };
int c;
for (c = 0; c < 512; c++)
x[c] = b[x[c] & 1UL];
}
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/57777] [4.7/4.8/4.9 Regression] Python module fails compilation with "-march=core-avx2 -O3"
[not found] <bug-57777-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2013-07-02 17:41 ` [Bug target/57777] " jakub at gcc dot gnu.org
@ 2013-07-02 18:49 ` jakub at gcc dot gnu.org
2013-07-02 18:50 ` jakub at gcc dot gnu.org
` (7 subsequent siblings)
13 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-07-02 18:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57777
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.7.4
Summary|Python module fails |[4.7/4.8/4.9 Regression]
|compilation with |Python module fails
|"-march=core-avx2 -O3" |compilation with
| |"-march=core-avx2 -O3"
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/57777] [4.7/4.8/4.9 Regression] Python module fails compilation with "-march=core-avx2 -O3"
[not found] <bug-57777-4@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2013-07-02 18:49 ` [Bug target/57777] [4.7/4.8/4.9 Regression] " jakub at gcc dot gnu.org
@ 2013-07-02 18:50 ` jakub at gcc dot gnu.org
2013-07-02 21:16 ` julian.ospald at googlemail dot com
` (6 subsequent siblings)
13 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-07-02 18:50 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57777
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 30425
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30425&action=edit
gcc49-pr57777.patch
Untested fix.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/57777] [4.7/4.8/4.9 Regression] Python module fails compilation with "-march=core-avx2 -O3"
[not found] <bug-57777-4@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2013-07-02 18:50 ` jakub at gcc dot gnu.org
@ 2013-07-02 21:16 ` julian.ospald at googlemail dot com
2013-07-02 21:37 ` julian.ospald at googlemail dot com
` (5 subsequent siblings)
13 siblings, 0 replies; 14+ messages in thread
From: julian.ospald at googlemail dot com @ 2013-07-02 21:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57777
--- Comment #7 from Julian Ospald <julian.ospald at googlemail dot com> ---
(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.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/57777] [4.7/4.8/4.9 Regression] Python module fails compilation with "-march=core-avx2 -O3"
[not found] <bug-57777-4@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2013-07-02 21:16 ` julian.ospald at googlemail dot com
@ 2013-07-02 21:37 ` julian.ospald at googlemail dot com
2013-07-03 13:49 ` julian.ospald at googlemail dot com
` (4 subsequent siblings)
13 siblings, 0 replies; 14+ messages in thread
From: julian.ospald at googlemail dot com @ 2013-07-02 21:37 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57777
--- Comment #8 from Julian Ospald <julian.ospald at googlemail dot com> ---
tested with gcc-4.7.3, and it works as well
for clarification: the previous test was with 4.8.1
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/57777] [4.7/4.8/4.9 Regression] Python module fails compilation with "-march=core-avx2 -O3"
[not found] <bug-57777-4@http.gcc.gnu.org/bugzilla/>
` (8 preceding siblings ...)
2013-07-02 21:37 ` julian.ospald at googlemail dot com
@ 2013-07-03 13:49 ` julian.ospald at googlemail dot com
2013-07-03 20:30 ` [Bug target/57777] [4.7 " jakub at gcc dot gnu.org
` (3 subsequent siblings)
13 siblings, 0 replies; 14+ messages in thread
From: julian.ospald at googlemail dot com @ 2013-07-03 13:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57777
--- Comment #9 from Julian Ospald <julian.ospald at googlemail dot com> ---
patch tested with gcc-4.9.0_alpha20130505, works as well
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/57777] [4.7 Regression] Python module fails compilation with "-march=core-avx2 -O3"
[not found] <bug-57777-4@http.gcc.gnu.org/bugzilla/>
` (9 preceding siblings ...)
2013-07-03 13:49 ` julian.ospald at googlemail dot com
@ 2013-07-03 20:30 ` jakub at gcc dot gnu.org
2013-08-10 18:47 ` lbbsome9 at gmail dot com
` (2 subsequent siblings)
13 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-07-03 20:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57777
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.7/4.8/4.9 Regression] |[4.7 Regression] Python
|Python module fails |module fails compilation
|compilation with |with "-march=core-avx2 -O3"
|"-march=core-avx2 -O3" |
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Jul 3 20:23:38 2013
New Revision: 200649
URL: http://gcc.gnu.org/viewcvs?rev=200649&root=gcc&view=rev
Log:
PR target/57777
* config/i386/predicates.md (vsib_address_operand): Disallow
SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
* gcc.target/i386/pr57777.c: New test.
Added:
trunk/gcc/testsuite/gcc.target/i386/pr57777.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/predicates.md
trunk/gcc/testsuite/ChangeLog
Author: jakub
Date: Wed Jul 3 20:24:19 2013
New Revision: 200650
URL: http://gcc.gnu.org/viewcvs?rev=200650&root=gcc&view=rev
Log:
PR target/57777
* config/i386/predicates.md (vsib_address_operand): Disallow
SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
* gcc.target/i386/pr57777.c: New test.
Added:
branches/gcc-4_8-branch/gcc/testsuite/gcc.target/i386/pr57777.c
Modified:
branches/gcc-4_8-branch/gcc/ChangeLog
branches/gcc-4_8-branch/gcc/config/i386/predicates.md
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
Fixed for 4.8.2+ so far.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/57777] [4.7 Regression] Python module fails compilation with "-march=core-avx2 -O3"
[not found] <bug-57777-4@http.gcc.gnu.org/bugzilla/>
` (10 preceding siblings ...)
2013-07-03 20:30 ` [Bug target/57777] [4.7 " jakub at gcc dot gnu.org
@ 2013-08-10 18:47 ` lbbsome9 at gmail dot com
2014-05-07 16:00 ` jakub at gcc dot gnu.org
2014-05-07 16:18 ` jakub at gcc dot gnu.org
13 siblings, 0 replies; 14+ messages in thread
From: lbbsome9 at gmail dot com @ 2013-08-10 18:47 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/57777] [4.7 Regression] Python module fails compilation with "-march=core-avx2 -O3"
[not found] <bug-57777-4@http.gcc.gnu.org/bugzilla/>
` (11 preceding siblings ...)
2013-08-10 18:47 ` lbbsome9 at gmail dot com
@ 2014-05-07 16:00 ` jakub at gcc dot gnu.org
2014-05-07 16:18 ` jakub at gcc dot gnu.org
13 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-05-07 16:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57777
--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed May 7 15:59:37 2014
New Revision: 210169
URL: http://gcc.gnu.org/viewcvs?rev=210169&root=gcc&view=rev
Log:
Backported from mainline
2013-07-03 Jakub Jelinek <jakub@redhat.com>
PR target/57777
* config/i386/predicates.md (vsib_address_operand): Disallow
SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
* gcc.target/i386/pr57777.c: New test.
Added:
branches/gcc-4_7-branch/gcc/testsuite/gcc.target/i386/pr57777.c
Modified:
branches/gcc-4_7-branch/gcc/ChangeLog
branches/gcc-4_7-branch/gcc/config/i386/predicates.md
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/57777] [4.7 Regression] Python module fails compilation with "-march=core-avx2 -O3"
[not found] <bug-57777-4@http.gcc.gnu.org/bugzilla/>
` (12 preceding siblings ...)
2014-05-07 16:00 ` jakub at gcc dot gnu.org
@ 2014-05-07 16:18 ` jakub at gcc dot gnu.org
13 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-05-07 16:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57777
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 14+ messages in thread