X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=bfd%2Ftargmatch.sed;h=2716876547467d122ad1347022296c6f1eef8616;hb=63ff5125e3094d30b4840116503dc24c414b6ff8;hp=9effbd579fdcc06331092a4389170807844b4e20;hpb=e98fe4f7b54cbdf29aef9287bbb1bea8801dd05a;p=binutils-gdb.git diff --git a/bfd/targmatch.sed b/bfd/targmatch.sed index 9effbd579fd..27168765474 100644 --- a/bfd/targmatch.sed +++ b/bfd/targmatch.sed @@ -1,5 +1,6 @@ 1,/START OF targmatch.h/ d /END OF targmatch.h/,$ d +/^[ ]*case/,/^[ ]*esac/ d s/^#if/KEEP #if/ s/^#endif/KEEP #endif/ s/^[ ]*#.*$// @@ -20,9 +21,13 @@ H d :lab3 G -s/\(defined (HAVE_\)\([^)]*\)\(.*\n*.*\n*.*\n*.*\)/\1\2\3\ +s/\n/%EOL%/g +s/\(defined (HAVE_\)\([^)]*\)\(.*\)/\1\2\3\ \&\2 },\ #endif/ +s/%EOL%/\ +/g p -s/.*\n*.*\n*.*\n*.*//g +s/.*//g +s/\n//g h