GCC with patches for Dreamcast
修訂 | 2b8cc983060099f2bfbb21d42cf1aad4d55d2348 (tree) |
---|---|
時間 | 2021-05-04 21:24:30 |
作者 | Jakub Jelinek <jakub@redh...> |
Commiter | Jakub Jelinek |
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)
@@ -365,13 +365,13 @@ static char text_end_label[MAX_ARTIFICIAL_LABEL_BYTES]; | ||
365 | 365 | #define ASM_OUTPUT_DEBUG_STRING(FILE,P) \ |
366 | 366 | do \ |
367 | 367 | { \ |
368 | - register int slen = strlen (P); \ | |
369 | - register const char *p = (P); \ | |
370 | - register int i; \ | |
368 | + int slen = strlen (P); \ | |
369 | + const char *p = (P); \ | |
370 | + int i; \ | |
371 | 371 | fprintf (FILE, "\t.ascii \""); \ |
372 | 372 | for (i = 0; i < slen; i++) \ |
373 | 373 | { \ |
374 | - register int c = p[i]; \ | |
374 | + int c = p[i]; \ | |
375 | 375 | if (c == '\"' || c == '\\') \ |
376 | 376 | putc ('\\', FILE); \ |
377 | 377 | if (c >= ' ' && c < 0177) \ |
@@ -1229,7 +1229,7 @@ vmsdbgout_end_epilogue (unsigned int line, const char *file) | ||
1229 | 1229 | a lexical block. */ |
1230 | 1230 | |
1231 | 1231 | static void |
1232 | -vmsdbgout_begin_block (register unsigned line, register unsigned blocknum) | |
1232 | +vmsdbgout_begin_block (unsigned line, unsigned blocknum) | |
1233 | 1233 | { |
1234 | 1234 | if (write_symbols == VMS_AND_DWARF2_DEBUG) |
1235 | 1235 | (*dwarf2_debug_hooks.begin_block) (line, blocknum); |
@@ -1242,7 +1242,7 @@ vmsdbgout_begin_block (register unsigned line, register unsigned blocknum) | ||
1242 | 1242 | lexical block. */ |
1243 | 1243 | |
1244 | 1244 | static void |
1245 | -vmsdbgout_end_block (register unsigned line, register unsigned blocknum) | |
1245 | +vmsdbgout_end_block (unsigned line, unsigned blocknum) | |
1246 | 1246 | { |
1247 | 1247 | if (write_symbols == VMS_AND_DWARF2_DEBUG) |
1248 | 1248 | (*dwarf2_debug_hooks.end_block) (line, blocknum); |
@@ -1315,8 +1315,8 @@ static unsigned int | ||
1315 | 1315 | lookup_filename (const char *file_name) |
1316 | 1316 | { |
1317 | 1317 | static unsigned int last_file_lookup_index = 0; |
1318 | - register char *fn; | |
1319 | - register unsigned i; | |
1318 | + char *fn; | |
1319 | + unsigned i; | |
1320 | 1320 | const char *fnam; |
1321 | 1321 | long long cdt = 0; |
1322 | 1322 | long ebk = 0; |
@@ -1405,8 +1405,8 @@ vmsdbgout_write_source_line (unsigned line, const char *filename, | ||
1405 | 1405 | } |
1406 | 1406 | |
1407 | 1407 | static void |
1408 | -vmsdbgout_source_line (register unsigned line, unsigned int column, | |
1409 | - register const char *filename, | |
1408 | +vmsdbgout_source_line (unsigned line, unsigned int column, | |
1409 | + const char *filename, | |
1410 | 1410 | int discriminator, bool is_stmt) |
1411 | 1411 | { |
1412 | 1412 | if (write_symbols == VMS_AND_DWARF2_DEBUG) |