aboutsummaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rw-r--r--backend/PrintAsm.ml4
-rw-r--r--backend/PrintAsmaux.ml1
2 files changed, 2 insertions, 3 deletions
diff --git a/backend/PrintAsm.ml b/backend/PrintAsm.ml
index c356d7e5..a6883339 100644
--- a/backend/PrintAsm.ml
+++ b/backend/PrintAsm.ml
@@ -20,8 +20,6 @@ open Printf
open Sections
open TargetPrinter
-module Target = (val (sel_target ()):TARGET)
-
module Printer(Target:TARGET) =
struct
@@ -34,7 +32,7 @@ module Printer(Target:TARGET) =
let (text, lit, jmptbl) = Target.get_section_names name in
Target.section oc text;
let alignment =
- match !Clflags.option_falignfunctions with Some n -> n | None -> 4 in
+ match !Clflags.option_falignfunctions with Some n -> n | None -> Target.default_falignment in
Target.print_align oc alignment;
if not (C2C.atom_is_static name) then
fprintf oc " .globl %a\n" Target.symbol name;
diff --git a/backend/PrintAsmaux.ml b/backend/PrintAsmaux.ml
index 925add9e..64db2cb0 100644
--- a/backend/PrintAsmaux.ml
+++ b/backend/PrintAsmaux.ml
@@ -42,6 +42,7 @@ module type TARGET =
val name_of_section: section_name -> string
val comment: string
val symbol: out_channel -> P.t -> unit
+ val default_falignment: int
end
(* On-the-fly label renaming *)