Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
compiler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
clean-compiler-and-rts
compiler
Commits
1f63c659
Commit
1f63c659
authored
Aug 19, 2019
by
johnvg@science.ru.nl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inline abc code from definition modules as well (as from system modules)
parent
26de41e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
backendC/CleanCompilerSources/codegen2.c
backendC/CleanCompilerSources/codegen2.c
+8
-8
No files found.
backendC/CleanCompilerSources/codegen2.c
View file @
1f63c659
...
...
@@ -2615,8 +2615,8 @@ static void FillSymbol (Node node,SymbDef sdef,int *asp_p,int *bsp_p,NodeId upda
*
asp_p
-=
a_size
;
*
bsp_p
-=
b_size
;
if
(
!
(
sdef
->
sdef_kind
==
SYSRULE
&&
(
sdef
->
sdef_mark
&
SDEF_DEFRULE_ABC_CODE
)
!=
0
&&
sdef
->
sdef_abc_code
!=
NULL
&&
sdef
->
sdef_abc_code
->
instr_this
[
0
]
!=
'.'
))
if
(
!
(
(
sdef
->
sdef_mark
&
SDEF_DEFRULE_ABC_CODE
)
!=
0
&&
(
sdef
->
sdef_kind
==
SYSRULE
||
sdef
->
sdef_kind
==
DEFRULE
)
&&
sdef
->
sdef_abc_code
!=
NULL
&&
sdef
->
sdef_abc_code
->
instr_this
[
0
]
!=
'.'
))
{
cleanup_stack
(
asp_p
,
bsp_p
,
a_size
,
b_size
,
&
code_gen_node_ids_p
->
a_node_ids
,
&
code_gen_node_ids_p
->
b_node_ids
,
&
code_gen_node_ids_p
->
free_node_ids
,
code_gen_node_ids_p
->
moved_node_ids_l
,
...
...
@@ -2640,8 +2640,8 @@ static void FillSymbol (Node node,SymbDef sdef,int *asp_p,int *bsp_p,NodeId upda
*
asp_p
-=
a_size
+
1
;
*
bsp_p
-=
b_size
;
if
(
!
(
sdef
->
sdef_kind
==
SYSRULE
&&
(
sdef
->
sdef_mark
&
SDEF_DEFRULE_ABC_CODE
)
!=
0
&&
sdef
->
sdef_abc_code
!=
NULL
&&
sdef
->
sdef_abc_code
->
instr_this
[
0
]
!=
'.'
))
if
(
!
(
(
sdef
->
sdef_mark
&
SDEF_DEFRULE_ABC_CODE
)
!=
0
&&
(
sdef
->
sdef_kind
==
SYSRULE
||
sdef
->
sdef_kind
==
DEFRULE
)
&&
sdef
->
sdef_abc_code
!=
NULL
&&
sdef
->
sdef_abc_code
->
instr_this
[
0
]
!=
'.'
))
{
cleanup_stack
(
asp_p
,
bsp_p
,
a_size
+
1
,
b_size
,
&
code_gen_node_ids_p
->
a_node_ids
,
&
code_gen_node_ids_p
->
b_node_ids
,
&
code_gen_node_ids_p
->
free_node_ids
,
code_gen_node_ids_p
->
moved_node_ids_l
,
...
...
@@ -2663,8 +2663,8 @@ static void FillSymbol (Node node,SymbDef sdef,int *asp_p,int *bsp_p,NodeId upda
*
asp_p
-=
a_size
;
*
bsp_p
-=
b_size
;
if
(
!
(
sdef
->
sdef_kind
==
SYSRULE
&&
(
sdef
->
sdef_mark
&
SDEF_DEFRULE_ABC_CODE
)
!=
0
&&
sdef
->
sdef_abc_code
!=
NULL
&&
sdef
->
sdef_abc_code
->
instr_this
[
0
]
!=
'.'
))
if
(
!
(
(
sdef
->
sdef_mark
&
SDEF_DEFRULE_ABC_CODE
)
!=
0
&&
(
sdef
->
sdef_kind
==
SYSRULE
||
sdef
->
sdef_kind
==
DEFRULE
)
&&
sdef
->
sdef_abc_code
!=
NULL
&&
sdef
->
sdef_abc_code
->
instr_this
[
0
]
!=
'.'
))
{
cleanup_stack
(
asp_p
,
bsp_p
,
a_size
,
b_size
,
&
code_gen_node_ids_p
->
a_node_ids
,
&
code_gen_node_ids_p
->
b_node_ids
,
&
code_gen_node_ids_p
->
free_node_ids
,
code_gen_node_ids_p
->
moved_node_ids_l
,
...
...
@@ -4991,8 +4991,8 @@ static void FillUniqueNodeWithNode (NodeP update_node,int *asp_p,int *bsp_p,Code
*
asp_p
-=
a_size
;
*
bsp_p
-=
b_size
;
if
(
!
(
sdef
->
sdef_kind
==
SYSRULE
&&
(
sdef
->
sdef_mark
&
SDEF_DEFRULE_ABC_CODE
)
!=
0
&&
sdef
->
sdef_abc_code
!=
NULL
&&
sdef
->
sdef_abc_code
->
instr_this
[
0
]
!=
'.'
))
if
(
!
(
(
sdef
->
sdef_mark
&
SDEF_DEFRULE_ABC_CODE
)
!=
0
&&
(
sdef
->
sdef_kind
==
SYSRULE
||
sdef
->
sdef_kind
==
DEFRULE
)
&&
sdef
->
sdef_abc_code
!=
NULL
&&
sdef
->
sdef_abc_code
->
instr_this
[
0
]
!=
'.'
))
{
cleanup_stack
(
asp_p
,
bsp_p
,
a_size
,
b_size
,
&
code_gen_node_ids_p
->
a_node_ids
,
&
code_gen_node_ids_p
->
b_node_ids
,
&
code_gen_node_ids_p
->
free_node_ids
,
code_gen_node_ids_p
->
moved_node_ids_l
,
...
...
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