[Bug rtl-optimization/91173] [9 Regression] ICE: in int_mode_for_mode, at stor-layout.c:403

2019-07-23 Thread mbelivea at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91173

Matthew Beliveau  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #8 from Matthew Beliveau  ---
Backported

[Bug rtl-optimization/91173] [9 Regression] ICE: in int_mode_for_mode, at stor-layout.c:403

2019-07-23 Thread mbelivea at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91173

--- Comment #7 from Matthew Beliveau  ---
Author: mbelivea
Date: Tue Jul 23 15:56:22 2019
New Revision: 273741

URL: https://gcc.gnu.org/viewcvs?rev=273741=gcc=rev
Log:
PR rtl-optimization/91173

Backported from mainline
2019-07-16  Jeff Law  

PR rtl-optimization/91173
* tree-ssa-address.c (addr_for_mem_ref): If the base is an
SSA_NAME with a constant value, fold its value into the offset
and clear the base before calling gen_addr_rtx.
* g++.dg/pr91173.C: New test.

Added:
branches/gcc-9-branch/gcc/testsuite/g++.dg/pr91173.C
Modified:
branches/gcc-9-branch/gcc/ChangeLog
branches/gcc-9-branch/gcc/tree-ssa-address.c

[Bug rtl-optimization/91173] [9 Regression] ICE: in int_mode_for_mode, at stor-layout.c:403

2019-07-23 Thread mbelivea at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91173

--- Comment #6 from Matthew Beliveau  ---
Author: mbelivea
Date: Tue Jul 23 15:52:48 2019
New Revision: 273740

URL: https://gcc.gnu.org/viewcvs?rev=273740=gcc=rev
Log:
PR rtl-optimization/91173

Backported from mainline
2019-07-16  Jeff Law  

PR rtl-optimization/91173
* tree-ssa-address.c (addr_for_mem_ref): If the base is an
SSA_NAME with a constant value, fold its value into the offset
and clear the base before calling gen_addr_rtx.
* g++.dg/pr91173.C: New test.

Added:
branches/gcc-8-branch/gcc/testsuite/g++.dg/pr91173.C
Modified:
branches/gcc-8-branch/gcc/ChangeLog
branches/gcc-8-branch/gcc/tree-ssa-address.c

[Bug rtl-optimization/91173] [9 Regression] ICE: in int_mode_for_mode, at stor-layout.c:403

2019-07-16 Thread law at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91173

--- Comment #5 from Jeffrey A. Law  ---
Author: law
Date: Tue Jul 16 14:57:51 2019
New Revision: 273531

URL: https://gcc.gnu.org/viewcvs?rev=273531=gcc=rev
Log:
PR rtl-optimization/91173
* g++.dg/pr91173.C: New test.

Added:
trunk/gcc/testsuite/g++.dg/pr91173.C
Modified:
trunk/gcc/testsuite/ChangeLog

[Bug rtl-optimization/91173] [9 Regression] ICE: in int_mode_for_mode, at stor-layout.c:403

2019-07-16 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91173

Jeffrey A. Law  changed:

   What|Removed |Added

Summary|[9/10 Regression] ICE: in   |[9 Regression] ICE: in
   |int_mode_for_mode, at   |int_mode_for_mode, at
   |stor-layout.c:403   |stor-layout.c:403

--- Comment #4 from Jeffrey A. Law  ---
Fixed on the trunk so far.  Will be backporting to at least some of the release
branches after soak time.