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: "pinskia 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 06:08:47 -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 pinskia at gcc dot gnu dot org 2005-02-25 06:08 -------
The obvious problem is that a tree_list is not an expression.
Changing:
if (lhs && EXPR_P (lhs))
to
if (lhs)
(Likewise for rhs)
Fixes the problem but it looks like it can have other effects which I am not ready to deal with.
Diego since it looks like you caused it, could you take a look at a better way of fixing this?
Maybe:
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.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20188