middle-end/95171 - inlining of trapping compare into non-call EH fn
authorRichard Biener <rguenther@suse.de>
Mon, 18 May 2020 06:51:23 +0000 (08:51 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 18 May 2020 10:27:53 +0000 (12:27 +0200)
commitfe168751c5c1c517c7c89c9a1e4e561d66b24663
tree14205bc73e57021f4079ec12868dd2362fa44e13
parent52a0f83980082c9995f2d8ec9b88548520fb8a5f
middle-end/95171 - inlining of trapping compare into non-call EH fn

This fixes always-inlining across -fnon-call-exception boundaries
for conditions which we do not allow to throw.

2020-05-18  Richard Biener  <rguenther@suse.de>

PR middle-end/95171
* tree-inline.c (remap_gimple_stmt): Split out trapping compares
when inlining into a non-call EH function.

* gcc.dg/pr95171.c: New testcase.
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr95171.c [new file with mode: 0644]
gcc/tree-inline.c