OSDN Git Service

Fix undefined reference to constructor with -O3 -fprofile-arcs.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Sep 1997 23:59:43 +0000 (23:59 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Sep 1997 23:59:43 +0000 (23:59 +0000)
* profile.c (output_func_start_profiler): Set DECL_EXTERNAL to zero.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@15127 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/profile.c

index 0501612..32daca5 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 b2b65b5..0f25ed9 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);