From: Andreas Jaeger Date: Tue, 21 May 2002 20:09:00 +0000 (+0200) Subject: * cppinit.c (sanity_checks): Avoid printf mismatch warnings. X-Git-Tag: releases/gcc-3.3.0~4921 X-Git-Url: https://gcc.gnu.org/git/?a=commitdiff_plain;h=68bd6dd68879755ecff25c829d1067bb78db82bf;p=gcc.git * cppinit.c (sanity_checks): Avoid printf mismatch warnings. From-SVN: r53694 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 84fbe3f6faf9..af1f768cb871 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-05-21 Andreas Jaeger + + * cppinit.c (sanity_checks): Avoid printf mismatch warnings. + 2002-05-21 Richard Henderson * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use @@ -33,7 +37,7 @@ Tue May 21 10:51:54 CEST 2002 Jan Hubicka (cselib_invalidate_regno): Use it to determine which hard registers to scan when mode is not VOIDmode. -2002-05-20 Duraid Madina +2002-05-20 Duraid Madina * tradcpp.c (fixup_newlines): Use old-style function header. @@ -215,7 +219,7 @@ config/alpha: * toplev.c (display_help): Kill -a -ax help. - * config/1750a/1750a.h, config/alpha/alpha.h, + * config/1750a/1750a.h, config/alpha/alpha.h, config/clipper/clipper.h, config/dsp16xx/dsp16xx.h, config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h, config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h: @@ -258,7 +262,7 @@ config/alpha: config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c, config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h, - config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h, + config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h, config/v850/v850.c, config/v850/v850.h: Move STRIP_NAME_ENCODING to out-of-line function and add diff --git a/gcc/cppinit.c b/gcc/cppinit.c index dad255aca8ce..4f2cc8ef652e 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -858,8 +858,9 @@ static void sanity_checks (pfile) if (CPP_OPTION (pfile, precision) > BITS_PER_HOST_WIDEST_INT) cpp_error (pfile, DL_FATAL, - "preprocessor arithmetic has maximum precision of %u bits; target requires %u bits", - BITS_PER_HOST_WIDEST_INT, CPP_OPTION (pfile, precision)); + "preprocessor arithmetic has maximum precision of %lu bits; target requires %lu bits", + (unsigned long)BITS_PER_HOST_WIDEST_INT, + (unsigned long)CPP_OPTION (pfile, precision)); if (CPP_OPTION (pfile, precision) < CPP_OPTION (pfile, int_precision)) cpp_error (pfile, DL_FATAL, @@ -878,8 +879,9 @@ static void sanity_checks (pfile) if (CPP_OPTION (pfile, wchar_precision) > BITS_PER_CPPCHAR_T) cpp_error (pfile, DL_FATAL, - "CPP on this host cannot handle wide character constants over %u bits, but the target requires %u bits", - BITS_PER_CPPCHAR_T, CPP_OPTION (pfile, wchar_precision)); + "CPP on this host cannot handle wide character constants over %lu bits, but the target requires %lu bits", + (unsigned long)BITS_PER_CPPCHAR_T, + (unsigned long)CPP_OPTION (pfile, wchar_precision)); } #else # define sanity_checks(PFILE)