mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-15 12:41:03 +08:00
re PR tree-optimization/49997 (ICE in inline_small_functions with -fnon-call-exceptions)
2011-12-06 Richard Guenther <rguenther@suse.de> PR tree-optimization/49997 * gcc.dg/torture/pr49997.c: New testcase. From-SVN: r182049
This commit is contained in:
parent
f7fb28800d
commit
f748cd6bb4
@ -1,3 +1,8 @@
|
||||
2011-12-06 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR tree-optimization/49997
|
||||
* gcc.dg/torture/pr49997.c: New testcase.
|
||||
|
||||
2011-12-06 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR middle-end/51436
|
||||
|
25
gcc/testsuite/gcc.dg/torture/pr49997.c
Normal file
25
gcc/testsuite/gcc.dg/torture/pr49997.c
Normal file
@ -0,0 +1,25 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-finline-functions -fnon-call-exceptions" } */
|
||||
|
||||
extern int g_78, g_223;
|
||||
static int MOD(int si1, int si2) {
|
||||
return (!si2 || (!si1 && si2)) ? si1 : (si1 % 3);
|
||||
}
|
||||
void func_65(int p_66) {
|
||||
g_78 = MOD(p_66, 3);
|
||||
}
|
||||
void func_54(int si1) {
|
||||
func_65(0);
|
||||
func_65(1);
|
||||
func_65(2);
|
||||
while (g_223) {
|
||||
MOD(si1, 3);
|
||||
func_65(3);
|
||||
func_65(4);
|
||||
func_65(5);
|
||||
func_65(6);
|
||||
func_65(7);
|
||||
func_65(8);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user