public inbox for jit@gcc.gnu.org
 help / color / mirror / Atom feed
From: David Malcolm <dmalcolm@redhat.com>
To: jit@gcc.gnu.org, gcc-patches@gcc.gnu.org
Cc: David Malcolm <dmalcolm@redhat.com>
Subject: [PATCH 2/3] PR jit/64810: support DImode on arm
Date: Thu, 01 Jan 2015 00:00:00 -0000	[thread overview]
Message-ID: <1422616260-38323-1-git-send-email-dmalcolm@redhat.com> (raw)
In-Reply-To: <1422616184-38258-1-git-send-email-dmalcolm@redhat.com>

jit_langhook_type_for_mode was failing for DImode on arm
(see via a segfault in test-expressions.c.exe in the jit testsuite).

A fix is to add handling for:
  mode == TYPE_MODE (long_long_integer_type_node)
to the existing checks.

gcc/jit/ChangeLog:
	PR jit/64810
	* dummy-frontend.c (jit_langhook_type_for_mode): Support
	TYPE_MODE (long_long_integer_type_node).
---
 gcc/jit/dummy-frontend.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/jit/dummy-frontend.c b/gcc/jit/dummy-frontend.c
index 9f799d3..8f7d06a 100644
--- a/gcc/jit/dummy-frontend.c
+++ b/gcc/jit/dummy-frontend.c
@@ -167,6 +167,9 @@ jit_langhook_type_for_mode (enum machine_mode mode, int unsignedp)
   if (mode == TYPE_MODE (long_integer_type_node))
     return unsignedp ? long_unsigned_type_node : long_integer_type_node;
 
+  if (mode == TYPE_MODE (long_long_integer_type_node))
+    return unsignedp ? long_long_unsigned_type_node : long_long_integer_type_node;
+
   if (COMPLEX_MODE_P (mode))
     {
       if (mode == TYPE_MODE (complex_float_type_node))
-- 
1.8.5.3

      parent reply	other threads:[~2015-01-30 11:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-01  0:00 [PATCH 1/3] PR jit/64810: driver, arm, jit: configure-time default options David Malcolm
2015-01-01  0:00 ` Joseph Myers
2015-01-01  0:00 ` [PATCH 3/3] PR jit/64810: fix for arm_option_override David Malcolm
2015-01-01  0:00   ` Richard Earnshaw
2015-01-01  0:00 ` David Malcolm [this message]

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=1422616260-38323-1-git-send-email-dmalcolm@redhat.com \
    --to=dmalcolm@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jit@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).