Page MenuHomeFreeBSD

Merge commit 7214f7a79 from llvm git (by Sam Elliott):
ClosedPublic

Authored by brooks on Feb 27 2020, 6:39 PM.
Tags
None
Referenced Files
F131919794: D23857.diff
Sun, Oct 12, 5:30 AM
Unknown Object (File)
Mon, Sep 29, 8:02 PM
Unknown Object (File)
Sun, Sep 28, 5:16 PM
Unknown Object (File)
Tue, Sep 23, 5:20 PM
Unknown Object (File)
Sat, Sep 13, 4:08 PM
Unknown Object (File)
Sat, Sep 13, 7:10 AM
Unknown Object (File)
Sat, Sep 13, 12:27 AM
Unknown Object (File)
Aug 5 2025, 12:48 PM
Subscribers

Details

Summary
[RISCV] Lower llvm.trap and llvm.debugtrap

Summary:
Until this commit, these have lowered to a call to abort().

`llvm.trap()` now lowers to `unimp`, which should trap on all systems.

`llvm.debugtrap()` now lowers to `ebreak`, which is exactly what this
instruction is for.

Reviewers: asb, luismarques

Reviewed By: asb

Tags: #llvm

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

This fixes miscompilation resulting in linking failures with
INVARIANTS disabled.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable