From: Tom Rini Date: Thu, 13 Dec 2012 07:41:50 -0700 Subject: [U-Boot] [PATCH 1/2] FAT: remove ifdefs to make the code more readable In-Reply-To: References: <50BE21CC.4030603@denx.de> <1355395656-5838-2-git-send-email-richard.genoud@gmail.com> <50C9D395.8020309@ti.com> <201212131451.49523.marex@denx.de> Message-ID: <20121213144150.GA11740@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Dec 13, 2012 at 03:24:08PM +0100, Richard Genoud wrote: > 2012/12/13 Marek Vasut : > > Dear Tom Rini, > > > > [...] > > > >> Note that we don't use --gc-sections on all archs so I'm not sure we > >> discard the unused VFAT functions on say ARM. > > > > Valid point, Albert? > > > > Best regards, > > Marek Vasut > > I check and the code is discarded (on ARM at91sam9x5ek). > This is the case because the function to discard are all in the same > file (fat.c or fat_write.c). > The compiler will discard unused function with -Os. (but not with -O0) Thanks for checking. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: