Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
2bcbe1b7
Commit
2bcbe1b7
authored
Mar 01, 2003
by
Tim Josling
Committed by
Tim Josling
Mar 01, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bison 1.75 enum name clash.
From-SVN: r63606
parent
74dd1333
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
9 deletions
+18
-9
gcc/treelang/ChangeLog
+9
-0
gcc/treelang/lex.l
+3
-3
gcc/treelang/parse.y
+6
-6
No files found.
gcc/treelang/ChangeLog
View file @
2bcbe1b7
2003-03-01 Tim Josling <tej@melbpc.org.au>
Name clashes with rtl.h fixed.
* lex.l: Tokens PLUS, MINUS, RETURN changed to tl_PLUS tl_MINUS
tl_RETURN.
* parse.y: Ditto.
2003-02-24 Tim Josling <tej@melbpc.org.au>
2003-02-24 Tim Josling <tej@melbpc.org.au>
* parse.y (my_yylex): New - ensure lexer time is charged to
* parse.y (my_yylex): New - ensure lexer time is charged to
...
...
gcc/treelang/lex.l
View file @
2bcbe1b7
...
@@ -122,12 +122,12 @@ static void dump_lex_value (int lexret);
...
@@ -122,12 +122,12 @@ static void dump_lex_value (int lexret);
"+"
{
"+"
{
update_lineno_charno
();
update_lineno_charno
();
SAVE_RETURN
(
PLUS
);
SAVE_RETURN
(
tl_
PLUS
);
}
}
"-"
{
"-"
{
update_lineno_charno
();
update_lineno_charno
();
SAVE_RETURN
(
MINUS
);
SAVE_RETURN
(
tl_
MINUS
);
}
}
"="
{
"="
{
...
@@ -187,7 +187,7 @@ static void dump_lex_value (int lexret);
...
@@ -187,7 +187,7 @@ static void dump_lex_value (int lexret);
"return"
{
"return"
{
update_lineno_charno
();
update_lineno_charno
();
SAVE_RETURN
(
RETURN
);
SAVE_RETURN
(
tl_
RETURN
);
}
}
"if"
{
"if"
{
...
...
gcc/treelang/parse.y
View file @
2bcbe1b7
...
@@ -106,8 +106,8 @@ static struct prod_token_parm_item *current_function=NULL;
...
@@ -106,8 +106,8 @@ static struct prod_token_parm_item *current_function=NULL;
%
token
COMMA
%
token
COMMA
%
right
EQUALS
%
right
EQUALS
%
right
ASSIGN
%
right
ASSIGN
%
left
PLUS
%
left
tl_
PLUS
%
left
MINUS
%
left
tl_
MINUS
/* Literals. */
/* Literals. */
%
token
INTEGER
%
token
INTEGER
...
@@ -115,7 +115,7 @@ static struct prod_token_parm_item *current_function=NULL;
...
@@ -115,7 +115,7 @@ static struct prod_token_parm_item *current_function=NULL;
/* Keywords. */
/* Keywords. */
%
token
IF
%
token
IF
%
token
ELSE
%
token
ELSE
%
token
RETURN
%
token
tl_
RETURN
%
token
CHAR
%
token
CHAR
%
token
INT
%
token
INT
%
token
UNSIGNED
%
token
UNSIGNED
...
@@ -505,7 +505,7 @@ LEFT_BRACE statements_opt RIGHT_BRACE {
...
@@ -505,7 +505,7 @@ LEFT_BRACE statements_opt RIGHT_BRACE {
return
:
return
:
RETURN
expression_opt
{
tl_
RETURN
expression_opt
{
struct
prod_token_parm_item
*
type_prod
;
struct
prod_token_parm_item
*
type_prod
;
struct
prod_token_parm_item
*
ret_tok
;
struct
prod_token_parm_item
*
ret_tok
;
ret_tok
=
$
1
;
ret_tok
=
$
1
;
...
@@ -568,7 +568,7 @@ INTEGER {
...
@@ -568,7 +568,7 @@ INTEGER {
|
variable_ref
{
|
variable_ref
{
$$
=
$
1
;
$$
=
$
1
;
}
}
|
expression
PLUS
expression
{
|
expression
tl_
PLUS
expression
{
struct
prod_token_parm_item
*
tok
;
struct
prod_token_parm_item
*
tok
;
struct
prod_token_parm_item
*
prod
;
struct
prod_token_parm_item
*
prod
;
struct
prod_token_parm_item
*
op1
;
struct
prod_token_parm_item
*
op1
;
...
@@ -597,7 +597,7 @@ INTEGER {
...
@@ -597,7 +597,7 @@ INTEGER {
}
}
$$
=
prod
;
$$
=
prod
;
}
}
|
expression
MINUS
expression
%
prec
PLUS
{
|
expression
tl_MINUS
expression
%
prec
tl_
PLUS
{
struct
prod_token_parm_item
*
tok
;
struct
prod_token_parm_item
*
tok
;
struct
prod_token_parm_item
*
prod
;
struct
prod_token_parm_item
*
prod
;
struct
prod_token_parm_item
*
op1
;
struct
prod_token_parm_item
*
op1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment