From bac21bf8cb0f002be2130f1b1ebadf1e12ade76a Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Thu, 24 Jan 2013 17:35:52 -0300 Subject: [PATCH] ubb-la/Makefile (CFLAGS): even -O1 isn't safe; use -O0 instead While -O1 gets rid of the unexpected read in the simple code of a synthetic test, it's still there in the more complex environment we have in ubb-la.c Turning off optimization completely seems to do the trick. --- ubb-la/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubb-la/Makefile b/ubb-la/Makefile index 139f8e7..e593996 100644 --- a/ubb-la/Makefile +++ b/ubb-la/Makefile @@ -11,7 +11,7 @@ # CC = mipsel-openwrt-linux-gcc -CFLAGS = -g -Wall -O1 -I../libubb/include +CFLAGS = -g -Wall -O0 -I../libubb/include LDFLAGS = LDLIBS = -L../libubb -lubb -lm -lrt