gcc/gcc/fortran
Thomas Koenig 37879e0161 re PR fortran/43136 (Excess copy-in/copy-out with character argument)
2019-01-15  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/43136
	* resolve.c (resolve_array_ref): Add equal_length argument; set it
	if the length of the substring equals that of the orignal
	variable.
	(resolve_ref): Remove the substring if it is equal in length to
	the original variable, unless it is an EXPR_SUBSTRING).

2019-01-15  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/43136
	* gfortran.dg/actual_array_substr_3.f90: New test.

From-SVN: r267954
2019-01-15 22:20:26 +00:00
..
ChangeLog re PR fortran/43136 (Excess copy-in/copy-out with character argument) 2019-01-15 22:20:26 +00:00
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-2016
ChangeLog-2017
ChangeLog-2018 gcc.c (process_command): Update copyright notice dates. 2019-01-01 12:34:49 +01:00
ChangeLog.ptr
Make-lang.in Update copyright years. 2019-01-01 13:31:55 +01:00
arith.c Update copyright years. 2019-01-01 13:31:55 +01:00
arith.h Update copyright years. 2019-01-01 13:31:55 +01:00
array.c Update copyright years. 2019-01-01 13:31:55 +01:00
bbt.c Update copyright years. 2019-01-01 13:31:55 +01:00
check.c re PR fortran/45424 ([F08] Add IS_CONTIGUOUS intrinsic) 2019-01-07 19:30:28 +00:00
class.c PR other/16615 [1/5] 2019-01-09 16:37:45 -05:00
config-lang.in Update copyright years. 2019-01-01 13:31:55 +01:00
constructor.c Update copyright years. 2019-01-01 13:31:55 +01:00
constructor.h Update copyright years. 2019-01-01 13:31:55 +01:00
convert.c Update copyright years. 2019-01-01 13:31:55 +01:00
cpp.c Update copyright years. 2019-01-01 13:31:55 +01:00
cpp.h Update copyright years. 2019-01-01 13:31:55 +01:00
data.c Update copyright years. 2019-01-01 13:31:55 +01:00
data.h Update copyright years. 2019-01-01 13:31:55 +01:00
decl.c re PR fortran/35031 (ELEMENTAL procedure with BIND(C)) 2019-01-11 23:41:04 +00:00
dependency.c Update copyright years. 2019-01-01 13:31:55 +01:00
dependency.h Update copyright years. 2019-01-01 13:31:55 +01:00
dump-parse-tree.c Update copyright years. 2019-01-01 13:31:55 +01:00
error.c Update copyright years. 2019-01-01 13:31:55 +01:00
expr.c PR other/16615 [4/5] 2019-01-09 16:44:56 -05:00
f95-lang.c Update copyright years. 2019-01-01 13:31:55 +01:00
frontend-passes.c Update copyright years. 2019-01-01 13:31:55 +01:00
gfc-diagnostic.def Update copyright years. 2019-01-01 13:31:55 +01:00
gfc-internals.texi PR other/16615 [1/5] 2019-01-09 16:37:45 -05:00
gfortran.h re PR fortran/45424 ([F08] Add IS_CONTIGUOUS intrinsic) 2019-01-07 19:30:28 +00:00
gfortran.texi re PR fortran/88803 (gfortran documentation warning: '.' or ',' must follow @xref) 2019-01-13 20:18:46 +01:00
gfortranspec.c Update copyright years. 2019-01-01 13:31:55 +01:00
interface.c Update copyright years. 2019-01-01 13:31:55 +01:00
intrinsic.c re PR fortran/45424 ([F08] Add IS_CONTIGUOUS intrinsic) 2019-01-07 19:30:28 +00:00
intrinsic.h re PR fortran/45424 ([F08] Add IS_CONTIGUOUS intrinsic) 2019-01-07 19:30:28 +00:00
intrinsic.texi PR other/16615 [1/5] 2019-01-09 16:37:45 -05:00
invoke.texi PR other/16615 [1/5] 2019-01-09 16:37:45 -05:00
io.c PR other/16615 [1/5] 2019-01-09 16:37:45 -05:00
ioparm.def Update copyright years. 2019-01-01 13:31:55 +01:00
iresolve.c re PR fortran/45424 ([F08] Add IS_CONTIGUOUS intrinsic) 2019-01-07 19:30:28 +00:00
iso-c-binding.def Update copyright years. 2019-01-01 13:31:55 +01:00
iso-fortran-env.def Update copyright years. 2019-01-01 13:31:55 +01:00
lang-specs.h Update copyright years. 2019-01-01 13:31:55 +01:00
lang.opt Update copyright years. 2019-01-01 13:31:55 +01:00
libgfortran.h Update copyright years. 2019-01-01 13:31:55 +01:00
match.c PR other/16615 [1/5] 2019-01-09 16:37:45 -05:00
match.h Update copyright years. 2019-01-01 13:31:55 +01:00
matchexp.c Update copyright years. 2019-01-01 13:31:55 +01:00
mathbuiltins.def Update copyright years. 2019-01-01 13:31:55 +01:00
misc.c Update copyright years. 2019-01-01 13:31:55 +01:00
module.c Update copyright years. 2019-01-01 13:31:55 +01:00
openmp.c Update copyright years. 2019-01-01 13:31:55 +01:00
options.c Update copyright years. 2019-01-01 13:31:55 +01:00
parse.c PR other/16615 [1/5] 2019-01-09 16:37:45 -05:00
parse.h Update copyright years. 2019-01-01 13:31:55 +01:00
primary.c PR other/16615 [1/5] 2019-01-09 16:37:45 -05:00
resolve.c re PR fortran/43072 (unneeded temporary (s=s+f(a))) 2019-01-15 22:18:55 +00:00
scanner.c Update copyright years. 2019-01-01 13:31:55 +01:00
scanner.h Update copyright years. 2019-01-01 13:31:55 +01:00
simplify.c re PR fortran/68426 (Simplification of SPREAD with a derived type element is unimplemented) 2019-01-09 20:31:07 +00:00
st.c Update copyright years. 2019-01-01 13:31:55 +01:00
symbol.c PR other/16615 [1/5] 2019-01-09 16:37:45 -05:00
target-memory.c Update copyright years. 2019-01-01 13:31:55 +01:00
target-memory.h Update copyright years. 2019-01-01 13:31:55 +01:00
trans-array.c re PR fortran/57992 (Pointless packing of contiguous arrays for simply contiguous functions results as actual arguments) 2019-01-13 14:57:39 +00:00
trans-array.h gfortran.texi: Add description in sections on TS 29113 and further interoperability with C. 2019-01-12 15:25:52 +00:00
trans-common.c Update copyright years. 2019-01-01 13:31:55 +01:00
trans-const.c Update copyright years. 2019-01-01 13:31:55 +01:00
trans-const.h Update copyright years. 2019-01-01 13:31:55 +01:00
trans-decl.c gfortran.texi: Add description in sections on TS 29113 and further interoperability with C. 2019-01-12 15:25:52 +00:00
trans-expr.c trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): Deal with exprs that are indirect references; ie. 2019-01-15 19:52:08 +00:00
trans-intrinsic.c PR other/16615 [1/5] 2019-01-09 16:37:45 -05:00
trans-io.c Update copyright years. 2019-01-01 13:31:55 +01:00
trans-openmp.c re PR middle-end/85956 (ICE in wide_int_to_tree_1, at tree.c:1549) 2019-01-11 22:03:53 +01:00
trans-stmt.c PR other/16615 [1/5] 2019-01-09 16:37:45 -05:00
trans-stmt.h Update copyright years. 2019-01-01 13:31:55 +01:00
trans-types.c Update copyright years. 2019-01-01 13:31:55 +01:00
trans-types.h Update copyright years. 2019-01-01 13:31:55 +01:00
trans.c Update copyright years. 2019-01-01 13:31:55 +01:00
trans.h gfortran.texi: Add description in sections on TS 29113 and further interoperability with C. 2019-01-12 15:25:52 +00:00
types.def Update copyright years. 2019-01-01 13:31:55 +01:00