From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10963 invoked by alias); 4 Oct 2002 22:16:04 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 10869 invoked by uid 71); 4 Oct 2002 22:16:00 -0000 Date: Fri, 04 Oct 2002 15:16:00 -0000 Message-ID: <20021004221600.10868.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Neil Booth Subject: Re: preprocessor/8139: Bad new INT64_C macro Reply-To: Neil Booth X-SW-Source: 2002-10/txt/msg00169.txt.bz2 List-Id: The following reply was made to PR preprocessor/8139; it has been noted by GNATS. From: Neil Booth To: philippe_ribet@hotmail.com Cc: gcc-gnats@gcc.gnu.org Subject: Re: preprocessor/8139: Bad new INT64_C macro Date: Fri, 4 Oct 2002 23:05:58 +0100 philippe_ribet@hotmail.com wrote:- > Old INT64_C macro definition was value ## LL. > > New definition is probably better but then the compiler has to be modified accordingly. What is the new definition? What is this macro? > Note that all values are valid 64 bit numbers. > The bug occured in the range -2^32+1 .. -2^31. > >How-To-Repeat: > #include > > main(){ > int64_t v; > > v = INT64_C(-2147483648); > v = INT64_C(-3000000000); > v = INT64_C(-4000000000); > v = INT64_C(-5000000000); > } > > $ gcc t.c > t.c: In function `main': > t.c:6: warning: decimal constant is so large that it is unsigned > t.c:7: warning: decimal constant is so large that it is unsigned > t.c:8: warning: decimal constant is so large that it is unsigned I don't think this macro is defined by GCC. Is it system specific? I suspect the warnings are correct, but new, and that the definition of the macro is unchanged. Neil.