public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/103024] New: ICE in execute, at gimple-harden-conditionals.cc:424
@ 2021-11-01 14:51 marxin at gcc dot gnu.org
2021-11-01 14:52 ` [Bug tree-optimization/103024] " marxin at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-11-01 14:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103024
Bug ID: 103024
Summary: ICE in execute, at gimple-harden-conditionals.cc:424
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: aoliva at gcc dot gnu.org
Target Milestone: ---
The following fails:
$ cat ice.ii
struct G4ErrorMatrix {
G4ErrorMatrix(int);
~G4ErrorMatrix();
};
double PropagateError_charge;
void PropagateError() {
G4ErrorMatrix transf(0);
int field(PropagateError_charge && field);
}
$ g++ ice.ii -c -fnon-call-exceptions -fharden-compares -fsignaling-nans
during GIMPLE pass: hardcmp
ice.ii: In function ‘void PropagateError()’:
ice.ii:6:6: internal compiler error: in execute, at
gimple-harden-conditionals.cc:424
6 | void PropagateError() {
| ^~~~~~~~~~~~~~
0x96aa89 execute
/home/marxin/Programming/gcc/gcc/gimple-harden-conditionals.cc:424
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/103024] ICE in execute, at gimple-harden-conditionals.cc:424
2021-11-01 14:51 [Bug tree-optimization/103024] New: ICE in execute, at gimple-harden-conditionals.cc:424 marxin at gcc dot gnu.org
@ 2021-11-01 14:52 ` marxin at gcc dot gnu.org
2021-11-01 21:09 ` pinskia at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-11-01 14:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103024
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2021-11-01
Target Milestone|--- |12.0
Status|UNCONFIRMED |NEW
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/103024] ICE in execute, at gimple-harden-conditionals.cc:424
2021-11-01 14:51 [Bug tree-optimization/103024] New: ICE in execute, at gimple-harden-conditionals.cc:424 marxin at gcc dot gnu.org
2021-11-01 14:52 ` [Bug tree-optimization/103024] " marxin at gcc dot gnu.org
@ 2021-11-01 21:09 ` pinskia at gcc dot gnu.org
2021-11-01 21:12 ` [Bug tree-optimization/103024] ICE in execute, at gimple-harden-conditionals.cc:424 with -fnon-call-exceptions -fharden-compares -fsignaling-nans pinskia at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-01 21:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103024
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|12.0 |---
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/103024] ICE in execute, at gimple-harden-conditionals.cc:424 with -fnon-call-exceptions -fharden-compares -fsignaling-nans
2021-11-01 14:51 [Bug tree-optimization/103024] New: ICE in execute, at gimple-harden-conditionals.cc:424 marxin at gcc dot gnu.org
2021-11-01 14:52 ` [Bug tree-optimization/103024] " marxin at gcc dot gnu.org
2021-11-01 21:09 ` pinskia at gcc dot gnu.org
@ 2021-11-01 21:12 ` pinskia at gcc dot gnu.org
2021-12-03 9:57 ` aoliva at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-01 21:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103024
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Yes with -fnon-call-exceptions and -fsignaling-nans conditionals can (and
might) throw an exception. Maybe a sorry early during option processing should
happen and turn off hardening of condtionals.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/103024] ICE in execute, at gimple-harden-conditionals.cc:424 with -fnon-call-exceptions -fharden-compares -fsignaling-nans
2021-11-01 14:51 [Bug tree-optimization/103024] New: ICE in execute, at gimple-harden-conditionals.cc:424 marxin at gcc dot gnu.org
` (2 preceding siblings ...)
2021-11-01 21:12 ` [Bug tree-optimization/103024] ICE in execute, at gimple-harden-conditionals.cc:424 with -fnon-call-exceptions -fharden-compares -fsignaling-nans pinskia at gcc dot gnu.org
@ 2021-12-03 9:57 ` aoliva at gcc dot gnu.org
2021-12-09 2:38 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: aoliva at gcc dot gnu.org @ 2021-12-03 9:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103024
Alexandre Oliva <aoliva at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |aoliva at gcc dot gnu.org
Status|NEW |ASSIGNED
--- Comment #2 from Alexandre Oliva <aoliva at gcc dot gnu.org> ---
Mine
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/103024] ICE in execute, at gimple-harden-conditionals.cc:424 with -fnon-call-exceptions -fharden-compares -fsignaling-nans
2021-11-01 14:51 [Bug tree-optimization/103024] New: ICE in execute, at gimple-harden-conditionals.cc:424 marxin at gcc dot gnu.org
` (3 preceding siblings ...)
2021-12-03 9:57 ` aoliva at gcc dot gnu.org
@ 2021-12-09 2:38 ` cvs-commit at gcc dot gnu.org
2021-12-09 2:53 ` aoliva at gcc dot gnu.org
2021-12-29 21:23 ` pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-12-09 2:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103024
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Alexandre Oliva <aoliva@gcc.gnu.org>:
https://gcc.gnu.org/g:2bff91f3b4e6f697823a261222186f4b5b052e86
commit r12-5851-g2bff91f3b4e6f697823a261222186f4b5b052e86
Author: Alexandre Oliva <oliva@adacore.com>
Date: Wed Dec 8 23:37:09 2021 -0300
[PR103024,PR103530] support throwing compares and non-boolean types
This patch adjusts the harden-compares pass to cope with compares that
end basic blocks, and to accept non-boolean integral types whose
conversion to boolean may have been discarded.
for gcc/ChangeLog
PR tree-optimization/103024
PR middle-end/103530
* gimple-harden-conditionals.cc (non_eh_succ_edge): New.
(pass_harden_compares::execute): Accept 1-bit integral types,
and cope with throwing compares.
for gcc/testsuite/ChangeLog
PR tree-optimization/103024
PR middle-end/103530
* g++.dg/pr103024.C: New.
* g++.dg/pr103530.C: New.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/103024] ICE in execute, at gimple-harden-conditionals.cc:424 with -fnon-call-exceptions -fharden-compares -fsignaling-nans
2021-11-01 14:51 [Bug tree-optimization/103024] New: ICE in execute, at gimple-harden-conditionals.cc:424 marxin at gcc dot gnu.org
` (4 preceding siblings ...)
2021-12-09 2:38 ` cvs-commit at gcc dot gnu.org
@ 2021-12-09 2:53 ` aoliva at gcc dot gnu.org
2021-12-29 21:23 ` pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: aoliva at gcc dot gnu.org @ 2021-12-09 2:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103024
Alexandre Oliva <aoliva at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Alexandre Oliva <aoliva at gcc dot gnu.org> ---
Fixed
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/103024] ICE in execute, at gimple-harden-conditionals.cc:424 with -fnon-call-exceptions -fharden-compares -fsignaling-nans
2021-11-01 14:51 [Bug tree-optimization/103024] New: ICE in execute, at gimple-harden-conditionals.cc:424 marxin at gcc dot gnu.org
` (5 preceding siblings ...)
2021-12-09 2:53 ` aoliva at gcc dot gnu.org
@ 2021-12-29 21:23 ` pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-29 21:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103024
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |12.0
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-12-29 21:23 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-01 14:51 [Bug tree-optimization/103024] New: ICE in execute, at gimple-harden-conditionals.cc:424 marxin at gcc dot gnu.org
2021-11-01 14:52 ` [Bug tree-optimization/103024] " marxin at gcc dot gnu.org
2021-11-01 21:09 ` pinskia at gcc dot gnu.org
2021-11-01 21:12 ` [Bug tree-optimization/103024] ICE in execute, at gimple-harden-conditionals.cc:424 with -fnon-call-exceptions -fharden-compares -fsignaling-nans pinskia at gcc dot gnu.org
2021-12-03 9:57 ` aoliva at gcc dot gnu.org
2021-12-09 2:38 ` cvs-commit at gcc dot gnu.org
2021-12-09 2:53 ` aoliva at gcc dot gnu.org
2021-12-29 21:23 ` pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).