This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix PR61741 testcase
- From: Richard Biener <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 10 Jul 2014 14:17:16 +0200 (CEST)
- Subject: [PATCH] Fix PR61741 testcase
- Authentication-results: sourceware.org; auth=none
Noticed by David, applied as obvious (stupid C language!).
Richard.
2014-07-10 Richard Biener <rguenther@suse.de>
PR c-family/61741
* c-c++-common/torture/pr61741.c: Use signed char.
Index: gcc/testsuite/c-c++-common/torture/pr61741.c
===================================================================
--- gcc/testsuite/c-c++-common/torture/pr61741.c (revision 212428)
+++ gcc/testsuite/c-c++-common/torture/pr61741.c (working copy)
@@ -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)