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: [fixincludes, patch] PR30008 - fixes are not applied to files in non-standard locations (was: fixinclude fnmatch patch)


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


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