Re: Re[2]: [9fans] Strange 'uintptr' behavior

2022-01-25 Thread Pavel Klinkovský
Ah, thanks! Going to try... út 25. 1. 2022 v 9:28 odesílatel Alex Musolino napsal: > It didn't always work on 9front. Check the dump! > > After bisecting the dump and looking through the git log, I suspect > that 9front changeset 71939a82 [1] will fix it for you. > > [1] >

Re[2]: [9fans] Strange 'uintptr' behavior

2022-01-25 Thread Alex Musolino
It didn't always work on 9front. Check the dump! After bisecting the dump and looking through the git log, I suspect that 9front changeset 71939a82 [1] will fix it for you. [1] https://git.9front.org/plan9front/plan9front/71939a82ccc505b0baa990d7fe17e7085d0ab8fc/commit.html

Re[2]: [9fans] Strange 'uintptr' behavior

2022-01-25 Thread Alexandr Babic
i've tried it again and i can compile both versions 1) and 2) without error at 9front distro of plan9. do you use original 4th release of plan9 or 9front distro? download link of 9front iso: http://9front.org/iso/9front-8593.acc504c319a4b4188479cfa602e40cb6851c0528.amd64.iso.gz 1) #include

Re: [9fans] Strange 'uintptr' behavior

2022-01-24 Thread Pavel Klinkovský
Sorry, I was not precise enough. I prepared arrays in the initiated data segment: This program cannot be compiled: #include #include uintptr frst[] = {nil, nil, nil, nil, nil}; uintptr scnd[] = {nil, nil, frst, [1]}; void main(void) { exits(nil); } ...because of: cpu% 5c t.c t.c:5

Re: [9fans] Strange 'uintptr' behavior

2022-01-24 Thread Skip Tavakkolian
maybe a previous fix was not applied? there is a slight difference in the error messages between the address of zeroth element vs first element (see line 9 vs 10 errors below). regardless, it's working as expected on vanilla Plan 9: % cat addrgames.c #include #include void main(int argc,

Re: [9fans] Strange 'uintptr' behavior

2022-01-24 Thread Alexandr Babic
hi. i inluded them too, but had that error with uintptr. i tried it with 6c, 5c and had same result. (9front installation of plan9) a.b. 24. ledna 2022 20:49:30 SEČ, "Pavel Klinkovský" napsal: >> what headers you've included? >> > >As usually: > >#include >#include > > >with uintptr i

Re: [9fans] Strange 'uintptr' behavior

2022-01-24 Thread Pavel Klinkovský
> what headers you've included? > As usually: #include #include with uintptr i get compilation error: incompatible types: "ULONG" and "IND > VOID" for op AS. > with void* it compiles without errors. > > alex.b. > > ps: are you czech? > Yes. Pavel --

Re: [9fans] Strange 'uintptr' behavior

2022-01-24 Thread Alexandr Babic
hello. what headers you've included? with uintptr i get compilation error: incompatible types: "ULONG" and "IND VOID" for op AS. with void* it compiles without errors. alex.b. ps: are you czech? -- 9fans: 9fans Permalink:

[9fans] Strange 'uintptr' behavior

2022-01-24 Thread Pavel Klinkovský
Hi all, I tried some artificial example for Plan9 compiler (5c)... This code is compiled without any problem: uintptr frst[] = {nil, nil, nil, nil, nil}; uintptr scnd[] = {nil, nil, frst, [0]}; But this one fails: uintptr frst[] = {nil, nil, nil, nil, nil}; uintptr scnd[] = {nil, nil, frst,