[Chapel Merge] Skip task functions in compiler error callstacks

Branch: refs/heads/master
Revision: c9fcec8
Author: mppf
Log Message:

Merge pull request #16474 from mppf/fix-stacktrace-task-fns

Skip task functions in compiler error callstacks

Follow-up to PR #16175. Resolves problems where stack traces were
stopping at on statements in some configurations but not others. Fixes
problems where the callstack did not go through task functions.

Reviewed by @e-kayrakli - thanks!

  • [x] full local futures testing

Modified Files:
A test/functions/compilation-errors/error-stack-trace-task-fn1.chpl
A test/functions/compilation-errors/error-stack-trace-task-fn1.good
A test/functions/compilation-errors/error-stack-trace-task-fn2.chpl
A test/functions/compilation-errors/error-stack-trace-task-fn2.good
A test/functions/compilation-errors/error-stack-trace-task-fn3.chpl
A test/functions/compilation-errors/error-stack-trace-task-fn3.good
A test/functions/compilation-errors/error-stack-trace-task-fn4.chpl
A test/functions/compilation-errors/error-stack-trace-task-fn4.good
A test/functions/compilation-errors/error-stack-trace-task-fn5.chpl
A test/functions/compilation-errors/error-stack-trace-task-fn5.good
A test/functions/compilation-errors/error-stack-trace-task-fn6.chpl
A test/functions/compilation-errors/error-stack-trace-task-fn6.good
M compiler/util/misc.cpp

Compare: https://github.com/chapel-lang/chapel/compare/745d83b6b144...c9fcec8dfa30