This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Bootstrap failure caused by your patch
- From: Andreas Schwab <schwab at suse dot de>
- To: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- Cc: nickc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Mon, 11 Dec 2006 20:09:16 +0100
- Subject: Re: Bootstrap failure caused by your patch
- References: <20061207171657.nsiff7r9k4ssw8w8@webmail.physik.uni-muenchen.de>
Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de> writes:
> cc1: warnings being treated as errors
> ../../gcc/varasm.c: In function 'elf_record_gcc_switches':
> ../../gcc/varasm.c:6268: warning: format '%llu' expects type 'long long
> unsigned int', but argument 3 has type 'long int'
I'm checking this in as obvious, tested on powerpc-suse-linux and
ia64-suse-linux.
Andreas.
2006-12-11 Andreas Schwab <schwab@suse.de>
* varasm.c (elf_record_gcc_switches): Cast second argument of
ASM_OUTPUT_SKIP to unsigned HOST_WIDE_INT.
Index: gcc/varasm.c
===================================================================
--- gcc/varasm.c (revision 119737)
+++ gcc/varasm.c (working copy)
@@ -6265,14 +6265,14 @@ elf_record_gcc_switches (print_switch_ty
snprintf (buffer + len, sizeof buffer - len, " %s", name);
ASM_OUTPUT_ASCII (asm_out_file, buffer, strlen (buffer));
- ASM_OUTPUT_SKIP (asm_out_file, 1L);
+ ASM_OUTPUT_SKIP (asm_out_file, (unsigned HOST_WIDE_INT) 1);
previous_name_held_back = FALSE;
}
else
{
strncpy (buffer, name, sizeof buffer);
ASM_OUTPUT_ASCII (asm_out_file, buffer, strlen (buffer));
- ASM_OUTPUT_SKIP (asm_out_file, 1L);
+ ASM_OUTPUT_SKIP (asm_out_file, (unsigned HOST_WIDE_INT) 1);
}
}
else
@@ -6280,7 +6280,7 @@ elf_record_gcc_switches (print_switch_ty
if (previous_name_held_back)
{
ASM_OUTPUT_ASCII (asm_out_file, buffer, strlen (buffer));
- ASM_OUTPUT_SKIP (asm_out_file, 1L);
+ ASM_OUTPUT_SKIP (asm_out_file, (unsigned HOST_WIDE_INT) 1);
}
strncpy (buffer, name, sizeof buffer);
@@ -6299,7 +6299,7 @@ elf_record_gcc_switches (print_switch_ty
if (previous_name_held_back)
{
ASM_OUTPUT_ASCII (asm_out_file, buffer, strlen (buffer));
- ASM_OUTPUT_SKIP (asm_out_file, 1L);
+ ASM_OUTPUT_SKIP (asm_out_file, (unsigned HOST_WIDE_INT) 1);
}
}
else
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."