[Linux-ia64] epilogue count exceeds number of nested prologues

From: Randolph Chung <randolph_at_tausq.org>
Date: 2002-04-08 10:17:14
Hi all,

While trying to compile mozilla with libffi, the configure phase dies
with a message:

Error: Epilogue count of 4294967296 exceeds number of nested prologues
(0)

I see that this message comes from a patch submitted by David in
February. Is libffi broken? What is needed to fix it?

The offending assembly code is attached. it's the ".restore sp" near
the end that is triggering the error.

thanks
randolph

	.file	"conftest.i"
	.pred.safe_across_calls p1-p5,p16-p63
	.text
	.align 16
	.global main#
	.proc main#
main:
	.prologue 2, 2
	.vframe r2
	mov r2 = r12
	.body
	;;
#APP
	     .data
     .align 8
1:   data8 @fptr(ffi_closure_UNIX)
     data8 1b
     data8 0
     data8 bar
     data8 @fptr(baz)
     data8 quux
     .text
     .global foo
     .proc foo
foo:
     addl r16 = @ltoff(1b), gp;;
     ld8  gp = [r16];;
     ld8  r17 = [gp];;
     ld8  r19 = [r17],8;
	 adds r18 = 16,gp;;
     ld8  r20 = [r17];;
     st8  [r18]=r20;
     mov b6 = r19
     br.cond.sptk.many b6
     .endp

#NO_APP
	;;
	mov r8 = r0
	.restore sp
	mov r12 = r2
	br.ret.sptk.many b0
	.endp main#
	.ident	"GCC: (GNU) 3.0.4"
Received on Sun Apr 07 17:15:52 2002

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:08 EST