Re: [PATCH] Fix maybe-uninitialized CodeView LF_INDEX warning

2024-08-13 Thread Jeff Law
On 8/12/24 4:45 PM, Mark Harmstone wrote: Initialize last_type to 0 to silence two spurious maybe-uninitialized warnings. We issue an LF_INDEX continuation subtype for any LF_FIELDLISTs that overflow, so LF_INDEXes will always have a subtype preceding them (and thus last_type will always be se

[PATCH] Fix maybe-uninitialized CodeView LF_INDEX warning

2024-08-12 Thread Mark Harmstone
Initialize last_type to 0 to silence two spurious maybe-uninitialized warnings. We issue an LF_INDEX continuation subtype for any LF_FIELDLISTs that overflow, so LF_INDEXes will always have a subtype preceding them (and thus last_type will always be set). gcc/ * dwarf2codeview.cc (get_type