This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Diagnose decimal integer constants too large for intmax_t
- From: Jakub Jelinek <jakub at redhat dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 25 Apr 2009 20:55:35 +0200
- Subject: Re: Diagnose decimal integer constants too large for intmax_t
- References: <Pine.LNX.4.64.0904251845450.5129@digraph.polyomino.org.uk>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Sat, Apr 25, 2009 at 06:46:20PM +0000, Joseph S. Myers wrote:
> --- libcpp/expr.c (revision 146747)
> +++ libcpp/expr.c (working copy)
> @@ -538,8 +538,27 @@ cpp_interpret_integer (cpp_reader *pfile
> && pfile->state.in_directive)
> && !num_positive (result, precision))
> {
> + /* This is for constants within the range of uintmax_t but
> + not that or intmax_t. For such decimal constants, a
s/or/of/ ?
Jakub