This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/82166] gcc ICE at -Os on valid code on x86_64-linux-gnu in "ix86_finalize_stack_frame_flags"
- From: "hjl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 17 Sep 2017 21:11:36 +0000
- Subject: [Bug target/82166] gcc ICE at -Os on valid code on x86_64-linux-gnu in "ix86_finalize_stack_frame_flags"
- Auto-submitted: auto-generated
- References: <bug-82166-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82166
--- Comment #5 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Sun Sep 17 21:11:04 2017
New Revision: 252895
URL: https://gcc.gnu.org/viewcvs?rev=252895&root=gcc&view=rev
Log:
i386: Update preferred stack boundary for leaf functions
preferred_stack_boundary may not be the minimum stack alignment. For
leaf functions without TLS access, max_used_stack_slot_alignment may be
smaller. We should update preferred_stack_boundary for leaf functions.
gcc/
PR target/82166
* config/i386/i386.c (ix86_finalize_stack_frame_flags): Properly
compute the minimum stack alignment. Also update preferred stack
boundary for leaf functions.
gcc/testsuite/
PR target/82166
* gcc.target/i386/pr82166.c: New test.
Added:
trunk/gcc/testsuite/gcc.target/i386/pr82166.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/i386.c
trunk/gcc/testsuite/ChangeLog