diff options
author | Richard Stallman <rms@gnu.org> | 1992-05-22 20:41:45 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-05-22 20:41:45 +0000 |
commit | b032c74c6f2abf0d16429970929bb573fb1be619 (patch) | |
tree | 0b9661c1b7f60b40bed6c489f941816f0204fe8e /gcc/c-common.c | |
parent | 7da551a2e80eeb4f2b3fa8765e84b79e899d934c (diff) | |
download | gcc-b032c74c6f2abf0d16429970929bb573fb1be619.zip gcc-b032c74c6f2abf0d16429970929bb573fb1be619.tar.gz gcc-b032c74c6f2abf0d16429970929bb573fb1be619.tar.bz2 |
*** empty log message ***
From-SVN: r1053
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 0c8118e..a00d384 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -27,7 +27,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #undef NULL #define NULL 0 -/* Make bindings for __NAME__ and __PRINTABLE_NAME__. */ +/* Make bindings for __FUNCTION__ and __PRETTY_FUNCTION__. */ void declare_function_name () @@ -50,11 +50,10 @@ declare_function_name () } push_obstacks_nochange (); - decl = build_decl (VAR_DECL, get_identifier ("__NAME__"), + decl = build_decl (VAR_DECL, get_identifier ("__FUNCTION__"), char_array_type_node); TREE_STATIC (decl) = 1; TREE_READONLY (decl) = 1; - TREE_NO_UNUSED_WARNING (decl) = 1; DECL_IGNORED_P (decl) = 1; init = build_string (strlen (name) + 1, name); TREE_TYPE (init) = char_array_type_node; @@ -62,11 +61,10 @@ declare_function_name () finish_decl (pushdecl (decl), init, NULL_TREE); push_obstacks_nochange (); - decl = build_decl (VAR_DECL, get_identifier ("__PRINTABLE_NAME__"), + decl = build_decl (VAR_DECL, get_identifier ("__PRETTY_FUNCTION__"), char_array_type_node); TREE_STATIC (decl) = 1; TREE_READONLY (decl) = 1; - TREE_NO_UNUSED_WARNING (decl) = 1; DECL_IGNORED_P (decl) = 1; init = build_string (strlen (printable_name) + 1, printable_name); TREE_TYPE (init) = char_array_type_node; |