History log of /freebsd-10-stable/contrib/llvm/patches/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
296802 13-Mar-2016 dim

Add patch corresponding to r296800.

293782 12-Jan-2016 dim

MFC r292950:

Drop the clang patch which adds recognition of 'CC' suffixes as aliases
for --driver-mode=g++, since this was never upstreamed. For backwards
compatibility, add a wrapper shell script.

286034 29-Jul-2015 dim

Add updated llvm patch corresponding to r286033.

286012 29-Jul-2015 dim

Revert r286007-r286009 for now, until I can figure out how to make the
fix compile with older gcc and libstdc++.

286008 29-Jul-2015 dim

Add llvm patch corresponding to r286007.

283036 17-May-2015 dim

For clang 3.4.1, when using -fformat-extensions, and warning about the
FreeBSD-specific %D and %b printf format specifiers, avoid possible
argument overruns. Also reduce the differences with the version added
in r280031 (which has been sent upstream).

Direct commit to stable/10, since head already has clang 3.6.0.

283015 16-May-2015 dim

Bring the contrib/llvm/patches directory up-to-date.

MFC r263892:
Add the llvm/clang patch for r263891.

MFC r264350:
Update the llvm/clang patch for r264345.

MFC r266675:
Add the clang patch for r266674.

MFC r275651:
Add llvm patch corresponding to r275633.

MFC r275747:
Update llvm patches for r274286 and r275633 so all the tests will pass.

MFC r275760:
Add clang patch corresponding to r275759.

MFC r275772:
Update clang patch for r275759 to use correct test cases.

Additionally:
* Remove the clang patch corresponding to r263619, as ARM EABI
hard-float support was never MFC'd.
* Add clang patch corresponding to r279302.

281908 23-Apr-2015 dim

MFC r281775:

Pull in r229911 from upstream llvm trunk (by Benjamin Kramer):

MC: Allow multiple comma-separated expressions on the .uleb128 directive.

For compatiblity with GNU as. Binutils documents this as
'.uleb128 expressions'. Subtle, isn't it?

Reported by: sbruno
PR: 199554

MFC r281777:

Add llvm patch corresponding to r281775.

279290 25-Feb-2015 dim

Add clang patches corresponding to r279289.

278789 14-Feb-2015 dim

Add clang patches corresponding to r278788.

278716 13-Feb-2015 dim

MFC r271931:

Add a few missing llvm/clang patches, update the other ones to be able
to apply with the same patch options onto a fresh upstream llvm/clang
3.4.1 checkout, and use approximately the same header tempate for them.

278709 13-Feb-2015 dim

MFC r271025, r271029, r271030 (by sbruno):

MFV: Only emit movw on ARMv6T2

Building for the FreeBSD default target ARMv6 was emitting movw ASM on certain
test cases (found building qmake4/5 for ARM). Don't do that, moreover, the AS
in base doesn't understand this instruction for this target. One would need
to use --integrated-as to get this to build if desired.

http://llvm.org/viewvc/llvm-project?view=revision&revision=216989

Submitted by: ian
Reviewed by: dim
Obtained from: llvm.org

274696 19-Nov-2014 dim

MFC r274442:

Pull in r221709 from upstream llvm trunk (by Frédéric Riss):

Totally forget deallocated SDNodes in SDDbgInfo.

What would happen before that commit is that the SDDbgValues associated with
a deallocated SDNode would be marked Invalidated, but SDDbgInfo would keep
a map entry keyed by the SDNode pointer pointing to this list of invalidated
SDDbgNodes. As the memory gets reused, the list might get wrongly associated
with another new SDNode. As the SDDbgValues are cloned when they are transfered,
this can lead to an exponential number of SDDbgValues being produced during
DAGCombine like in http://llvm.org/bugs/show_bug.cgi?id=20893

Note that the previous behavior wasn't really buggy as the invalidation made
sure that the SDDbgValues won't be used. This commit can be considered a
memory optimization and as such is really hard to validate in a unit-test.

This should fix abnormally large memory usage and resulting OOM crashes
when compiling certain ports with debug information.

Reported by: Dmitry Marakasov <amdmi3@amdmi3.ru>
Upstream PRs: http://llvm.org/PR19031 http://llvm.org/PR20893

MFC r274483:

The fix imported into llvm in r274442 contains some C++11 constructs,
which gcc in base cannot handle. Replace these with C++98 equivalents.

While here, add the patch for the adapted fix.

Reported by: bz, kib
Pointy hat to: dim

274373 11-Nov-2014 dim

MFC r274286:

Pull in r201784 from upstream llvm trunk (by Benjamin Kramer):

AsmParser: Disable Darwin-style macro argument expansion on non-darwin targets.

There is code in the wild that relies on $0 not being expanded.

This fixes some cases of using $ signs in literals being incorrectly
assembled.

Reported by: Richard Henderson
Upstream PR: http://llvm.org/PR21500

MFC r274294:

Add llvm patch corresponding to r274286.

271729 18-Sep-2014 emaste

MFC Clang debuginfo crash fix

r271432: Merge upstream Clang rev 205331 debuginfo crash fix:

Debug info: fix a crash when emitting IndirectFieldDecls, which were
previously not handled at all.
rdar://problem/16348575

r271433: Add clang patch corresponding to r271432

Approved by: re
Sponsored by: DARPA, AFRL

271414 11-Sep-2014 emaste

MFC Clang debug info crash fix

r271282: Merge Clang debug info crash fix rev 200797:

Debug info: fix a crasher when when emitting debug info for
not-yet-completed templated types. getTypeSize() needs a complete type.

rdar://problem/15931354

r271283: Add clang patch for r271282

Note that r271282 contains only the src change from Clang rev 200797.
This patch file includes two follow-on changes to the test case, which
do not apply to the copy in the FreeBSD tree.

Upstream Clang revisions:

200797:

Debug info: fix a crasher when when emitting debug info for
not-yet-completed templated types. getTypeSize() needs a complete type.

rdar://problem/15931354

200798:

Simplify testcase from r200797 some more.

200805:

Further simplify r200797 and add an explanatory comment.

PR: 193347
Approved by: re
Sponsored by: DARPA, AFRL

269012 23-Jul-2014 emaste

MFC r266630 by dim:

Add the clang patch for r265477. While here, add a description to the
patch for r263619, and unify all the URLs to point to svnweb


patch-r208961-clang-version-include.diff
patch-r208987-format-extensions.diff
patch-r209107-clang-vendor-suffix.diff
patch-r213492-amd64-multi-os-dot.diff
patch-r221503-default-target-triple.diff
patch-r243830-arm-disable-clear-cache.diff
patch-r252503-arm-transient-stack-alignment.diff
patch-r257109-add-CC-aliases.diff
patch-r259053-gcc-installation-detector.diff
patch-r259498-add-fxsave.diff
patch-r261680-clang-r200899-fix-security-quantis.diff
patch-r261991-llvm-r195391-fix-dwarf2.diff
patch-r261991-llvm-r198385-fix-dwarf2.diff
patch-r261991-llvm-r198389-fix-dwarf2.diff
patch-r262261-llvm-r198028-sparc.diff
patch-r262261-llvm-r198029-sparc.diff
patch-r262261-llvm-r198030-sparc.diff
patch-r262261-llvm-r198145-sparc.diff
patch-r262261-llvm-r198149-sparc.diff
patch-r262261-llvm-r198157-sparc.diff
patch-r262261-llvm-r198280-sparc.diff
patch-r262261-llvm-r198281-sparc.diff
patch-r262261-llvm-r198286-sparc.diff
patch-r262261-llvm-r198480-sparc.diff
patch-r262261-llvm-r198484-sparc.diff
patch-r262261-llvm-r198533-sparc.diff
patch-r262261-llvm-r198565-sparc.diff
patch-r262261-llvm-r198567-sparc.diff
patch-r262261-llvm-r198580-sparc.diff
patch-r262261-llvm-r198591-sparc.diff
patch-r262261-llvm-r198592-sparc.diff
patch-r262261-llvm-r198658-sparc.diff
patch-r262261-llvm-r198681-sparc.diff
patch-r262261-llvm-r198738-sparc.diff
patch-r262261-llvm-r198739-sparc.diff
patch-r262261-llvm-r198740-sparc.diff
patch-r262261-llvm-r198893-sparc.diff
patch-r262261-llvm-r198909-sparc.diff
patch-r262261-llvm-r198910-sparc.diff
patch-r262261-llvm-r199014-sparc.diff
patch-r262261-llvm-r199024-sparc.diff
patch-r262261-llvm-r199028-sparc.diff
patch-r262261-llvm-r199031-sparc.diff
patch-r262261-llvm-r199033-sparc.diff
patch-r262261-llvm-r199061-sparc.diff
patch-r262261-llvm-r199186-sparc.diff
patch-r262261-llvm-r199187-sparc.diff
patch-r262261-llvm-r199775-sparc.diff
patch-r262261-llvm-r199781-sparc.diff
patch-r262261-llvm-r199786-sparc.diff
patch-r262261-llvm-r199940-sparc.diff
patch-r262261-llvm-r199974-sparc.diff
patch-r262261-llvm-r199975-sparc.diff
patch-r262261-llvm-r199977-sparc.diff
patch-r262261-llvm-r200103-sparc.diff
patch-r262261-llvm-r200104-sparc.diff
patch-r262261-llvm-r200112-sparc.diff
patch-r262261-llvm-r200130-sparc.diff
patch-r262261-llvm-r200131-sparc.diff
patch-r262261-llvm-r200141-sparc.diff
patch-r262261-llvm-r200282-sparc.diff
patch-r262261-llvm-r200368-sparc.diff
patch-r262261-llvm-r200373-sparc.diff
patch-r262261-llvm-r200376-sparc.diff
patch-r262261-llvm-r200509-sparc.diff
patch-r262261-llvm-r200617-sparc.diff
patch-r262261-llvm-r200960-sparc.diff
patch-r262261-llvm-r200961-sparc.diff
patch-r262261-llvm-r200962-sparc.diff
patch-r262261-llvm-r200963-sparc.diff
patch-r262261-llvm-r200965-sparc.diff
patch-r262262-clang-r198311-sparc.diff
patch-r262262-clang-r198312-sparc.diff
patch-r262262-clang-r198911-sparc.diff
patch-r262262-clang-r198912-sparc.diff
patch-r262262-clang-r198918-sparc.diff
patch-r262262-clang-r198923-sparc.diff
patch-r262262-clang-r199012-sparc.diff
patch-r262262-clang-r199034-sparc.diff
patch-r262262-clang-r199037-sparc.diff
patch-r262262-clang-r199188-sparc.diff
patch-r262262-clang-r199399-sparc.diff
patch-r262262-clang-r200452-sparc.diff
patch-r262264-llvm-r200453-sparc.diff
patch-r262265-llvm-r201718-sparc.diff
patch-r262303-enable-ppc-integrated-as.diff
patch-r262415-llvm-r201994-sparc.diff
patch-r262460-llvm-r202059-sparc.diff
patch-r262535-clang-r202177-sparc.diff
patch-r262536-clang-r202179-sparc.diff
patch-r262582-llvm-r202422-sparc.diff
patch-r262611-llvm-r196874-fix-invalid-pwd-crash.diff
patch-r263048-clang-r203624-fix-CC-aliases.diff
patch-r263312-llvm-r169939-inline-asm-with-realign.diff
patch-r263312-llvm-r196940-update-inline-asm-test.diff
patch-r263312-llvm-r196986-allow-realign-alloca.diff
patch-r263312-llvm-r202930-fix-alloca-esi-clobber.diff
patch-r263313-llvm-r203311-fix-sse1-oom.diff
patch-r263619-clang-r201662-arm-gnueabihf.diff
patch-r264826-llvm-r202188-variadic-fn-debug-info.diff
patch-r264827-clang-r202185-variadic-fn-debug-info.diff
patch-r265477-clang-r198655-standalone-debug.diff
269000 22-Jul-2014 emaste

MFC debug info for variadic functions

r264826: Merge LLVM r202188:

Debug info: Support variadic functions.
Variadic functions have an unspecified parameter tag after the last
argument. In IR this is represented as an unspecified parameter in the
subroutine type.

Paired commit with CFE r202185.

rdar://problem/13690847

This re-applies r202184 + a bugfix in DwarfDebug's argument handling.

This merge includes a change to use the LLVM 3.4 API in
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:

DwarfUnit -> CompileUnit

r264827: Merge Clang r202185:

Debug info: Generate debug info for variadic functions.
Paired commit with LLVM.

rdar://problem/13690847

This merege includes changes to use the Clang 3.4 API (revisions
199686 and 200082) in lib/CodeGen/CGDebugInfo.cpp:

getParamType -> getArgType
getNumParams -> getNumArgs
getReturnType -> getResultType

r264828: Add patches corresponding to r264826 and r264827

Sponsored by: DARPA, AFRL

268065 30-Jun-2014 dim

MFC r267981:

Pull in r211627 from upstream llvm trunk (by Bill Schmidt):

[PPC64] Fix PR20071 (fctiduz generated for targets lacking that
instruction)

PR20071 identifies a problem in PowerPC's fast-isel implementation
for floating-point conversion to integer. The fctiduz instruction
was added in Power ISA 2.06 (i.e., Power7 and later). However, this
instruction is being generated regardless of which 64-bit PowerPC
target is selected.

The intent is for fast-isel to punt to DAG selection when this
instruction is not available. This patch implements that change.
For testing purposes, the existing fast-isel-conversion.ll test adds
a RUN line for -mcpu=970 and tests for the expected code generation.
Additionally, the existing test fast-isel-conversion-p5.ll was found
to be incorrectly expecting the unavailable instruction to be
generated. I've removed these test variants since we have adequate
coverage in fast-isel-conversion.ll.

This is needed to compile clang with debug+asserts on older powerpc64
and ppc970 targets.

Requested by: jhibbits

MFC r267982:

Add the llvm patch for r267981.

MFC r268003:

Fix breakage after r267981.

Pointy hat to: dim

267813 24-Jun-2014 dim

MFC r267704:

Pull in r211435 from upstream llvm trunk (by Benjamin Kramer):

Legalizer: Add support for splitting insert_subvectors.

We handle this by spilling the whole thing to the stack and doing the
insertion as a store.

PR19492. This happens in real code because the vectorizer creates
v2i128 when AVX is enabled.

This fixes a "fatal error: error in backend: Do not know how to split
the result of this operator!" message encountered during compilation of
the net-p2p/libtorrent-rasterbar port.

Reported by: Evgeniy <iron@mail.ua>

MFC r267705:

Add the llvm patch for r267704.

266715 26-May-2014 dim

MFC r265925:

Upgrade our copy of llvm/clang to 3.4.1 release. This release contains
mostly fixes, for the following upstream bugs:

http://llvm.org/PR16365 http://llvm.org/PR17473 http://llvm.org/PR18000
http://llvm.org/PR18068 http://llvm.org/PR18102 http://llvm.org/PR18165
http://llvm.org/PR18260 http://llvm.org/PR18290 http://llvm.org/PR18316
http://llvm.org/PR18460 http://llvm.org/PR18473 http://llvm.org/PR18515
http://llvm.org/PR18526 http://llvm.org/PR18600 http://llvm.org/PR18762
http://llvm.org/PR18773 http://llvm.org/PR18860 http://llvm.org/PR18994
http://llvm.org/PR19007 http://llvm.org/PR19010 http://llvm.org/PR19033
http://llvm.org/PR19059 http://llvm.org/PR19144 http://llvm.org/PR19326


/freebsd-10-stable/ObsoleteFiles.inc
/freebsd-10-stable/UPDATING
/freebsd-10-stable/contrib/llvm/include/llvm/IR/IntrinsicsX86.td
/freebsd-10-stable/contrib/llvm/include/llvm/MC/MCAsmInfo.h
/freebsd-10-stable/contrib/llvm/lib/Analysis/BasicAliasAnalysis.cpp
/freebsd-10-stable/contrib/llvm/lib/Analysis/IVUsers.cpp
/freebsd-10-stable/contrib/llvm/lib/Analysis/ScalarEvolution.cpp
/freebsd-10-stable/contrib/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
/freebsd-10-stable/contrib/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
/freebsd-10-stable/contrib/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
/freebsd-10-stable/contrib/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
/freebsd-10-stable/contrib/llvm/lib/MC/MCAsmInfo.cpp
/freebsd-10-stable/contrib/llvm/lib/MC/MCAsmInfoCOFF.cpp
/freebsd-10-stable/contrib/llvm/lib/MC/MCAsmInfoDarwin.cpp
/freebsd-10-stable/contrib/llvm/lib/MC/MCDwarf.cpp
/freebsd-10-stable/contrib/llvm/lib/MC/MCParser/AsmParser.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/AArch64/AArch64InstrInfo.td
/freebsd-10-stable/contrib/llvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/AArch64/AArch64TargetObjectFile.h
/freebsd-10-stable/contrib/llvm/lib/Target/ARM/A15SDOptimizer.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/ARM/ARMInstrNEON.td
/freebsd-10-stable/contrib/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.h
/freebsd-10-stable/contrib/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/PowerPC/PPCFastISel.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/PowerPC/PPCInstrInfo.td
/freebsd-10-stable/contrib/llvm/lib/Target/PowerPC/PPCRegisterInfo.td
/freebsd-10-stable/contrib/llvm/lib/Target/PowerPC/PPCSubtarget.h
/freebsd-10-stable/contrib/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/R600/AMDGPUISelLowering.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/R600/AMDGPUInstructions.td
/freebsd-10-stable/contrib/llvm/lib/Target/R600/MCTargetDesc/AMDGPUMCAsmInfo.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/R600/R600ControlFlowFinalizer.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/R600/R600InstrInfo.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/R600/R600Instructions.td
/freebsd-10-stable/contrib/llvm/lib/Target/R600/SIFixSGPRCopies.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/R600/SIInsertWaits.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/R600/SIInstrInfo.td
/freebsd-10-stable/contrib/llvm/lib/Target/R600/SIInstructions.td
/freebsd-10-stable/contrib/llvm/lib/Target/R600/SIIntrinsics.td
/freebsd-10-stable/contrib/llvm/lib/Target/R600/SILowerControlFlow.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.c
/freebsd-10-stable/contrib/llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/X86/X86AsmPrinter.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp
/freebsd-10-stable/contrib/llvm/lib/Target/X86/X86InstrCompiler.td
/freebsd-10-stable/contrib/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
/freebsd-10-stable/contrib/llvm/lib/Transforms/Scalar/LoopRerollPass.cpp
/freebsd-10-stable/contrib/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
/freebsd-10-stable/contrib/llvm/lib/Transforms/Utils/LCSSA.cpp
/freebsd-10-stable/contrib/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
patch-r262809-clang-r203007-destructor-calling-conv.diff
/freebsd-10-stable/contrib/llvm/tools/clang/include/clang/Driver/Driver.h
/freebsd-10-stable/contrib/llvm/tools/clang/include/clang/Driver/ToolChain.h
/freebsd-10-stable/contrib/llvm/tools/clang/lib/AST/ASTDumper.cpp
/freebsd-10-stable/contrib/llvm/tools/clang/lib/AST/ExprConstant.cpp
/freebsd-10-stable/contrib/llvm/tools/clang/lib/AST/StmtPrinter.cpp
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Analysis/Consumed.cpp
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Basic/Targets.cpp
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Basic/Version.cpp
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Driver/Driver.cpp
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Driver/ToolChain.cpp
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Driver/ToolChains.cpp
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Driver/ToolChains.h
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Driver/Tools.cpp
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Sema/SemaExprCXX.cpp
/freebsd-10-stable/etc/mtree/BSD.include.dist
/freebsd-10-stable/lib/clang/include/Makefile
/freebsd-10-stable/lib/clang/include/clang/Basic/Version.inc
/freebsd-10-stable/lib/clang/include/llvm/Config/config.h
/freebsd-10-stable/lib/clang/include/llvm/Config/llvm-config.h
/freebsd-10-stable/tools/build/mk/OptionalObsoleteFiles.inc
266337 17-May-2014 ian

MFC 263631, 263637, 263664, 263676, 263679, 263698, 263711,

Implement __flt_rounds for ARMv6 hard-float. The fpscr register stores the
current rounding mode used by the VFP unit.

Simplify how we build MACHINE_ARCH. There are 3 options that may be set
however only arm, armeb, armv6, and soon armv6hf will be used.

Add the llvm/clang patch for r263619.

Reorder the pmap macros so "ARM_MMU_V6 + ARM_MMU_V7" is first. As they are
identical this allows us to build for both v6 and v7 together.

Add code for enabling second CPU core for A20 SoC.
Enable SMP on Cubieboard2.

Switch to freebsd.org emal address in copyright.


patch-r263619-clang-r201662-arm-gnueabihf.diff
/freebsd-10-stable/lib/libc/arm/gen/flt_rounds.c
/freebsd-10-stable/sys/arm/allwinner/a10_clk.c
/freebsd-10-stable/sys/arm/allwinner/a10_clk.h
/freebsd-10-stable/sys/arm/allwinner/a10_common.c
/freebsd-10-stable/sys/arm/allwinner/a10_ehci.c
/freebsd-10-stable/sys/arm/allwinner/a10_gpio.c
/freebsd-10-stable/sys/arm/allwinner/a10_gpio.h
/freebsd-10-stable/sys/arm/allwinner/a10_machdep.c
/freebsd-10-stable/sys/arm/allwinner/a10_sramc.c
/freebsd-10-stable/sys/arm/allwinner/a10_sramc.h
/freebsd-10-stable/sys/arm/allwinner/a20/a20_cpu_cfg.c
/freebsd-10-stable/sys/arm/allwinner/a20/a20_cpu_cfg.h
/freebsd-10-stable/sys/arm/allwinner/a20/a20_mp.c
/freebsd-10-stable/sys/arm/allwinner/a20/files.a20
/freebsd-10-stable/sys/arm/allwinner/aintc.c
/freebsd-10-stable/sys/arm/allwinner/console.c
/freebsd-10-stable/sys/arm/allwinner/if_emac.c
/freebsd-10-stable/sys/arm/allwinner/if_emacreg.h
/freebsd-10-stable/sys/arm/allwinner/timer.c
/freebsd-10-stable/sys/arm/conf/CUBIEBOARD2
/freebsd-10-stable/sys/arm/include/param.h
/freebsd-10-stable/sys/arm/include/pmap.h
/freebsd-10-stable/sys/arm/rockchip/rk30xx_common.c
/freebsd-10-stable/sys/arm/rockchip/rk30xx_gpio.c
/freebsd-10-stable/sys/arm/rockchip/rk30xx_grf.c
/freebsd-10-stable/sys/arm/rockchip/rk30xx_grf.h
/freebsd-10-stable/sys/arm/rockchip/rk30xx_machdep.c
/freebsd-10-stable/sys/arm/rockchip/rk30xx_pmu.c
/freebsd-10-stable/sys/arm/rockchip/rk30xx_pmu.h
/freebsd-10-stable/sys/arm/rockchip/rk30xx_wdog.c
/freebsd-10-stable/sys/arm/rockchip/rk30xx_wdog.h
/freebsd-10-stable/sys/boot/fdt/dts/arm/cubieboard.dts
/freebsd-10-stable/sys/boot/fdt/dts/arm/cubieboard2.dts
/freebsd-10-stable/sys/boot/fdt/dts/arm/rk3188-radxa.dts
/freebsd-10-stable/sys/boot/fdt/dts/arm/rk3188.dtsi
263765 26-Mar-2014 dim

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.

263320 18-Mar-2014 dim

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.

MFC after: 1 week
X-MFC-With: r263313