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
"H . J . Lu" <hjl@lucon.org> writes:
| On Mon, Jun 12, 2000 at 09:05:53PM -0700, Steven King wrote:
| > On Mon, 12 Jun 2000, H . J . Lu wrote:
| > > On Mon, Jun 12, 2000 at 08:01:29PM -0700, Mark Mitchell wrote:
| > > >
| > > > libstdc++ V3 needs to have a mode (and it probably does!) where `long
| > > > long' isn't use for compilers that don't accept it -- since they don't
| > > > need to at this point. And g++ should probably accept it with a
| > > > warning, rather than issuing an error. At least, that's my two cents;
| > > > I'd like to hear Jason's opinion.
| > > >
| > >
| > > -ansi defines __STRICT_ANSI__. Can we wrap the long long stuff
| > > with __STRICT_ANSI__?
| >
| > You can configure the library not to use long long; the default is to enable
| > long long where the target supports it.
| >
|
| Why do I want to do that? I want long long in libstdc++.
v3 supports long long by default if the target has it.
The most convincing reason I've heard is that it is a system library.
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com