aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr71866.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/torture/pr71866.c')
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr71866.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/torture/pr71866.c b/gcc/testsuite/gcc.dg/torture/pr71866.c
index e1b36cb8b7d..4d71e09f22a 100644
--- a/gcc/testsuite/gcc.dg/torture/pr71866.c
+++ b/gcc/testsuite/gcc.dg/torture/pr71866.c
@@ -1,6 +1,7 @@
/* { dg-do compile } */
/* { dg-additional-options "-ftree-pre -fcode-hoisting" } */
+#include <stdint.h>
typedef unsigned char u8;
extern unsigned long pci_io_base;
u8 in_8 (const volatile void *);
@@ -25,7 +26,7 @@ u8 readb (const volatile void * addr)
static inline
u8 inb (unsigned long port)
{
- return readb((volatile void *)pci_io_base + port);
+ return readb((volatile void *)(intptr_t)pci_io_base + port);
}
static inline
void outb (u8 val, unsigned long port)