This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/51409] New: [avr] Build fails if configured for other languages than from c-family
- From: "gjl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 04 Dec 2011 15:07:51 +0000
- Subject: [Bug target/51409] New: [avr] Build fails if configured for other languages than from c-family
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51409
Bug #: 51409
Summary: [avr] Build fails if configured for other languages
than from c-family
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Keywords: build
Severity: blocker
Priority: P3
Component: target
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: gjl@gcc.gnu.org
CC: eric.weddington@atmel.com
Target: avr
There is no generic function to get the name of an address space.
As avr.c needs the name for diagnostics, it uses c_addr_space_name which is
only available if C frontend is linked and thus building the compiler for any
language not in c-family will abort with a linker complaint for missing
c_addr_space_name.
Fix is to use C-only languages, e.g. configure with --disable-lto or apply the
patch below.