]> git.gag.com Git - fw/sdcc/commitdiff
* src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 15 Jan 2007 20:53:50 +0000 (20:53 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 15 Jan 2007 20:53:50 +0000 (20:53 +0000)
  removed terminal symbol ELIPSIS, since it was never generated by the
  lexer and it was wrongly used in parameter_identifier_list rule

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4574 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/SDCC.y
src/pic/ralloc.c
src/pic16/ralloc.c

index 1723c1e726dc5f4e3d2fbaa69cc9242d66cfe625..9bd381ee4eb2e110bb3f1678faf04457441be976 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-01-15 Borut Razem <borut.razem AT siol.net>
+
+       * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
+         removed terminal symbol ELIPSIS, since it was never generated by the
+         lexer and it was wrongly used in parameter_identifier_list rule
+
 2007-01-15 Raphael Neider <rneider AT web.de>
 
        * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
index db10859269d4de5f48698d366834f8d22adbe291..7464b31baa52dc7df05d74851072c0db480c5629 100644 (file)
@@ -91,7 +91,7 @@ bool uselessDecl = TRUE;
 %token AT SBIT REENTRANT USING  XDATA DATA IDATA PDATA VAR_ARGS CRITICAL
 %token NONBANKED BANKED SHADOWREGS WPARAM
 %token CHAR SHORT INT LONG SIGNED UNSIGNED FLOAT DOUBLE FIXED16X16 CONST VOLATILE VOID BIT
-%token STRUCT UNION ENUM ELIPSIS RANGE FAR
+%token STRUCT UNION ENUM RANGE FAR
 %token CASE DEFAULT IF ELSE SWITCH WHILE DO FOR GOTO CONTINUE BREAK RETURN
 %token NAKED JAVANATIVE OVERLAY
 %token <yyinline> INLINEASM
@@ -106,7 +106,7 @@ bool uselessDecl = TRUE;
 %type <sym> struct_declarator function_declarator function_declarator2
 %type <sym> struct_declarator_list  struct_declaration   struct_declaration_list
 %type <sym> declaration init_declarator_list init_declarator
-%type <sym> declaration_list identifier_list parameter_identifier_list
+%type <sym> declaration_list identifier_list
 %type <sym> declarator2_function_attributes while do for critical
 %type <lnk> pointer type_specifier_list type_specifier type_name
 %type <lnk> storage_class_specifier struct_or_union_specifier
@@ -1137,7 +1137,7 @@ function_declarator2
             
             $$ = $1;
          }
-   | declarator2 '(' parameter_identifier_list ')'
+   | declarator2 '(' identifier_list ')'
          {        
           werror(E_OLD_STYLE,$1->name) ;         
           /* assume it returns an int */
@@ -1228,11 +1228,6 @@ type_specifier_list
    }
    ;
 
-parameter_identifier_list
-   : identifier_list
-   | identifier_list ',' ELIPSIS
-   ;
-
 identifier_list
    : identifier
    | identifier_list ',' identifier         
index 06cb9e768497fabe9760d6e257f96b81b91f7a32..4d1ab9349fa58c9c9e91632da3e694f533f31a07 100644 (file)
@@ -257,7 +257,6 @@ static char *
        case STRUCT:                    return "STRUCT";
        case UNION:                     return "UNION";
        case ENUM:                      return "ENUM";
-       case ELIPSIS:                   return "ELIPSIS";
        case RANGE:                     return "RANGE";
        case FAR:                       return "FAR";
        case CASE:                      return "CASE";
index 9a952c357b65602bb3a410caa698dd50c7910e37..143e92b1b86c1c91ffc6fc710c3a04c4aa2782b3 100644 (file)
@@ -276,7 +276,6 @@ pic16_decodeOp (unsigned int op)
                case STRUCT:            return "STRUCT";
                case UNION:             return "UNION";
                case ENUM:              return "ENUM";
-               case ELIPSIS:           return "ELIPSIS";
                case RANGE:             return "RANGE";
                case FAR:               return "FAR";
                case CASE:              return "CASE";