This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] RFC PR 30915: fixincludes update for gentoo


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]