aboutsummaryrefslogtreecommitdiffstats
path: root/ia32
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2015-10-20 14:45:56 +0200
committerBernhard Schommer <bernhardschommer@gmail.com>2015-10-20 14:45:56 +0200
commited6043fe910f7a320f7af6d3f9d35f39f5cf7ee1 (patch)
tree3fab134f5444f0472a1ff8c06e5b7686a40648dc /ia32
parent4d542bc7eafadb16b845cf05d1eb4988eb55ed0f (diff)
parent8a95c3e07fd02eaa87f8cca447bc7d7c2642eb22 (diff)
downloadcompcert-ed6043fe910f7a320f7af6d3f9d35f39f5cf7ee1.tar.gz
compcert-ed6043fe910f7a320f7af6d3f9d35f39f5cf7ee1.zip
Merge remote-tracking branch 'origin/master' into named-externals
Conflicts: arm/TargetPrinter.ml backend/CMparser.mly backend/SelectLongproof.v backend/Selectionproof.v cfrontend/C2C.ml checklink/Asm_printers.ml checklink/Check.ml checklink/Fuzz.ml common/AST.v debug/DebugInformation.ml debug/DebugInit.ml debug/DwarfPrinter.ml debug/DwarfTypes.mli debug/Dwarfgen.ml exportclight/ExportClight.ml ia32/TargetPrinter.ml powerpc/Asm.v powerpc/SelectOpproof.v powerpc/TargetPrinter.ml
Diffstat (limited to 'ia32')
-rw-r--r--ia32/Asmexpand.ml2
-rw-r--r--ia32/TargetPrinter.ml20
2 files changed, 11 insertions, 11 deletions
diff --git a/ia32/Asmexpand.ml b/ia32/Asmexpand.ml
index d11d9d23..dcea9de4 100644
--- a/ia32/Asmexpand.ml
+++ b/ia32/Asmexpand.ml
@@ -33,7 +33,7 @@ let _4 = coqint_of_camlint 4l
let _8 = coqint_of_camlint 8l
let stack_alignment () =
- if Configuration.system = "macoxs" then 16
+ if Configuration.system = "macosx" then 16
else 8
(* SP adjustment to allocate or free a stack frame *)
diff --git a/ia32/TargetPrinter.ml b/ia32/TargetPrinter.ml
index fe2c2998..84ddb134 100644
--- a/ia32/TargetPrinter.ml
+++ b/ia32/TargetPrinter.ml
@@ -105,7 +105,9 @@ module Cygwin_System : SYSTEM =
| Section_debug_info _ -> ".section .debug_info,\"dr\""
| Section_debug_loc -> ".section .debug_loc,\"dr\""
| Section_debug_line _ -> ".section .debug_line,\"dr\""
- | Section_debug_abbrev -> ".section .debug_abbrev,\"dr\"" (* Dummy value *)
+ | Section_debug_abbrev -> ".section .debug_abbrev,\"dr\""
+ | Section_debug_ranges -> ".section .debug_ranges,\"dr\""
+ | Section_debug_str-> assert false (* Should not be used *)
let stack_alignment = 8 (* minimum is 4, 8 is better for perfs *)
@@ -157,6 +159,8 @@ module ELF_System : SYSTEM =
| Section_debug_loc -> ".section .debug_loc,\"\",@progbits"
| Section_debug_line _ -> ".section .debug_line,\"\",@progbits"
| Section_debug_abbrev -> ".section .debug_abbrev,\"\",@progbits"
+ | Section_debug_ranges -> ".section .debug_ranges,\"\",@progbits"
+ | Section_debug_str -> ".section .debug_str,\"MS\",@progbits,1"
let stack_alignment = 8 (* minimum is 4, 8 is better for perfs *)
@@ -210,7 +214,9 @@ module MacOS_System : SYSTEM =
| Section_debug_info _ -> ".section __DWARF,__debug_info,regular,debug"
| Section_debug_loc -> ".section __DWARF,__debug_loc,regular,debug"
| Section_debug_line _ -> ".section __DWARF,__debug_line,regular,debug"
- | Section_debug_abbrev -> ".section __DWARF,__debug_abbrev,regular,debug" (* Dummy value *)
+ | Section_debug_str -> ".section __DWARF,__debug_str,regular,debug"
+ | Section_debug_ranges -> ".section __DWARF,__debug_ranges,regular,debug"
+ | Section_debug_abbrev -> ".section __DWARF,__debug_abbrev,regular,debug"
let stack_alignment = 16 (* mandatory *)
@@ -656,13 +662,13 @@ module Target(System: SYSTEM):TARGET =
begin match ef with
| EF_annot(txt, targs) ->
fprintf oc "%s annotation: " comment;
- print_annot_text preg "%esp" oc (camlstring_of_coqstring txt) args
+ print_annot_text preg "%esp" oc (extern_atom txt) args
| EF_debug(kind, txt, targs) ->
print_debug_info comment print_file_line preg "%esp" oc
(P.to_int kind) (extern_atom txt) args
| EF_inline_asm(txt, sg, clob) ->
fprintf oc "%s begin inline assembly\n\t" comment;
- print_inline_asm preg oc (camlstring_of_coqstring txt) sg args res;
+ print_inline_asm preg oc (extern_atom txt) sg args res;
fprintf oc "%s end inline assembly\n" comment
| _ ->
assert false
@@ -753,9 +759,6 @@ module Target(System: SYSTEM):TARGET =
need_masks := false;
if !Clflags.option_g then begin
section oc Section_text;
- let low_pc = new_label () in
- Debug.add_compilation_section_start ".text" low_pc;
- fprintf oc "%a:\n" elf_label low_pc;
fprintf oc " .cfi_sections .debug_frame\n"
end
@@ -775,11 +778,8 @@ module Target(System: SYSTEM):TARGET =
end;
System.print_epilogue oc;
if !Clflags.option_g then begin
- let high_pc = new_label () in
- Debug.add_compilation_section_end ".text" high_pc;
Debug.compute_gnu_file_enum (fun f -> ignore (print_file oc f));
section oc Section_text;
- fprintf oc "%a:\n" elf_label high_pc
end
let comment = comment