On Wed, Mar 17, 2010 at 06:08:06PM -0400, Aldy Hernandez wrote: > So... Richi, et al. Instead, should I remove alias set numbers > on the -fcompare-debug case, or inhibit new alias sets like thus: > > unsigned int save_aliasing = flag_strict_aliasing; > flag_strict_aliasing = 0; > do the DECL_RTL thing > flag_strict_aliasing = save_aliasing;
If this, then I guess this together with the following SET_DECL_RTL NULL should be put into a new make_decl_rtl_for_debug helper (or something similar), with a big comment why it is doing that. Dropping of alias sets from -fdump-final-insns is risky, we'd miss if DEBUG insns/stmts actually cause any real aliasing changes. Jakub