https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117643

--- Comment #8 from kargls at comcast dot net ---
(In reply to kargls from comment #7)
> Created attachment 59903 [details]
> Complete patch with testcase included
> 
> The new diff is a complete implementation with an included testcase.

Forgot the ChangeLogs.

* check.cc (gfc_check_f_c_string): Check arguments of f_c_string().

* gfortran.h: New symbol GFC_ISYM_F_C_STRING.

* intrinsic.cc (add_functions): Add the ISO C Binding routine f_c_string().
  Wrap nearby long line to less than 80 characters.

* intrinsic.h: Prototype for gfc_check_f_c_string().

* iso-c-binding.def: Declare for ISO C Binding routine f_c_string().

* primary.cc (gfc_match_rvalue): Fix comment that has been untrue since 2011.
  Add ISOCBINDING_F_C_STRING to conditional.

* trans-intrinsic.cc(conv_trim): Specialized version of trim() for 
  f_c_string().
  (conv_isocbinding_function): Inline implementation of f_c_string().
  (gfc_conv_intrinsic_function): Use GFC_ISYM_F_C_STRING to trigger in-lining.

* gfortran.dg/f_c_string1.f90: New testcase.

Reply via email to