-gdwarf-version not working properly in GCC 11
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Arm Embedded Toolchain |
New
|
Undecided
|
Unassigned |
Bug Description
I'm using a debugger which doesn't support DWARF 5 so I used the -gdwarf-version (-gdwarf-4) option since DWARF 5 has become the default in GCC 11 (GNU Toolchain for the Arm Architecture 11.2-2022.02 (arm-11.16)) 11.2.1 20220111)
Unfortunately, although the my object files are DWARF 4, I still end up with object files from libraries which have debug information with DWARF 5 which renders the option useless.
In order to make it work I had to use "arm-none-
For example <install folder>
This seems to be reason why the size of the whole install folder in GCC 11 is almost 3.6 GB while GCC 10 is less than 800 MB.