Hi Gavin,

> You are a genius. Thanks.

I'm often told I "full of it".  ;-)
But it was not I that pointed this out, but Nick Burrett.
http://www.riscos.info/pipermail/gcc/2015-September/006473.html

> I guess I had not properly appreciated what 'const' meant.

I recommend Chris Lattner's three posts on what a C compiler can assume;
I think you may be surprised.  It starts with
http://blog.llvm.org/2011/05/what-every-c-programmer-should-know.html

Cheers, Ralph.

_______________________________________________
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