This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: Revised patch to remove integer output macros


"Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> writes:
>  > I tested against the following targets (picked from Kaveh's list):
>  > 
>  >     s390-unknown-linux-gnu
>  >     gcc wouldn't compile
> 
> How did it fail?
> 
> E.g. I'm able to cross-compile cc1, xgcc and cpp0 from solaris2.7.
> Isn't that enough to run your testcases?

I couldn't compile cc1...

gcc -DIN_GCC -DCROSS_COMPILE   -g -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H -DGENERATOR_FILE  -o genemit \
 genemit.o rtl.o read-rtl.o bitmap.o ggc-none.o gensupport.o print-rtl.o errors.o ../libiberty/libiberty.a
./genemit /local/fsf/gcc.2/gcc/config/s390/s390.md > tmp-emit.c
/bin/sh /local/fsf/gcc.2/gcc/move-if-change tmp-emit.c insn-emit.c
echo timestamp > s-emit
gcc -DIN_GCC -DCROSS_COMPILE   -g -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H    -I. -I. -I/local/fsf/gcc.2/gcc -I/local/fsf/gcc.2/gcc/. -I/local/fsf/gcc.2/gcc/config -I/local/fsf/gcc.2/gcc/../include -c insn-emit.c \
  -o insn-emit.o
insn-emit.c: In function `gen_fixuns_truncdfdi2':
insn-emit.c:2854: unsupported wide integer operation
make: *** [insn-emit.o] Error 1

The guilty code seems to be:

  emit_insn (gen_subdf3 (temp, operands[1], force_const_mem (DFmode,
        CONST_DOUBLE_FROM_REAL_VALUE (0x10000000000000000ULL, DFmode))));
                                        ^^^^^^^^^^^^^^^^^

I'm having trouble counting all those 0s, but it looks like a 17-digit
number...

Richard


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