[Bug c++/14962] g++ appears to ignore #pragma redirect_extname
phil at fsel dot com
gcc-bugzilla@gcc.gnu.org
Thu Apr 15 11:55:00 GMT 2004
------- Additional Comments From phil at fsel dot com 2004-04-15 09:55 -------
As an extra bonus, gcc-3.2.3 on solaris (same machine) appears to be fubared
when it comes to largefile support as well. Even if you don't define anything on
the command line, gcc -v reveals that it defines both -D_LARGEFILE_SOURCE=1 and
-D_LARGEFILE64_SOURCE=1 which completely breaks largefile support if you just
want _LARGEFILE_SOURCE and not _LARGEFILE64_SOURCE, you can't have it.
gcc-3.3.3 at least avoids this issue. (This is why it's a bit pointless to test
with gcc-3.2 -- the extra define drops the #pragmas from the output anyway)
$ /usr/local/gcc-3.2/bin/g++ -v statfs.c -o statfs
Reading specs from /usr/local/gcc-3.2.3/lib/gcc-lib/sparc-sun-solaris2.8/3.2.3/specs
Configured with: /home/phil/scratch/gcc/gcc-3.2.3/configure
--prefix=/usr/local/gcc-3.2.3 --disable-shared
Thread model: posix
gcc version 3.2.3
/usr/local/gcc-3.2.3/lib/gcc-lib/sparc-sun-solaris2.8/3.2.3/cc1plus -v
-D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=3 -D__GXX_ABI_VERSION=102
-Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__PRAGMA_REDEFINE_EXTNAME -D__sparc__
-D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__PRAGMA_REDEFINE_EXTNAME -D__sparc
-D__sun -D__unix -Asystem=unix -Asystem=svr4 -D__NO_INLINE__ -D__STDC_HOSTED__=1
-D_XOPEN_SOURCE=500 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1
-D__EXTENSIONS__ -D__SIZE_TYPE__=unsigned int -D__PTRDIFF_TYPE__=int
-D__WCHAR_TYPE__=long int -D__WINT_TYPE__=long int -D__GCC_NEW_VARARGS__
-Acpu=sparc -Amachine=sparc statfs.cpp -D__GNUG__=3 -D__DEPRECATED
-D__EXCEPTIONS -quiet -dumpbase statfs.cpp -version -o /var/tmp//ccnWa0aD.s
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14962
More information about the Gcc-bugs
mailing list