21637184 integrate GCC 4.9.3 in Solaris
21637193 enable CilkPlus support for SPARC in GCC 4.9.3
# Stefan Teleman <[email protected]>
# The various ./configure's in GCC keep playing with CFLAGS, CXXFLAGS
# or CPPFLAGS, and this unsets LARGEFILE_SOURCE. THe result is that some
# GCC libraries are built with LARGEFILE_SOURCE enabled, and some don't.
# Make sure everything is built with LARGEFILE_SOURCE turned on.
# Internal patch. Not submitted upstream.
--- gcc/Makefile.in 2014-10-16 06:50:42.000000000 -0700
+++ gcc/Makefile.in 2015-09-08 22:46:03.588376656 -0700
@@ -206,6 +206,12 @@
CPPFLAGS = @CPPFLAGS@
+ifeq (,$(findstring m32,$(CPPFLAGS)))
+ CPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64
+else
+ CPPFLAGS += -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64
+endif
+
AWK = @AWK@
CC = @CC@
CXX = @CXX@