From owner-freebsd-toolchain@freebsd.org Sun Mar 17 11:37:29 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 113391535FBB for ; Sun, 17 Mar 2019 11:37:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 79D2173978 for ; Sun, 17 Mar 2019 11:37:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 38B771535FBA; Sun, 17 Mar 2019 11:37:28 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 25B851535FB8 for ; Sun, 17 Mar 2019 11:37:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B379F73976 for ; Sun, 17 Mar 2019 11:37:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 03286FBAF for ; Sun, 17 Mar 2019 11:37:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x2HBbQxL084966 for ; Sun, 17 Mar 2019 11:37:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x2HBbQX7084965 for toolchain@FreeBSD.org; Sun, 17 Mar 2019 11:37:26 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 236582] Enable LLVM openmp on i386 Date: Sun, 17 Mar 2019 11:37:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Mar 2019 11:37:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236582 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |emaste@freebsd.org --- Comment #2 from Dimitry Andric --- Unfortunately it does not compile for our old default i486 CPU: --- kmp_csupport.pico --- /usr/src/contrib/openmp/runtime/src/kmp_csupport.cpp:565:7: error: '_mm_set= csr' needs target feature sse __kmp_load_mxcsr(&serial_team->t.t_mxcsr); ^ /usr/src/contrib/openmp/runtime/src/kmp.h:3669:29: note: expanded from macro '__kmp_load_mxcsr' #define __kmp_load_mxcsr(p) _mm_setcsr(*(p)) ^ 1 error generated. So we can't unconditionally apply this to the i386 arch. Personally I'd be = in favor of raising the requirements for i386 to having at least SSE2, but tha= t is going to get lots of pushback from people that like to run old hardware. :) Maybe there is some way to detect the actual CPU or CPUTYPE setting at build time, and trigger on this. Note also that the patch from ports r447281 is maybe not entirely correct, = in the sense that it enables code also for arm, aarch and mips. I have no ide= a at all whether those are supported in any way. --=20 You are receiving this mail because: You are the assignee for the bug.=