public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* epilogue count exceeds number of nested prologues
@ 2002-04-07 17:15 Randolph Chung
  2002-04-07 22:53 ` Richard Henderson
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Randolph Chung @ 2002-04-07 17:15 UTC (permalink / raw)
  To: linux-ia64, binutils

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"

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-04-09  5:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-07 17:15 epilogue count exceeds number of nested prologues Randolph Chung
2002-04-07 22:53 ` Richard Henderson
2002-04-08  8:52 ` [Linux-ia64] " David Mosberger
2002-04-08 10:29 ` David Mosberger
2002-04-08 21:48 ` David Mosberger
2002-04-08 21:55   ` Randolph Chung
2002-04-08 22:57     ` Jeff Licquia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).