In CCing avr-gcc-list@nongnu.org

Sean D'Epagnier schrieb:
On Wed, Nov 23, 2011 at 02:20:38PM +0100, Georg-Johann Lay wrote:

Has anyone else run into this problem?

No, never seen it.  There were quite some changes/rearrangements in the
compiler; did you try to completely clear the object directory before 
configuring?

What SVN version?

I am around trunk 181554 and all works smooth.

AFAIR c_addr_space_name is located in and included with c-family/c-common.h

Yes, but it is not found when linking because it is in c-common.o which is not 
in the
list of objects used to link lto1.

I fixed the problem by passing --disable-lto to configure.   Did you have 
success building
lto1 for link time optimization support?   It builds fine for a native 
compiler, so I
am wondering if this is a bug in the avr backend.

Ah, ok, now I see. I am configuring with --disable-lto for some reasons like http://sourceware.org/PR12742

I'd propose to move over to g...@gcc.gnu.org and ask for a solution there (please CC me then). Named addresses are new in GCC and AVR is the only target that makes extensive use of the new feature.

avr.c uses c_addr_space_name to get the names of address spaces for diagnostics, and likely it's a flaw in GCC's build machinery that does not arrange for that.

Johann

Sean

p.s.: please hit "answer all" in your email program so that your posts are visible in the mailing lists, too.

_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to