Fix bogus testsuite failures for avr.

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
This commit is contained in:
Senthil Kumar Selvaraj 2016-08-24 08:36:56 +00:00 committed by Senthil Kumar Selvaraj
parent 9a38acdfdc
commit d118868932
3 changed files with 10 additions and 1 deletions

View 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

View 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;
};

View 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) : \