[Chapel Merge] Make sure to add "extern C" block around program-only declarations

Branch: refs/heads/main
Revision: fd27c9210e63c04b4a7c95378992d0042f083c28
Author: dlongnecke-cray
Link: Make sure to add "extern C" block around program-only declarations by dlongnecke-cray · Pull Request #28965 · chapel-lang/chapel · GitHub
Log Message:
Make sure to add "extern C" block around program-only declarations (#28965)

This PR fixes nightly testing errors for ROCM7 gpu testing. Add an
extern "C" block around a set of program-only symbol declarations
(that really should have been declared as such in the first place).

TESTING

  • standard
  • Build on hpe-cray-ex CHPL_LOCALE_MODEL=gpu w/ ROCM7
  • COMM=gasnet
  • gasnet-asan w/ fastAndIncremental.chpl

Reviewed by @bradcray. Thanks much!

Compare: Comparing abb5257919418d4554556bba42986f5cbb60ebd5...505caf7cb19b16025a04639b1dde0d2f16c4c1c5 · chapel-lang/chapel · GitHub

Diff:
M runtime/include/chpl-prginfo-program-only-decls.h
https://github.com/chapel-lang/chapel/pull/28965.diff