On Tue, 16 Dec 2014 10:47:30 +0000 Nicholas Clifton <ni...@redhat.com> wrote:
> Hi Eric, > > > there are still some bugs, for example if linking a lot of code > > together the compiler suddenly issues a lot of > > > >> warning: visibility attribute not supported in this configuration; > >> ignored [-Wattributes] > > > > warnings for no apparent reason in random places in the code. > > That sounds interesting. Could you send me a small testcase to > reproduce the problem ? Or better yet file a bug report (with the > FSF or TI) including the testcase, and then I can look into it. > > Cheers > Nick > > The only test case I have so far that reproduces it contains a lot of proprietary code that I unfortunately cannot share here. I yet have to create an artificial simplified test case. The problem is, I was only able to reproduce it when linking together a relatively large code base with lots of functions, and only when many of these functions were actually being used. Any attempt to simplify the test case by reducing code, or even just calls to that code - which was the first thing I tried, made the error "magically" disappear. That happened regardless of which function calls were eliminated. That way I couldn't pinpoint any specific code as the culprit, it rather looks like the error only appears when a certain code complexity is surpassed. I'd guess maybe because it overwhelms the linker garbage collector or makes it switch optimization schemes internally or something. It's hard to tell without more detailed knowledge of whats going on linker-internally. Assume the following program was triggering the bug (with function1 and 2 implemented in previously compiled and now to be linked in object files) void function1(void); void function2(void); int main() { function1(); function2(); exit 0; } then these two simplified programs both did not trigger it: int main() { function1(); /* function2(); */ exit 0; } int main() { /* function1(); */ function2(); exit 0; } -- Eric Price TTI GmbH - TGU Smartmote Pfaffenwaldring 4 D-70569 Stuttgart Tel.: +49 0711 - 6856 5369 Fax.: +49 0711 - 6856 6818 E-mail: pr...@smartmote.de Homepage: http://www.smartmote.de ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users