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 tree-optimization/48098] [4.6 Regression] internal compiler error: in build_vector_from_val, at tree.c:1380
Date: Mon, 14 Mar 2011 09:59:00 -0000	[thread overview]
Message-ID: <bug-48098-4-L9ocoKiNv1@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-48098-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-14 09:59:32 UTC ---
Just swapping the order of arguments to useless_type_conversion_p works too.
If we consider build_vector_from_val as conversion from sc's type to the inner
type of the vector, then vectype's inner type as outer_type needs to go first:

--- gcc/tree.c.jj    2011-03-11 12:16:39.000000000 +0100
+++ gcc/tree.c    2011-03-14 10:57:21.000000000 +0100
@@ -1376,8 +1376,8 @@ build_vector_from_val (tree vectype, tre
   if (sc == error_mark_node)
     return sc;

-  gcc_assert (useless_type_conversion_p (TREE_TYPE (sc),
-                     TREE_TYPE (vectype)));
+  gcc_assert (useless_type_conversion_p (TREE_TYPE (vectype),
+                     TREE_TYPE (sc)));

   v = VEC_alloc (constructor_elt, gc, nunits);
   for (i = 0; i < nunits; ++i)


  parent reply	other threads:[~2011-03-14  9:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-12 22:48 [Bug tree-optimization/48098] New: " schnetter at gmail dot com
2011-03-12 23:30 ` [Bug tree-optimization/48098] " schnetter at gmail dot com
2011-03-14  9:21 ` [Bug tree-optimization/48098] [4.6 Regression] " jakub at gcc dot gnu.org
2011-03-14  9:29 ` jakub at gcc dot gnu.org
2011-03-14  9:38 ` jakub at gcc dot gnu.org
2011-03-14  9:38 ` jakub at gcc dot gnu.org
2011-03-14  9:39 ` jakub at gcc dot gnu.org
2011-03-14  9:59 ` jakub at gcc dot gnu.org [this message]
2011-03-14 10:43 ` rguenth at gcc dot gnu.org
2011-03-14 10:51 ` rguenth at gcc dot gnu.org
2011-03-14 10:58 ` rguenth at gcc dot gnu.org
2011-03-14 12:22 ` rguenth at gcc dot gnu.org
2011-03-14 12:35 ` rguenth 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-48098-4-L9ocoKiNv1@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: link
Be 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).