Commit fcbb468f authored by Flyinghead's avatar Flyinghead
Browse files

Fix naked functions for GCC

parent c00f5222
......@@ -264,18 +264,8 @@ struct arm_reg_alloc: RegAlloc<eReg,eFSReg,false>
};
arm_reg_alloc reg;
#ifdef naked
#undef naked
#define naked __attribute__((naked))
#endif
u32 blockno=0;
......
......@@ -2251,7 +2251,7 @@ void Arm64RegAlloc::Writeback_FPU(u32 reg, eFReg nreg)
}
extern "C" void do_sqw_nommu_area_3(u32 dst, u8* sqb)
extern "C" naked void do_sqw_nommu_area_3(u32 dst, u8* sqb)
{
__asm__
(
......
......@@ -347,7 +347,7 @@ using namespace std;
#if defined(X86) && defined(_MSC_VER)
#define naked __declspec( naked )
#else
#define naked
#define naked __attribute__((naked))
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment