Disable tree-vrp on GCC for this function. GCC miscompiles it.

This commit is contained in:
Brandon Wright 2018-06-02 14:28:43 -05:00
parent 1b5cc53299
commit 9151880046
1 changed files with 4 additions and 0 deletions

View File

@ -997,6 +997,8 @@ static void SetupOBJ (void)
IPPU.OBJChanged = FALSE; IPPU.OBJChanged = FALSE;
} }
#pragma GCC push_options
#pragma GCC optimize ("no-tree-vrp")
static void DrawOBJS (int D) static void DrawOBJS (int D)
{ {
void (*DrawTile) (uint32, uint32, uint32, uint32) = NULL; void (*DrawTile) (uint32, uint32, uint32, uint32) = NULL;
@ -1089,6 +1091,8 @@ static void DrawOBJS (int D)
} }
} }
} }
#pragma GCC pop_options
static void DrawBackground (int bg, uint8 Zh, uint8 Zl) static void DrawBackground (int bg, uint8 Zh, uint8 Zl)
{ {