This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
OK for mainline? -gavin... This patch replaces the several 'integer constant out of range' messages in gcc and g++ with more specific messages. 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. Index: c-lex.c =================================================================== RCS file: /egcs/carton/cvsfiles/egcs/gcc/c-lex.c,v retrieving revision 1.50 diff -r1.50 c-lex.c 1778c1778 < 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); 1869c1869 < pedwarn ("integer constant out of range"); --- > pedwarn ("integer constant larger than the maximum value of an unsigned long int"); 1906c1906 < pedwarn ("integer constant out of range"); --- > pedwarn ("integer constant is larger than the maximum value for its type"); Index: cp/lex.c =================================================================== RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/lex.c,v retrieving revision 1.114 diff -r1.114 lex.c 3918c3918 < 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); 3959c3959 < pedwarn ("integer constant out of range"); --- > pedwarn ("integer constant is larger than the maximum value for its type");
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |