This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, fixincludes]: Add pthread.h to glibc_c99_inline_4 fix
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, GCC Development <gcc at gcc dot gnu dot org>, Marek Polacek <polacek at redhat dot com>, Bruce Korb <bkorb at gnu dot org>
- Date: Tue, 21 Oct 2014 11:35:18 +0200
- Subject: Re: [PATCH, fixincludes]: Add pthread.h to glibc_c99_inline_4 fix
- Authentication-results: sourceware.org; auth=none
- References: <CAFULd4aHsMvVXxmD4jjoNEm0VhuzDdb+3OgM3F42WmTHSySDrg at mail dot gmail dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Oct 21, 2014 at 11:30:49AM +0200, Uros Bizjak wrote:
> At the end of the day, adding pthread.h to glibc_c99_inline_4 fix
> fixes the bootstrap. The fix applies __attribute__((__gnu_inline__))
> to the declaration:
>
> extern __inline __attribute__ ((__gnu_inline__)) void
> __pthread_cleanup_routine (struct __pthread_cleanup_frame *__frame)
>
> 2014-10-21 Uros Bizjak <ubizjak@gmail.com>
>
> * inclhack.def (glibc_c99_inline_4): Add pthread.h to files.
> * fixincl.x: Regenerate.
>
> Bootstrapped and regression tested on CentOS 5.11 x86_64-linux-gnu {,-m32}.
>
> OK for mainline?
Ok, thanks.
> --- inclhack.def (revision 216501)
> +++ inclhack.def (working copy)
> @@ -1687,7 +1687,8 @@
> */
> fix = {
> hackname = glibc_c99_inline_4;
> - files = sys/sysmacros.h, '*/sys/sysmacros.h', wchar.h, '*/wchar.h';
> + files = sys/sysmacros.h, '*/sys/sysmacros.h', wchar.h, '*/wchar.h',
> + pthread.h, '*/pthread.h';
> bypass = "__extern_inline|__gnu_inline__";
> select = "(^| )extern __inline";
> c_fix = format;
Jakub