bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] diffseq: port to clang 18.1.6 in ‘patch’


From: Bruno Haible
Subject: Re: [PATCH] diffseq: port to clang 18.1.6 in ‘patch’
Date: Sat, 24 Aug 2024 18:05:49 +0200

Hi Paul,

> -#if 4 <= __GNUC__ + (7 <= __GNUC_MINOR__)
> +#if 4 <= __GNUC__ + (7 <= __GNUC_MINOR__) && !__clang__

Why is this needed? clang 18 still masquerades as a GCC 4.2.1 compatible
compiler:

$ : | clang -E -dM - | grep __GNUC_
#define __GNUC_MINOR__ 2
#define __GNUC_PATCHLEVEL__ 1
#define __GNUC_STDC_INLINE__ 1
#define __GNUC__ 4

So, when we have a conditional that tests for GCC >= 4.7 or 10 or 14,
we don't need to exclude clang, because it's already excluded.

Or am missing something?

Bruno






reply via email to

[Prev in Thread] Current Thread [Next in Thread]