[Bug c/34720] ICE in real_to_decimal, at real.c:1656

2008-01-23 Thread tgall dot foo at gmail dot com


--- Comment #4 from tgall dot foo at gmail dot com  2008-01-23 15:28 ---
Hi Ben,

Yesterday I picked this up again using the 0118 snapshot. Same failure. 

Yes this is being built inside of portage. No patches are being applied. (I've
disabled that)

Following the direction of Peter Bergner I've also modified the params to
configure to be more inline with what he says is being used for gcc testing.

These values are:

--prefix=/usr   
--bindir=/usr/powerpc64-unknown-linux-gnu/gcc-bin/4.3.0-alpha20080118   
   
--includedir=/usr/lib/gcc/powerpc64-unknown-linux-gnu/4.3.0-alpha20080118/include
 
   
--datadir=/usr/share/gcc-data/powerpc64-unknown-linux-gnu/4.3.0-alpha20080118   
   
--mandir=/usr/share/gcc-data/powerpc64-unknown-linux-gnu/4.3.0-alpha20080118/man
 
   
--infodir=/usr/share/gcc-data/powerpc64-unknown-linux-gnu/4.3.0-alpha20080118/info
 
   
--with-gxx-include-dir=/usr/lib/gcc/powerpc64-unknown-linux-gnu/4.3.0-alpha20080118/include/g++-v4
 
--host=powerpc64-unknown-linux-gnu 
--build=powerpc64-unknown-linux-gnu 
--disable-altivec 
--enable-nls 
--without-included-gettext  
--with-system-zlib  
--disable-checking  
--disable-werror
--enable-secureplt  
--disable-libunwind-exceptions 
--disable-multilib 
--disable-libmudflap 
--disable-libssp 
--disable-libgcj 
--enable-decimal-float=yes 
--with-cpu=default64 
--with-long-double-128 
--disable-alsa 
--with-gmp=/usr/lib 
--with-mpfr=/usr/lib 
--enable-languages=c,c++,treelang 
--enable-shared 
--enable-threads=posix 
--enable-__cxa_atexit 
--enable-clocale=gnu  

See how much further I get today looking into this.


-- 


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



[Bug c/34720] ICE in real_to_decimal, at real.c:1656

2008-01-23 Thread tgall dot foo at gmail dot com


--- Comment #5 from tgall dot foo at gmail dot com  2008-01-23 21:31 ---
so the call path involved here is from gcc/c-cppbuiltin.c 
builtin_define_with_hex_fp_value

which is calling real_to_decimal and its in that function we're running into
problems.

The string rep of the real is : 0x0.ffp128 aka  __FLT_MAX_10_EXP__

I am able to do a real_to_hexadecimal successfully and get : 0x0.ffp+128

Inside of real_to_decimal once we get down to digit=rtd_divmod(&r, &pten) we're
in obvious trouble as digit comes back with a value of:

7378697629483820646  which in hex comes out to be all 6's or a pattern of
repeating nibbles of "0110". 

This is making my head hurt.




-- 


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



[Bug c/34720] ICE in real_to_decimal, at real.c:1656

2008-02-05 Thread tgall dot foo at gmail dot com


--- Comment #8 from tgall dot foo at gmail dot com  2008-02-05 16:24 ---
this bug might in some ways be related bug an older bug in gcc 4.1 where make
profiledbootstrap on power3 was busted.

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

When I have been running into this problem it has been on power5. I'm backing
off with a make bootstrap build now.

>From last night's test I KNOW you can't do the following:

1) using a gcc 4.1.2 toolchain
   build gcc 4.3 with make profiledbootstrap
   (this will succeed)
2) using gcc 4.3 tooclain
   build gcc 4.3 with make bootstrap
   this will fail.


-- 


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



[Bug c/34720] New: ICE in real_to_decimal, at real.c:1656

2008-01-08 Thread tgall dot foo at gmail dot com
overview:

building gcc 4.3 with gcc 4.3 fails on a 64 bit ppc64 box. (yes, running as
elf64)

gcc -v
Using built-in specs.
Target: powerpc64-unknown-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20080104/work/gcc-4.3-20080104/configure
--prefix=/usr
--bindir=/usr/powerpc64-unknown-linux-gnu/gcc-bin/4.3.0-alpha20080104
--includedir=/usr/lib/gcc/powerpc64-unknown-linux-gnu/4.3.0-alpha20080104/include
--datadir=/usr/share/gcc-data/powerpc64-unknown-linux-gnu/4.3.0-alpha20080104
--mandir=/usr/share/gcc-data/powerpc64-unknown-linux-gnu/4.3.0-alpha20080104/man
--infodir=/usr/share/gcc-data/powerpc64-unknown-linux-gnu/4.3.0-alpha20080104/info
--with-gxx-include-dir=/usr/lib/gcc/powerpc64-unknown-linux-gnu/4.3.0-alpha20080104/include/g++-v4
--host=powerpc64-unknown-linux-gnu --build=powerpc64-unknown-linux-gnu
--disable-altivec --disable-nls --with-system-zlib --disable-checking
--disable-werror --enable-secureplt --disable-libunwind-exceptions
--disable-multilib --disable-libmudflap --disable-libssp --disable-libgcj
--enable-languages=c --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.3.0-alpha20080104  (experimental) (GCC)


./configure options:
--prefix=/usr   
--bindir=/usr/powerpc64-unknown-linux-gnu/gcc-bin/4.3.0-alpha20080104   
   
--includedir=/usr/lib/gcc/powerpc64-unknown-linux-gnu/4.3.0-alpha20080104/include
 
   
--datadir=/usr/share/gcc-data/powerpc64-unknown-linux-gnu/4.3.0-alpha20080104   
   
--mandir=/usr/share/gcc-data/powerpc64-unknown-linux-gnu/4.3.0-alpha20080104/man
 
   
--infodir=/usr/share/gcc-data/powerpc64-unknown-linux-gnu/4.3.0-alpha20080104/info
 
   
--with-gxx-include-dir=/usr/lib/gcc/powerpc64-unknown-linux-gnu/4.3.0-alpha20080104/include/g++-v4
 
--host=powerpc64-unknown-linux-gnu 
--build=powerpc64-unknown-linux-gnu 
--disable-altivec 
--enable-nls 
--without-included-gettext  
--with-system-zlib  
--disable-checking  
--disable-werror
--enable-secureplt  
--disable-libunwind-exceptions 
--disable-multilib 
--disable-libmudflap 
--disable-libssp 
--disable-libgcj 
--enable-languages=c,c++,treelang 
--enable-shared 
--enable-threads=posix 
--enable-__cxa_atexit 
--enable-clocale=gnu


output + cmd issued that died

sed -e s/TARGET_GETGROUPS_T/gid_t/ \
 
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20080104/work/gcc-4.3-20080104/gcc/sys-types.h
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20080104/work/gcc-4.3-20080104/gcc/sys-protos.h
> SYSCALLS.c
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20080104/work/build/./gcc/xgcc
-B/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20080104/work/build/./gcc/
-B/usr/powerpc64-unknown-linux-gnu/bin/ -B/usr/powerpc64-unknown-linux-gnu/lib/
-isystem /usr/powerpc64-unknown-linux-gnu/include -isystem
/usr/powerpc64-unknown-linux-gnu/sys-include -O2 -g -O2 -pipe   -DIN_GCC-W
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wno-strict-prototypes -Wno-error -isystem ./include 
-I. -I.
-I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20080104/work/gcc-4.3-20080104/gcc
-I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20080104/work/gcc-4.3-20080104/gcc/.
-I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20080104/work/gcc-4.3-20080104/gcc/../include
-I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20080104/work/gcc-4.3-20080104/gcc/../libcpp/include

-I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20080104/work/gcc-4.3-20080104/gcc/../libdecnumber
-I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20080104/work/gcc-4.3-20080104/gcc/../libdecnumber/dpd
-I../libdecnumber\
  -aux-info SYSCALLS.c.X -S -o tmp-SYSCALLS.s SYSCALLS.c
:0: internal compiler error: in real_to_decimal, at real.c:1656
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

I'm still digging into this .. I'll attach the -save-temps output in a bit


-- 
   Summary: ICE in real_to_decimal, at real.c:1656
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
    ReportedBy: tgall dot foo at gmail dot com
 GCC build triplet: powerpc64-unknown-linux-gnu
  GCC host triplet: powerpc64-unknown-linux-gnu
GCC target triplet: powerpc64-unknown-linux-gnu


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



[Bug c/34720] ICE in real_to_decimal, at real.c:1656

2008-01-08 Thread tgall dot foo at gmail dot com


--- Comment #1 from tgall dot foo at gmail dot com  2008-01-09 05:50 ---
Two things to be clear on. This is a build of the Jan 4 2008 snapshot. No
patches are applied.

SYSCALLS.i

# 1 "SYSCALLS.c"
# 1 "/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20080104/work/build/gcc//"
# 1 ""






-- 


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



[Bug c/34720] ICE in real_to_decimal, at real.c:1656

2008-01-08 Thread tgall dot foo at gmail dot com


--- Comment #2 from tgall dot foo at gmail dot com  2008-01-09 07:06 ---
on a lark I tried turning off decimal float support

no change.


-- 


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