vdudouyt / stm8flash

program your stm8 devices with SWIM/stlinkv(1,2)
GNU General Public License v2.0
401 stars 182 forks source link

Fix GCC 10 linker error #127

Closed ghost closed 4 years ago

ghost commented 4 years ago

gcc-10 and above flipped to a default from -fcommon to -fno-common which generates a linker error. https://gcc.gnu.org/gcc-10/changes.html https://gcc.gnu.org/gcc-10/porting_to.html

spth commented 4 years ago

Thanks for spotting this issue and proposing a fix.

However, since each line array is used only in a single function, IMO, the cleaner solution would be to just use local arrays instead.

spth commented 4 years ago

I have implemented the solution using local arrays instead of renaming the global ones.