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
Unknown Object (File)
Sun, Nov 2, 8:25 AM
Unknown Object (File)
Tue, Oct 28, 5:44 PM
Unknown Object (File)
Sun, Oct 26, 1:24 PM
Unknown Object (File)
Thu, Oct 23, 7:48 PM
Unknown Object (File)
Tue, Oct 21, 9:59 AM
Unknown Object (File)
Oct 13 2025, 4:57 AM
Unknown Object (File)
Oct 12 2025, 5:04 PM
Unknown Object (File)
Oct 12 2025, 5:04 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