From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10473 invoked by alias); 4 Jul 2009 15:31:52 -0000 Received: (qmail 10465 invoked by uid 22791); 4 Jul 2009 15:31:51 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-ew0-f215.google.com (HELO mail-ew0-f215.google.com) (209.85.219.215) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 04 Jul 2009 15:31:45 +0000 Received: by ewy11 with SMTP id 11so293819ewy.24 for ; Sat, 04 Jul 2009 08:31:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.26.82 with SMTP id b60mr678234wea.177.1246721502988; Sat, 04 Jul 2009 08:31:42 -0700 (PDT) In-Reply-To: <20090703155152.GA76089@ulanbator.act-europe.fr> References: <20090703155152.GA76089@ulanbator.act-europe.fr> Date: Sat, 04 Jul 2009 15:31:00 -0000 Message-ID: <6dc9ffc80907040831n1e87a80cv4d14afefc40dd687@mail.gmail.com> Subject: Re: [RFA Darwin]: Add push_dummy_call for i386 From: "H.J. Lu" To: Tristan Gingold Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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-07/txt/msg00104.txt.bz2 On Fri, Jul 3, 2009 at 8:51 AM, Tristan Gingold wrote: > Hi, > > Darwin i386 ABI is slightly different from the SVR4 one. =A0In particular > stack alignment is 16. =A0As a consquence, i386 Darwin can't use the stan= dard > i386-tdeo.c push_dummy_call and this patch provides a Darwin version of t= his > call. > Well, the code generated by gcc for Linux/i386 assumes that the incoming stack is aligned at 16byte. If not, functions using SSE registers may crash. --=20 H.J.