Enable optimization by fixing inits and access bounds

This commit is contained in:
Seth Polsley 2020-07-14 16:48:06 -05:00
parent 4191a86895
commit 8124b61d2b
4 changed files with 10 additions and 2 deletions

View File

@ -1064,6 +1064,7 @@
GCC_C_LANGUAGE_STANDARD = "compiler-default";
GCC_ENABLE_PASCAL_STRINGS = NO;
GCC_INLINES_ARE_PRIVATE_EXTERN = NO;
GCC_OPTIMIZATION_LEVEL = 3;
GCC_PREPROCESSOR_DEFINITIONS = (
"$(inherited)",
ENABLE_MACOSX_ETHERHELPER,

View File

@ -681,7 +681,7 @@ bool GetPosition_bincue(void *fh, uint8 *pos)
*pos++ = rel.m;
*pos++ = rel.s;
*pos++ = rel.f;
*pos++ = 0;
// *pos++ = 0;
// D(bug("CDROM position %02d:%02d:%02d track %02d\n", abs.m, abs.s, abs.f, trackno));
return true;
}

View File

@ -234,6 +234,11 @@ static void read_toc(cdrom_drive_info &info)
}
#endif
// Default start
info.start_at[0] = 0;
info.start_at[1] = 0;
info.start_at[2] = 0;
// Find lead-out track
info.lead_out[0] = 0;
info.lead_out[1] = 0;
@ -410,6 +415,8 @@ int16 CDROMOpen(uint32 pb, uint32 dce)
info->block_size = 512;
info->twok_offset = -1;
info->play_mode = 0x09;
info->play_order = 0;
info->repeat = 0;
info->power_mode = 0;
// Allocate drive status record

View File

@ -1286,7 +1286,7 @@
GCC_ENABLE_PASCAL_STRINGS = NO;
GCC_ENABLE_TRIGRAPHS = NO;
GCC_INLINES_ARE_PRIVATE_EXTERN = NO;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_OPTIMIZATION_LEVEL = 3;
GCC_PRECOMPILE_PREFIX_HEADER = NO;
GCC_PREFIX_HEADER = "";
GCC_PREPROCESSOR_DEFINITIONS = (