This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: sibcall bug in ss-20000724 for i686-pc-linux
- To: "Thomas R. Truscott" <trt at cs dot duke dot edu>
- Subject: Re: sibcall bug in ss-20000724 for i686-pc-linux
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 31 Jul 2000 21:15:41 -0600
- cc: gcc-patches at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <200007311852.OAA05161@curly.cs.duke.edu>you write:
> In the program below, the optimizer turns do_sibcall's "call foo"
> into "branch foo". Unforunately for ia32, foo
> returns a double that is pushed onto the floating point stack
> and the caller must clean that up.
> That would happen if do_sibcall also returned a double,
> but alas it returns void.
>
> On i686-pc-linux, "gcc -O2" does sibcall optimization
> and the resulting program calls abort.
[ ... ]
I've installed this test into the testsuite.
jeff