linearize bug?

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

 



Given the following C code:
#include <stdlib.h>

int foo(void)
{
        int i;

        i = 42;
        i += rand();

        return i;
}

test-linearize seems to give me the following output, which indicates that pseudo %r1 is "dead" immediately before it is used:

foo:
.L0x2b52beecd010:
        <entry-point>
        call.32     %r1 <- rand
        dead        %r1
        add.32      %r4 <- %r1, $42
        dead        %r4
        ret.32      %r4

Am I just confused about the meaning of "dead"?   :)

	Jeff


-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux