]> git.gag.com Git - fw/sdcc/commitdiff
at absolute address can be an expression . This increases the
authorsandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 30 Sep 2000 21:41:49 +0000 (21:41 +0000)
committersandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 30 Sep 2000 21:41:49 +0000 (21:41 +0000)
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

index 1d8fb62ed1ecbc74f708b3ef41093266d38b17a5..5775b3259a6ac96d5a6a1e7c8a66d479b65b1d49 100644 (file)
@@ -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)) ;
         }
    ;