From owner-svn-src-projects@freebsd.org Fri Dec 29 12:49:26 2017 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3D829E87AFD for ; Fri, 29 Dec 2017 12:49:26 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 07E7468C9D; Fri, 29 Dec 2017 12:49:25 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vBTCnOML010154; Fri, 29 Dec 2017 12:49:24 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vBTCnOfc010153; Fri, 29 Dec 2017 12:49:24 GMT (envelope-from dim@FreeBSD.org) Message-Id: <201712291249.vBTCnOfc010153@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Fri, 29 Dec 2017 12:49:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r327340 - projects/clang600-import/sys/crypto/via X-SVN-Group: projects X-SVN-Commit-Author: dim X-SVN-Commit-Paths: projects/clang600-import/sys/crypto/via X-SVN-Commit-Revision: 327340 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Dec 2017 12:49:26 -0000 Author: dim Date: Fri Dec 29 12:49:24 2017 New Revision: 327340 URL: https://svnweb.freebsd.org/changeset/base/327340 Log: Work around a clang 6.0.0 issue with rep prefixes followed by .byte directives (as reported in https://bugs.llvm.org/show_bug.cgi?id=35749), by defining the rep prefix with yet another .byte directive. This is a temporary fix, to be reverted before merging back to head, until upstream has a proper fix for this. Modified: projects/clang600-import/sys/crypto/via/padlock_cipher.c Modified: projects/clang600-import/sys/crypto/via/padlock_cipher.c ============================================================================== --- projects/clang600-import/sys/crypto/via/padlock_cipher.c Fri Dec 29 12:48:19 2017 (r327339) +++ projects/clang600-import/sys/crypto/via/padlock_cipher.c Fri Dec 29 12:49:24 2017 (r327340) @@ -88,7 +88,7 @@ padlock_cbc(void *in, void *out, size_t count, void *k __asm __volatile( "pushf \n\t" "popf \n\t" - "rep \n\t" + ".byte 0xf3 \n\t" ".byte 0x0f, 0xa7, 0xd0" : "+a" (iv), "+c" (count), "+D" (out), "+S" (in) : "b" (key), "d" (cw)