From owner-p4-projects@FreeBSD.ORG Wed Jul 29 08:49:15 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id DC9651065687; Wed, 29 Jul 2009 08:49:14 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 911931065696; Wed, 29 Jul 2009 08:49:14 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.swip.net [212.247.154.1]) by mx1.freebsd.org (Postfix) with ESMTP id F21528FC16; Wed, 29 Jul 2009 08:49:13 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=yIHwHit2HLUA:10 a=gg2W7PyvkLb8p4ie143lBA==:17 a=O-myITiocoLbCjUuXxsA:9 a=sDYw2sErWzcax-xO6kP50H2-4EgA:4 Received: from [194.248.135.20] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe01.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 232251613; Wed, 29 Jul 2009 10:49:12 +0200 From: Hans Petter Selasky To: Sylvestre Gallon Date: Wed, 29 Jul 2009 10:49:06 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-BETA2; KDE/4.2.4; i386; ; ) References: <200907290841.n6T8fjqI025079@repoman.freebsd.org> In-Reply-To: <200907290841.n6T8fjqI025079@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907291049.07162.hselasky@c2i.net> Cc: Perforce Change Reviews Subject: Re: PERFORCE change 166722 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jul 2009 08:49:16 -0000 On Wednesday 29 July 2009 10:41:45 Sylvestre Gallon wrote: > + With this code gcc dump exactly the same switch function > that do nothing. + But for the multipleswitch the functionn > switcha and switchb are also generated. If you put a "static" into the function declaration, will gcc remove those functions? Also, what happens when switch statements have more spread values than 1,2,3,4 ? E.g. 1,2,3,100,101,102,500,501,502 ... --HPS