]> gcc.gnu.org Git - gcc.git/commitdiff
(FUNCTION_PROFILER): Use $28 instead of $27.
authorRichard Kenner <kenner@gcc.gnu.org>
Wed, 26 Oct 1994 22:26:55 +0000 (18:26 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 26 Oct 1994 22:26:55 +0000 (18:26 -0400)
(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

index c7d20f6909c3b39995e343bc4eae5c91c0ca78c2..2fe6cdd51f89d63db5130de2642c339ebeab5877 100644 (file)
@@ -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);
 
This page took 0.069817 seconds and 5 git commands to generate.