[U-Boot] [PATCH 1/2] FAT: remove ifdefs to make the code more readable
Richard Genoud
richard.genoud at gmail.com
Thu Dec 13 15:24:08 CET 2012
2012/12/13 Marek Vasut <marex at denx.de>:
> 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)
More information about the U-Boot
mailing list