Skip to content

Commit

Permalink
fbc: reword a couple error messages mentioning GCC to GCC/clang
Browse files Browse the repository at this point in the history
  • Loading branch information
rversteegen committed Jan 21, 2024
1 parent 0863eed commit 98b0f5c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/compiler/error.bas
Expand Up @@ -93,7 +93,7 @@ declare function hMakeParamDesc _
( /'FB_WARNINGMSG_EXPECTEDDIGIT '/ 1, @"Expected digit" ), _
( /'FB_WARNINGMSG_UPCASTDISCARDSINITIALIZER '/ 1, @"Up-casting discards initializer(s)" ), _
( /'FB_WARNINGMSG_BYREFTEMPVAR '/ 2, @"Suspicious address expression passed to BYREF parameter" ), _
( /'FB_WARNINGMSG_MISSINGANDROIDSYSROOT '/ 1, @"GCC didn't provide a proper sysroot. You probably have to pass fbc an argument of the form '-sysroot $NDK/platforms/android-$API/arch-$ARCH'" ), _
( /'FB_WARNINGMSG_MISSINGANDROIDSYSROOT '/ 1, @"GCC/Clang didn't provide a proper sysroot. You probably have to pass fbc an argument of the form '-sysroot $NDK/platforms/android-$API/arch-$ARCH'" ), _
( /'FB_WARNINGMSGS '/ 0, @"FB_WARNINGMSGS" ) _
}

Expand Down Expand Up @@ -384,7 +384,7 @@ declare function hMakeParamDesc _
/'FB_ERRMSG_FORNEXTVARIABLEMISMATCH '/ @"FOR/NEXT variable name mismatch", _
/'FB_ERRMSG_OPTIONREQUIRESSSE '/ @"Selected option requires an SSE FPU mode", _
/'FB_ERRMSG_EXPECTEDRELOP '/ @"Expected relational operator ( =, >, <, <>, <=, >= )", _
/'FB_ERRMSG_STMTUNSUPPORTEDINGCC '/ @"Unsupported statement in -gen gcc mode", _
/'FB_ERRMSG_STMTUNSUPPORTEDINC '/ @"Unsupported statement in -gen gcc/clang mode", _
/'FB_ERRMSG_TOOMANYLABELS '/ @"Too many labels", _
/'FB_ERRMSG_UNSUPPORTEDFUNCTION '/ @"Unsupported function", _
/'FB_ERRMSG_EXPECTEDSUB '/ @"Expected sub", _
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/error.bi
Expand Up @@ -289,7 +289,7 @@ enum FB_ERRMSG
FB_ERRMSG_FORNEXTVARIABLEMISMATCH
FB_ERRMSG_OPTIONREQUIRESSSE
FB_ERRMSG_EXPECTEDRELOP
FB_ERRMSG_STMTUNSUPPORTEDINGCC
FB_ERRMSG_STMTUNSUPPORTEDINC
FB_ERRMSG_TOOMANYLABELS
FB_ERRMSG_UNSUPPORTEDFUNCTION
FB_ERRMSG_EXPECTEDSUB
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/parser-quirk-vafirst.bas
Expand Up @@ -218,7 +218,7 @@ function cVAFunct() as ASTNODE ptr
'' C backend? va_* not supported
select case env.clopt.backend
case FB_BACKEND_GCC, FB_BACKEND_CLANG
errReport( FB_ERRMSG_STMTUNSUPPORTEDINGCC, TRUE )
errReport( FB_ERRMSG_STMTUNSUPPORTEDINC, TRUE )

'' error recovery: fake an expr
function = astNewCONSTi( 0 )
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/pp-define.bas
Expand Up @@ -42,7 +42,7 @@ private function isMacroAllowed(byval s as FBSYMBOL ptr) as integer
if (s->def.flags and FB_DEFINE_FLAGS_NOGCC) then
select case env.clopt.backend
case FB_BACKEND_GCC, FB_BACKEND_CLANG
errReport(FB_ERRMSG_STMTUNSUPPORTEDINGCC)
errReport(FB_ERRMSG_STMTUNSUPPORTEDINC)
return FALSE
end select
end if
Expand Down

0 comments on commit 98b0f5c

Please sign in to comment.