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)
Fri, Apr 5, 9:39 AM
Unknown Object (File)
Feb 27 2024, 4:30 AM
Unknown Object (File)
Jan 29 2024, 12:28 PM
Unknown Object (File)
Jan 17 2024, 6:11 PM
Unknown Object (File)
Dec 31 2023, 11:35 PM
Unknown Object (File)
Dec 23 2023, 12:07 PM
Unknown Object (File)
Dec 20 2023, 8:19 AM
Unknown Object (File)
Dec 12 2023, 2:50 AM
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