gcc/libgfortran/m4
Thomas Koenig ddc9995b13 re PR fortran/36313 ([F03] {MIN,MAX}{LOC,VAL} should accept character arguments)
2017-11-22  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/36313
	* Makefile.am: Add i_maxloc0s_c, i_maxloc1s_c, i_maxloc2s_c,
	i_minloc0s_c, i_minloc1s_c and i_minloc2s_c.
	* Makefile.in: Regenerated.
        * generated/maxloc0_16_s1.c: New file.
        * generated/maxloc0_16_s4.c: New file.
        * generated/maxloc0_4_s1.c: New file.
        * generated/maxloc0_4_s4.c: New file.
        * generated/maxloc0_8_s1.c: New file.
        * generated/maxloc0_8_s4.c: New file.
        * generated/maxloc1_16_s1.c: New file.
        * generated/maxloc1_16_s4.c: New file.
        * generated/maxloc1_4_s1.c: New file.
        * generated/maxloc1_4_s4.c: New file.
        * generated/maxloc1_8_s1.c: New file.
        * generated/maxloc1_8_s4.c: New file.
        * generated/maxloc2_16_s1.c: New file.
        * generated/maxloc2_16_s4.c: New file.
        * generated/maxloc2_4_s1.c: New file.
        * generated/maxloc2_4_s4.c: New file.
        * generated/maxloc2_8_s1.c: New file.
        * generated/maxloc2_8_s4.c: New file.
        * generated/minloc0_16_s1.c: New file.
        * generated/minloc0_16_s4.c: New file.
        * generated/minloc0_4_s1.c: New file.
        * generated/minloc0_4_s4.c: New file.
        * generated/minloc0_8_s1.c: New file.
        * generated/minloc0_8_s4.c: New file.
        * generated/minloc1_16_s1.c: New file.
        * generated/minloc1_16_s4.c: New file.
        * generated/minloc1_4_s1.c: New file.
        * generated/minloc1_4_s4.c: New file.
        * generated/minloc1_8_s1.c: New file.
        * generated/minloc1_8_s4.c: New file.
        * generated/minloc2_16_s1.c: New file.
        * generated/minloc2_16_s4.c: New file.
        * generated/minloc2_4_s1.c: New file.
        * generated/minloc2_4_s4.c: New file.
        * generated/minloc2_8_s1.c: New file.
        * generated/minloc2_8_s4.c: New file.
        * m4/iforeach-s.m4: New file.
        * m4/ifunction-s.m4: New file.
        * m4/maxloc0s.m4: New file.
        * m4/maxloc1s.m4: New file.
        * m4/maxloc2s.m4: New file.
        * m4/minloc0s.m4: New file.
        * m4/minloc1s.m4: New file.
        * m4/minloc2s.m4: New file.
	* gfortran.map: Add new functions.
	* libgfortran.h: Add gfc_array_s1 and gfc_array_s4.

2017-11-22  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/36313
	* check.c (int_or_real_or_char_check_f2003): New function.
	* iresolve.c (gfc_resolve_maxloc): Add number "2" for
	character arguments and rank-zero return value.
	(gfc_resolve_minloc): Likewise.
	* trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc): Handle case of
	character arguments and rank-zero return value by removing
	unneeded arguments and calling the library function.

2017-11-22  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/36313
	* gfortran.dg/maxloc_string_1.f90: New test.
	* gfortran.dg/minloc_string_1.f90: New test.

From-SVN: r255070
2017-11-22 18:08:07 +00:00
..
all.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
any.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
bessel.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
count.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
cshift0.m4 re PR fortran/52473 (CSHIFT slow - inline it?) 2017-06-18 18:04:19 +00:00
cshift1.m4 re PR fortran/52473 (CSHIFT slow - inline it?) 2017-06-24 07:07:56 +00:00
cshift1a.m4 re PR fortran/52473 (CSHIFT slow - inline it?) 2017-06-24 07:07:56 +00:00
eoshift1.m4 eoshift2.c (eoshift2): Use memcpy for innermost copy where possible. 2017-07-09 19:09:33 +00:00
eoshift3.m4 eoshift2.c (eoshift2): Use memcpy for innermost copy where possible. 2017-07-09 19:09:33 +00:00
head.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
iall.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
iany.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
iforeach-s.m4 re PR fortran/36313 ([F03] {MIN,MAX}{LOC,VAL} should accept character arguments) 2017-11-22 18:08:07 +00:00
iforeach.m4 re PR libfortran/79956 (many new -Wmaybe-uninitialized warnings with bootstrap-O3) 2017-03-10 19:42:46 +00:00
ifunction_logical.m4 re PR libfortran/79956 (many new -Wmaybe-uninitialized warnings with bootstrap-O3) 2017-03-10 19:42:46 +00:00
ifunction-s.m4 re PR fortran/36313 ([F03] {MIN,MAX}{LOC,VAL} should accept character arguments) 2017-11-22 18:08:07 +00:00
ifunction.m4 re PR fortran/36313 ([F03] {MIN,MAX}{LOC,VAL} should accept character arguments) 2017-11-22 18:08:07 +00:00
in_pack.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
in_unpack.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
iparity.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
iparm.m4 re PR fortran/36313 ([F03] {MIN,MAX}{LOC,VAL} should accept character arguments) 2017-11-22 18:08:07 +00:00
matmul_internal.m4 re PR fortran/80975 (matmul for zero-length arrays) 2017-06-06 19:18:37 +00:00
matmul.m4 re PR libfortran/78379 (Processor-specific versions for matmul) 2017-05-25 21:51:27 +00:00
matmulavx128.m4 re PR libfortran/78379 (Processor-specific versions for matmul) 2017-05-25 21:51:27 +00:00
matmull.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
maxloc0.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
maxloc0s.m4 re PR fortran/36313 ([F03] {MIN,MAX}{LOC,VAL} should accept character arguments) 2017-11-22 18:08:07 +00:00
maxloc1.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
maxloc1s.m4 re PR fortran/36313 ([F03] {MIN,MAX}{LOC,VAL} should accept character arguments) 2017-11-22 18:08:07 +00:00
maxloc2s.m4 re PR fortran/36313 ([F03] {MIN,MAX}{LOC,VAL} should accept character arguments) 2017-11-22 18:08:07 +00:00
maxval.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
minloc0.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
minloc0s.m4 re PR fortran/36313 ([F03] {MIN,MAX}{LOC,VAL} should accept character arguments) 2017-11-22 18:08:07 +00:00
minloc1.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
minloc1s.m4 re PR fortran/36313 ([F03] {MIN,MAX}{LOC,VAL} should accept character arguments) 2017-11-22 18:08:07 +00:00
minloc2s.m4 re PR fortran/36313 ([F03] {MIN,MAX}{LOC,VAL} should accept character arguments) 2017-11-22 18:08:07 +00:00
minval.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
misc_specifics.m4
mtype.m4 re PR fortran/32049 (Support on x86_64 also kind=16) 2010-11-16 22:23:19 +01:00
norm2.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
pack.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
parity.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
pow.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
product.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
reshape.m4 re PR libfortran/79956 (many new -Wmaybe-uninitialized warnings with bootstrap-O3) 2017-03-17 21:27:08 +00:00
shape.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
specific2.m4
specific.m4
spread.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
sum.m4 Update copyright years. 2017-01-01 13:07:43 +01:00
types.m4
unpack.m4 Update copyright years. 2017-01-01 13:07:43 +01:00