From 3b48085e661950a1e6fdaf1997cda53ed8388064 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Tue, 8 Jun 2004 18:56:45 +0000 Subject: [PATCH] rs6000.c (print_operand, ): Make sure that we are in INDIRECT mode when getting the stub name. 2004-06-08 Andrew Pinski * config/rs6000/rs6000.c (print_operand, ): Make sure that we are in INDIRECT mode when getting the stub name. From-SVN: r82777 --- gcc/ChangeLog | 6 ++++++ gcc/config/rs6000/rs6000.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c242cb1e053..b251c45ad0c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-06-08 Andrew Pinski + + * config/rs6000/rs6000.c (print_operand, ): + Make sure that we are in INDIRECT mode when getting the + stub name. + 2004-06-08 Anil Paranjpe * h8300.md (extendqisi2_h8300): Add constraints. diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 4b23dccb717..79bc885d958 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); -- 2.30.2