22388589 gcc 4.9 fails to build on s12-89 on sparc
authorStefan Teleman <stefan.teleman@oracle.com>
Mon, 04 Jan 2016 10:28:20 -0800
changeset 5224 388b8a6cf76b
parent 5223 66bb65945d8f
child 5225 d3c7046a4000
22388589 gcc 4.9 fails to build on s12-89 on sparc
components/gcc49/Makefile
components/gcc49/patches/028-bootstrap-O2.patch
--- a/components/gcc49/Makefile	Mon Jan 04 01:34:17 2016 -0800
+++ b/components/gcc49/Makefile	Mon Jan 04 10:28:20 2016 -0800
@@ -177,6 +177,7 @@
 endif
 
 CONFIGURE_OPTIONS +=    --with-build-time-tools=/usr/gnu/bin
+CONFIGURE_OPTIONS +=    --with-build-config=bootstrap-O2
 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
 CONFIGURE_OPTIONS +=	CXXFLAGS="$(CXXFLAGS)"
 CONFIGURE_OPTIONS +=    CPPFLAGS="$(CPPFLAGS)"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gcc49/patches/028-bootstrap-O2.patch	Mon Jan 04 10:28:20 2016 -0800
@@ -0,0 +1,9 @@
+# Stefan Teleman <[email protected]>
+# Avoid build errors on Solaris because of -gtoggle.
+# Create a vanilla bootstrap config file, and use it as argument
+# to --with-build-config=bootstrap-O2 (Oh-2).
+# Not for upstream, this is just for us.
+--- /dev/null	2015-12-28 12:59:59.000000000 -0800
++++ config/bootstrap-O2.mk	2015-12-28 12:57:24.841537382 -0800
[email protected]@ -0,0 +1 @@
++BOOT_CFLAGS := -O2 $(filter-out -O%, $(BOOT_CFLAGS))