mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-21 17:49:18 +02:00
+ Add EXTDEBUG warning if pi_needs_got was not set in pass_1
git-svn-id: trunk@22449 -
This commit is contained in:
parent
bc04e83b25
commit
5b5a5ab7af
@ -259,6 +259,10 @@ unit cgcpu;
|
|||||||
reference_reset_symbol(tmpref,r.symbol,0,r.alignment);
|
reference_reset_symbol(tmpref,r.symbol,0,r.alignment);
|
||||||
tmpref.refaddr:=addr_pic;
|
tmpref.refaddr:=addr_pic;
|
||||||
tmpref.base:=current_procinfo.got;
|
tmpref.base:=current_procinfo.got;
|
||||||
|
{$ifdef EXTDEBUG}
|
||||||
|
if not (pi_needs_got in current_procinfo.flags) then
|
||||||
|
Comment(V_warning,'pi_needs_got not included');
|
||||||
|
{$endif EXTDEBUG}
|
||||||
include(current_procinfo.flags,pi_needs_got);
|
include(current_procinfo.flags,pi_needs_got);
|
||||||
list.concat(taicpu.op_ref(A_PUSH,S_L,tmpref));
|
list.concat(taicpu.op_ref(A_PUSH,S_L,tmpref));
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user