Skip to content

Merge efdd0a29b7eb6f3b6ca3fe9182a6c1085806c73a into 14.0.0 #53604

@brad0

Description

@brad0

Please merge efdd0a2.

[PATCH] [clang][Sparc] Fix __builtin_extract_return_addr etc.

While investigating the failures of symbolize_pc.cpp and
symbolize_pc_inline.cpp on SPARC (both Solaris and Linux), I noticed that
__builtin_extract_return_addr is a no-op in clang on all targets, while
gcc has non-default implementations for arm, mips, s390, and sparc.

This patch provides the SPARC implementation. For background see
SparcISelLowering.cpp (SparcTargetLowering::LowerReturn_32), the SPARC
psABI p.3-12, %i7 and p.3-16/17, and SCD 2.4.1, p.3P-10, %i7 and
p.3P-15.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions