summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-02-25 08:36:33 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1995-02-25 08:36:33 -0500
commite0fb902946a60d01793e95398cbef91ad8e0645b (patch)
treeaceb62794d247860de6075159bb38c738b25bece /gcc
parent3a942930d4450a88c97c3b51569336d73f111ab9 (diff)
downloadgcc-e0fb902946a60d01793e95398cbef91ad8e0645b.tar.gz
(ASM_SPEC): Pass -pg to assembler.
(FUNCTION_PROFILER): Do nothing; the assembler does it for us. From-SVN: r9083
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/alpha/alpha.h17
1 files changed, 4 insertions, 13 deletions
diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h
index e84dd6429a4..961c4802a8b 100644
--- a/gcc/config/alpha/alpha.h
+++ b/gcc/config/alpha/alpha.h
@@ -42,7 +42,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define SIGNED_CHAR_SPEC "%{funsigned-char:-D__CHAR_UNSIGNED__}"
/* No point in running CPP on our assembler output. */
-#define ASM_SPEC "-nocpp"
+#define ASM_SPEC "-nocpp %{pg}"
/* Under OSF/1, -p and -pg require -lprof1. */
@@ -911,19 +911,10 @@ extern char *alpha_function_name;
#define FUNCTION_PROLOGUE(FILE, SIZE) output_prolog (FILE, SIZE)
/* Output assembler code to FILE to increment profiler label # LABELNO
- for profiling a function entry. Profiling for gprof does not
- require LABELNO so we don't reference it at all. This does,
- however, mean that -p won't work. But OSF/1 doesn't support the
- traditional prof anyways, so there is no good reason to be
- backwards compatible. */
-
-#define FUNCTION_PROFILER(FILE, LABELNO) \
- do { \
- fputs ("\tlda $28,_mcount\n", (FILE)); \
- fputs ("\tjsr $28,($28),_mcount\n", (FILE)); \
- fputs ("\tldgp $29,0($27)\n", (FILE)); \
- } while (0);
+ for profiling a function entry. Under OSF/1, profiling is enabled
+ by simply passing -pg to the assember and linker. */
+#define FUNCTION_PROFILER(FILE, LABELNO)
/* Output assembler code to FILE to initialize this source file's
basic block profiling info, if that has not already been done.