[PATCH] Fix PR56295, part 2

2013-02-13 Thread Richard Biener
This fixes part 2 of PR56295, it un-does MEM_REF wrapping on the writer side. Otherwise code-generation differences at compile-time appear -flto vs. -fno-lto (with fat LTO objects). LTO bootstrap regtest running on x86_64-unknown-linux-gnu. Richard. 2013-02-13 Richard Biener

[PATCH] Fix PR56295

2013-02-12 Thread Richard Biener
This fixes the code difference -O3 vs. -O3 -flto reported in PR56295. For the -flto run we are confused by the extra MEM_REF we wrap every global decl with in the IL (that is to support seamless and alias-correct replacement of global decls with their prevailing decl). The following un-wraps the