On 14/08/11 12:39, Sergey A. Borshch wrote: > On 09.08.2011 10:12, David Brown wrote: >> On 09/08/11 08:01, Sergey A. Borshch wrote: >>> On 07.08.2011 14:37, David Brown wrote: >>>> >>>> If LTO is working, you should consider --gc-sections and related flags >>>> as deprecated. >>>> >>> Until you want to use C++ >>> >> >> What do you mean by that? Another of the big benefits of LTO is that it >> works with C++ (and indeed any other language supported by gcc). With C >> only, you could use "-fcombine -fwhole-program" (which gives smaller and >> better code than --gc-sections, but requires you to compile all the C >> code in one lump). But "-fcombine" only works for C - LTO works for C++ >> too. > Sorry, you are right. I jumble LTO and "-fcombine" which works with C only. >
Originally, -fcombine was going to support different languages (or at least C and C++), but I think as work progressed on LTO it was not worth bothering with -fcombine. ------------------------------------------------------------------------------ FREE DOWNLOAD - uberSVN with Social Coding for Subversion. Subversion made easy with a complete admin console. Easy to use, easy to manage, easy to install, easy to extend. Get a Free download of the new open ALM Subversion platform now. http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users