fixed bug #473654
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 23 Oct 2001 11:26:42 +0000 (11:26 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 23 Oct 2001 11:26:42 +0000 (11:26 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1434 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCC.y

index 42dd761bc380e383ea7114db71efaa467c707bf9..b88ead947e6d48752d91ed80e6ce4321c7fa58b4 100644 (file)
@@ -179,7 +179,6 @@ function_attributes
                         $$ = newLink() ;
                         $$->class = SPECIFIER   ;
                        FUNC_REGBANK($$) = (int) floatFromVal($2);
-                        //FUNC_RBANK($$) = 1;
                      }
    |  REENTRANT      {  $$ = newLink ();
                         $$->class = SPECIFIER   ;
@@ -880,7 +879,7 @@ declarator
 declarator2_function_attributes
    : declarator2                 { $$ = $1 ; } 
    | declarator2 function_attribute  { 
-       // do the functionAttributes (not the args and hasVargs !!)
+       // copy the functionAttributes (not the args and hasVargs !!)
        sym_link *funcType=$1->etype;
        struct value *args=FUNC_ARGS(funcType);
        unsigned hasVargs=FUNC_HASVARARGS(funcType);
@@ -1003,7 +1002,8 @@ pointer
                     DCL_TYPE($3) = EEPPOINTER;
                     break;
                 default:
-                    werror(W_PTR_TYPE_INVALID);
+                  // this could be just "constant" 
+                  // werror(W_PTR_TYPE_INVALID);
                 }
             }
             else