FIX:Revert commit 3f05d88d5b
				
					
				
			The function should to be saved to stack in some cases (fastcall on i386, struct argument on arm etc.). But I neglected. So I revert this commit.
This commit is contained in:
		
							parent
							
								
									8482f9e54b
								
							
						
					
					
						commit
						ecb90de4cc
					
				
					 3 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -1187,7 +1187,7 @@ again:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /* Manually free remaining registers since next parameters are loaded
 | 
					  /* Manually free remaining registers since next parameters are loaded
 | 
				
			||||||
   * manually, without the help of gv(int). */
 | 
					   * manually, without the help of gv(int). */
 | 
				
			||||||
  save_regs(nb_args+1);
 | 
					  save_regs(nb_args);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if(todo) {
 | 
					  if(todo) {
 | 
				
			||||||
    o(0xE8BD0000|todo); /* pop {todo} */
 | 
					    o(0xE8BD0000|todo); /* pop {todo} */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -948,7 +948,7 @@ ST_FUNC void gfunc_call(int nb_args)
 | 
				
			||||||
            vswap();
 | 
					            vswap();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    save_regs(1);
 | 
					    save_regs(0);
 | 
				
			||||||
    arm64_gen_bl_or_b(0);
 | 
					    arm64_gen_bl_or_b(0);
 | 
				
			||||||
    --vtop;
 | 
					    --vtop;
 | 
				
			||||||
    if (stack)
 | 
					    if (stack)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -475,7 +475,7 @@ ST_FUNC void gfunc_call(int nb_args)
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        vtop--;
 | 
					        vtop--;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    save_regs(1); /* save used temporary registers */
 | 
					    save_regs(0); /* save used temporary registers */
 | 
				
			||||||
    func_sym = vtop->type.ref;
 | 
					    func_sym = vtop->type.ref;
 | 
				
			||||||
    func_call = func_sym->f.func_call;
 | 
					    func_call = func_sym->f.func_call;
 | 
				
			||||||
    /* fast call case */
 | 
					    /* fast call case */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue