1
0
Fork 0

Remove usage of register storage specifier

This keywords is only a hint, was used in C in 1970s, but is useless
nowadays. Some reports indicate, that GCC never used it to actually
treat variable as a register.

It was deprecated from C++ in 2009:

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4193.html#809

It was removed from language in C++17, and will likely see new meaning
in some future standard, similar to how 'auto' got replaced in C++11.
This commit is contained in:
Patryk Obara 2020-02-02 02:47:29 +01:00 committed by Patryk Obara
parent 1666275515
commit e7b8d546a4
2 changed files with 5 additions and 5 deletions

View file

@ -112,7 +112,7 @@ return_address:
mov [retval],eax
}
#elif defined (MACOSX)
register Bit32u tempflags=reg_flags & FMASK_TEST;
Bit32u tempflags = reg_flags & FMASK_TEST;
__asm__ volatile (
"pushl %%ebx \n"
"pushl %%ebp \n"
@ -128,7 +128,7 @@ return_address:
);
reg_flags=(reg_flags & ~FMASK_TEST) | (tempflags & FMASK_TEST);
#else
register Bit32u tempflags=reg_flags & FMASK_TEST;
Bit32u tempflags = reg_flags & FMASK_TEST;
__asm__ volatile (
"pushl %%ebp \n"
"pushl $(run_return_adress) \n"