2009/12/31 Weddington, Eric <eric.wedding...@atmel.com>: > > >> -----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 >> >> >> >> 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_NAME, AVR is running LTO/WHOPR tests ok ! (No >> idea if it does anything useful though) >> >> Now to figure out why it was added in 2000 (rth). Hopefully Eric >> Weddington or Denis might have some idea and perhaps know if it still >> has a purpose. > > That was before my time. I didn't get involved (peripherally) until 2002. So > it's either Denis Chertykov or Marek Michalkiewicz (CCed).
I havn't any ideas about LINKER_NAME definition. Denis.