The code heavily uses aliasing and the compiler optimized this wrong

This commit is contained in:
Snesrev
2023-03-20 20:43:11 +01:00
parent 7a29af4260
commit 3a4afe38db

View File

@@ -4,7 +4,7 @@ SRCS:=$(wildcard src/*.c src/snes/*.c) third_party/gl_core/gl_core_3_1.c
OBJS:=$(SRCS:%.c=%.o) OBJS:=$(SRCS:%.c=%.o)
PYTHON:=/usr/bin/env python3 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. CFLAGS:=${CFLAGS} $(shell sdl2-config --cflags) -DSYSTEM_VOLUME_MIXER_AVAILABLE=0 -I.
ifeq (${OS},Windows_NT) ifeq (${OS},Windows_NT)