]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pr59940.c (si): Use 32-bit SI mode instead of int.
authorVishnu K S <Vishnu.k_s@atmel.com>
Fri, 28 Mar 2014 19:19:03 +0000 (19:19 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Fri, 28 Mar 2014 19:19:03 +0000 (19:19 +0000)
2014-03-28  Vishnu K S  <Vishnu.k_s@atmel.com>

* gcc.dg/pr59940.c (si): Use 32-bit SI mode instead of int.

From-SVN: r208914

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr59940.c

index 5b27941db2557323af53b6ade86899578e44b2a9..f43bd841292a37958731bf0a41541ab1fd0d6ce2 100644 (file)
@@ -1,3 +1,7 @@
+2014-03-28  Vishnu K S  <Vishnu.k_s@atmel.com>
+
+       * gcc.dg/pr59940.c (si): Use 32-bit SI mode instead of int.
+
 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/60689
index b0fd17f50cbec78044fc628e16b2c785898a5ee5..d81eaf78e15b300a0e8fec796983d760b8c265e9 100644 (file)
@@ -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" } */