]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/trans-types.cc
re PR fortran/71544 (gfortran compiler optimization bug when dealing with c-style...
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 9 Mar 2019 19:21:24 +0000 (19:21 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 9 Mar 2019 19:21:24 +0000 (19:21 +0000)
commit4ea60a393eee13a0a7715b7c8134e2115195c7f7
tree39dbc71728cc53f1784eefc084ab8babbe7b8f94
parente6780631b13612b88b1ada69ca2e736f8a16da87
re PR fortran/71544 (gfortran compiler optimization bug when dealing with c-style pointers)

2019-03-09  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/71544
* trans-types.c (gfc_typenode_for_spec) Set ts->is_c_interop of
C_PTR and C_FUNPTR.
(create_fn_spec): Mark argument as escaping if ts->is_c_interop is set.

2019-03-09  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/71544
* gfortran.dg/c_ptr_tests_19.f90: New test.

From-SVN: r269532
gcc/fortran/ChangeLog
gcc/fortran/trans-types.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/c_ptr_tests_19.f90 [new file with mode: 0644]