summaryrefslogtreecommitdiff
path: root/gcc/profile.c
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1997-09-05 23:59:43 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1997-09-05 23:59:43 +0000
commit43cf8c6ae1ec6017831af76d9b5149a106a2da8e (patch)
tree52a8a92f8257e46bb9b8b91c1efe32b336e33494 /gcc/profile.c
parent429fcb02c3459fc1eb02ef0c3781ff12c105b0b7 (diff)
downloadgcc-43cf8c6ae1ec6017831af76d9b5149a106a2da8e.tar.gz
Fix undefined reference to constructor with -O3 -fprofile-arcs.
* 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
Diffstat (limited to 'gcc/profile.c')
-rw-r--r--gcc/profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/profile.c b/gcc/profile.c
index b2b65b598ac..0f25ed93185 100644
--- a/gcc/profile.c
+++ b/gcc/profile.c
@@ -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);