Have g++ define _FILE_OFFSET_BITS=64 on Solaris
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Fri, 22 Jun 2018 06:16:00 +0000 (06:16 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Fri, 22 Jun 2018 06:16:00 +0000 (06:16 +0000)
* config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
_FILE_OFFSET_BITS=64 for C++.

From-SVN: r261879

gcc/ChangeLog
gcc/config/sol2.h

index 9fdd3e62a0ecb5c2acf084b24fe6a0ab3386cf5a..21fc3bf6ee42c743244fceff0b82038e9c061b8c 100644 (file)
@@ -1,3 +1,8 @@
+2018-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
+       _FILE_OFFSET_BITS=64 for C++.
+
 2018-06-21  Michael Meissner  <meissner@linux.ibm.com>
 
        * config/rs6000/rs6000.md (extendtfif2): Add missing 128-bit
index ec4b111ba0e3cdf56970073959d228fbafe8937d..bc4f63df03bc8e0b5bceee4e52f48240de7f993d 100644 (file)
@@ -113,6 +113,7 @@ along with GCC; see the file COPYING3.  If not see
        builtin_define ("_XOPEN_SOURCE=600");           \
        builtin_define ("_LARGEFILE_SOURCE=1");         \
        builtin_define ("_LARGEFILE64_SOURCE=1");       \
+       builtin_define ("_FILE_OFFSET_BITS=64");        \
        builtin_define ("__EXTENSIONS__");              \
       }                                                        \
     TARGET_SUB_OS_CPP_BUILTINS();                      \