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] |
I noticed when you have a complex initializer in a constant decl and we decided to SRA the copy, we need to gimplify the initializer. Since gimplify_stmt does not mark the temporary variables for renaming, we get an ICE because the variables are not renamed. The easy way and correct way to fix this is to change over to use force_gimple_operand instead of gimplify_stmt.
Thanks, Andrew Pinski
* tree-sra.c (generate_one_element_init): Use force_gimple_operand instead of gimplify_stmt. (scalarize_init): Do not call push_gimplify_context/pop_gimplify_context.
Attachment:
temp.diff.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |