From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18439 invoked by alias); 22 Mar 2002 20:47:19 -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 18401 invoked from network); 22 Mar 2002 20:47:14 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 22 Mar 2002 20:47:14 -0000 Received: from cse.cygnus.com (cse.cygnus.com [205.180.230.236]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id MAA03500; Fri, 22 Mar 2002 12:47:12 -0800 (PST) Received: (from kev@localhost) by cse.cygnus.com (8.11.6/8.11.6) id g2MKkpZ27793; Fri, 22 Mar 2002 13:46:51 -0700 Date: Fri, 22 Mar 2002 12:47:00 -0000 From: Kevin Buettner Message-Id: <1020322204651.ZM27792@localhost.localdomain> In-Reply-To: Elena Zannoni "[RFA] PPC ABI compliance fix" (Mar 22, 2:28pm) References: <15515.34258.778318.466752@localhost.redhat.com> X-Mailer: Z-Mail (4.0.1 13Jan97 Caldera) To: Elena Zannoni , gdb-patches@sources.redhat.com Subject: Re: [RFA] PPC ABI compliance fix MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-03/txt/msg00435.txt.bz2 On Mar 22, 2:28pm, Elena Zannoni wrote: > Back in November, gcc changed the way structures <= 8 bytes are > returned on the PPC. The change was made to be compliant with the > SVR4 ABI. > > http://gcc.gnu.org/ml/gcc-patches/2001-11/msg01468.html > > The abi specifies that such structures are passed in r3 and r4. > Bigger structures are passed in memory. > > Gcc was passing every structure in memory. The change was made for > embedded targets, but not for natives (PowerPC Linux, NetBSD, and > FreeBSD). > > Of course this change breaks binary compatibility with older gcc's. > Not sure what to do about that, if anything, the case it covers is a > corner case, anyway. Hmm... I have a hunch that, eventually, the natives will need to change too. For now though, your change is okay. (Alternately, we could take a really hard nosed stance and implement the ABI exactly as written and just put up with the failures.) Kevin