--dwarf2
This option instructs the compiler to use DWARF 2 debug table format.
The compiler assumes --dwarf3 unless --dwarf2 is explicitly specified.
--dwarf3
‑‑dwarf3.