From c13d6d8f5f6dc7c57ada800e75f36080efeda6a4 Mon Sep 17 00:00:00 2001 From: law Date: Mon, 10 Jan 2011 16:48:42 +0000 Subject: * PR tree-optimization/47141 * ipa-split.c (split_function): Handle case where we are returning a value and the return block has a virtual operand phi. * gcc.c-torture/compile/pr47141.c: New test. Approved by richie in IRC git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168634 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/gcc.c-torture/compile/pr47141.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/compile/pr47141.c (limited to 'gcc/testsuite/gcc.c-torture/compile/pr47141.c') diff --git a/gcc/testsuite/gcc.c-torture/compile/pr47141.c b/gcc/testsuite/gcc.c-torture/compile/pr47141.c new file mode 100644 index 00000000000..875e0fdd1c2 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr47141.c @@ -0,0 +1,16 @@ +int +foo (__UINTPTR_TYPE__ x) +{ + int a = 6; + int *b = &a; + if (x) + for (a = 0; a; a++) + ; + return a; +} + +void +bar (void) +{ + foo ((__UINTPTR_TYPE__) foo); +} -- cgit v1.2.1