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

Reply via email to