http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47802
Janne Blomqvist <jb at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #36 from Janne Blomqvist <jb at gcc dot gnu.org> 2011-03-09 07:47:43 UTC --- (In reply to comment #35) > > > In testing fix for above, I see: > > > > > > ../../../gcc/libgfortran/intrinsics/ctime.c: In function 'strctime': > > > ../../../gcc/libgfortran/intrinsics/ctime.c:43:20: warning: initialization > > > makes pointer from integer without a cast [enabled by default] > > > > > > Unfortunately, localtime_r has a different proto: > > > > > > int localtime_r(const time_t *timer, struct tm *result); > > > > > > Dave > > > > Thanks to some __builtin tricks by Jakub, handling the different return > > types > > should now work. However, one more possible issue: In > > http://docs.hp.com/en/947/d8.html it says the old DCE threads prototype is > > > > int localtime_r ( struct tm *result, time_t *clock ); > > I believe the above document is wrong. Both the HP-UX 10.20 manpage and > header show the definition that I quoted. Same for the _PTHREADS_DRAFT4 > definition in HP-UX 11.X > > Dave Thanks for checking. I did some more googling, and I found some other documentation for DCE/POSIX draft localtime_r that seems to confirm this. Closing as fixed.