[all-commits] [llvm/llvm-project] 6b3351: [test] Add {{.*}} to make tests immune to dso_loca...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Dec 30 20:52:20 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6b3351792c6c9a362a3e8b826bc1d96f8e1918e0
      https://github.com/llvm/llvm-project/commit/6b3351792c6c9a362a3e8b826bc1d96f8e1918e0
  Author: Fangrui Song <i at maskray.me>
  Date:   2020-12-30 (Wed, 30 Dec 2020)

  Changed paths:
    M clang/test/CXX/expr/expr.prim/expr.prim.lambda/blocks-irgen.mm
    M clang/test/CXX/special/class.copy/p3.cpp
    M clang/test/CXX/temp/temp.spec/temp.expl.spec/p14.cpp
    M clang/test/CodeGen/2008-03-05-syncPtr.c
    M clang/test/CodeGen/2008-04-08-NoExceptions.c
    M clang/test/CodeGen/2008-07-22-bitfield-init-after-zero-len-array.c
    M clang/test/CodeGen/2008-08-07-AlignPadding1.c
    M clang/test/CodeGen/2009-10-20-GlobalDebug.c
    M clang/test/CodeGen/64bit-swiftcall.c
    M clang/test/CodeGen/Atomics.c
    M clang/test/CodeGen/PR32874.c
    M clang/test/CodeGen/X86/avx512-reduceMinMaxIntrin.c
    M clang/test/CodeGen/X86/x86-long-double.cpp
    M clang/test/CodeGen/X86/x86-vec-i128.c
    M clang/test/CodeGen/X86/x86_32-arguments-darwin.c
    M clang/test/CodeGen/X86/x86_32-arguments-realign.c
    M clang/test/CodeGen/aarch64-args.cpp
    M clang/test/CodeGen/aarch64-arguments-hfa-v3.c
    M clang/test/CodeGen/aarch64-neon-vget.c
    M clang/test/CodeGen/address-space-field1.c
    M clang/test/CodeGen/address-space.c
    M clang/test/CodeGen/align-param.c
    M clang/test/CodeGen/aligned-sret.c
    M clang/test/CodeGen/annotations-var.c
    M clang/test/CodeGen/arm-aapcs-vfp.c
    M clang/test/CodeGen/arm-arguments.c
    M clang/test/CodeGen/arm-cc.c
    M clang/test/CodeGen/arm-interrupt-attr.c
    M clang/test/CodeGen/arm-swiftcall.c
    M clang/test/CodeGen/arm-target-attr.c
    M clang/test/CodeGen/arm-vector-arguments.c
    M clang/test/CodeGen/arm64-arguments.c
    M clang/test/CodeGen/arm64_32-vaarg.c
    M clang/test/CodeGen/arm64_32.c
    M clang/test/CodeGen/arm64_vcopy.c
    M clang/test/CodeGen/arm64_vdupq_n_f64.c
    M clang/test/CodeGen/armv7k-abi.c
    M clang/test/CodeGen/asm-label.c
    M clang/test/CodeGen/asm-reg-var-local.c
    M clang/test/CodeGen/atomic-arm64.c
    M clang/test/CodeGen/attr-arm-sve-vector-bits-types.c
    M clang/test/CodeGen/attr-disable-tail-calls.c
    M clang/test/CodeGen/attr-func-def.c
    M clang/test/CodeGen/attr-naked.c
    M clang/test/CodeGen/attr-weak-import.c
    M clang/test/CodeGen/available-externally-suppress.c
    M clang/test/CodeGen/block-byref-aggr.c
    M clang/test/CodeGen/builtins.c
    M clang/test/CodeGen/byval-memcpy-elim.c
    M clang/test/CodeGen/c11atomics-ios.c
    M clang/test/CodeGen/complex-indirect.c
    M clang/test/CodeGen/complex-init-list.c
    M clang/test/CodeGen/compound-literal.c
    M clang/test/CodeGen/constructor-attribute.c
    M clang/test/CodeGen/darwin-thread-specifier.c
    M clang/test/CodeGen/disable-tail-calls.c
    M clang/test/CodeGen/exceptions.c
    M clang/test/CodeGen/ext-int-cc.c
    M clang/test/CodeGen/fixed-point-tbaa.c
    M clang/test/CodeGen/func-aligned.c
    M clang/test/CodeGen/func-return-member.c
    M clang/test/CodeGen/incomplete-function-type-2.c
    M clang/test/CodeGen/incomplete-function-type.c
    M clang/test/CodeGen/inline2.c
    M clang/test/CodeGen/integer-overflow.c
    M clang/test/CodeGen/matrix-type-builtins.c
    M clang/test/CodeGen/matrix-type-operators.c
    M clang/test/CodeGen/matrix-type.c
    M clang/test/CodeGen/mms-bitfields.c
    M clang/test/CodeGen/ms-inline-asm-align.c
    M clang/test/CodeGen/ms-inline-asm.c
    M clang/test/CodeGen/ms-inline-asm.cpp
    M clang/test/CodeGen/ms_struct-bitfield.c
    M clang/test/CodeGen/no-bitfield-type-align.c
    M clang/test/CodeGen/no-opt-volatile-memcpy.c
    M clang/test/CodeGen/nonnull.c
    M clang/test/CodeGen/object-size.c
    M clang/test/CodeGen/object-size.cpp
    M clang/test/CodeGen/pass-object-size.c
    M clang/test/CodeGen/pr12251.c
    M clang/test/CodeGen/pragma-pack-1.c
    M clang/test/CodeGen/pragma-visibility.c
    M clang/test/CodeGen/private-extern-redef.c
    M clang/test/CodeGen/restrict.c
    M clang/test/CodeGen/sanitize-atomic-int-overflow.c
    M clang/test/CodeGen/tbaa-class.cpp
    M clang/test/CodeGen/tbaa-vec.cpp
    M clang/test/CodeGen/tbaa.cpp
    M clang/test/CodeGen/trapv.c
    M clang/test/CodeGen/ubsan-builtin-checks.c
    M clang/test/CodeGen/ubsan-pass-object-size.c
    M clang/test/CodeGen/ubsan-pointer-overflow.c
    M clang/test/CodeGen/ubsan-pointer-overflow.m
    M clang/test/CodeGen/ubsan-promoted-arith.cpp
    M clang/test/CodeGen/ubsan-shift.c
    M clang/test/CodeGen/unsigned-overflow.c
    M clang/test/CodeGen/unsigned-promotion.c
    M clang/test/CodeGen/vector.c
    M clang/test/CodeGen/volatile-2.c
    M clang/test/CodeGenCXX/DynArrayInit.cpp
    M clang/test/CodeGenCXX/abstract-class-ctors-dtors.cpp
    M clang/test/CodeGenCXX/address-space-ref.cpp
    M clang/test/CodeGenCXX/alloc-size.cpp
    M clang/test/CodeGenCXX/anonymous-namespaces.cpp
    M clang/test/CodeGenCXX/anonymous-union-member-initializer.cpp
    M clang/test/CodeGenCXX/apple-kext-indirect-call-2.cpp
    M clang/test/CodeGenCXX/apple-kext-indirect-virtual-dtor-call.cpp
    M clang/test/CodeGenCXX/apple-kext-linkage.cpp
    M clang/test/CodeGenCXX/apple-kext.cpp
    M clang/test/CodeGenCXX/arm-swiftcall.cpp
    M clang/test/CodeGenCXX/arm.cpp
    M clang/test/CodeGenCXX/arm64.cpp
    M clang/test/CodeGenCXX/armv7k.cpp
    M clang/test/CodeGenCXX/atomicinit.cpp
    M clang/test/CodeGenCXX/attr-notail.cpp
    M clang/test/CodeGenCXX/bitfield-layout.cpp
    M clang/test/CodeGenCXX/block-byref.cpp
    M clang/test/CodeGenCXX/blocks.cpp
    M clang/test/CodeGenCXX/builtin-bit-cast-no-tbaa.cpp
    M clang/test/CodeGenCXX/builtin-bit-cast.cpp
    M clang/test/CodeGenCXX/c99-variable-length-array.cpp
    M clang/test/CodeGenCXX/condition.cpp
    M clang/test/CodeGenCXX/conditional-temporaries.cpp
    M clang/test/CodeGenCXX/const-init-cxx1y.cpp
    M clang/test/CodeGenCXX/constructor-destructor-return-this.cpp
    M clang/test/CodeGenCXX/constructor-init.cpp
    M clang/test/CodeGenCXX/constructors.cpp
    M clang/test/CodeGenCXX/copy-initialization.cpp
    M clang/test/CodeGenCXX/cxx-apple-kext.cpp
    M clang/test/CodeGenCXX/cxx11-thread-local-reference.cpp
    M clang/test/CodeGenCXX/cxx11-thread-local.cpp
    M clang/test/CodeGenCXX/cxx11-vtable-key-function.cpp
    M clang/test/CodeGenCXX/cxx2a-thread-local-constinit.cpp
    M clang/test/CodeGenCXX/debug-info-inheriting-constructor.cpp
    M clang/test/CodeGenCXX/debug-info-template-member.cpp
    M clang/test/CodeGenCXX/default-arg-temps.cpp
    M clang/test/CodeGenCXX/default-arguments.cpp
    M clang/test/CodeGenCXX/delete.cpp
    M clang/test/CodeGenCXX/derived-to-base-conv.cpp
    M clang/test/CodeGenCXX/derived-to-base.cpp
    M clang/test/CodeGenCXX/destructors.cpp
    M clang/test/CodeGenCXX/eh.cpp
    M clang/test/CodeGenCXX/empty-classes.cpp
    M clang/test/CodeGenCXX/for-range.cpp
    M clang/test/CodeGenCXX/forward-enum.cpp
    M clang/test/CodeGenCXX/global-init.cpp
    M clang/test/CodeGenCXX/inheriting-constructor-cleanup.cpp
    M clang/test/CodeGenCXX/inheriting-constructor.cpp
    M clang/test/CodeGenCXX/inline-functions.cpp
    M clang/test/CodeGenCXX/key-function-vtable.cpp
    M clang/test/CodeGenCXX/lambda-expressions-nested-linkage.cpp
    M clang/test/CodeGenCXX/lambda-expressions.cpp
    M clang/test/CodeGenCXX/lvalue-bitcasts.cpp
    M clang/test/CodeGenCXX/mangle-98.cpp
    M clang/test/CodeGenCXX/mangle-alias-template.cpp
    M clang/test/CodeGenCXX/mangle-exprs.cpp
    M clang/test/CodeGenCXX/mangle-extreme.cpp
    M clang/test/CodeGenCXX/mangle-lambdas.cpp
    M clang/test/CodeGenCXX/mangle-ref-qualifiers.cpp
    M clang/test/CodeGenCXX/mangle-subst-std.cpp
    M clang/test/CodeGenCXX/mangle-subst.cpp
    M clang/test/CodeGenCXX/mangle-system-header.cpp
    M clang/test/CodeGenCXX/mangle.cpp
    M clang/test/CodeGenCXX/matrix-type-builtins.cpp
    M clang/test/CodeGenCXX/matrix-type-operators.cpp
    M clang/test/CodeGenCXX/matrix-type.cpp
    M clang/test/CodeGenCXX/member-expressions.cpp
    M clang/test/CodeGenCXX/member-function-pointer-calls.cpp
    M clang/test/CodeGenCXX/member-functions.cpp
    M clang/test/CodeGenCXX/ms-inline-asm-fields.cpp
    M clang/test/CodeGenCXX/ms_struct.cpp
    M clang/test/CodeGenCXX/no-exceptions.cpp
    M clang/test/CodeGenCXX/no-opt-volatile-memcpy.cpp
    M clang/test/CodeGenCXX/no_destroy.cpp
    M clang/test/CodeGenCXX/noescape.cpp
    M clang/test/CodeGenCXX/noexcept.cpp
    M clang/test/CodeGenCXX/non-const-init-cxx2a.cpp
    M clang/test/CodeGenCXX/partial-destruction.cpp
    M clang/test/CodeGenCXX/pass-object-size.cpp
    M clang/test/CodeGenCXX/pointers-to-data-members.cpp
    M clang/test/CodeGenCXX/pragma-followup_inner.cpp
    M clang/test/CodeGenCXX/pragma-followup_outer.cpp
    M clang/test/CodeGenCXX/reference-cast.cpp
    M clang/test/CodeGenCXX/references.cpp
    M clang/test/CodeGenCXX/rtti-fundamental.cpp
    M clang/test/CodeGenCXX/rtti-layout.cpp
    M clang/test/CodeGenCXX/rtti-linkage.cpp
    M clang/test/CodeGenCXX/runtimecc.cpp
    M clang/test/CodeGenCXX/rvalue-references.cpp
    M clang/test/CodeGenCXX/skip-vtable-pointer-initialization.cpp
    M clang/test/CodeGenCXX/static-member-variable-explicit-specialization.cpp
    M clang/test/CodeGenCXX/strict-vtable-pointers.cpp
    M clang/test/CodeGenCXX/template-instantiation.cpp
    M clang/test/CodeGenCXX/temporaries.cpp
    M clang/test/CodeGenCXX/threadsafe-statics-exceptions.cpp
    M clang/test/CodeGenCXX/threadsafe-statics.cpp
    M clang/test/CodeGenCXX/trivial_abi.cpp
    M clang/test/CodeGenCXX/typeid-cxx11.cpp
    M clang/test/CodeGenCXX/typeid.cpp
    M clang/test/CodeGenCXX/ubsan-bitfields.cpp
    M clang/test/CodeGenCXX/ubsan-global-alignment.cpp
    M clang/test/CodeGenCXX/ubsan-nullability-assign.cpp
    M clang/test/CodeGenCXX/ubsan-suppress-checks.cpp
    M clang/test/CodeGenCXX/ubsan-type-checks.cpp
    M clang/test/CodeGenCXX/ubsan-unreachable.cpp
    M clang/test/CodeGenCXX/uncode-string.cpp
    M clang/test/CodeGenCXX/value-init.cpp
    M clang/test/CodeGenCXX/varargs.cpp
    M clang/test/CodeGenCXX/vector-splat-conversion.cpp
    M clang/test/CodeGenCXX/virtual-bases.cpp
    M clang/test/CodeGenCXX/virtual-destructor-calls.cpp
    M clang/test/CodeGenCXX/virtual-functions-incomplete-types.cpp
    M clang/test/CodeGenCXX/visibility-ms-compat.cpp
    M clang/test/CodeGenCXX/visibility-pr36810.cpp
    M clang/test/CodeGenCXX/vla.cpp
    M clang/test/CodeGenCXX/volatile.cpp
    M clang/test/CodeGenCXX/vtable-align.cpp
    M clang/test/CodeGenCXX/vtable-assume-load.cpp
    M clang/test/CodeGenCXX/vtable-available-externally.cpp
    M clang/test/CodeGenCXX/vtable-pointer-initialization.cpp
    M clang/test/CodeGenCXX/vtt-layout.cpp
    M clang/test/CodeGenCXX/x86_32-arguments.cpp
    M clang/test/CodeGenObjC/2010-02-01-utf16-with-null.m
    M clang/test/CodeGenObjC/arc-blocks.m
    M clang/test/CodeGenObjC/arc-bridged-cast.m
    M clang/test/CodeGenObjC/arc-exceptions.m
    M clang/test/CodeGenObjC/arc-foreach.m
    M clang/test/CodeGenObjC/arc-i386.m
    M clang/test/CodeGenObjC/arc-literals.m
    M clang/test/CodeGenObjC/arc-loadweakretained-release.m
    M clang/test/CodeGenObjC/arc-no-arc-exceptions.m
    M clang/test/CodeGenObjC/arc-precise-lifetime.m
    M clang/test/CodeGenObjC/arc-property.m
    M clang/test/CodeGenObjC/arc-related-result-type.m
    M clang/test/CodeGenObjC/arc-ternary-op.m
    M clang/test/CodeGenObjC/arc-unopt.m
    M clang/test/CodeGenObjC/arc-unsafeclaim.m
    M clang/test/CodeGenObjC/arc-weak.m
    M clang/test/CodeGenObjC/arc-with-atthrow.m
    M clang/test/CodeGenObjC/arc.m
    M clang/test/CodeGenObjC/attr-exception.m
    M clang/test/CodeGenObjC/attr-objc-runtime-visible.m
    M clang/test/CodeGenObjC/autorelease.m
    M clang/test/CodeGenObjC/bitfield-access.m
    M clang/test/CodeGenObjC/block-6.m
    M clang/test/CodeGenObjC/blocks-1.m
    M clang/test/CodeGenObjC/blocks-2.m
    M clang/test/CodeGenObjC/blocks.m
    M clang/test/CodeGenObjC/builtin-constant-p.m
    M clang/test/CodeGenObjC/builtins.m
    M clang/test/CodeGenObjC/class-stubs.m
    M clang/test/CodeGenObjC/constant-string-class.m
    M clang/test/CodeGenObjC/direct-method.m
    M clang/test/CodeGenObjC/disable-tail-call-escaping-block.m
    M clang/test/CodeGenObjC/empty-collection-literals.m
    M clang/test/CodeGenObjC/encode-test-5.m
    M clang/test/CodeGenObjC/encode-test-6.m
    M clang/test/CodeGenObjC/encode-test.m
    M clang/test/CodeGenObjC/exceptions-asm-attribute.m
    M clang/test/CodeGenObjC/exceptions-nonfragile.m
    M clang/test/CodeGenObjC/exceptions.m
    M clang/test/CodeGenObjC/extern-void-class-decl.m
    M clang/test/CodeGenObjC/externally-retained.m
    M clang/test/CodeGenObjC/for-in.m
    M clang/test/CodeGenObjC/fp2ret.m
    M clang/test/CodeGenObjC/fpret.m
    M clang/test/CodeGenObjC/fragile-arc.m
    M clang/test/CodeGenObjC/gc.m
    M clang/test/CodeGenObjC/ivar-invariant.m
    M clang/test/CodeGenObjC/local-static-block.m
    M clang/test/CodeGenObjC/matrix-type-builtins.m
    M clang/test/CodeGenObjC/messages-2.m
    M clang/test/CodeGenObjC/metadata-symbols-64.m
    M clang/test/CodeGenObjC/metadata_symbols.m
    M clang/test/CodeGenObjC/mrc-weak.m
    M clang/test/CodeGenObjC/noescape.m
    M clang/test/CodeGenObjC/nontrivial-c-struct-exception.m
    M clang/test/CodeGenObjC/nontrivial-struct-param-init.m
    M clang/test/CodeGenObjC/ns_consume_null_check.m
    M clang/test/CodeGenObjC/nsvalue-objc-boxable-ios-arc.m
    M clang/test/CodeGenObjC/nsvalue-objc-boxable-ios.m
    M clang/test/CodeGenObjC/nsvalue-objc-boxable-mac-arc.m
    M clang/test/CodeGenObjC/nsvalue-objc-boxable-mac.m
    M clang/test/CodeGenObjC/objc-asm-attribute-test.m
    M clang/test/CodeGenObjC/objc-dispatch-null-check.m
    M clang/test/CodeGenObjC/objc-literal-tests.m
    M clang/test/CodeGenObjC/objc-non-trivial-struct-nrvo.m
    M clang/test/CodeGenObjC/objc2-legacy-dispatch.m
    M clang/test/CodeGenObjC/os_log.m
    M clang/test/CodeGenObjC/parameterized_classes.m
    M clang/test/CodeGenObjC/strong-in-c-struct.m
    M clang/test/CodeGenObjC/synchronized.m
    M clang/test/CodeGenObjC/tentative-cfconstantstring.m
    M clang/test/CodeGenObjC/terminate.m
    M clang/test/CodeGenObjC/ubsan-nonnull-and-nullability.m
    M clang/test/CodeGenObjC/ubsan-nonnull.m
    M clang/test/CodeGenObjC/ubsan-nullability.m
    M clang/test/CodeGenObjC/weak-in-c-struct.m
    M clang/test/CodeGenObjC/weak-metaclass-visibility.m
    M clang/test/CodeGenObjC/x86_64-struct-return-gc.m
    M clang/test/CodeGenObjCXX/arc-attrs.mm
    M clang/test/CodeGenObjCXX/arc-blocks.mm
    M clang/test/CodeGenObjCXX/arc-constexpr.mm
    M clang/test/CodeGenObjCXX/arc-cxx11-init-list.mm
    M clang/test/CodeGenObjCXX/arc-exceptions.mm
    M clang/test/CodeGenObjCXX/arc-move.mm
    M clang/test/CodeGenObjCXX/arc-new-delete.mm
    M clang/test/CodeGenObjCXX/arc-pseudo-destructors.mm
    M clang/test/CodeGenObjCXX/arc-references.mm
    M clang/test/CodeGenObjCXX/arc-special-member-functions.mm
    M clang/test/CodeGenObjCXX/arc-weak.mm
    M clang/test/CodeGenObjCXX/arc.mm
    M clang/test/CodeGenObjCXX/auto-release-result-assert.mm
    M clang/test/CodeGenObjCXX/block-nested-in-lambda.mm
    M clang/test/CodeGenObjCXX/copy.mm
    M clang/test/CodeGenObjCXX/destroy.mm
    M clang/test/CodeGenObjCXX/encode.mm
    M clang/test/CodeGenObjCXX/exception-cxx.mm
    M clang/test/CodeGenObjCXX/exceptions-legacy.mm
    M clang/test/CodeGenObjCXX/exceptions.mm
    M clang/test/CodeGenObjCXX/gc.mm
    M clang/test/CodeGenObjCXX/inheriting-constructor-cleanup.mm
    M clang/test/CodeGenObjCXX/lambda-expressions.mm
    M clang/test/CodeGenObjCXX/lambda-to-block.mm
    M clang/test/CodeGenObjCXX/literals.mm
    M clang/test/CodeGenObjCXX/mangle.mm
    M clang/test/CodeGenObjCXX/mrc-weak.mm
    M clang/test/CodeGenObjCXX/objc-container-subscripting.mm
    M clang/test/CodeGenObjCXX/objc-struct-cxx-abi.mm
    M clang/test/CodeGenObjCXX/personality-abuse.mm
    M clang/test/CodeGenObjCXX/property-dot-copy-elision.mm
    M clang/test/CodeGenObjCXX/property-dot-reference.mm
    M clang/test/CodeGenObjCXX/property-lvalue-lambda.mm
    M clang/test/CodeGenObjCXX/property-objects.mm
    M clang/test/CodeGenObjCXX/references.mm
    M clang/test/CodeGenObjCXX/ubsan-nullability-return-notypeloc.mm
    M clang/test/CodeGenObjCXX/unknown-anytype.mm
    M clang/test/CodeGenOpenCL/addr-space-struct-arg.cl
    M clang/test/CodeGenOpenCL/builtins-f16.cl
    M clang/test/Headers/xmmintrin.c
    M clang/test/Modules/irgen.c
    M clang/test/OpenMP/allocate_codegen.cpp
    M clang/test/OpenMP/for_firstprivate_codegen.cpp
    M clang/test/OpenMP/for_lastprivate_codegen.cpp
    M clang/test/OpenMP/for_linear_codegen.cpp
    M clang/test/OpenMP/for_reduction_codegen.cpp
    M clang/test/OpenMP/master_taskloop_firstprivate_codegen.cpp
    M clang/test/OpenMP/master_taskloop_lastprivate_codegen.cpp
    M clang/test/OpenMP/master_taskloop_private_codegen.cpp
    M clang/test/OpenMP/master_taskloop_simd_firstprivate_codegen.cpp
    M clang/test/OpenMP/master_taskloop_simd_lastprivate_codegen.cpp
    M clang/test/OpenMP/master_taskloop_simd_private_codegen.cpp
    M clang/test/OpenMP/parallel_for_linear_codegen.cpp
    M clang/test/OpenMP/parallel_master_taskloop_firstprivate_codegen.cpp
    M clang/test/OpenMP/parallel_master_taskloop_lastprivate_codegen.cpp
    M clang/test/OpenMP/parallel_master_taskloop_private_codegen.cpp
    M clang/test/OpenMP/parallel_master_taskloop_simd_firstprivate_codegen.cpp
    M clang/test/OpenMP/parallel_master_taskloop_simd_lastprivate_codegen.cpp
    M clang/test/OpenMP/parallel_master_taskloop_simd_private_codegen.cpp
    M clang/test/OpenMP/parallel_reduction_codegen.cpp
    M clang/test/OpenMP/sections_firstprivate_codegen.cpp
    M clang/test/OpenMP/sections_lastprivate_codegen.cpp
    M clang/test/OpenMP/sections_reduction_codegen.cpp
    M clang/test/OpenMP/single_firstprivate_codegen.cpp
    M clang/test/OpenMP/task_codegen.cpp
    M clang/test/OpenMP/task_firstprivate_codegen.cpp
    M clang/test/OpenMP/task_if_codegen.cpp
    M clang/test/OpenMP/task_private_codegen.cpp
    M clang/test/OpenMP/taskloop_firstprivate_codegen.cpp
    M clang/test/OpenMP/taskloop_lastprivate_codegen.cpp
    M clang/test/OpenMP/taskloop_private_codegen.cpp
    M clang/test/OpenMP/taskloop_simd_firstprivate_codegen.cpp
    M clang/test/OpenMP/taskloop_simd_lastprivate_codegen.cpp
    M clang/test/OpenMP/taskloop_simd_private_codegen.cpp
    M clang/test/PCH/arc-blocks.mm
    M clang/test/PCH/chain-external-defs.c
    M clang/test/PCH/external-defs.c
    M clang/test/Profile/c-captured.c
    M clang/test/Profile/c-ternary.c
    M clang/test/SemaCXX/linkage.cpp
    M clang/test/SemaObjC/debugger-support.m

  Log Message:
  -----------
  [test] Add {{.*}} to make tests immune to dso_local/dso_preemptable/(none) differences

For a definition (of most linkage types), dso_local is set for ELF -fno-pic/-fpie
and COFF, but not for Mach-O.  This nuance causes unneeded binary format differences.

This patch replaces (function) `define ` with `define{{.*}} `,
(variable/constant/alias) `= ` with `={{.*}} `, or inserts appropriate `{{.*}} `
if there is an explicit linkage.

* Clang will set dso_local for Mach-O, which is currently implied by TargetMachine.cpp. This will make COFF/Mach-O and executable ELF similar.
* Eventually I hope we can make dso_local the textual LLVM IR default (write explicit "dso_preemptable" when applicable) and -fpic ELF will be similar to everything else. This patch helps move toward that goal.


  Commit: 809a1e0ffd7af40ee27270ff8ba2ffc927330e71
      https://github.com/llvm/llvm-project/commit/809a1e0ffd7af40ee27270ff8ba2ffc927330e71
  Author: Fangrui Song <i at maskray.me>
  Date:   2020-12-30 (Wed, 30 Dec 2020)

  Changed paths:
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/test/CodeGenCXX/const-init.cpp
    M clang/test/CodeGenCXX/linkage.cpp
    M clang/test/CodeGenCXX/type_visibility.cpp
    M clang/test/CodeGenCXX/visibility.cpp

  Log Message:
  -----------
  [CodeGenModule] Set dso_local for Mach-O GlobalValue

* static relocation model: always
* other relocation models: if isStrongDefinitionForLinker

This will make LLVM IR emitted for COFF/Mach-O and executable ELF similar.


Compare: https://github.com/llvm/llvm-project/compare/1d04cbeb4353...809a1e0ffd7a


More information about the All-commits mailing list