mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-25 13:49:29 +02:00
* MIPS: emit ".set nomips16" and ".set noreorder" directives for procedures declared as "assembler nostackframe", as it is done for regular procedures. Handwritten assembler routines typically utilize delay slots, and it is desirable that assembler does not mess it up.
git-svn-id: trunk@27847 -
This commit is contained in:
parent
6c7ab322a1
commit
4202343033
@ -1199,7 +1199,11 @@ begin
|
||||
a_reg_alloc(list,NR_STACK_POINTER_REG);
|
||||
|
||||
if nostackframe then
|
||||
exit;
|
||||
begin
|
||||
list.concat(taicpu.op_none(A_P_SET_NOMIPS16));
|
||||
list.concat(taicpu.op_none(A_P_SET_NOREORDER));
|
||||
exit;
|
||||
end;
|
||||
|
||||
if (pi_needs_stackframe in current_procinfo.flags) then
|
||||
a_reg_alloc(list,NR_FRAME_POINTER_REG);
|
||||
|
Loading…
Reference in New Issue
Block a user