This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
optimization/3027: gcc causes bus error on an ultra sparc architecture
- To: gcc-gnats at gcc dot gnu dot org
- Subject: optimization/3027: gcc causes bus error on an ultra sparc architecture
- From: mal at mis dot mpg dot de
- Date: 1 Jun 2001 14:13:23 -0000
- Reply-To: mal at mis dot mpg dot de
>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: