[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] careadlinkat: fix GCC 10 workaround
From: |
Jeffrey Walton |
Subject: |
Re: [PATCH] careadlinkat: fix GCC 10 workaround |
Date: |
Mon, 17 Aug 2020 13:42:24 -0400 |
On Mon, Aug 17, 2020 at 12:43 PM Paul Eggert <eggert@cs.ucla.edu> wrote:
>
> On 8/17/20 9:34 AM, Jeffrey Walton wrote:
> > # pragma GCC diagnostic ignored "-Wreturn-local-addr"
>
> Unfortunately this doesn't work because GCC 10.1 and 10.2 mistakenly ignore
> the
> pragma. This is mentioned in a comment in the careadlinkat.c source, which
> cites
> GCC bug 95044, a duplicate of:
>
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93644
GCC seems to have a lot of trouble with diagnostic pragmas:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53431.
I believe they work as expected with Clang.
Jeff