This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/51409] New: [avr] Build fails if configured for other languages than from c-family


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]