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]

[PATCH, i386]: Fix PR81639, ICE in rtl_verify_bb_insns with a naked function


Hello!

Naked functions should not sibcall, since in naked functions epilogue
point (placed just above sibcal insn) is unreachable and marked with a
trap insn.

2017-08-01  Uros Bizjak  <ubizjak@gmail.com>

    PR target/81639
    * config/i386/i386.c (ix86_funciton_naked): New prototype.
    (ix86_function_ok_for_sibcall): Return false for naked functions.

testsuite/ChangeLog:

2017-08-01  Uros Bizjak  <ubizjak@gmail.com>

    PR target/81639
    * gcc.target/i386/pr81639.c: New test.

Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}.

Committed to mainline.

Uros.

Attachment: p.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]