On Wed, Aug 3, 2011 at 9:41 AM, Grant Edwards <[email protected]> wrote: > On 2011-08-03, Peter Bigot <[email protected]> wrote: >> If you see a reduction in code size when you use --gc-sections, and >> what it removes really wasn't necessary, figure out why it got put in >> there in the first place and fix it there. > > That's pretty narrow-minded. > > When reusing code, it's _very_ useful to be able to put a set of > related functions in a single file so that you can avoid name-space > issues and only expose certain selected names in the global namespace. > If all of the functions aren't needed for a given project, you > -ffunction-sections and -gc-sections can be used to discard the ones > that aren't needed. This has been a common way of doing things for a > long time. I've been using it for at least a dozen years and I > certainly didn't invent it. I don't see how you can decided all of a > sudden that it's not valid.
Simple: it didn't work, there were no test cases for the feature, I had no direct or indirect experience of it ever working, and I did find suggestions of circumstances where -ffunction-sections was mishandled (mostly related to relocatable link invocations). Based on that, my conclusion was naturally that it hadn't been used. Now I know better, and I see that I broke this particular use in March through ignorance when cleaning up some redundancies. I'll do an LTS patch to fix this specific regression in the next day or so. The remaining situations where this is not going to work for 20110716 will have to be dealt with in the next release, because I'm going to have to write tests to validate the behavior. If those situations aren't regressions (i.e., they never worked), the fix for them won't be back-ported because I prefer stability over enhancements for LTS releases. Sorry about the bug. Peter ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________ Mspgcc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mspgcc-users
