Skip to content

Commit 13be21f

Browse files
hcahcaVasily Gorbik
authored andcommitted
s390/atomic_ops: Disable flag outputs constraint for GCC versions below 14.2.0
GCC may die with an ICE if the flag outputs constraint is used in combination with other inline assemblies. This will be fixed with GCC 14.2.0. Therefore disable the use of the constraint for now. Link: https://gcc.gnu.org/git?p=gcc.git;a=commit;h=cd11413ff7c4353a3e336db415304f788d23a393 Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Sven Schnelle <svens@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
1 parent fc8eac3 commit 13be21f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

arch/s390/include/asm/atomic_ops.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ static __always_inline long __atomic64_cmpxchg(long *ptr, long old, long new)
188188
return old;
189189
}
190190

191-
#ifdef __GCC_ASM_FLAG_OUTPUTS__
191+
/* GCC versions before 14.2.0 may die with an ICE in some configurations. */
192+
#if defined(__GCC_ASM_FLAG_OUTPUTS__) && !(IS_ENABLED(CONFIG_CC_IS_GCC) && (GCC_VERSION < 140200))
192193

193194
static __always_inline bool __atomic_cmpxchg_bool(int *ptr, int old, int new)
194195
{

0 commit comments

Comments
 (0)