[Bug target/40718] Invalid code produced with -foptimize-sibling-calls
slyfox at inbox dot ru
gcc-bugzilla@gcc.gnu.org
Sat Aug 22 18:38:00 GMT 2009
------- Comment #5 from slyfox at inbox dot ru 2009-08-22 18:38 -------
(In reply to comment #3)
> Created an attachment (id=18413)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18413&action=view) [edit]
> patch to fix the failure
>
> Sibcalls of any kind should be done through call-clobbered regs only.
>
> This patch fixes the testcase.
>
> Sergei, can you please test it if it fixes your original problem?
>
Sorry, it does not compile on gcc-4.4.1:
build/genoutput
/tmp/paludis/sys-devel-gcc-4.4.1-r1/work/gcc-4.4.1/gcc/config/i386/i386.md \
insn-conditions.md > tmp-output.c
/tmp/paludis/sys-devel-gcc-4.4.1-r1/work/gcc-4.4.1/gcc/config/i386/i386.md:14984:
wrong number of alternatives in operand 2
make[3]: *** [s-output] Error 1
make[3]: *** Waiting for unfinished jobs....
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40718
More information about the Gcc-bugs
mailing list