This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix g++.dg/gomp/{pr27325.C,pr27337-2.C}.
- From: Diego Novillo <dnovillo at google dot com>
- To: Kazu Hirata <kazu at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 15 Aug 2007 12:47:59 -0400
- Subject: Re: [patch] Fix g++.dg/gomp/{pr27325.C,pr27337-2.C}.
- References: <200708150003.l7F03KQ0014734@sparrowhawk.codesourcery.com>
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?