[PATCH] D124857: [AIX][PGO] Enable linux style PGO on AIX

wael yehia via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 4 10:56:05 PDT 2022


w2yehia marked an inline comment as done.
w2yehia added inline comments.


================
Comment at: compiler-rt/lib/profile/InstrProfilingPlatformLinux.c:253
+// variables in each of the above 3 sections.
+COMPILER_RT_VISIBILITY int dummy_cnts[0] COMPILER_RT_SECTION(
+    COMPILER_RT_SEG INSTR_PROF_CNTS_SECT_NAME);
----------------
MaskRay wrote:
> This has a -Wzero-length-array warning in -pedantic mode.
sorry but what's the correct way to resolve this on all platforms?
I see -Wno-pedantic is used when building this file `if(FUCHSIA OR UNIX)`. Should I add `-Wno-pedantic` if such flag is supported by the build compiler in general?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124857/new/

https://reviews.llvm.org/D124857



More information about the llvm-commits mailing list