Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 May 2011 16:32:44 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/lib/clang clang.build.mk
Message-ID:  <201105221632.p4MGWuMZ022508@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105221632.p4MGWuMZ022508>