[PATCH 5.0 35/93] perf tools: Fix errors under optimization level -Og