Package: binutils
Version: 2.21.90.20111004-2
Severity: important

Hello,

This code:

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char **argv) {
  long l = strtold(argv[1], NULL);
  printf("%ld\n", l*1327);
  return 0;
}

fails to compile on sparc with -mcpu=v8 with the latest gcc/binutils 
from unstable:

jurij@debian:~/gcc$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/sparc-linux-gnu/4.6.1/lto-wrapper
Target: sparc-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 
4.6.1-13' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs 
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr 
--program-suffix=-4.6 --enable-shared --enable-linker-build-id 
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext 
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 
--libdir=/usr/lib --enable-nls --enable-clocale=gnu 
--enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin 
--enable-objc-gc --enable-targets=all --with-long-double-128 
--enable-checking=release --build=sparc-linux-gnu 
--host=sparc-linux-gnu --target=sparc-linux-gnu
Thread model: posix
gcc version 4.6.1 (Debian 4.6.1-13) 
jurij@debian:~/gcc$ gcc -mcpu=v8 mul.c
/tmp/ccy32xBi.s: Assembler messages:
/tmp/ccy32xBi.s:39: Error: Hardware capability "mul32" not enabled for 
"smul".
jurij@debian:~/gcc$ 

It appears that the culprit is the following recent commit to 
binutils:

http://repo.or.cz/w/binutils.git/commitdiff/24f272de258d79c9d959143a8fd626b9961a8ac0

It tries to catch the cases when we use assembler instructions 
incompatible with CPU type, and thinks that 'smul' is not appropriate 
for -mcpu=v8, however this used to work before this commit.

Best regards, 
-- 
Jurij Smakov                                           ju...@wooyd.org
Key: http://www.wooyd.org/pgpkey/                      KeyID: C99E03CC



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to