From 1c6c2b05c732ed415fe812c596fe71ccc1828583 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 26 Oct 1994 18:26:55 -0400 Subject: [PATCH] (FUNCTION_PROFILER): Use $28 instead of $27. (LINK_SPEC): Pass -pg to linker. (LIB_SPEC): Link in -lprof1 with -pg, not -lprof2. (STARTFILE_SPEC): USe gcrt0.o if -pg, not mcrt0.o. From-SVN: r8346 --- gcc/config/alpha/alpha.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h index c7d20f6909c..2fe6cdd51f8 100644 --- a/gcc/config/alpha/alpha.h +++ b/gcc/config/alpha/alpha.h @@ -44,19 +44,19 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* No point in running CPP on our assembler output. */ #define ASM_SPEC "-nocpp" -/* Right now Alpha OSF/1 doesn't seem to have debugging libraries. */ +/* Under OSF/1, -p and -pg require -lprof1. */ -#define LIB_SPEC "%{p:-lprof1} %{pg:-lprof2} -lc" +#define LIB_SPEC "%{p:-lprof1} %{pg:-lprof1} %{a:-lprof2} -lc" /* Pass "-G 8" to ld because Alpha's CC does. Pass -O3 if we are optimizing, -O1 if we are not. Pass -shared, -non_shared or - -call_shared as appropriate. */ + -call_shared as appropriate. Also pass -pg. */ #define LINK_SPEC \ "-G 8 %{O*:-O3} %{!O*:-O1} %{!shared:-init __main} %{static:-non_shared} \ - %{!static:%{shared:-shared} %{!shared:-call_shared}}" + %{!static:%{shared:-shared} %{!shared:-call_shared}} %{pg}" #define STARTFILE_SPEC \ - "%{!shared:%{pg:mcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}}" + "%{!shared:%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}}" /* Print subsidiary information on the compiler version in use. */ #define TARGET_VERSION @@ -923,8 +923,8 @@ extern char *alpha_function_name; #define FUNCTION_PROFILER(FILE, LABELNO) \ do { \ - fputs ("\tlda $27,_mcount\n", (FILE)); \ - fputs ("\tjsr $27,($27),_mcount\n", (FILE)); \ + fputs ("\tlda $28,_mcount\n", (FILE)); \ + fputs ("\tjsr $28,($28),_mcount\n", (FILE)); \ fputs ("\tldgp $29,0($27)\n", (FILE)); \ } while (0); -- 2.30.2