summaryrefslogtreecommitdiff
path: root/arm
diff options
context:
space:
mode:
authorGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2012-07-01 07:40:04 +0000
committerGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2012-07-01 07:40:04 +0000
commit9b8f0f6c4683dd00ee0e3422b84c9cc34510011e (patch)
tree27536a5176fe16448f376e69a3f335685bacb588 /arm
parenta68e113d362e3d28fb1fc45d7f40692fdffe2498 (diff)
Added option -falign-functions
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1945 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'arm')
-rw-r--r--arm/PrintAsm.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/arm/PrintAsm.ml b/arm/PrintAsm.ml
index 161c760..86fdf0e 100644
--- a/arm/PrintAsm.ml
+++ b/arm/PrintAsm.ml
@@ -680,7 +680,9 @@ let print_function oc name fn =
| t :: _ -> t
| _ -> Section_text in
section oc text;
- fprintf oc " .align 2\n";
+ let alignment =
+ match !Clflags.option_falignfunctions with Some n -> log2 n | None -> 2 in
+ fprintf oc " .align %d\n" alignment;
if not (C2C.atom_is_static name) then
fprintf oc " .global %a\n" print_symb name;
fprintf oc "%a:\n" print_symb name;