This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH][AVR] Building Objective-C for the AVR
- From: Eric Weddington <eweddington at cso dot atmel dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: "'Anatoly Sokolov'" <aesok at post dot ru>, Denis Chertykov <denisc at overta dot ru>
- Date: Fri, 19 Oct 2007 17:30:15 -0600
- Subject: [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