This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/70633] [5/6 Regression] ICE on valid code at -Os (in 32-bit mode) on x86_64-linux-gnu: output_operand: invalid expression as operand
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 12 Apr 2016 14:28:52 +0000
- Subject: [Bug target/70633] [5/6 Regression] ICE on valid code at -Os (in 32-bit mode) on x86_64-linux-gnu: output_operand: invalid expression as operand
- Auto-submitted: auto-generated
- References: <bug-70633-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70633
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Guess the problem is a disagreement on what is valid constructor initializer.
initializer_constant_valid_p on (int) &main says it is valid constant, but the
gimplifier doesn't keep it around and instead replaces it with a temporary.
So, either the gimplifier shouldn't do that for elements that satisfy
initializer_constant_valid_p, or (perhaps safer) it should clear TREE_STATIC on
the CONSTRUCTOR when it does this.