Carmelo, All, On Tuesday 04 January 2011 12:22:41 Carmelo AMOROSO wrote: > On 1/4/2011 12:12 PM, Abdoulaye Walsimou GAYE wrote: > > On 01/04/2011 12:03 PM, Carmelo AMOROSO wrote: > > I don't think it is the responsibility of C library to set such compiler > > switches at all. > > If the gcc is configured correctly, it will set all these switches > > correctly as well.
I do agree with this. > this is true, but in case you don't have a properly/optimal configured > gcc, why not taking advantages of this settings (if correct) ? > Anyway I'm open to reconsider this approach. Back some time ago, it had been discussed that it was up to the user to properly configure his/her compiler to the desired target system: http://lists.uclibc.org/pipermail/uclibc/2010-January/043506.html <quote> Once upon a time (not so long ago...), there was the idea floating around [1] that uClibc should not care about the specifics of the target CPU, and should leave that to the compiler to decide. There even have been a mere attempt at doing so [2] [3], and even a consensus (at the time) [4] [5] but the code did not make it to the tree... [...] [1] http://lists.uclibc.org/pipermail/uclibc/2009-April/042262.html and subsequent post in the thread. [2] http://lists.uclibc.org/pipermail/uclibc/2009-April/042276.html [3] http://lists.uclibc.org/pipermail/uclibc/2009-April/042277.html [4] http://lists.uclibc.org/pipermail/uclibc/2009-April/042291.html [5] http://lists.uclibc.org/pipermail/uclibc/2009-April/042329.html </quote> There was an updated tentative-patchset posted by me one year ago, but it did not get applied (patches in the thread): http://lists.uclibc.org/pipermail/uclibc/2010-January/043535.html I'm ready to rebase this patchset in the near future (say, ready before FOSDEM) if that is still deemed a good way to go. Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc