mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 14:39:36 +01:00 
			
		
		
		
	* set is_jmp
This commit is contained in:
		
							parent
							
								
									3123101b0c
								
							
						
					
					
						commit
						a370b6ff1d
					
				@ -127,6 +127,7 @@ unit cgrv;
 | 
			
		||||
      var
 | 
			
		||||
        href: treference;
 | 
			
		||||
        l: TAsmLabel;
 | 
			
		||||
        ai: taicpu;
 | 
			
		||||
      begin
 | 
			
		||||
        if not(weak) then
 | 
			
		||||
          reference_reset_symbol(href,current_asmdata.RefAsmSymbol(s,AT_FUNCTION),0,0,[])
 | 
			
		||||
@ -149,7 +150,9 @@ unit cgrv;
 | 
			
		||||
 | 
			
		||||
            reference_reset_symbol(href,l,0,0,[]);
 | 
			
		||||
            href.refaddr:=addr_pcrel_lo12;
 | 
			
		||||
            list.concat(taicpu.op_reg_reg_ref(A_JALR,NR_RETURN_ADDRESS_REG,NR_RETURN_ADDRESS_REG,href));
 | 
			
		||||
            ai:=taicpu.op_reg_reg_ref(A_JALR,NR_RETURN_ADDRESS_REG,NR_RETURN_ADDRESS_REG,href);
 | 
			
		||||
            ai.is_jmp:=true;
 | 
			
		||||
            list.concat(ai);
 | 
			
		||||
          end;
 | 
			
		||||
 | 
			
		||||
        { not assigned while generating external wrappers }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user