This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
updating gcc/Makefile.in:s-macro_list sed for make-3.81 in gcc-4.0/gcc-4.1 branches
- From: Mike Frysinger <vapier at gentoo dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 21 Apr 2006 17:58:19 -0400
- Subject: updating gcc/Makefile.in:s-macro_list sed for make-3.81 in gcc-4.0/gcc-4.1 branches
- Geoman: IS A RETARD
the new make-3.81 conforms to POSIX rules when it comes to the use of \ in
single quoted strings ... this breaks the s-macro_list rule in
gcc/Makefile.in as it splits a single quoted string across two lines with a \
and when building with make-3.81 we get this error:
sed: -e expression #1, char 88: unterminated address regex
this has been fixed in trunk/gcc/Makefile.in already, but it looks like the
fix leaked in rather than being properly documented:
http://gcc.gnu.org/viewcvs?rev=112647&view=rev
http://gcc.gnu.org/ml/gcc-patches/2006-04/msg00097.html
patches attached to fix up gcc 4.0 and 4.1 branches ... i left the ChangeLog
empty because i dont really care who gets credited
-mike
--- gcc-4_0-branch/gcc/Makefile.in
+++ gcc-4_0-branch/gcc/Makefile.in
@@ -2819,8 +2819,8 @@ install-gcc-tooldir:
macro_list: s-macro_list; @true
s-macro_list : $(GCC_PASSES)
echo | $(GCC_FOR_TARGET) -E -dM - | \
- sed -n 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p ; \
- s/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
+ sed -n -e 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p' \
+ -e 's/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
sort -u > tmp-macro_list
$(SHELL) $(srcdir)/../move-if-change tmp-macro_list macro_list
$(STAMP) s-macro_list
--- gcc-4_1-branch/gcc/Makefile.in
+++ gcc-4_1-branch/gcc/Makefile.in
@@ -3146,8 +3146,8 @@ install-gcc-tooldir:
macro_list: s-macro_list; @true
s-macro_list : $(GCC_PASSES)
echo | $(GCC_FOR_TARGET) -E -dM - | \
- sed -n 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p ; \
- s/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
+ sed -n -e 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p' \
+ -e 's/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
sort -u > tmp-macro_list
$(SHELL) $(srcdir)/../move-if-change tmp-macro_list macro_list
$(STAMP) s-macro_list