All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Steven J. Hill" <Steven.Hill@imgtec.com>
To: <linux-mips@linux-mips.org>
Cc: Ralf Baechle <ralf@linux-mips.org>,
	"Maciej W . Rozycki" <macro@linux-mips.org>
Subject: Re: [PATCH] MIPS: Reduce kernel binary size.
Date: Fri, 28 Jun 2013 16:29:30 -0500	[thread overview]
Message-ID: <51CE003A.5040902@imgtec.com> (raw)
In-Reply-To: <1372454107-7784-1-git-send-email-Steven.Hill@imgtec.com>

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

WARNING: multiple messages have this Message-ID (diff)
From: "Steven J. Hill" <Steven.Hill@imgtec.com>
To: linux-mips@linux-mips.org
Cc: Ralf Baechle <ralf@linux-mips.org>,
	"Maciej W . Rozycki" <macro@linux-mips.org>
Subject: Re: [PATCH] MIPS: Reduce kernel binary size.
Date: Fri, 28 Jun 2013 16:29:30 -0500	[thread overview]
Message-ID: <51CE003A.5040902@imgtec.com> (raw)
Message-ID: <20130628212930.QyiBSu3GRHjhPG1t1ycFPpJ7lDVejcrMGNNZMK0bdjQ@z> (raw)
In-Reply-To: <1372454107-7784-1-git-send-email-Steven.Hill@imgtec.com>

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

  reply	other threads:[~2013-06-28 21:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-28 21:15 [PATCH] MIPS: Reduce kernel binary size Steven J. Hill
2013-06-28 21:29 ` Steven J. Hill [this message]
2013-06-28 21:29   ` Steven J. Hill
2013-06-28 22:31 ` Jonas Gorski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51CE003A.5040902@imgtec.com \
    --to=steven.hill@imgtec.com \
    --cc=linux-mips@linux-mips.org \
    --cc=macro@linux-mips.org \
    --cc=ralf@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.