mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 19:29:27 -06:00
Following the discussion at #7870: `-fdump-passes` reports passes enabled dynamically (e.g. loop2_unroll via `#pragma GCC unroll`) as OFF, so they were missing from the pass dropdown although they were active. Fixed by building the pass list from the dump files GCC actually wrote instead. While reworking this: - Read all passes into a `passDumps` map shipped with the result, so switching passes doesn't trigger a compile. - Trim each dump to functions defined in the user's source, dropping header/library functions; strip forced -lineno annotations from GIMPLE (tree/IPA) dumps when Line Numbers is off, leaving RTL untouched. - Exclude passes with empty output - Add a GccDumpOutput type, backend unit tests and a cypress test. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>