This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [fixincludes, patch] PR30008 - fixes are not applied to files in non-standard locations (was: fixinclude fnmatch patch)
- From: Bruce Korb <bkorb at gnu dot org>
- To: Daniel Franke <franke dot daniel at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 06 Jan 2007 09:34:07 -0800
- Subject: Re: [fixincludes, patch] PR30008 - fixes are not applied to files in non-standard locations (was: fixinclude fnmatch patch)
- References: <200701061544.14147.franke.daniel@gmail.com>
- Reply-to: bkorb at gnu dot org
Daniel Franke wrote:
> :ADDPATCH fixincludes:
>
> Some distributions store files that need fixing in non-standard locations.
> Instead of enumerating those locations, this patch allows for wildcards in
> the files-section of hacks, e.g.
>
> files = "*features.h"
>
> to match "features.h", "foo/features.h" or "foo/bar/../features.h".
>
> Bootstrapped and regtested on x86_64-pc-linux-gnu and i686-pc-linux-gnu.
>
>
> Most of the attached patch was provided by Bruce Korb [1], I only contributed
> some minor fixes.
>
> 2007-01-05 Bruce Korb <bkorb@gnu.org>,
> Daniel Franke <franke.daniel@gmail.com>
>
> PR target/30008
> * fixincl.tpl: ? (Bruce?)
> * fixincl.c (fix_applies, machine_matches): Use fnmatch for pattern matching.
> * fixincl.x: Regenerate.
> * inclhack.def (glibc_c99_inline_[1234], broken_cabs, broken_nan,
> kandr_concat, sco_math): Replace lists of specfic file names by search
> patterns.
>
>
> The patch does not include the changes to the generated file fixincl.x, anyone
> applying the patch has to regenerate that file.
>
> Ok for trunk?
I was just sitting down to do this. I want to tweak the patch a bit,
so I will do that, sanity check and commit it today. Thank you.
Regards, Bruce