[Bug middle-end/77377] [7 Regression] c-c++-common/pr59037.c ICEs with -fpic -msse on i686

2017-05-30 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77377

--- Comment #8 from Jakub Jelinek  ---
Author: jakub
Date: Tue May 30 07:17:45 2017
New Revision: 248601

URL: https://gcc.gnu.org/viewcvs?rev=248601=gcc=rev
Log:
Backported from mainline
2016-08-30  Jakub Jelinek  

PR middle-end/77377
* simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
constant pool reference return x instead of c.

* gcc.target/i386/pr77377.c: New test.

Added:
branches/gcc-5-branch/gcc/testsuite/gcc.target/i386/pr77377.c
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/simplify-rtx.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog

[Bug middle-end/77377] [7 Regression] c-c++-common/pr59037.c ICEs with -fpic -msse on i686

2016-11-05 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77377

Jakub Jelinek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from Jakub Jelinek  ---
Fixed.

[Bug middle-end/77377] [7 Regression] c-c++-common/pr59037.c ICEs with -fpic -msse on i686

2016-09-07 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77377

Martin Liška  changed:

   What|Removed |Added

 CC||zsojka at seznam dot cz

--- Comment #6 from Martin Liška  ---
*** Bug 77401 has been marked as a duplicate of this bug. ***


[Bug middle-end/77377] [7 Regression] c-c++-common/pr59037.c ICEs with -fpic -msse on i686

2016-09-01 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77377

--- Comment #5 from Jakub Jelinek  ---
Author: jakub
Date: Thu Sep  1 11:42:22 2016
New Revision: 239929

URL: https://gcc.gnu.org/viewcvs?rev=239929=gcc=rev
Log:
Backported from mainline
2016-08-30  Jakub Jelinek  

PR middle-end/77377
* simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
constant pool reference return x instead of c.

* gcc.target/i386/pr77377.c: New test.

Added:
branches/gcc-6-branch/gcc/testsuite/gcc.target/i386/pr77377.c
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/simplify-rtx.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog

[Bug middle-end/77377] [7 Regression] c-c++-common/pr59037.c ICEs with -fpic -msse on i686

2016-08-30 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77377

--- Comment #4 from Jakub Jelinek  ---
Author: jakub
Date: Tue Aug 30 06:45:56 2016
New Revision: 239854

URL: https://gcc.gnu.org/viewcvs?rev=239854=gcc=rev
Log:
PR middle-end/77377
* simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
constant pool reference return x instead of c.

* gcc.target/i386/pr77377.c: New test.

Added:
trunk/gcc/testsuite/gcc.target/i386/pr77377.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/simplify-rtx.c
trunk/gcc/testsuite/ChangeLog

[Bug middle-end/77377] [7 Regression] c-c++-common/pr59037.c ICEs with -fpic -msse on i686

2016-08-29 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77377

Jakub Jelinek  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek  ---
Created attachment 39508
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39508=edit
gcc7-pr77377.patch

Untested fix.

[Bug middle-end/77377] [7 Regression] c-c++-common/pr59037.c ICEs with -fpic -msse on i686

2016-08-25 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77377

H.J. Lu  changed:

   What|Removed |Added

 CC||hjl.tools at gmail dot com

--- Comment #2 from H.J. Lu  ---
It may be caused by r236630.

[Bug middle-end/77377] [7 Regression] c-c++-common/pr59037.c ICEs with -fpic -msse on i686

2016-08-25 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77377

--- Comment #1 from Uroš Bizjak  ---
It looks that cse2 pass attaches wrong REG_EQUAL note:

(insn 8 4 13 2 (set (reg:SI 93)
(mem/u/j:SI (plus:SI (reg:SI 87)
(const:SI (plus:SI (unspec:SI [
(symbol_ref/u:SI ("*.LC0") [flags 0x2])
] UNSPEC_GOTOFF)
(const_int 16 [0x10] [1  S4 A128])) 82
{*movsi_internal}
 (expr_list:REG_EQUAL (const_vector:V4SI [
(const_int 3 [0x3])
(const_int 2 [0x2])
(const_int 1 [0x1])
(const_int 0 [0])
])
(expr_list:REG_DEAD (reg:SI 87)
(nil
(insn 13 8 14 2 (set (reg/i:SI 0 ax)
(reg:SI 93)) pr59037.c:12 82 {*movsi_internal}
 (expr_list:REG_EQUAL (const_vector:V4SI [
(const_int 3 [0x3])
(const_int 2 [0x2])
(const_int 1 [0x1])
(const_int 0 [0])
])
(expr_list:REG_DEAD (reg:SI 93)
(nil

[Bug middle-end/77377] [7 Regression] c-c++-common/pr59037.c ICEs with -fpic -msse on i686

2016-08-25 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77377

Uroš Bizjak  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2016-08-25
  Component|rtl-optimization|middle-end
 Ever confirmed|0   |1