Forum > macOS / Mac OS X

Error assembling some label/goto with last Darwin clang assembler

(1/2) > >>

Fred vS:
Hello.

While trying to compile a application for Darwin and his last clang assembler, there is that error for few label/goto code:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---(9009) Assembling msedrawtextunits/msedrawtext.s:3362:1: error: non-private labels cannot appear between .cfi_startproc / .cfi_endproc pairs_$MSEDRAWTEXT$_Lj446:^units/msedrawtext.s:2865:1: error: previous .cfi_startproc was here.cfi_startproc^
I did not find why some of the label/goto make the new assembler not happy (it was ok before).
The lot of other label/goto dont give problems.

So all the problematic label/goto were replaced with equivalent "traditional" pascal code.
There was only 12 to replace for all msegui so it was not a disaster and all is assembling/working ok.

But, for the light, I would be happy to find why those labels are not ok and all others yes.

Thanks.

[EDIT] The problem is bigger than I was thinking. 
For zeoslib there is a montain of label/goto that are not accepted, idem for units that use label/goto.

Fre;D

TRon:
https://gitlab.com/freepascal.org/fpc/source/-/issues/41045

Fred vS:

--- Quote from: TRon on February 09, 2025, 07:32:02 pm ---https://gitlab.com/freepascal.org/fpc/source/-/issues/41045

--- End quote ---

Thanks TRon!  ;D

OK, I hope it will be fixed in the very soon release of fpc 3.2.4. (even if I dont need it now, all the problematic "label/goto" were replaced by traditional pascal code).

(But I did not catch why those 12 "label/goto" used by MSEgui are not accepted and all the 286 others are ok, for the Zeos lib project that uses 301 "label/goto", the majority is not accepted.)

Fre;D

TRon:
You're welcome Fred vS


--- Quote ---OK, I hope it will be fixed in the very soon release of fpc 3.2.4. (even if I dont need it now, all the problematic "label/goto" were replaced by traditional pascal code).

--- End quote ---
Why do you think there isn't a release of 3.2.4 yet ? This issue is amongst others one of the reasons.

If you click on the link to the merge request in that issue report then you'll be able to find the details regarding the issue when following the discussion.

Rest assured that there is not really any thumb-fiddling going about and the issue is on the radar  :)

Fred vS:

--- Quote from: TRon on February 09, 2025, 08:06:33 pm ---You're welcome Fred vS


--- Quote ---OK, I hope it will be fixed in the very soon release of fpc 3.2.4. (even if I dont need it now, all the problematic "label/goto" were replaced by traditional pascal code).

--- End quote ---
Why do you think there isn't a release of 3.2.4 yet ? This issue is amongst others one of the reasons.

If you click on the link to the merge request in that issue report then you'll be able to find the details regarding the issue when following the discussion.

Rest assured that there is not really any thumb-fiddling going about and the issue is on the radar  :)

--- End quote ---

I have to confess that I am not a fan of  "label/goto" and never used it in my code.

Navigation

[0] Message Index

[#] Next page

Go to full version