powerpcspe: Mark asm statement in spe_save_reg_high as clobbering memory
Modern gcc errors that "'vec[0]' is used uninitialized in this function" without us telling it that vec is clobbered. Neither clang nor gcc 4.2.1 error on the existing construct. Submitted by: bdragon
This commit is contained in:
parent
c968c769af
commit
fe6277692f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354775
@ -426,7 +426,7 @@ spe_save_reg_high(int reg)
|
||||
{
|
||||
uint32_t vec[2];
|
||||
#define EVSTDW(n) case n: __asm __volatile ("evstdw %1,0(%0)" \
|
||||
:: "b"(vec), "n"(n)); break;
|
||||
:: "b"(vec), "n"(n) : "memory"); break;
|
||||
switch (reg) {
|
||||
EVSTDW(0); EVSTDW(1); EVSTDW(2); EVSTDW(3);
|
||||
EVSTDW(4); EVSTDW(5); EVSTDW(6); EVSTDW(7);
|
||||
|
Loading…
Reference in New Issue
Block a user