[libgfortran,commited] PR26540: fix warnings when building libgfortran

FX Coudert fxcoudert@gmail.com
Sun Oct 8 14:39:00 GMT 2006


I've commited the following patch to fix a few warnings we've had on  
64-bit targets on libgfortran/intrinsic/signal.c. When available,  
intptr_t is used for cast from integers to function pointers and  
back; when not available, the situation is the same as we currently  
have (i.e., with a warning). We could try harder by auto-detecting an  
integer type that has same size as function pointers, but most  
systems have intptr_t anyway.

Bootstrapped and regtested on x64-linux. Commited as rev. 117556.


2006-10-08  Francois-Xavier Coudert  <coudert@clipper.ens.fr>

         PR libfortran/26540
         * intrinsics/signal.c (signal_sub, signal_sub_int): Use  
intptr_t
         if available to cast function pointers to int and back.
         * configure.ac: Check for intptr_t.
         * config.h.in: Regenerate.
         * configure: Regenerate.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signal.diff
Type: application/octet-stream
Size: 1953 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20061008/07729f9f/attachment.obj>
-------------- next part --------------



More information about the Gcc-patches mailing list