delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/08/08/20:16:36

X-Spam-Check-By: sourceware.org
Message-ID: <019701c6bb49$c9b225a0$26e0110a@FRED4>
From: "fred" <fred AT 5thfinger DOT com>
To: "Cygwin" <cygwin AT cygwin DOT com>
Subject: Fw: GCC - 64bit long long type, support in lib
Date: Wed, 9 Aug 2006 10:21:23 +1000
MIME-Version: 1.0
X-Mailer: Microsoft Outlook Express 6.00.2800.1437
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com



The gcc supports 64bit int it seems, but the library as downloaded does not,
for example try

 long long ldec = 0x11000000000LL;
 printf("%s: 0x%Lx,%Ld; %s\n","test",ldec,ldec,"test2");

seems the library should support it, look in
usr\src\gcc-3.4.4\libiberty\_doprnt.c
#if defined(__GNUC__) || defined(HAVE_LONG_LONG)
   PRINT_TYPE(long long);
#else
   PRINT_TYPE(long); /* Fake it and hope for the best.  */
#endif



anyway, i've not successfully recompiled gcc library for this, and didn't
find any FAQ about it.
the above code still crashes/prints wrong value.

I think its a problem with configure, I see in configure where test code is
generated for  #define HAVE_LONG_LONG 1
but what configure file is supposed to get then set with this
flag....?config.h ? hmm not happening.






--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019