From: Vishnu K S Date: Fri, 28 Mar 2014 19:19:03 +0000 (+0000) Subject: pr59940.c (si): Use 32-bit SI mode instead of int. X-Git-Tag: upstream/12.2.0~64059 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=27f083b84545e70a567571ccd44adbb7c2fec10a;p=platform%2Fupstream%2Fgcc.git pr59940.c (si): Use 32-bit SI mode instead of int. 2014-03-28 Vishnu K S * gcc.dg/pr59940.c (si): Use 32-bit SI mode instead of int. From-SVN: r208914 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5b27941..f43bd84 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2014-03-28 Vishnu K S + + * gcc.dg/pr59940.c (si): Use 32-bit SI mode instead of int. + 2014-03-28 Jakub Jelinek PR c++/60689 diff --git a/gcc/testsuite/gcc.dg/pr59940.c b/gcc/testsuite/gcc.dg/pr59940.c index b0fd17f..d81eaf7 100644 --- a/gcc/testsuite/gcc.dg/pr59940.c +++ b/gcc/testsuite/gcc.dg/pr59940.c @@ -3,11 +3,12 @@ /* { dg-options "-Wconversion -Woverflow" } */ int f (unsigned int); +typedef sitype __attribute__((mode(SI))); int g (void) { - int si = 12; + sitype si = 12; unsigned int ui = -1; /* { dg-warning "21:negative integer implicitly converted to unsigned type" } */ unsigned char uc; ui = si; /* { dg-warning "8:conversion" } */