diff options
author | Alan Modra <amodra@bigpond.net.au> | 2005-11-04 02:23:38 +0000 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2005-11-04 12:53:38 +1030 |
commit | 16fdeb483fb533cad7ba853b017a9195ee679e02 (patch) | |
tree | 1b42d4539cb51011ae7ffea938045b5e78fa09cb /gcc | |
parent | 5571f74f66e462873f442db894ab278c0f6aa563 (diff) | |
download | gcc-16fdeb483fb533cad7ba853b017a9195ee679e02.zip gcc-16fdeb483fb533cad7ba853b017a9195ee679e02.tar.gz gcc-16fdeb483fb533cad7ba853b017a9195ee679e02.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d6e62a6..a1a145c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 4ebeac5..8d51003 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); |