From 612786d8db68cae5630bfe055a15da9a7d4a962b Mon Sep 17 00:00:00 2001 From: borutr Date: Mon, 15 Jan 2007 20:53:50 +0000 Subject: [PATCH] * 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 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4574 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 6 ++++++ src/SDCC.y | 11 +++-------- src/pic/ralloc.c | 1 - src/pic16/ralloc.c | 1 - 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1723c1e7..9bd381ee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-01-15 Borut Razem + + * 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 * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14 diff --git a/src/SDCC.y b/src/SDCC.y index db108592..7464b31b 100644 --- a/src/SDCC.y +++ b/src/SDCC.y @@ -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 INLINEASM @@ -106,7 +106,7 @@ bool uselessDecl = TRUE; %type struct_declarator function_declarator function_declarator2 %type struct_declarator_list struct_declaration struct_declaration_list %type declaration init_declarator_list init_declarator -%type declaration_list identifier_list parameter_identifier_list +%type declaration_list identifier_list %type declarator2_function_attributes while do for critical %type pointer type_specifier_list type_specifier type_name %type 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 diff --git a/src/pic/ralloc.c b/src/pic/ralloc.c index 06cb9e76..4d1ab934 100644 --- a/src/pic/ralloc.c +++ b/src/pic/ralloc.c @@ -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"; diff --git a/src/pic16/ralloc.c b/src/pic16/ralloc.c index 9a952c35..143e92b1 100644 --- a/src/pic16/ralloc.c +++ b/src/pic16/ralloc.c @@ -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"; -- 2.39.5