DCE eliminating valid statement for ACATS c34007p

Richard Henderson rth@redhat.com
Tue Sep 6 17:02:00 GMT 2005


On Tue, Sep 06, 2005 at 08:04:29AM -0400, Richard Kenner wrote:
> 	  if (TREE_CODE (TREE_TYPE (op)) == COMPLEX_TYPE)
> 	    DECL_COMPLEX_GIMPLE_REG_P (new_var) = 1;

You should not have set this; you're taking the address of
the variable after all.

> I don't care for the duplication of code in
> internal_get_tmp_var from a maintainability point of view  ...

Well, since you essentially shouldn't have used ought but
create_tmp_var, that point is moot.


r~



More information about the Gcc mailing list