Skip to content

Commit

Permalink
fbc: fix an incorrect gcc -> (gcc or clang) edit in eae0137
Browse files Browse the repository at this point in the history
  • Loading branch information
rversteegen committed Jan 21, 2024
1 parent 08cadef commit 0863eed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/compiler/ast-node-proc.bas
Expand Up @@ -622,10 +622,12 @@ private function hCallProfiler _
byval head_node as ASTNODE ptr _
) as ASTNODE ptr

'' on all ports except dos _mcount() is just a normal call
if( env.clopt.profile ) then
select case fbGetOption( FB_COMPOPT_BACKEND )
case FB_BACKEND_GCC, FB_BACKEND_CLANG
'' _mcount call is inserted by the C compiler
case else
'' On all ports except dos _mcount() is just a normal call
if( env.clopt.target <> FB_COMPTARGET_DOS ) then
head_node = astAddAfter( rtlProfileCall_mcount(), head_node )
end if
Expand Down

0 comments on commit 0863eed

Please sign in to comment.