From owner-p4-projects@FreeBSD.ORG Wed Jul 29 09:16:03 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4354A1065674; Wed, 29 Jul 2009 09:16:03 +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 EF1441065672 for ; Wed, 29 Jul 2009 09:16:02 +0000 (UTC) (envelope-from ccna.syl@gmail.com) Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.210.181]) by mx1.freebsd.org (Postfix) with ESMTP id A89948FC0C for ; Wed, 29 Jul 2009 09:16:02 +0000 (UTC) (envelope-from ccna.syl@gmail.com) Received: by yxe11 with SMTP id 11so1137037yxe.3 for ; Wed, 29 Jul 2009 02:16:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=UCE3qQPTkHFq7/Gfu75ObchT6hBdxXRzJXpYL5BM4M8=; b=oCZjKsNiCAishNpKsZLwNU+d3d3aYdNI4OBzEyKhUB/z2a04jpgNeJHGu+cPTpvHY1 zIG62mQQHVC7LFQ+GPhZhA+TN5f9LNJ3N5WOTLAanvEBUBgr1Z4hIrnJSKETpq0Lzldf b51JnXqBfFixIDbxVTkjlKPVd+EftOA3xc4fE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=pu9+HvSFv7ByhTOPMMV2CGo7TW9PGCy5GLwtBR9AwGXOakZ5b6DWDbGS7HFEeOfm5x /Va+UF8tKdWfH0E6ei4NHUXXKVqJPFFFXKOjPKwzitUl2Zz0V3vvXcx3/yoD1OPAqdy6 Wmo1FKR0ZWQOE362oZ1VQ/OGMRX1e0BzGFi2o= MIME-Version: 1.0 Received: by 10.231.37.73 with SMTP id w9mr2773979ibd.2.1248857637071; Wed, 29 Jul 2009 01:53:57 -0700 (PDT) In-Reply-To: <200907291049.07162.hselasky@c2i.net> References: <200907290841.n6T8fjqI025079@repoman.freebsd.org> <200907291049.07162.hselasky@c2i.net> From: Sylvestre Gallon Date: Wed, 29 Jul 2009 10:53:37 +0200 Message-ID: <164b4c9c0907290153q1585390p4f4bb54045edf152@mail.gmail.com> To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 09:16:04 -0000 On Wed, Jul 29, 2009 at 10:49 AM, Hans Petter Selasky wro= te: > On Wednesday 29 July 2009 10:41:45 Sylvestre Gallon wrote: >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 With this code gcc dump exactly the same s= witch function >> that do nothing. + =A0 =A0 =A0 =A0 =A0 =A0 =A0 But for the multipleswitc= h the functionn >> switcha and switchb are also generated. > > If you put a "static" into the function declaration, will gcc remove thos= e > 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 > I will update the report following you advices. Cheers, --=20 Sylvestre Gallon (http://devsyl.blogspot.com) Fifth Grade Student @ Epitech & Researcher @ LSE R&D @ Rathaxes (http://www.rathaxes.org)