[PATCH] Remove the -cxx-abi command-line option
Hans Wennborg
hans at chromium.org
Mon Jan 13 17:07:36 PST 2014
Hi rnk,
This removes the -cxx-abi flag and makes the ABI depend just on the triple. It doesn't make sense to compile with "-triple i686-pc-win32 -cxx-abi itanium", so there's no need for this extra knob.
To be able to run a test with a specific ABI without constraining it to a specific triple, new substitutions are added to lit: %itanium_abi_triple and %ms_abi_triple can be used to get the current target triple adjusted to the desired ABI. For example, if the test suite is running with i686-pc-win32 target, %itanium_abi_triple will expand to i686-pc-mingw32.
Apologies for the large number of test updates. It's mostly mechanical, though :)
http://llvm-reviews.chandlerc.com/D2545
Files:
include/clang/Driver/CC1Options.td
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
test/CXX/dcl.dcl/dcl.link/p7.cpp
test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p2.cpp
test/CXX/drs/dr2xx.cpp
test/CXX/special/class.copy/implicit-move-def.cpp
test/CXX/special/class.dtor/p3-0x.cpp
test/CXX/special/class.dtor/p9.cpp
test/CodeGen/builtin-ms-noop.cpp
test/CodeGen/captured-statements.c
test/CodeGen/cxx-default-arg.cpp
test/CodeGen/fp-contract-pragma.cpp
test/CodeGen/mangle-windows.c
test/CodeGen/overloadable.c
test/CodeGen/tbaa-for-vptr.cpp
test/CodeGen/tbaa-ms-abi.cpp
test/CodeGenCUDA/filter-decl.cu
test/CodeGenCXX/2003-11-27-MultipleInheritanceThunk.cpp
test/CodeGenCXX/2004-03-08-ReinterpretCastCopy.cpp
test/CodeGenCXX/2004-03-09-UnmangledBuiltinMethods.cpp
test/CodeGenCXX/2006-09-12-OpaqueStructCrash.cpp
test/CodeGenCXX/2010-05-11-alwaysinlineinstantiation.cpp
test/CodeGenCXX/PR5093-static-member-function.cpp
test/CodeGenCXX/PR5863-unreachable-block.cpp
test/CodeGenCXX/address-of-fntemplate.cpp
test/CodeGenCXX/attr-cleanup.cpp
test/CodeGenCXX/attr-used.cpp
test/CodeGenCXX/block-byref-cxx-objc.cpp
test/CodeGenCXX/block.cpp
test/CodeGenCXX/c-linkage.cpp
test/CodeGenCXX/captured-statements.cpp
test/CodeGenCXX/const-base-cast.cpp
test/CodeGenCXX/const-global-linkage.cpp
test/CodeGenCXX/constructor-attr.cpp
test/CodeGenCXX/constructor-destructor-return-this.cpp
test/CodeGenCXX/constructor-init-reference.cpp
test/CodeGenCXX/copy-assign-synthesis-2.cpp
test/CodeGenCXX/copy-constructor-synthesis-2.cpp
test/CodeGenCXX/coverage.cpp
test/CodeGenCXX/cxx0x-defaulted-templates.cpp
test/CodeGenCXX/cxx11-noreturn.cpp
test/CodeGenCXX/cxx11-unrestricted-union.cpp
test/CodeGenCXX/debug-info-char16.cpp
test/CodeGenCXX/debug-info-enum.cpp
test/CodeGenCXX/debug-info-global-ctor-dtor.cpp
test/CodeGenCXX/debug-info-method.cpp
test/CodeGenCXX/debug-info-same-line.cpp
test/CodeGenCXX/debug-info-template-limit.cpp
test/CodeGenCXX/debug-info-thunk.cpp
test/CodeGenCXX/debug-info-use-after-free.cpp
test/CodeGenCXX/debug-info-uuid.cpp
test/CodeGenCXX/default-constructor-default-argument.cpp
test/CodeGenCXX/default-constructor-template-member.cpp
test/CodeGenCXX/default-destructor-nested.cpp
test/CodeGenCXX/deferred-global-init.cpp
test/CodeGenCXX/delayed-template-parsing.cpp
test/CodeGenCXX/derived-to-virtual-base-class-calls-final.cpp
test/CodeGenCXX/destructor-exception-spec.cpp
test/CodeGenCXX/duplicate-mangled-name.cpp
test/CodeGenCXX/dynamic_cast-no-rtti.cpp
test/CodeGenCXX/elide-call-reference.cpp
test/CodeGenCXX/extern-c.cpp
test/CodeGenCXX/function-template-explicit-specialization.cpp
test/CodeGenCXX/function-template-specialization.cpp
test/CodeGenCXX/global-llvm-constant.cpp
test/CodeGenCXX/implicit-instantiation-1.cpp
test/CodeGenCXX/instr-profile.cpp
test/CodeGenCXX/instrument-functions.cpp
test/CodeGenCXX/internal-linkage.cpp
test/CodeGenCXX/mangle-abi-examples.cpp
test/CodeGenCXX/mangle-address-space.cpp
test/CodeGenCXX/mangle-local-class-names.cpp
test/CodeGenCXX/mangle-local-class-vtables.cpp
test/CodeGenCXX/mangle-local-classes-nested.cpp
test/CodeGenCXX/mangle-ms-abi-examples.cpp
test/CodeGenCXX/mangle-ms-arg-qualifiers.cpp
test/CodeGenCXX/mangle-ms-back-references-pr13207.cpp
test/CodeGenCXX/mangle-ms-back-references.cpp
test/CodeGenCXX/mangle-ms-cxx11.cpp
test/CodeGenCXX/mangle-ms-return-qualifiers.cpp
test/CodeGenCXX/mangle-ms-template-callback.cpp
test/CodeGenCXX/mangle-ms-templates.cpp
test/CodeGenCXX/mangle-ms-vector-types.cpp
test/CodeGenCXX/mangle-ms.cpp
test/CodeGenCXX/mangle-nullptr-arg.cpp
test/CodeGenCXX/mangle-std-externc.cpp
test/CodeGenCXX/mangle-template.cpp
test/CodeGenCXX/mangle-windows.cpp
test/CodeGenCXX/member-alignment.cpp
test/CodeGenCXX/microsoft-abi-alignment-fail.cpp
test/CodeGenCXX/microsoft-abi-arg-order.cpp
test/CodeGenCXX/microsoft-abi-array-cookies.cpp
test/CodeGenCXX/microsoft-abi-constexpr-vs-inheritance.cpp
test/CodeGenCXX/microsoft-abi-default-cc.cpp
test/CodeGenCXX/microsoft-abi-exceptions.cpp
test/CodeGenCXX/microsoft-abi-member-pointers.cpp
test/CodeGenCXX/microsoft-abi-methods.cpp
test/CodeGenCXX/microsoft-abi-multiple-nonvirtual-inheritance.cpp
test/CodeGenCXX/microsoft-abi-non-virtual-base-ordering.cpp
test/CodeGenCXX/microsoft-abi-sret-and-byval.cpp
test/CodeGenCXX/microsoft-abi-static-initializers.cpp
test/CodeGenCXX/microsoft-abi-structors-alias.cpp
test/CodeGenCXX/microsoft-abi-structors.cpp
test/CodeGenCXX/microsoft-abi-thunks.cpp
test/CodeGenCXX/microsoft-abi-vbtables.cpp
test/CodeGenCXX/microsoft-abi-virtual-inheritance-vtordisps.cpp
test/CodeGenCXX/microsoft-abi-virtual-inheritance.cpp
test/CodeGenCXX/microsoft-abi-virtual-member-pointers.cpp
test/CodeGenCXX/microsoft-abi-vtables-multiple-nonvirtual-inheritance.cpp
test/CodeGenCXX/microsoft-abi-vtables-return-thunks.cpp
test/CodeGenCXX/microsoft-abi-vtables-single-inheritance.cpp
test/CodeGenCXX/microsoft-abi-vtables-virtual-inheritance-vtordisps.cpp
test/CodeGenCXX/microsoft-abi-vtables-virtual-inheritance.cpp
test/CodeGenCXX/microsoft-new.cpp
test/CodeGenCXX/microsoft-uuidof.cpp
test/CodeGenCXX/ms-integer-static-data-members.cpp
test/CodeGenCXX/ms_wide_predefined_expr.cpp
test/CodeGenCXX/noinline-template.cpp
test/CodeGenCXX/pr11797.cpp
test/CodeGenCXX/pr12104.cpp
test/CodeGenCXX/pr9965.cpp
test/CodeGenCXX/pragma-weak.cpp
test/CodeGenCXX/predefined-expr.cpp
test/CodeGenCXX/reference-field.cpp
test/CodeGenCXX/reference-init.cpp
test/CodeGenCXX/return.cpp
test/CodeGenCXX/scoped-enums.cpp
test/CodeGenCXX/specialized-static-data-mem-init.cpp
test/CodeGenCXX/stmtexpr.cpp
test/CodeGenCXX/template-dependent-bind-temporary.cpp
test/CodeGenCXX/template-inner-struct-visibility-hidden.cpp
test/CodeGenCXX/throw-expression-dtor.cpp
test/CodeGenCXX/thunk-use-after-free.cpp
test/CodeGenCXX/trivial-constructor-init.cpp
test/CodeGenCXX/vararg-non-pod.cpp
test/CodeGenCXX/virt-dtor-gen.cpp
test/CodeGenCXX/virt-dtor-key.cpp
test/CodeGenCXX/virt-template-vtable.cpp
test/CodeGenCXX/virtual-base-cast.cpp
test/CodeGenCXX/virtual-base-ctor.cpp
test/CodeGenCXX/virtual-base-destructor-call.cpp
test/CodeGenCXX/virtual-destructor-synthesis.cpp
test/CodeGenCXX/virtual-function-calls.cpp
test/CodeGenCXX/virtual-implicit-copy-assignment.cpp
test/CodeGenCXX/virtual-implicit-move-assignment.cpp
test/CodeGenCXX/virtual-inherited-destructor.cpp
test/CodeGenCXX/virtual-pseudo-destructor-call.cpp
test/CodeGenCXX/visibility-hidden-extern-templates.cpp
test/CodeGenCXX/volatile-1.cpp
test/CodeGenCXX/vtable-cast-crash.cpp
test/CodeGenCXX/weak-extern-typeinfo.cpp
test/CodeGenCXX/weak-external.cpp
test/CodeGenObjC/debug-info-self.m
test/CodeGenObjC/overloadable.m
test/CodeGenObjCXX/arc-mangle.mm
test/CodeGenObjCXX/microsoft-abi-arc-param-order.mm
test/CodeGenOpenCL/address-spaces-mangling.cl
test/CodeGenOpenCL/local.cl
test/Driver/cl.c
test/Layout/ms-x86-alias-avoidance-padding.cpp
test/Layout/ms-x86-aligned-tail-padding.cpp
test/Layout/ms-x86-basic-layout.cpp
test/Layout/ms-x86-bitfields-vbases.cpp
test/Layout/ms-x86-empty-base-after-base-with-vbptr.cpp
test/Layout/ms-x86-empty-nonvirtual-bases.cpp
test/Layout/ms-x86-empty-virtual-base.cpp
test/Layout/ms-x86-lazy-empty-nonvirtual-base.cpp
test/Layout/ms-x86-misalignedarray.cpp
test/Layout/ms-x86-pack-and-align.cpp
test/Layout/ms-x86-primary-bases.cpp
test/Layout/ms-x86-size-alignment-fail.cpp
test/Layout/ms-x86-vfvb-alignment.cpp
test/Layout/ms-x86-vfvb-sharing.cpp
test/Layout/ms-x86-vtordisp.cpp
test/PCH/cxx-reference.cpp
test/PCH/cxx-required-decls.cpp
test/PCH/cxx-templates.cpp
test/PCH/irgen-rdar13114142.mm
test/PCH/objc_literals.mm
test/PCH/objcxx-ivar-class.mm
test/Sema/empty1.c
test/Sema/ms_bitfield_layout.c
test/Sema/ms_class_layout.cpp
test/SemaCXX/calling-conv-compat.cpp
test/SemaCXX/decl-microsoft-call-conv.cpp
test/SemaCXX/destructor.cpp
test/SemaCXX/implicit-virtual-member-functions.cpp
test/SemaCXX/member-pointer-ms.cpp
test/SemaCXX/microsoft-dtor-lookup-cxx11.cpp
test/SemaCXX/microsoft-dtor-lookup.cpp
test/SemaCXX/primary-base.cpp
test/SemaCXX/typeid-ref.cpp
test/SemaCXX/undefined-internal.cpp
test/SemaCXX/virtual-base-used.cpp
test/SemaCXX/virtual-override-x86.cpp
test/SemaCXX/virtual-override.cpp
test/SemaCXX/warn-reinterpret-base-class.cpp
test/SemaCXX/warn-weak-vtables.cpp
test/SemaObjCXX/microsoft-abi-byval.mm
test/SemaTemplate/inject-templated-friend-post.cpp
test/SemaTemplate/inject-templated-friend.cpp
test/SemaTemplate/instantiate-complete.cpp
test/SemaTemplate/instantiate-exception-spec-cxx11.cpp
test/SemaTemplate/virtual-member-functions.cpp
test/lit.cfg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2545.1.patch
Type: text/x-patch
Size: 129088 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140113/4512efe4/attachment.bin>
More information about the cfe-commits
mailing list