[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Fixed tests build on EDG-based compilers
From: |
Ilya Kurdyukov |
Subject: |
Re: [PATCH] Fixed tests build on EDG-based compilers |
Date: |
Mon, 6 Dec 2021 23:14:26 +0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 |
On 06.12.2021 22:31, Bruno Haible wrote:
> It sounds like this compiler is *not* the same as the small LCC [1], and
> thus when [2] states the macro __LCC__, they mean [1], not your compiler.
This is a different LCC (but also use __LCC__ macro) and sometimes we
have name collision issues. Recently in OpenModelica.
> Thanks. For Intel cc, we already have a workaround in intprops.h. Can you
> confirm that with your EDG-based LCC, you get the same error for this
case?
Same, but LCC prints only the second error:
lcc: "test.c", line 2: error #59: function call is not allowed in a constant
expression
_Static_assert(__builtin_add_overflow_p (0x7fffffff, 1, 0), "");
^
> If so, I think the right fix will be this one (proposed patch):
> -#if defined __clang__ || defined __ICC
> +#if defined __clang__ || defined __ICC || defined __EDG__
Yes, this patch fixes the issue. Thanks.
- Re: [PATCH] Fixed tests build on EDG-based compilers, Bruno Haible, 2021/12/05
- Re: [PATCH] Fixed tests build on EDG-based compilers, Paul Eggert, 2021/12/06
- Re: [PATCH] Fixed tests build on EDG-based compilers, Илья Курдюков, 2021/12/06
- Re: [PATCH] Fixed tests build on EDG-based compilers, Илья Курдюков, 2021/12/06
- Re: [PATCH] Fixed tests build on EDG-based compilers, Bruno Haible, 2021/12/06
- Re: [PATCH] Fixed tests build on EDG-based compilers,
Ilya Kurdyukov <=
- Re: [PATCH] Fixed tests build on EDG-based compilers, Bruno Haible, 2021/12/06
- Re: [PATCH] Fixed tests build on EDG-based compilers, Paul Eggert, 2021/12/06
- Re: [PATCH] Fixed tests build on EDG-based compilers, Bruno Haible, 2021/12/06
- Re: [PATCH] Fixed tests build on EDG-based compilers, Bruno Haible, 2021/12/06
Re: [PATCH] Fixed tests build on EDG-based compilers, Michael Shigorin, 2021/12/06