From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26520 invoked by alias); 2 Mar 2004 23:17:51 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 26513 invoked from network); 2 Mar 2004 23:17:50 -0000 Received: from unknown (HELO masquerade.micron.com) (137.201.242.130) by sources.redhat.com with SMTP; 2 Mar 2004 23:17:50 -0000 Received: from mail-srv2.micron.com (localhost [127.0.0.1]) by masquerade.micron.com (8.12.9/8.12.2) with ESMTP id i22NHscU006255 for ; Tue, 2 Mar 2004 16:17:54 -0700 (MST) Received: from ntxboimbx07.micron.com (ntxboimbx07.micron.com [137.201.80.94]) by mail-srv2.micron.com (8.12.9/8.12.2) with ESMTP id i22NHrXp006248; Tue, 2 Mar 2004 16:17:53 -0700 (MST) From: lrtaylor@micron.com content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Does Cygwin's GCC support 64-bit constants? Date: Tue, 02 Mar 2004 23:17:00 -0000 Message-ID: <363801FFD7B74240A329CEC3F7FE4CC4015F3A15@ntxboimbx07.micron.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: To: , X-Scanned-By: MIMEDefang 2.37 X-SW-Source: 2004-03/txt/msg00022.txt.bz2 Try adding 'L' to the end of the constant: 0xFF00000000000000L That tells the compiler that it's a long and not an integer. Cheers, Lyle -----Original Message----- From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On Behalf Of Nate Iverson Sent: Tuesday, March 02, 2004 4:16 PM To: gcc-help@gcc.gnu.org Subject: Does Cygwin's GCC support 64-bit constants? I'm getting the following warning message when I try to compile source code that contains 0xFF00000000000000 as a constant. warning: integer constant is too large for "long" type Cywin's GCC appears to have 64-bit integer support since there are no warnings/errors for uint64_t variables. Below are the gcc details: $ gcc -v Reading specs from /bin/../lib/gcc-lib/i686-pc-cygwin/3.3.1/specs Configured with: /GCC/gcc-3.3.1-3/configure --with-gcc --with-gnu-ld --with-gnu-as --prefix=3D/usr --exec-prefix=3D/usr --sysconfdir=3D/etc --libdir=3D/usr/lib --libexecdir=3D/usr/sbin --mandir=3D/usr/share/man --infodir=3D/usr/share/info --enable-languages=3Dc,ada,c++,f77,pascal,java,objc --enable-libgcj --enable-threads=3Dposix --with-system-zlib --enable-nls --without-included-gettext --enable-interpreter --enable-sjlj-exceptions --disable-version-specific-runtime-libs --enable-shared --disable-win32-registry --enable-java-gc=3Dboehm --disable-hash-synchronization --verbose --target=3Di686-pc-cygwin --host=3Di686-pc-cygwin --build=3Di686-pc-cygwin Thread model: posix gcc version 3.3.1 (cygming special) I have also tried to cast the constant (long long)0xFF00000000000000 -- it didn't change anything. Additionally, I have compiled this on Linux and QNX with no issues. Any insight is appreciated, Nate