diff options
author | Joseph Myers <jsm28@cam.ac.uk> | 2001-01-04 23:53:54 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2001-01-04 23:53:54 +0000 |
commit | eaa7c03f500d8d7b5d88c2b02d11513cc489226e (patch) | |
tree | d40c8e23aa4989def74861335c33e8a8a73520fc /gcc/c-common.h | |
parent | e2a5f96bbfae7b9b30d76246c1cd58fe80dddd2c (diff) | |
download | gcc-eaa7c03f500d8d7b5d88c2b02d11513cc489226e.zip gcc-eaa7c03f500d8d7b5d88c2b02d11513cc489226e.tar.gz gcc-eaa7c03f500d8d7b5d88c2b02d11513cc489226e.tar.bz2 |
c-common.c (SIZE_TYPE, WCHAR_TYPE): Define.
* c-common.c (SIZE_TYPE, WCHAR_TYPE): Define.
(flag_short_double, flag_short_wchar): Define.
(c_common_nodes_and_builtins): Create many tree nodes shared
between C and C++ here instead of in cp/decl.c and ...
* c-decl.c (init_decl_processing): ... here.
(SIZE_TYPE, WCHAR_TYPE): Don't define.
(flag_short_double, flag_short_wchar): Don't define.
(record_builtin_type): New function.
(build_void_list_node): New function.
* c-common.h (flag_short_double, flag_short_wchar,
record_builtin_type, build_void_list_node): Declare.
cp:
* decl.c (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Don't define.
(record_builtin_type): Make non-static.
(flag_short_double): Don't declare.
(init_decl_processing): Remove the creation of many tree nodes now
in c_common_nodes_and_builtins.
(build_void_list_node): New function.
* decl2.c (flag_short_double, flag_short_wchar): Don't define.
* cp-tree.h (flag_short_wchar): Don't declare.
From-SVN: r38695
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r-- | gcc/c-common.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h index a5e43e4..adee309 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -351,6 +351,14 @@ extern c_language_kind c_language; extern int flag_const_strings; +/* Nonzero means give `double' the same size as `float'. */ + +extern int flag_short_double; + +/* Nonzero means give `wchar_t' the same size as `short'. */ + +extern int flag_short_wchar; + /* Warn about *printf or *scanf format/argument anomalies. */ extern int warn_format; @@ -463,6 +471,9 @@ extern int warn_long_long; extern tree (*make_fname_decl) PARAMS ((tree, const char *, int)); extern tree identifier_global_value PARAMS ((tree)); +extern void record_builtin_type PARAMS ((enum rid, + const char *, tree)); +extern tree build_void_list_node PARAMS ((void)); extern void declare_function_name PARAMS ((void)); extern void decl_attributes PARAMS ((tree, tree, tree)); |