gcc-4.1.1: fix problem with backslash in sed command
[vuplus_openembedded] / packages / gcc / gcc-4.1.1 / sed-fixinc-backslash.patch
1 2006-09-06  Matthias Klose  <doko@debian.org>
2
3         * Makefile.in (s-macro_list): Conform to POSIX rules in single quoted
4         strings.
5
6 --- s/gcc/Makefile.in~  2008-10-18 08:53:56.000000000 +0100
7 +++ s/gcc/Makefile.in   2008-10-18 08:55:16.000000000 +0100
8 @@ -3146,8 +3146,8 @@
9  macro_list: s-macro_list; @true
10  s-macro_list : $(GCC_PASSES) 
11         echo | $(GCC_FOR_TARGET) -E -dM - | \
12 -         sed -n 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p ; \
13 -               s/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
14 +         sed -n -e 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p' \
15 +               -e 's/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
16           sort -u > tmp-macro_list
17         $(SHELL) $(srcdir)/../move-if-change tmp-macro_list macro_list
18         $(STAMP) s-macro_list