Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 14 Oct 2002 19:58:16 +0200 (CEST) Received: from nat-pool-rdu.redhat.com ([66.187.233.200]:26111 "EHLO lacrosse.corp.redhat.com") by linux-mips.org with ESMTP id ; Mon, 14 Oct 2002 19:58:15 +0200 Received: from free.redhat.lsd.ic.unicamp.br (aoliva2.cipe.redhat.com [10.0.1.156]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id g9EHw5P05660; Mon, 14 Oct 2002 13:58:05 -0400 Received: from free.redhat.lsd.ic.unicamp.br (localhost.localdomain [127.0.0.1]) by free.redhat.lsd.ic.unicamp.br (8.12.5/8.12.5) with ESMTP id g9EHw4xB011031; Mon, 14 Oct 2002 15:58:04 -0200 Received: (from aoliva@localhost) by free.redhat.lsd.ic.unicamp.br (8.12.5/8.12.5/Submit) id g9EHw4TO011027; Mon, 14 Oct 2002 14:58:04 -0300 To: "H. J. Lu" Cc: Richard Sandiford , linux-mips@linux-mips.org, gcc@gcc.gnu.org, binutils@sources.redhat.com Subject: Re: MIPS gas relaxation still doesn't work References: <20021012113423.A27894@lucon.org> <20021013145423.A10174@lucon.org> <20021014082810.A28682@lucon.org> <20021014091649.A29353@lucon.org> <20021014101640.A30133@lucon.org> <20021014105055.B30830@lucon.org> From: Alexandre Oliva Organization: GCC Team, Red Hat Date: 14 Oct 2002 14:58:04 -0300 In-Reply-To: <20021014105055.B30830@lucon.org> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 422 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: aoliva@redhat.com Precedence: bulk X-list: linux-mips On Oct 14, 2002, "H. J. Lu" wrote: > On Mon, Oct 14, 2002 at 02:43:26PM -0300, Alexandre Oliva wrote: >> On Oct 14, 2002, "H. J. Lu" wrote: >> >> > The problem here is when gcc fills the delay slot with nop, it kills >> > branch relaxation. >> >> It wouldn't if only the delay slot was enclosed in .set nomacro. > What do you mean by that? Instead of: .set noreorder .set nomacro b foo nop .set macro .set reorder perhaps we could emit: .set noreorder b foo .set nomacro nop .set macro .set reorder Since b foo wouldn't be affected by nomacro, branch relaxing could fix it up (the relaxations are delay-slot-safe). -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org} CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Free Software Evangelist Professional serial bug killer