public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: philippe_ribet@hotmail.com To: gcc-gnats@gcc.gnu.org Subject: preprocessor/8139: Bad new INT64_C macro Date: Fri, 04 Oct 2002 02:26:00 -0000 [thread overview] Message-ID: <20021004091737.21321.qmail@sources.redhat.com> (raw) >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 <inttypes.h> 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:
next reply other threads:[~2002-10-04 9:26 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-10-04 2:26 philippe_ribet [this message] 2002-10-04 15:16 Neil Booth 2002-10-05 2:28 neil 2002-10-07 2:06 Philippe RIBET 2002-10-07 3:16 Neil Booth 2002-10-07 3:26 Neil Booth 2002-10-07 5:06 Richard Henderson
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20021004091737.21321.qmail@sources.redhat.com \ --to=philippe_ribet@hotmail.com \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).