-->
Page 2 of 6

Re: gcc 8.2

PostPosted: Sun Apr 14, 2019 2:59 am
by davydnorris
Apparently the main changes are the ANSIfication of the lib.

Re: gcc 8.2

PostPosted: Sun Apr 14, 2019 6:37 am
by eriksl
Did they still have K&R style code inside? Or update to newer ANSI/ISO C versions?

Re: gcc 8.2

PostPosted: Sun Apr 14, 2019 6:40 am
by eriksl
BTW it appears newlibc introduces char array of about 1kbytes called "impure_data". I think it's wasted for non-threaded code. I could only find this text about it: https://newlib.sourceware.narkive.com/l ... mpure-data which suggests we should set
Code: Select all--enable-newlib-reent-small
in the build process. I only didn't find out yet where that could be hacked in, into crosstool-NG.

Re: gcc 8.2

PostPosted: Sun Apr 14, 2019 6:42 am
by eriksl
Also BTW, I disabled the "MMU" option in crosstool-NG for our lx106, because it doesn't have one. I don't think it does matter anything at all, but hey, you never know.

Also I boldly removed -lhal from my linking flags and everything still builds. Looks like the complete HAL code is in ROM and PROVIDEd in (newer?) load scripts. So no need to build it anymore. Anyway, I think very little code will use it.