Commit b2f8892e by Jakub Jelinek Committed by Jakub Jelinek

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
parent b002f3b9
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> 2017-01-27 Richard Biener <rguenther@suse.de>
PR tree-optimization/71433 PR tree-optimization/71433
......
/* PR c/79199 */ /* PR c/79199 */
/* { dg-do compile } */ /* { dg-do compile { target int32plus } } */
/* { dg-options "-Wduplicated-branches" } */ /* { dg-options "-Wduplicated-branches" } */
unsigned int a, b, c, d, e; unsigned int a, b, c, d, e;
...@@ -8,14 +8,14 @@ fn1 (void) ...@@ -8,14 +8,14 @@ fn1 (void)
{ {
if (0) /* { dg-warning "this condition has identical branches" } */ if (0) /* { dg-warning "this condition has identical branches" } */
{ {
if (d > 4294967293) if (d > 4294967293U)
(void) 5; (void) 5;
c = d; c = d;
b = e | a; b = e | a;
} }
else else
{ {
if (d > 4294967293) if (d > 4294967293U)
(void) 5; (void) 5;
c = d; c = d;
b = e | a; b = e | a;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment