Currently, compiling a program with the -pg flag will result in an undefined symbol error for .mcount. This revision fixes the call to use __mcount, which requires a pointer argument to a pointer-sized object (unique per inserted call) on AIX.
This is only a partial fix. This patch should fix the -pg flag's behaviour on AIX to work with code you are compiling, but it will not link against standard libraries with mcount instrumentation calls. The next step is to add profiled libraries to the linker search paths in the Clang driver for the AIX toolchain when linking with -pg.
clang-format not found in user’s local PATH; not linting file.