public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: torbjorn.wassberg@swipnet.se
To: gcc-gnats@gcc.gnu.org
Subject: optimization/6845: ICE with -O -march=pentium3/pentium2/athlon
Date: Tue, 28 May 2002 06:56:00 -0000	[thread overview]
Message-ID: <20020528135129.11406.qmail@sources.redhat.com> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1809 bytes --]


>Number:         6845
>Category:       optimization
>Synopsis:       ICE with -O -march=pentium3/pentium2/athlon
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Tue May 28 06:56:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Torbjörn Wassberg
>Release:        gcc version 3.2 20020527 (experimental)
>Organization:
>Environment:
Mandrake 8.2 x86
Configured with: ../gcc/configure --prefix=/usr/local/gcc/ --enable-languages=c
>Description:
I found this when trying to compile lbreakout 2.2.2

It only triggers when using -O or higher together with -march=pentium3, -march=pentium2 or -march=athlon (and perhaps others)

a.c: In function `circle_intersect':
a.c:10: Internal compiler error in ix86_secondary_memory_needed, at config/i386/i386.c:13513
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

I'm not sure if
Vector delta = { pos.x - m.x, pos.y - m.y };
is legal, but it doesn't generate any warnings.
>How-To-Repeat:

>Fix:
Replace
Vector delta = { pos.x - m.x, pos.y - m.y };
with
Vector delta;
delta.x = pos.x - m.x;
delta.y = pos.y - m.y;
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="a.i"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="a.i"

IyAxICJhLmMiCiMgMSAiPGJ1aWx0LWluPiIKIyAxICI8Y29tbWFuZCBsaW5lPiIKIyAxICJhLmMi
CnR5cGVkZWYgc3RydWN0IHsKICAgIGZsb2F0IHgsIHk7Cn0gVmVjdG9yOwoKaW50IGNpcmNsZV9p
bnRlcnNlY3QoIFZlY3RvciBtLCBWZWN0b3IgcG9zKQp7CiAgICBWZWN0b3IgZGVsdGEgPSB7IHBv
cy54IC0gbS54LCBwb3MueSAtIG0ueSB9OwoKICAgIHJldHVybiBkZWx0YS54Owp9Cg==


             reply	other threads:[~2002-05-28 13:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-28  6:56 torbjorn.wassberg [this message]
2002-05-28 11:26 rth
2002-05-28 14:06 rth
2002-05-28 16:36 Torbjörn Wassberg
2002-10-02 13:39 rth

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=20020528135129.11406.qmail@sources.redhat.com \
    --to=torbjorn.wassberg@swipnet.se \
    --cc=gcc-gnats@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).