This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR50494


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]