Re: [Ada] Integer repesentation in the Ada FE

2006-04-30 Thread Robert Dewar
Bernd Trog wrote: This shows, IMHO, that the bug is related to the encoding/decoding of Integers when the target Integer'Size is 16 bit. Comments? Ideas? None at all, Uint should have nothing to do with target integer size, so you must somehow have some confusion!

Re: libstdc++ in a combined tree

2006-04-30 Thread Mark Mitchell
Benjamin Kosnik wrote: >> I apologize; I didn't realize that. In that case, you're right; the >> current approach is just busted. It should become an --enable option, >> or a hard-coded case statement, or an autoconf test that doesn't require >> linking stuff. > > Really? Like --enable-symvers[=

Re: ARM gcc 4.1 optimization bug.

2006-04-30 Thread Daniel Jacobowitz
On Sun, Apr 30, 2006 at 11:03:05AM +0800, Fengwei Yin wrote: > Hi, > I am using gcc4.1 for ARM to build Linux kernel. But there is a bug > related to the gcc > optimization. I assume this is correct mail list to report this bug. > If not, please let me know. No, if you have a bug report, please us

Re: Gcc 4.2 miscompiles binutils on x86 and x86-64

2006-04-30 Thread H. J. Lu
On Sun, Apr 30, 2006 at 01:23:20PM +0200, Andreas Schwab wrote: > "H. J. Lu" <[EMAIL PROTECTED]> writes: > > > It looks like a gcc bug to me. Gcc 4.2 miscompiles: > > > > more_than_enough_bits_for_digits > > = (number_of_digits_to_use * 3321928 / 100 + 1); > > > > in atof_generic.

Re: [Ada] Integer repesentation in the Ada FE

2006-04-30 Thread Bernd Trog
On Sun, 30 Apr 2006, Robert Dewar wrote: > Bernd Trog wrote: > > package i is > >subtype I32767 is Integer range -32767 .. 32767; > >-- Note: -32767 is in the Uint_Direct range! > > This is a host type, not a target type, and this Integer > is the host integer. FWIW, if I include -32768

Re: [Ada] Integer repesentation in the Ada FE

2006-04-30 Thread Robert Dewar
Bernd Trog wrote: Reading the comments in ttypes.ads suggests that there is at least a clear distinction beteen host and target integer types. Yes it tries to, so if you find problems they should be fixed package i is subtype I32767 is Integer range -32767 .. 32767; -- Note: -32767 is

Re: [Ada] Integer repesentation in the Ada FE

2006-04-30 Thread Robert Dewar
Bernd Trog wrote: On Wed, 26 Apr 2006, Robert Dewar wrote: Bernd Trog wrote: I'm chasing a bug that only appeares when Standard.Integer'Size is 16: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26849 Trying to make the compiler work with standard integer size of 16 will be very difficult I fea

FAIL: tmpdir-g++.dg-struct-layout-1/t026 cp_compat_{x,y}_tst.o compile on sparc/sparc64 linux...

2006-04-30 Thread Christian Joensson
From http://gcc.gnu.org/ml/gcc-testresults/2006-04/msg01674.html Executing on host: /usr/local/src/trunk/objdir/gcc/testsuite/g++/../../g++ -B/usr/local/src/trunk/objdir/gcc/testsuite/g++/../../ -nostdinc++ -I/usr/local/src/trunk/objdir/sparc64-unknown-linux-gnu/64/libstdc++-v3/include/sparc64-u

Re: Gcc 4.2 miscompiles binutils on x86 and x86-64

2006-04-30 Thread Andreas Schwab
"H. J. Lu" <[EMAIL PROTECTED]> writes: > It looks like a gcc bug to me. Gcc 4.2 miscompiles: > > more_than_enough_bits_for_digits > = (number_of_digits_to_use * 3321928 / 100 + 1); > > in atof_generic. When number_of_digits_to_use == 1, gcc 4.2 -O2 gets > more_than_enough_bits_for

Re: [Ada] Integer repesentation in the Ada FE

2006-04-30 Thread Bernd Trog
On Wed, 26 Apr 2006, Robert Dewar wrote: > Bernd Trog wrote: > > > I'm chasing a bug that only appeares when Standard.Integer'Size is 16: > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26849 > > Trying to make the compiler work with standard integer size of > 16 will be very difficult I fear. Do