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]
Other format: [Raw text]

[Bug c++/11712] New: [HPUX 11.00 - gcc 3.3] __STDC_EXT__ not defined for .cpp by default anymore?


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11712

           Summary: [HPUX 11.00 - gcc 3.3] __STDC_EXT__ not defined for .cpp
                    by default anymore?
           Product: gcc
           Version: 3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sean at bladelogic dot com
                CC: gcc-bugs at gcc dot gnu dot org

We were recently upgrading our HP 11.00 gcc 3.0.4 compiler to the latest 
gcc 3.3 release.  After doing this upgrade, code that used to compile just
fine under 3.0.4 now fails to compile with the following error:
/usr/include/sys/stdsyms.h:288:6: #error "Large Files (ILP32) not supported in 
strict ANSI mode."
/usr/include/sys/stdsyms.h:293:6: #error "Large File interfaces not supported 
in strict ANSI mode."

I broke it down into a simple test program

##### Begin Code (testing.cpp) #####
#include <stdio.h>

int main(int argc, char **argv)
{
        return 0;
}
##### End Code #####

Running the command:
gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 \
                                                                  testing.cpp

Produces:
In file included from /tools/gcc-3.3/lib/gcc-lib/hppa2.0n-hp-
hpux11.00/3.3/include/stdio.h:20,
                 from testing.cpp:1:
/usr/include/sys/stdsyms.h:288:6: #error "Large Files (ILP32) not supported in 
strict ANSI mode."
/usr/include/sys/stdsyms.h:293:6: #error "Large File interfaces not supported 
in strict ANSI mode."

Here are the relevant stats to my system:
uname -a
HP-UX hp11dev B.11.00 A 9000/782 2012540391 two-user license

gcc -v
Reading specs from /tools/gcc-3.3/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3/specs
Configured with: ../gcc-3.3/configure --prefix=/home/user/gcc-3.3
Thread model: single
gcc version 3.3

The same code builds just fine with 3.0.4 and it also builds just fine if
you rename the file to "testing.c"


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