This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Various reworkings of PLACEHOLDER stuff


At this point, this is in the category of "optimization".  This change
does a few things:

(1) It adds a function type_contains_placeholder_p which returns TRUE
if a type has any attribute (size, position, bound, etc) that depends
on a PLACEHOLDER_EXPR.

(2) It uses that function to restrict optimizations of the few COMPONENT_REFs
that are unsafe and therefore allows Ada to pass them to fold.

(3) It adds a macro CONTAINS_PLACEHOLDER_P to do some checks before calling
the function of similar name (for efficiency) and changes all uses of the
function to use the macro.

This affects Ada only and was tested on i686-pc-linux-gnu.


Just curious:  What are the future plans for the Ada
front end with tree-ssa in mind?  Ada does not build
functions as trees, and it is the only front end that
uses PLACEHOLDER_EXPR tree nodes.  And PLACEHOLDER_EXPR
is not part of GIMPLE...

Greetz
Steven




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]