This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fixincludes patch: sed -e' -> sed -e '
- To: fixincludes at autogen dot freeservers dot com
- Subject: fixincludes patch: sed -e' -> sed -e '
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Mon, 7 Jun 1999 12:40:48 -0400 (EDT)
- Cc: egcs-patches at egcs dot cygnus dot com
I noticed the following problem in the new fixincludes when
bootstrapping on SunOS4:
> Applying Math_Exception to ./math.h
> Applying Math_Gcc_Ifndefs to ./math.h
> sed: Unrecognized command: -e/define[ ]HUGE_VAL[ ]/a\
> #endif
> Applying Sunos_Matherr_Decl to ./math.h
> Applying Ultrix_Atof_Param to ./math.h
I think the following fixes it. If its okay, it would
probably need to be applied to both the trunk and the 2.95 branch.
--Kaveh
1999-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* fixinc/inclhack.def (math_gcc_ifndefs): Insert whitespace
between sed's -e flag, and the open-quote following it.
diff -rup orig/egcs-CVS19990606/gcc/fixinc/inclhack.def egcs-CVS19990606/gcc/fixinc/inclhack.def
--- orig/egcs-CVS19990606/gcc/fixinc/inclhack.def Fri Jun 4 09:06:26 1999
+++ egcs-CVS19990606/gcc/fixinc/inclhack.def Mon Jun 7 09:44:56 1999
@@ -1042,8 +1042,8 @@ fix = {
"\tthen sed -e '/define[ \t]HUGE_VAL[ \t]DBL_MAX/s/DBL_MAX/$dbl_max_def/'"
"\n\telse cat ; fi |\n"
- "\tsed -e'/define[ \t]HUGE_VAL[ \t]/i\\\n#ifndef HUGE_VAL\n' "
- "-e'/define[ \t]HUGE_VAL[ \t]/a\\\n#endif\n'";
+ "\tsed -e '/define[ \t]HUGE_VAL[ \t]/i\\\n#ifndef HUGE_VAL\n' "
+ "-e '/define[ \t]HUGE_VAL[ \t]/a\\\n#endif\n'";
};