diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-04 23:53:54 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-04 23:53:54 +0000 |
commit | 174fcc6167dc041dd6b46377d398bf482a7f6626 (patch) | |
tree | d40c8e23aa4989def74861335c33e8a8a73520fc /gcc/c-common.h | |
parent | 46ac91919bda4ccc5e2305e0c8ef791c886b0663 (diff) | |
download | gcc-174fcc6167dc041dd6b46377d398bf482a7f6626.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38695 138bc75d-0d04-0410-961f-82ee72b054a4
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 a5e43e4d5dc..adee309ce3b 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)); |