public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "toon at moene dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/44149] lto1: internal compiler error: in lto_symtab_merge_decls_1, at lto-symtab.c:610 Date: Sun, 16 May 2010 18:51:00 -0000 [thread overview] Message-ID: <20100516185111.21538.qmail@sourceware.org> (raw) In-Reply-To: <bug-44149-17017@http.gcc.gnu.org/bugzilla/> ------- Comment #3 from toon at moene dot org 2010-05-16 18:51 ------- It might be useful to compare the two decls that invoke the mismatch that triggers the gcc_assert: prevailing->decl is: <function_decl 0x7fb0f574f900 convect_satmixratio type <function_type 0x7fb0f5786b28 type <void_type 0x7fb0f584cd20 VOID align 8 symtab 0 alias set -1 canonical type 0x7fb0f584cd20 pointer_to_this <pointer_type 0x7fb0f584cdc8>> QI size <integer_cst 0x7fb0f583d758 constant 8> unit size <integer_cst 0x7fb0f583d780 constant 1> align 8 symtab 0 alias set -1 canonical type 0x7fb0f5786b28> public external QI file bkfconv.f90 line 517 col 0 align 8> whereas e->decl is: <function_decl 0x7fb0f574f600 convect_satmixratio type <function_type 0x7fb0f5763b28 type <void_type 0x7fb0f584cd20 VOID align 8 symtab 0 alias set -1 canonical type 0x7fb0f584cd20 pointer_to_this <pointer_type 0x7fb0f584cdc8>> QI size <integer_cst 0x7fb0f583d758 constant 8> unit size <integer_cst 0x7fb0f583d780 constant 1> align 8 symtab 0 alias set -1 canonical type 0x7fb0f5763b28 arg-types <tree_list 0x7fb0f5754bb8 value <reference_type 0x7fb0f5750738> chain <tree_list 0x7fb0f5754be0 value <pointer_type 0x7fb0f5763bd0> chain <tree_list 0x7fb0f5754c08 value <pointer_type 0x7fb0f5764000> chain <tree_list 0x7fb0f5754c30 value <pointer_type 0x7fb0f57643f0> chain <tree_list 0x7fb0f5754c58 value <pointer_type 0x7fb0f57647e0> chain <tree_list 0x7fb0f5754c80>>>>>>> nothrow public static QI file bkfconv.f90 line 400 col 0 align 8 arguments <parm_decl 0x7fb0f5760660 klon type <reference_type 0x7fb0f5750738 type <integer_type 0x7fb0f584c498> unsigned restrict DI size <integer_cst 0x7fb0f583da50 constant 64> unit size <integer_cst 0x7fb0f583da78 constant 8> align 64 symtab 0 alias set -1 canonical type 0x7fb0f5750738> readonly used unsigned DI passed-by-reference file bkfconv.f90 line 400 col 0 size <integer_cst 0x7fb0f583da50 64> unit size <integer_cst 0x7fb0f583da78 8> align 64 context <function_decl 0x7fb0f574f600 convect_satmixratio> arg-type <reference_type 0x7fb0f5750738> chain <parm_decl 0x7fb0f57606e8 ppres type <pointer_type 0x7fb0f57653f0> readonly used unsigned DI passed-by-reference file bkfconv.f90 line 400 col 0 size <integer_cst 0x7fb0f583da50 64> unit size <integer_cst 0x7fb0f583da78 8> align 64 context <function_decl 0x7fb0f574f600 convect_satmixratio> arg-type <pointer_type 0x7fb0f5763bd0> chain <parm_decl 0x7fb0f5760770 pt>>> result <result_decl 0x7fb0f5752180 D.2157 type <void_type 0x7fb0f584cd20> ignored VOID file bkfconv.f90 line 400 col 0 align 8 context <function_decl 0x7fb0f574f600 convect_satmixratio>>> This is found by adding the following to lto-symtab.c: $ svn diff Index: lto-symtab.c =================================================================== --- lto-symtab.c (revision 159454) +++ lto-symtab.c (working copy) @@ -603,8 +603,15 @@ /* Assert it's the only one. */ if (prevailing) for (e = prevailing->next; e; e = e->next) - gcc_assert (e->resolution != LDPR_PREVAILING_DEF_IRONLY - && e->resolution != LDPR_PREVAILING_DEF); + { + if (!(e->resolution != LDPR_PREVAILING_DEF_IRONLY + && e->resolution != LDPR_PREVAILING_DEF)) + { + debug_tree(prevailing->decl); + debug_tree(e->decl); + gcc_assert(0); + } + } /* If there's not a prevailing symbol yet it's an external reference. Happens a lot during ltrans. Choose the first symbol with a -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44149
next prev parent reply other threads:[~2010-05-16 18:51 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-05-15 9:30 [Bug lto/44149] New: " toon at moene dot org 2010-05-15 9:33 ` [Bug lto/44149] " toon at moene dot org 2010-05-16 18:36 ` toon at moene dot org 2010-05-16 18:51 ` toon at moene dot org [this message] 2010-05-17 9:10 ` [Bug lto/44149] -fuse-linker-plugin " rguenth at gcc dot gnu dot org 2010-05-18 18:15 ` ccoutant at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20100516185111.21538.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).