diff options
author | Martin Liska <mliska@suse.cz> | 2021-09-15 13:52:35 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-09-30 13:45:57 +0200 |
commit | 32bd81eba46a5e992078cee7b87b6227f35ea17b (patch) | |
tree | 53377fc3966e3e7183af2f0fcaf9c3fadabb1653 | |
parent | 09f032c22053f178c802d83a1dea49a0d47c7cc4 (diff) | |
download | gcc-32bd81eba46a5e992078cee7b87b6227f35ea17b.zip gcc-32bd81eba46a5e992078cee7b87b6227f35ea17b.tar.gz gcc-32bd81eba46a5e992078cee7b87b6227f35ea17b.tar.bz2 |
Do not hide asm_out_file in ASM_OUTPUT_ASCII.
gcc/ChangeLog:
* defaults.h (ASM_OUTPUT_ASCII): Do not hide global variable
asm_out_file and stream directly to MYFILE.
-rw-r--r-- | gcc/defaults.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/gcc/defaults.h b/gcc/defaults.h index ba79a8e..04d9bb1 100644 --- a/gcc/defaults.h +++ b/gcc/defaults.h @@ -61,36 +61,35 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #ifndef ASM_OUTPUT_ASCII #define ASM_OUTPUT_ASCII(MYFILE, MYSTRING, MYLENGTH) \ do { \ - FILE *_hide_asm_out_file = (MYFILE); \ + FILE *_my_file = (MYFILE); \ const unsigned char *_hide_p = (const unsigned char *) (MYSTRING); \ int _hide_thissize = (MYLENGTH); \ { \ - FILE *asm_out_file = _hide_asm_out_file; \ const unsigned char *p = _hide_p; \ int thissize = _hide_thissize; \ int i; \ - fprintf (asm_out_file, "\t.ascii \""); \ + fprintf (_my_file, "\t.ascii \""); \ \ for (i = 0; i < thissize; i++) \ { \ int c = p[i]; \ if (c == '\"' || c == '\\') \ - putc ('\\', asm_out_file); \ + putc ('\\', _my_file); \ if (ISPRINT (c)) \ - putc (c, asm_out_file); \ + putc (c, _my_file); \ else \ { \ - fprintf (asm_out_file, "\\%o", c); \ + fprintf (_my_file, "\\%o", c); \ /* After an octal-escape, if a digit follows, \ terminate one string constant and start another. \ The VAX assembler fails to stop reading the escape \ after three digits, so this is the only way we \ can get it to parse the data properly. */ \ if (i < thissize - 1 && ISDIGIT (p[i + 1])) \ - fprintf (asm_out_file, "\"\n\t.ascii \""); \ + fprintf (_my_file, "\"\n\t.ascii \""); \ } \ } \ - fprintf (asm_out_file, "\"\n"); \ + fprintf (_my_file, "\"\n"); \ } \ } \ while (0) |