Fix undefined reference to constructor with -O3 -fprofile-arcs.
authorJim Wilson <wilson@cygnus.com>
Fri, 5 Sep 1997 23:59:43 +0000 (23:59 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Fri, 5 Sep 1997 23:59:43 +0000 (16:59 -0700)
* profile.c (output_func_start_profiler): Set DECL_EXTERNAL to zero.

From-SVN: r15127

gcc/ChangeLog
gcc/profile.c

index 05016127a3000bd81754810218fdcf8a9b067a7b..32daca505b535b9f05302e971e6cdca797b6b313 100644 (file)
@@ -1,3 +1,7 @@
+Fri Sep  5 16:54:55 1997  Jim Wilson  <wilson@cygnus.com>
+
+       * profile.c (output_func_start_profiler): Set DECL_EXTERNAL to zero.
+
 Fri Sep  5 16:16:44 1997  Christian Kuehnke  <Christian.Kuehnke@arbi.Informatik.Uni-Oldenburg.DE>
 
        * sparc/sparc.md: Add ultrasparc scheduling support.
index b2b65b598ac89a8d2473244ed9294cc030100731..0f25ed93185b5d8e4cb009daabd5e51771c01599 100644 (file)
@@ -1610,7 +1610,7 @@ output_func_start_profiler ()
 
   fndecl = build_decl (FUNCTION_DECL, fnname,
                       build_function_type (void_type_node, NULL_TREE));
-  DECL_EXTERNAL (fndecl) = 1;
+  DECL_EXTERNAL (fndecl) = 0;
   TREE_PUBLIC (fndecl) = 1;
   DECL_ASSEMBLER_NAME (fndecl) = fnname;
   DECL_RESULT (fndecl) = build_decl (RESULT_DECL, NULL_TREE, void_type_node);