On Thu, Feb 14, 2013 at 12:53:47PM +0100, Richard Biener wrote:
> > (completely untested). Because, if we force the constant to be aligned
> > more than it would be by default, the RTL optimizers should be told about
> > that too.
>
> At the moment the vectorizer refuses to bump alignment for anything
> with TREE_ASM_WRITTEN set. I suppose that should rather be checking
> DECL_RTL_SET_P. Btw, isn't the constants descriptor ->rtl always
> that of DECL_RTL of the decl?
But at that point the decls aren't TREE_ASM_WRITTEN, and don't have
DECL_RTL (otherwise, it would be enough to bump alignment of DECL_RTL).
The rtl is nevertheless already created at that point, by
build_constant_desc (in this case called by tree_output_constant_def).
Jakub