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/82166] gcc ICE at -Os on valid code on x86_64-linux-gnu in "ix86_finalize_stack_frame_flags"


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

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