public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: mal@mis.mpg.de
To: gcc-gnats@gcc.gnu.org
Subject: optimization/3027: gcc causes bus error on an ultra sparc architecture
Date: Fri, 01 Jun 2001 07:16:00 -0000	[thread overview]
Message-ID: <20010601141323.10738.qmail@sourceware.cygnus.com> (raw)

>Number:         3027
>Category:       optimization
>Synopsis:       gcc causes bus error on an ultra sparc architecture
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 01 07:16:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Maike Loehndorf
>Release:        2.95.2 and 2.95.3
>Organization:
>Environment:
sun ultra sparc 80,SunOS 5.7  
>Description:
when compiling with
g++ -mcpu=ultrasparc -O -Wall bus.cc
the resulting program causes a bus error
>How-To-Repeat:
# 1 "bus.cc"



int func( int a,  int b, int c, int d , int e, int f, double g)
{
  if (g < (double)f)
    return c;
  else
    return b;
}

int main(int argc, char** argv) {

  
  int bla = func(0, 0, 0, 0, 0, 0, 0.0);
  
  return 0;
}


  

>Fix:
use-mcpu=supersparc or do not optimize
>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2001-06-01  7:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-01  7:16 mal [this message]
2001-11-22 12:06 ciceron
2001-11-22 13:57 ciceron
2002-04-01 22:14 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=20010601141323.10738.qmail@sourceware.cygnus.com \
    --to=mal@mis.mpg.de \
    --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).