Re: Add -fipa-strict-aliasing

2021-12-13 Thread Jakub Jelinek via Gcc-patches
On Mon, Dec 13, 2021 at 05:31:22PM +0100, Jan Hubicka via Gcc-patches wrote: > +@item -fipa-strict-aliasing > +@opindex fipa-strict-aliasing > +Constrols whether rules of @option{-fstrict-aliasing} are applied across s/Constrols/Controls/ > +function boundaries. Note that if multiple functions g

Re: Add -fipa-strict-aliasing

2021-12-13 Thread Jan Hubicka via Gcc-patches
Hi, this is a variant I comitted (with updated documentation as Richard requested). Honza gcc/ChangeLog: 2021-12-13 Jan Hubicka * common.opt: Add -fipa-strict-aliasing. * doc/invoke.texi: Document -fipa-strict-aliasing. * ipa-modref.c (modref_access_analysis::record_ac

Re: Add -fipa-strict-aliasing

2021-12-12 Thread Jan Hubicka via Gcc-patches
> On December 12, 2021 1:22:09 PM GMT+01:00, Jan Hubicka via Gcc-patches > wrote: > >Hi, > >ipa-modref is using TBAA to disambiguate memory accesses inter-procedurally. > >This sometimes breaks programs with TBAA violations including clang with LTO. > >To workaround that one can use -fno-strict-a

Re: Add -fipa-strict-aliasing

2021-12-12 Thread Richard Biener via Gcc-patches
On December 12, 2021 1:22:09 PM GMT+01:00, Jan Hubicka via Gcc-patches wrote: >Hi, >ipa-modref is using TBAA to disambiguate memory accesses inter-procedurally. >This sometimes breaks programs with TBAA violations including clang with LTO. >To workaround that one can use -fno-strict-aliasing or -