This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, middle-end]: Generate +QNaN using real_nan() in reg-stack.c
Paolo Bonzini <bonzini@gnu.org> writes:
> Richard Guenther wrote:
>> On Thu, Nov 6, 2008 at 9:40 AM, Uros Bizjak <ubizjak@gmail.com> wrote:
>>> Hello!
>>>
>>> Instead of playing tricks with gen_lowpart, this patch generates +QNaN
>>> using available infrastructure for manipulating real numbers.
>>>
>>> 2008-11-06 Uros Bizjak <ubizjak@gmail.com>
>>>
>>> * reg-stack.c (reg_to_stack): Generate +QNaN using real_nan.
>>>
>>> Patch was bootstrapped and regression tested on i686-pc-linux-gnu. OK
>>> for mainline under obvious rule?
>>
>> Ok.
>
> Couldn't reg-stack.c be considered part of the i386 back-end? After
> all, it's just a machine-dependent reorg that executes earlier in the
> pipeline, and no other back-end will hopefully ever use it...
I agree.
In fact I would like to see the pass structure modified to permit
backends to register their own passes. Then the code could move into
config/i386.
Ian