mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-10-29 17:45:04 +01:00 
			
		
		
		
	* store character constants converted to shortstrings unaligned
git-svn-id: trunk@9106 -
This commit is contained in:
		
							parent
							
								
									c794ec6de0
								
							
						
					
					
						commit
						6ac5ed6a47
					
				| @ -139,6 +139,9 @@ unit cgutils; | |||||||
|     { allocate room for parameters on the stack in the entry code? } |     { allocate room for parameters on the stack in the entry code? } | ||||||
|     function use_fixed_stack: boolean; |     function use_fixed_stack: boolean; | ||||||
| 
 | 
 | ||||||
|  |     { returns r with the given alignment } | ||||||
|  |     function setalignment(const r : treference;b : byte) : treference; | ||||||
|  | 
 | ||||||
| implementation | implementation | ||||||
| 
 | 
 | ||||||
| uses | uses | ||||||
| @ -179,6 +182,13 @@ uses | |||||||
|       end; |       end; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |     { returns r with the given alignment } | ||||||
|  |     function setalignment(const r : treference;b : byte) : treference; | ||||||
|  |       begin | ||||||
|  |         result:=r; | ||||||
|  |         result.alignment:=b; | ||||||
|  |       end; | ||||||
|  | 
 | ||||||
| {**************************************************************************** | {**************************************************************************** | ||||||
|                                   TLocation |                                   TLocation | ||||||
| ****************************************************************************} | ****************************************************************************} | ||||||
|  | |||||||
| @ -613,10 +613,10 @@ implementation | |||||||
|                   begin |                   begin | ||||||
|                     if (target_info.endian = endian_little) then |                     if (target_info.endian = endian_little) then | ||||||
|                       cg.a_load_const_ref(current_asmdata.CurrAsmList,OS_16,(tordconstnode(right).value.svalue shl 8) or 1, |                       cg.a_load_const_ref(current_asmdata.CurrAsmList,OS_16,(tordconstnode(right).value.svalue shl 8) or 1, | ||||||
|                           left.location.reference) |                           setalignment(left.location.reference,1)) | ||||||
|                     else |                     else | ||||||
|                       cg.a_load_const_ref(current_asmdata.CurrAsmList,OS_16,tordconstnode(right).value.svalue or (1 shl 8), |                       cg.a_load_const_ref(current_asmdata.CurrAsmList,OS_16,tordconstnode(right).value.svalue or (1 shl 8), | ||||||
|                           left.location.reference); |                           setalignment(left.location.reference,1)); | ||||||
|                   end |                   end | ||||||
|                 else |                 else | ||||||
|                   begin |                   begin | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 florian
						florian