[patch i386]: Expand sibling-tail-calls via accumulator register

Kai Tietz ktietz70@googlemail.com
Sat May 31 09:09:00 GMT 2014


Hmm,  this might cause by allowing CONST-memory-addresses.  This was
doubtful from the beginning.
It would be helpful to see here for the case a final rtl-dump.

Could you try if following patch (it is incomplete as it disregards
plus-expression) solves your bootstrap issue?

Regards,
Kai

Index: predicates.md
===================================================================
--- predicates.md       (Revision 211102)
+++ predicates.md       (Arbeitskopie)
@@ -74,6 +74,9 @@
 (define_predicate "sibcall_memory_operand"
   (match_operand 0 "memory_operand")
 {
+  op = XEXP (op, 0);
+  if (GET_CODE (op) == CONST)
+    op = XEXP (op, 0);
   return CONSTANT_P (XEXP (op, 0));
 })



More information about the Gcc-patches mailing list