From 70428957af54a9b90f4ad6b063deb09d461c2a4f Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sat, 17 Sep 2016 09:39:37 +0000 Subject: [PATCH] ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast. * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast. * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise. From-SVN: r240214 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/cygming.h | 6 ++++-- gcc/config/ia64/ia64.h | 3 ++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index daa2619b95b..b8a9dab5042 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-09-17 Andreas Schwab + + * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast. + * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise. + 2016-09-16 Eric Botcazou * recog.c (rest_of_handle_split_after_reload): Delete. diff --git a/gcc/config/i386/cygming.h b/gcc/config/i386/cygming.h index faf8fa44003..60e11b481e9 100644 --- a/gcc/config/i386/cygming.h +++ b/gcc/config/i386/cygming.h @@ -110,7 +110,8 @@ along with GCC; see the file COPYING3. If not see fputs ("\t.secrel32\t", FILE); \ assemble_name (FILE, LABEL); \ if ((OFFSET) != 0) \ - fprintf (FILE, "+" HOST_WIDE_INT_PRINT_DEC, OFFSET) \ + fprintf (FILE, "+" HOST_WIDE_INT_PRINT_DEC, \ + (HOST_WIDE_INT) (OFFSET)) \ break; \ case 8: \ /* This is a hack. There is no 64-bit section relative \ @@ -121,7 +122,8 @@ along with GCC; see the file COPYING3. If not see fputs ("\t.secrel32\t", FILE); \ assemble_name (FILE, LABEL); \ if ((OFFSET) != 0) \ - fprintf (FILE, "+" HOST_WIDE_INT_PRINT_DEC, OFFSET) \ + fprintf (FILE, "+" HOST_WIDE_INT_PRINT_DEC, \ + (HOST_WIDE_INT) (OFFSET)) \ fputs ("\n\t.long\t0", FILE); \ break; \ default: \ diff --git a/gcc/config/ia64/ia64.h b/gcc/config/ia64/ia64.h index 00516bb9838..ac0cb864209 100644 --- a/gcc/config/ia64/ia64.h +++ b/gcc/config/ia64/ia64.h @@ -1587,7 +1587,8 @@ do { \ fputs ("@secrel(", FILE); \ assemble_name (FILE, LABEL); \ if ((OFFSET) != 0) \ - fprintf (FILE, "+" HOST_WIDE_INT_PRINT_DEC, OFFSET); \ + fprintf (FILE, "+" HOST_WIDE_INT_PRINT_DEC, \ + (HOST_WIDE_INT) (OFFSET)); \ fputc (')', FILE); \ } while (0) -- 2.30.2