This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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));
 })


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]