This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

optimization/3027: gcc causes bus error on an ultra sparc architecture



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]