https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67417
--- Comment #3 from Alan Modra <amodra at gmail dot com> --- Yes, exactly. When a COMDAT group in another file is chosen, the rs6000 predicate current_file_function_operand gets the wrong answer. COMDAT group functions use weak symbols, and weak symbols more generally have the behaviour exhibited here by COMDAT group functions: A symbol defined in the same object file might be overridden by the same symbol defined in another file.