• Jeff Law's avatar
    Fix gcc9 build failures · 901f5d48
    Jeff Law authored
    I received this patch from Jeff Law as a fix for build failures with the
    upcoming GCC 9. The following is Jeff Law's description of the patch:
    
     Attached you'll find the fix for criu.  You'll see it's just a matter
     of dropping the sp/esp clobber from the relevant asm statements.  THe
     details:
    
     criu has a macro which defines an asm which appears to want to set a new
     stack pointer, then directly issue a sigreturn call to the kernel.  Some
     variants clobber sp (aarch64, arm, x86), others do not (ppc, s390)
    
     While the asm does indeed set a new stack pointer, we never return from
     a sigreturn syscall -- at least not in the normal way.  We actually
     return back to the point where the process was interrupted by the
     signal.  So describing the affect of the asm on the stack pointer is
     pedantically correct, it actually has no real effect and can just be
     dropped to avoid the hard error from gcc-9.
    Suggested-by: 's avatarJeff Law <law@redhat.com>
    Reviewed-by: 's avatarDmitry Safonov <0x7f454c46@gmail.com>
    Signed-off-by: 's avatarAdrian Reber <areber@redhat.com>
    Signed-off-by: 's avatarAndrei Vagin <avagin@gmail.com>
    901f5d48
Name
Last commit
Last update
Documentation Loading commit data...
compel Loading commit data...
contrib Loading commit data...
coredump Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
include/common Loading commit data...
lib Loading commit data...
scripts Loading commit data...
soccr Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.compel Loading commit data...
Makefile.config Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...