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:
Christian Prochaska
2015-05-11 16:59:42 +02:00
committed by Sebastian Sumpf
parent 1acdeeb381
commit 0644e90c5d
2 changed files with 4 additions and 3 deletions

View File

@@ -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;
}