Many open-source programs can be security-critical (any network-facing daemon, for instance), and there's nothing which ties them to a specific compiler.
I usually hear the latter type of system described as "safety-critical" or "life-critical". You're right that it's an entirely different world, though.