[Bug debug/80025] [5/6 Regression] ICE w/ -O2 (-O3, -Ofast) -g -ftracer (infinite recursion in rtx_equal_for_cselib_1)

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

Jakub Jelinek  changed:

   What|Removed |Added

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

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

[Bug debug/80025] [5/6 Regression] ICE w/ -O2 (-O3, -Ofast) -g -ftracer (infinite recursion in rtx_equal_for_cselib_1)

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

--- Comment #17 from Jakub Jelinek  ---
Author: jakub
Date: Tue May 30 08:22:41 2017
New Revision: 248667

URL: https://gcc.gnu.org/viewcvs?rev=248667=gcc=rev
Log:
Backported from mainline
2017-03-31  Jakub Jelinek  

PR debug/80025
* cselib.c (cselib_hasher::equal): Pass 0 to rtx_equal_for_cselib_1.
(rtx_equal_for_cselib_1): Add depth argument.  If depth
is 128, don't look up VALUE locs and punt.  Increment
depth in recursive calls when walking VALUE locs.

* gcc.dg/torture/pr80025.c: New test.

Added:
branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr80025.c
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/cselib.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog

[Bug debug/80025] [5/6 Regression] ICE w/ -O2 (-O3, -Ofast) -g -ftracer (infinite recursion in rtx_equal_for_cselib_1)

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

--- Comment #16 from Jakub Jelinek  ---
Author: jakub
Date: Fri May  5 21:48:02 2017
New Revision: 247693

URL: https://gcc.gnu.org/viewcvs?rev=247693=gcc=rev
Log:
Backported from mainline
2017-03-31  Jakub Jelinek  

PR debug/80025
* cselib.c (cselib_hasher::equal): Pass 0 to rtx_equal_for_cselib_1.
(rtx_equal_for_cselib_1): Add depth argument.  If depth
is 128, don't look up VALUE locs and punt.  Increment
depth in recursive calls when walking VALUE locs.

* gcc.dg/torture/pr80025.c: New test.

Added:
branches/gcc-6-branch/gcc/testsuite/gcc.dg/torture/pr80025.c
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/cselib.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog

[Bug debug/80025] [5/6 Regression] ICE w/ -O2 (-O3, -Ofast) -g -ftracer (infinite recursion in rtx_equal_for_cselib_1)

2017-03-31 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80025

Jakub Jelinek  changed:

   What|Removed |Added

Summary|[5/6/7 Regression] ICE w/   |[5/6 Regression] ICE w/ -O2
   |-O2 (-O3, -Ofast) -g|(-O3, -Ofast) -g -ftracer
   |-ftracer (infinite  |(infinite recursion in
   |recursion in|rtx_equal_for_cselib_1)
   |rtx_equal_for_cselib_1) |

--- Comment #15 from Jakub Jelinek  ---
Fixed on the trunk so far.