This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Make alias_sets_conflict_p less conservative
> Yes, I was asking if it was meaningful to do it for C too -- especially
> for LTO it could make sense.
If you work globally, you can do far better and can do essentially the same
as we do for Ada. What you do is to detect all cases of other pointers
(e.g., int *) that get assigned from char * and use a TYPE_CAN_ALIAS_ALL
variant of that pointer for those int * variables.