diff options
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; |