Fix build with latest GCC 9.0 tree
authorDimitar Dimitrov <dimitar@dinux.eu>
Mon, 17 Dec 2018 19:30:52 +0000 (21:30 +0200)
committerSimon Marchi <simon.marchi@ericsson.com>
Wed, 19 Dec 2018 15:44:23 +0000 (10:44 -0500)
commit7406a50077773e78282a495cb32ef5b8179f6a33
treef565f210abf38e6fa25caf8a7ce42712bf948e64
parentebb8004a18a3808d7197762faf3c5aaeae82371f
Fix build with latest GCC 9.0 tree

A recent patch [1] to fix a GCC PR [2] actually broke the GDB build.
To fix, remove the stack pointer clobber. GCC will ignore the clobber
marker, and will not save or restore the stack pointer.

I ran "make check-gdb" on x86_64 to ensure there are no regressions.

gdb/ChangeLog:

2018-12-17  Dimitar Dimitrov  <dimitar@dinux.eu>

* nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Remove sp clobbers.

[1] https://gcc.gnu.org/ml/gcc-patches/2018-12/msg00532.html
[2] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52813

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
gdb/ChangeLog
gdb/nat/linux-ptrace.c