https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60984
--- Comment #26 from Jan Hubicka <hubicka at ucw dot cz> --- > Thanks for tracking this down. I will test it as well. AIX is a very good > canary for these types of bugs. Yeah, the difference here is that we produce a lot more local aliases on AIX than elsewhere. We discussed it previously - it is because middle-end believes that comdat mechanizm is missing and only WEAK is used. If AIX linker has mechanizm to throw away unused comdat functions, we ought to model this to the middle-end. (perhaps something like unreachable_symbol_removal_in_linker target hook or so) Honza