This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/20188] [4.0 Regression] asm and memory operands does not add a V_MAY_DEF


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]