> (declare_function_name): For __FUNCTION__ and __PRETTY_FUNCTION__...

> (declare_function_name): For __FUNCTION__ and __PRETTY_FUNCTION__,
set DECL_IN_SYSTEM_HEADER instead  of TREE_USED to supress `unused' warnings.

From-SVN: r1491
This commit is contained in:
Richard Stallman 1992-07-07 01:46:27 +00:00
parent 3110a56ea5
commit 176e81ebf9
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ declare_function_name ()
char_array_type_node);
TREE_STATIC (decl) = 1;
TREE_READONLY (decl) = 1;
TREE_USED (decl) = 1;
DECL_IN_SYSTEM_HEADER (decl) = 1;
DECL_IGNORED_P (decl) = 1;
init = build_string (strlen (name) + 1, name);
TREE_TYPE (init) = char_array_type_node;
@ -66,7 +66,7 @@ declare_function_name ()
char_array_type_node);
TREE_STATIC (decl) = 1;
TREE_READONLY (decl) = 1;
TREE_USED (decl) = 1;
DECL_IN_SYSTEM_HEADER (decl) = 1;
DECL_IGNORED_P (decl) = 1;
init = build_string (strlen (printable_name) + 1, printable_name);
TREE_TYPE (init) = char_array_type_node;