diff options
author | Andreas Jaeger <aj@suse.de> | 2002-06-01 16:11:45 +0200 |
---|---|---|
committer | Andreas Jaeger <aj@gcc.gnu.org> | 2002-06-01 16:11:45 +0200 |
commit | 91b1247259cffcd3eb65721d21349b1a9eccafe3 (patch) | |
tree | 7b2a5756cab68093b4f735bc55819005c0fe4479 | |
parent | 01e9ae86327636d3a3309b19b88b261d8eabe6af (diff) | |
download | gcc-91b1247259cffcd3eb65721d21349b1a9eccafe3.zip gcc-91b1247259cffcd3eb65721d21349b1a9eccafe3.tar.gz gcc-91b1247259cffcd3eb65721d21349b1a9eccafe3.tar.bz2 |
cppexp.c (cpp_classify_number): Cast precission to int for correct printf format.
* cppexp.c (cpp_classify_number): Cast precission to int for
correct printf format.
From-SVN: r54147
-rw-r--r-- | gcc/ChangeLog | 11 | ||||
-rw-r--r-- | gcc/cppexp.c | 8 |
2 files changed, 12 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2cdf39b..753ea40 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-06-01 Andreas Jaeger <aj@suse.de> + + * cppexp.c (cpp_classify_number): Cast precission to int for + correct printf format. + 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl> * config/avr/avr.c (avr_mcu_types): Remove devices that were once @@ -54,10 +59,10 @@ Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> infrastructure. 2002-06-01 Alan Lehotsky <apl@alum.mit.edu> - + * except.c (nothrow_function_p): Walk epilogue delay list checking the insn, not the chain for potential throws. - + 2002-05-31 Zack Weinberg <zack@codesourcery.com> * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove. @@ -186,7 +191,7 @@ Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define. 2002-05-31 Alan Lehotsky <apl@alum.mit.edu> - + * varasm.c (mark_constant_pool): Walk epilogue delay list checking the insn, not the chain for potential constants. diff --git a/gcc/cppexp.c b/gcc/cppexp.c index 73a892f..1153768 100644 --- a/gcc/cppexp.c +++ b/gcc/cppexp.c @@ -244,7 +244,7 @@ cpp_classify_number (pfile, token) { cpp_error (pfile, DL_ERROR, "invalid suffix \"%.*s\" on floating constant", - limit - str, str); + (int) (limit - str), str); return CPP_N_INVALID; } @@ -254,7 +254,7 @@ cpp_classify_number (pfile, token) && ! cpp_sys_macro_p (pfile)) cpp_error (pfile, DL_WARNING, "traditional C rejects the \"%.*s\" suffix", - limit - str, str); + (int) (limit - str), str); result |= CPP_N_FLOATING; } @@ -265,7 +265,7 @@ cpp_classify_number (pfile, token) { cpp_error (pfile, DL_ERROR, "invalid suffix \"%.*s\" on integer constant", - limit - str, str); + (int) (limit - str), str); return CPP_N_INVALID; } @@ -275,7 +275,7 @@ cpp_classify_number (pfile, token) && ! cpp_sys_macro_p (pfile)) cpp_error (pfile, DL_WARNING, "traditional C rejects the \"%.*s\" suffix", - limit - str, str); + (int) (limit - str), str); if ((result & CPP_N_WIDTH) == CPP_N_LARGE && ! CPP_OPTION (pfile, c99) |