[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#106866: marked as done ([PR 5720] [i386] useless jump to call instruction)

Your message dated Sun, 22 May 2005 15:48:39 +0200
with message-id <87ekbzid6w.fsf@debian.org>
and subject line Bug#106866: [i386] useless jump to call instruction
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at submit) by bugs.debian.org; 28 Jul 2001 02:24:26 +0000
>From herbert@gondor.apana.org.au Fri Jul 27 21:24:26 2001
Return-path: <herbert@gondor.apana.org.au>
Received: from eriador.apana.org.au [::ffff:] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 15QJmB-0004n4-00; Fri, 27 Jul 2001 21:24:26 -0500
Received: from gondolin.me.apana.org.au ([] ident=mail)
	by eriador.apana.org.au with esmtp (Exim 3.12 #1 (Debian))
	id 15QJld-0003q5-00
	for <submit@bugs.debian.org>; Sat, 28 Jul 2001 12:23:49 +1000
Received: from herbert by gondolin.me.apana.org.au with local (Exim 3.22 #1 (Debian))
	id 15QJld-0005Ll-00
	for <submit@bugs.debian.org>; Sat, 28 Jul 2001 12:23:49 +1000
From:  <herbert@gondor.apana.org.au>
Subject: gcc-3.0: Optimisation: [i386] pointless jump before a call
To: submit@bugs.debian.org
X-Mailer: bug 3.3.9
Message-Id: <E15QJld-0005Ll-00@gondolin.me.apana.org.au>
Date: Sat, 28 Jul 2001 12:23:49 +1000
Delivered-To: submit@bugs.debian.org

Package: gcc-3.0
Version: 1:3.0.1-0pre010723
Severity: normal

I was playing with the noreturn flag when I noticed the following pointless
jump into a call instruction:

  86:   a1 00 00 00 00          mov    0x0,%eax
                        87: R_386_32    intpending
  8b:   85 c0                   test   %eax,%eax
  8d:   74 c9                   je     58 <evalsubshell+0x58>
  8f:   eb 3b                   jmp    cc <evalsubshell+0xcc>
  91:   8d 76 00                lea    0x0(%esi),%esi


  c8:   eb d4                   jmp    9e <evalsubshell+0x9e>
  ca:   89 f6                   mov    %esi,%esi
  cc:   e8 fc ff ff ff          call   cd <evalsubshell+0xcd>
                        cd: R_386_PC32  doint
  d1:   8d 76 00                lea    0x0(%esi),%esi

There are no other jumps to cc.  That costed me 8 bytes and a pointless

The source that generated this can be fetched from


To reproduce, do:

gcc-3.0 -g -O2 -DUSE_DOINT -c eval.c

-- System Information
Debian Release: testing/unstable
Kernel Version: Linux gondolin 2.4.7-686-smp #1 SMP Sun Jul 22 14:00:21 EST 2001 i686 unknown

Versions of the packages gcc-3.0 depends on:
ii  binutils The GNU assembler, linker and binary utiliti
ii  cpp-3.0        3.0.1-0pre0107 The GNU C preprocessor.
ii  gcc-3.0-base   3.0.1-0pre0107 The GNU Compiler Collection (base package).
ii  libc6          2.2.3-7        GNU C Library: Shared libraries and Timezone
ii  libgcc1        3.0.1-0pre0107 GCC support library.

Received: (at 106866-done) by bugs.debian.org; 22 May 2005 13:49:31 +0000
>From falk@debian.org Sun May 22 06:49:30 2005
Return-path: <falk@debian.org>
Received: from smtp08.web.de [] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DZqpL-0002pS-00; Sun, 22 May 2005 06:49:11 -0700
Received: from [] (helo=juist)
	by smtp08.web.de with asmtp (TLSv1:DES-CBC3-SHA:168)
	(WEB.DE 4.105 #291)
	id 1DZqop-0007Yw-00
	for 106866-done@bugs.debian.org; Sun, 22 May 2005 15:48:39 +0200
Received: from falk by juist with local (Exim 4.50)
	id 1DZqop-0001O2-Ty
	for 106866-done@bugs.debian.org; Sun, 22 May 2005 15:48:39 +0200
To: 106866-done@bugs.debian.org
Subject: Bug#106866: [i386] useless jump to call instruction
From: Falk Hueffner <falk@debian.org>
X-Face: "iUeUu$b*W_"w?tV83Y3*r:`rh&dRv}$YnZ3,LVeCZSYVuf[Gpo*5%_=/\_!gc_,SS}[~xZ
Date: Sun, 22 May 2005 15:48:39 +0200
Message-ID: <87ekbzid6w.fsf@debian.org>
User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.5 (cilantro, linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: falk@debian.org
X-Sender: falk.hueffner@web.de
Delivered-To: 106866-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-4.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER,
	RCVD_IN_DSBL autolearn=no version=2.60-bugs.debian.org_2005_01_02

fixed in 3.3

Reply to: