aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorVladimir Makarov <vmakarov@gcc.gnu.org>2011-05-24 16:28:38 +0000
committerVladimir Makarov <vmakarov@gcc.gnu.org>2011-05-24 16:28:38 +0000
commit8c5fdaaefc5b028fed17e9cfca25f30867b1cf3b (patch)
tree4fb4b54df96d20c8e00030ffa6393278042fcecf /gcc/testsuite
parent113a5be6a925073c43ccc1bbe2df98d5dade330a (diff)
downloadgcc-8c5fdaaefc5b028fed17e9cfca25f30867b1cf3b.zip
gcc-8c5fdaaefc5b028fed17e9cfca25f30867b1cf3b.tar.gz
gcc-8c5fdaaefc5b028fed17e9cfca25f30867b1cf3b.tar.bz2
[multiple changes]
2011-05-24 Vladimir Makarov <vmakarov@redhat.com> PR rtl-optimization/48633 * ira-build.c (loop_with_eh_edge_p): New function. (mark_loops_for_removal): Use it. 2011-05-24 Michael Matz <matz@gcc.gnu.org> PR rtl-optimization/48633 * g++.dg/pr48633.C: New test. From-SVN: r174124
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/pr48633.C28
2 files changed, 33 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index bdc0f3e..beee8a6 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-24 Michael Matz <matz@gcc.gnu.org>
+
+ PR rtl-optimization/48633
+ * g++.dg/pr48633.C: New test.
+
2011-05-24 Uros Bizjak <ubizjak@gmail.com>
PR target/49133
diff --git a/gcc/testsuite/g++.dg/pr48633.C b/gcc/testsuite/g++.dg/pr48633.C
new file mode 100644
index 0000000..90f053a
--- /dev/null
+++ b/gcc/testsuite/g++.dg/pr48633.C
@@ -0,0 +1,28 @@
+/* { dg-do compile} */
+/* { dg-options "-O2 -fira-region=all -fnon-call-exceptions" } */
+extern long double getme (void);
+extern void useme (long double);
+struct Frame {
+ long double tmp;
+};
+void bugme (int n, long double ld1, long double ld2, long double ld3,
+ long double ld4, long double ld5)
+{
+ Frame f;
+ int i;
+ f.tmp = getme();
+ try {
+ for (i = 0; i < n; i++)
+ {
+ f.tmp += 1.0;
+ }
+ } catch (...) {
+ f.tmp += 1.0;
+ }
+ ld1++;
+ ld2++;
+ ld3++;
+ ld4++;
+ ld5++;
+ useme (f.tmp);
+}