/*-----------------------------------------------------------------*/
/* isCallerSaveFunc - returns TRUE if it's a 'normal' function */
-/* call and it's a 'caller save' (not 'callee save') */
+/* call and it's a 'caller save' (not 'callee save' or 'naked') */
/*-----------------------------------------------------------------*/
static bool
isCallerSaveFunc (const lineNode *pl)
return FALSE;
if (FUNC_CALLEESAVES(OP_SYM_TYPE(IC_LEFT(pl->ic))))
return FALSE;
+ if (FUNC_ISNAKED(OP_SYM_TYPE(IC_LEFT(pl->ic))))
+ return FALSE;
return TRUE;
}