This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix PR 53743 and other -freorder-blocks-and-partition failures (issue6823047)
- From: Teresa Johnson <tejohnson at google dot com>
- To: Christophe Lyon <christophe dot lyon at linaro dot org>
- Cc: Jack Howarth <howarth at bromo dot med dot uc dot edu>, reply at codereview dot appspotmail dot com, David Li <davidxl at google dot com>, Steven Bosscher <stevenb dot gcc at gmail dot com>, Matthew Gretton-Dann <matthew dot gretton-dann at linaro dot org>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 5 Feb 2013 07:45:30 -0800
- Subject: Re: Fix PR 53743 and other -freorder-blocks-and-partition failures (issue6823047)
- References: <20121115201013.D8E7E61423@tjsboxrox.mtv.corp.google.com> <CAAe5K+WvT67aLCZgwY9XJSW5YFoOizTzSg3Nu0=5v-Z2O1QqvA@mail.gmail.com> <CAKdteOYm2L1wH1MEpVxonTPVXnYJ9B-hV7osePj91hdzqVjLzw@mail.gmail.com> <CAAe5K+UOoYxN8D2Kjqdbxabk7vL3vTGmcvBVFVCH4v3i3dc21Q@mail.gmail.com> <20121126204248.GA23133@bromo.med.uc.edu> <CAAe5K+WJdohBKCAKPvD4MOfzdb5u5ys-c0mbR4xzfydxE-WUjg@mail.gmail.com> <CAKdteOYK23c-fkRtA7gAihC+xqq9paCibiwhvs_pj+8ka=sYKg@mail.gmail.com> <CAAe5K+UOyQrDyg=pY7za9YRK=8-3dVVsfcMuJdsJp4w2X6BaJg@mail.gmail.com> <CAKdteObSOTdVCR-=m9K5x7X2tstzQnHuP3v4pkHxgvboMHEitQ@mail.gmail.com>
Thanks for the confirmation that the -g issue is orthogonal. I did
start to try to address it but got pulled away by some other things
for awhile. I'll see if I can take another stab at it.
In the meantime, could one of the global maintainers take a look at
the patch? I don't want it to get too stale, and without these fixes I
am unable to get -freorder-blocks-and-partition to work at all.
Thanks!
Teresa
On Thu, Jan 31, 2013 at 6:18 AM, Christophe Lyon
<christophe.lyon@linaro.org> wrote:
> Hello,
>
> Sorry for the long delay (ref http://patchwork.ozlabs.org/patch/199397/)
>
>
>
> On 6 December 2012 20:26, Teresa Johnson <tejohnson@google.com> wrote:
>>
>>
>>
>> On Wed, Nov 28, 2012 at 7:48 AM, Christophe Lyon
>> <christophe.lyon@linaro.org> wrote:
>>>
>>> I have updated my trunk checkout, and I can confirm that eval.c now
>>> compiles with your patch (and the other 4 patches I added to PR55121).
>>
>>
>> good
>>
>>>
>>>
>>> Now, when looking at the whole Spec2k results:
>>> - vpr passes now (used to fail)
>>
>>
>> good
>>
>>>
>>> - gcc, parser, perlbmk bzip2 and twolf no longer build: they all fail
>>> with the same error from gas:
>>> can't resolve `.text.unlikely' {.text.unlikely section} - `.LBB171'
>>> {.text section}
>>> - gap still does not build (same error as above)
>>>
>>> I haven't looked in detail, so I may be missing an obvious patch here.
>>
>>
>> Finally had a chance to get back to this. I was able to reproduce the
>> failure using x86_64 linux with "-freorder-blocks-and-partition -g".
>> However, I am also getting the same failure with a pristine copy of trunk.
>> Can you confirm whether you were seeing any of these failures without my
>> patches, because I believe they are probably a limitation with function
>> splitting and debug info that is orthogonal to my patch.
>>
> Yes I confirm that I see these failures without your patch too; and
> both -freorder-blocks-and-partition and -g are present in my
> command-line.
> And now gap's integer.c fails to compile with a similar error message too.
>
>>>
>>> And I still observe runtime mis-behaviour on crafty, galgel, facerec and
>>> fma3d.
>>
>>
>> I'm not seeing this on x86_64, unfortunately, so it might require some
>> follow-on work to triage and fix.
>>
>> I'll look into the gas failure, but if someone could review this patch in
>> the meantime given that it does improve things considerably (at least
>> without -g), that would be great.
>>
> Indeed.
>
>> Thanks,
>> Teresa
>>
>
> Thanks
> Christophe
--
Teresa Johnson | Software Engineer | tejohnson@google.com | 408-460-2413