aboutsummaryrefslogtreecommitdiff
path: root/gcc/profile.c
diff options
context:
space:
mode:
authorJim Wilson <wilson@cygnus.com>1997-09-05 23:59:43 +0000
committerJim Wilson <wilson@gcc.gnu.org>1997-09-05 16:59:43 -0700
commit1aeb1f6f0b29157bba93f6a3da6bfc6eb8ddc64a (patch)
tree52a8a92f8257e46bb9b8b91c1efe32b336e33494 /gcc/profile.c
parent770a0113e656de4ec60fa0102ee795eed378e480 (diff)
downloadgcc-1aeb1f6f0b29157bba93f6a3da6bfc6eb8ddc64a.zip
gcc-1aeb1f6f0b29157bba93f6a3da6bfc6eb8ddc64a.tar.gz
gcc-1aeb1f6f0b29157bba93f6a3da6bfc6eb8ddc64a.tar.bz2
Fix undefined reference to constructor with -O3 -fprofile-arcs.
* profile.c (output_func_start_profiler): Set DECL_EXTERNAL to zero. From-SVN: r15127
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 b2b65b5..0f25ed9 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);