From 71def00dac09afdf8dab5093b680cc762bc04b82 Mon Sep 17 00:00:00 2001 From: sandeep Date: Sat, 30 Sep 2000 21:41:49 +0000 Subject: [PATCH] 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 --- src/SDCC.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) ; } ; -- 2.47.2