bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug cp-tools/35676] New: internal compiler error: in expand_mult, at e


From: radu dot gcc at ohmi dot org
Subject: [Bug cp-tools/35676] New: internal compiler error: in expand_mult, at expmed.c:3225
Date: 24 Mar 2008 05:04:42 -0000

The environemnt is as follows:

address@hidden:~/src/ssl/rev$ uname -a
Linux guts.ohmi.org 2.6.20-16-generic #2 SMP Tue Dec 18 05:45:12 UTC 2007 i586
GNU/Linux
address@hidden:~/src/ssl/rev$ gcc -v -save-temps -c -o bignum_internal_error.o
bignum_internal_error.c
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
 /usr/lib/gcc/i486-linux-gnu/4.1.2/cc1 -E -quiet -v bignum_internal_error.c
-mtune=generic -fpch-preprocess -o bignum_internal_error.i
ignoring nonexistent directory "/usr/local/include/i486-linux-gnu"
ignoring nonexistent directory
"/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../i486-linux-gnu/include"
ignoring nonexistent directory "/usr/include/i486-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/gcc/i486-linux-gnu/4.1.2/include
 /usr/include
End of search list.
 /usr/lib/gcc/i486-linux-gnu/4.1.2/cc1 -fpreprocessed bignum_internal_error.i
-quiet -dumpbase bignum_internal_error.c -mtune=generic -auxbase-strip
bignum_internal_error.o -version -fstack-protector -fstack-protector -o
bignum_internal_error.s
GNU C version 4.1.2 (Ubuntu 4.1.2-0ubuntu4) (i486-linux-gnu)
        compiled by GNU C version 4.1.2 (Ubuntu 4.1.2-0ubuntu4).
GGC heuristics: --param ggc-min-expand=68 --param ggc-min-heapsize=72581
Compiler executable checksum: c0d954aeefbb96d795ff3f6b3b72ef51
bignum_internal_error.c:5:8: warning: integer constant is too large for its
type
bignum_internal_error.c: In function ‘bignum_iternal_error’:
bignum_internal_error.c:5: warning: integer constant is too large for ‘long’
type
bignum_internal_error.c:5:42: warning: integer constant is too large for its
type
bignum_internal_error.c:5: warning: integer constant is too large for ‘long’
type
bignum_internal_error.c:5: internal compiler error: in expand_mult, at
expmed.c:3225
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.
Preprocessed source stored into /tmp/ccxsmqYR.out file, please attach this to
your bugreport.


The offending source is:

---------------8<--- bignum_internal_error.c ---------
unsigned int bignum_iternal_error(unsigned int XD, unsigned int OD)
{
  unsigned int YO;
  YO = 3985902957580613741754532527*XD - 4019168057170139953753848482*OD;
  return YO;
}
---------------8<------------

the pre-processed file follows:

---------------8<--- /tmp/ccxsmqYR.out ---------
// /usr/lib/gcc/i486-linux-gnu/4.1.2/cc1 -fpreprocessed bignum_internal_error.i
-quiet -dumpbase bignum_internal_error.c -mtune=generic -auxbase-strip
bignum_internal_error.o -version -fstack-protector -fstack-protector -o -
-frandom-seed=0
# 1 "bignum_internal_error.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "bignum_internal_error.c"

unsigned int bignum_iternal_error(unsigned int XD, unsigned int OD)
{
  unsigned int YO;
  YO = 3985902957580613741754532527*XD - 4019168057170139953753848482*OD;
  return YO;
}
---------------8<------------

I would have expected the numbers involved to be truncated to 32-bits (after
all, the warning "integer constant is too large for ‘long’ type" was issued),
but would not expect a compiler crash.

I have tried a much older compiler (gcc (GCC) 3.2.2 20030222 (Red Hat Linux
3.2.2-5)) and it does not crash, but have not tried other versions.

Regards


-- 
           Summary: internal compiler error: in expand_mult, at
                    expmed.c:3225
           Product: classpath
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: cp-tools
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: radu dot gcc at ohmi dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35676





reply via email to

[Prev in Thread] Current Thread [Next in Thread]