From 6eb4415eaaaa2a01209262555f0a115a46deeb36 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 26 Dec 2008 02:50:13 +0000 Subject: include/libc-string_i386.h: fix a bug where memset('\xff') misbehaves Rules.mak: add -funsigned-char, to forestall future PITA --- Rules.mak | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Rules.mak') diff --git a/Rules.mak b/Rules.mak index 86a7c48d3..a36a79d7e 100644 --- a/Rules.mak +++ b/Rules.mak @@ -467,9 +467,11 @@ endif NOSTDLIB_CFLAGS:=$(call check_gcc,-nostdlib,) # Some nice CFLAGS to work with +# Why -funsigned-char: I hunted a bug related to incorrect +# sign extension of 'char' type for 10 hours straight. Not fun. CFLAGS := -include $(top_builddir)include/libc-symbols.h \ $(XWARNINGS) $(CPU_CFLAGS) $(SSP_CFLAGS) \ - -fno-builtin -nostdinc -I$(top_builddir)include -I. \ + -funsigned-char -fno-builtin -nostdinc -I$(top_builddir)include -I. \ -I$(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH) # Make sure that we can be built with non-C99 compilers, too. -- cgit v1.2.3