This is the mail archive of the gcc-bugs@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]

[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


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.

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