This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/18987] [4.0 regression] [ia64] Extra '.restore sp' in tail call
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Dec 2004 21:32:12 -0000
- Subject: [Bug target/18987] [4.0 regression] [ia64] Extra '.restore sp' in tail call
- References: <20041214154235.18987.schwab@suse.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From steven at gcc dot gnu dot org 2004-12-15 21:32 -------
Is this really the right test case? Your output has line 19, but
the test case only has 4 lines. And I've done this:
$ cat f.i
static void do_date (char *);
void rfc822_date (char *date)
{
do_date (date);
}
$ ./xgcc -S -B. -O2 -fno-omit-frame-pointer f.i -w
$ ./xgcc -B. --version
xgcc (GCC) 4.0.0 20041215 (experimental)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ cat f.s
.file "f.i"
.pred.safe_across_calls p1-p5,p16-p63
.text
.align 16
.global rfc822_date#
.proc rfc822_date#
rfc822_date:
.prologue 2, 2
.mii
nop 0
.vframe r2
mov r2 = r12
.body
;;
.restore sp
mov r12 = r2
;;
.mfb
.restore sp
.prologue
alloc r2 = ar.pfs, 0, 0, 1, 0
nop 0
br.sptk.many do_date#
;;
break.f 0
;;
.endp rfc822_date#
.ident "GCC: (GNU) 4.0.0 20041215 (experimental)"
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18987