From a634048e19bd1fc8d6c9389cd7b053d1783af4f8 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Fri, 22 Jun 2018 06:16:00 +0000 Subject: [PATCH] Have g++ define _FILE_OFFSET_BITS=64 on Solaris * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define _FILE_OFFSET_BITS=64 for C++. From-SVN: r261879 --- gcc/ChangeLog | 5 +++++ gcc/config/sol2.h | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9fdd3e62a0e..21fc3bf6ee4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-06-22 Rainer Orth + + * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define + _FILE_OFFSET_BITS=64 for C++. + 2018-06-21 Michael Meissner * config/rs6000/rs6000.md (extendtfif2): Add missing 128-bit diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h index ec4b111ba0e..bc4f63df03b 100644 --- a/gcc/config/sol2.h +++ b/gcc/config/sol2.h @@ -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(); \ -- 2.30.2