File gpc-fix2.patch of Package gcc3

--- p/utils/mk-t-inc.orig       Mon Apr 21 15:50:47 2008
+++ p/utils/mk-t-inc    Mon Apr 21 16:08:09 2008
@@ -71,6 +71,14 @@
 {
   cat "$GCCDIR/tree.def"
   echo 'DEFTREECODE (LAST_AND_UNUSED_C_TREE_CODE, "unused", '"'x', 0)"
-  sed -e '/#ifdef EGCS/,${/#ifdef EGCS/d;/#else/,/#endif/d;}'  "$GCCDIR/p/p-tree.def"
-} | sed -ne ':loop;/\\$/{N;b loop};/^DEFTREECODE/{s,/\*.*\*/,,;s/["'"'"']x["'"'"'].*/'"'x', 0)/;p;};/^#/p"
+  sed -e '/#ifdef EGCS/,${/#ifdef EGCS/d;/#else/,/#endif/d;}' "$GCCDIR/p/p-tree.def"
+} | sed -ne ':loop
+             /\\$/{
+                    N
+                    s/\\\n//
+                    b loop
+                  }
+             /^#\(.*\)/s//{$\1}/p
+             /^DEFTREECODE/{s,/\*.*\*/,,;s/["'"'"']x["'"'"'].*/'"'x'"', 0)/;p;}'
+
 } > "$2" || { rm -f "$2"; false; }
openSUSE Build Service is sponsored by