Calling gimplify_to_stmt_list (...) on a statement containing a TARGET_MEM_REF node

Roberto COSTA roberto.costa@st.com
Fri Jul 14 14:13:00 GMT 2006


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



More information about the Gcc mailing list