[PATCH] Don't make -gsplit-dwarf imply -g

Fangrui Song maskray@google.com
Wed May 13 15:50:29 GMT 2020


On 2020-05-13, Eric Botcazou wrote:
>> Did I mention I dislike -fsplit-dwarf? ;)
>
>Seconded, this will be confusing for almost all users.  Since the option only
>affects debug info generation, it should be prefixed with 'g' in any case.

Updating the semantics of -gsplit-dwarf is actually my favorite as
well:)

-gsplit-dwarf is not common. Many uses have separate -g. Let's change it.

Attached the patch.


(I also wish -gdwarf-5 did not imply -g but the ship may have shipped.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Don-t-make-gsplit-dwarf-imply-g.patch
Type: text/x-diff
Size: 2156 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200513/0418f244/attachment.bin>


More information about the Gcc-patches mailing list