]> git.hungrycats.org Git - linux/commitdiff
ia64: Fix things so that they compile with the latest GCC 3.4, which optimize
authorDavid Mosberger <davidm@tiger.hpl.hp.com>
Mon, 8 Sep 2003 04:46:50 +0000 (21:46 -0700)
committerDavid Mosberger <davidm@tiger.hpl.hp.com>
Mon, 8 Sep 2003 04:46:50 +0000 (21:46 -0700)
away static variables with no compiler-visible use.

arch/ia64/hp/sim/boot/boot_head.S
arch/ia64/hp/sim/boot/bootloader.c
arch/ia64/kernel/init_task.c

index 92c20ce3c4049e4705a2b97f8fb3ac523320d12f..43dcebc8fd6d142db9905800dd3c6c92a15b89e2 100644 (file)
@@ -27,6 +27,14 @@ GLOBAL_ENTRY(_start)
        br.call.sptk.many rp=start_bootloader
 END(_start)
 
+/*
+ * Set a break point on this function so that symbols are available to set breakpoints in
+ * the kernel being debugged.
+ */
+GLOBAL_ENTRY(debug_break)
+       br.ret.sptk.many b0
+END(debug_break)
+
 GLOBAL_ENTRY(ssc)
        .regstk 5,0,0,0
        mov r15=in4
index f49cde5de1f9ff7d5af475d13063bd0f6798b2a3..51a7b7b4dd0e7c5720683a40637cdb79a31ec4c4 100644 (file)
@@ -37,15 +37,7 @@ struct disk_stat {
 
 extern void jmp_to_kernel (unsigned long bp, unsigned long e_entry);
 extern struct ia64_boot_param *sys_fw_init (const char *args, int arglen);
-
-/*
- * Set a break point on this function so that symbols are available to set breakpoints in
- * the kernel being debugged.
- */
-static void
-debug_break (void)
-{
-}
+extern void debug_break (void);
 
 static void
 cons_write (const char *buf)
index ab79b199aadf1b03bf701586bc855d12119811d3..241a84cacba678697dc5d11142e919a1dca106eb 100644 (file)
@@ -28,15 +28,13 @@ struct mm_struct init_mm = INIT_MM(init_mm);
  */
 #define init_thread_info       init_task_mem.s.thread_info
 
-static union {
+union {
        struct {
                struct task_struct task;
                struct thread_info thread_info;
        } s;
        unsigned long stack[KERNEL_STACK_SIZE/sizeof (unsigned long)];
-} init_task_mem asm ("init_task_mem") __attribute__((section(".data.init_task"))) = {{
+} init_task_mem asm ("init_task") __attribute__((section(".data.init_task"))) = {{
        .task =         INIT_TASK(init_task_mem.s.task),
        .thread_info =  INIT_THREAD_INFO(init_task_mem.s.task)
 }};
-
-extern struct task_struct init_task __attribute__ ((alias("init_task_mem")));