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]

c++/9114: sparc-solaris2.7: cc1plus crashes on g++.dg/compat/break/bitfield7


>Number:         9114
>Category:       c++
>Synopsis:       sparc-solaris2.7: cc1plus crashes on g++.dg/compat/break/bitfield7
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 31 14:36:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Kaveh Ghazi
>Release:        gcc version 3.4 20021230 (experimental)
>Organization:
>Environment:
sparc-sun-solaris2.7
>Description:
When running the g++ testsuite, I get this failure:

 > FAIL: g++.dg/compat/break/bitfield7 y_tst.o compile
 > UNRESOLVED: g++.dg/compat/break/bitfield7 x_tst.o-y_tst.o link 
 > UNRESOLVED: g++.dg/compat/break/bitfield7 x_tst.o-y_tst.o execute 

as seen here:
http://gcc.gnu.org/ml/gcc-testresults/2002-12/msg01296.html

The g++.log file shows:

 > /teal/caip5/ghazi/gcc-testing/egcc-CVS20021230/gcc/testsuite/g++.dg/compat/break/bitfield7_y.C: >  In function `void bitfield7_y(U*)':
 > /teal/caip5/ghazi/gcc-testing/egcc-CVS20021230/gcc/testsuite/g++.dg/compat/break/bitfield7_y.C: > 7: internal compiler error: in simplify_gen_subreg, at simplify-rtx.c:2637
 > Please submit a full bug report,

>How-To-Repeat:
Compile using:

cc1plus -fpreprocessed bitfield7_y.ii -quiet -dumpbase bitfield7_y.C -auxbase-strip y_tst.o -w -version -fmessage-length=0 -o bitfield7_y.s

# 1 "/teal/caip5/ghazi/gcc-testing/egcc-CVS20021230/gcc/testsuite/g++.dg/compat/break/bitfield7_y.C"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "/teal/caip5/ghazi/gcc-testing/egcc-CVS20021230/gcc/testsuite/g++.dg/compat/break/bitfield7_y.C"
extern "C" void abort (void);

# 1 "/teal/caip5/ghazi/gcc-testing/egcc-CVS20021230/gcc/testsuite/g++.dg/compat/break/bitfield7.h" 1
union U {
  int i: 4096;
};
# 4 "/teal/caip5/ghazi/gcc-testing/egcc-CVS20021230/gcc/testsuite/g++.dg/compat/break/bitfield7_y.C" 2

void bitfield7_y (U* u)
{
  if (u[0].i != 7)
    abort ();
  if (u[1].i != 8)
    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]