@philmozHi,
As promised, some more tests, this time on Windows.
Like in previous post used trunk r5795, compiled for ixus70_sd1000-101b
1. Baseline OPT_ setting for these tests: everything OFF, except PTP and WARNINGS
2. as in baseline, but with FIRMWARE_PC24_CALL turned on
3. as in baseline, but with DEBUGGING turned on
Result: All 3 compiled and ran fine.
I then looked a little further into binaries created by gcc 493/541/831/931/1021
compiled with/without the '-fno-tree-loop-distribute-patterns', and sizes were
equal, except in those from gcc 10.(option commented out = 24 bytes smaller)
Reading the docs (gcc.pdf) for each compiler about '-ftree-loop-distribute-patterns':
1. gcc 493 : no mention of the option (when used silently ignores it)
2. gcc 5, 8 and 9 docs say it is automatically activated for optimization level -O3
3. gcc 10 docs are ambivalent, the required optimization level is mentioned once as
-O2, and later on as -O3 ...
If they forgot to change the second occurrence, that would explain the behaviour
we see, because 'our' opt.level is -Os, which, according to the same doc
'enables all -O2 optimizations except those that often increase code size:'
followed by 6 options not including ours.
At least now we can easily test against future gcc 10.x versions, if it is a bugin GCC they'll surely find and fix it, there must be loads of embedded arm running with size optimization
BTW, other vxworks cams now work too on r5797 - A620 , A630(A620 not sure if it was affected)
wim