This is the mail archive of the gcc-patches@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]

Re: x86 64 bit function argument bug?


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~


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