This is the mail archive of the 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]

[Patch, Fortran] Replace intmax_type_node by INTMAX_TYPE

Hello all,

since gfortran now uses default.h to access the stdint.h
macros, it makes sense to replace our own definition
of intmax_type_node by INTMAX_TYPE. This was suggested
by Michael and Joseph, cf.

The attached patch was send me by FX. Build and regtested
on x86-84-linux. OK for the trunk?

2009-05-29  Francois-Xavier Coudert  <>
	    Tobias Burnus  <>

	* iso-c-binding.def: Use INTMAX_TYPE instead of intmax_type_node.
	* trans-types.c (init_c_interop_kinds): Remove intmax_type_node.

Index: gcc/fortran/iso-c-binding.def
--- gcc/fortran/iso-c-binding.def	(Revision 147987)
+++ gcc/fortran/iso-c-binding.def	(Arbeitskopie)
               get_int_kind_from_node (long_long_integer_type_node), GFC_STD_F2003)
-              get_int_kind_from_node (intmax_type_node), GFC_STD_F2003)
+              get_int_kind_from_name (INTMAX_TYPE), GFC_STD_F2003)
               get_int_kind_from_name (INTPTR_TYPE), GFC_STD_F2003)
Index: gcc/fortran/trans-types.c
--- gcc/fortran/trans-types.c	(Revision 147987)
+++ gcc/fortran/trans-types.c	(Arbeitskopie)
@@ -285,11 +285,6 @@ static
 void init_c_interop_kinds (void)
   int i;
-  tree intmax_type_node = INT_TYPE_SIZE == LONG_LONG_TYPE_SIZE ?
-			  integer_type_node :
-			   long_integer_type_node :
-			   long_long_integer_type_node);
   /* init all pointers in the list to NULL */
   for (i = 0; i < ISOCBINDING_NUMBER; i++)

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