[all-commits] [llvm/llvm-project] 6598af: [libc] Add __attribute__((always_inline)) to x86_6...

Siva Chandra via All-commits all-commits at lists.llvm.org
Mon Jan 6 21:40:37 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6598af4a54b0f67cdaf14ca1b6809e6f109679e8
      https://github.com/llvm/llvm-project/commit/6598af4a54b0f67cdaf14ca1b6809e6f109679e8
  Author: Siva Chandra Reddy <sivachandra at google.com>
  Date:   2020-01-06 (Mon, 06 Jan 2020)

  Changed paths:
    M libc/config/linux/x86_64/syscall.h.inc

  Log Message:
  -----------
  [libc] Add __attribute__((always_inline)) to x86_64 syscall functions.

Summary:
Some syscalls like SYS_clone do not tolerate a return instruction after
the syscall instruction. Marking the syscall functions with the
`always_inline` attribute accommodates such syscalls as inlining
eliminates the return instruction.

Reviewers: abrachet, phosek

Subscribers: MaskRay, tschuett, libc-commits

Tags: #libc-project

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




More information about the All-commits mailing list