This is the mail archive of the gcc-patches@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]

[PATCH,TARGET]FIX PR42457 AVR broken builds 4.5 regression


This patch fixes build for AVR when:

LTO is enabled - default as soon as libelf is present
ADA or other non-C/C++ language is built.

It moves C specific code to avr-c file, so that avr.c may compile without c front end.

OK for 4.5 head?


2009-12-23 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>


   PR target/42457
   * config/avr/avr.c (avr_extra_arch_macro) : Remove static.
   (avr_cpu_cpp_builtins) : Remove.
   * config/avr/avr.h (avr_extra_arch_macro) : Add prototype.
   * config/avr/avr-c.c : New File.
   (avr_cpu_cpp_builtins) : Add.
   * config/avr/t-avr : Add make information for avr-c.
   * config.gcc (avr-*-*) : Include avr-c.o as c and cpp object.






Attachment: cbuild2.patch
Description: Text document


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