[Bug 277474] clang 17 crashes with -fzero-call-used-regs when optimization is enabled

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 08 Mar 2024 08:20:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277474

--- Comment #4 from commit-hook@FreeBSD.org ---
A commit in branch stable/13 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=961271f952fc390396f967d50903291e3e6c59c6

commit 961271f952fc390396f967d50903291e3e6c59c6
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2024-03-04 20:30:54 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2024-03-08 08:19:10 +0000

    Merge commit f800c1f3b207 from llvm-project (by Arthur Eubanks):

      [PEI] Don't zero out noreg operands

      A tail call may have $noreg operands.

      Fixes a crash.

      Reviewed By: xgupta

      Differential Revision: https://reviews.llvm.org/D156485

    This should fix an assertion failure building qemu, specifically those
    parts using -fzero-call-used-regs.

    Reported by:    Daniel Berrangé <dan-freebsd@berrange.com>
    PR:             277474
    MFC after:      3 days

    (cherry picked from commit a39b3aa463f3474fabb3aedb5aecf943b54b4357)

 contrib/llvm-project/llvm/lib/CodeGen/PrologEpilogInserter.cpp | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.