[PATCH] D52080: [ARM] Cleanup ARM CGP isSupportedValue

Volodymyr Sapsai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 17 17:03:40 PDT 2018


vsapsai added a comment.

I've reduced the input causing error to

  typedef _Atomic(_Bool)              atomic_bool;
  
  typedef struct atomic_flag { atomic_bool _Value; } atomic_flag;
  
  _Bool atomic_flag_test_and_set(volatile atomic_flag *object) {
    return __c11_atomic_exchange(&(object)->_Value, 1, __ATOMIC_SEQ_CST);
  }

And clang encounters the fatal error when invoked as

  "bin/clang-8" "-cc1" "-triple" "thumbv6m-apple-unknown-macho" "-emit-obj" "-disable-free" "-static-define" "-mrelocation-model" "static" "-mthread-model" "posix" "-masm-verbose" "-mconstructor-aliases" "-ffreestanding" "-target-cpu" "cortex-m0" "-target-feature" "+soft-float" "-target-feature" "+soft-float-abi" "-target-feature" "-fp-only-sp" "-target-feature" "-d16" "-target-feature" "-vfp2" "-target-feature" "-vfp3" "-target-feature" "-fp16" "-target-feature" "-vfp4" "-target-feature" "-fp-armv8" "-target-feature" "-neon" "-target-feature" "-crypto" "-target-feature" "+strict-align" "-target-abi" "aapcs" "-msoft-float" "-mfloat-abi" "soft" "-fallow-half-arguments-and-returns" "-sys-header-deps" "-D" "NDEBUG" "-Oz" "-Wall" "-ferror-limit" "19" "-fmessage-length" "150" "-fno-signed-char" "-fobjc-runtime=gnustep" "-fdiagnostics-show-option" "-fcolor-diagnostics" "-vectorize-slp" "-x" "c" repro.c

I will revert the commit.


Repository:
  rL LLVM

https://reviews.llvm.org/D52080





More information about the llvm-commits mailing list