Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jul 2009 10:49:06 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        Sylvestre Gallon <syl@freebsd.org>
Cc:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   Re: PERFORCE change 166722 for review
Message-ID:  <200907291049.07162.hselasky@c2i.net>
In-Reply-To: <200907290841.n6T8fjqI025079@repoman.freebsd.org>
References:  <200907290841.n6T8fjqI025079@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907291049.07162.hselasky>