7071400 X gate needs to workaround -xregs=no%appl bug 7030022 in Studio 12.1 compilers
authorAlan Coopersmith <Alan.Coopersmith@Oracle.COM>
Sun, 31 Jul 2011 11:54:33 -0700
changeset 1175 d321497d1679
parent 1174 d5cee2f2a900
child 1176 22a62d074ec1
7071400 X gate needs to workaround -xregs=no%appl bug 7030022 in Studio 12.1 compilers
open-src/common/Makefile.init
--- a/open-src/common/Makefile.init	Fri Jul 29 19:52:23 2011 -0700
+++ b/open-src/common/Makefile.init	Sun Jul 31 11:54:33 2011 -0700
@@ -119,7 +119,10 @@
 ARCH64_FLAGS_i386_suncc 	= -m64 -xarch=sse2 -D__amd64__
 
 # SPARC ABI requires system libraries not use application registers
-ARCH_LIB_FLAGS_sparc_suncc 	= -xregs=no%appl
+# The normal/documented flag for this is -xregs=no%appl, but for now,
+# we use "-Qoption cg -xregs=no%appl" to workaround bug 7030022 in 
+# the Studio 12.1 compilers that fails to honor the normal option.
+ARCH_LIB_FLAGS_sparc_suncc 	= -Qoption cg -xregs=no%appl
 ARCH_LIB_FLAGS_i386_suncc 	=  
 
 ## GNU Compilers