Commit a8130612 by Tobias Burnus Committed by Tobias Burnus

iso-c-binding.def (C_PTRDIFF_T): New TS29113 parameter.

2012-07-21  Tobias Burnus  <burnus@net-b.de>

        * iso-c-binding.def (C_PTRDIFF_T): New TS29113 parameter.
        * intrinsic.texi (ISO_C_BINDING): Document it.

From-SVN: r189746
parent 34540577
2012-07-21 Tobias Burnus <burnus@net-b.de> 2012-07-21 Tobias Burnus <burnus@net-b.de>
* iso-c-binding.def (C_PTRDIFF_T): New TS29113 parameter.
* intrinsic.texi (ISO_C_BINDING): Document it.
2012-07-21 Tobias Burnus <burnus@net-b.de>
PR fortran/48820 PR fortran/48820
* trans-intrinsic.c (gfc_conv_intrinsic_bound): Support * trans-intrinsic.c (gfc_conv_intrinsic_bound): Support
lbound/ubound with dim= for assumed-rank arrays. lbound/ubound with dim= for assumed-rank arrays.
......
...@@ -13029,11 +13029,11 @@ The @code{ISO_C_BINDING} module provides the following named constants of ...@@ -13029,11 +13029,11 @@ The @code{ISO_C_BINDING} module provides the following named constants of
type default integer, which can be used as KIND type parameters. type default integer, which can be used as KIND type parameters.
In addition to the integer named constants required by the Fortran 2003 In addition to the integer named constants required by the Fortran 2003
standard, GNU Fortran provides as an extension named constants for the standard and @code{C_PTRDIFF_T} of TS 29113, GNU Fortran provides as an
128-bit integer types supported by the C compiler: @code{C_INT128_T, extension named constants for the 128-bit integer types supported by the
C_INT_LEAST128_T, C_INT_FAST128_T}. Furthermore, if @code{__float} is C compiler: @code{C_INT128_T, C_INT_LEAST128_T, C_INT_FAST128_T}.
supported in C, the named constants @code{C_FLOAT128, C_FLOAT128_COMPLEX} Furthermore, if @code{__float128} is supported in C, the named constants
are defined. @code{C_FLOAT128, C_FLOAT128_COMPLEX} are defined.
@multitable @columnfractions .15 .35 .35 .35 @multitable @columnfractions .15 .35 .35 .35
@item Fortran Type @tab Named constant @tab C type @tab Extension @item Fortran Type @tab Named constant @tab C type @tab Extension
...@@ -13060,6 +13060,7 @@ are defined. ...@@ -13060,6 +13060,7 @@ are defined.
@item @code{INTEGER}@tab @code{C_INT_FAST128_T} @tab @code{int_fast128_t} @tab Ext. @item @code{INTEGER}@tab @code{C_INT_FAST128_T} @tab @code{int_fast128_t} @tab Ext.
@item @code{INTEGER}@tab @code{C_INTMAX_T} @tab @code{intmax_t} @item @code{INTEGER}@tab @code{C_INTMAX_T} @tab @code{intmax_t}
@item @code{INTEGER}@tab @code{C_INTPTR_T} @tab @code{intptr_t} @item @code{INTEGER}@tab @code{C_INTPTR_T} @tab @code{intptr_t}
@item @code{INTEGER}@tab @code{C_PTRDIFF_T} @tab @code{intptr_t} @tab TS 29113
@item @code{REAL} @tab @code{C_FLOAT} @tab @code{float} @item @code{REAL} @tab @code{C_FLOAT} @tab @code{float}
@item @code{REAL} @tab @code{C_DOUBLE} @tab @code{double} @item @code{REAL} @tab @code{C_DOUBLE} @tab @code{double}
@item @code{REAL} @tab @code{C_LONG_DOUBLE} @tab @code{long double} @item @code{REAL} @tab @code{C_LONG_DOUBLE} @tab @code{long double}
......
...@@ -61,6 +61,8 @@ NAMED_INTCST (ISOCBINDING_INTMAX_T, "c_intmax_t", \ ...@@ -61,6 +61,8 @@ NAMED_INTCST (ISOCBINDING_INTMAX_T, "c_intmax_t", \
get_int_kind_from_name (INTMAX_TYPE), GFC_STD_F2003) get_int_kind_from_name (INTMAX_TYPE), GFC_STD_F2003)
NAMED_INTCST (ISOCBINDING_INTPTR_T, "c_intptr_t", \ NAMED_INTCST (ISOCBINDING_INTPTR_T, "c_intptr_t", \
get_int_kind_from_name (INTPTR_TYPE), GFC_STD_F2003) get_int_kind_from_name (INTPTR_TYPE), GFC_STD_F2003)
NAMED_INTCST (ISOCBINDING_PTRDIFF_T, "c_ptrdiff_t", \
get_int_kind_from_name (PTRDIFF_TYPE), GFC_STD_F2008_TS)
NAMED_INTCST (ISOCBINDING_SIZE_T, "c_size_t", \ NAMED_INTCST (ISOCBINDING_SIZE_T, "c_size_t", \
gfc_index_integer_kind, GFC_STD_F2003) gfc_index_integer_kind, GFC_STD_F2003)
NAMED_INTCST (ISOCBINDING_SIGNED_CHAR, "c_signed_char", \ NAMED_INTCST (ISOCBINDING_SIGNED_CHAR, "c_signed_char", \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment