public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: kenner@vlsi1.ultra.nyu.edu (Richard Kenner)
To: gcc@gcc.gnu.org
Subject: Problem in hfa_element_mode for IA64
Date: Sun, 31 Mar 2002 14:13:00 -0000	[thread overview]
Message-ID: <10203312011.AA24708@vlsi1.ultra.nyu.edu> (raw)

Consider the following tiny Ada program (this can't be reproduced in C
since we don't have arguments of ARRAY_TYPE):

procedure Tbg0331 is
   type Arr1 is array (1..1) of Float;
   procedure Foo (X: Arr1);
   pragma Import (Ada, Foo);
   X: Arr1;
begin
   Foo (X);
end Tbg0331;

This blows up because hfa_element_mdoe when applied to type Arr1 says
it's SFmode since it's an array of SFmode.

But Arr1 is SImode since layout_type sets its mode to an integer mode.

So we try to call emit_move_insn with SFmode output and SImode input
and that aborts.

Who's wrong here?

             reply	other threads:[~2002-03-31 20:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-31 14:13 Richard Kenner [this message]
2002-03-31 14:52 ` Richard Henderson
2002-03-31 15:49 Richard Kenner
2002-03-31 16:06 ` Florian Weimer
2002-03-31 18:58 Richard Kenner

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=10203312011.AA24708@vlsi1.ultra.nyu.edu \
    --to=kenner@vlsi1.ultra.nyu.edu \
    --cc=gcc@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).