diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2000-03-08 11:21:28 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2000-03-08 11:21:28 +0000 |
commit | 2ce07e2d9247f692e424385deb1e8b154bf1b388 (patch) | |
tree | d0c5ae25c2c3150c4c348ac64a3fdbdef73e015a /gcc/c-common.h | |
parent | 8ce5ef1923e1bc826b4159ecee825db5fc9b8cd9 (diff) | |
download | gcc-2ce07e2d9247f692e424385deb1e8b154bf1b388.zip gcc-2ce07e2d9247f692e424385deb1e8b154bf1b388.tar.gz gcc-2ce07e2d9247f692e424385deb1e8b154bf1b388.tar.bz2 |
c-common.h (make_fname_decl): Declare.
gcc:
* c-common.h (make_fname_decl): Declare.
* c-common.c (make_fname_decl): Define.
(declare_hidden_char_array): Remove.
(declare_function_name): Use make_fname_decl.
* c-decl.c (c_make_fname_decl): New function.
(init_decl_processing): Set make_fname_decl.
gcc/cp:
* decl.c (cp_make_fname_decl): New function.
(wrapup_globals_for_namespace): Don't emit unused static vars.
(init_decl_processing): Remove comment about use of
array_domain_type. Set make_fname_decl.
(cp_finish_decl): Remove __FUNCTION__ nadgering.
* semantics.c (begin_compound_stmt): Remove
current_function_name_declared flagging.
(expand_stmt): Don't emit unused local statics.
* typeck.c (decay_conversion): Don't treat __FUNCTION__ decls
specially.
From-SVN: r32418
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r-- | gcc/c-common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h index dfcac1e..17db8fb 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -74,6 +74,13 @@ extern tree c_global_trees[CTI_MAX]; #define int_ftype_int c_global_trees[CTI_INT_FTYPE_INT] #define ptr_ftype_sizetype c_global_trees[CTI_PTR_FTYPE_SIZETYPE] +/* Pointer to function to generate the VAR_DECL for __FUNCTION__ etc. + ID is the identifier to use, NAME is the string. + TYPE_DEP indicates whether it depends on type of the function or not + (i.e. __PRETTY_FUNCTION__). */ + +extern tree (*make_fname_decl) PARAMS ((tree, const char *, int)); + extern void declare_function_name PARAMS ((void)); extern void decl_attributes PARAMS ((tree, tree, tree)); extern void init_function_format_info PARAMS ((void)); |