Paul Eggert wrote:
> Wow, that's a weird GCC bug. Thanks for diagnosing it,
> and your fix looks good. AFter the GCC folks fix it,
> we can update mktime.c to use the pragma on sufficiently-new
> GCC versions.
Indeed, even the newest GCC release (4.6.2) has the bug.
Pushed.
Bruno
Wow, that's a weird GCC bug. Thanks for diagnosing it,
and your fix looks good. AFter the GCC folks fix it,
we can update mktime.c to use the pragma on sufficiently-new
GCC versions.
On Solaris 11 2011-11 the vendor gcc 4.5.2 cannot compile gnulib's mktime.c:
$ make
...
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -DGNULIB_STRICT_CHECKING=1 -Wall
-D_REENTRANT -g -O2 -MT mktime.o -MD -MP -MF $depbase.Tpo -c -o mktime.o
mktime.c &&\
mv -f $depbase.Tpo $depbase.Po
Assembler: mkti