summaryrefslogtreecommitdiffstats
path: root/gcc/cppinit.c
diff options
context:
space:
mode:
authoraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-21 20:09:00 +0000
committeraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-21 20:09:00 +0000
commite4ab85e6b73b30e4f533bfeb365f5a82f912df15 (patch)
treecbdb2a8fe9c40ff82af55360d8b42ed7e3b82b00 /gcc/cppinit.c
parent372310d247a5ee3c652b33fa3fd3e0ad481be985 (diff)
downloadppe42-gcc-e4ab85e6b73b30e4f533bfeb365f5a82f912df15.tar.gz
ppe42-gcc-e4ab85e6b73b30e4f533bfeb365f5a82f912df15.zip
* cppinit.c (sanity_checks): Avoid printf mismatch warnings.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53694 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r--gcc/cppinit.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c
index dad255aca8c..4f2cc8ef652 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)
OpenPOWER on IntegriCloud