x86 64 bit function argument bug?

Richard Henderson rth@redhat.com
Mon May 5 05:51:00 GMT 2003


On Mon, May 05, 2003 at 12:05:15AM +1000, Fergus Henderson wrote:
> - 	      if (TREE_CODE (inner) == VAR_DECL
> + 	      if ((TREE_CODE (inner) == VAR_DECL
> + 	           || TREE_CODE (inner) == PARM_DECL)

Ok.

> Actually this is against an old tree, I'm not sure if it applies
> against the current tree.

It does.

> Also the text of the warning should
> be different in the case where the function returns the address of
> a parameter rather than a local variable.

*shrug* It's still technically a local variable.  Just because it's
value comes from a caller doesn't change that.

> Also there should be a test case.

Indeed.


r~



More information about the Gcc mailing list