From: Alan Modra Date: Fri, 4 Nov 2005 02:23:38 +0000 (+0000) Subject: rs6000.c (output_toc): Make "offset" HOST_WIDE_INT. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=16fdeb483fb533cad7ba853b017a9195ee679e02;p=gcc.git rs6000.c (output_toc): Make "offset" HOST_WIDE_INT. * config/rs6000/rs6000.c (output_toc): Make "offset" HOST_WIDE_INT. Use associated print macros. From-SVN: r106474 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d6e62a6cecb..a1a145cc1da 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-11-04 Alan Modra + + * config/rs6000/rs6000.c (output_toc): Make "offset" HOST_WIDE_INT. + Use associated print macros. + 2005-11-03 Joseph S. Myers PR c++/17964 diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 4ebeac5f99f..8d51003e979 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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);