aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorKugan Vivekanandarajah <kuganv@linaro.org>2016-09-23 10:25:09 +0000
committerKugan Vivekanandarajah <kugan@gcc.gnu.org>2016-09-23 10:25:09 +0000
commit1e401340719c3bb64382f81cf95607898139487f (patch)
tree1648accc5ce0a86f41e47368debe12c2739bfd5d /gcc/testsuite
parent8ed3eeac20004dc354bab2a5a0eed027d441b05e (diff)
downloadgcc-1e401340719c3bb64382f81cf95607898139487f.zip
gcc-1e401340719c3bb64382f81cf95607898139487f.tar.gz
gcc-1e401340719c3bb64382f81cf95607898139487f.tar.bz2
Drop TREE_OVERFLOW
gcc/ChangeLog: 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org> PR ipa/77677 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW from constant while creating value range. gcc/testsuite/ChangeLog: 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org> PR ipa/77677 * gcc.dg/torture/pr77677.c: New test. From-SVN: r240420
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr77677.c18
2 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 488e5db..150aff9 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
+
+ PR ipa/77677
+ * gcc.dg/torture/pr77677.c: New test.
+
2016-09-23 Andre Vehreschild <vehre@gcc.gnu.org>
* gfortran.dg/coarray_lib_comm_1.f90: Using the old caf-interface
diff --git a/gcc/testsuite/gcc.dg/torture/pr77677.c b/gcc/testsuite/gcc.dg/torture/pr77677.c
new file mode 100644
index 0000000..af3f0b0
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/torture/pr77677.c
@@ -0,0 +1,18 @@
+/* PR ipa/77677 */
+/* { dg-do compile } */
+
+int a, b;
+
+static void fn1 (short p1)
+{
+ a = -p1;
+ if (a || b)
+ __builtin_printf ("%d\n", b);
+}
+
+int main ()
+{
+ int c[] = { 40000 };
+ fn1 (c[0]);
+ return 0;
+}