[PATCH] D140695: [M68k] Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP macros

Min-Yih Hsu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 28 15:29:05 PST 2022


myhsu requested changes to this revision.
myhsu added a comment.
This revision now requires changes to proceed.

In D140695#4018127 <https://reviews.llvm.org/D140695#4018127>, @0x59616e wrote:

> FYI the pre-merge checks seem to have some issues. Here is the output:
>
>   Command Output (stderr):
>   --
>   /var/lib/buildkite-agent/builds/llvm-project/clang/test/Preprocessor/predefined-arch-macros.c:4322:28: error: CHECK_M68K_GCC_ATOMICS: expected string not found in input
>   // CHECK_M68K_GCC_ATOMICS: #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1
>                              ^
>   <stdin>:1:1: note: scanning from here
>   #define _ILP32 1
>   ^
>   <stdin>:62:1: note: possible intended match here
>   #define __GCC_ATOMIC_CHAR_LOCK_FREE 1
>   ^
>    
>   Input file: <stdin>
>   Check file: /var/lib/buildkite-agent/builds/llvm-project/clang/test/Preprocessor/predefined-arch-macros.c
>    
>   -dump-input=help explains the following input dump.
>    
>   Input was:
>   <<<<<<
>                 1: #define _ILP32 1
>   check:4322'0     X~~~~~~~~~~~~~~~~ error: no match found
>                 2: #define __ATOMIC_ACQUIRE 2
>   check:4322'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
>                 3: #define __ATOMIC_ACQ_REL 4
>   check:4322'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
>                 4: #define __ATOMIC_CONSUME 1
>   check:4322'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
>                 5: #define __ATOMIC_RELAXED 0
>   check:4322'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
>                 6: #define __ATOMIC_RELEASE 3
>   check:4322'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
>                 .
>                 .
>                 .
>                57: #define __FLT_MIN__ 1.17549435e-38F
>   check:4322'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>                58: #define __FLT_RADIX__ 2
>   check:4322'0     ~~~~~~~~~~~~~~~~~~~~~~~~
>                59: #define __GCC_ATOMIC_BOOL_LOCK_FREE 1
>   check:4322'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>                60: #define __GCC_ATOMIC_CHAR16_T_LOCK_FREE 1
>   check:4322'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>                61: #define __GCC_ATOMIC_CHAR32_T_LOCK_FREE 1
>   check:4322'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>                62: #define __GCC_ATOMIC_CHAR_LOCK_FREE 1
>   check:4322'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>   check:4322'1     ?                                      possible intended match
>                63: #define __GCC_ATOMIC_INT_LOCK_FREE 1
>   check:4322'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>                64: #define __GCC_ATOMIC_LLONG_LOCK_FREE 1
>   check:4322'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>                65: #define __GCC_ATOMIC_LONG_LOCK_FREE 1
>   check:4322'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>                66: #define __GCC_ATOMIC_POINTER_LOCK_FREE 1
>   check:4322'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>                67: #define __GCC_ATOMIC_SHORT_LOCK_FREE 1
>   check:4322'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>                 .
>                 .
>                 .
>   >>>>>>
>    
>   --

This is probably caused by the fact that you didn't use CPU later than 68020. Please update your test.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140695/new/

https://reviews.llvm.org/D140695



More information about the cfe-commits mailing list