diff options
author | Alan Modra <amodra@gmail.com> | 2023-08-26 10:36:54 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-08-26 10:57:00 +0930 |
commit | b8a0c930580775e54bccdfdc77046db74331bad4 (patch) | |
tree | 32dd3fff95f0af843a129e6a9825d93f324f1099 /ld/emultempl/stringify.sed | |
parent | 7b1fdf17d5a812a929e1eccda3cabb52171160e1 (diff) | |
download | gdb-b8a0c930580775e54bccdfdc77046db74331bad4.zip gdb-b8a0c930580775e54bccdfdc77046db74331bad4.tar.gz gdb-b8a0c930580775e54bccdfdc77046db74331bad4.tar.bz2 |
ld STRINGIFY
Delete support for old compilers that don't support string
concatentation.
* Makefile.am (stringify.sed): Delete rule.
(GEN_DEPENDS, DISTCLEANFILES): Adjust.
* configure.ac (STRINGIFY): Delete.
* emultempl/beos.em: Use stringify.sed from srcdir.
* emultempl/elf.em: Likewise.
* emultempl/generic.em: Likewise.
* emultempl/msp430.em: Likewise.
* emultempl/pdp11.em: Likewise.
* emultempl/pe.em: Likewise.
* emultempl/pep.em: Likewise.
* emultempl/stringify.sed: Renamed from..
* emultempl/astring.sed: ..this.
* emultempl/ostring.sed: Delete.
* Makefile.in: Regenerate.
* configure: Regenerate.
Diffstat (limited to 'ld/emultempl/stringify.sed')
-rw-r--r-- | ld/emultempl/stringify.sed | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ld/emultempl/stringify.sed b/ld/emultempl/stringify.sed new file mode 100644 index 0000000..08bd8a6 --- /dev/null +++ b/ld/emultempl/stringify.sed @@ -0,0 +1,13 @@ +s/["\\]/\\&/g +s/$/\\n\\/ +1 s/^/"/ +25s/\\$/"/ +26s/^/"/ +50s/\\$/"/ +51s/^/"/ +75s/\\$/"/ +76s/^/"/ +100s/\\$/"/ +101s/^/"/ +$ s/$/n"/ +$ s/\\n"n"$/\\n"/ |