OSDN Git Service

(output_function_profiler): When TARGET_MINIMAL_TOC,
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 19 Nov 1993 21:42:23 +0000 (21:42 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 19 Nov 1993 21:42:23 +0000 (21:42 +0000)
emit .long instead of .tc.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6116 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/rs6000/rs6000.c

index a770be1..415c90e 100644 (file)
@@ -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