Closed Fabrizio-Caruso closed 1 week ago
If you could create a standalone buildable snippet of code that would be very helpful. The above references several externals and I don't know what type they are. tks.
I will do my best.
A minimal test that shows the error:
#define uint8_t unsigned char
uint8_t level;
uint8_t max_level_counter;
#define INITIAL_MAX_LEVEL_COUNT 72U
int main(void)
{
max_level_counter = INITIAL_MAX_LEVEL_COUNT/level;
return 0;
}
Initialisation of longs from constants was not working correctly - fixed in 1.32
1.32 seems to fix all new major problems (some old issues persist). Maybe there are a couple of very minor issues but all games except one can be built and are playable. So it is OK for 8 out of 9 games.
I am compiling with
-O2 -fno-peephole2 -fno-function-cse
. I have the same probem if I substitue-O2
with-Os
or-O1
.If I try to compile my game Verbix in my Cross-Lib project I get:
internal compiler error: in subreg_highpart_offset
A more complete message is
If seems to fail in line 422 of main.c: https://github.com/Fabrizio-Caruso/CROSS-LIB/blob/master/src/games/verbix/main.c#L422
which is the last line of the
drop_letter
function: