This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix includehack.def for newer autogen versions
- From: Ismail DÃnmez <ismail at pardus dot org dot tr>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Dave Korn <dave dot korn at artimi dot com>
- Date: Mon, 28 Jan 2008 19:36:46 +0200
- Subject: Re: [PATCH] Fix includehack.def for newer autogen versions
- References: <200801272342.25226.ismail@pardus.org.tr>
Sunday 27 January 2008 23:42:25 tarihinde Ismail DÃnmez ÅunlarÄ yazmÄÅtÄ:
> Hi all,
>
> Looks like newer autogen ( at least 5.9.3 ) requires proper quoting in arch
> definitions. Else it will give parse error as reported by Dave Korn.
> Attached patch fixes this.
>
> I didn't yet receive copyright assignment papers but patch is obvious
> enough.
Now with proper ChangeLog,
fixincludes/Changelog
2008-01-28 Äsmail DÃnmez <>
* inclhack.def: Properly quote arch definitions
OK for trunk?
--
Never learn by your mistakes, if you do you may never dare to try again.
diff --git a/fixincludes/ChangeLog b/fixincludes/ChangeLog
index 7916879..dc12134 100644
--- a/fixincludes/ChangeLog
+++ b/fixincludes/ChangeLog
@@ -1,3 +1,7 @@
+2008-01-28 Äsmail DÃnmez <ismail@pardus.org.tr>
+
+ * inclhack.def: Properly quote arch definitions
+
2008-01-06 Hans-Peter Nilsson <hp@axis.com>
Revert last change.
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def
index 75f8347..aa74a92 100644
--- a/fixincludes/inclhack.def
+++ b/fixincludes/inclhack.def
@@ -1085,8 +1085,8 @@ fix = {
*/
fix = {
hackname = bsd_stdio_attrs_conflict;
- mach = *-*-*bsd*;
- mach = *-*-*darwin*;
+ mach = "*-*-*bsd*";
+ mach = "*-*-*darwin*";
files = stdio.h;
select = "^#define[ \t]*vfscanf[ \t]*__svfscanf[ \t]*$";
c_fix = format;
@@ -1303,7 +1303,7 @@ fix = {
*/
fix = {
hackname = freebsd_gcc3_breakage;
- mach = *-*-freebsd*;
+ mach = "*-*-freebsd*";
files = sys/cdefs.h;
select = '^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7$';
bypass = '__GNUC__[ \t]*([>=]=[ \t]*[3-9]|>[ \t]*2)';
@@ -1320,7 +1320,7 @@ fix = {
*/
fix = {
hackname = freebsd_gcc4_breakage;
- mach = *-*-freebsd*;
+ mach = "*-*-freebsd*";
files = sys/cdefs.h;
select = '^#if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 \|\| __GNUC__ == 3$';
c_fix = format;
@@ -1586,7 +1586,7 @@ fix = {
fix = {
hackname = hppa_hpux_fp_macros;
- mach = hppa*-hp-hpux11*;
+ mach = "hppa*-hp-hpux11*";
files = math.h;
select = "#[ \t]*define[ \t]*FP_NORMAL.*\n"
"#[ \t]*define[ \t]*FP_ZERO.*\n"
@@ -1695,7 +1695,7 @@ fix = {
*/
fix = {
hackname = hpux11_abs;
- mach = ia64-hp-hpux11*;
+ mach = "ia64-hp-hpux11*";
files = stdlib.h;
select = "ifndef _MATH_INCLUDED";
c_fix = format;
@@ -2637,7 +2637,7 @@ fix = {
*/
fix = {
hackname = netbsd_c99_inline_1;
- mach = *-*-netbsd*;
+ mach = "*-*-netbsd*";
files = signal.h;
select = "extern __inline int";
@@ -2650,7 +2650,7 @@ fix = {
fix = {
hackname = netbsd_c99_inline_2;
- mach = *-*-netbsd*;
+ mach = "*-*-netbsd*";
files = signal.h;
select = "#define _SIGINLINE extern __inline";
@@ -2672,7 +2672,7 @@ fix = {
*/
fix = {
hackname = netbsd_extra_semicolon;
- mach = *-*-netbsd*;
+ mach = "*-*-netbsd*";
files = sys/cdefs.h;
select = "#define[ \t]*__END_DECLS[ \t]*};";