Commit 52c97635 by Kai Tietz Committed by Kai Tietz

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: r147947
parent 24adb18f
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-28 Ira Rosen <irar@il.ibm.com> 2009-05-28 Ira Rosen <irar@il.ibm.com>
PR tree-optimization/40254 PR tree-optimization/40254
......
typedef long unsigned int size_t; typedef __SIZE_TYPE__ size_t;
typedef unsigned char Bufbyte; typedef unsigned char Bufbyte;
typedef int Bytecount; typedef int Bytecount;
typedef int Charcount; typedef int Charcount;
......
typedef unsigned int size_t; typedef __SIZE_TYPE__ size_t;
typedef unsigned int __u_int; typedef unsigned int __u_int;
typedef unsigned long __u_long; typedef unsigned long __u_long;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
conditional returns without updating dominance info. conditional returns without updating dominance info.
Extracted from glibc's dl-load.c. */ Extracted from glibc's dl-load.c. */
typedef unsigned long size_t; typedef __SIZE_TYPE__ size_t;
static size_t static size_t
is_dst (const char *start, const char *name, const char *str, is_dst (const char *start, const char *name, const char *str,
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
and when the PHI node at the end of the while() is visited the first 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 time, CCP will try to assign it a value of UNDEFINED, but the default
value for *str is a constant. */ value for *str is a constant. */
typedef unsigned int size_t; typedef __SIZE_TYPE__ size_t;
size_t strlength (const char * const); size_t strlength (const char * const);
char foo(); char foo();
......
typedef unsigned int size_t; typedef __SIZE_TYPE__ size_t;
typedef unsigned long int reg_syntax_t; typedef unsigned long int reg_syntax_t;
struct re_pattern_buffer struct re_pattern_buffer
{ {
......
typedef unsigned int size_t; typedef __SIZE_TYPE__ size_t;
typedef const struct objc_selector typedef const struct objc_selector
{ {
void *sel_id; void *sel_id;
......
/* PR middle-end/36520 */ /* PR middle-end/36520 */
/* Testcase by Richard Guenther <rguenth@gcc.gnu.org> */ /* 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; typedef unsigned short int sa_family_t;
struct cmsghdr { struct cmsghdr {
size_t cmsg_len; size_t cmsg_len;
......
...@@ -41,7 +41,7 @@ extern struct _iobuf { ...@@ -41,7 +41,7 @@ extern struct _iobuf {
short _flag; short _flag;
char _file; char _file;
} _iob[]; } _iob[];
typedef unsigned long size_t; typedef __SIZE_TYPE__ size_t;
typedef char *va_list; typedef char *va_list;
struct _iobuf *fopen(const char *filename, const char *type); struct _iobuf *fopen(const char *filename, const char *type);
struct _iobuf *freopen(const char *filename, const char *type, struct _iobuf *stream); struct _iobuf *freopen(const char *filename, const char *type, struct _iobuf *stream);
......
typedef unsigned long int size_t; typedef __SIZE_TYPE__ size_t;
struct re_pattern_buffer struct re_pattern_buffer
{ {
unsigned char *buffer; unsigned char *buffer;
......
typedef unsigned int size_t; typedef __SIZE_TYPE__ size_t;
typedef void *XtPointer; typedef void *XtPointer;
typedef struct _WidgetRec *Widget; typedef struct _WidgetRec *Widget;
......
typedef long unsigned int size_t; typedef __SIZE_TYPE__ size_t;
typedef long int __ssize_t; /* Kludge */
#define unsigned
typedef __SIZE_TYPE__ __ssize_t;
#undef unsigned
typedef struct typedef struct
{ {
} __mbstate_t; } __mbstate_t;
......
typedef long unsigned int size_t; typedef __SIZE_TYPE__ size_t;
typedef struct typedef struct
{ {
} }
......
typedef unsigned int size_t; typedef __SIZE_TYPE__ size_t;
typedef struct { typedef struct {
int disable; int disable;
char *searchconfig[]; char *searchconfig[];
......
typedef unsigned int size_t; __extension__ typedef __SIZE_TYPE__ size_t;
__extension__ typedef long long int __quad_t; __extension__ typedef long long int __quad_t;
__extension__ typedef unsigned int __mode_t; __extension__ typedef unsigned int __mode_t;
__extension__ typedef __quad_t __off64_t; __extension__ typedef __quad_t __off64_t;
......
typedef unsigned int size_t; typedef __SIZE_TYPE__ size_t;
typedef struct { typedef struct {
} }
HashTable; HashTable;
......
typedef long unsigned int size_t; typedef __SIZE_TYPE__ size_t;
typedef struct { typedef struct {
long double dat[2]; long double dat[2];
} gsl_complex_long_double; } gsl_complex_long_double;
......
/* This testcase used to fail because a miscompiled execute_fold_all_builtins. */ /* 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__ extern __inline __attribute__ ((__always_inline__)) int __attribute__
((__nothrow__)) snprintf (char *__restrict __s, size_t __n, __const char ((__nothrow__)) snprintf (char *__restrict __s, size_t __n, __const char
*__restrict __fmt, ...) { *__restrict __fmt, ...) {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
contains many warnings, but it exposes a copy propagation bug that contains many warnings, but it exposes a copy propagation bug that
is somewhat difficult to reproduce otherwise. */ 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__)); extern void fancy_abort (const char *, int, const char *) __attribute__ ((__noreturn__));
typedef union tree_node *tree; typedef union tree_node *tree;
enum tree_code { enum tree_code {
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
typedef unsigned int size_t; __extension__ typedef __SIZE_TYPE__ size_t;
typedef unsigned char uint8_t; typedef unsigned char uint8_t;
typedef unsigned short int uint16_t; typedef unsigned short int uint16_t;
typedef unsigned long long int uint64_t; typedef unsigned long long int uint64_t;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
/* { dg-options "-O2 -fprefetch-loop-arrays -w" } */ /* { dg-options "-O2 -fprefetch-loop-arrays -w" } */
/* { dg-options "-O2 -fprefetch-loop-arrays -march=i686 -msse -w" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ /* { 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 struct re_pattern_buffer
{ {
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-w" } */ /* { dg-options "-w" } */
typedef unsigned int size_t; __extension__ typedef __SIZE_TYPE__ size_t;
typedef unsigned char __u_char; typedef unsigned char __u_char;
typedef unsigned short int __u_short; typedef unsigned short int __u_short;
typedef unsigned int __u_int; typedef unsigned int __u_int;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
/* { dg-options "-O1 -fdump-tree-dom2" } */ /* { dg-options "-O1 -fdump-tree-dom2" } */
typedef unsigned int size_t; __extension__ typedef __SIZE_TYPE__ size_t;
extern void *xmalloc (size_t) __attribute__ ((__malloc__)); extern void *xmalloc (size_t) __attribute__ ((__malloc__));
struct edge_def struct edge_def
{ {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
/* { dg-options "-O2 -ftree-loop-distribution" } */ /* { dg-options "-O2 -ftree-loop-distribution" } */
#define NULL ((void *)0) #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 *foo(size_t nelem, size_t elsize);
extern void bar (char*, ...); extern void bar (char*, ...);
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -ftree-loop-distribution" } */ /* { dg-options "-O2 -ftree-loop-distribution" } */
typedef long unsigned int size_t; __extension__ typedef __SIZE_TYPE__ size_t;
typedef struct { typedef struct {
long dat[2]; long dat[2];
} gsl_complex_long_double; } gsl_complex_long_double;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O -w -fdump-tree-dse-vops" } */ /* { 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 _IO_FILE FILE;
typedef struct typedef struct
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment