Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1603255

Re: [PATCH 5/7] x86, boot, LLVM: Use regparm=0 for memcpy and memset

From Peter Zijlstra <peterz@infradead.org>
Newsgroups linux.kernel
Subject Re: [PATCH 5/7] x86, boot, LLVM: Use regparm=0 for memcpy and memset
Date 2017-03-17 13:20 +0100
Message-ID <tlZ1o-6iZ-33@gated-at.bofh.it> (permalink)
References <tlNWh-6eK-9@gated-at.bofh.it> <tlNWh-6eK-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Mar 16, 2017 at 05:15:18PM -0700, Michael Davidson wrote:
> Use the standard regparm=0 calling convention for memcpy and
> memset when building with clang.
> 
> This is a work around for a long standing clang bug
> (see https://llvm.org/bugs/show_bug.cgi?id=3997) where
> clang always uses the standard regparm=0 calling convention
> for any implcit calls to memcpy and memset that it generates
> (eg for structure assignments and initialization) even if an
> alternate calling convention such as regparm=3 has been specified.

Seriously, fix LLVM already.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 5/7] x86, boot, LLVM: Use regparm=0 for memcpy and memset Michael Davidson <md@google.com> - 2017-03-17 01:30 +0100
  Re: [PATCH 5/7] x86, boot, LLVM: Use regparm=0 for memcpy and memset Peter Zijlstra <peterz@infradead.org> - 2017-03-17 13:20 +0100

csiph-web