long long, C++ testsuite and -ansi -pedantic-errors

Mike Stump mrs@windriver.com
Mon Jun 12 15:53:00 GMT 2000

> Date: Mon, 12 Jun 2000 10:23:54 -0700
> From: "H . J . Lu" <hjl@valinux.com>
> To: gcc@gcc.gnu.org
> Content-Disposition: inline
> User-Agent: Mutt/1.2i

> With my libstdc++ v3 "make check" patch, I got some many failures
> like

> In file included from /work/gnu/src/gcc-3.0/egcs/libstdc++-v3/bits/std_iostream.h:38,^M
>                  from
> 		 /work/gnu/src/gcc-3.0/egcs/libstdc++-v3/backward/iostream.h:32,^M
>                   from /work/gnu/src/gcc-3.0/egcs/gcc/testsuite/g++.old-deja/g++.brendan/copy9.C:2:^M
> /work/gnu/src/gcc-3.0/egcs/libstdc++-v3/bits/std_ostream.h:128: ISO C++ does not support `long long'^M 

> It is caused by -ansi -pedantic-errors and long long. What should we
> do about it?

Remove it (the pedwarn call).  ISO C has added them.  ISO C++ follows
ISO C, unless there is a very specific and very good reason not to.
In this case, there is no such reason, therefore, we know that there
is no reason to have this message anymore.  If someone wants to retain
it under an older language standard, that is fine, but it should be
harder to get at (not with the flags you gave).

More information about the Gcc mailing list