public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Tim Prince <tprince@computer.org>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: c/7723: Internal compiler error - Pentium3 sse - gcc 3.2
Date: Mon, 26 Aug 2002 06:56:00 -0000	[thread overview]
Message-ID: <20020826125601.21153.qmail@sources.redhat.com> (raw)

The following reply was made to PR middle-end/7723; it has been noted by GNATS.

From: Tim Prince <tprince@computer.org>
To: morandini@aero.polimi.it, gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: c/7723: Internal compiler error - Pentium3 sse - gcc 3.2
Date: Mon, 26 Aug 2002 05:52:13 -0700

 On Monday 26 August 2002 03:01, morandini@aero.polimi.it wrote:
 > >Number:         7723
 > >Category:       c
 > >Synopsis:       Internal compiler error - Pentium3 sse - gcc 3.2
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       medium
 > >Responsible:    unassigned
 > >State:          open
 > >Class:          ice-on-legal-code
 > 
 > >Description:
 >
 > 1)
 > with this code:
 > /*-------------------*/
 > typedef int v4sf __attribute__ ((mode(V4SF)));
 > int main(void) {
 > 	v4sf a={0.,0.,0.,0.};
 > 	return 0;
 > };
 > /*------------------*/
 >
 > marco@pc-31c:~> gcc -msse -march=pentium3 -mfpmath=sse main1.c: In function
 > `main': main1.c:5: Internal compiler error in instantiate_virtual_regs_1,
 > at function.c:3972
 >
 > 2)this code is compiled, but the program gives a SIGSEGV. What's wrong?
 > (binutils  2.13.90.0.4 20020814)
 > /*------------------*/
 > typedef int v4sf __attribute__ ((mode(V4SF)));
 > int main(void) {
 > 	v4sf a={1.,1.,1.,1.};
 > 	v4sf b={2.,2.,2.,2.};
 > 	v4sf c;
 > 	c=__builtin_ia32_addss (a, b);
 > 	return 0;
 > };
 Some might argue about characterizing this as "legal code."  Perhaps it 
 should be flagged as an error.  gcc doesn't support alignment in main(), so 
 it seems that any code which is not standard C and depends on alignment might 
 not be "legal."
 -- 
 Tim Prince


             reply	other threads:[~2002-08-26 12:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-26  6:56 Tim Prince [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-08-27  1:47 Tim Prince
2002-08-26  8:36 Marco Morandini
2002-08-26  5:38 morandini

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=20020826125601.21153.qmail@sources.redhat.com \
    --to=tprince@computer.org \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@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).