bebbo / gcc

Bebbo's gcc-6-branch for m68k-amigaos
GNU General Public License v2.0
33 stars 11 forks source link

Error: attempt to store non-zero value in section `.bssfar' #167

Closed githubaf closed 2 years ago

githubaf commented 2 years ago

Another strange effect happened. I tried to optimize WCS by making many global variables static. While doing so, I got suddenly an "Error: attempt to store non-zero value in section `.bssfar'". The stange thing is, this happens when I removed an extern declaration for variable that is not used at all in that c-File (WCS.c) !?

I added 2 preprocessed files. They differ only in

 long TrigTableEntries

= 361

;

As I sayed, TrigTableEntries is NOT used in the c-File, but when I remove it I get this strange error. Do you have an idea what goes wrong here?

example.zip

bebbo commented 2 years ago

it seems there is a section switch missing from .bssfar scrnrowzip to .datafar parambounds

bebbo commented 2 years ago

please test

githubaf commented 2 years ago

Yes, now it looks good! Great. Thanks you.