Fixes for building with GCC 4.9
This commit can be removed when updating to the latest Fiasco.OC version. Fixes ssumpf/foc#10
This commit is contained in:
committed by
Sebastian Sumpf
parent
1acdeeb381
commit
0644e90c5d
@@ -75,7 +75,8 @@ void Proc::stack_pointer(Mword sp)
|
||||
IMPLEMENT static inline
|
||||
Mword Proc::program_counter()
|
||||
{
|
||||
register Mword pc asm ("pc");
|
||||
Mword pc;
|
||||
asm ("mov %0, pc" : "=r" (pc));
|
||||
return pc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user