OSDN Git Service

2009-05-28 Kai Tietz <kai.tietz@onevision.com>
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 May 2009 09:38:48 +0000 (09:38 +0000)
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 May 2009 09:38:48 +0000 (09:38 +0000)
*  g++.dg/ext/packed6.C (size_t): Use __extension__ and
__SIZE_TYPE__.
* g++.dg/opt/memcpy1.C (size_t): Likewise.
* g++.dg/pr37742.C (size_t): Likewise.
* g++.dg/torture/pr34850.C (size_t): Likewise.
* g++.dg/torture/20070621-1.C (ptrdiff_t): Use __extension__ and
_PTRDIFF_TYPE__.
* g++.dg/torture/pr34222.C (ptrdiff_t): Likewise.
* g++.dg/tree-ssa/pr22444.C (ptrdiff_t): Likewise.
(size_t): Use __extension__ and __SIZE_TYPE__.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147949 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/packed6.C
gcc/testsuite/g++.dg/opt/memcpy1.C
gcc/testsuite/g++.dg/pr37742.C
gcc/testsuite/g++.dg/torture/20070621-1.C
gcc/testsuite/g++.dg/torture/pr34222.C
gcc/testsuite/g++.dg/torture/pr34850.C
gcc/testsuite/g++.dg/tree-ssa/pr22444.C

index bcc8a44..3e3c18e 100644 (file)
@@ -1,5 +1,15 @@
 2009-05-28  Kai Tietz  <kai.tietz@onevision.com>
 
+       *  g++.dg/ext/packed6.C (size_t): Use __extension__ and
+       __SIZE_TYPE__.
+       * g++.dg/opt/memcpy1.C (size_t): Likewise.
+       * g++.dg/pr37742.C (size_t): Likewise.
+       * g++.dg/torture/pr34850.C (size_t): Likewise.
+       * g++.dg/torture/20070621-1.C (ptrdiff_t): Use __extension__ and
+       _PTRDIFF_TYPE__.
+       * g++.dg/torture/pr34222.C (ptrdiff_t): Likewise.
+       * g++.dg/tree-ssa/pr22444.C (ptrdiff_t): Likewise.
+       (size_t): Use __extension__ and __SIZE_TYPE__.
         * gcc.c-torture/compile/20000211-1.c (size_t): Typedef size_t via
        __SIZE_TYPE__.
         * gcc.c-torture/compile/20010328-1.c (size_t): Likewise,
index f89aafe..6a176b6 100644 (file)
@@ -1,7 +1,7 @@
 // PR c++/15209
 // { dg-options "-w" }
 
-typedef unsigned int size_t;
+__extension__ typedef __SIZE_TYPE__ size_t;
 typedef unsigned char uint8_t;
 typedef unsigned short int uint16_t;
 
index f9887ee..f291345 100644 (file)
@@ -6,7 +6,7 @@
 
 typedef unsigned char uint8_t;
 typedef uint8_t uint8;
-typedef long unsigned int size_t;
+__extension__ typedef __SIZE_TYPE__ size_t;
 class csVector2
 {
 public:float x;
index 784eb49..2bbb017 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 
-typedef long unsigned int size_t;
+__extension__ typedef __SIZE_TYPE__ size_t;
 void*   __valarray_get_memory(size_t __n);
 int*__restrict__
 __valarray_get_storage(size_t __n)
index d17db97..185314a 100644 (file)
@@ -6,7 +6,7 @@
 
 */
 
-typedef long int ptrdiff_t;
+__extension__ typedef __PTRDIFF_TYPE__ ptrdiff_t;
 namespace std __attribute__ ((__visibility__ ("default"))) {
     template<typename, typename>     struct __are_same     {
         enum {
index 1939b50..130896d 100644 (file)
@@ -3,7 +3,7 @@
 namespace std __attribute__ ((__visibility__ ("default"))) {
     template<class _CharT>     struct char_traits;
   }
-typedef long int ptrdiff_t;
+__extension__ typedef __PTRDIFF_TYPE__ ptrdiff_t;
 namespace std __attribute__ ((__visibility__ ("default"))) {
     typedef ptrdiff_t streamsize;
     template<typename _CharT, typename _Traits = char_traits<_CharT> >     class basic_ifstream;
index e7caa7b..88df5a3 100644 (file)
@@ -5,7 +5,7 @@ typedef unsigned char uint8_t;
 typedef unsigned int uint32_t;
 typedef uint8_t byte;
 typedef uint32_t u32bit;
-typedef unsigned int size_t;
+__extension__ typedef __SIZE_TYPE__ size_t;
 extern "C" {
     extern void __warn_memset_zero_len (void) __attribute__((__warning__ ("")));
     extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__))
index 2cc84bb..7df4b9c 100644 (file)
@@ -4,8 +4,8 @@
 // with the subvars leading to the subvars not being renamed when they should
 // { dg-do compile }
 // { dg-options "-O2" }
-typedef int ptrdiff_t;
-typedef unsigned int size_t;
+__extension__ typedef __PTRDIFF_TYPE__ ptrdiff_t;
+__extension__ typedef __SIZE_TYPE__ size_t;
 namespace std
 {
   template<class _T1, class _T2> struct pair