From ce4c6cd0f027670bb0fa04b6be117cdad0f2e06b Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Mon, 5 Mar 2012 09:17:14 +0000 Subject: [PATCH] ioport: Make the compile time less insane [O. Galibert] --- src/emu/inpttype.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/emu/inpttype.h b/src/emu/inpttype.h index d1c032caa3b..0398ef7088e 100644 --- a/src/emu/inpttype.h +++ b/src/emu/inpttype.h @@ -48,7 +48,9 @@ #define INPUT_PORT_ANALOG_TYPE(_player,_group,_type,_name,_seq,_decseq,_incseq) \ typelist.append(*global_alloc(input_type_entry(IPT_##_type, IPG_##_group, (_player == 0) ? _player : (_player) - 1, (_player == 0) ? #_type : ("P" #_player "_" #_type), _name, _seq, _decseq, _incseq))); - +#ifdef __GNUC__ +__attribute__((optimize("O0"))) +#endif void construct_core_types(simple_list &typelist) { INPUT_PORT_DIGITAL_TYPE( 1, PLAYER1, JOYSTICK_UP, "P1 Up", input_seq(KEYCODE_UP, input_seq::or_code, JOYCODE_Y_UP_SWITCH_INDEXED(0)) )