https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69368
--- Comment #75 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to rguent...@suse.de from comment #74) > On Tue, 23 Feb 2016, dominiq at lps dot ens.fr wrote: > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69368 > > > > --- Comment #73 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > > > Patch as posted passed bootstrap & regtest. Adjusted according to > > > comments but not tested otherwise > > > > The patch "fixes" the test in comment 45, but not the one in comment 61. > > It's expected that it doesn't fix the one w/o /COMMON/ The #c61 testcase is with /COMMON/ too. But doesn't really use get_ref_base_and_extent for the optimization, but array_at_struct_end_p. Which is why I've suggested to Alan on gcc-patches to tweak those two places for -funknown-commons.