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: [patch] Fix g++.dg/gomp/{pr27325.C,pr27337-2.C}.


On 8/14/07 8:03 PM, Kazu Hirata wrote:
		     NULL, inner_type, LOOKUP_NORMAL);
> +
> +	      if (targetm.cxx.cdtor_returns_this ())
> +		/* Because constructors and destructors return this,
> +		   the call will have been cast to "void".  Remove the
> +		   cast here.  We would like to use STRIP_NOPS, but it
> +		   wouldn't work here because TYPE_MODE (t) and
> +		   TYPE_MODE (TREE_OPERAND (t, 0)) are different.
> +		   They are VOIDmode and Pmode, respectively.  */
> +		if (TREE_CODE (t) == NOP_EXPR)
> +		  t = TREE_OPERAND (t, 0);

Why not just STRIP_NOPs?  Do we explicitly want to see through exactly
one NOP_EXPR here?


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