[libgfortran,patch] Two small fixes

FX fxcoudert@gmail.com
Wed Jun 9 11:54:00 GMT 2010


1. With clock.diff, I make sure we undefine the TCK macro before redefining it; this silences a warning I'm getting on Mac OS 10.6.

2. With literal.diff, we introduce a macro system similar to stdint.h's INT64_C macros to define literal floating-point constants of a given kind. The macro appends the right suffix (f for float, nothing for double, l for long double, and soon to come... q for __float128). This provides an indirection layer between kinds and floating-point types, which we will need later on for __float128 support. It's not the most fundamental change ever, but I think it's nicer.


Currently regtesting on x86_64-linux. OK to commit once regtesting finishes?

FX


-------------- next part --------------
A non-text attachment was scrubbed...
Name: clock.diff
Type: application/octet-stream
Size: 593 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100609/87ef7d76/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clock.ChangeLog
Type: application/octet-stream
Size: 141 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100609/87ef7d76/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: literal.diff
Type: application/octet-stream
Size: 3149 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100609/87ef7d76/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: literal.ChangeLog
Type: application/octet-stream
Size: 330 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100609/87ef7d76/attachment-0003.obj>


More information about the Gcc-patches mailing list