aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-10-26 18:26:55 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1994-10-26 18:26:55 -0400
commit1c6c2b05c732ed415fe812c596fe71ccc1828583 (patch)
treea96b12f364f558905c51e0d4bf25932fed878349 /gcc
parent9fbd9f58d731d94cfe0b2ee368a8ea83b9081388 (diff)
downloadgcc-1c6c2b05c732ed415fe812c596fe71ccc1828583.zip
gcc-1c6c2b05c732ed415fe812c596fe71ccc1828583.tar.gz
gcc-1c6c2b05c732ed415fe812c596fe71ccc1828583.tar.bz2
(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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/alpha/alpha.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h
index c7d20f6..2fe6cdd 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);