This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [committed] Fix libsanitizer build against recent glibc (PR sanitizer/81066)
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Matthias Klose <doko at ubuntu dot com>
- Cc: Jakub Jelinek <jakub at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 7 Sep 2017 09:10:16 +0200
- Subject: Re: [committed] Fix libsanitizer build against recent glibc (PR sanitizer/81066)
- Authentication-results: sourceware.org; auth=none
- References: <20170714091416.GA2123@tucnak> <df53a083-189e-f572-f547-384bc898d272@ubuntu.com>
On Thu, Sep 7, 2017 at 9:08 AM, Matthias Klose <doko@ubuntu.com> wrote:
> On 14.07.2017 11:14, Jakub Jelinek wrote:
>> Hi!
>>
>> glibc recently changed a couple of headers. One change was
>> that typedef struct sigaltstack { ... } stack_t; is now
>> typedef struct { ... } stack_t;
>> and the other change is that resolv.h now ignores the former (private glibc
>> macro) __need_res_state macro and after
>> struct __res_state { ... };
>> typedef struct __res_state *res_state;
>> also newly adds
>> extern struct __res_state *__res_state(void) __attribute__ ((__const__));
>> declaration even if that macro is defined.
>>
>> The following patch fixes both of these issues and should work even with
>> older glibcs.
>>
>> Bootstrapped/regtested on x86_64-linux and i686-linux, committed to trunk.
>> Will backport to release branches soon.
>
> This was backported to gcc-7 only. Ok to backport to the gcc-5 and gcc-6 branches?
Yes.
Richard.
> Matthias
>