aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1993-11-19 13:42:23 -0800
committerJim Wilson <wilson@gcc.gnu.org>1993-11-19 13:42:23 -0800
commit35fc1624acabf68663c05b029b75763bff8fd6ab (patch)
tree34309d866b51cfd857394925ca65cb9f9ff21e7b
parent9d85330726e674c9a2d7d826623f890356096800 (diff)
downloadgcc-35fc1624acabf68663c05b029b75763bff8fd6ab.zip
gcc-35fc1624acabf68663c05b029b75763bff8fd6ab.tar.gz
gcc-35fc1624acabf68663c05b029b75763bff8fd6ab.tar.bz2
(output_function_profiler): When TARGET_MINIMAL_TOC,
emit .long instead of .tc. From-SVN: r6116
-rw-r--r--gcc/config/rs6000/rs6000.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index a770be1..415c90e 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -1973,8 +1973,11 @@ output_function_profiler (file, labelno)
/* Set up a TOC entry for the profiler label. */
toc_section ();
- fprintf (file, "LPC..%d:\n\t.tc\tLP..%d[TC],LP..%d\n",
- labelno, labelno, labelno);
+ if (TARGET_MINIMAL_TOC)
+ fprintf (file, "LPC..%d:\n\t.long LP..%d\n", labelno, labelno);
+ else
+ fprintf (file, "LPC..%d:\n\t.tc\tLP..%d[TC],LP..%d\n",
+ labelno, labelno, labelno);
text_section ();
/* Figure out last used parameter register. The proper thing to do is