https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97771
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- That is about the assembler warning (which isn't fatal though); for the uses in inline functions or templates anothing thing is that the comdat sections from comdat take priority over the section attribute. Now, when assembler doesn't support comdat groups, there is really no way around it, section attribute has to be ignored and one needs to use .gnu.linkonce.* etc. sections, because otherwise it wouldn't act as comdat. With comdat groups, we could use the section name from the section attribute and just put it into the comdat group, but don't do that.