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][AVR] Building Objective-C for the AVR


Not that anyone would actually use it, but this small patch allows building
of the Objective C compiler (and libs) for the AVR. But, you never know.
People have tried many strange things on an AVR.

Eric Weddington

/gcc:

2007-10-19  Eric B. Weddington  <eweddington@cso.atmel.com>

	* config/avr/avr.h: Do not include progmem_section definition when
	building with IN_TARGET_LIBS. This allows building of the
	Objective C compiler and libs for the AVR.



--- gcc/config/avr/avr.h.old	2007-08-23 15:18:31.015625000 -0600
+++ gcc/config/avr/avr.h	2007-08-23 15:19:17.687500000 -0600
@@ -53,7 +53,7 @@ extern int avr_mega_p;
 extern int avr_have_mul_p;
 extern int avr_asm_only_p;
 extern int avr_have_movw_lpmx_p;
-#ifndef IN_LIBGCC2
+#if !defined(IN_LIBGCC2) && !defined(IN_TARGET_LIBS)
 extern GTY(()) section *progmem_section;
 #endif




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