This bug appears to be related to bug #2741.
This bug appears to be the same bug as #2741.
I've found a cutting .c file perl script of B.Schwander. After some modifications, the script cuts all .c files in a directory and makes one .h file and many .c files each with one function inside. The script also makes .lib. I would like to have a copy of your version of B.Schwanders perl script. Please post it somewhere, or you can email it via david-gould@users.sourceforge.net. Thanks!
Please don't strip binaries in default build from source
I have simplifed the reproduction of this bug. If you download the three files and run ./test.sh with sdcc in your path it will make a core file for you. Let me know if I can help somehow. In main.c you can comment out the define of BUG and it will build successfully. It appears the problem is with statics declared and initialized in functions. May I also suggest you not strip the binaries by default. It makes debugging much less convenient and disk space is quite ample these days.
I have simplifed the reproduction of this bug. If you download the three files and run ./test.sh with sdcc in your path it will make a core file for you. Let me know if I can help somehow. May I also suggest you not strip the binaries by default. It makes debugging much less convenient and disk space is quite ample these days.
I have simplifed the reproduction of this bug. If you download the three files and run ./test.sh with sdcc in your path it will make a core file for you. Let me know if I can help somehow. May I also suggest you not strip the binaries by default. It makes debugging much less convenient and disk space is quite ample these days.
I have simplifed the reproduction of this bug. If you download the three files and run ./test.sh with sdcc in your path it will make a core file for you. Let me know if I can help somehow. May I also suggest you not strip the binaries by default. It makes debugging much less convenient and disk space is quite ample these days.