aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Edelsohn <edelsohn@gnu.org>2004-03-04 15:28:59 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2004-03-04 10:28:59 -0500
commit3b6ce0af5eb623ca01fe7a34c19594d3cb675a00 (patch)
tree786098e9510c7bcf01952bb4bd5a20d4380bcd01 /gcc
parent1f6ad0b5547a8057c29a88d8548027911248e510 (diff)
downloadgcc-3b6ce0af5eb623ca01fe7a34c19594d3cb675a00.zip
gcc-3b6ce0af5eb623ca01fe7a34c19594d3cb675a00.tar.gz
gcc-3b6ce0af5eb623ca01fe7a34c19594d3cb675a00.tar.bz2
rs6000.c (output_function_profiler): Append @plt when compiling PIC.
2004-03-04 David Edelsohn <edelsohn@gnu.org> GP <gp@qnx.com> * config/rs6000/rs6000.c (output_function_profiler): Append @plt when compiling PIC. Co-Authored-By: GP <gp@qnx.com> From-SVN: r78912
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/rs6000/rs6000.c5
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7d8973a..d5faea0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 5648d65..3466590 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -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: