From 3a4afe38db092fb1db8f24fe1d63017edc3f00ca Mon Sep 17 00:00:00 2001 From: Snesrev Date: Mon, 20 Mar 2023 20:43:11 +0100 Subject: [PATCH] The code heavily uses aliasing and the compiler optimized this wrong --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ec295c1..1fcc86b 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ SRCS:=$(wildcard src/*.c src/snes/*.c) third_party/gl_core/gl_core_3_1.c OBJS:=$(SRCS:%.c=%.o) PYTHON:=/usr/bin/env python3 -CFLAGS:=$(if $(CFLAGS),$(CFLAGS),-O2 -Werror ) +CFLAGS:=$(if $(CFLAGS),$(CFLAGS),-O2 -fno-strict-aliasing -Werror ) CFLAGS:=${CFLAGS} $(shell sdl2-config --cflags) -DSYSTEM_VOLUME_MIXER_AVAILABLE=0 -I. ifeq (${OS},Windows_NT)