This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: --enable-long-long not recognized by gcc-3.0


On Wednesday 11 July 2001 21:44, Phil Edwards wrote:
> On Wed, Jul 11, 2001 at 02:43:06PM +0200, Carlo Wood wrote:
> > It's not a compiler flag.  You can pass it to 'configure' when
> > configuring the compiler (source tree) prior to compiling the compiler
> > itself.
> >
> > On Wed, Jul 11, 2001 at 01:47:56PM +0200, Ryszard Kabatek wrote:
> > > on http://gcc.gnu.org/bugs.html#known I found the description of
> > > the compiler flag --enable-long-long. The compiler does not recognize
> > > it.
> > >
> > > How I can enable the long long support in gcc-3.0?
>
> Unless I'm misremembering, this is on by default, but the configure script
> will disable it if the necessary support cannot be found.

It will enable long long support only when some other stuff is available
(like wide character string functions). I applied following patch  to 
libstdc++-v3/acinclude.m4 when building gcc-3.0 for DJGPP:

--- acinclude.m4.orig	Thu Jun 14 11:47:34 2001
+++ acinclude.m4	Mon Jun 18 17:04:14 2001
@@ -1391,7 +1391,7 @@
   # iostreams require strtoll, strtoull to compile. If the
   # GLIBCPP_ENABLE_C99 tests found these, and if C99 support is enabled,
   # go ahead and allow long long to be used.
-  if test x"$enable_c99" = x"no"; then
+  if ! test x"$ac_c99_stdlib" = x"yes"; then
     enable_long_long=no; 
   fi
 

DJGPP libc doesn't have full wide character string support yet, so I needed 
this to get long long support enabled.

Andris


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]