This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR c/5420 (-foptimize-sibling-calls + compound literal miscompilation)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Dale Johannesen <dalej at apple dot com>
- Cc: rth at redhat dot com, gcc-patches at gcc dot gnu dot org
- Date: Wed, 6 Feb 2002 17:02:57 -0500
- Subject: Re: [PATCH] Fix PR c/5420 (-foptimize-sibling-calls + compound literal miscompilation)
- References: <20020206144527.H536@sunsite.ms.mff.cuni.cz> <64514D2C-1B4C-11D6-826C-003065C86F94@apple.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Wed, Feb 06, 2002 at 01:56:36PM -0800, Dale Johannesen wrote:
> the second time. But the args to the constructor included a call to a
> static
> inline, whose expansion included a label, and the label was only emitted
> once.
> I was thinking in terms of cloning the label somehow, but I think disabling
> the sibcall in this case is probably better; certainly simpler. Thanks.
My patch actually doesn't disable the sibcall (well, in the testcase I've
included it cannot be sibcall for other reasons), but only causes
expand_call to expand_expr argument containing it before starting
tail call/normal call insn sequences.
Jakub