arm-gen.c: fix var initialization in gfunc_call
Fix initialization of args_size before doing register allocation. When adding hardfloat calling convention the initialization stopped being performed when !defined (TCC_ARM_EABI).
This commit is contained in:
		
							parent
							
								
									61a4fd1d6e
								
							
						
					
					
						commit
						f715207249
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -836,9 +836,8 @@ void gfunc_call(int nb_args)
 | 
			
		|||
  
 | 
			
		||||
  vpushi(0), nb_args++;
 | 
			
		||||
  vtop->type.t = VT_LLONG;
 | 
			
		||||
  args_size = 0;
 | 
			
		||||
#endif
 | 
			
		||||
  ncrn = ncprn = argno = vfp_argno = 0;
 | 
			
		||||
  ncrn = ncprn = argno = vfp_argno = args_size = 0;
 | 
			
		||||
  /* Assign argument to registers and stack with alignment.
 | 
			
		||||
     If, considering alignment constraints, enough registers of the correct type
 | 
			
		||||
     (core or VFP) are free for the current argument, assign them to it, else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue