This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

middle-end/10540: mips-sgi-irix6.5 testsuite failure in gcc.c-torture/execute/20020227-1.c with checking enabled


>Number:         10540
>Category:       middle-end
>Synopsis:       mips-sgi-irix6.5 testsuite failure in gcc.c-torture/execute/20020227-1.c with checking enabled
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 29 14:36:02 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Kaveh Ghazi
>Release:        gcc version 3.3 20030429 (prerelease)
>Organization:
>Environment:
mips-sgi-irix6.5
>Description:
With the 3.3 branch, I'm getting new testsuite failures with checking enabled on mips-sgi-irix6.5 in gcc.c-torture/execute/20020227-1.c.  The errors did NOT happen in a 4/23 version:
http://gcc.gnu.org/ml/gcc-testresults/2003-04/msg01502.html
But they DO happen in a 4/26 version:
http://gcc.gnu.org/ml/gcc-testresults/2003-04/msg01636.html

I'll try and narrow it down a bit more.

>How-To-Repeat:
Configure with --enable-checking and target mips-sgi-irix6.5 and compile 20020227-1.i with:

cc1 -fpreprocessed 20020227-1.i -quiet -dumpbase 20020227-1.c -auxbase 20020227-1 -version -o 20020227-1.s


# 1 "20020227-1.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "20020227-1.c"




typedef __complex__ float cf;
struct x { char c; cf f; } __attribute__ ((__packed__));
extern void f2 (struct x*);
extern void f1 (void);
int
main (void)
{
  f1 ();
  exit (0);
}

void
f1 (void)
{
  struct x s;
  s.f = 1;
  s.c = 42;
  f2 (&s);
}

void
f2 (struct x *y)
{
  if (y->f != 1 || y->c != 42)
    abort ();
}
>Fix:

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