Fix bogus testsuite failures for avr.
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Wed, 24 Aug 2016 08:36:56 +0000 (08:36 +0000)
committerSenthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
Wed, 24 Aug 2016 08:36:56 +0000 (08:36 +0000)
gcc/testsuite/

2016-08-24  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

        * gcc.c-torture/execute/pr71083.c: Use UINT32_TYPE instead
        of unsigned int.
        * gcc.dg/zero_sign_ext_test.c: Require int32plus.

From-SVN: r239732

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr71083.c
gcc/testsuite/gcc.dg/zero_sign_ext_test.c

index fef690908f49021b606c5c8adbec7636bf0153bb..76381eff67e76ab2fb75d8e16c61accdc614cc3d 100644 (file)
@@ -1,3 +1,9 @@
+2016-08-24  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
+
+       * gcc.c-torture/execute/pr71083.c: Use UINT32_TYPE instead
+       of unsigned int.
+       * gcc.dg/zero_sign_ext_test.c: Require int32plus.
+
 2016-08-24  Robert Suchanek  <robert.suchanek@imgtec.com>
 
        PR testsuite/77317
index 05744349333d42c025d053a16daafffae1e8dcc9..6f80b0f831576ce573811ad91f38a8bb48e995ff 100644 (file)
@@ -1,5 +1,7 @@
+__extension__ typedef __UINT32_TYPE__ uint32_t;
+
 struct lock_chain {
-  unsigned int irq_context: 2,
+  uint32_t irq_context: 2,
     depth: 6,
     base: 24;
 };
index 6a52678f396c849b64b8e15829405a40a92a06ff..ea2c59c0a7dd3af74bd950a1acde5a8ccfe128e1 100644 (file)
@@ -2,6 +2,7 @@ extern void abort (void);
 
 /* { dg-options "-O2" } */
 /* { dg-do run } */
+/* { dg-require-effective-target int32plus } */
 
 #define TYPE_MAX(type, sign)   \
   ((!sign) ? ((1 << (sizeof (type) * 8 - 1)) - 1) :    \