diff options
author | Jakub Jelinek <jakub@redhat.com> | 2021-04-26 09:59:15 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2021-05-04 14:24:30 +0200 |
commit | 2b8cc983060099f2bfbb21d42cf1aad4d55d2348 (patch) | |
tree | 69a564ad4839eb0d28c8b5921ea90f5799b411e5 | |
parent | bef3ed832a97b0cdfb540fc5c5dee923ccdc540a (diff) | |
download | gcc-2b8cc983060099f2bfbb21d42cf1aad4d55d2348.zip gcc-2b8cc983060099f2bfbb21d42cf1aad4d55d2348.tar.gz gcc-2b8cc983060099f2bfbb21d42cf1aad4d55d2348.tar.bz2 |
vmsdbgout: Remove useless register keywords
register keyword was removed in C++17, and in vmsdbgout.c it served no
useful purpose.
2021-04-26 Jakub Jelinek <jakub@redhat.com>
PR debug/100255
* vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
register keywords.
(cherry picked from commit 297bfacdb448c0d29b8dfac2818350b90902bc75)
-rw-r--r-- | gcc/vmsdbgout.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/vmsdbgout.c b/gcc/vmsdbgout.c index ad0eac2..472739b 100644 --- a/gcc/vmsdbgout.c +++ b/gcc/vmsdbgout.c @@ -365,13 +365,13 @@ static char text_end_label[MAX_ARTIFICIAL_LABEL_BYTES]; #define ASM_OUTPUT_DEBUG_STRING(FILE,P) \ do \ { \ - register int slen = strlen (P); \ - register const char *p = (P); \ - register int i; \ + int slen = strlen (P); \ + const char *p = (P); \ + int i; \ fprintf (FILE, "\t.ascii \""); \ for (i = 0; i < slen; i++) \ { \ - register int c = p[i]; \ + int c = p[i]; \ if (c == '\"' || c == '\\') \ putc ('\\', FILE); \ if (c >= ' ' && c < 0177) \ @@ -1229,7 +1229,7 @@ vmsdbgout_end_epilogue (unsigned int line, const char *file) a lexical block. */ static void -vmsdbgout_begin_block (register unsigned line, register unsigned blocknum) +vmsdbgout_begin_block (unsigned line, unsigned blocknum) { if (write_symbols == VMS_AND_DWARF2_DEBUG) (*dwarf2_debug_hooks.begin_block) (line, blocknum); @@ -1242,7 +1242,7 @@ vmsdbgout_begin_block (register unsigned line, register unsigned blocknum) lexical block. */ static void -vmsdbgout_end_block (register unsigned line, register unsigned blocknum) +vmsdbgout_end_block (unsigned line, unsigned blocknum) { if (write_symbols == VMS_AND_DWARF2_DEBUG) (*dwarf2_debug_hooks.end_block) (line, blocknum); @@ -1315,8 +1315,8 @@ static unsigned int lookup_filename (const char *file_name) { static unsigned int last_file_lookup_index = 0; - register char *fn; - register unsigned i; + char *fn; + unsigned i; const char *fnam; long long cdt = 0; long ebk = 0; @@ -1405,8 +1405,8 @@ vmsdbgout_write_source_line (unsigned line, const char *filename, } static void -vmsdbgout_source_line (register unsigned line, unsigned int column, - register const char *filename, +vmsdbgout_source_line (unsigned line, unsigned int column, + const char *filename, int discriminator, bool is_stmt) { if (write_symbols == VMS_AND_DWARF2_DEBUG) |