set the stack alignment to 2^4 on apple
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 11 Sep 2008 23:24:14 +0000 (23:24 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 11 Sep 2008 23:24:14 +0000 (23:24 +0000)
[r21865]

main.c

diff --git a/main.c b/main.c
index 84d4bb9..2497541 100644 (file)
--- a/main.c
+++ b/main.c
@@ -580,6 +580,11 @@ int main(int argc, char **argv)
                break;
        }
 
+#ifdef __APPLE__
+       /* Darwin expects the stack to be aligned to 16byte boundary */
+       firm_be_option("ia32-stackalign=4");
+#endif
+
        /* parse rest of options */
        filetype_t  forced_filetype = FILETYPE_AUTODETECT;
        bool        help_displayed  = false;