https://bugs.kde.org/show_bug.cgi?id=402480
Bug ID: 402480
Summary: Do not use %rsp in clobber list
Product: valgrind
Version: 3.15 SVN
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 117070
--> https://bugs.kde.org/attachment.cgi?id=117070&action=edit
Patch to fix the issue
SUMMARY
This is a testcase where we are expecting %rsp to be clobbered but its a fixed
register that compiler does not save. This was silently ignored thus far by
gcc, however gcc 9.0 has fixed it and now generates a dignostics error
see
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52813
STEPS TO REPRODUCE
1. build valgrind with gcc trunk ( would be gcc 9 soon)
OBSERVED RESULT
Compiler error
../../../../valgrind-3.14.0/none/tests/amd64-linux/bug345887.c
| ../../../../valgrind-3.14.0/none/tests/amd64-linux/bug345887.c: In function
'inner':
| ../../../../valgrind-3.14.0/none/tests/amd64-linux/bug345887.c:7:4: error:
Stack Pointer register clobbered by '%rsp' in 'a
sm'
| 7 | __asm__ __volatile__(
| | ^~~~~~~
| make[5]: *** [Makefile:667: bug345887.o] Error 1
EXPECTED RESULT
No compile error
ADDITIONAL INFORMATION
Seeing this with OpenEmbedded/Yocto cross compile system when upgrading gcc to
trunk
--
You are receiving this mail because:
You are watching all bug changes.