Posts: 35
Threads: 2
Joined: Oct 2018
Reputation:
8
Update: I just added a fourth scope setting for parameters being passed in to functions. Global, local, static local and now parameter are the four scopes. Hopefully juggling more scopes doesn't become necessary. Now to find another segfault cause on shut down.
Posts: 35
Threads: 2
Joined: Oct 2018
Reputation:
8
Update: The segfault is still there but several bugs about parameter passing and subroutine definitions and calls are now fixed. The segfault happens when deallocating a temporary Float variable when the compiler quits.
Posts: 35
Threads: 2
Joined: Oct 2018
Reputation:
8
Thanks! I finally found the cause of the seg-fault. The temporary variable was being deallocated twice, thus creating an alias of itself in the recycling queue and therefore, being double-freed at shutdown as well.
Posts: 35
Threads: 2
Joined: Oct 2018
Reputation:
8
Update: I've added a test using a For...Next loop. It seems to generate the correct code but when compiled with GCC 10 under Linux it goes into an unexpected infinite loop.
Posts: 245
Threads: 48
Joined: Jun 2015
Reputation:
4
My guess is you are compiling on x86_gcc2 and need to setarch x86 to make it compile properly
Posts: 35
Threads: 2
Joined: Oct 2018
Reputation:
8
Update: I start my new day job tomorrow. We'll see how much time I have left to work on this.
Posts: 35
Threads: 2
Joined: Oct 2018
Reputation:
8
Update:
Fixed longstanding bugs with multiple call sites referring to the same function and missing curly braces on conditional branch.