===================================================================
@@ -1,4 +1,5 @@
/* { dg-do compile } */
+/* { dg-require-effective-target size32plus } */
/* { dg-additional-options "-march=core-avx2" { target { x86_64-*-* i?86-*-* } } } */
typedef enum {
===================================================================
@@ -6,7 +6,7 @@
struct A
{
int b;
- int c:24;
+ __INT32_TYPE__ c:24;
int d:10;
int e;
} f;
===================================================================
@@ -2,25 +2,25 @@
struct foo
{
- unsigned x;
+ __UINT32_TYPE__ x;
};
typedef struct foo foo;
-static inline int zot(foo *f)
+static inline __INT32_TYPE__ zot(foo *f)
{
int ret;
if (f->x > 0x7FFFFFFF)
- ret = (int)(f->x - 0x7FFFFFFF);
+ ret = (__INT32_TYPE__)(f->x - 0x7FFFFFFF);
else
- ret = (int)f->x - 0x7FFFFFFF;
+ ret = (__INT32_TYPE__)f->x - 0x7FFFFFFF;
return ret;
}
void __attribute__((noinline,noclone)) bar(foo *f)
{
- int ret = zot(f);
- volatile int x = ret;
+ __INT32_TYPE__ ret = zot(f);
+ volatile __INT32_TYPE__ x = ret;
if (ret < 1)
__builtin_abort ();
}
===================================================================
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-require-effective-target indirect_jumps } */
-
+/* { dg-additional-options "-w" { target avr-*-* } } */
+
void f (void);
void g (void);
void h (int a)
===================================================================
@@ -1,5 +1,6 @@
/* { dg-do compile } */
/* { dg-additional-options "-mcpu=power8" { target powerpc*-*-* } } */
+/* { dg-additional-options "-w" { target avr-*-* } } */
long f;
void a();
===================================================================
@@ -1,4 +1,5 @@
/* { dg-do compile } */
+/* { dg-require-effective-target size32plus } */
int a[100][70304];
int b[100];
===================================================================
@@ -1,4 +1,5 @@
/* { dg-do compile } */
+/* { dg-require-effective-target size32plus } */
int a;
extern int f[10][91125];
===================================================================
@@ -1,8 +1,8 @@
/* { dg-do run } */
/* { dg-options "-O3 -fno-strict-aliasing" } */
-struct s { int x; } __attribute__((packed));
-struct t { int x; };
+struct s { __INT32_TYPE__ x; } __attribute__((packed));
+struct t { __INT32_TYPE__ x; };
void __attribute__((noinline,noipa))
swap(struct s* p, struct t* q)