From patchwork Thu Jul 8 14:24:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [committed] Fix gcc.c-torture/execute/pr44828.c test case Date: Thu, 08 Jul 2010 04:24:12 -0000 From: Peter Bergner X-Patchwork-Id: 58252 Message-Id: <1278599052.2773.22.camel@otta> To: gcc-patches On Wed, 2010-07-07 at 23:17 -0500, Peter Bergner wrote: > I committed the following patch as obvious to fix running the pr44828.c test > case on systems that default to unsigned char (eg, powerpc*-linux). Jakub suggested just changing the formal args and return type to use explicit signed char which I agree is better, so I've just committed the following patch to use that. Peter 2010-07-08 Peter Bergner PR middle-end/44828 * gcc.c-torture/execute/pr44828.c (foo): Use signed char. * gcc.c-torture/execute/pr44828.x: Revert. Index: gcc/testsuite/gcc.c-torture/execute/pr44828.c =================================================================== --- gcc/testsuite/gcc.c-torture/execute/pr44828.c (revision 161955) +++ gcc/testsuite/gcc.c-torture/execute/pr44828.c (working copy) @@ -1,7 +1,7 @@ extern void abort (void); -static char -foo (char si1, char si2) +static signed char +foo (signed char si1, signed char si2) { return si1 * si2; } Index: gcc/testsuite/gcc.c-torture/execute/pr44828.x =================================================================== --- gcc/testsuite/gcc.c-torture/execute/pr44828.x (revision 161955) +++ gcc/testsuite/gcc.c-torture/execute/pr44828.x (working copy) @@ -1,2 +0,0 @@ -set additional_flags "-fsigned-char" -return 0