This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Calling gimplify_to_stmt_list (...) on a statement containing a TARGET_MEM_REF node
- From: Roberto COSTA <roberto dot costa at st dot com>
- To: GCC mailing list <gcc at gcc dot gnu dot org>
- Date: Fri, 14 Jul 2006 16:01:40 +0200
- Subject: Calling gimplify_to_stmt_list (...) on a statement containing a TARGET_MEM_REF node
Hello,
I've just noticed that gimplify_expr (....) function (from gimplify.c)
asserts when trying to gimplify a TARGET_MEM_REF.
TARGET_MEM_REF nodes are generated after the gimplification pass, this
is why gimple_expr (...) doesn't expect any TARGET_MEM_REF at all.
However, gimplify_to_stmt_list (...) (which is based on gimple_expr) may
be called much later in the compilation flow.
Does anybody calling gimplify_to_stmt_list (...) have to make sure there
are no TARGET_MEM_REFs in the statement about to be gimplified?
Is it a bug... or am I trying to do something wrong?
Cheers,
Roberto