Re: 4.1rc1 cross Ada build issue

2006-02-23 Thread Paolo Bonzini
Joel Sherrill wrote: Hi, I think/thought this has been dealt with but am not sure. I started with a fresh install directory, built and installed a native GNU/Linux C, C++, and Ada toolset. Then proceeded to try to build cross Ada for *-rtems. All targets are failing because they are not find

bug with -O2 in g++ Debian 4.0.2-9 ?

2006-02-23 Thread Jerome Robert
Here is the faulty program (this kind of code is generated by http://www.swig.org): /// Start /// #include int main(void) { long long a = 0xL; long long b = 0; void ** aa=(void **)(void *)&a; void ** ab=(void **)(void *)&b; *ab = *aa; printf("in: %

Re: bug with -O2 in g++ Debian 4.0.2-9 ?

2006-02-23 Thread Digvijoy Chatterjee
#include using namespace std; class Rational { int numerator; int denominator; public: int GetNum () { return numerator; } int GetDen () { return denominator; } void setNum (int numer) { numerator = numer; } void setDen (int den) { denominator = den;

Re: bug with -O2 in g++ Debian 4.0.2-9 ?

2006-02-23 Thread Andrew Haley
Jerome Robert writes: > Is this program wrong Yes. See ISO C9899:199 Section 6.3.2.3. These lines are particularly bogus: void ** aa=(void **)(void *)&a; void ** ab=(void **)(void *)&b; All the cast to (void *) does is suppress a useful warning. -fno-strict-aliasing may help. And

Re: bug with -O2 in g++ Debian 4.0.2-9 ?

2006-02-23 Thread Digvijoy Chatterjee
I am using g++ 4.0.2 on Suse-10 On Thu, 2006-02-23 at 15:50 +0530, Digvijoy Chatterjee wrote: > #include > > using namespace std; > class Rational > { > > int numerator; > int denominator; > public: > int GetNum () > { > return numerator; > } > int GetDen () > { > return de

Re: bug with -O2 in g++ Debian 4.0.2-9 ?

2006-02-23 Thread Richard Guenther
> This runs successfully with: > g++ without any optimization , > but with -O or -02 or -03 the executable just hangs forever See PR323 - this is expected behavior. Richard.

Re: bug with -O2 in g++ Debian 4.0.2-9 ?

2006-02-23 Thread Digvijoy Chatterjee
On Thu, 2006-02-23 at 13:54 +0100, Richard Guenther wrote: > > This runs successfully with: > > g++ without any optimization , > > but with -O or -02 or -03 the executable just hangs forever > > See PR323 - this is expected behavior. > > Richard. > What is PR323 ,is it some page in the manual

Re: bug with -O2 in g++ Debian 4.0.2-9 ?

2006-02-23 Thread Andrew Haley
Digvijoy Chatterjee writes: > > On Thu, 2006-02-23 at 13:54 +0100, Richard Guenther wrote: > > > This runs successfully with: > > > g++ without any optimization , > > > but with -O or -02 or -03 the executable just hangs forever > > > > See PR323 - this is expected behavior. > > > > R

acats testsuite, "enum_check.ads" compilation error

2006-02-23 Thread Rainer Emrich
Looking into the acats.log I discovered the following: Compiling support files...splitting spprt13s.adt into: spprt13.ads gnatmake --GCC="/SCRATCH/gcc-build/HP-UX/hppa2.0w-hp-hpux11.00/gcc-3.4.5/gcc-3.4.5/gcc/xgcc -B/SCRATCH/gcc-build/HP-UX/hppa2.0w-hp-hpux11.00/gcc-3.4.5/gcc-3.4.5/gcc/" -gnatw

gcc 4.0.2 - Nortel VPN client - Suse 10.0

2006-02-23 Thread Jens-Olaf Beismann
Dear all, I used to work with the Nortel Contivity VPN client (3.3) under Suse9.0 for quite some time. The client had been built using the standard gcc included in that Suse distribution (3.3.6?). Recently I've changed to Suse10.0 which now has gcc 4.0.2, and I'm not able to compile my VPN c

Re: acats testsuite, "enum_check.ads" compilation error

2006-02-23 Thread Arnaud Charlet
> I'm wondering if this affects the testsuite in any way. No, that's expected. The script is simply compiling all .ads and then all .adb files without worrying whether .ads files should actually be compiled or not. Arno

Re: question about pic and relocation

2006-02-23 Thread Daniel Jacobowitz
On Thu, Feb 23, 2006 at 01:51:08PM +0800, Eric Fisher wrote: > But flag '-shared' and '-fpic' are used to create shared object, > aren't they? When I use objdump to see the codes, I find that the > program address doesn't start from 0. Such as, On MIPS, it happens that shared libraries are linked

Re: gcc 4.0.2 - Nortel VPN client - Suse 10.0

2006-02-23 Thread Richard Guenther
On 2/23/06, Jens-Olaf Beismann <[EMAIL PROTECTED]> wrote: > Dear all, > > I used to work with the Nortel Contivity VPN client (3.3) under Suse9.0 > for quite some time. The client had been built using the standard gcc > included in that Suse distribution (3.3.6?). > > Recently I've changed to Suse1

Re: GCC 4.1.0 RC1

2006-02-23 Thread Rainer Emrich
Jim Wilson schrieb: > Rainer Emrich wrote: >> /SCRATCH/gcc-build/Linux/ia64-unknown-linux-gnu/install/bin/ld: >> unrecognized >> option '-Wl,-rpath' > > This looks like PR 21206. See my explanation at the end. I see this on > some of our FreeBSD machines, but I've never seen it on an IA-64 linux

Re: question about pic and relocation

2006-02-23 Thread Richard Sandiford
"Eric Fisher" <[EMAIL PROTECTED]> writes: > $ mips-elf-gcc -shared -fpic fun.c -o fun.so -save-temps > > We can see this below from fun.s, > lw $2,%gp_rel(b)($28) > > I think symble 'b' should be of GOT relocation. > But it isn't. What platform are you targetting? mips-elf does not support s

Re: [Bug target/21206] gcj seems not to pass the option to ld correctly

2006-02-23 Thread Rainer Emrich
Andrew Haley schrieb: > Rainer Emrich writes: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > Andrew Haley schrieb: > > > Rainer Emrich writes: > > > > The config.log in libjava has two entries for libiconv: > > > > LIBICONV > > > > which is > > > > > LIBICONV='/appl/sh

x86 -ffast-math problem on SPEC CPU 2K

2006-02-23 Thread H. J. Lu
When I use -O2 -mtune=pentium4 -ffast-math on SPEC CPU 2K on Linux/x86 with gcc 4.2, I get *** Miscompare of 200.s, see /export/spec/src/2000/spec/benchspec/CINT2000/176.gcc/run/0004/200.s.mis *** Miscompare of scilab.s, see /export/spec/src/2000/spec/benchspec/CINT2000/176.gcc/run/0004/sc

Re: GCC 4.1.0 RC1

2006-02-23 Thread Bob Wilson
I ran the testsuite for an xtensa-elf target and it looks OK: http://gcc.gnu.org/ml/gcc-testresults/2006-02/msg01243.html There are a few failures but they are not regressions. --Bob

BIT_FIELD_REF considered harmful

2006-02-23 Thread Ian Lance Taylor
Currently, when we see code that compares a bitfield to a constant, in some cases we will turn the bitfield from a COMPONENT_REF into a BIT_FIELD_REF. For example, this test case is based on PR 22563: struct s { int a : 3; }; struct s g; int foo () { g.a = 2; return g.a != 2; } In .003t.

Re: BIT_FIELD_REF considered harmful

2006-02-23 Thread Diego Novillo
Ian Lance Taylor wrote: > Any thoughts on whether this is a good idea? > I agree. Long ago I had a similar situation with CCP not being able to do some trivial propagation because a variable of an enum type was being accessed with BIT_FIELD_REFs hiding the real values. I will try to find my mes

Re: x86 -ffast-math problem on SPEC CPU 2K

2006-02-23 Thread Dale Johannesen
On Feb 23, 2006, at 8:54 AM, H. J. Lu wrote: When I use -O2 -mtune=pentium4 -ffast-math on SPEC CPU 2K on Linux/x86 with gcc 4.2, I get *** Miscompare of 200.s, see /export/spec/src/2000/spec/benchspec/CINT2000/176.gcc/run/0004/ 200.s.mis *** Miscompare of scilab.s, see /export/spec/src/

Re: x86 -ffast-math problem on SPEC CPU 2K

2006-02-23 Thread H. J. Lu
On Thu, Feb 23, 2006 at 11:00:33AM -0800, Dale Johannesen wrote: > > On Feb 23, 2006, at 8:54 AM, H. J. Lu wrote: > > >When I use -O2 -mtune=pentium4 -ffast-math on SPEC CPU 2K on Linux/x86 > >with gcc 4.2, I get > > > >*** Miscompare of 200.s, see > >/export/spec/src/2000/spec/benchspec/CINT2000

Re: bug with -O2 in g++ Debian 4.0.2-9 ?

2006-02-23 Thread Mike Stump
On Feb 23, 2006, at 5:46 AM, Digvijoy Chatterjee wrote: What is PR323 ,is it some page in the manual /or gcc info ? http://gcc.gnu.org/PR323

Re: Bootstrap failure on trunk: x86_64-linux-gnu

2006-02-23 Thread Richard Henderson
On Wed, Feb 22, 2006 at 10:06:25AM -0700, Jeffrey A Law wrote: > > > This does highlight one of the issues that keeps nagging at me. > > > For an enumeration type, presumably we have TYPE_PRECISION set to > > > the minimum precision necessary to hold all the values in the enum. > > > What are TYPE_

Re: borken link !

2006-02-23 Thread Gerald Pfeifer
On Tue, 21 Feb 2006, Boris Pereira wrote: > this link to > http://gcc.gnu.org/install/build.html > > in page > http://gcc.gnu.org/install/ Thanks for the report, this has been fixed now. (Thanks, Joseph et al!) Gerald

gcc-4.0-20060223 is now available

2006-02-23 Thread gccadmin
Snapshot gcc-4.0-20060223 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.0-20060223/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.0 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches

GCC 4.1 Status Report (2006-02-23)

2006-02-23 Thread Mark Mitchell
Thus far, the feedback for GCC 4.1 RC1 seems very positive. There have been very few problems reported, and none that look to me to be fatal flaws. I plan to make a pass over the open regressions, looking for showstoppers. At this point, my inclination is to apply a very limited number of alread

Re: Ada subtypes and base types

2006-02-23 Thread Jeffrey A Law
On Wed, 2006-02-22 at 13:25 -0500, Richard Kenner wrote: > When I speak about doing arithmetic in a type, I'm referring to the > type of the expression & its input operands in a gimplified > expression. At that point I do not care about base types or anything > like that. All

Solaris/x86 namespace bug?

2006-02-23 Thread Frank Cusack
I found this when building doxygen. Found a simple test case on the web: $ cat ll.cc #include int CS; $ g++ ll.cc ll.cc:2: error: expected unqualified-id before numeric constant It works correctly on Solaris/sparc. My system is

confused by mips target

2006-02-23 Thread Eric Fisher
Hi, I'm really confused by mips targets, such as mips-elf, mips-linux, mips-elf-linux, mips-elf-linux-gnu. I will appreciate if anyone can tell me the difference between them. Thanks. Eric.

Re: confused by mips target

2006-02-23 Thread Eric Christopher
On Feb 23, 2006, at 5:27 PM, Eric Fisher wrote: Hi, I'm really confused by mips targets, such as mips-elf, mips-linux, mips-elf-linux, mips-elf-linux-gnu. I will appreciate if anyone can tell me the difference between them. The last two don't exist. The first one is to target an elf-based em

Re: IVOPTS vs Ada subtypes and base types

2006-02-23 Thread Jeffrey A Law
On Wed, 2006-02-22 at 13:25 -0500, Richard Kenner wrote: > When I speak about doing arithmetic in a type, I'm referring to the > type of the expression & its input operands in a gimplified > expression. At that point I do not care about base types or anything > like that. All

Re: 4.1rc1 cross Ada build issue

2006-02-23 Thread Mark Mitchell
Paolo Bonzini wrote: > Yes, http://gcc.gnu.org/ml/gcc-patches/2005-12/msg00342.html was not > applied on the branch. It only affects Ada so it shuld be safe. Yes. Do you have a revision number handy? Thanks, -- Mark Mitchell CodeSourcery [EMAIL PROTECTED] (650) 331-3385 x713

GCC 4.1 RC2

2006-02-23 Thread Mark Mitchell
I will spin GCC 4.1 RC2 tonight. The only patch I plan to apply, relative to current sources, is Paolo Bonzini's Ada patch. GCC 4.1 RC2 will become the final GCC 4.1.0 release within a few days, unless disaster occurs. Thanks, -- Mark Mitchell CodeSourcery [EMAIL PROTECTED] (650) 331-3385 x713

Re: Solaris/x86 namespace bug?

2006-02-23 Thread Mike Stump
On Feb 23, 2006, at 5:03 PM, Frank Cusack wrote: #include int CS; $ g++ ll.cc ll.cc:2: error: expected unqualified-id before numeric constant It works correctly on Solaris/sparc. My system is amd64, using the Sun gcc. /usr/include/sys/regset.h #define's CS on x86/amd64 only ... hence the brok

canon_modify_mem_list in gcse.c

2006-02-23 Thread Daniel Berlin
(steven, you spent a fair amount of time in gcse.c, which is why i've copied you to see if you knew what was up) In record_mem_last_set_info, we have if (CALL_P (insn)) { /* Note that traversals of this loop (other than for free-ing) will break after encountering a CALL_INSN.

Re: do -fprofile-arcs and -fbranch-probabilities help to set bb->count?

2006-02-23 Thread Liu Haibin
I did a testing on a normal PC and it worked. Thanks. However, I'm using gcc nios2 port. The executable file is downloaded to a board, which is attached to my PC. So while the executable file is running on the board, it doesn't produce any gcda file. According to Altera nios2 people, I can do som

Disabling pch checking?

2006-02-23 Thread Dan Kegel
gcc-4.1-rc1 seems nice so far - it's the first version of gcc that can beat gcc-2.95.3 on one particular app - but it seems to be slow at preprocessing C++ source. This matters quite a bit when running distcc. In fact, it seems to take three times as long to build large C++ apps as gcc-2.95.3 did.

Re: do -fprofile-arcs and -fbranch-probabilities help to set bb->count?

2006-02-23 Thread Ben Elliston
> So is it feasible that I can make executable to output gcda file to > my Host PC via fputs or fwrite? Yes, but this requires a suitable board support package that can divert I/O on your target board back to the host. Ben

Re: GCC 4.1 RC2

2006-02-23 Thread Paolo Bonzini
Mark Mitchell wrote: I will spin GCC 4.1 RC2 tonight. The only patch I plan to apply, relative to current sources, is Paolo Bonzini's Ada patch. ... which is revision 108058. I gather that you want to apply it yourself? r108058 | bonzini | 2005-12-05 15:40:27 +0100 (Mon, 05 Dec 2005) libada

Re: do -fprofile-arcs and -fbranch-probabilities help to set bb->count?

2006-02-23 Thread Paolo Bonzini
So is it feasible that I can make executable to output gcda file to my Host PC via fputs or fwrite? Sure. The easiest way is to run the program under a functional simulator of the nios2, that can map system calls from the C library to I/O on the target board. The Altera people probably kno