Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-compiler-and-rts
compiler
Commits
47f5caca
Commit
47f5caca
authored
Dec 12, 2005
by
John van Groningen
Browse files
another fix for counting the number of arguments in the thunk lifter, to prevent
generating functions with too many arguments
parent
697aaccd
Changes
1
Hide whitespace changes
Inline
Side-by-side
backendC/CleanCompilerSources/optimisations.c
View file @
47f5caca
...
...
@@ -1109,8 +1109,8 @@ static int add_n_new_arguments_for_local_function (ArgP arg_p,int n_arguments)
}
else
{
arg_node_p
->
node_node_id
->
nid_mark
|=
NID_LIFTED_BY_OPTIMISE
;
arg_node_p
->
node_node_id
->
nid_forward_node_id
=
NULL
;
n_arguments
=
add_n_new_arguments_for_local_function
(
arg_p
->
arg_next
,
n_arguments
);
n_arguments
=
add_n_new_arguments_for_local_function
(
arg_p
->
arg_next
,
n_arguments
+
1
);
if
(
n_arguments
>
MAX_N_FUNCTION_ARGUMENTS
)
arg_node_p
->
node_node_id
->
nid_mark
&=
~
NID_LIFTED_BY_OPTIMISE
;
...
...
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