diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1993-11-19 13:42:23 -0800 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1993-11-19 13:42:23 -0800 |
commit | 35fc1624acabf68663c05b029b75763bff8fd6ab (patch) | |
tree | 34309d866b51cfd857394925ca65cb9f9ff21e7b /gcc | |
parent | 9d85330726e674c9a2d7d826623f890356096800 (diff) | |
download | gcc-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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 7 |
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 |