[libgfortran,patch] Two small fixes

Janne Blomqvist blomqvist.janne@gmail.com
Wed Jun 9 12:55:00 GMT 2010


On Wed, Jun 9, 2010 at 14:36, FX <fxcoudert@gmail.com> wrote:
> 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.

Ok. Alternatively, make it a "static const int" with some descriptive
name such as ticks_per_sec.

> 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.

Ok. This does the correct thing also for the hex literals in random.c,
I presume?


-- 
Janne Blomqvist



More information about the Gcc-patches mailing list