This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][2/n] Change dw2_asm_output_offset to allow assembling extra offset
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Richard Biener <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org, jason at redhat dot com, ktietz at redhat dot com, mikestump at comcast dot net
- Date: Sat, 17 Sep 2016 11:48:37 +0200
- Subject: Re: [PATCH][2/n] Change dw2_asm_output_offset to allow assembling extra offset
- Authentication-results: sourceware.org; auth=none
- References: <alpine.LSU.2.11.1508191617300.19998@zhemvz.fhfr.qr> <87vaxwxmrg.fsf@linux-m68k.org>
* config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
* config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
diff --git a/gcc/config/i386/cygming.h b/gcc/config/i386/cygming.h
index faf8fa4..60e11b4 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 00516bb..ac0cb86 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.10.0
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."