This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] RFC PR 30915: fixincludes update for gentoo
- From: Bruce Korb <Bruce dot Korb at gmail dot com>
- To: Steven Newbury <s_j_newbury at yahoo dot co dot uk>
- Cc: pinskia at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 21 Aug 2007 10:24:56 -0700
- Subject: Re: [PATCH] RFC PR 30915: fixincludes update for gentoo
- References: <113718.6833.qm@web25005.mail.ukl.yahoo.com>
Steven Newbury wrote:
> I have attached this patch to the bugzilla entry:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30915 but since it is marked
> invalid nothing is going to happen about it. Is it OK?
>
> diff -urN fixincludes.orig/inclhack.def fixincludes/inclhack.def
> --- fixincludes.orig/inclhack.def 2007-07-26 00:51:47.000000000 +0100
> +++ fixincludes/inclhack.def 2007-08-08 00:18:06.129542000 +0100
> @@ -3457,12 +3457,12 @@
> /*
> * Arrange for stdio.h to use stdarg.h to define __gnuc_va_list.
> * On 4BSD-derived systems, stdio.h defers to machine/ansi.h; that's
> - * OK too.
> + * OK too. Gentoo multilib uses a wrapper for stdio.h; skip it.
> */
> fix = {
> hackname = stdio_stdarg_h;
> files = stdio.h;
> - bypass = "include.*(stdarg\.h|machine/ansi\.h)";
> + bypass = "include.*(stdarg\.h|machine/ansi\.h)|gentoo-multilib";
> /*
> * On Solaris 10, this fix is unncessary; <stdio.h> includes
> * <iso/stdio_iso.h>, which includes <sys/va_list.h>.
The "gentoo-multilib" should be within the parentheses and likely spelled
something like this:
bypass = 'include.*(stdarg\.h'
'|machine/ansi\.h'
'|gentoo-multilib/.*/stdio\.h)';
With that change, it looks good to me. - Bruce
P.S. in the previous version, the escapes were processed out before
regcomp() ever saw them. I missed that when first installed.