New: .debug_str is used only when optimizing
1 answers - 579 bytes -

String merging is conditionalized on -fmerge-constants, which is turned off for
This is wasteful of space in .debug_info with optimization disabled, on
targets which support string merging. I don't know if it's faster or not; in
the long run, I suspect it's slower, because binaries get so much larger.
If others agree, perhaps the default should be to merge debug info but not
runtime constants. maybe to merge constants by default; I'm not sure
guarding it by !optimize is generally useful.
This is not a regression, I believe.