diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-26 02:50:13 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-26 02:50:13 +0000 |
commit | 6eb4415eaaaa2a01209262555f0a115a46deeb36 (patch) | |
tree | 6d96fed6363347ee595588a77b65cfe9eda0f711 /Rules.mak | |
parent | 9ffbd8cdf7807e1621d2421f120aef668530b8da (diff) |
include/libc-string_i386.h: fix a bug where memset('\xff') misbehaves
Rules.mak: add -funsigned-char, to forestall future PITA
Diffstat (limited to 'Rules.mak')
-rw-r--r-- | Rules.mak | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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. |