linux-mips
[Top] [All Lists]

Re: [PATCH] MIPS: Reduce kernel binary size.

To: <linux-mips@linux-mips.org>
Subject: Re: [PATCH] MIPS: Reduce kernel binary size.
From: "Steven J. Hill" <Steven.Hill@imgtec.com>
Date: Fri, 28 Jun 2013 16:29:30 -0500
Cc: Ralf Baechle <ralf@linux-mips.org>, "Maciej W . Rozycki" <macro@linux-mips.org>
In-reply-to: <1372454107-7784-1-git-send-email-Steven.Hill@imgtec.com>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1372454107-7784-1-git-send-email-Steven.Hill@imgtec.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6
Ralf,

Take note of the addition of '#ifdef CONFIG_SYS_HAS_CPU_R10000' around the 'cpu_is_noncoherent_r10000' and empty inline function if we're not one of the SGI platforms. Without the the empty inline function, I get an internal compiler compiler error. It results from the new 'current_cpu_type()' function you added. Essentially two functions are going to get optimized out. The compiler does not seem to complete that successfully. Here is the message:

  CC      arch/mips/mm/dma-default.o
arch/mips/mm/dma-default.c: In function 'mips_dma_sync_sg_for_cpu':
arch/mips/mm/dma-default.c:320:1: internal compiler error: in add_insn_before, at emit-rtl.c:3852

Maciej, what are we dealing with here? Thanks.

-Steve



<Prev in Thread] Current Thread [Next in Thread>