ALL: Remove obsolete register keyword
The register keyword was deprecated from the C++11 standard, <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4193.html#809>, and removed from the C++17 standard, <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4340>, so cannot exist in a well-formed C++17 program. It has never done anything in GCC <https://gcc.gnu.org/ml/gcc/2010-05/msg00113.html> and because of the way it is specified in the standard, it is “as meaningful as whitespace” <http://www.drdobbs.com/keywords-that-arent-or-comments-by-anoth/184403859>. The one remaining use of the register keyword is in the DS backend, where it is used to create a local register variable using the non-standard GCC Extended Asm feature. Closes gh-1079.
This commit is contained in:
parent
ef33d8a2fb
commit
a5bc89102e
21 changed files with 64 additions and 65 deletions
|
@ -86,8 +86,8 @@ void PspDebugTrace(bool alsoToScreen, const char *format, ...) {
|
|||
//
|
||||
void mipsBacktrace(uint32 levels, void **addresses) {
|
||||
// get the current return address
|
||||
register byte *retAddr;
|
||||
register byte *stackPointer;
|
||||
byte *retAddr;
|
||||
byte *stackPointer;
|
||||
GET_RET(retAddr);
|
||||
GET_SP(stackPointer);
|
||||
char string[100];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue