mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-25 20:03:58 +08:00
1524f80b1c
gcc/fortran/ * Make-lang.in (fortran/trans-resolve.o): Depend on fortran/dependency.h. * gfortran.h (gfc_expr): Add an "inline_noncopying_intrinsic" flag. * dependency.h (gfc_get_noncopying_intrinsic_argument): Declare. (gfc_check_fncall_dependency): Change prototype. * dependency.c (gfc_get_noncopying_intrinsic_argument): New function. (gfc_check_argument_var_dependency): New function, split from gfc_check_fncall_dependency. (gfc_check_argument_dependency): New function. (gfc_check_fncall_dependency): Replace the expression parameter with separate symbol and argument list parameters. Generalize the function to handle dependencies for any type of expression, not just variables. Accept a further argument giving the intent of the expression being tested. Ignore intent(in) arguments if that expression is also intent(in). * resolve.c: Include dependency.h. (find_noncopying_intrinsics): New function. (resolve_function, resolve_call): Call it on success. * trans-array.h (gfc_conv_array_transpose): Declare. (gfc_check_fncall_dependency): Remove prototype. * trans-array.c (gfc_conv_array_transpose): New function. * trans-intrinsic.c (gfc_conv_intrinsic_function): Don't use the libcall handling if the expression is to be evaluated inline. Add a case for handling inline transpose()s. * trans-expr.c (gfc_trans_arrayfunc_assign): Adjust for the new interface provided by gfc_check_fncall_dependency. libgfortran/ * m4/matmul.m4: Use a different order in the special case of a transposed first argument. * generated/matmul_c4.c, generated/matmul_c8.c, generated/matmul_c10.c, * generated/matmul_c16.c, generated/matmul_i4.c, generated/matmul_i8.c, * generated/matmul_i10.c, generated/matmul_r4.c, generated/matmul_r8.c * generated/matmul_r10.c, generated/matmul_r16.c: Regenerated. Co-Authored-By: Victor Leikehman <LEI@il.ibm.com> From-SVN: r108459 |
||
---|---|---|
.. | ||
all.m4 | ||
any.m4 | ||
count.m4 | ||
cshift1.m4 | ||
dotprod.m4 | ||
dotprodc.m4 | ||
dotprodl.m4 | ||
eoshift1.m4 | ||
eoshift3.m4 | ||
exponent.m4 | ||
fraction.m4 | ||
head.m4 | ||
iforeach.m4 | ||
ifunction.m4 | ||
in_pack.m4 | ||
in_unpack.m4 | ||
iparm.m4 | ||
matmul.m4 | ||
matmull.m4 | ||
maxloc0.m4 | ||
maxloc1.m4 | ||
maxval.m4 | ||
minloc0.m4 | ||
minloc1.m4 | ||
minval.m4 | ||
mtype.m4 | ||
nearest.m4 | ||
pow.m4 | ||
product.m4 | ||
reshape.m4 | ||
set_exponent.m4 | ||
shape.m4 | ||
specific2.m4 | ||
specific.m4 | ||
sum.m4 | ||
transpose.m4 | ||
types.m4 |