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]

fixincludes patch: sed -e' -> sed -e '


	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'";
 };
 
 


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