Files
6d91cea3cf Don't crash or enable every GCC dump flag when dumpFlags is incomplete (#9122)
Found while looking at #9118, though independent of it.

`getGccDumpOptions` read `gccDumpOptions.dumpFlags.gimpleFe` unguarded,
even though the type declares `dumpFlags` optional. A compile request
with `produceGccDump: {opened: true}` and no `dumpFlags` threw:

```
TypeError: Cannot read properties of undefined (reading 'gimpleFe')
```

It also treated any flag that was not explicitly `false` as on, so an
API caller passing only `{lineno: false}` got

```
-fdump-tree-all-gimple-address-alias-slim-raw-details-stats-blocks-vops-uid-all-lineno
```

which is raw and slim and "all" at once.

Both have the same cause, so this is one change: a missing `dumpFlags`,
or a missing member, now means off. The frontend always sends every flag
explicitly, so the UI is unaffected; this only changes what the public
API does with a partial request. Two tests added, both failing without
the fix.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: mattgodbolt-molty <mattgodbolt-molty@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 08:19:28 -06:00
..
2026-07-14 08:46:10 +01:00
2021-10-05 01:45:05 +02:00
2019-08-21 01:26:16 +02:00
2025-01-29 10:41:03 -06:00
2021-09-13 20:22:27 +02:00
2024-10-26 17:42:22 +02:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2026-02-08 12:50:20 +01:00
2024-03-08 22:25:09 -06:00