This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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 v2] m68k: Fix libgloss compilation with gcc >= 4.5.0


Fix compilation of libgloss with gcc >= 4.50.
After adding new devices in gcc 4.5.0 for the family mc51qe, they
changed the family "__mcf_family_51qe" by "__mcf_family_51".
Add another condition to properly compile.

Regards
-- 
Rafael Campos Las Heras
Index: libgloss/m68k/cf-crt1.c
===================================================================
RCS file: /cvs/src/src/libgloss/m68k/cf-crt1.c,v
retrieving revision 1.4
diff -p -u -8 -r1.4 cf-crt1.c
--- libgloss/m68k/cf-crt1.c	16 Jun 2008 18:42:40 -0000	1.4
+++ libgloss/m68k/cf-crt1.c	19 Jul 2010 11:53:55 -0000
@@ -63,17 +63,17 @@ void __start1 (void *heap_limit)
 
 /* A default hardware init hook.  */
 
 void __attribute__ ((weak)) hardware_init_hook (void)
 {
   /* Set the VBR. */
   __asm__ __volatile__ ("movec.l %0,%/vbr" :: "r" (__interrupt_vector));
 
-#if !defined(__mcf_family_5213) && !defined(__mcf_family_51qe)
+#if !defined(__mcf_family_5213) && !defined(mcf_51qe) && !defined(__mcf_family_51)
   /* Flush & enable the caches */
 #define CACR_CINV (1 << 24)
 #define CACR_CENB (1 << 31)
   __asm__ __volatile__ ("movec.l %0,%/cacr" :: "r" (CACR_CINV | CACR_CENB));
 #endif
 
   /* Should we drop into user mode here? */
 }

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