From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2769 invoked by alias); 5 Feb 2009 16:03:01 -0000 Received: (qmail 2735 invoked by uid 22791); 5 Feb 2009 16:03:00 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (212.99.106.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 05 Feb 2009 16:02:53 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id E00B2290025 for ; Thu, 5 Feb 2009 17:02:49 +0100 (CET) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id c309ST1Ztoyl for ; Thu, 5 Feb 2009 17:02:49 +0100 (CET) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 38D1F290020 for ; Thu, 5 Feb 2009 17:02:49 +0100 (CET) Message-Id: From: Tristan Gingold To: gdb-patches@sourceware.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: [RFA] Fix i386-sse.exp regression on Darwin Date: Thu, 05 Feb 2009 16:03:00 -0000 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-02/txt/msg00124.txt.bz2 Hi, xmm0 is a scratch register for the Darwin/i386 ABI and therefore may be destroyed by calling a function. This patch fix a regression on Darwin by replacing a function call by a asm nop. The only purpose of the function call was to be able to put a breakpoint. Tristan. testsuite: 2009-02-05 Tristan Gingold * gdb.arch/i386-sse.c (main): Replace call to puts by an nop asm. diff -u -r1.5 i386-sse.c --- testsuite/gdb.arch/i386-sse.c 3 Jan 2009 05:58:03 -0000 1.5 +++ testsuite/gdb.arch/i386-sse.c 5 Feb 2009 16:02:36 -0000 @@ -66,7 +66,7 @@ : "r" (data) : "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7"); - puts ("Hi!"); /* first breakpoint here */ + asm ("nop"); /* first breakpoint here */ asm ( "movaps %%xmm0, 0(%0)\n\t"