[Chapel Merge] Adjust module code that was broken under LLVM-14

Branch: refs/heads/main
Revision: 92a516c5b1e22e24a9b1529479607343be4c06eb
Author: dlongnecke-cray
Link: Adjust module code that was broken under LLVM-14 by dlongnecke-cray · Pull Request #28913 · chapel-lang/chapel · GitHub
Log Message:
Adjust module code that was broken under LLVM-14 (#28913)

This PR tries to fix a nightly test failure related to LLVM-14. I
recently moved some runtime code related to registering global variables
into the module code. Doing so required an extern declaration of
chpl_globals_registry, but its type was not quite right compared to
its internal declaration which caused LLVM-14 to complain. This is only
a problem in LLVM-14 because it uses "typed pointers" by default.

TESTING

  • standard
  • COMM=gasnet
  • COMM=gasnet, COMPILER=gnu

Reviewed by @benharsh. Thanks!

Compare: Comparing 3cc6d11f89be93b09840d3c9b04fcba4acca6a7c...44ecb5a84e76db1734a8c47053fb890ad0a07c02 · chapel-lang/chapel · GitHub

Diff:
M modules/internal/ChapelRuntimeInterface.chpl
M runtime/include/chpl-comm.h
https://github.com/chapel-lang/chapel/pull/28913.diff