This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
gold patch committed: Recognize -fsplit-stack prologue with %r11
- From: Ian Lance Taylor <iant at google dot com>
- To: binutils at sourceware dot org
- Date: Wed, 23 Dec 2009 23:49:12 -0800
- Subject: gold patch committed: Recognize -fsplit-stack prologue with %r11
I changed the split stack compiler to use %r11 in the prologue for
x86_64. I committed this patch to gold to recognize that case.
Ian
2009-12-23 Ian Lance Taylor <iant@google.com>
* x86_64.cc (Target_x86_64::do_calls_non_split): Recognize
-fsplit-stack prologue when using %r11.
Index: x86_64.cc
===================================================================
RCS file: /cvs/src/src/gold/x86_64.cc,v
retrieving revision 1.98
diff -u -p -u -r1.98 x86_64.cc
--- x86_64.cc 14 Dec 2009 19:53:05 -0000 1.98
+++ x86_64.cc 24 Dec 2009 07:47:20 -0000
@@ -2692,7 +2692,11 @@ Target_x86_64::do_calls_non_split(Relobj
this->set_view_to_nop(view, view_size, fnoffset + 1, 8);
}
// lea NN(%rsp),%r10
- else if (this->match_view(view, view_size, fnoffset, "\x4c\x8d\x94\x24", 4)
+ // lea NN(%rsp),%r11
+ else if ((this->match_view(view, view_size, fnoffset,
+ "\x4c\x8d\x94\x24", 4)
+ || this->match_view(view, view_size, fnoffset,
+ "\x4c\x8d\x9c\x24", 4))
&& fnsize > 8)
{
// This is loading an offset from the stack pointer for a