[PATCH] Fix PR c/5420 (-foptimize-sibling-calls + compound literal miscompilation)

Dale Johannesen dalej@apple.com
Wed Feb 6 14:56:00 GMT 2002


On Wednesday, February 6, 2002, at 02:02 PM, Jakub Jelinek wrote:

> 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.

I know, I didn't say it right.



More information about the Gcc-patches mailing list