On Tue, 29 Nov 2016, Georg-Johann Lay wrote:
> This is a fix for a wrong warning from -Wlto-type-mismatch that reports a type
> mismatch for two built-in functions.
> The avr backend has several built-ins that have the same asm name because
> their assembler implementation in libgcc is exactly the same. The prototypes
> might differ, however.
> This patch skips the warning for built-in types as discussed in
> Testing against avr-unknown-none, this resolves all FAILs because of that
> warning, e.g. gcc.target/avr/torture/builtins-5-countlsfx.c
> Ok for trunk?
> PR lto/78562
> * lto-symtab.c (lto_symtab_merge_decls_2): Don't diagnose type
> mismatch if the two types are built-in.
Richard Biener <rguent...@suse.de>
SUSE LINUX GmbH, GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB
21284 (AG Nuernberg)