From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24799 invoked by alias); 4 Oct 2002 09:26:01 -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 24766 invoked by uid 71); 4 Oct 2002 09:26:01 -0000 Resent-Date: 4 Oct 2002 09:26:01 -0000 Resent-Message-ID: <20021004092601.24765.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, philippe_ribet@hotmail.com Received: (qmail 21322 invoked by uid 61); 4 Oct 2002 09:17:37 -0000 Message-Id: <20021004091737.21321.qmail@sources.redhat.com> Date: Fri, 04 Oct 2002 02:26:00 -0000 From: philippe_ribet@hotmail.com Reply-To: philippe_ribet@hotmail.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: preprocessor/8139: Bad new INT64_C macro X-SW-Source: 2002-10/txt/msg00149.txt.bz2 List-Id: >Number: 8139 >Category: preprocessor >Synopsis: Bad new INT64_C macro >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri Oct 04 02:26:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: philippe_ribet@hotmail.com >Release: 3.2 >Organization: >Environment: >Description: Old INT64_C macro definition was value ## LL. New definition is probably better but then the compiler has to be modified accordingly. 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 >Fix: >Release-Note: >Audit-Trail: >Unformatted: