packed6.C (size_t): Use __extension__ and __SIZE_TYPE__.

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__.

From-SVN: r147949
This commit is contained in:
Kai Tietz 2009-05-28 09:38:48 +00:00 committed by Kai Tietz
parent 52c9763546
commit b10ca52232
8 changed files with 18 additions and 8 deletions

View 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,

View 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;

View 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;

View 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)

View 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 {

View 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;

View 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__))

View 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