[Chapel Merge] Split apart the runtime error code and stack unwind code

Branch: refs/heads/main
Revision: d03ae186e1825a038cbaed8e0c00ffd1db7da869
Author: dlongnecke-cray
Link: Split apart the runtime error code and stack unwind code by dlongnecke-cray · Pull Request #28673 · chapel-lang/chapel · GitHub
Log Message:
Split apart the runtime error code and stack unwind code (#28673)

This PR splits the Chapel runtime's error code out into chpl-error.c
and chpl-unwind.c. This is in preparation for later code which will
refactor and make some improvements to Chapel's stack unwinding code.
Additionally, make chpl-unwind.c a non-launcher source file.

Reviewed by @jabraham17. Thanks!

Compare: Comparing 572b69c253bb0c7df389b98e090359bd6b3123e1...2af451ba9e98e0c1b3625efcee53ebafeb4946d4 · chapel-lang/chapel · GitHub

Diff:
M compiler/codegen/codegen.cpp
M runtime/etc/src/mli/chpl-mli-common-runtime.c
M runtime/include/chpl-cache.h
M runtime/include/chpl-comm-compiler-llvm-support.h
M runtime/include/chpl-comm-compiler-macros.h
M runtime/include/chpl-comm-diags.h
R096 runtime/include/error.h runtime/include/chpl-error.h
M runtime/include/chpl-gpu-diags.h
M runtime/include/chpl-mem-array.h
M runtime/include/chpl-mem-hook.h
M runtime/include/chpl-mem.h
M runtime/include/chpl-string-support.h
A runtime/include/chpl-unwind.h
M runtime/include/chpl-wide-ptr-fns.h
M runtime/include/comm/ugni/comm-ugni-heap-pages.h
M runtime/include/qio/qio_formatted.h
M runtime/include/stdchpl.h
M runtime/include/stdchplrt.h
M runtime/src/Makefile.share
M runtime/src/arg.c
M runtime/src/chpl-comm-callbacks.c
M runtime/src/chpl-comm-diags.c
M runtime/src/chpl-const-arg-check.c
M runtime/src/chpl-env.c
A runtime/src/chpl-error.c
M runtime/src/chpl-exec.c
M runtime/src/chpl-gpu-diags.c
M runtime/src/chpl-gpu.c
M runtime/src/chpl-init.c
M runtime/src/chpl-launcher-common.c
M runtime/src/chpl-mem-desc.c
M runtime/src/chpl-mem-hook.c
M runtime/src/chpl-mem-replace-malloc.c
M runtime/src/chpl-mem.c
M runtime/src/chpl-string-support.c
M runtime/src/chpl-tasks-callbacks.c
M runtime/src/chpl-tasks.c
R074 runtime/src/error.c runtime/src/chpl-unwind.c
M runtime/src/chplcast.c
M runtime/src/chplmemtrack.c
M runtime/src/chplsys.c
M runtime/src/comm/gasnet/comm-gasnet-ex.c
M runtime/src/comm/gasnet/comm-gasnet-locales.c
M runtime/src/comm/none/comm-none-locales.c
M runtime/src/comm/none/comm-none.c
M runtime/src/comm/ofi/comm-ofi-internal.h
M runtime/src/comm/ofi/comm-ofi-locales.c
M runtime/src/comm/ofi/comm-ofi-oob-mpi.c
M runtime/src/comm/ofi/comm-ofi-oob-pmi2.c
M runtime/src/comm/ofi/comm-ofi-oob-sockets.c
M runtime/src/comm/ofi/comm-ofi.c
M runtime/src/comm/ugni/comm-ugni-heap-pages.c
M runtime/src/comm/ugni/comm-ugni-launch.c
M runtime/src/comm/ugni/comm-ugni-locales.c
M runtime/src/comm/ugni/comm-ugni.c
M runtime/src/config.c
M runtime/src/gpu/amd/gpu-amd.c
M runtime/src/gpu/cpu/gpu-cpu.c
M runtime/src/gpu/nvidia/gpu-nvidia.c
M runtime/src/launch/amudprun/launch-amudprun.c
M runtime/src/launch/aprun/aprun-utils.c
M runtime/src/launch/aprun/launch-aprun.c
M runtime/src/launch/dummy/launch-dummy.c
M runtime/src/launch/gasnetrun_common/gasnetrun_common.h
M runtime/src/launch/lsf-gasnetrun_ibv/launch-lsf-gasnetrun_ibv.c
M runtime/src/launch/mpirun/launch-mpirun.c
M runtime/src/launch/mpirun4ofi/launch-mpirun4ofi.c
M runtime/src/launch/pals/pals-utils.c
M runtime/src/launch/pbs-aprun/aprun-utils.c
M runtime/src/launch/pbs-aprun/launch-pbs-aprun.c
M runtime/src/launch/pbs-gasnetrun_ibv/launch-pbs-gasnetrun_ibv.c
M runtime/src/launch/slurm-gasnetrun_common/slurm-gasnetrun_common.h
M runtime/src/launch/slurm-srun/launch-slurm-srun.c
M runtime/src/mem/cstdlib/mem-cstdlib.c
M runtime/src/mem/jemalloc/mem-jemalloc.c
M runtime/src/mem/mimalloc/mem-mimalloc.c
M runtime/src/qio/qbuffer.c
M runtime/src/qio/qio.c
M runtime/src/qio/regex/bundled/re2-interface.cc
M runtime/src/qio/regex/none/fail-regex.c
M runtime/src/tasks/fifo/tasks-fifo.c
M runtime/src/tasks/qthreads/tasks-qthreads.c
M runtime/src/threads/pthreads/threads-pthreads.c
M runtime/src/topo/hwloc/topo-hwloc.c
M runtime/src/topo/none/topo-none.c
M util/devel/lookForBadRTCalls
https://github.com/chapel-lang/chapel/pull/28673.diff