X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmini%2Fmini-ppc.h;h=3f241f6db3178ee9f456421b06748c2cefb70a65;hb=1575348f10b4d0908f4b3dd594f3202b32f82584;hp=9b404ff7c1c3b384c616b20f3b368bab1b514441;hpb=a3304910e9e08ec965fb06ef6fa4a19257dddf8c;p=mono.git diff --git a/mono/mini/mini-ppc.h b/mono/mini/mini-ppc.h index 9b404ff7c1c..3f241f6db31 100644 --- a/mono/mini/mini-ppc.h +++ b/mono/mini/mini-ppc.h @@ -160,10 +160,6 @@ typedef struct MonoCompileArch { #define MONO_ARCH_HAVE_DECOMPOSE_VTYPE_OPTS 1 #define MONO_ARCH_RETURN_CAN_USE_MULTIPLE_REGISTERS 1 -// FIXME: To get the test case finally_block_ending_in_dead_bb to work properly define the following -// and then implement the fuction mono_arch_create_handler_block_trampoline. -// #define MONO_ARCH_HAVE_HANDLER_BLOCK_GUARD 1 - // Define "DEBUG_ELFABIV2" to allow for debugging output for ELF ABI v2 function call and return codegen // #define DEBUG_ELFABIV2 @@ -236,6 +232,7 @@ typedef struct MonoCompileArch { #define MONO_ARCH_SOFT_DEBUG_SUPPORTED 1 #endif #define MONO_ARCH_HAVE_OP_TAIL_CALL 1 +#define MONO_ARCH_HAVE_INIT_LMF_EXT 1 #define PPC_NUM_REG_ARGS (PPC_LAST_ARG_REG-PPC_FIRST_ARG_REG+1) #define PPC_NUM_REG_FPARGS (PPC_LAST_FPARG_REG-PPC_FIRST_FPARG_REG+1) @@ -369,18 +366,18 @@ void mono_ppc_set_func_into_sigctx (void *sigctx, void *func); #ifdef DEBUG_ELFABIV2 #define DEBUG_ELFABIV2_printf(a, ...) \ -{if (getenv("DEBUG_ELFABIV2")) { printf(a, ##__VA_ARGS__); fflush(stdout); } } +{char *debug_env; if (debug_env = getenv("DEBUG_ELFABIV2")) { printf(a, ##__VA_ARGS__); fflush(stdout); g_free (debug_env); } } #define DEBUG_ELFABIV2_mono_print_ins(a) \ -{if (getenv("DEBUG_ELFABIV2")) { if (!a) {printf("null\n");} else {mono_print_ins(a);} fflush(stdout); } } +{char *debug_env; if (debug_env = getenv("DEBUG_ELFABIV2")) { if (!a) {printf("null\n");} else {mono_print_ins(a);} fflush(stdout); g_free (debug_env); } } extern char* mono_type_full_name (MonoType *type); #define DEBUG_ELFABIV2_mono_print_type(a) \ -{if (getenv("DEBUG_ELFABIV2")) { printf("%s, size: %d\n", mono_type_get_name(a), mini_type_stack_size (a, 0)); fflush(stdout); } } +{char *debug_env; if (debug_env = getenv("DEBUG_ELFABIV2")) { printf("%s, size: %d\n", mono_type_get_name(a), mini_type_stack_size (a, 0)); fflush(stdout); g_free (debug_env); } } #define DEBUG_ELFABIV2_mono_print_class(a) \ -{if (getenv("DEBUG_ELFABIV2")) { printf("%s\n", mono_type_get_name(&a->byval_arg)); fflush(stdout); } } +{char *debug_env; if (debug_env = getenv("DEBUG_ELFABIV2")) { printf("%s\n", mono_type_get_name(&a->byval_arg)); fflush(stdout); g_free (debug_env); } } #else