20000211-1.c (size_t): Typedef size_t via __SIZE_TYPE__.

2009-05-28  Kai Tietz  <kai.tietz@onevision.com>

        * 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,
        * gcc.c-torture/compile/20030320-1.c (size_t): Likewise,
        * gcc.c-torture/compile/20030405-1.c (size_t): Likewise,
        * gcc.c-torture/compile/20030902-1.c (size_t): Likewise,
        * gcc.c-torture/compile/20060202-1.c (size_t): Likewise,
        * gcc.c-torture/compile/20080613-1.c (size_t): Likewise,
        * gcc.c-torture/compile/920428-2.c (size_t): Likewise,
        * gcc.c-torture/compile/980329-1.c (size_t): Likewise,
        * gcc.c-torture/compile/980816-1.c (size_t): Likewise,
        * gcc.c-torture/compile/pr32584.c (size_t): Likewise,
        * (__ssize_t): Likewise.
        * gcc.c-torture/compile/pr33173.c (size_t): Likewise,
        * gcc.c-torture/compile/pr33382.c (size_t): Likewise,
        * gcc.c-torture/compile/pr34334.c (size_t): Likewise,
        * gcc.c-torture/compile/pr34688.c (size_t): Likewise,
        * gcc.c-torture/compile/pr35043.c (size_t): Likewise,
        * gcc.c-torture/compile/pr37669.c (size_t): Likewise,
        * gcc.dg/20050629-1.c (size_t): Typedef size_t via __SIZE_TYPE__.
        * gcc.dg/pr33667.c (size_t): Likewise.
        * gcc.dg/prefetch-loop-arrays-1.c (size_t): Likewise.
        * gcc.dg/torture/pr39204.c (size_t): Likewise.
        * gcc.dg/tree-ssa/20041122-1.c (size_t): Likewise.
        * gcc.dg/tree-ssa/pr36908.c (size_t): Likewise.
        * gcc.dg/tree-ssa/pr38250.c (size_t): Likewise.
        * gcc.dg/tree-ssa/ssa-dse-10.c (size_t): Likewise.

From-SVN: r147946
This commit is contained in:
Kai Tietz 2009-05-28 09:19:37 +00:00 committed by Kai Tietz
parent 8fc552b40f
commit 110fda84c9
26 changed files with 59 additions and 26 deletions

View File

@ -1,3 +1,33 @@
2009-05-28 Kai Tietz <kai.tietz@onevision.com>
* 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,
* gcc.c-torture/compile/20030320-1.c (size_t): Likewise,
* gcc.c-torture/compile/20030405-1.c (size_t): Likewise,
* gcc.c-torture/compile/20030902-1.c (size_t): Likewise,
* gcc.c-torture/compile/20060202-1.c (size_t): Likewise,
* gcc.c-torture/compile/20080613-1.c (size_t): Likewise,
* gcc.c-torture/compile/920428-2.c (size_t): Likewise,
* gcc.c-torture/compile/980329-1.c (size_t): Likewise,
* gcc.c-torture/compile/980816-1.c (size_t): Likewise,
* gcc.c-torture/compile/pr32584.c (size_t): Likewise,
* (__ssize_t): Likewise.
* gcc.c-torture/compile/pr33173.c (size_t): Likewise,
* gcc.c-torture/compile/pr33382.c (size_t): Likewise,
* gcc.c-torture/compile/pr34334.c (size_t): Likewise,
* gcc.c-torture/compile/pr34688.c (size_t): Likewise,
* gcc.c-torture/compile/pr35043.c (size_t): Likewise,
* gcc.c-torture/compile/pr37669.c (size_t): Likewise,
* gcc.dg/20050629-1.c (size_t): Typedef size_t via __SIZE_TYPE__.
* gcc.dg/pr33667.c (size_t): Likewise.
* gcc.dg/prefetch-loop-arrays-1.c (size_t): Likewise.
* gcc.dg/torture/pr39204.c (size_t): Likewise.
* gcc.dg/tree-ssa/20041122-1.c (size_t): Likewise.
* gcc.dg/tree-ssa/pr36908.c (size_t): Likewise.
* gcc.dg/tree-ssa/pr38250.c (size_t): Likewise.
* gcc.dg/tree-ssa/ssa-dse-10.c (size_t): Likewise.
2009-05-27 Kai TIetz <kai.tietz@onevision.com>
* g++.old-deja/g++.brendan/array1.C (array): Use __SIZE_TYPE__

View File

@ -1,4 +1,4 @@
typedef long unsigned int size_t;
typedef __SIZE_TYPE__ size_t;
typedef unsigned char Bufbyte;
typedef int Bytecount;
typedef int Charcount;

View File

@ -1,4 +1,4 @@
typedef unsigned int size_t;
typedef __SIZE_TYPE__ size_t;
typedef unsigned int __u_int;
typedef unsigned long __u_long;

View File

@ -2,7 +2,7 @@
conditional returns without updating dominance info.
Extracted from glibc's dl-load.c. */
typedef unsigned long size_t;
typedef __SIZE_TYPE__ size_t;
static size_t
is_dst (const char *start, const char *name, const char *str,

View File

@ -6,7 +6,7 @@
and when the PHI node at the end of the while() is visited the first
time, CCP will try to assign it a value of UNDEFINED, but the default
value for *str is a constant. */
typedef unsigned int size_t;
typedef __SIZE_TYPE__ size_t;
size_t strlength (const char * const);
char foo();

View File

@ -1,4 +1,4 @@
typedef unsigned int size_t;
typedef __SIZE_TYPE__ size_t;
typedef unsigned long int reg_syntax_t;
struct re_pattern_buffer
{

View File

@ -1,4 +1,4 @@
typedef unsigned int size_t;
typedef __SIZE_TYPE__ size_t;
typedef const struct objc_selector
{
void *sel_id;

View File

@ -1,7 +1,7 @@
/* PR middle-end/36520 */
/* Testcase by Richard Guenther <rguenth@gcc.gnu.org> */
typedef long unsigned int size_t;
typedef __SIZE_TYPE__ size_t;
typedef unsigned short int sa_family_t;
struct cmsghdr {
size_t cmsg_len;

View File

@ -41,7 +41,7 @@ extern struct _iobuf {
short _flag;
char _file;
} _iob[];
typedef unsigned long size_t;
typedef __SIZE_TYPE__ size_t;
typedef char *va_list;
struct _iobuf *fopen(const char *filename, const char *type);
struct _iobuf *freopen(const char *filename, const char *type, struct _iobuf *stream);

View File

@ -1,4 +1,4 @@
typedef unsigned long int size_t;
typedef __SIZE_TYPE__ size_t;
struct re_pattern_buffer
{
unsigned char *buffer;

View File

@ -1,4 +1,4 @@
typedef unsigned int size_t;
typedef __SIZE_TYPE__ size_t;
typedef void *XtPointer;
typedef struct _WidgetRec *Widget;

View File

@ -1,5 +1,8 @@
typedef long unsigned int size_t;
typedef long int __ssize_t;
typedef __SIZE_TYPE__ size_t;
/* Kludge */
#define unsigned
typedef __SIZE_TYPE__ __ssize_t;
#undef unsigned
typedef struct
{
} __mbstate_t;

View File

@ -1,4 +1,4 @@
typedef long unsigned int size_t;
typedef __SIZE_TYPE__ size_t;
typedef struct
{
}

View File

@ -1,4 +1,4 @@
typedef unsigned int size_t;
typedef __SIZE_TYPE__ size_t;
typedef struct {
int disable;
char *searchconfig[];

View File

@ -1,4 +1,4 @@
typedef unsigned int size_t;
__extension__ typedef __SIZE_TYPE__ size_t;
__extension__ typedef long long int __quad_t;
__extension__ typedef unsigned int __mode_t;
__extension__ typedef __quad_t __off64_t;

View File

@ -1,4 +1,4 @@
typedef unsigned int size_t;
typedef __SIZE_TYPE__ size_t;
typedef struct {
}
HashTable;

View File

@ -1,4 +1,4 @@
typedef long unsigned int size_t;
typedef __SIZE_TYPE__ size_t;
typedef struct {
long double dat[2];
} gsl_complex_long_double;

View File

@ -1,6 +1,6 @@
/* This testcase used to fail because a miscompiled execute_fold_all_builtins. */
typedef long unsigned int size_t;
typedef __SIZE_TYPE__ size_t;
extern __inline __attribute__ ((__always_inline__)) int __attribute__
((__nothrow__)) snprintf (char *__restrict __s, size_t __n, __const char
*__restrict __fmt, ...) {

View File

@ -5,7 +5,7 @@
contains many warnings, but it exposes a copy propagation bug that
is somewhat difficult to reproduce otherwise. */
typedef long unsigned int size_t;
__extension__ typedef __SIZE_TYPE__ size_t;
extern void fancy_abort (const char *, int, const char *) __attribute__ ((__noreturn__));
typedef union tree_node *tree;
enum tree_code {

View File

@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O2" } */
typedef unsigned int size_t;
__extension__ typedef __SIZE_TYPE__ size_t;
typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;
typedef unsigned long long int uint64_t;

View File

@ -3,7 +3,7 @@
/* { dg-options "-O2 -fprefetch-loop-arrays -w" } */
/* { dg-options "-O2 -fprefetch-loop-arrays -march=i686 -msse -w" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
typedef unsigned long size_t;
__extension__ typedef __SIZE_TYPE__ size_t;
struct re_pattern_buffer
{

View File

@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-w" } */
typedef unsigned int size_t;
__extension__ typedef __SIZE_TYPE__ size_t;
typedef unsigned char __u_char;
typedef unsigned short int __u_short;
typedef unsigned int __u_int;

View File

@ -2,7 +2,7 @@
/* { dg-options "-O1 -fdump-tree-dom2" } */
typedef unsigned int size_t;
__extension__ typedef __SIZE_TYPE__ size_t;
extern void *xmalloc (size_t) __attribute__ ((__malloc__));
struct edge_def
{

View File

@ -2,7 +2,7 @@
/* { dg-options "-O2 -ftree-loop-distribution" } */
#define NULL ((void *)0)
typedef unsigned int size_t;
__extension__ typedef __SIZE_TYPE__ size_t;
extern void *foo(size_t nelem, size_t elsize);
extern void bar (char*, ...);

View File

@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-loop-distribution" } */
typedef long unsigned int size_t;
__extension__ typedef __SIZE_TYPE__ size_t;
typedef struct {
long dat[2];
} gsl_complex_long_double;

View File

@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O -w -fdump-tree-dse-vops" } */
typedef unsigned int size_t;
__extension__ typedef __SIZE_TYPE__ size_t;
typedef struct _IO_FILE FILE;
typedef struct
{