Jan Kiszka wrote:
Hi,

just for fun I let latest fusion CVS compile with debian's gcc 4.0.1.

Applied, thanks.

Here is a tiny patch to make the default config pass this step. Most of
it deals with the kconfig, which may also be upgraded to a recent kernel
version.

Yep. Upgrading the Kconfig support is planned for 1.0.

Besides this patch, there is a harmless warning regarding
adeos_get_cpu on UP: gcc4 does not like the way the flags argument is
marked as "unused".


Ok.

Note that I did not executed the generated code, so there might be more
serious issues pending.


Ok.

Jan


------------------------------------------------------------------------

? bin
? build
? gcc4.patch
Index: arch/i386/hal/x86.c
===================================================================
RCS file: /cvs/rtai/fusion/arch/i386/hal/x86.c,v
retrieving revision 1.13
diff -u -p -r1.13 x86.c
--- arch/i386/hal/x86.c 20 Aug 2005 16:45:34 -0000      1.13
+++ arch/i386/hal/x86.c 27 Aug 2005 14:37:50 -0000
@@ -72,13 +72,13 @@ extern struct desc_struct idt_table[];
static long long rthal_timers_sync_time; -static struct rthal_apic_data rthal_timer_mode[RTHAL_NR_CPUS];
-
 struct rthal_apic_data {
int mode;
     unsigned long count;
 };
+
+static struct rthal_apic_data rthal_timer_mode[RTHAL_NR_CPUS];
static inline void rthal_setup_periodic_apic (unsigned count,
                                              unsigned vector)
Index: config/kconfig/lkc.h
===================================================================
RCS file: /cvs/rtai/fusion/config/kconfig/lkc.h,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 lkc.h
--- config/kconfig/lkc.h        6 Jun 2004 14:20:07 -0000       1.1.1.1
+++ config/kconfig/lkc.h        27 Aug 2005 14:37:51 -0000
@@ -59,9 +59,6 @@ void menu_set_type(int type);
 struct file *file_lookup(const char *name);
 int file_write_dep(const char *name);
-extern struct menu *current_entry;
-extern struct menu *current_menu;
-
 /* symbol.c */
 void sym_init(void);
 void sym_clear_all_valid(void);
Index: config/kconfig/menu.c
===================================================================
RCS file: /cvs/rtai/fusion/config/kconfig/menu.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 menu.c
--- config/kconfig/menu.c       6 Jun 2004 14:20:08 -0000       1.1.1.1
+++ config/kconfig/menu.c       27 Aug 2005 14:37:51 -0000
@@ -10,7 +10,6 @@
 #include "lkc.h"
struct menu rootmenu;
-struct menu *current_menu, *current_entry;
 static struct menu **last_entry_ptr;
struct file *file_list;
Index: config/kconfig/zconf.tab.c_shipped
===================================================================
RCS file: /cvs/rtai/fusion/config/kconfig/zconf.tab.c_shipped,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 zconf.tab.c_shipped
--- config/kconfig/zconf.tab.c_shipped  6 Jun 2004 14:20:09 -0000       1.1.1.1
+++ config/kconfig/zconf.tab.c_shipped  27 Aug 2005 14:37:54 -0000
@@ -175,6 +175,8 @@ static bool zconf_endtoken(int token, in
struct symbol *symbol_hash[257]; +static struct menu *current_menu, *current_entry;
+
 #define YYERROR_VERBOSE

------------------------------------------------------------------------

_______________________________________________
Rtai-dev mailing list
[EMAIL PROTECTED]
https://mail.gna.org/listinfo/rtai-dev


--

Philippe.

Reply via email to