This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.



Attachment: signal.diff
Description: Binary data



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]