public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/57896] [4.8 Regression] ICE in expand_expr_real_2 Date: Thu, 20 Feb 2014 10:57:00 -0000 [thread overview] Message-ID: <bug-57896-4-JvOLuC51WI@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-57896-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57896 --- Comment #22 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Uroš Bizjak from comment #21) > --- config/i386/i386.c (revision 207935) > +++ config/i386/i386.c (working copy) > @@ -40666,9 +40666,9 @@ ix86_vectorize_vec_perm_const_ok (enum machine_mod > if (!d.one_operand_p) > d.op1 = gen_raw_REG (d.vmode, LAST_VIRTUAL_REGISTER + 3); > > - start_sequence (); > + init_dummy_function_start (); > ret = ix86_expand_vec_perm_const_1 (&d); > - end_sequence (); > + expand_dummy_function_end (); > > return ret; > } > --cut here-- > > Jakub, what do you think about this patch? IMHO that is way too expensive. So, say expand_vec_perm_interleave2 is only called with d->testing_p from ix86_vectorize_vec_perm_const_ok, and thus I'd say something like: if (!d->testing_p) { dremap.target = gen_reg_rtx (dremap.vmode); dfinal.op0 = gen_lowpart (dfinal.vmode, dremap.target); } dfinal.op1 = dfinal.op0; should fix expand_vec_perm_interleave2. I think dfinal.op0 should have dfinal.vmode already from the caller (we can easily perhaps gcc_checking_assert double check it when testing the patch). >From gcc-bugs-return-444334-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Feb 20 10:57:16 2014 Return-Path: <gcc-bugs-return-444334-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 11783 invoked by alias); 20 Feb 2014 10:57:16 -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 11718 invoked by uid 48); 20 Feb 2014 10:57:11 -0000 From: "vogt at linux dot vnet.ibm.com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug go/60288] gccgo crashes compiling '*func_ptr(0)' Date: Thu, 20 Feb 2014 10:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: go X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vogt at linux dot vnet.ibm.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ian at airs dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: <bug-60288-4-RibpBO22rB@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-60288-4@http.gcc.gnu.org/bugzilla/> References: <bug-60288-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: 2014-02/txt/msg02091.txt.bz2 Content-length: 298 http://gcc.gnu.org/bugzilla/show_bug.cgi?id`288 --- Comment #1 from Dominik Vogt <vogt at linux dot vnet.ibm.com> --- > So it looks like gccgo reads the expression as > > (*pg)(0) ^^^^^^^^ I meant -> (*(&g))(0) > while golang reads it as > > *(pg(0)) ^^^^^^^^ -> *(&(g(0)))
next prev parent reply other threads:[~2014-02-20 10:57 UTC|newest] Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-07-15 6:44 [Bug c/57896] New: ICE in " zeccav at gmail dot com 2013-07-15 9:37 ` [Bug c/57896] " mikpe at it dot uu.se 2013-07-15 14:23 ` mikpe at it dot uu.se 2013-07-15 15:32 ` glisse at gcc dot gnu.org 2013-07-15 16:32 ` glisse at gcc dot gnu.org 2013-07-15 23:42 ` zeccav at gmail dot com 2013-07-16 6:19 ` zeccav at gmail dot com 2014-02-19 8:11 ` [Bug c/57896] [4.8 Regression] ICE " mpolacek at gcc dot gnu.org 2014-02-19 17:59 ` [Bug target/57896] " ubizjak at gmail dot com 2014-02-19 18:06 ` ubizjak at gmail dot com 2014-02-19 18:34 ` ubizjak at gmail dot com 2014-02-19 18:37 ` [Bug middle-end/57896] " ubizjak at gmail dot com 2014-02-19 19:19 ` mpolacek at gcc dot gnu.org 2014-02-20 9:29 ` ubizjak at gmail dot com 2014-02-20 9:58 ` ubizjak at gmail dot com 2014-02-20 10:15 ` ubizjak at gmail dot com 2014-02-20 10:27 ` [Bug target/57896] " jakub at gcc dot gnu.org 2014-02-20 10:41 ` jakub at gcc dot gnu.org 2014-02-20 10:45 ` ubizjak at gmail dot com 2014-02-20 10:57 ` jakub at gcc dot gnu.org [this message] 2014-02-20 11:01 ` ubizjak at gmail dot com 2014-02-20 11:07 ` [Bug target/57896] [4.7/4.8/4.9 " ubizjak at gmail dot com 2014-02-20 11:42 ` jakub at gcc dot gnu.org 2014-02-20 12:00 ` jakub at gcc dot gnu.org 2014-02-20 12:09 ` ubizjak at gmail dot com 2014-02-20 13:00 ` jakub at gcc dot gnu.org 2014-02-20 13:12 ` ubizjak at gmail dot com 2014-02-20 17:25 ` ubizjak at gmail dot com 2014-02-20 20:40 ` jakub at gcc dot gnu.org 2014-02-20 20:41 ` jakub at gcc dot gnu.org 2014-02-20 20:42 ` [Bug target/57896] [4.7 " jakub at gcc dot gnu.org 2014-02-21 7:56 ` uros at gcc dot gnu.org 2014-02-21 8:01 ` ubizjak at gmail dot com
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-57896-4-JvOLuC51WI@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).