[PATCH][committed] Use signed char for loop var in gcc.c-torture/execute/pr58419.c

Kyrill Tkachov kyrylo.tkachov@arm.com
Wed Sep 18 14:34:00 GMT 2013


Hi all,

The recently added testcase gcc.c-torture/execute/pr58419.c uses a char 
variable to count down with negative values.
But on some architectures (like arm) a char is by default unsigned, 
causing the loop to be infinite.

I've committed the attached patch to explicitly label the variable as 
signed char.
Committed as r202703.

This fixes a timeout failure I've observed on arm an aarch64.

Thanks,
Kyrill

[gcc/testsuite/]
2013-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

     * gcc.c-torture/execute/pr58419.c (b): Change type to signed char.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr58419.patch
Type: text/x-patch
Size: 408 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130918/13870c4f/attachment.bin>


More information about the Gcc-patches mailing list