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:
Justin Hibbits 2019-11-16 16:27:31 +00:00
parent c968c769af
commit fe6277692f

View File

@ -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);