spack/var/spack/repos/builtin/packages/hpctoolkit/gcc10-enum.patch
Mark W. Krentel 09028f7407
hpctoolkit: fix patch from #22864 (#23149)
PR #22864 added a patch to hpctoolkit to fix an issue with gcc 10.x, and the patch was applied to all revs unconditionally.  But this was fixed in hpctoolkit master on Aug 11, 2020, so the patch should only apply to old revs.

Fixes #22951.
2021-04-22 19:07:13 -06:00

16 lines
453 B
Diff

See: https://github.com/HPCToolkit/hpctoolkit/issues/309
diff --git a/src/tool/hpcrun/gpu/gpu-metrics.h b/src/tool/hpcrun/gpu/gpu-metrics.h
index ea0958156..fa3bceab1 100644
--- a/src/tool/hpcrun/gpu/gpu-metrics.h
+++ b/src/tool/hpcrun/gpu/gpu-metrics.h
@@ -61,7 +61,7 @@
//*****************************************************************************
-enum {
+typedef enum {
GPU_INST_STALL_ANY = 0
} gpu_inst_stall_all_t;