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: PATCH RFA: PR 29286: Handle placement new aliasing issues


On 6/9/07, Eric Botcazou <ebotcazou@adacore.com> wrote:
> Because it's a huge hammer, and would disable all alias analysis for
> that type, instead of just for the result of placement new.

Still the same urban legend. :-)  TYPE_REF_CAN_ALIAS_ALL is a property of
pointer types, so it would seem to be a natural fit for pointers which are
returned from placement new.

except those casts can be removed and really is not good for preformance. Please read all the 175 comments in the bug report before going on about using a feature. We already tried TYPE_REF_CAN_ALIAS_ALL and really TYPE_REF_CAN_ALIAS_ALL is broken in a different way as you say it is a property of the pointer type but I (and others) say typed based aliasing is a property of the element type that is being accessed.

-- Pinski


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