This is an archive of the discontinued LLVM Phabricator instance.

Remove a workaround for an old GCC bug.
ClosedPublic

Authored by ruiu on Jul 10 2018, 12:36 PM.

Details

Summary

This workaround is for GCC 5.4.1. Without this workaround, lld will
produce larger .gdb_index sections for object files compiled with the
buggy version of the compiler.

Since it is not for correctness, and it affects only debug builds (since
you are generating .gdb_index sections), perhaps the hack shouldn't have been
added in the first place. At least, I think it is time to remove this hack.

Diff Detail

Repository
rL LLVM

Event Timeline

ruiu created this revision.Jul 10 2018, 12:36 PM
grimar accepted this revision.Jul 11 2018, 1:40 AM

LGTM.

This revision is now accepted and ready to land.Jul 11 2018, 1:40 AM
This revision was automatically updated to reflect the committed changes.
lld/trunk/ELF/SyntheticSections.cpp