From 377e63b03870d5781d5a2412c64ef52cc3bc7376 Mon Sep 17 00:00:00 2001 From: vsc Date: Sun, 25 Nov 2001 19:48:34 +0000 Subject: [PATCH] gcc -g -O would choke on alphas if $15 was in use (egcs). git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@196 b08c6af1-5177-4d33-ba66-4b1c6b8b522a --- H/Regs.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/H/Regs.h b/H/Regs.h index a5cc22d94..93d2ad5a0 100644 --- a/H/Regs.h +++ b/H/Regs.h @@ -10,7 +10,7 @@ * File: Regs.h * * mods: * * comments: YAP abstract machine registers * -* version: $Id: Regs.h,v 1.6 2001-11-15 00:01:43 vsc Exp $ * +* version: $Id: Regs.h,v 1.7 2001-11-25 19:48:34 vsc Exp $ * *************************************************************************/ @@ -254,8 +254,13 @@ register CELL *HB asm ("$10"); register choiceptr B asm ("$11"); register yamop *CP asm ("$12"); register CELL *S asm ("$13"); -register CELL CreepFlag asm ("$14"); -register tr_fr_ptr TR asm ("$15"); +register tr_fr_ptr TR asm ("$14"); +/* gcc+debug chokes if $15 is in use on alphas */ +#ifdef DEBUG +#define CreepFlag REGS.CreepFlag_ +#else +register CELL CreepFlag asm ("$15"); +#endif /* Interface with foreign code, make sure the foreign code sees all the registers the way they used to be */