https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81968
--- Comment #81 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> --- > --- Comment #79 from rguenther at suse dot de <rguenther at suse dot de> --- > On Thu, 12 Apr 2018, ro at CeBiTec dot Uni-Bielefeld.DE wrote: [...] >> Since trying to fix the initial issue is out of scope for GCC 8, there >> are two possible fixes: >> >> * Just copy the .comment section as well. Turns out to be trivial, and >> the attached patch does just that. > > Sounds good - I suppose identical .comment sections are merged in the > final link. Indeed. E.g. in cc1 the .comment section is just GCC: (GNU) 8.0.1 20180411 (experimental) [trunk revision 259325] as: Studio 12.6 Compiler Common 12.6 SunOS_i386 st_017 03/03/2018 GCC: (GNU) 4.9.0 GCC: (GNU) 7.1.0 ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.3143 so the space cost is acceptable.