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: [tuples] fix gimplify_return_expr buglet


> I think we are still mis-gimplifying this.  The operand we return should
> never be a MODIFY_EXPR.  I don't remember if we've fixed this yet but I
> think not.

What do you mean?

My patch fixes the case of an empty return statement:

	if (blah)
		return;

I checked, and even stuff like:

	if (a > 3)
		return 69;

...is being generated correctly.  We make a GIMPLE_ASSIGN tuple and set
everything up correctly.  What testcase did you have in mind?

Aldy


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