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

2006-07-17 Thread Zdenek Dvorak
Hello, > Roberto COSTA wrote: > > Andrew Pinski wrote: > >> On Jul 14, 2006, at 11:01 PM, Roberto COSTA wrote: > >> > >>> Is it a bug... or am I trying to do something wrong? > >> > >> Why are you trying to regimplify something which is in gimple? > > > > I'm trying to generate new code, which ha

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

2006-07-14 Thread Daniel Berlin
Roberto COSTA wrote: > Andrew Pinski wrote: >> On Jul 14, 2006, at 11:01 PM, Roberto COSTA wrote: >> >>> Is it a bug... or am I trying to do something wrong? >> >> Why are you trying to regimplify something which is in gimple? > > I'm trying to generate new code, which happens to contain TARGET_ME

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

2006-07-14 Thread Roberto COSTA
Andrew Pinski wrote: On Jul 14, 2006, at 11:01 PM, Roberto COSTA wrote: Is it a bug... or am I trying to do something wrong? Why are you trying to regimplify something which is in gimple? I'm trying to generate new code, which happens to contain TARGET_MEM_REF. To do that, I find more con

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

2006-07-14 Thread Andrew Pinski
On Jul 14, 2006, at 11:01 PM, Roberto COSTA wrote: Is it a bug... or am I trying to do something wrong? Why are you trying to regimplify something which is in gimple? Thanks, Andrew Pinski

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

2006-07-14 Thread Roberto COSTA
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