diff options
author | Alexandre Oliva <oliva@adacore.com> | 2021-12-08 23:37:09 -0300 |
---|---|---|
committer | Alexandre Oliva <oliva@gnu.org> | 2021-12-08 23:37:09 -0300 |
commit | 2bff91f3b4e6f697823a261222186f4b5b052e86 (patch) | |
tree | cba13c4bcd310347f5c0722bd0e19077adaea3b0 /gcc/ada/gcc-interface/decl.c | |
parent | 641ff2196fe3909bba852a5ac1d55e7cdab6d361 (diff) | |
download | gcc-2bff91f3b4e6f697823a261222186f4b5b052e86.zip gcc-2bff91f3b4e6f697823a261222186f4b5b052e86.tar.gz gcc-2bff91f3b4e6f697823a261222186f4b5b052e86.tar.bz2 |
[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.
Diffstat (limited to 'gcc/ada/gcc-interface/decl.c')
0 files changed, 0 insertions, 0 deletions