Forum > FPC development

FPC Trunk a bit long code compilation compared to 3.2.2 and many, many Hints

(1/1)

ALLIGATOR:

--- 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";}};} ---program test; type  TSimpleAllocator = class    function GetMem(Size: SizeUInt): Pointer; inline;  end; function TSimpleAllocator.GetMem(Size: SizeUInt): Pointer;begin  Result:=GetMem(Size);end; begin  TSimpleAllocator.Create.GetMem(0);end. 
FPC Trunk 770 hints:
770 * Note: Call to subroutine "function TSimpleAllocator.GetMem(Size:QWord):System.Pointer;" marked as inline is not inlined

FPC 3.2.2: No hints


The question is not about the correctness of the code, I know there is recursion here, I just wonder why the compiler tries 770 times to inline, maybe it is a logical error in the compiler that can be fixed

Navigation

[0] Message Index

Go to full version