This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug lto/56168] [4.8 Regression] GCC seems to disregard -fno-builtin when compiling with LTO


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56168

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> 2013-02-04 12:19:34 UTC ---
Author: rguenth
Date: Mon Feb  4 12:19:25 2013
New Revision: 195709

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195709
Log:
2013-02-04  Richard Guenther  <rguenther@suse.de>

    PR lto/56168
    * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
    node prevail as last resort.
    (lto_symtab_merge_decls): Remove guard on LTRANS here.
    (lto_symtab_prevailing_decl): Builtins are their own prevailing
    decl.

    lto/
    * lto.c (read_cgraph_and_symbols): Do not call lto_symtab_merge_decls
    or lto_fixup_decls at LTRANS time.

    * gcc.dg/lto/pr56168_0.c: New testcase.
    * gcc.dg/lto/pr56168_1.c: Likewise.

Added:
    trunk/gcc/testsuite/gcc.dg/lto/pr56168_0.c
    trunk/gcc/testsuite/gcc.dg/lto/pr56168_1.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/lto-symtab.c
    trunk/gcc/lto/ChangeLog
    trunk/gcc/lto/lto.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]