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: [Ada PATCH] don't modify record fields in update_pointer_to


Hi Eric,

> > You can get away with this in mainline gcc, because it simply doesn't
> > notice, however this instantly caused trouble in my port of the Ada f-e to
> > LLVM.  This patch changes update_pointer_to so as to not replace fields:
> > instead it uses update_pointer_to (simple pointer case) to update the
> > pointer types used in the fields.  For this to work, the dummy fat pointer
> > fields are changed from being void pointers into pointers to dummy nodes.
> 
> Last time I tried to do something like that, the hell breaks loose with the 
> PLACEHOLDER_EXPR machinery.  But your attempt looks more clever because it is 
> piggybacked on dummy nodes.

as I mentioned, it passes all the tests I have available.  But I'm sure you
have many more tests!  Any chance of sending me some appropriate ones?

> Unfortunately the FSF mainline code is somewhat outdated wrt to dummy nodes 
> and fat-pointer types, so I'm not sure your patch will still work once they 
> are again synchronized with that of AdaCore.

I'll hold onto it until the trees are back in sync then, and rework it once that
happens.

Best wishes,

Duncan.


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