From: borutr Date: Sun, 20 Apr 2003 19:43:52 +0000 (+0000) Subject: small change in stack handling macros, to avoid crash when compiled with X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=ebd2338127c105dbbcf14321c530cfa57b735eed;p=fw%2Fsdcc small change in stack handling macros, to avoid crash when compiled with MSVC with global optimization enabled (probably an cl compiler bug ;-) git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2554 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCglobl.h b/src/SDCCglobl.h index 98ab3804..81839375 100644 --- a/src/SDCCglobl.h +++ b/src/SDCCglobl.h @@ -131,12 +131,12 @@ typedef int bool; ? (STACK_ERR(0, stack), *p_##stack) \ : *p_##stack ) -#define STACK_ERR(o, stack) (werror(E_STACK_VIOLATION, #stack, \ +#define STACK_ERR(o, stack) (fatal(1, E_STACK_VIOLATION, #stack, \ (o < 0) \ ? "underflow" \ : (o > 0) \ ? "overflow" \ - : "empty"), exit(1)) + : "empty")) /* optimization options */ struct optimize