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]

bootstrap/10808: 3.4 irix6.5 bootstrap failure


>Number:         10808
>Category:       bootstrap
>Synopsis:       3.4 irix6.5 bootstrap failure
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 16 01:16:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     David Billinghurst
>Release:        unknown-1.0
>Organization:
>Environment:
mips-sgi-irix6.5
>Description:
irix6.5 bootstrap of 3.4 cvs of 20040515 fails in stage2 with

/d5/billingd/obj/gcc/gcc/xgcc -B/d5/billingd/obj/gcc/gcc/ -B/d5/billingd/tmp/gcc/mips-sgi-irix6.5/bin/ -B/d5/billingd/tmp/gcc/mips-sgi-irix6.5/lib/ -isystem /d5/billingd/tmp/gcc/mips-sgi-irix6.5/include -isystem /d5/billingd/tmp/gcc/mips-sgi-irix6.5/sys-include -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include   -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I/d2/billingd/src/gcc/gcc -I/d2/billingd/src/gcc/gcc/. -I/d2/billingd/src/gcc/gcc/config -I/d2/billingd/src/gcc/gcc/../include  -DL_negdi2 -c /d2/billingd/src/gcc/gcc/libgcc2.c -o libgcc/./_negdi2.o

/d2/billingd/src/gcc/gcc/libgcc2.c: In function `__negdi2':
/d2/billingd/src/gcc/gcc/libgcc2.c:72: internal compiler error: Segmentation fault

The reduced test case is
typedef int SItype __attribute__ ((mode (SI)));
typedef unsigned int USItype __attribute__ ((mode (SI)));
typedef int DItype __attribute__ ((mode (DI)));

struct DWstruct {SItype high, low;};

typedef union
{
  struct DWstruct s;
  DItype ll;
} DWunion;

DItype
__negdi2 (DItype u)
{
  DWunion w;
  DWunion uu;

  uu.ll = u;

  w.s.low = -uu.s.low;
  w.s.high = -uu.s.high - ((USItype) w.s.low > 0);

  return w.ll;
}


which fails with

/d5/billingd/obj/gcc/gcc/cc1 -fpreprocessed libgcc2.i -quiet -dumpbase libgcc2.c -auxbase-strip libgcc/./_negdi2.o -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -version -o libgcc2.s
GNU C version 3.4 20030515 (experimental) (mips-sgi-irix6.5)
        compiled by GNU C version 3.4 20030515 (experimental).
GGC heuristics: --param ggc-min-expand=65 --param ggc-min-heapsize=65536
libgcc2.i:15: warning: no previous prototype for `__negdi2'
libgcc2.i: In function `__negdi2':
libgcc2.i:22: internal compiler error: Segmentation fault

>How-To-Repeat:

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