Re: Problem while configuring gcc3.2

2009-12-30 Thread Jonathan Wakely
2009/12/28 Pardis Beikzadeh: > Hi, This question should be asked on the gcc-help mailing list, not this one. > I'm having a problem while installing gcc3.2. I'm trying to install > gcc3.2 for my installation of cygwin because anything higher than that > won't work if I try to compile mex files fo

AVR gives weird error with LTO

2009-12-30 Thread Andrew Hutchinson
When AVR target is built, without explicitly disabling LTO, it will produce 1000's of testsuite failures of -LTO -WHOPR tests with this compilation error: "ld: -f may not be used without -shared" Any idea what is wrong or how to make LTO work correctly here? Andy http://gcc.gnu.org/bugzilla/

Re: AVR gives weird error with LTO

2009-12-30 Thread Dave Korn
Andrew Hutchinson wrote: > When AVR target is built, without explicitly disabling LTO, it will > produce 1000's of testsuite failures of -LTO -WHOPR tests with this > compilation error: > > "ld: -f may not be used without -shared" > > Any idea what is wrong or how to make LTO work correctly here?

Re: AVR gives weird error with LTO

2009-12-30 Thread Andrew Hutchinson
I used "v" and progressed a little The problem seems to be that linker is called with -fwhopr or -flto as command line option. ld -fwhopr . Linker find '-f' and complains. I assume this is not a valid option for ld? Or is my linker wrong version or something? Note this is cross comp

Re: AVR gives weird error with LTO

2009-12-30 Thread Dave Korn
Andrew Hutchinson wrote: > I used "v" and progressed a little > > The problem seems to be that linker is called with -fwhopr or -flto as > command line option. > > ld -fwhopr . > > Linker find '-f' and complains. > > I assume this is not a valid option for ld? Or is my linker wrong > vers

Re: target hooks / plugins

2009-12-30 Thread Richard Guenther
On Thu, Dec 24, 2009 at 1:32 AM, Joern Rennecke wrote: > Quoting Joern Rennecke : >> >> Right now, to make a new target hook, you have to add a new field in >> target.h, define a new default in target-def.h, place the new macro >> in exactly the right position there of the right initializer macro,

Re: ping^2 [rfc][patch] Document RETURN_EXPR better

2009-12-30 Thread Richard Guenther
On Sat, Dec 26, 2009 at 1:14 AM, Jerry Quinn wrote: > http://gcc.gnu.org/ml/gcc-patches/2009-12/msg00690.html > > [cc'ing gcc since it might be the better forum for this] > Ok. Thanks, Richard.

Re: Unnecessary PRE optimization

2009-12-30 Thread Richard Guenther
On Sat, Dec 26, 2009 at 2:07 AM, Daniel Berlin wrote: >> In general it will be tricky for latter passes to clean up the messes. >> The fundamental problem is that the address computation is exposed to >> PRE prematurely (for a given target  ) at GIMPLE level. > > > Yeah, i'm not sure PRE can reall

Re: AVR gives weird error with LTO

2009-12-30 Thread Rafael Espindola
>  It's not a valid option for ld.  It *is* a valid option for the collect2 > driver/wrapper executable that gcc uses to invoke ld, which suggests to me > that the AVR port must be configured not to build collect2, but that it is > going to need to do so if it wants to use LTO/WHOPR.  See use_colle

Re: AVR gives weird error with LTO

2009-12-30 Thread Dave Korn
Rafael Espindola wrote: >> It's not a valid option for ld. It *is* a valid option for the collect2 >> driver/wrapper executable that gcc uses to invoke ld, which suggests to me >> that the AVR port must be configured not to build collect2, but that it is >> going to need to do so if it wants to u

Re: AVR gives weird error with LTO

2009-12-30 Thread Andrew Hutchinson
Dave Korn wrote: Rafael Espindola wrote: It's not a valid option for ld. It *is* a valid option for the collect2 driver/wrapper executable that gcc uses to invoke ld, which suggests to me that the AVR port must be configured not to build collect2, but that it is going to need to do so if i

Re: AVR gives weird error with LTO

2009-12-30 Thread Richard Guenther
On Thu, Dec 31, 2009 at 12:04 AM, Andrew Hutchinson wrote: > > Dave Korn wrote: >> >> Rafael Espindola wrote: >>  It's not a valid option for ld.  It *is* a valid option for the collect2 driver/wrapper executable that gcc uses to invoke ld, which suggests to me that t

Re: AVR gives weird error with LTO

2009-12-30 Thread Andrew Hutchinson
Thank you David and Rafel I will dig further into collect2. I had noted that avr.h has the following: /* This is undefined macro for collect2 disabling */ #define LINKER_NAME "ld" That's indeed going to break LTO. Richard. That seems to be the key issue. Without #define LINKER_N

RE: AVR gives weird error with LTO

2009-12-30 Thread Weddington, Eric
> -Original Message- > From: Andrew Hutchinson [mailto:andrewhutchin...@cox.net] > Sent: Wednesday, December 30, 2009 4:34 PM > To: Richard Guenther > Cc: Dave Korn; Rafael Espindola; GCC Development; Weddington, > Eric; Denis Chertykov > Subject: Re: AVR gives weird error with LTO >

RE: target hooks / plugins

2009-12-30 Thread Grigori Fursin
Hi Joseph, cTuning-discussions is an open public mailing list - I have been moderating lots of spam there recently and mixed up some settings but it is fixed now ... Cheers, Grigori > -Original Message- > From: Joseph Myers [mailto:jos...@codesourcery.com] > Sent: Thursday, December 24, 20