Re: Ada subtypes and base types (was: Bootstrap failure on trunk: x86_64-linux-gnu)

2006-02-22 Thread Duncan Sands
Hi Laurent, On Wednesday 22 February 2006 12:34, Laurent GUERBY wrote: > On Wed, 2006-02-22 at 10:54 +0100, Richard Guenther wrote: > > > > > > type T1 is range 0 .. 127; > > > > > > -- Compiler will choose some type for T'Base, likely to be > > > > > > -128..127 > > > > > > -- but could be In

Re: question about pic and relocation

2006-02-22 Thread Eric Fisher
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, 5ffe065c : 5ffe065c: 3c02lui v0,0x0 5ffe0660: 27bdffe8addiu sp,sp,-24 5ffe0664:

Re: question about pic and relocation

2006-02-22 Thread Daniel Jacobowitz
On Thu, Feb 23, 2006 at 01:33:05PM +0800, Eric Fisher wrote: > $ 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. > > $ mips-elf-readelf -r fun.so There a

question about pic and relocation

2006-02-22 Thread Eric Fisher
Hi, Given such a source file, /*fun.c*/ int b=2; void fun(void) { int a=b; } Then compile it, $ 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. $ mips-elf-readelf

Re: Upated memory hog patch for make

2006-02-22 Thread Gerald Pfeifer
On Mon, 20 Feb 2006, H. J. Lu wrote: > 3.81rc1 works much better than 3.80. But my patch for 3.80 no longer > applies cleanly. Paul is aware of the libjava build problem and is > working on it. That's good news, thanks! I'll give 3.81 RC1 a try, and hope we'll have a release soon... Gerald

ANNOUNCE: GCC track at Gelato ICE conference

2006-02-22 Thread Mark K. Smith
Dear GCC Community, I wanted to let the GCC list know that the Gelato Federation is holding a conference April 24-26 in San Jose. It is called Gelato ICE (Itanium Conference & Expo). http://www.gelato.org/meeting The technical program is very robust (over 50 technical presentations) covering a v

Re: Is there an attribute or pragma to disable optimization for a single function?

2006-02-22 Thread Devang Patel
On 2/22/06, Andrew Pinski <[EMAIL PROTECTED]> wrote: > > Just a note from the person who keeps tabs on a lot of stuff. There > is already a project which is written or started to write to do this. > See http://gcc.gnu.org/wiki/Function%20Level%20Control%20of%20Optimizations. I did not know about

Re: Is there an attribute or pragma to disable optimization for a single function?

2006-02-22 Thread Andrew Pinski
> > On 2/22/06, Mike Stump <[EMAIL PROTECTED]> wrote: > > On Feb 22, 2006, at 10:24 AM, Ian S. Nelson wrote: > > > It looks like there are attributes to help optimize some functions > > > further but are there any to not optimize at all? > > > > In general, no; however, Dale did up a patch to cont

Re: Is there an attribute or pragma to disable optimization for a single function?

2006-02-22 Thread Devang Patel
On 2/22/06, Mike Stump <[EMAIL PROTECTED]> wrote: > On Feb 22, 2006, at 10:24 AM, Ian S. Nelson wrote: > > It looks like there are attributes to help optimize some functions > > further but are there any to not optimize at all? > > In general, no; however, Dale did up a patch to control this sort o

Re: Is there an attribute or pragma to disable optimization for a single function?

2006-02-22 Thread Mike Stump
On Feb 22, 2006, at 10:24 AM, Ian S. Nelson wrote: It looks like there are attributes to help optimize some functions further but are there any to not optimize at all? In general, no; however, Dale did up a patch to control this sort of thing from #pragma if you want to dust it off and adapt

Re: compile/install gcc

2006-02-22 Thread Mike Stump
On Feb 22, 2006, at 6:46 AM, Florian Radulescu wrote: Please I would need some instructions on how to compile and install gcc for Intel XScale. You would need to use google to find the gcc documentation that describes this in detail. If you do that, you should find http:// gcc.gnu.org/inst

Re: Ada subtypes and base types

2006-02-22 Thread Jeffrey A Law
On Wed, 2006-02-22 at 13:25 -0500, Richard Kenner wrote: > The base type reference is that I'm *also* saying "If you see an arithmetic > node where TREE_TYPE is *not* a base type, there's a bug someplace that > has to be fixed". (Well, with the exception of such things as sizetypes > or subtypes th

4.1rc1 cross Ada build issue

2006-02-22 Thread Joel Sherrill
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 finding newlib's .h files

Is there an attribute or pragma to disable optimization for a single function?

2006-02-22 Thread Ian S. Nelson
It looks like there are attributes to help optimize some functions further but are there any to not optimize at all? thanks, Ian -- *Ian S. Nelson PGP/GPG email preferred. Public Key: 00D3D983

Re: Ada subtypes and base types

2006-02-22 Thread Richard Kenner
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 that should matter is TREE_TYPE (expr), nothing more, nothin

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

2006-02-22 Thread Jeffrey A Law
On Wed, 2006-02-22 at 09:00 -0800, Mark Mitchell wrote: > 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. > > Wha

Re: Ada subtypes and base types

2006-02-22 Thread Jeffrey A Law
On Tue, 2006-02-21 at 23:23 +0100, Laurent GUERBY wrote: > On Tue, 2006-02-21 at 15:02 -0700, Jeffrey A Law wrote: > > Given an expression, we have to do computations in some other type than > > the type of the expression? Now that's just silly. If the expression > > has some type X, then we shoul

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

2006-02-22 Thread Mark Mitchell
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_MIN_VAL/TYPE_MAX_VAL?Does TYPE_MAX_VALUE include > va

RE: Dead link http://gcc.gnu.org/install/build.html on http://gcc.gnu.org/install/

2006-02-22 Thread Dave Korn
On 22 February 2006 16:40, Paolo Bonzini wrote: > Gerald Pfeifer wrote: >> Hi Paolo, >> >> thanks for the patch. I just saw Joseph's okay, but I believe there >> is one minor detail left. >> >> On Wed, 22 Feb 2006, Paolo Bonzini wrote: >> >>> +GNU Make 3.79 and above, which is necessary to bui

Re: Ada subtypes and base types (was: Bootstrap failure on trunk: x86_64-linux-gnu)

2006-02-22 Thread Jeffrey A Law
On Mon, 2006-02-20 at 23:00 +0100, Richard Guenther wrote: > On 2/20/06, Richard Kenner <[EMAIL PROTECTED]> wrote: > > Indeed. Ada should in this case generate > > > >R = (T)( (basetype)100 + (basetype)X - (basetype)X ) > > > > i.e. carry out all arithmetic explicitly in the base

Re: Ada subtypes and base types

2006-02-22 Thread Jeffrey A Law
On Tue, 2006-02-21 at 18:11 -0500, Robert Dewar wrote: > Richard Kenner wrote: > > > Let me try again and take a simpler example. If we have > > > > subtype T is Integer range 20..50; > > > > Y: T; > > > >... Y + 1 ... > > > > What the tree looks like is a PLUS_EXPR of type "I

Re: Ada subtypes and base types

2006-02-22 Thread Jeffrey A Law
On Tue, 2006-02-21 at 17:22 -0500, Richard Kenner wrote: > Given an expression, we have to do computations in some other type than > the type of the expression? Now that's just silly. > > Sure, but that's not what I said. > > If the expression has some type X, then we should be d

Re: Ada subtypes and base types

2006-02-22 Thread Robert Dewar
Jeffrey A Law wrote: TYPE_MIN_VALUE/TYPE_MAX_VALUE should cover the entire range of values that can be assigned to a particular object. Do you mean assigned as in "with an assignment statement", or do you mean "end up in the object by any mechanism"? Most of the other stuff discussed so far

Re: Dead link http://gcc.gnu.org/install/build.html on http://gcc.gnu.org/install/

2006-02-22 Thread Paolo Bonzini
Gerald Pfeifer wrote: Hi Paolo, thanks for the patch. I just saw Joseph's okay, but I believe there is one minor detail left. On Wed, 22 Feb 2006, Paolo Bonzini wrote: +GNU Make 3.79 and above, which is necessary to build GCC, support +building in parallel. Specifically, in the sent

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

2006-02-22 Thread Jeffrey A Law
On Tue, 2006-02-21 at 14:56 -0800, Mark Mitchell wrote: > Jeffrey A Law wrote: > > > My feeling? Absolutely, TYPE_MIN_VALUE and TYPE_MAX_VALUE should > > represent the set of values that an object of the type may hold. > > Any other definition effectively renders those values useless. > > I agre

Re: Dead link http://gcc.gnu.org/install/build.html on http://gcc.gnu.org/install/

2006-02-22 Thread Gerald Pfeifer
Hi Paolo, thanks for the patch. I just saw Joseph's okay, but I believe there is one minor detail left. On Wed, 22 Feb 2006, Paolo Bonzini wrote: > +GNU Make 3.79 and above, which is necessary to build GCC, support > +building in parallel. Specifically, in the sentence above we have "which is"

Re: Ada subtypes and base types

2006-02-22 Thread Jeffrey A Law
On Tue, 2006-02-21 at 18:20 -0500, Robert Dewar wrote: > Laurent GUERBY wrote: > > > You keep saying "brain damage", but please if you see a better design > > (other than "forget about user range types" :), let us all know! > > Actually I think everyone agrees on what is appropriate here. it is >

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

2006-02-22 Thread Jeffrey A Law
On Wed, 2006-02-22 at 11:51 +0100, Richard Guenther wrote: > On 2/21/06, Mark Mitchell <[EMAIL PROTECTED]> wrote: > > Jeffrey A Law wrote: > > > > > My feeling? Absolutely, TYPE_MIN_VALUE and TYPE_MAX_VALUE should > > > represent the set of values that an object of the type may hold. > > > Any oth

Re: [cp-patches] Re: .cvsignore in libjava/classpath

2006-02-22 Thread Tom Tromey
> "Volker" == Volker Reichelt <[EMAIL PROTECTED]> writes: Volker> I didn't want to delete it myself, since I suspected something Volker> like this. Would somebody of the libjava maintainers take Volker> care of this? There didn't seem to be any reason to delete the .cvsignore files from the

Re: PATCH: [4.1/4.2 Regression]: Miscompiled FORTRAN program

2006-02-22 Thread Richard Guenther
On 2/17/06, H. J. Lu <[EMAIL PROTECTED]> wrote: > On Thu, Feb 16, 2006 at 03:46:57PM -0800, James E Wilson wrote: > > On Thu, 2006-02-16 at 14:46, H. J. Lu wrote: > > > I took the liberty to fix the format issue on behalf of Denis. Is this > > > OK for mainline? > > > > Yes, this looks good to me.

Re: conditional expression evaluation at compile time in gcc 4.01

2006-02-22 Thread Gabriel Dos Reis
"Richard Guenther" <[EMAIL PROTECTED]> writes: [...] | You should file a bugzilla for this (or search for an existing one | for this). why do you want him to fill a PR about that when his program isn't valid? -- Gaby

compile/install gcc

2006-02-22 Thread Florian Radulescu
Please I would need some instructions on how to compile and install gcc for Intel XScale. Thank you, Florian

Re: Possible accept wrong code in C++?

2006-02-22 Thread Ed Smith-Rowland
Smith-Rowland, Edward M (Contractor) wrote: All, I have a template class: template < class Datum, unsigned long Dim > class DataGrid { ... public: ... std::ostream & write( std::ostream & output ) const; ... }; I have a non-member operator overload: On GCC-4.0 Ma

Re: Dead link http://gcc.gnu.org/install/build.html on http://gcc.gnu.org/install/

2006-02-22 Thread Joseph S. Myers
On Wed, 22 Feb 2006, Paolo Bonzini wrote: > There's a requirement to not use footnotes in install.texi, apparently. Also, > I did not know about install.texi2html so I added a note on it. > > Ok to install? OK. > @c 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. Reme

successful build of mingw hosted arm-elf GCC 4.1.0 RC1

2006-02-22 Thread Dave Murphy
output of config.guess $ gcc-4.1.0-20060219/config.guess i686-pc-mingw32 $ arm-elf-gcc -v Using built-in specs. Target: arm-elf Configured with: ../../gcc-4.1.0-20060219/configure --enable-languages=c,c++ --with-cpu=arm7tdmi --enable-interwork --enable-multilib --with-gcc --with-gnu-ld --with-

Re: Ada subtypes and base types

2006-02-22 Thread Robert Dewar
Richard Guenther wrote: On 2/21/06, Richard Kenner <[EMAIL PROTECTED]> wrote: But if the values in there do not reflect the reality of what values are valid for the type, then I don't see how they can be generally useful -- that's my point. We have two fields that are inaccurate,

Re: Ada subtypes and base types (was: Bootstrap failure on trunk: x86_64-linux-gnu)

2006-02-22 Thread Laurent GUERBY
On Wed, 2006-02-22 at 10:54 +0100, Richard Guenther wrote: > > > > > type T1 is range 0 .. 127; > > > > > -- Compiler will choose some type for T'Base, likely to be -128..127 > > > > > -- but could be Integer (implementation dependant) > > > > > subtype T is T1 range 0 .. 100; > > > > > R : T

Re: conditional expression evaluation at compile time in gcc 4.01

2006-02-22 Thread Andrew Haley
Inder writes: > Hi All > > I am trying to compile 'test.cc' (code attached) with the gcc 4.0.1 > it gives me the following error: > > test.cc:19: error: array bound is not an integer constant > > so it is not able to evaluate the conditional expression in gcc 4.0.1, > while this is bein

Re: conditional expression evaluation at compile time in gcc 4.01

2006-02-22 Thread Richard Guenther
On 2/22/06, Inder <[EMAIL PROTECTED]> wrote: > Hi All > > I am trying to compile 'test.cc' (code attached) with the gcc 4.0.1 > it gives me the following error: > > test.cc:19: error: array bound is not an integer constant Interestingly we end up with the C++ parser producing &0B->lengthD.1993

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

2006-02-22 Thread Richard Guenther
On 2/21/06, Mark Mitchell <[EMAIL PROTECTED]> wrote: > Jeffrey A Law wrote: > > > My feeling? Absolutely, TYPE_MIN_VALUE and TYPE_MAX_VALUE should > > represent the set of values that an object of the type may hold. > > Any other definition effectively renders those values useless. > > I agree --

Re: type layout bug, or not?

2006-02-22 Thread Richard Guenther
On 2/21/06, Andrew Pinski <[EMAIL PROTECTED]> wrote: > > On Feb 21, 2006, at 4:44 PM, Chris Lattner wrote: > > > > Is this the intended layout of this structure? What does it mean when > > a field runs off the end of the structure? In this case, should I > > just ignore the type size and assume t

conditional expression evaluation at compile time in gcc 4.01

2006-02-22 Thread Inder
Hi All I am trying to compile 'test.cc' (code attached) with the gcc 4.0.1 it gives me the following error: test.cc:19: error: array bound is not an integer constant so it is not able to evaluate the conditional expression in gcc 4.0.1, while this is being compile by gcc 3.4 without any errors.

Re: Ada subtypes and base types (was: Bootstrap failure on trunk: x86_64-linux-gnu)

2006-02-22 Thread Richard Guenther
On 2/21/06, Jeffrey A Law <[EMAIL PROTECTED]> wrote: > On Mon, 2006-02-20 at 22:00 +0100, Richard Guenther wrote: > > On 2/20/06, Jeffrey A Law <[EMAIL PROTECTED]> wrote: > > > On Sun, 2006-02-19 at 20:43 +0100, Laurent GUERBY wrote: > > > > On Sun, 2006-02-19 at 14:23 -0500, Richard Kenner wrote:

Re: Ada subtypes and base types (was: Bootstrap failure on trunk: x86_64-linux-gnu)

2006-02-22 Thread Richard Guenther
On 2/21/06, Richard Kenner <[EMAIL PROTECTED]> wrote: > But if the values in there do not reflect the reality of what values > are valid for the type, then I don't see how they can be generally > useful -- that's my point. We have two fields that are inaccurate, > apparently on

Re: Possible accept wrong code in C++?

2006-02-22 Thread Tarjei Knapstad
On 2/22/06, Ed Smith-Rowland <[EMAIL PROTECTED]> wrote: > All, > > I have a template class: > > template < class Datum, unsigned long Dim > > class DataGrid > { > ... > public: > ... > std::ostream & write( std::ostream & output ) const; > ... > }; > > I have a non-member operator

Re: GCC 4.1.0 RC1

2006-02-22 Thread Rainer Emrich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 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 mac