Re: mips: -G0 vs __dso_handle

2006-05-10 Thread Richard Sandiford
DJ Delorie <[EMAIL PROTECTED]> writes: > How about this? Tested under mipsisa64-elf with no regressions. The > other two I found by inspection; they're the only other two that have > .sdata and use -G 0. Looks good to me FWIW, although I can't approve it. I wonder if... > +#if defined(__mips__

www pages outdated

2006-05-10 Thread HeroreV
The pages at http://www.gnu.org/software/gcc/ are several months old, even though the page at http://gcc.gnu.org/about.html says: > The pages on gcc.gnu.org are updated "live" (that > is, directly after a change has been made); > www.gnu.org is updated once a day at 4:00 -0700 > (PDT). The pages

Re: mips: -G0 vs __dso_handle

2006-05-10 Thread DJ Delorie
How about this? Tested under mipsisa64-elf with no regressions. The other two I found by inspection; they're the only other two that have .sdata and use -G 0. 2006-05-09 DJ Delorie <[EMAIL PROTECTED]> * crtstuff.c: Ensure that __dso_handle is placed in .sdata for mips, iq2000

Re: default_secondary_reload: class vs scratch_class

2006-05-10 Thread Joern RENNECKE
In http://gcc.gnu.org/ml/gcc/2006-05/msg00254.html, Ian Lance Taylor wrote: That said, while it makes sense to me that SECONDARY_RELOAD_CLASS and the reload_{in,out} instruction should be in synch--that was one of the flaws of the old scheme, really--I can't think of anything that would go wrong

Re: mthumb: generate a tail-call

2006-05-10 Thread Paul Brook
On Wednesday 10 May 2006 21:38, Shaun Jackman wrote: > What optimisation option is needed to prod arm-elf-gcc -mthumb to > generate a tail call? ARM works as expected. Thumb only has very limited (256 byte) direct branch offsets, so tail calls aren't possible/useful. Paul

Re: default_secondary_reload: class vs scratch_class

2006-05-10 Thread DJ Delorie
> I'd hesitate to apply patches to default_secondary_reload. Even if it's wrong? > If your port triggers any of the sanity checks, convert it to the > new infrastructure, as it provides a much better interface. In my case, I'm just trying to get the am33 port to function, because I have some pa

Re: mthumb: generate a tail-call

2006-05-10 Thread Daniel Jacobowitz
On Wed, May 10, 2006 at 02:38:30PM -0600, Shaun Jackman wrote: > What optimisation option is needed to prod arm-elf-gcc -mthumb to > generate a tail call? ARM works as expected. It's not yet supported. Remember, bl has a long range but clobbers lr, and there's no long branch instruction, so you h

Re: default_secondary_reload: class vs scratch_class

2006-05-10 Thread Bernd Schmidt
Ian Lance Taylor wrote: You should run any patch past Joern, though. I'd hesitate to apply patches to default_secondary_reload. If your port triggers any of the sanity checks, convert it to the new infrastructure, as it provides a much better interface. Bernd

Re: default_secondary_reload: class vs scratch_class

2006-05-10 Thread Ian Lance Taylor
DJ Delorie <[EMAIL PROTECTED]> writes: > > What reason is there to have scratch_class be something else? > > SECONDARY_RELOAD_CLASS has the option of limiting the reload class. > The mn10300 has a generic SImode reload_in that allows GENERAL_REGS, > but SECONDARY_RELOAD_CLASS specifies a smaller

mthumb: generate a tail-call

2006-05-10 Thread Shaun Jackman
What optimisation option is needed to prod arm-elf-gcc -mthumb to generate a tail call? ARM works as expected. Please cc me in your reply. Thanks! Shaun arm-elf-gcc (GCC) 4.1.0 $ cat

Re: VLA/VM [*] bug fixes for C

2006-05-10 Thread Gabriel Dos Reis
"Joseph S. Myers" <[EMAIL PROTECTED]> writes: | On Wed, 10 May 2006, Andreas Schwab wrote: | | > Mike Stump <[EMAIL PROTECTED]> writes: | > | > > Speaking of typeof, should typeof (vla) follow the same rules as for | > > sizeof (vla)? vla, evaluate, otherwise, no eval. | > | > How would typeof

Re: VLA/VM [*] bug fixes for C

2006-05-10 Thread Joseph S. Myers
On Wed, 10 May 2006, Andreas Schwab wrote: > Mike Stump <[EMAIL PROTECTED]> writes: > > > Speaking of typeof, should typeof (vla) follow the same rules as for > > sizeof (vla)? vla, evaluate, otherwise, no eval. > > How would typeof be able to eval anything? If you have "typeof ((int (*)[f()])

Re: VLA/VM [*] bug fixes for C

2006-05-10 Thread Andreas Schwab
Mike Stump <[EMAIL PROTECTED]> writes: > Speaking of typeof, should typeof (vla) follow the same rules as for > sizeof (vla)? vla, evaluate, otherwise, no eval. How would typeof be able to eval anything? Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfel

Re: VLA/VM [*] bug fixes for C

2006-05-10 Thread Joseph S. Myers
On Wed, 10 May 2006, Mike Stump wrote: > On May 8, 2006, at 2:30 PM, Joseph S. Myers wrote: > > > void foo11(typeof (int (*)(int o[*])) i); > > > > I think that's valid gnu99. > > Speaking of typeof, should typeof (vla) follow the same rules as for sizeof > (vla)? vla, evaluate, otherwise, no e

Re: VLA/VM [*] bug fixes for C

2006-05-10 Thread Mike Stump
On May 8, 2006, at 2:30 PM, Joseph S. Myers wrote: void foo11(typeof (int (*)(int o[*])) i); I think that's valid gnu99. Speaking of typeof, should typeof (vla) follow the same rules as for sizeof (vla)? vla, evaluate, otherwise, no eval.

Re: default_secondary_reload: class vs scratch_class

2006-05-10 Thread DJ Delorie
> What reason is there to have scratch_class be something else? SECONDARY_RELOAD_CLASS has the option of limiting the reload class. The mn10300 has a generic SImode reload_in that allows GENERAL_REGS, but SECONDARY_RELOAD_CLASS specifies a smaller class based on the registers that need reloading.

Re: -Wextra and unsigned template parameters

2006-05-10 Thread Joe Buck
On Wed, May 10, 2006 at 12:30:33PM -0400, Andrew Pinski wrote: > > I think that the warning is useful if the comparison is *always* true for > > any call of foo. But here, whether the test is redundant or not > > depends on the type of bar. Possibly there's a way to determine that the > > type of

Re: -Wextra and unsigned template parameters

2006-05-10 Thread lopezibanez
On 10/05/06, Joe Buck <[EMAIL PROTECTED]> wrote: But then I just thought of another case: template struct foo { foo(const Container& bar) { if (bar.size() >= 0) use(bar); } }; For any STL-compliant container the test is redundant. But if we put in a rule saying to suppress the warning if

Re: -Wextra and unsigned template parameters

2006-05-10 Thread Andrew Pinski
> > > Aliesha Finkel <[EMAIL PROTECTED]> writes: > > | Hi, I'm using -Wextra (-W) to compile my code, one > > | feature of which is throwing a warning when an > > | unsigned type is checked for >= 0 since it's always > > | true. In general I find this to be very helpful, but > > | it throws this

Re: -Wextra and unsigned template parameters

2006-05-10 Thread Gabriel Dos Reis
Joe Buck <[EMAIL PROTECTED]> writes: [...] | class C { | public: | int size() const; many people, including "dinosaure" C++ users, wish the standard containers did not have unsigned return type for size(). -- Gaby

Re: -Wextra and unsigned template parameters

2006-05-10 Thread Gabriel Dos Reis
Joe Buck <[EMAIL PROTECTED]> writes: | Aliesha Finkel <[EMAIL PROTECTED]> writes: | > | Hi, I'm using -Wextra (-W) to compile my code, one | > | feature of which is throwing a warning when an | > | unsigned type is checked for >= 0 since it's always | > | true. In general I find this to be very h

Re: -Wextra and unsigned template parameters

2006-05-10 Thread Joe Buck
Aliesha Finkel <[EMAIL PROTECTED]> writes: > | Hi, I'm using -Wextra (-W) to compile my code, one > | feature of which is throwing a warning when an > | unsigned type is checked for >= 0 since it's always > | true. In general I find this to be very helpful, but > | it throws this error even for t

Re: Fortran frontend prerequisites

2006-05-10 Thread Daniel Jacobowitz
On Wed, May 10, 2006 at 02:24:04PM +, sean yang wrote: > I made some modification on GCC 4.0.2 (basically, I added a simple pass) > and compiled it to binary. > > But I realized that the GCC I built does not include Fortran frontend. I > think I followed the standard steps > http://gcc.gnu.

Fortran frontend prerequisites

2006-05-10 Thread sean yang
I made some modification on GCC 4.0.2 (basically, I added a simple pass) and compiled it to binary. But I realized that the GCC I built does not include Fortran frontend. I think I followed the standard steps http://gcc.gnu.org/install/configure.html Could you please guess (based on your exp

Re: -Wextra and unsigned template parameters

2006-05-10 Thread Gabriel Dos Reis
Aliesha Finkel <[EMAIL PROTECTED]> writes: | Hi, I'm using -Wextra (-W) to compile my code, one | feature of which is throwing a warning when an | unsigned type is checked for >= 0 since it's always | true. In general I find this to be very helpful, but | it throws this error even for templated t

Re: install Gcc on SuSE Linux 10

2006-05-10 Thread Grzegorz Jaskiewicz
On Wednesday 10 May 2006 12:33, [EMAIL PROTECTED] wrote: > Hi! I'm new of Linux and I'm not good. > > How can I install Gcc if I don't have any C compiler? install rpm package for your distribution, or download gcc in binary form. this question doesn't belong here, so please ask on SuSE related gro

install Gcc on SuSE Linux 10

2006-05-10 Thread elvis_d
Hi! I'm new of Linux and I'm not good. How can I install Gcc if I don't have any C compiler?

Re: CC0 questions

2006-05-10 Thread Richard Earnshaw
On Tue, 2006-05-09 at 22:16, Richard Kenner wrote: > Can there be two consecutive insns that use cc0 after cc0 is set? > > No. Yes. But only very very late in the compilation, once all normal re-ordering and optimization has been completed. I think it's probably final that folds out

Re: -Wextra and unsigned template parameters

2006-05-10 Thread lopezibanez
On 10/05/06, Aliesha Finkel <[EMAIL PROTECTED]> wrote: template struct foo { foo(T bar) { if (bar >= 0) bar = 1; } }; If foo is instantiated elsewhere then this check could still be useful. My opinion is that since it may be instantiated as an signed type, then warning is pointless there.