This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [committed] Fix stack slot coalescing at -O0 (PR target/43808)


On Wed, Nov 10, 2010 at 12:50 AM, Paolo Bonzini <bonzini@gnu.org> wrote:
> On 11/09/2010 08:11 PM, Jakub Jelinek wrote:
>>
>> Hi!
>>
>> If -O0 is used together with passes that use alias into in the RTL
>> (e.g. scheduling), we may miscompile code
>
> Why not disable most optimization passes at -O0 independent of flags (maybe
> even give a hard error) instead? ?It would be a bigger patch, but this set
> of flags makes no sense.

If we want unit-testing of some sort then we should make sure passes
work regardless of what earlier optimization passes did.  So instead of
adding more optimize checks I'd rather remove more of them.

Richard.

> Paolo
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]