| Summary: | [8 Regression] -O0 crash (ICE in decompose, at tree.h:5179) | ||
|---|---|---|---|
| Product: | gcc | Reporter: | Dmitry Babokin <babokin> |
| Component: | c | Assignee: | Not yet assigned to anyone <unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | dcb314, rsandifo, tschwinge |
| Priority: | P1 | Keywords: | ice-on-valid-code |
| Version: | 8.0 | ||
| Target Milestone: | 8.0 | ||
| Host: | Target: | ||
| Build: | Known to work: | 7.2.0 | |
| Known to fail: | 8.0 | Last reconfirmed: | 2017-10-03 00:00:00 |
| Bug Depends on: | |||
| Bug Blocks: | 103035 | ||
|
Description
Dmitry Babokin
2017-10-03 00:52:10 UTC
Bug seems to occur between revisions 253315 and 253366. I'm always willing to take the blame for things I've broken ;-) but... (In reply to Martin Liška from comment #2) > Confirmed, started with r253345. ... that sounds very unlikely. I had a quick look myself, and that would instead point to r253341 for this regression/ICE. (In reply to Thomas Schwinge from comment #3) > I'm always willing to take the blame for things I've broken ;-) but... > > (In reply to Martin Liška from comment #2) > > Confirmed, started with r253345. > > ... that sounds very unlikely. I had a quick look myself, and that would > instead point to r253341 for this regression/ICE. Sorry, I must have some issue in my bisect script. Thanks. Author: rsandifo Date: Wed Oct 4 10:50:19 2017 New Revision: 253401 URL: https://gcc.gnu.org/viewcvs?rev=253401&root=gcc&view=rev Log: PR82413: Mismatched precisions in build_range_check build_range_check explicitly allows LOW and HIGH to be a different type from EXP, so we need to use w::to_widest when comparing a value based on HIGH with a value based on EXP's type. 2017-10-04 Richard Sandiford <richard.sandiford@linaro.org> gcc/ PR tree-optimization/82413 * fold-const.c (build_range_check): Use widest_int when comparing the maximum ETYPE value with HIGH. gcc/testsuite/ PR tree-optimization/82413 * g++.dg/pr82413.C: New test. Added: trunk/gcc/testsuite/g++.dg/pr82413.C Modified: trunk/gcc/ChangeLog trunk/gcc/fold-const.c trunk/gcc/testsuite/ChangeLog Patch applied. |