Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LehEH-0007oU-6m for mharc-grub-devel@gnu.org; Tue, 03 Mar 2009 21:53:05 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LehEC-0007mN-Rb for grub-devel@gnu.org; Tue, 03 Mar 2009 21:53:00 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LehE9-0007ku-Pm for grub-devel@gnu.org; Tue, 03 Mar 2009 21:52:58 -0500 Received: from [199.232.76.173] (port=33221 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LehE9-0007kY-I4 for grub-devel@gnu.org; Tue, 03 Mar 2009 21:52:57 -0500 Received: from [74.93.104.97] (port=55351 helo=sunset.davemloft.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LehE8-00044t-Ro for grub-devel@gnu.org; Tue, 03 Mar 2009 21:52:57 -0500 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id 7761135C052 for ; Tue, 3 Mar 2009 18:15:24 -0800 (PST) Date: Tue, 03 Mar 2009 18:15:24 -0800 (PST) Message-Id: <20090303.181524.199126354.davem@davemloft.net> To: grub-devel@gnu.org From: David Miller X-Mailer: Mew version 6.1 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: [PATCH 4/7]: Don't try to use -mcmodel=large on sparc X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Mar 2009 02:53:01 -0000 We don't have that code model, and such a code model is unnecessary on sparc64. 2009-03-03 David S. Miller * configure.ac: Don't try to use -mcmodel=large on sparc. * configure: Rebuilt. --- configure | 9 ++++++++- configure.ac | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/configure b/configure index c3677c6..a4b9603 100755 --- a/configure +++ b/configure @@ -1999,7 +1999,8 @@ esac case "$target_cpu" in i386 | powerpc) target_m32=1 ;; - x86_64 | sparc64) target_m64=1 ;; + x86_64) target_m64_large=1 ;; + sparc64) target_m64=1 ;; esac case "$host_os" in @@ -6774,6 +6775,12 @@ fi if test "x$target_m64" = x1; then # Force 64-bit mode. + TARGET_CFLAGS="$TARGET_CFLAGS -m64" + TARGET_LDFLAGS="$TARGET_LDFLAGS -m64" +fi + +if test "x$target_m64_large" = x1; then + # Force 64-bit mode. { echo "$as_me:$LINENO: checking whether option -mcmodel=large works" >&5 echo $ECHO_N "checking whether option -mcmodel=large works... $ECHO_C" >&6; } if test "${grub_cv_cc_mcmodel+set}" = set; then diff --git a/configure.ac b/configure.ac index fd89d30..9a8713d 100644 --- a/configure.ac +++ b/configure.ac @@ -96,7 +96,8 @@ esac case "$target_cpu" in i386 | powerpc) target_m32=1 ;; - x86_64 | sparc64) target_m64=1 ;; + x86_64) target_m64_large=1 ;; + sparc64) target_m64=1 ;; esac case "$host_os" in @@ -299,6 +300,12 @@ fi if test "x$target_m64" = x1; then # Force 64-bit mode. + TARGET_CFLAGS="$TARGET_CFLAGS -m64" + TARGET_LDFLAGS="$TARGET_LDFLAGS -m64" +fi + +if test "x$target_m64_large" = x1; then + # Force 64-bit mode. AC_CACHE_CHECK([whether option -mcmodel=large works], grub_cv_cc_mcmodel, [ CFLAGS="-m64 -mcmodel=large" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], -- 1.6.1.2.253.ga34a