From b9a24ad42e0779007c31c349cf2a5b9a9f905f98 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Thu, 1 Oct 1992 19:01:26 +0000 Subject: [PATCH] (declare_function_name): __FUNC__ variables are compiler-created, so set DECL_SOURCE_LINE to zero. From-SVN: r2300 --- gcc/c-common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/c-common.c b/gcc/c-common.c index bf761106fa0..7f79b5cc0fd 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -55,6 +55,7 @@ declare_function_name () char_array_type_node); TREE_STATIC (decl) = 1; TREE_READONLY (decl) = 1; + DECL_SOURCE_LINE (decl) = 0; DECL_IN_SYSTEM_HEADER (decl) = 1; DECL_IGNORED_P (decl) = 1; init = build_string (strlen (name) + 1, name); @@ -67,6 +68,7 @@ declare_function_name () char_array_type_node); TREE_STATIC (decl) = 1; TREE_READONLY (decl) = 1; + DECL_SOURCE_LINE (decl) = 0; DECL_IN_SYSTEM_HEADER (decl) = 1; DECL_IGNORED_P (decl) = 1; init = build_string (strlen (printable_name) + 1, printable_name);