> (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:
parent
3110a56ea5
commit
176e81ebf9
|
@ -54,7 +54,7 @@ declare_function_name ()
|
||||||
char_array_type_node);
|
char_array_type_node);
|
||||||
TREE_STATIC (decl) = 1;
|
TREE_STATIC (decl) = 1;
|
||||||
TREE_READONLY (decl) = 1;
|
TREE_READONLY (decl) = 1;
|
||||||
TREE_USED (decl) = 1;
|
DECL_IN_SYSTEM_HEADER (decl) = 1;
|
||||||
DECL_IGNORED_P (decl) = 1;
|
DECL_IGNORED_P (decl) = 1;
|
||||||
init = build_string (strlen (name) + 1, name);
|
init = build_string (strlen (name) + 1, name);
|
||||||
TREE_TYPE (init) = char_array_type_node;
|
TREE_TYPE (init) = char_array_type_node;
|
||||||
|
@ -66,7 +66,7 @@ declare_function_name ()
|
||||||
char_array_type_node);
|
char_array_type_node);
|
||||||
TREE_STATIC (decl) = 1;
|
TREE_STATIC (decl) = 1;
|
||||||
TREE_READONLY (decl) = 1;
|
TREE_READONLY (decl) = 1;
|
||||||
TREE_USED (decl) = 1;
|
DECL_IN_SYSTEM_HEADER (decl) = 1;
|
||||||
DECL_IGNORED_P (decl) = 1;
|
DECL_IGNORED_P (decl) = 1;
|
||||||
init = build_string (strlen (printable_name) + 1, printable_name);
|
init = build_string (strlen (printable_name) + 1, printable_name);
|
||||||
TREE_TYPE (init) = char_array_type_node;
|
TREE_TYPE (init) = char_array_type_node;
|
||||||
|
|
Loading…
Reference in New Issue