From: sandeep Date: Sat, 30 Sep 2000 21:41:49 +0000 (+0000) Subject: at absolute address can be an expression . This increases the X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=71def00dac09afdf8dab5093b680cc762bc04b82;p=fw%2Fsdcc at absolute address can be an expression . This increases the shift reduce conflicts (but that's okay) git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@434 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCC.y b/src/SDCC.y index 1d8fb62e..5775b325 100644 --- a/src/SDCC.y +++ b/src/SDCC.y @@ -523,12 +523,12 @@ Interrupt_storage type_specifier : type_specifier2 - | type_specifier2 AT CONSTANT + | type_specifier2 AT constant_expr { /* add this to the storage class specifier */ SPEC_ABSA($1) = 1; /* set the absolute addr flag */ /* now get the abs addr from value */ - SPEC_ADDR($1) = (int) floatFromVal ($3) ; + SPEC_ADDR($1) = (int) floatFromVal(constExprValue($3,TRUE)) ; } ;