From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Thu, 25 Aug 2011 16:27:24 -0400 Subject: [U-Boot] gcc-4.6 warnings In-Reply-To: References: <3AA0E5B6-7E38-4CB0-94E2-F7BBA9A100FA@kernel.crashing.org> <201108251051.33986.vapier@gentoo.org> Message-ID: <201108251627.26232.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thursday, August 25, 2011 15:50:57 Tabi Timur-B04825 wrote: > On Thu, Aug 25, 2011 at 9:51 AM, Mike Frysinger wrote: > > i feel like some (many?) #ifdef's in the tree could be done without > > ifdefs (by relying on gcc's DCE) thus improving overall code quality > > What's DCE? dead code elimination http://en.wikipedia.org/wiki/Dead_code_elimination if we let the optimizer do it instead of the preprocessor, we get better code coverage in the face of different config settings. -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20110825/dfdcf6e1/attachment.pgp