aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2codeview.cc
diff options
context:
space:
mode:
authorMikael Morin <mikael@gcc.gnu.org>2024-07-13 20:21:20 +0200
committerMikael Morin <mikael@gcc.gnu.org>2024-07-13 20:21:20 +0200
commitd211100903d4d532d989451243ea00d7fa2e9d5e (patch)
treeecbad1149968bdc11f7e36616a05b67faae86fdc /gcc/dwarf2codeview.cc
parent6fc24a022218c9017e0ee2a9f2913ef85609c265 (diff)
downloadgcc-d211100903d4d532d989451243ea00d7fa2e9d5e.zip
gcc-d211100903d4d532d989451243ea00d7fa2e9d5e.tar.gz
gcc-d211100903d4d532d989451243ea00d7fa2e9d5e.tar.bz2
fortran: Correctly evaluate scalar MASK arguments of MINLOC/MAXLOC
Add the preliminary code that the generated expression for MASK may depend on when generating the inline code to evaluate MINLOC or MAXLOC with a scalar MASK. The generated code was only keeping the generated expression but not the preliminary code, which was sufficient for simple cases such as data references or simple (scalar) function calls, but was bogus with more complicated ones. gcc/fortran/ChangeLog: * trans-intrinsic.cc (gfc_conv_intrinsic_minmaxloc): Add the preliminary code generated for MASK to the preliminary code of MINLOC/MAXLOC. gcc/testsuite/ChangeLog: * gfortran.dg/minmaxloc_17.f90: New test.
Diffstat (limited to 'gcc/dwarf2codeview.cc')
0 files changed, 0 insertions, 0 deletions