From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8640 invoked by alias); 19 Apr 2002 22:40:07 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 8568 invoked from network); 19 Apr 2002 22:40:04 -0000 Received: from unknown (HELO pizda.ninka.net) (216.101.162.242) by sources.redhat.com with SMTP; 19 Apr 2002 22:40:04 -0000 Received: from localhost (IDENT:davem@localhost.localdomain [127.0.0.1]) by pizda.ninka.net (8.9.3/8.9.3) with ESMTP id PAA07783 for ; Fri, 19 Apr 2002 15:31:27 -0700 Date: Fri, 19 Apr 2002 15:40:00 -0000 Message-Id: <20020419.153127.15428651.davem@redhat.com> To: gdb-patches@sources.redhat.com Subject: [RFA] Mark Sparc/Linux as multi-arch From: "David S. Miller" Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-04/txt/msg00641.txt.bz2 This actually fixes some testsuite failures because the trap location diddling in sparc.c:sparc_fix_call_dummy() only works if multiarch is enabled. I don't classify the sparc_fix_call_dummy behavior, as a bug. Honestly there is no other way to implement that except perhaps with a state variable, but that state variable would need to be tied to the current task/thread/etc. and that would just be unnecessarily complicated. In any event, tested under sparc-linux-gnu. There are no regressions, in fact there are quite a few less :-) Unexpected failures went from 125 (before the patch) to 112, this is using gcc-3.1 CVS. Here is the patch: 2002-04-19 David S. Miller * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_PARTIAL * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not define, let tm-sp64.h do it. --- config/sparc/tm-linux.h.~1~ Fri Apr 19 13:58:11 2002 +++ config/sparc/tm-linux.h Fri Apr 19 14:54:47 2002 @@ -23,6 +23,8 @@ #ifndef TM_SPARCLINUX_H #define TM_SPARCLINUX_H +#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL + #include "sparc/tm-sparc.h" #undef SPARC_TARGET_LONG_DOUBLE_BYTES --- config/sparc/tm-sp64linux.h.~1~ Fri Apr 19 13:58:03 2002 +++ config/sparc/tm-sp64linux.h Fri Apr 19 14:58:09 2002 @@ -21,8 +21,6 @@ #ifndef TM_SPARC_LIN64_H #define TM_SPARC_LIN64_H -#define GDB_MULTI_ARCH 0 - #include "sparc/tm-sp64.h" #undef SPARC_TARGET_LONG_DOUBLE_BYTES