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]

optimization/3712: abort in gen_umulsi3_highpart



>Number:         3712
>Category:       optimization
>Synopsis:       abort in gen_umulsi3_highpart
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 17 09:26:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        3.1 20010717 (experimental)
>Organization:
>Environment:
System: Linux sykes 2.4.4-SMP #1 SMP Fri Jun 8 09:14:46 GMT 2001 ia64 unknown
Architecture: ia64

	
host: ia64-unknown-linux-gnu
build: ia64-unknown-linux-gnu
target: m68k-unknown-linux-gnu
configured with: /cvs/gcc/configure --target=m68k-linux --prefix=/usr/local/m68k-linux --enable-languages=c++ --enable-shared --with-ld=/usr/local/m68k-linux/m68k-linux/bin/ld --with-as=/usr/local/m68k-linux/m68k-linux/bin/as : (reconfigured)  : (reconfigured)  : (reconfigured)  : (reconfigured)  : (reconfigured)  : (reconfigured) /cvs/gcc/configure --target=m68k-linux --prefix=/usr/local/m68k-linux --enable-languages=c++ --enable-shared --with-ld=/usr/local/m68k-linux/m68k-linux/bin/ld --with-as=/usr/local/m68k-linux/m68k-linux/bin/as : (reconfigured) /cvs/gcc/configure --target=m68k-linux --prefix=/usr/local/m68k-linux --enable-languages=c++ --enable-shared --with-ld=/usr/local/m68k-linux/m68k-linux/bin/ld --with-as=/usr/local/m68k-linux/m68k-linux/bin/as : (reconfigured) /cvs/gcc/configure --target=m68k-linux --prefix=/usr/local/m68k-linux --enable-languages=c++ --enable-shared --with-ld=/usr/local/m68k-linux/m68k-linux/bin/ld --with-as=/usr/local/m68k-linux/m68k-linux/bin/as : (reconfigured) /cvs/gcc/configure --target=m68k-linux --prefix=/usr/local/m68k-linux --enable-languages=c++ --enable-shared --with-ld=/usr/local/m68k-linux/m68k-linux/bin/ld --with-as=/usr/local/m68k-linux/m68k-linux/bin/as : (reconfigured) /cvs/gcc/configure --target=m68k-linux --prefix=/usr/local/m68k-linux --enable-languages=c++ --enable-shared --with-ld=/usr/local/m68k-linux/m68k-linux/bin/ld --with-as=/usr/local/m68k-linux/m68k-linux/bin/as : (reconfigured) /cvs/gcc/configure --target=m68k-linux --prefix=/usr/local/m68k-linux --enable-languages=c++ --with-ld=/usr/local/m68k-linux/m68k-linux/bin/ld --with-as=/usr/local/m68k-linux/m68k-linux/bin/as : (reconfigured) /cvs/gcc/configure --target=m68k-linux --prefix=/usr/local/m68k-linux --enable-languages=c++ --with-ld=/usr/local/m68k-linux/m68k-linux/bin/ld --with-as=/usr/local/m68k-linux/m68k-linux/bin/as --disable-shared
>Description:
	Compiler is aborting in gen_umulsi3_highpart because
	const_uint32_operand returns false.  Looks like a sign extension
	bug, due to host being 64bit.  Offending rtx is (const_int
	-858993459 [0xffffffffcccccccd]).
>How-To-Repeat:
	$ cat x.i
	char *
	_itoa_word (unsigned long value, char *buflim,
		    unsigned int base, int upper_case)
	{
	  extern const char _itoa_upper_digits[], _itoa_lower_digits[];
	  const char *digits = upper_case ? _itoa_upper_digits : _itoa_lower_digits;
	  char *bp = buflim;

	  switch (base)
	    {
	      case 10: do *--bp = digits[value % 10]; while ((value /= 10) != 0); break;
	      case 16: do *--bp = digits[value % 16]; while ((value /= 16) != 0); break;
	      case 8: do *--bp = digits[value % 8]; while ((value /= 8) != 0); break;
	    default:
	      do
		*--bp = digits[value % base];
	      while ((value /= base) != 0);
	    }
	  return bp;
	}
	$ m68k-linux-gcc x.i -S -v
	Reading specs from /usr/local/m68k-linux/lib/gcc-lib/m68k-linux/3.1/specs
	Configured with: /cvs/gcc/configure --target=m68k-linux --prefix=/usr/local/m68k-linux --enable-languages=c++ --enable-shared --with-ld=/usr/local/m68k-linux/m68k-linux/bin/ld --with-as=/usr/local/m68k-linux/m68k-linux/bin/as : (reconfigured)  : (reconfigured)  : (reconfigured)  : (reconfigured)  : (reconfigured)  : (reconfigured) /cvs/gcc/configure --target=m68k-linux --prefix=/usr/local/m68k-linux --enable-languages=c++ --enable-shared --with-ld=/usr/local/m68k-linux/m68k-linux/bin/ld --with-as=/usr/local/m68k-linux/m68k-linux/bin/as : (reconfigured) /cvs/gcc/configure --target=m68k-linux --prefix=/usr/local/m68k-linux --enable-languages=c++ --enable-shared --with-ld=/usr/local/m68k-linux/m68k-linux/bin/ld --with-as=/usr/local/m68k-linux/m68k-linux/bin/as : (reconfigured) /cvs/gcc/configure --target=m68k-linux --prefix=/usr/local/m68k-linux --enable-languages=c++ --enable-shared --with-ld=/usr/local/m68k-linux/m68k-linux/bin/ld --with-as=/usr/local/m68k-linux/m68k-linux/bin/as : (reconfigured) /cvs/gcc/configure --target=m68k-linux --prefix=/usr/local/m68k-linux --enable-languages=c++ --enable-shared --with-ld=/usr/local/m68k-linux/m68k-linux/bin/ld --with-as=/usr/local/m68k-linux/m68k-linux/bin/as : (reconfigured) /cvs/gcc/configure --target=m68k-linux --prefix=/usr/local/m68k-linux --enable-languages=c++ --enable-shared --with-ld=/usr/local/m68k-linux/m68k-linux/bin/ld --with-as=/usr/local/m68k-linux/m68k-linux/bin/as : (reconfigured) /cvs/gcc/configure --target=m68k-linux --prefix=/usr/local/m68k-linux --enable-languages=c++ --with-ld=/usr/local/m68k-linux/m68k-linux/bin/ld --with-as=/usr/local/m68k-linux/m68k-linux/bin/as : (reconfigured) /cvs/gcc/configure --target=m68k-linux --prefix=/usr/local/m68k-linux --enable-languages=c++ --with-ld=/usr/local/m68k-linux/m68k-linux/bin/ld --with-as=/usr/local/m68k-linux/m68k-linux/bin/as --disable-shared
	Thread model: single
	gcc version 3.1 20010717 (experimental)
	 /usr/local/m68k-linux/lib/gcc-lib/m68k-linux/3.1/cc1 -fpreprocessed x.i -quiet -dumpbase x.i -version -o x.s
	GNU CPP version 3.1 20010717 (experimental) (cpplib) (68k GNU/Linux with ELF)
	GNU C version 3.1 20010717 (experimental) (m68k-linux)
		compiled by GNU C version 2.96-ia64-000717 snap 001117.
	x.i: In function `_itoa_word':
	x.i:11: Internal compiler error in gen_umulsi3_highpart, at insn-emit.c:3021
	Please submit a full bug report,
	with preprocessed source if appropriate.
	See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

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