aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2015-07-01 16:10:30 +0000
committerBernd Edlinger <edlinger@gcc.gnu.org>2015-07-01 16:10:30 +0000
commit1e67793833846d12abe78f4291a07773d2f13a04 (patch)
treead11a1fdf4189e71a1e3553b55648b9be30389dc /gcc/testsuite
parent2ee05f1e9be5f02d4c874262d27e1eff96a301f0 (diff)
downloadgcc-1e67793833846d12abe78f4291a07773d2f13a04.zip
gcc-1e67793833846d12abe78f4291a07773d2f13a04.tar.gz
gcc-1e67793833846d12abe78f4291a07773d2f13a04.tar.bz2
re PR rtl-optimization/61047 (wrong code at -O1 on x86_64-linux)
gcc/ChangeLog: 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de> PR rtl-optimization/61047 * rtlanal.c (get_initial_register_offset): New function. (rtx_addr_can_trap_p_1): Check offsets of stack references. testsuite/ChangeLog: 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de> PR rtl-optimization/61047 * gcc.c-torture/execute/20150611-1.c: New testcase. From-SVN: r225260
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20150611-1.c18
2 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 1ff34ca..4dff233 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
+
+ PR rtl-optimization/61047
+ * gcc.c-torture/execute/20150611-1.c: New testcase.
+
2015-07-01 David Malcolm <dmalcolm@redhat.com>
PR jit/66700
diff --git a/gcc/testsuite/gcc.c-torture/execute/20150611-1.c b/gcc/testsuite/gcc.c-torture/execute/20150611-1.c
new file mode 100644
index 0000000..ba34fa2
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/execute/20150611-1.c
@@ -0,0 +1,18 @@
+int a, c, d;
+short b;
+
+int
+main ()
+{
+ int e[1];
+ for (; b < 2; b++)
+ {
+ a = 0;
+ if (b == 28378)
+ a = e[b];
+ if (!(d || b))
+ for (; c;)
+ ;
+ }
+ return 0;
+}