[fixincludes, patch] PR30008 - fixes are not applied to files in non-standard locations (was: fixinclude fnmatch patch)

Daniel Franke franke.daniel@gmail.com
Sat Jan 6 14:44:00 GMT 2007


: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?

	Daniel


[1] http://gcc.gnu.org/ml/gcc-patches/2006-12/msg01653.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr30008.diff
Type: text/x-diff
Size: 8706 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070106/98b78489/attachment.bin>


More information about the Gcc-patches mailing list