Bug 11720 - mozilla configure script thinks 3.3.1 has pedantic long long bug
Summary: mozilla configure script thinks 3.3.1 has pedantic long long bug
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.3.1
: P2 normal
Target Milestone: 3.4.0
Assignee: Not yet assigned to anyone
Depends on:
Reported: 2003-07-30 01:02 UTC by Calum Mackay
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Known to work:
Known to fail:
Last reconfirmed:


Note You need to log in before you can comment on or make changes to this bug.
Description Calum Mackay 2003-07-30 01:03:00 UTC
Whilst configuring the mozilla appsuite with 3.3.1, the following error occurs:

checking whether C++ compiler has -pedantic long long bug... yes
configure: error: Your compiler appears to have a known bug where long long is m
iscompiled when using -pedantic.  Reconfigure using --disable-pedantic. 

I can reproduce the test:

diz $ cat conftest.C 
int main () {
        if (sizeof(long long) != 8) { return 1; } 
        return 0;
diz $ c++ -pedantic conftest.C
conftest.C: In function `int main()':
conftest.C:2: error: ISO C++ does not support `long long'

Is mozilla using a valid test?

I'm using the Debian unstable packages:

diz $ c++ -v
Reading specs from /usr/lib/gcc-lib/i386-linux/3.3.1/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib
--enable-nls --without-included-gettext --enable-__cxa_atexit
--enable-clocale=gnu --enable-debug --enable-java-gc=boehm
--enable-java-awt=xlib --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.3.1 20030728 (Debian prerelease)

Is this possibly related to bug 11459?
Comment 1 Andrew Pinski 2003-07-30 01:11:57 UTC
There was a change in 3.3.1 which pedantic warnings into errors because those were changing 
into warnings from errors when -pedantic was added.
I think the check is invalid as it should not be checking on if -pedantic errors out when long long 
is used but check for the micompiled instead.
Comment 2 Andrew Pinski 2003-07-30 11:06:03 UTC
Closing based on my previous analysis.
Comment 3 Calum Mackay 2003-07-30 11:24:13 UTC
I've logged a mozilla bug for this: