Re: [c-family] Fix PR middle-end/50266

2011-09-06 Thread Joseph S. Myers
On Tue, 6 Sep 2011, Eric Botcazou wrote: > Hi, > > this is a regression present on the mainline and 4.6 branch caused by the > constructor uniquization patch. The tree_output_constant_def routine rejects > offsetof-like computations that can be written in the C family of languages. > While the

[c-family] Fix PR middle-end/50266

2011-09-06 Thread Eric Botcazou
Hi, this is a regression present on the mainline and 4.6 branch caused by the constructor uniquization patch. The tree_output_constant_def routine rejects offsetof-like computations that can be written in the C family of languages. While the C compiler folds most of them early, it doesn't if an