http://bugzilla.novell.com/show_bug.cgi?id=571441 http://bugzilla.novell.com/show_bug.cgi?id=571441#c0 Summary: gcc reports internal error Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: i386 OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: drg@illinois.edu QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 #if 0 Name this file bug.c and compile as shown below: $ cat /etc/issue Welcome to openSUSE 11.2 "Emerald" - Kernel \r (\l). $ uname -a Linux suse32 2.6.31.8-0.1-default #1 SMP 2009-12-15 23:55:40 +0100 i686 i686 i386 GNU/Linux $ gcc -v Using built-in specs. Target: i586-suse-linux Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.4 --enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-suffix=-4.4 --enable-linux-futex --without-system-libunwind --with-arch-32=i586 --with-tune=generic --build=i586-suse-linux Thread model: posix gcc version 4.4.1 [gcc-4_4-branch revision 150839] (SUSE Linux) $ gcc -c -Wall -Werror -O2 bug.c gcc: Internal error: Killed (program cc1) Please submit a full bug report. See http://bugs.opensuse.org/ for instructions. #endif enum { errpile, errlg }; enum { t_COL, t_MAT }; typedef unsigned int size_t; typedef unsigned long pari_ulong; typedef long *GEN; typedef pari_ulong pari_sp; extern pari_sp avma,bot,top; void pari_err(long numerr, ...); GEN eltmul_get_table(GEN nf, GEN x); GEN dvmdii(GEN x, GEN y, GEN *z); GEN mulii(GEN x, GEN y); GEN addii_sign(GEN x, long sx, GEN y, long sy); GEN shallowcopy(GEN x); __inline__ static GEN new_chunk(size_t x) { const GEN z = ((GEN) avma) - x; if (x > ((avma-bot)>>2)) pari_err(errpile); avma = (pari_sp)z; return z; } __inline__ static GEN addii(GEN x, GEN y) { return addii_sign(x, ((((long*)(x))[1]) >> ((1L<<(2 +3)) - 2)), y, ((((long*)(y))[1]) >> ((1L<<(2 +3)) - 2))); } __inline__ static GEN cgetg(long x, long y) { const GEN z = new_chunk((size_t)x); z[0] = (((pari_ulong)(y)) << ((1L<<(2 +3)) - 7)) | x; return z; } long int_elt_val(GEN nf, GEN x, GEN p, GEN b, GEN *newx) { long i,k,w, N = ((long)((long)(((pari_ulong*)(nf[1]))[0] & ((1UL<<((1L<<(2 +3)) - 1 - 7))-1)))-3); GEN r,a,y,mul; mul = (((long)((((pari_ulong*)(b))[0]) >> ((1L<<(2 +3)) - 7))) == t_MAT)? b: eltmul_get_table(nf, b); y = cgetg(N+1, t_COL); x = shallowcopy(x); for(w=0;; w++) { for (i=1; i<=N; i++) { a = mulii((((GEN*) (x))[1]), (((GEN**)(mul))[1][i])); for (k=2; k<=N; k++) a = addii(a, mulii((((GEN*) (x))[k]), (((GEN**)(mul))[k][i]))); (((GEN*) (y))[i]) = dvmdii(a,p,&r); if (((((long*)(r))[1]) >> ((1L<<(2 +3)) - 2))) { if (newx) *newx = x; return w; } } r=x; x=y; y=r; } } Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.