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
L
libfirm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zwinkau
libfirm
Commits
7125ea59
Commit
7125ea59
authored
Jan 23, 2017
by
Christoph Mallon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
be: Factor out code to set the va_list type to a void pointer.
parent
dc9ff719
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
ir/be/bevarargs.c
ir/be/bevarargs.c
+5
-0
ir/be/bevarargs.h
ir/be/bevarargs.h
+3
-0
ir/be/ia32/ia32_bearch.c
ir/be/ia32/ia32_bearch.c
+1
-3
ir/be/sparc/sparc_bearch.c
ir/be/sparc/sparc_bearch.c
+1
-3
No files found.
ir/be/bevarargs.c
View file @
7125ea59
...
...
@@ -66,3 +66,8 @@ void be_default_lower_va_arg_compound_val(ir_node *const node)
{
be_default_lower_va_arg
(
node
,
false
);
}
void
be_set_va_list_type_pointer
(
backend_params
*
const
p
)
{
p
->
vararg
.
va_list_type
=
new_type_pointer
(
get_type_for_mode
(
mode_ANY
));
}
ir/be/bevarargs.h
View file @
7125ea59
...
...
@@ -12,6 +12,7 @@
#ifndef FIRM_BE_BEVARARGS_H
#define FIRM_BE_BEVARARGS_H
#include "be.h"
#include "firm_types.h"
/**
...
...
@@ -36,4 +37,6 @@ void be_default_lower_va_arg_compound_ptr(ir_node *node);
*/
void
be_default_lower_va_arg_compound_val
(
ir_node
*
node
);
void
be_set_va_list_type_pointer
(
backend_params
*
p
);
#endif
ir/be/ia32/ia32_bearch.c
View file @
7125ea59
...
...
@@ -1388,9 +1388,7 @@ static void ia32_init(void)
ia32_mode_float32
=
new_float_mode
(
"fp32"
,
irma_ieee754
,
8
,
23
,
ir_overflow_indefinite
);
// va_list is a void pointer
ir_type
*
type_va_list
=
new_type_pointer
(
get_type_for_mode
(
mode_ANY
));
ia32_backend_params
.
vararg
.
va_list_type
=
type_va_list
;
be_set_va_list_type_pointer
(
&
ia32_backend_params
);
if
(
ia32_cg_config
.
use_sse2
||
ia32_cg_config
.
use_softfloat
)
{
ia32_backend_params
.
mode_float_arithmetic
=
NULL
;
...
...
ir/be/sparc/sparc_bearch.c
View file @
7125ea59
...
...
@@ -552,9 +552,7 @@ static const backend_params *sparc_get_backend_params(void)
},
};
ir_type
*
type_va_list
=
new_type_pointer
(
get_type_for_mode
(
mode_ANY
));
p
.
vararg
.
va_list_type
=
type_va_list
;
be_set_va_list_type_pointer
(
&
p
);
sparc_mode_Q
=
new_float_mode
(
"Q"
,
irma_ieee754
,
15
,
112
,
ir_overflow_min_max
);
...
...
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