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]

Patch: remove buggy builtin_floor optimization


As discussed on gcc@.
Regtested on darwin x86, and confirmed that this doesn't affect mesa.
OK?

2005-08-23 Dale Johannesen <dalej@apple.com>

        * convert.c (convert_to_real):  Don't convert
        (float)floor(double d) to floorf((float)d).

2005-08-23 Dale Johannesen <dalej@apple.com>

* gcc.c-torture/execute/float-floor.c: New.

Attachment: diffs1.txt
Description: Text document

Attachment: float-floor.c
Description: Text document



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