Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitae667f7

Browse files
committed
Really fix compilation failure on MIPS.
I missed an additional colon in previous patch. Oops. to make that mistakeless likely in the future, add comments as placeholders for unused inputsand outputs in inline assembly.
1 parentbaf7b3a commitae667f7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

‎src/include/storage/s_lock.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ tas(volatile slock_t *lock)
158158
"xchgb%0,%1\n"
159159
"1: \n"
160160
:"+q"(_res),"+m"(*lock)
161-
:
161+
:/* no inputs */
162162
:"memory","cc");
163163
return (int)_res;
164164
}
@@ -225,7 +225,7 @@ tas(volatile slock_t *lock)
225225
"lock\n"
226226
"xchgb%0,%1\n"
227227
:"+q"(_res),"+m"(*lock)
228-
:
228+
:/* no inputs */
229229
:"memory","cc");
230230
return (int)_res;
231231
}
@@ -519,7 +519,7 @@ tas(volatile slock_t *lock)
519519
"tas%1\n"
520520
"sne%0\n"
521521
:"=d"(rv),"+m"(*lock)
522-
:
522+
:/* no inputs */
523523
:"memory","cc");
524524
returnrv;
525525
}
@@ -586,7 +586,7 @@ tas(volatile slock_t *lock)
586586
" sync \n"
587587
" .set pop "
588588
:"=&r" (_res),"=&r" (_tmp),"+R" (*_l)
589-
:
589+
:/* no inputs */
590590
:"memory");
591591
return_res;
592592
}
@@ -602,7 +602,8 @@ do \
602602
" .set nomacro \n" \
603603
" sync \n" \
604604
" .set pop " \
605-
: \
605+
:/* no outputs */ \
606+
:/* no inputs */\
606607
:"memory"); \
607608
*((volatile slock_t *) (lock)) = 0; \
608609
} while (0)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp