egcs-970828 bug with -fprofile-arcs
Jim Wilson
wilson@chestnut.cygnus.com
Fri Sep 5 17:01:00 GMT 1997
Here's another patch to fix this problem.
Fri Sep 5 16:54:55 1997 Jim Wilson <wilson@cygnus.com>
* profile.c (output_func_start_profiler): Set DECL_EXTERNAL to zero.
Index: profile.c
===================================================================
RCS file: /cvs/cvsfiles/egcs/gcc/profile.c,v
retrieving revision 1.3
diff -p -r1.3 profile.c
*** profile.c 1997/09/05 02:17:55 1.3
--- profile.c 1997/09/05 23:55:25
*************** output_func_start_profiler ()
*** 1610,1616 ****
fndecl = build_decl (FUNCTION_DECL, fnname,
build_function_type (void_type_node, NULL_TREE));
! DECL_EXTERNAL (fndecl) = 1;
TREE_PUBLIC (fndecl) = 1;
DECL_ASSEMBLER_NAME (fndecl) = fnname;
DECL_RESULT (fndecl) = build_decl (RESULT_DECL, NULL_TREE, void_type_node);
--- 1610,1616 ----
fndecl = build_decl (FUNCTION_DECL, fnname,
build_function_type (void_type_node, NULL_TREE));
! 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);
More information about the Gcc-bugs
mailing list