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]

internal compiler error for egcs 1.1


The following C++ code causes egcs 1.1 to have an internal
compiler error.  The error goes away if I remove -mcpu=ultrasparc.

David Staepelaere


staapa@trinculo 23) more bug.cc
class P {
public:
  P() { y = 0; }
 
  long long int y;
};
 
static void F()
{
    P p;
    long long int d = -1 * p.y;
}
staapa@trinculo 24) /usr/local/egcs/bin/g++ -v -mcpu=ultrasparc bug.cc
Reading specs from
/usr/local/egcs/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.57/specs
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
 /usr/local/egcs/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.57/cpp
-lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus
-D__GNUC_MINOR__=91 -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__
-D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun -D__unix
-Asystem(unix) -Asystem(svr4) -D__EXCEPTIONS -D__sparc_v9__
-D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc) bug.cc
/var/tmp/ccAJ4CZL.ii
GNU CPP version egcs-2.91.57 19980901 (egcs-1.1 release) (sparc)
#include "..." search starts here:
#include <...> search starts here:

/usr/local/egcs/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.57/include/g++
 /usr/local/include
 /usr/local/egcs/sparc-sun-solaris2.6/include
 /usr/local/egcs/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.57/include
 /usr/include
End of search list.
 /usr/local/egcs/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.57/cc1plus
/var/tmp/ccAJ4CZL.ii -quiet -dumpbase bug.cc -mcpu=ultrasparc -version
-o /var/tmp/ccQhR6hr.s
GNU C++ version egcs-2.91.57 19980901 (egcs-1.1 release)
(sparc-sun-solaris2.6) compiled by GNU C version egcs-2.91.57 19980901
(egcs-1.1 release).
bug.cc: In function `void F()':
bug.cc:12: Internal compiler error.
bug.cc:12: Please submit a full bug report to `egcs-bugs@cygnus.com'.
staapa@trinculo 25) uname -a
SunOS trinculo 5.6 Generic_105181-05 sun4u sparc SUNW,Ultra-5_10


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