On 10/28/2015 08:26 PM, John Ballance wrote:
There are 2 things I have had to change to build the gccsdk on a gcc5 host

First deals with __FUNCTION__ nolonger being recognised, so a global replace of __FUNCTION__ with __func__ is needed.

Do you still have the exact error message ? __FUNCTION__ and __func__ are both still supported as far as I know. The only case I can think of which can cause an error is with a -Wpedantic -Werror combination as that results in "ISO C does not support '__FUNCTION__' predefined identifier".

I have done this with a patch to the gcc4/Makefile. This is a sledgehammer as the gcc build tree appears to use the old format in many places.

Yes, a real sledgehammer indeed as...

[...]
+ cd $(SRCORIGDIR)/gcc-trunk && find -regex ".*\.\(c\|C\|h\)" -type f -exec sed -i 's/__FUNCTION__/__func__/g' {} \;

...this recursively goes into your gcc-trunk/.svn database. :-(

John.

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

Reply via email to