aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>2016-07-27 05:22:08 +0000
committerSenthil Kumar Selvaraj <saaadhu@gcc.gnu.org>2016-07-27 05:22:08 +0000
commitaf9e275f45ee4c1ec23a9701aaceb7fc4c66c184 (patch)
tree4b03367eaa19b26988842dc38a3ecc891c60ccf3
parent71abba1e35b19466c722cc987c115a1f6546a1a6 (diff)
downloadgcc-af9e275f45ee4c1ec23a9701aaceb7fc4c66c184.zip
gcc-af9e275f45ee4c1ec23a9701aaceb7fc4c66c184.tar.gz
gcc-af9e275f45ee4c1ec23a9701aaceb7fc4c66c184.tar.bz2
Use __{U,}INTPTR_TYPE__ to avoid including stdint.h
gcc/testsuite/ * gcc.dg/torture/pr69352.c: Use __INTPTR_TYPE__ instead of including stdint.h. * gcc.dg/torture/pr71866.c: Use __UINTPTR_TYPE__ isntead of including stdint.h. From-SVN: r238780
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr69352.c2
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr71866.c5
3 files changed, 11 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 0b8b405..a1b6c56 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2016-07-27 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
+
+ * gcc.dg/torture/pr69352.c: Use __INTPTR_TYPE__ instead of
+ including stdint.h.
+ * gcc.dg/torture/pr71866.c: Use __UINTPTR_TYPE__ isntead of
+ including stdint.h.
+
2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/71869
diff --git a/gcc/testsuite/gcc.dg/torture/pr69352.c b/gcc/testsuite/gcc.dg/torture/pr69352.c
index 12f7f91..c111913 100644
--- a/gcc/testsuite/gcc.dg/torture/pr69352.c
+++ b/gcc/testsuite/gcc.dg/torture/pr69352.c
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-#include <stdint.h>
+__extension__ typedef __INTPTR_TYPE__ intptr_t;
int a[10][14], b, c, d, e, f, g, h, i;
void bar (void);
diff --git a/gcc/testsuite/gcc.dg/torture/pr71866.c b/gcc/testsuite/gcc.dg/torture/pr71866.c
index 4d71e09..b9c1a77 100644
--- a/gcc/testsuite/gcc.dg/torture/pr71866.c
+++ b/gcc/testsuite/gcc.dg/torture/pr71866.c
@@ -1,7 +1,8 @@
/* { dg-do compile } */
/* { dg-additional-options "-ftree-pre -fcode-hoisting" } */
-#include <stdint.h>
+__extension__ typedef __UINTPTR_TYPE__ uintptr_t;
+
typedef unsigned char u8;
extern unsigned long pci_io_base;
u8 in_8 (const volatile void *);
@@ -26,7 +27,7 @@ u8 readb (const volatile void * addr)
static inline
u8 inb (unsigned long port)
{
- return readb((volatile void *)(intptr_t)pci_io_base + port);
+ return readb((volatile void *)(uintptr_t)pci_io_base + port);
}
static inline
void outb (u8 val, unsigned long port)