* config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Jul 2000 00:45:19 +0000 (00:45 +0000)
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Jul 2000 00:45:19 +0000 (00:45 +0000)
for vtable references.

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

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

index 985e5c9..cefab9f 100644 (file)
@@ -1,5 +1,8 @@
 2000-07-20  Geoff Keating  <geoffk@cygnus.com>
 
+       * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
+       for vtable references.
+
        * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): If we have a
        choice, don't put integer values in FP regs.
 
index ba8562b..ecbcb28 100644 (file)
@@ -6647,9 +6647,9 @@ output_toc (file, x, labelno)
      a TOC reference to an unknown section.  Thus, for vtables only,
      we emit the TOC reference to reference the symbol and not the
      section.  */
-  if (! strncmp ("_vt.", name, 4))
+  if (strncmp ("_vt.", name, 4) == 0)
     {
-      assemble_name (file, name);
+      RS6000_OUTPUT_BASENAME (file, name);
       if (offset < 0)
        fprintf (file, "%d", offset);
       else if (offset > 0)