diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2012-07-01 07:40:04 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2012-07-01 07:40:04 +0000 |
commit | 9b8f0f6c4683dd00ee0e3422b84c9cc34510011e (patch) | |
tree | 27536a5176fe16448f376e69a3f335685bacb588 /ia32/PrintAsm.ml | |
parent | a68e113d362e3d28fb1fc45d7f40692fdffe2498 (diff) | |
download | compcert-9b8f0f6c4683dd00ee0e3422b84c9cc34510011e.tar.gz compcert-9b8f0f6c4683dd00ee0e3422b84c9cc34510011e.zip |
Added option -falign-functions
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1945 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'ia32/PrintAsm.ml')
-rw-r--r-- | ia32/PrintAsm.ml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ia32/PrintAsm.ml b/ia32/PrintAsm.ml index ccc3c0f5..096e1e31 100644 --- a/ia32/PrintAsm.ml +++ b/ia32/PrintAsm.ml @@ -737,7 +737,9 @@ let print_function oc name code = | [t;l;j] -> (t, l, j) | _ -> (Section_text, Section_literal, Section_jumptable) in section oc text; - print_align oc 16; + let alignment = + match !Clflags.option_falignfunctions with Some n -> n | None -> 16 in + print_align oc alignment; if not (C2C.atom_is_static name) then fprintf oc " .globl %a\n" symbol name; fprintf oc "%a:\n" symbol name; |