===================================================================
@@ -6,7 +6,7 @@
/* Define this so that we are more portable. The testcase in the
PR failed on 64-bit hosts. */
-typedef __INTPTR_TYPE__ intptr_t;
+__extension__ typedef __INTPTR_TYPE__ intptr_t;
typedef struct _PLCI {
unsigned char x;
===================================================================
@@ -1,11 +1,11 @@
/* { dg-do compile { target fpic } } */
/* { dg-options "-O2 -fPIC" } */
-int *block;
+const int *block;
void final(unsigned int j)
{
unsigned int i;
- unsigned char *data = (unsigned char *)"\0";
+ const unsigned char *data = (const unsigned char *)"\0";
for (i = 0; i < 8; i++)
for (; j + 63 < 1; j += 64)
- block = (int *) &data[j];
+ block = (const int *) &data[j];
}
===================================================================
@@ -10,4 +10,9 @@ _mark (int obj, int i, char *a)
{
(char *)&(((int *)(obj)) [i]) - a;
}
+#elif __SIZEOF_POINTER__ == __SIZEOF_LONG_LONG__
+__extension__ _mark (long long obj, int i, char *a)
+{
+ (char *)&(((int *)(obj)) [i]) - a;
+}
#endif
===================================================================
@@ -1,7 +1,7 @@
/* { dg-do compile { target powerpc*-*-* ia64-*-* i?86-*-* x86_64-*-* } } */
/* { dg-options "-O3 -fselective-scheduling2 -fsel-sched-pipelining" } */
typedef unsigned short int uint16_t;
-typedef unsigned long int uintptr_t;
+__extension__ typedef __UINTPTR_TYPE__ uintptr_t;
typedef struct GFX_VTABLE
{
int color_depth;
===================================================================
@@ -2,11 +2,12 @@
/* { dg-do compile } */
/* { dg-options "-O2 -g" } */
+__extension__ typedef __INTPTR_TYPE__ intptr_t;
struct S { unsigned long s1; void **s2[0]; };
void **a, **b, **c, **d, **e, **f;
static void **
-baz (long x, long y)
+baz (intptr_t x, intptr_t y)
{
void **s = f;
*f = (void **) (y << 8 | (x & 0xff));
===================================================================
@@ -1,9 +1,11 @@
/* { dg-do compile } */
/* { dg-options "-fno-delete-null-pointer-checks" } */
+__extension__ typedef __UINTPTR_TYPE__ uintptr_t;
+
extern struct module __this_module;
static inline void
-trace_module_get (struct module *mod, unsigned long ip) { }
+trace_module_get (struct module *mod, uintptr_t ip) { }
struct module;
static inline __attribute__((no_instrument_function))
int try_module_get(struct module *module)
@@ -16,7 +18,7 @@ int try_module_get(struct module *module)
__label__ __here;
asm("");
__here:
- trace_module_get(module, (unsigned long)&&__here);
+ trace_module_get(module, (uintptr_t)&&__here);
}
else
ret = 0;
===================================================================
@@ -1,5 +1,6 @@
/* { dg-do run } */
/* { dg-require-weak "" } */
+/* { dg-skip-if "No undefined" { *-*-mingw* } { "*" } { "" } } */
/* { dg-skip-if "No undefined weak" { hppa*-*-hpux* && { ! lp64 } } {
"*" } { "" } } */
/* { dg-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } } */
===================================================================
@@ -1,14 +1,15 @@
/* { dg-options "-O2" } */
+typedef __INTPTR_TYPE__ intptr_t;
typedef unsigned long long uint64_t;
static inline void cvmx_write64_uint64(uint64_t addr, uint64_t val)
{
- *(volatile uint64_t *)(long)addr = val;
+ *(volatile uint64_t *)(intptr_t)addr = val;
};
static inline uint64_t cvmx_read64_uint64(uint64_t addr)
{
- return *(volatile uint64_t *)(long)addr;
+ return *(volatile uint64_t *)(intptr_t)addr;
};
static inline void cvmx_write_csr(uint64_t csr_addr, uint64_t val)
===================================================================
@@ -1,14 +1,16 @@
/* { dg-options "-O2" } */
+__extension__ typedef __INTPTR_TYPE__ intptr_t;
+
typedef unsigned long long uint64_t;
static inline void cvmx_write64_uint64(uint64_t addr, uint64_t val)
{
- *(volatile uint64_t *)(long)addr = val;
+ *(volatile uint64_t *)(intptr_t)addr = val;
};
static inline uint64_t cvmx_read64_uint64(uint64_t addr)
{
- return *(volatile uint64_t *)(long)addr;
+ return *(volatile uint64_t *)(intptr_t)addr;
};
static inline void cvmx_write_csr(uint64_t csr_addr, uint64_t val)
===================================================================
@@ -1,14 +1,15 @@
/* { dg-options "-O2" } */
+__extension__ typedef __INTPTR_TYPE__ intptr_t;
typedef unsigned long long uint64_t;
static inline void cvmx_write64_uint64(uint64_t addr, uint64_t val)
{
- *(volatile uint64_t *)(long)addr = val;
+ *(volatile uint64_t *)(intptr_t)addr = val;
};
static inline uint64_t cvmx_read64_uint64(uint64_t addr)
{
- return *(volatile uint64_t *)(long)addr;
+ return *(volatile uint64_t *)(intptr_t)addr;
};
static inline void cvmx_write_csr(uint64_t csr_addr, uint64_t val)
{
===================================================================
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-require-weak "" } */
/* { dg-options "-fno-common" } */
+/* { dg-skip-if "" { *-*-mingw* } { "*" } { "" } } */
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?a" } } */
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?b" } } */
===================================================================
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-require-weak "" } */
/* { dg-options "-fno-common" } */
+/* { dg-skip-if "" { x86_64-*-mingw* } { "*" } { "" } } */
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?a" } } */
/* { dg-final { scan-assembler-not "weak\[^ \t\]*\[ \t\]_?b" } } */
===================================================================
@@ -4,6 +4,7 @@
/* { dg-options "-fno-common -Os" } */
/* { dg-final { scan-assembler "weak\[^ \t\]*\[
\t\]_?kallsyms_token_index" } } */
/* { dg-final { scan-assembler "weak\[^ \t\]*\[
\t\]_?kallsyms_token_table" } } */
+/* { dg-skip-if "" { x86_64-*-mingw* } { "*" } { "" } } */
extern int kallsyms_token_index[] __attribute__((weak));
extern int kallsyms_token_table[] __attribute__((weak));
===================================================================
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-require-weak "" } */
/* { dg-options "-fno-common" } */
+/* { dg-skip-if "" { x86_64-*-mingw* } { "*" } { "" } } */
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?ffoo1a" } } */
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?ffoo1b" } } */
===================================================================
@@ -2,6 +2,7 @@
/* { dg-require-alias "" } */
/* { dg-require-weak "" } */
/* { dg-options "-fno-common -Waddress" } */
+/* { dg-skip-if "" { x86_64-*-mingw* } { "*" } { "" } } */
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?ffoo1a" } } */
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?ffoo1b" } } */
===================================================================
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-require-weak "" } */
/* { dg-options "-fno-common" } */
+/* { dg-skip-if "" { x86_64-*-mingw* } { "*" } { "" } } */
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?vfoo1a" } } */
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?vfoo1b" } } */
===================================================================
@@ -2,6 +2,7 @@
/* { dg-require-weak "" } */
/* { dg-require-alias "" } */
/* { dg-options "-fno-common" } */
+/* { dg-skip-if "" { x86_64-*-mingw* } { "*" } { "" } } */
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?vfoo1a" } } */
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?vfoo1b" } } */