This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/20188] [4.0 Regression] asm and memory operands does not add a V_MAY_DEF
- From: "dnovillo at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Feb 2005 15:04:26 -0000
- Subject: [Bug tree-optimization/20188] [4.0 Regression] asm and memory operands does not add a V_MAY_DEF
- References: <20050224132918.20188.pluto@pld-linux.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dnovillo at gcc dot gnu dot org 2005-02-25 15:04 -------
(In reply to comment #12)
> if (lhs && (TREE_CODE (lhs) == TREE_LIST || EXPR_P (lhs))
> will works for everyone, it works for this testcase too but I have not
> bootstrapped or tested it yet.
>
This is the right fix. Could you bootstrap and test it? A test case for this
would need a dg-scan test for two 'if ()' statements (i.e., we should not value
number the second if() out).
Thanks. Diego.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20188