aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2004-06-08 18:56:45 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-06-08 11:56:45 -0700
commit3b48085e661950a1e6fdaf1997cda53ed8388064 (patch)
tree1f520cf16b9833454fb0270d8adc59c3986f5c68 /gcc
parent03defda9a0bc5a891415a6d52c7ccfc7b15eff6c (diff)
downloadgcc-3b48085e661950a1e6fdaf1997cda53ed8388064.zip
gcc-3b48085e661950a1e6fdaf1997cda53ed8388064.tar.gz
gcc-3b48085e661950a1e6fdaf1997cda53ed8388064.tar.bz2
rs6000.c (print_operand, <case 'z'>): Make sure that we are in INDIRECT mode when getting the stub name.
2004-06-08 Andrew Pinski <pinskia@physics.uc.edu> * config/rs6000/rs6000.c (print_operand, <case 'z'>): Make sure that we are in INDIRECT mode when getting the stub name. From-SVN: r82777
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/rs6000/rs6000.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c242cb1..b251c45 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2004-06-08 Andrew Pinski <pinskia@physics.uc.edu>
+
+ * config/rs6000/rs6000.c (print_operand, <case 'z'>):
+ Make sure that we are in INDIRECT mode when getting the
+ stub name.
+
2004-06-08 Anil Paranjpe <anilp1@kpitcummins.com>
* h8300.md (extendqisi2_h8300): Add constraints.
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 4b23dcc..79bc885 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -9744,7 +9744,8 @@ print_operand (FILE *file, rtx x, int code)
{
const char *name = XSTR (x, 0);
#if TARGET_MACHO
- if (machopic_classify_name (name) == MACHOPIC_UNDEFINED_FUNCTION)
+ if (MACHOPIC_INDIRECT
+ && machopic_classify_name (name) == MACHOPIC_UNDEFINED_FUNCTION)
name = machopic_stub_name (name);
#endif
assemble_name (file, name);