OSDN Git Service

2004-03-04 David Edelsohn <edelsohn@gnu.org>
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Mar 2004 15:28:59 +0000 (15:28 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Mar 2004 15:28:59 +0000 (15:28 +0000)
            GP <gp@qnx.com>

        * config/rs6000/rs6000.c (output_function_profiler): Append @plt
        when compiling PIC.

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

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 7d8973a..d5faea0 100644 (file)
@@ -1,3 +1,9 @@
+2004-03-04  David Edelsohn  <edelsohn@gnu.org>
+           GP <gp@qnx.com>
+
+       * config/rs6000/rs6000.c (output_function_profiler): Append @plt
+       when compiling PIC.
+
 2004-03-04  Josef Zlomek  <zlomekj@suse.cz>
 
        PR/14362
index 5648d65..3466590 100644 (file)
@@ -9063,7 +9063,7 @@ print_operand (FILE *file, rtx x, int code)
 
     case 'Q':
       if (TARGET_MFCRF)
-       fputc (',',file);
+       fputc (',', file);
         /* FALLTHRU */
       else
        return;
@@ -13682,7 +13682,8 @@ output_function_profiler (FILE *file, int labelno)
        }
 
       /* ABI_V4 saves the static chain reg with ASM_OUTPUT_REG_PUSH.  */
-      fprintf (file, "\tbl %s\n", RS6000_MCOUNT);
+      fprintf (file, "\tbl %s%s\n",
+              RS6000_MCOUNT, flag_pic ? "@plt" : "");
       break;
 
     case ABI_AIX: