mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-05-31 08:42:33 +02:00
* create a thumb_func directive before .globl directives in assembler to prevent accidental changes of asm mode
git-svn-id: trunk@28556 -
This commit is contained in:
parent
1e86d2ba2f
commit
3f18d85434
@ -1244,6 +1244,11 @@ implementation
|
||||
end;
|
||||
if tai_label(hp).labsym.bind in [AB_GLOBAL,AB_PRIVATE_EXTERN] then
|
||||
begin
|
||||
{$ifdef arm}
|
||||
{ do no change arm mode accidently, .globl seems to reset the mode }
|
||||
if GenerateThumbCode or GenerateThumb2Code then
|
||||
AsmWriteln(#9'.thumb_func'#9);
|
||||
{$endif arm}
|
||||
AsmWrite('.globl'#9);
|
||||
if replaceforbidden then
|
||||
AsmWriteLn(ReplaceForbiddenAsmSymbolChars(tai_label(hp).labsym.name))
|
||||
|
Loading…
Reference in New Issue
Block a user