Commit fcba9f9a authored by Michael Beck's avatar Michael Beck
Browse files

- add alignment of stack parameter to be parameters set

[r25054]
parent 429818a6
......@@ -96,6 +96,9 @@ typedef struct backend_params {
/** If non-zero, build the trampoline. */
create_trampoline_fkt *build_trampoline;
/** Alignment of stack parameters */
unsigned stack_param_align;
} backend_params;
/**
......
......@@ -556,7 +556,8 @@ static const backend_params *TEMPLATE_get_backend_params(void) {
NULL, /* float arithmetic mode */
0, /* no trampoline support: size 0 */
0, /* no trampoline support: align 0 */
NULL /* no trampoline support: no trampoline builder */
NULL, /* no trampoline support: no trampoline builder */
4 /* alignment of stack parameter: typically 4 (32bit) or 8 (64bit) */
};
return &p;
}
......
......@@ -1127,7 +1127,8 @@ static const backend_params *arm_get_libfirm_params(void) {
NULL, /* float arithmetic mode (TODO) */
0, /* no trampoline support: size 0 */
0, /* no trampoline support: align 0 */
NULL /* no trampoline support: no trampoline builder */
NULL, /* no trampoline support: no trampoline builder */
4 /* alignment of stack parameter */
};
p.dep_param = &ad;
......
......@@ -351,7 +351,8 @@ static const backend_params be_params = {
NULL, /* no float arithmetic mode */
0, /* no trampoline support: size 0 */
0, /* no trampoline support: align 0 */
NULL /* no trampoline support: no trampoline builder */
NULL, /* no trampoline support: no trampoline builder */
4 /* alignment of stack parameter */
};
/* Perform schedule verification if requested. */
......
......@@ -2378,6 +2378,7 @@ static const backend_params *ia32_get_libfirm_params(void) {
12, /* size of trampoline code */
4, /* alignment of trampoline code */
ia32_create_trampoline_fkt,
4 /* alignment of stack parameter */
};
ia32_setup_cg_config();
......
......@@ -784,7 +784,8 @@ static const backend_params *mips_get_libfirm_params(void) {
NULL, /* float arithmetic mode (TODO) */
0, /* no trampoline support: size 0 */
0, /* no trampoline support: align 0 */
NULL /* no trampoline support: no trampoline builder */
NULL, /* no trampoline support: no trampoline builder */
4 /* alignment of stack parameter */
};
return &p;
......
......@@ -827,7 +827,8 @@ static const backend_params *ppc32_get_libfirm_params(void) {
NULL, /* no float arithmetic mode (TODO) */
0, /* no trampoline support: size 0 */
0, /* no trampoline support: align 0 */
NULL /* no trampoline support: no trampoline builder */
NULL, /* no trampoline support: no trampoline builder */
4 /* alignment of stack parameter */
};
return &p;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment