public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "burnus at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/45087] -fwhole-program: Miscompiled due to wrong decls Date: Wed, 28 Jul 2010 09:32:00 -0000 [thread overview] Message-ID: <20100728093205.19880.qmail@sourceware.org> (raw) In-Reply-To: <bug-45087-13404@http.gcc.gnu.org/bugzilla/> ------- Comment #2 from burnus at gcc dot gnu dot org 2010-07-28 09:32 ------- Patch. It fixes also test_fpu.f90 - however, for gas_dyn.f90 it causes a segfault: ==24597== Invalid read of size 8 ==24597== at 0x5A8DF3: ggc_set_mark (ggc-page.c:600) ==24597== by 0x73CD54: gt_ggc_mx_eh_status (gtype-desc.c:714) ==24597== by 0x73DA25: gt_ggc_mx_function (gtype-desc.c:943) ==24597== by 0x553410: gt_ggc_mx_lang_tree_node (gt-fortran-f95-lang.h:293) ==24597== by 0x73D94D: gt_ggc_m_P9tree_node4htab (gtype-desc.c:2544) ==24597== by 0x553EAD: gt_ggc_m_P17module_htab_entry4htab (gtype-fortran.h:98) Index: gcc/fortran/trans-decl.c =================================================================== --- gcc/fortran/trans-decl.c (revision 162619) +++ gcc/fortran/trans-decl.c (working copy) @@ -1409,7 +1409,7 @@ gfc_get_extern_function_decl (gfc_symbol gsym = gfc_find_gsymbol (gfc_gsym_root, sym->name); if (gfc_option.flag_whole_file - && !sym->attr.use_assoc + && (!sym->attr.use_assoc || sym->attr.if_source != IFSRC_DECL) && !sym->backend_decl && gsym && gsym->ns && ((gsym->type == GSYM_SUBROUTINE) || (gsym->type == GSYM_FUNCTION)) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45087
next prev parent reply other threads:[~2010-07-28 9:32 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-07-26 17:27 [Bug fortran/45087] New: " burnus at gcc dot gnu dot org 2010-07-26 21:04 ` [Bug fortran/45087] " burnus at gcc dot gnu dot org 2010-07-28 9:32 ` burnus at gcc dot gnu dot org [this message] 2010-07-28 12:35 ` burnus at gcc dot gnu dot org 2010-07-28 13:14 ` burnus at gcc dot gnu dot org 2010-07-28 13:52 ` burnus at gcc dot gnu dot org 2010-07-28 20:34 ` burnus at gcc dot gnu dot org 2010-07-29 10:26 ` mikael at gcc dot gnu dot org 2010-07-29 21:08 ` burnus at gcc dot gnu dot org 2010-07-29 21:08 ` burnus 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=20100728093205.19880.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).