From ed534bdd3753683d7bb4fa1d6b5f1e8760ad7342 Mon Sep 17 00:00:00 2001 From: Gavin Romig-Koch Date: Thu, 1 Jul 1999 08:08:42 +0000 Subject: For gcc: * c-lex.c (yylex): Improve 'integer constant out of range' messages. For gcc/cp: * lex.c (real_yylex): Improve 'integer constant out of range' messages. From-SVN: r27873 --- gcc/cp/lex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/cp/lex.c') diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index 1ab5df3..1e26726 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -3915,7 +3915,7 @@ real_yylex () if (parts[i]) warn = 1; if (warn) - pedwarn ("integer constant out of range"); + pedwarn ("integer constant is too large for this configuration of the compiler - truncated to %d bits", HOST_BITS_PER_WIDE_INT * 2); /* This is simplified by the fact that our constant is always positive. */ @@ -3956,7 +3956,7 @@ real_yylex () type = long_long_unsigned_type_node; if (!int_fits_type_p (yylval.ttype, type) && !warn) - pedwarn ("integer constant out of range"); + pedwarn ("integer constant is larger than the maximum value for its type"); if (base == 10 && ! spec_unsigned && TREE_UNSIGNED (type)) warning ("decimal integer constant is so large that it is unsigned"); -- cgit v1.1