On 10/09/2013 02:15 PM, Andrew MacLeod wrote:
On 10/09/2013 01:48 PM, Richard Biener wrote:
Andrew MacLeod <amacl...@redhat.com> wrote:
On 10/08/2013 06:22 AM, Richard Biener wrote:
unvisit_body isn't generic enough to warrant moving out of gimplify.c
(the only user).
Bah, now I remember.. so there *are* other users.. this routine is
called from various front ends.. fortran, c-family and cp all call it.
That is why I wanted to move it to tree.[ch].  it doesn't belong in a
gimple file..  it operates on trees and is also used by tree front
ends.
But afaik as part of gimplifying. The gimplifier is part of the frontend-middleend interface. Lumping all of it into tree.c isn't sustainable.

Richard.


Fair enough. I'll adjust... the front end files which use that routine will just have to include gimplify.h

Unless maybe we should expand the gimplify module to have a gimplfy-fe.[ch] which includes the routines the front ends require..? tehre are 3 or 4 other ones in there I have noticed that are called from the front ends.

Andrew

Reply via email to