Commit a34731a6 by Richard Kenner

(init_decl_processing): When making SIZETYPE, start with name in SIZE_TYPE.

(init_decl_processing): When making SIZETYPE, start with name in
SIZE_TYPE.  If -traditional, use a signed version of that type, if it
is unsigned.

From-SVN: r4752
parent 4b63dccb
/* Process declarations and variables for C compiler. /* Process declarations and variables for C compiler.
Copyright (C) 1988, 1992 Free Software Foundation, Inc. Copyright (C) 1988, 1992, 1993 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -2615,11 +2615,10 @@ init_decl_processing () ...@@ -2615,11 +2615,10 @@ init_decl_processing ()
Traditionally, use a signed type. Traditionally, use a signed type.
Note that stddef.h uses `unsigned long', Note that stddef.h uses `unsigned long',
and this must agree, even of long and int are the same size. */ and this must agree, even of long and int are the same size. */
if (flag_traditional) sizetype
sizetype = long_integer_type_node; = TREE_TYPE (IDENTIFIER_GLOBAL_VALUE (get_identifier (SIZE_TYPE)));
else if (flag_traditional && TREE_UNSIGNED (sizetype))
sizetype sizetype = signed_type (sizetype);
= TREE_TYPE (IDENTIFIER_GLOBAL_VALUE (get_identifier (SIZE_TYPE)));
ptrdiff_type_node ptrdiff_type_node
= TREE_TYPE (IDENTIFIER_GLOBAL_VALUE (get_identifier (PTRDIFF_TYPE))); = TREE_TYPE (IDENTIFIER_GLOBAL_VALUE (get_identifier (PTRDIFF_TYPE)));
......
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