(declare_function_name): __FUNC__ variables
authorRichard Stallman <rms@gnu.org>
Thu, 1 Oct 1992 19:01:26 +0000 (19:01 +0000)
committerRichard Stallman <rms@gnu.org>
Thu, 1 Oct 1992 19:01:26 +0000 (19:01 +0000)
are compiler-created, so set DECL_SOURCE_LINE to zero.

From-SVN: r2300

gcc/c-common.c

index bf761106fa079d6ca9a8aea6e7cc5ae7d9db298e..7f79b5cc0fd161a95a4b9f013062a7de81b6bbbc 100644 (file)
@@ -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);