aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2017-01-27 14:25:28 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2017-01-27 14:25:28 +0100
commitb2f8892e35a0faa8a3c52da0eda13c12ddb76cc4 (patch)
treee2d71305c4358e1fd2a5a6605d80884c5665d49e /gcc
parentb002f3b9e12252f53332575d01cc8765d6fbf59f (diff)
downloadgcc-b2f8892e35a0faa8a3c52da0eda13c12ddb76cc4.zip
gcc-b2f8892e35a0faa8a3c52da0eda13c12ddb76cc4.tar.gz
gcc-b2f8892e35a0faa8a3c52da0eda13c12ddb76cc4.tar.bz2
re PR c/79199 (ICE with -Wduplicated-branches)
PR c/79199 * c-c++-common/Wduplicated-branches-13.c: Require int32plus effective target. Use 4294967293U instead of 4294967293. From-SVN: r244975
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/c-c++-common/Wduplicated-branches-13.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 2c044f5..aaa5972 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2017-01-27 Jakub Jelinek <jakub@redhat.com>
+
+ PR c/79199
+ * c-c++-common/Wduplicated-branches-13.c: Require int32plus effective
+ target. Use 4294967293U instead of 4294967293.
+
2017-01-27 Richard Biener <rguenther@suse.de>
PR tree-optimization/71433
diff --git a/gcc/testsuite/c-c++-common/Wduplicated-branches-13.c b/gcc/testsuite/c-c++-common/Wduplicated-branches-13.c
index 7aa5b37..a2ab887 100644
--- a/gcc/testsuite/c-c++-common/Wduplicated-branches-13.c
+++ b/gcc/testsuite/c-c++-common/Wduplicated-branches-13.c
@@ -1,5 +1,5 @@
/* PR c/79199 */
-/* { dg-do compile } */
+/* { dg-do compile { target int32plus } } */
/* { dg-options "-Wduplicated-branches" } */
unsigned int a, b, c, d, e;
@@ -8,14 +8,14 @@ fn1 (void)
{
if (0) /* { dg-warning "this condition has identical branches" } */
{
- if (d > 4294967293)
+ if (d > 4294967293U)
(void) 5;
c = d;
b = e | a;
}
else
{
- if (d > 4294967293)
+ if (d > 4294967293U)
(void) 5;
c = d;
b = e | a;