From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lq24C-0005dK-5B for qemu-devel@nongnu.org; Sat, 04 Apr 2009 05:21:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lq24B-0005d4-Gf for qemu-devel@nongnu.org; Sat, 04 Apr 2009 05:21:31 -0400 Received: from [199.232.76.173] (port=35180 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lq24B-0005d0-BZ for qemu-devel@nongnu.org; Sat, 04 Apr 2009 05:21:31 -0400 Received: from savannah.gnu.org ([199.232.41.3]:52986 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lq24B-0004ru-2f for qemu-devel@nongnu.org; Sat, 04 Apr 2009 05:21:31 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Lq24A-0000aC-66 for qemu-devel@nongnu.org; Sat, 04 Apr 2009 09:21:30 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1Lq249-0000a8-GE for qemu-devel@nongnu.org; Sat, 04 Apr 2009 09:21:29 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Sat, 04 Apr 2009 09:21:29 +0000 Subject: [Qemu-devel] [6972] Compile all files with -ffixed-g5 etc. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 6972 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6972 Author: blueswir1 Date: 2009-04-04 09:21:28 +0000 (Sat, 04 Apr 2009) Log Message: ----------- Compile all files with -ffixed-g5 etc. to avoid env (%g5) corruption Modified Paths: -------------- trunk/Makefile.target trunk/configure Modified: trunk/Makefile.target =================================================================== --- trunk/Makefile.target 2009-04-04 07:41:20 UTC (rev 6971) +++ trunk/Makefile.target 2009-04-04 09:21:28 UTC (rev 6972) @@ -89,21 +89,11 @@ endif ifeq ($(ARCH),sparc) - CFLAGS+=-ffixed-g2 -ffixed-g3 ifneq ($(CONFIG_SOLARIS),yes) - CFLAGS+=-ffixed-g1 -ffixed-g6 HELPER_CFLAGS+=-ffixed-i0 endif endif -ifeq ($(ARCH),sparc64) - ifneq ($(CONFIG_SOLARIS),yes) - CFLAGS+=-ffixed-g5 -ffixed-g6 -ffixed-g7 - else - CFLAGS+=-ffixed-g1 -ffixed-g4 -ffixed-g5 -ffixed-g7 - endif -endif - ifeq ($(ARCH),alpha) # Ensure there's only a single GP CFLAGS+=-msmall-data Modified: trunk/configure =================================================================== --- trunk/configure 2009-04-04 07:41:20 UTC (rev 6971) +++ trunk/configure 2009-04-04 09:21:28 UTC (rev 6972) @@ -498,6 +498,10 @@ ARCH_CFLAGS="${SP_CFLAGS}" ARCH_LDFLAGS="${SP_LDFLAGS}" fi + ARCH_CFLAGS="$ARCH_CFLAGS -ffixed-g2 -ffixed-g3" + if test "$solaris" = "no" ; then + ARCH_CFLAGS="$ARCH_CFLAGS -ffixed-g1 -ffixed-g6" + fi ;; sparc64) if test -z "$sparc_cpu" ; then ARCH_CFLAGS="-m64 -mcpu=ultrasparc -D__sparc_v9__" @@ -506,6 +510,11 @@ ARCH_CFLAGS="${SP_CFLAGS}" ARCH_LDFLAGS="${SP_LDFLAGS}" fi + if test "$solaris" = "no" ; then + ARCH_CFLAGS="$ARCH_CFLAGS -ffixed-g5 -ffixed-g6 -ffixed-g7" + else + ARCH_CFLAGS="$ARCH_CFLAGS -ffixed-g1 -ffixed-g5 -ffixed-g6 -ffixed-g7" + fi ;; s390) ARCH_CFLAGS="-march=z900"