This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: Fix debug-insn sensitivity in RA
- From: Richard Sandiford <rdsandiford at googlemail dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Steven Bosscher <stevenb dot gcc at gmail dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Vladimir Makarov <vmakarov at redhat dot com>
- Date: Sat, 07 Sep 2013 12:55:18 +0100
- Subject: Re: RFA: Fix debug-insn sensitivity in RA
- Authentication-results: sourceware.org; auth=none
- References: <87a9jpj8mq dot fsf at talisman dot default> <CABu31nNW+g+inpv22PppEog+W7iHZW0cXkwbQ5+KZy6q0cmZxA at mail dot gmail dot com> <87sixgj21h dot fsf at talisman dot default> <20130907114240 dot GW23437 at tucnak dot redhat dot com>
Jakub Jelinek <jakub@redhat.com> writes:
> On Sat, Sep 07, 2013 at 12:37:14PM +0100, Richard Sandiford wrote:
>> Steven Bosscher <stevenb.gcc@gmail.com> writes:
>> > Can you please add a test case?
>>
>> What kind of test would you suggest? Do we have a harness for testing
>> that -O2 and -O2 -g .text output is identical?
>
> No, but we have -fcompare-debug, which is even stronger than that (compares
> final RTL, so can catch even differences that aren't visible in the .s file,
> but still are relevant). And, the default way of bootstrapping also
> compares .text etc. after stripping, between stage2 (built without debug)
> and stage3 (with debug).
Right, the bootstrap thing is what forced me to write the patch in
the first place. I probably wasn't clear, sorry, but the original
problem was a bootstrap comparison failure between stage 2 and stage 3
because the tree.o code depended on whether debug info was enabled.
I'll try to use -fcompare-debug though, thanks.
Richard