aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-05-08 13:12:56 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-05-08 13:12:56 +0000
commit43896afb8b4c2f7836ea4a02cdf930bf72c468ff (patch)
tree88174d0fb4861e8b266c6b7788ef7dced0efef72 /gcc/testsuite
parentf56000ede5802f86b8ab00443090eb6ec3488773 (diff)
downloadgcc-43896afb8b4c2f7836ea4a02cdf930bf72c468ff.zip
gcc-43896afb8b4c2f7836ea4a02cdf930bf72c468ff.tar.gz
gcc-43896afb8b4c2f7836ea4a02cdf930bf72c468ff.tar.bz2
re PR tree-optimization/44030 (error: SSA name in freelist but still referenced)
2010-05-08 Richard Guenther <rguenther@suse.de> PR tree-optimization/44030 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set NECESSARY flag if we propagate from a inserted expression. * gcc.c-torture/compile/pr44030.c: New testcase. From-SVN: r159186
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr44030.c28
2 files changed, 33 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index b0d26f1..66630e8 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2010-05-08 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/44030
+ * gcc.c-torture/compile/pr44030.c: New testcase.
+
2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/lto6.adb: New test.
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr44030.c b/gcc/testsuite/gcc.c-torture/compile/pr44030.c
new file mode 100644
index 0000000..cd5d5f6
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/pr44030.c
@@ -0,0 +1,28 @@
+typedef int int32_t;
+typedef unsigned int uint32_t;
+static uint32_t
+safe_sub_func_uint32_t_u_u (uint32_t ui1, uint32_t ui2)
+{
+ return ui1 - ui2;
+}
+
+int32_t l_105[7];
+
+int32_t g_4;
+int32_t *g_54 = &g_4;
+int32_t *
+func (int32_t p_73, int32_t * p_74, int32_t p_75, int32_t * *p_76,
+ int32_t * *p_77)
+{
+lbl_110:for (g_4 = 0; g_4; g_4 = 1)
+ {
+ }
+ for (p_75 = -28; p_75; p_75 = safe_sub_func_uint32_t_u_u (p_75, 1))
+ {
+ if (g_4)
+ goto lbl_110;
+ *g_54 = 0;
+ }
+ return &l_105[5];
+}
+