]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r263312:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 26 Mar 2014 07:42:43 +0000 (07:42 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 26 Mar 2014 07:42:43 +0000 (07:42 +0000)
commitcea18d464bb55ecb90b841156d122d8309783c81
tree2c3d1790f54e2af0e10eeb88cb26a0d91f029053
parentd0acab96eed46538fde37aaf489712f5bd16c1e4
MFC r263312:

Pull in r196939 from upstream llvm trunk (by Reid Kleckner):

  Reland "Fix miscompile of MS inline assembly with stack realignment"

  This re-lands commit r196876, which was reverted in r196879.

  The tests have been fixed to pass on platforms with a stack alignment
  larger than 4.

  Update to clang side tests will land shortly.

Pull in r196986 from upstream llvm trunk (by Reid Kleckner):

  Revert the backend fatal error from r196939

  The combination of inline asm, stack realignment, and dynamic allocas
  turns out to be too common to reject out of hand.

  ASan inserts empy inline asm fragments and uses aligned allocas.
  Compiling any trivial function containing a dynamic alloca with ASan is
  enough to trigger the check.

  XFAIL the test cases that would be miscompiled and add one that uses the
  relevant functionality.

Pull in r202930 from upstream llvm trunk (by Hans Wennborg):

  Check for dynamic allocas and inline asm that clobbers sp before building
  selection dag (PR19012)

  In X86SelectionDagInfo::EmitTargetCodeForMemcpy we check with MachineFrameInfo
  to make sure that ESI isn't used as a base pointer register before we choose to
  emit rep movs (which clobbers esi).

  The problem is that MachineFrameInfo wouldn't know about dynamic allocas or
  inline asm that clobbers the stack pointer until SelectionDAGBuilder has
  encountered them.

  This patch fixes the problem by checking for such things when building the
  FunctionLoweringInfo.

  Differential Revision: http://llvm-reviews.chandlerc.com/D2954

Together, these commits fix the problem encountered in the devel/emacs
port on the i386 architecture, where a combination of stack realignment,
alloca() and memcpy() could incidentally clobber the %esi register,
leading to segfaults in the temacs build-time utility.

See also: http://llvm.org/PR18171 and http://llvm.org/PR19012

Reported by: ashish
PR: ports/183064

MFC r263313:

Pull in r203311 from upstream llvm trunk (by Arnold Schwaighofer):

  ISel: Make VSELECT selection terminate in cases where the condition type has to
  be split and the result type widened.

  When the condition of a vselect has to be split it makes no sense widening the
  vselect and thereby widening the condition. We end up in an endless loop of
  widening (vselect result type) and splitting (condition mask type) doing this.
  Instead, split both the condition and the vselect and widen the result.

  I ran this over the test suite with i686 and mattr=+sse and saw no regressions.

  Fixes PR18036.

With this fix the original problem case from the graphics/rawtherapee
port (posted in http://llvm.org/PR18036 ) now compiles within ~97MB RSS.

Reported by: mandree

MFC r263320:

Add separate patch files for all the customizations we have currently
applied to our copy of llvm/clang.  These can be applied in alphabetical
order to a pristine llvm/clang 3.4 release source tree, to result in the
same version used in FreeBSD.

This is intended to clearly document all the changes until now, which
mostly consist of cherry pickings from the respective upstream trunks,
plus a number of hand-written FreeBSD-specific ones.  Hopefully those
can eventually be cleaned up and sent upstream too.

git-svn-id: svn://svn.freebsd.org/base/stable/10@263765 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
111 files changed:
contrib/llvm/include/llvm/CodeGen/FunctionLoweringInfo.h
contrib/llvm/include/llvm/CodeGen/MachineFrameInfo.h
contrib/llvm/include/llvm/CodeGen/MachineFunction.h
contrib/llvm/lib/CodeGen/MachineFunction.cpp
contrib/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
contrib/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
contrib/llvm/lib/MC/MCParser/AsmParser.cpp
contrib/llvm/lib/Target/X86/X86FrameLowering.cpp
contrib/llvm/lib/Target/X86/X86RegisterInfo.cpp
contrib/llvm/patches/README.TXT [new file with mode: 0644]
contrib/llvm/patches/patch-r208961-clang-version-include.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r208987-format-extensions.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r209107-clang-vendor-suffix.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r213492-amd64-multi-os-dot.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r221503-default-target-triple.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r243830-arm-disable-clear-cache.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r252503-arm-transient-stack-alignment.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r257109-add-CC-aliases.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r259053-gcc-installation-detector.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r259498-add-fxsave.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r261680-clang-r200899-fix-security-quantis.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r261991-llvm-r195391-fix-dwarf2.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r261991-llvm-r198385-fix-dwarf2.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r261991-llvm-r198389-fix-dwarf2.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198028-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198029-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198030-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198145-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198149-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198157-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198280-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198281-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198286-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198480-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198484-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198533-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198565-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198567-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198580-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198591-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198592-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198658-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198681-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198738-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198739-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198740-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198893-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198909-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r198910-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r199014-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r199024-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r199028-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r199031-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r199033-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r199061-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r199186-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r199187-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r199775-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r199781-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r199786-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r199940-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r199974-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r199975-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r199977-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r200103-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r200104-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r200112-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r200130-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r200131-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r200141-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r200282-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r200368-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r200373-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r200376-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r200509-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r200617-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r200960-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r200961-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r200962-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r200963-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262261-llvm-r200965-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262262-clang-r198311-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262262-clang-r198312-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262262-clang-r198911-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262262-clang-r198912-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262262-clang-r198918-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262262-clang-r198923-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262262-clang-r199012-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262262-clang-r199034-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262262-clang-r199037-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262262-clang-r199188-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262262-clang-r199399-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262262-clang-r200452-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262264-llvm-r200453-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262265-llvm-r201718-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262303-enable-ppc-integrated-as.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262415-llvm-r201994-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262460-llvm-r202059-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262535-clang-r202177-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262536-clang-r202179-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262582-llvm-r202422-sparc.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262611-llvm-r196874-fix-invalid-pwd-crash.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r262809-clang-r203007-destructor-calling-conv.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r263048-clang-r203624-fix-CC-aliases.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r263312-llvm-r169939-inline-asm-with-realign.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r263312-llvm-r196940-update-inline-asm-test.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r263312-llvm-r196986-allow-realign-alloca.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r263312-llvm-r202930-fix-alloca-esi-clobber.diff [new file with mode: 0644]
contrib/llvm/patches/patch-r263313-llvm-r203311-fix-sse1-oom.diff [new file with mode: 0644]