This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: long long, C++ testsuite and -ansi -pedantic-errors
- To: Mike Stump <mrs at windriver dot com>
- Subject: Re: long long, C++ testsuite and -ansi -pedantic-errors
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 13 Jun 2000 02:42:48 +0200
- Cc: gcc at gcc dot gnu dot org, hjl at valinux dot com
- Organization: CodeSourcery, LLC
- References: <200006122253.PAA29063@kankakee.wrs.com>
Mike Stump <mrs@windriver.com> writes:
| > 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.
Unless I'm mistaken, ISO C++ doesn't follow ISO C on the long long
road.
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com