Received: from mail.onstor.com ([66.201.51.107]) by onstor-exch02.onstor.net with Microsoft SMTPSVC(6.0.3790.1830);
	 Fri, 11 Jul 2008 09:16:00 -0700
Received: from ausesmta2-3.messageone.com ([64.20.241.45]) by mail.onstor.com with Microsoft SMTPSVC(6.0.3790.1830);
	 Fri, 11 Jul 2008 09:16:00 -0700
Received: from ftp.linux-mips.org (ftp.linux-mips.org [213.58.128.207])
	by ausesmta2-3.messageone.com (8.13.8/8.13.8) with ESMTP id m6BGFxOO003351
	for <andy.sharp@onstor.com>; Fri, 11 Jul 2008 11:15:59 -0500
Received: from localhost.localdomain ([127.0.0.1]:59371 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP
	id S20031934AbYGKQF7 (ORCPT <rfc822;andy.sharp@onstor.com>);
	Fri, 11 Jul 2008 17:05:59 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Fri, 11 Jul 2008 17:05:42 +0100 (BST)
Received: from mba.ocn.ne.jp ([122.1.235.107]:7635 "HELO smtp.mba.ocn.ne.jp")
	by ftp.linux-mips.org with SMTP id S20031913AbYGKQFk (ORCPT
	<rfc822;linux-mips@linux-mips.org>); Fri, 11 Jul 2008 17:05:40 +0100
Received: from localhost (p1011-ipad211funabasi.chiba.ocn.ne.jp [58.91.157.11])
	by smtp.mba.ocn.ne.jp (Postfix) with ESMTP
	id 16ED7AB24; Sat, 12 Jul 2008 01:05:35 +0900 (JST)
Date: 	Sat, 12 Jul 2008 01:07:21 +0900 (JST)
Message-Id: <20080712.010721.18574863.anemo@mba.ocn.ne.jp>
To: viro@ZenIV.linux.org.uk, ralf@linux-mips.org
Cc: sam@ravnborg.org, linux-sparse@vger.kernel.org, linux-mips@linux-mips.org
Subject: Re: [PATCH] sparse: Increase pre_buffer[] and check overflow
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
In-Reply-To: <20080710173945.GE28946@ZenIV.linux.org.uk>
References: <20080710.011818.26096759.anemo@mba.ocn.ne.jp>
	<20080709163212.GA1227@uranus.ravnborg.org>
	<20080710173945.GE28946@ZenIV.linux.org.uk>
X-Fingerprint: 6ACA 1623 39BD 9A94 9B1A  B746 CA77 FE94 2874 D52F
X-Pgp-Public-Key: http://wwwkeys.pgp.net/pks/lookup?op=get&search=0x2874D52F
X-Mailer: Mew version 5.2 on Emacs 21.4 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-archive-position: 19785
X-ecartis-version: Ecartis v1.0.0
Sender: linux-mips-bounce@linux-mips.org
Errors-to: linux-mips-bounce@linux-mips.org
X-original-sender: anemo@mba.ocn.ne.jp
Precedence: bulk
X-list: 	linux-mips
X-MessageOne-Virus-Version: vendor=fsecure engine=4.65.7161:2.4.4,1.2.40,4.0.164 definitions=2008-07-11_05:2008-07-09,2008-07-11,2008-07-11 signatures=0
X-MessageOne-Virus-Scanned: Clean
X-MessageOne-Envelope-Sender: linux-mips-bounce@linux-mips.org
X-MessageOne-Spam-Details: rule=m773emszm_notspam policy=m773emszm score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=3.1.0-0805090000 definitions=main-0807110087
X-MessageOne-Spam-Score: 0
X-MessageOne-Spam-Bar: 
Return-Path: linux-mips-bounce@linux-mips.org
X-OriginalArrivalTime: 11 Jul 2008 16:16:00.0411 (UTC) FILETIME=[688056B0:01C8E371]

On Thu, 10 Jul 2008 18:39:45 +0100, Al Viro <viro@ZenIV.linux.org.uk> wrote:
> So...  Only 3 symbols out of the entire bunch are arch-dependent *and* not
> provided by sparse itself.  Absolute majority of the rest is never ever
> used in the tree.
> 
> I very much doubt that mips situation is seriously different...

Then, how about this?  Ralf, is this filter reasonable?


Subject: [PATCH] mips: reduce symbols passed to CHECKFLAGS

Without this patch, gcc 4.3 will produces so many symbols and causes
pre_buffer[] overflow in sparse.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index d319cd6..6c4eb9f 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -619,7 +619,7 @@ LDFLAGS			+= -m $(ld-emul)
 
 ifdef CONFIG_MIPS
 CHECKFLAGS += $(shell $(CC) $(KBUILD_CFLAGS) -dM -E -xc /dev/null | \
-	egrep -vw '__GNUC_(|MINOR_|PATCHLEVEL_)_' | \
+	egrep '(MIPS|mips|_ABI|_TYPE__)' | \
 	sed -e 's/^\#define /-D/' -e "s/ /='/" -e "s/$$/'/")
 ifdef CONFIG_64BIT
 CHECKFLAGS		+= -m64

