From 7873af34a9520ee5a8a6f10faddf3255a4ff02b2 Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Wed, 3 May 2017 11:18:32 +0200 Subject: Hybrid 64bit/32bit PowerPC port This commit adds code generation for 64bit PowerPC architectures which execute 32bit applications. The main difference to the normal 32bit PowerPC port is that it uses the available 64bit instructions instead of using the runtime library functions. However pointers are still 32bit and the 32bit calling convention is used. In order to use this port the target architecture must be either in Server execution mode or if in Embedded execution mode the high order 32 bits of GPRs must be implemented in 32-bit mode. Furthermore the operating system must preserve the high order 32 bits of GPRs. --- debug/Dwarfgen.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'debug') diff --git a/debug/Dwarfgen.ml b/debug/Dwarfgen.ml index ee568042..ca5d783d 100644 --- a/debug/Dwarfgen.ml +++ b/debug/Dwarfgen.ml @@ -549,7 +549,7 @@ let diab_gen_compilation_section s defs acc = let cp = { compile_unit_name = Simple_string !file_name; compile_unit_range = Pc_pair (low_pc,high_pc); - compile_unit_dir = Simple_string (Sys.getcwd ()); + compile_unit_dir = Simple_string (Filename.quote (Sys.getcwd ())); compile_unit_prod_name = Simple_string prod_name } in let cp = new_entry (next_id ()) (DW_TAG_compile_unit cp) in @@ -620,7 +620,7 @@ let gen_gnu_debug_info sec_name var_section : debug_entries = let cp = { compile_unit_name = gnu_string_entry !file_name; compile_unit_range = r; - compile_unit_dir = gnu_string_entry (Sys.getcwd ()); + compile_unit_dir = gnu_string_entry (Filename.quote (Sys.getcwd ())); compile_unit_prod_name = gnu_string_entry prod_name; } in let cp = new_entry (next_id ()) (DW_TAG_compile_unit cp) in -- cgit