From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25365 invoked by alias); 8 May 2002 19:11:13 -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 25352 invoked from network); 8 May 2002 19:11:12 -0000 Received: from unknown (HELO fw-cam.cambridge.arm.com) (193.131.176.3) by sources.redhat.com with SMTP; 8 May 2002 19:11:12 -0000 Received: by fw-cam.cambridge.arm.com; id UAA10757; Wed, 8 May 2002 20:11:11 +0100 (BST) Received: from unknown(172.16.1.2) by fw-cam.cambridge.arm.com via smap (V5.5) id xma010461; Wed, 8 May 02 20:10:15 +0100 Received: from cam-mail2.cambridge.arm.com (cam-mail2.cambridge.arm.com [172.16.1.91]) by cam-admin0.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id UAA23742; Wed, 8 May 2002 20:10:11 +0100 (BST) Received: from sun18.cambridge.arm.com (sun18.cambridge.arm.com [172.16.2.18]) by cam-mail2.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id UAA08344; Wed, 8 May 2002 20:10:10 +0100 (BST) Message-Id: <200205081910.UAA08344@cam-mail2.cambridge.arm.com> To: Michael Snyder cc: Richard.Earnshaw@arm.com, Michael Snyder , gdb-patches@sources.redhat.com, rearnsha@arm.com Reply-To: Richard.Earnshaw@arm.com Organization: ARM Ltd. X-Telephone: +44 1223 400569 (direct+voicemail), +44 1223 400400 (switchbd) X-Fax: +44 1223 400410 X-Address: ARM Ltd., 110 Fulbourn Road, Cherry Hinton, Cambridge CB1 9NJ. X-Url: http://www.arm.com/ Subject: Re: [RFA] arm_scan_prologue: accept strh and strb as well as str In-reply-to: Your message of "Wed, 08 May 2002 11:20:37 PDT." <3CD96C75.7D72B96E@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 08 May 2002 12:11:00 -0000 From: Richard Earnshaw X-SW-Source: 2002-05/txt/msg00218.txt.bz2 > [sorry for the empty reply] > OK -- I'd be glad to do that. Could you possibly > provide me an example to work from? Below. > > arm_scan_prologue is easy, since it accepts prologue instructions > in any order, but arm_skip_prologue imposes an ordering on them. > I would REALLY like to merge these two functions. In fact I started > to, but then got busy with other things. Go for it... compile the following with gcc-3.0 or later, with the options -O -mcpu=strongarm -mno-apcs-frame void foo (char a, short b, int c); void bar (char *a, short *b, int *c); void foo (char a, short b, int c) { bar (&a, &b, &c); } void bar (char *a, short *b, int *c) { foo (*a, *b, *c); } R.