From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3718 invoked by alias); 7 May 2002 15:31:24 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 3684 invoked from network); 7 May 2002 15:31:12 -0000 Received: from unknown (HELO ftpbox.mot.com) (129.188.136.101) by sources.redhat.com with SMTP; 7 May 2002 15:31:12 -0000 Received: [from pobox4.mot.com (pobox4.mot.com [10.64.251.243]) by ftpbox.mot.com (ftpbox 2.1) with ESMTP id IAA13027; Tue, 7 May 2002 08:31:11 -0700 (MST)] Received: [from mail.wm.sps.mot.com ([199.10.246.2]) by pobox4.mot.com (MOT-pobox4 2.0) with ESMTP id IAA04032; Tue, 7 May 2002 08:31:10 -0700 (MST)] Received: from hyper.wm.sps.mot.com (hyper.wm.sps.mot.com [199.10.246.43]) by mail.wm.sps.mot.com (8.9.3/8.9.3) with ESMTP id LAA20977; Tue, 7 May 2002 11:31:05 -0400 Received: by hyper.wm.sps.mot.com (8.11.2) id g47FV7k19275; Tue, 7 May 2002 11:31:07 -0400 Date: Tue, 07 May 2002 09:03:00 -0000 Message-Id: <200205071531.g47FV7k19275@hyper.wm.sps.mot.com> From: Peter Barada To: dewar@gnat.com CC: dewar@gnat.com, schwab@suse.de, gcc@gcc.gnu.org, jh@suse.cz, jrydberg@rtmk.org In-reply-to: <20020507140207.EAE2CF28D0@nile.gnat.com> (dewar@gnat.com) Subject: Re: i386 and asm jumping References: <20020507140207.EAE2CF28D0@nile.gnat.com> X-SW-Source: 2002-05/txt/msg00477.txt.bz2 >>>What's wrong with computed goto in this situation? > >Lots of machines have interesting branch instructions which you may want >to generate for some particular reason. After all if you take the above >attitude, *any* inserted asm can always be replaced by C code :-) Jumps in asm statements will create problems since the optimizers have no knowledge that there is a possible change in flow caused by the asm statement, and hence will not have an accurate flow diagram of the function. From there its all downhill. -- Peter Barada Peter.Barada@motorola.com Wizard 781-852-2768 (direct) WaveMark Solutions(wholly owned by Motorola) 781-270-0193 (fax)