Re: 2.4.0-test8-pre1 is quite bad / how about integrating Rik's VM

From: Jamie Lokier (lk@tantalophile.demon.co.uk)
Date: Wed Sep 06 2000 - 04:48:15 EST


Chris Wedgwood wrote:
[Gcc not eliminating trivial dead code...
 did you compile without optimisation?]

Gcc 2.96 does remove the unreached code in your example,
but it still emits string constants.

int func()
{
  if (1)
    a = "foo";
  else
    a = "bar";
}

.LC0:
        .string "foo"
.LC1:
        .string "bar"
.text
        .align 4
.globl func
        .type func,@function
func:
        pushl %ebp
        movl %esp, %ebp
        movl $.LC0, a
        popl %ebp
        ret

-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Sep 07 2000 - 21:00:25 EST