From owner-cvs-src-old@FreeBSD.ORG Sun May 22 16:32:56 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D80710657A9 for ; Sun, 22 May 2011 16:32:56 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 3E47E8FC12 for ; Sun, 22 May 2011 16:32:56 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p4MGWu7G022509 for ; Sun, 22 May 2011 16:32:56 GMT (envelope-from dim@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p4MGWuMZ022508 for cvs-src-old@freebsd.org; Sun, 22 May 2011 16:32:56 GMT (envelope-from dim@repoman.freebsd.org) Message-Id: <201105221632.p4MGWuMZ022508@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to dim@repoman.freebsd.org using -f From: Dimitry Andric Date: Sun, 22 May 2011 16:32:44 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/clang clang.build.mk X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2011 16:32:56 -0000 dim 2011-05-22 16:32:44 UTC FreeBSD src repository Modified files: lib/clang clang.build.mk Log: SVN rev 222183 on 2011-05-22 16:32:44Z by dim On amd64, change clang's default triple to 'x86_64-unknown-freebsd9.0', similar to what we do for binutils. When clang's default triple starts with 'amd64-', it does not pass a proper -target-cpu option to its first stage. This can lead to problems, for example when structs are memcpy'd, and clang erroneously assumes they are 16-byte aligned. It will then use the 'movaps' SSE instruction to implement the copy, which results in a bus error if the struct is really 8-byte aligned. I encountered this issue when gcc's /usr/libexec/cc1 started crashing with SIGBUS, after rebuilding world with clang ToT, but it also affects the version of clang that we have in the tree. We were just lucky until now, apparently. :) Revision Changes Path 1.14 +1 -1 src/lib/clang/clang.build.mk