public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/64551] Segfault in target_opts_for_fn (from ipa_icf::sem_function::equals_private) Date: Fri, 09 Jan 2015 22:35:00 -0000 [thread overview] Message-ID: <bug-64551-4-grOnx1hPjI@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-64551-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64551 Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hubicka at gcc dot gnu.org --- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> --- Hello. Sorry for such issue during Friday evening. The problem is that for target compiler, target_option_default_node == NULL. I am not so familiar with options if this is correct situation? Anyway, following suggested patch return NULL as cl_target_option that compared correctly: diff --git a/gcc/tree.h b/gcc/tree.h index e9af9bf..d3f13e8 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -4678,6 +4678,10 @@ target_opts_for_fn (const_tree fndecl) tree fn_opts = DECL_FUNCTION_SPECIFIC_TARGET (fndecl); if (fn_opts == NULL_TREE) fn_opts = target_option_default_node; + + if (fn_opts == NULL_TREE) + return NULL; + return TREE_TARGET_OPTION (fn_opts); } Martin >From gcc-bugs-return-472681-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jan 09 23:22:12 2015 Return-Path: <gcc-bugs-return-472681-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 24214 invoked by alias); 9 Jan 2015 23:22:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 24116 invoked by uid 48); 9 Jan 2015 23:22:05 -0000 From: "egall at gwmail dot gwu.edu" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libgomp/60670] omp.h may differ between multilibs Date: Fri, 09 Jan 2015 23:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgomp X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: egall at gwmail dot gwu.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: <bug-60670-4-mHA2s8EkCh@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-60670-4@http.gcc.gnu.org/bugzilla/> References: <bug-60670-4@http.gcc.gnu.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-01/txt/msg00675.txt.bz2 Content-length: 993 https://gcc.gnu.org/bugzilla/show_bug.cgi?id`670 Eric Gallager <egall at gwmail dot gwu.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |egall at gwmail dot gwu.edu --- Comment #9 from Eric Gallager <egall at gwmail dot gwu.edu> --- (In reply to ro@CeBiTec.Uni-Bielefeld.DE from comment #2) > > --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- > > Or the header needs to include all variants with proper #ifdef-ery > > This is difficult for a header generated per multilib at build time. > GNU diff can can merge two C/C++ header files with the proper ifdef-ery: see: http://www.gnu.org/software/diffutils/manual/html_mono/diff.html#If-then-else and also: http://www.gnu.org/software/diffutils/manual/html_mono/diff.html#Detailed%20If-then-else This could be done as part of the generation of the header at build time.
next prev parent reply other threads:[~2015-01-09 22:35 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-64551-4@http.gcc.gnu.org/bugzilla/> 2015-01-09 17:04 ` renlin at gcc dot gnu.org 2015-01-09 18:05 ` renlin at gcc dot gnu.org 2015-01-09 21:41 ` sje at gcc dot gnu.org 2015-01-09 22:35 ` marxin at gcc dot gnu.org [this message] 2015-01-12 9:29 ` ubizjak at gmail dot com 2015-01-12 13:22 ` ktkachov at gcc dot gnu.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=bug-64551-4-grOnx1hPjI@http.gcc.gnu.org/bugzilla/ \ --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).