rs6000.c (output_toc): Make "offset" HOST_WIDE_INT.
authorAlan Modra <amodra@bigpond.net.au>
Fri, 4 Nov 2005 02:23:38 +0000 (02:23 +0000)
committerAlan Modra <amodra@gcc.gnu.org>
Fri, 4 Nov 2005 02:23:38 +0000 (12:53 +1030)
* config/rs6000/rs6000.c (output_toc): Make "offset" HOST_WIDE_INT.
Use associated print macros.

From-SVN: r106474

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

index d6e62a6cecb50593ecc183e381490c3dcd1f0ecd..a1a145cc1dafac1bd75ebf80b439fc0613c3e768 100644 (file)
@@ -1,3 +1,8 @@
+2005-11-04  Alan Modra  <amodra@bigpond.net.au>
+
+       * config/rs6000/rs6000.c (output_toc): Make "offset" HOST_WIDE_INT.
+       Use associated print macros.
+
 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
 
        PR c++/17964
index 4ebeac5f99fdebcdc8788b79200cca1f9803d087..8d51003e9792ebee1b5131fb4c31d29200288e53 100644 (file)
@@ -15588,7 +15588,7 @@ output_toc (FILE *file, rtx x, int labelno, enum machine_mode mode)
   const char *name = buf;
   const char *real_name;
   rtx base = x;
-  int offset = 0;
+  HOST_WIDE_INT offset = 0;
 
   gcc_assert (!TARGET_NO_TOC);
 
@@ -15855,9 +15855,9 @@ output_toc (FILE *file, rtx x, int labelno, enum machine_mode mode)
       fprintf (file, "\t.tc %s", real_name);
 
       if (offset < 0)
-       fprintf (file, ".N%d", - offset);
+       fprintf (file, ".N" HOST_WIDE_INT_PRINT_UNSIGNED, - offset);
       else if (offset)
-       fprintf (file, ".P%d", offset);
+       fprintf (file, ".P" HOST_WIDE_INT_PRINT_UNSIGNED, offset);
 
       fputs ("[TC],", file);
     }
@@ -15872,9 +15872,9 @@ output_toc (FILE *file, rtx x, int labelno, enum machine_mode mode)
     {
       RS6000_OUTPUT_BASENAME (file, name);
       if (offset < 0)
-       fprintf (file, "%d", offset);
+       fprintf (file, HOST_WIDE_INT_PRINT_DEC, offset);
       else if (offset > 0)
-       fprintf (file, "+%d", offset);
+       fprintf (file, "+" HOST_WIDE_INT_PRINT_DEC, offset);
     }
   else
     output_addr_const (file, x);