• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GCC with patches for Dreamcast


Commit MetaInfo

修訂2b8cc983060099f2bfbb21d42cf1aad4d55d2348 (tree)
時間2021-05-04 21:24:30
作者Jakub Jelinek <jakub@redh...>
CommiterJakub Jelinek

Log Message

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)

Change Summary

差異

--- a/gcc/vmsdbgout.c
+++ b/gcc/vmsdbgout.c
@@ -365,13 +365,13 @@ static char text_end_label[MAX_ARTIFICIAL_LABEL_BYTES];
365365 #define ASM_OUTPUT_DEBUG_STRING(FILE,P) \
366366 do \
367367 { \
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; \
371371 fprintf (FILE, "\t.ascii \""); \
372372 for (i = 0; i < slen; i++) \
373373 { \
374- register int c = p[i]; \
374+ int c = p[i]; \
375375 if (c == '\"' || c == '\\') \
376376 putc ('\\', FILE); \
377377 if (c >= ' ' && c < 0177) \
@@ -1229,7 +1229,7 @@ vmsdbgout_end_epilogue (unsigned int line, const char *file)
12291229 a lexical block. */
12301230
12311231 static void
1232-vmsdbgout_begin_block (register unsigned line, register unsigned blocknum)
1232+vmsdbgout_begin_block (unsigned line, unsigned blocknum)
12331233 {
12341234 if (write_symbols == VMS_AND_DWARF2_DEBUG)
12351235 (*dwarf2_debug_hooks.begin_block) (line, blocknum);
@@ -1242,7 +1242,7 @@ vmsdbgout_begin_block (register unsigned line, register unsigned blocknum)
12421242 lexical block. */
12431243
12441244 static void
1245-vmsdbgout_end_block (register unsigned line, register unsigned blocknum)
1245+vmsdbgout_end_block (unsigned line, unsigned blocknum)
12461246 {
12471247 if (write_symbols == VMS_AND_DWARF2_DEBUG)
12481248 (*dwarf2_debug_hooks.end_block) (line, blocknum);
@@ -1315,8 +1315,8 @@ static unsigned int
13151315 lookup_filename (const char *file_name)
13161316 {
13171317 static unsigned int last_file_lookup_index = 0;
1318- register char *fn;
1319- register unsigned i;
1318+ char *fn;
1319+ unsigned i;
13201320 const char *fnam;
13211321 long long cdt = 0;
13221322 long ebk = 0;
@@ -1405,8 +1405,8 @@ vmsdbgout_write_source_line (unsigned line, const char *filename,
14051405 }
14061406
14071407 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,
14101410 int discriminator, bool is_stmt)
14111411 {
14121412 if (write_symbols == VMS_AND_DWARF2_DEBUG)