Message ID | 20161022194906.GA18811@host1.jankratochvil.net |
---|---|
State | New |
Headers | show |
OK with typo below fixed. On 10/22/2016 08:49 PM, Jan Kratochvil wrote: > -if { [prepare_for_testing ${testfile}.exp ${testfile} $srcfile {additional_flags=-fsplit-stack}] } { > +# -fuse-ld=gold is used for calling printf code built without -fsplit-stack > +# which could crash otherise. See GCC documentation of -fsplit-stack. "otherwise" Thanks, Pedro Alves
On Mon, 24 Oct 2016 13:59:01 +0200, Pedro Alves wrote:
> OK with typo below fixed.
Checked in:
b8d38ee4250fb6ad001c2f03fa2cef8c2bc06b57
Thanks,
Jan
diff --git a/gdb/testsuite/gdb.base/morestack.exp b/gdb/testsuite/gdb.base/morestack.exp index 12f5d28..caa85b8 100644 --- a/gdb/testsuite/gdb.base/morestack.exp +++ b/gdb/testsuite/gdb.base/morestack.exp @@ -23,7 +23,11 @@ if {$gcc_compiled == 0} { standard_testfile -if { [prepare_for_testing ${testfile}.exp ${testfile} $srcfile {additional_flags=-fsplit-stack}] } { +# -fuse-ld=gold is used for calling printf code built without -fsplit-stack +# which could crash otherise. See GCC documentation of -fsplit-stack. +set opts "additional_flags=-fsplit-stack" +if { [prepare_for_testing ${testfile}.exp ${testfile} $srcfile [list $opts additional_flags=-fuse-ld=gold]] \ + && [prepare_for_testing ${testfile}.exp ${testfile} $srcfile $opts] } { return -1 }