re PR c/61741 (wrong code with -fno-strict-overflow)
authorRichard Biener <rguenther@suse.de>
Thu, 10 Jul 2014 12:20:32 +0000 (12:20 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 10 Jul 2014 12:20:32 +0000 (12:20 +0000)
2014-07-10  Richard Biener  <rguenther@suse.de>

PR c-family/61741
* c-c++-common/torture/pr61741.c: Use signed char.

From-SVN: r212430

gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/torture/pr61741.c

index 054497b27a93c3d31bfb44f276abb25ab48da805..fd2ae876932f662a5fc4b9a7e7eb81c7001be571 100644 (file)
@@ -1,3 +1,8 @@
+2014-07-10  Richard Biener  <rguenther@suse.de>
+
+       PR c-family/61741
+       * c-c++-common/torture/pr61741.c: Use signed char.
+
 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gnat.dg/opt39.adb: New test.
index b5f9b9322ddad825a37682da9d89005aad9c7e9f..a2bc4bda38f2f08448e074dac6ea7c3bf048bd7d 100644 (file)
@@ -5,7 +5,7 @@ int a = 1, b;
 void
 foo (void)
 {
-  char c = 0;
+  signed char c = 0;
   for (; a; a--)
     for (; c >= 0; c++);
   if (!c)