aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@gcc.gnu.org>2002-05-21 22:09:00 +0200
committerAndreas Jaeger <aj@gcc.gnu.org>2002-05-21 22:09:00 +0200
commit68bd6dd68879755ecff25c829d1067bb78db82bf (patch)
treecbdb2a8fe9c40ff82af55360d8b42ed7e3b82b00
parent35a76aacf6174d280b49051a7e1cf1bc9334ce11 (diff)
downloadgcc-68bd6dd68879755ecff25c829d1067bb78db82bf.zip
gcc-68bd6dd68879755ecff25c829d1067bb78db82bf.tar.gz
gcc-68bd6dd68879755ecff25c829d1067bb78db82bf.tar.bz2
* cppinit.c (sanity_checks): Avoid printf mismatch warnings.
From-SVN: r53694
-rw-r--r--gcc/ChangeLog10
-rw-r--r--gcc/cppinit.c10
2 files changed, 13 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 84fbe3f..af1f768 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2002-05-21 Andreas Jaeger <aj@suse.de>
+
+ * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
+
2002-05-21 Richard Henderson <rth@redhat.com>
* 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 <jh@suse.cz>
(cselib_invalidate_regno): Use it to determine which hard
registers to scan when mode is not VOIDmode.
-2002-05-20 Duraid Madina <duraid@fl.net.au>
+2002-05-20 Duraid Madina <duraid@fl.net.au>
* 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 dad255a..4f2cc8e 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)