Received: from list by lists.gnu.org with archive (Exim 4.71) id 1S0Oar-0001ea-4Q for mharc-grub-devel@gnu.org; Wed, 22 Feb 2012 21:39:41 -0500 Received: from eggs.gnu.org ([140.186.70.92]:51747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0Oao-0001di-IR for grub-devel@gnu.org; Wed, 22 Feb 2012 21:39:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S0Oan-0000Mm-5P for grub-devel@gnu.org; Wed, 22 Feb 2012 21:39:38 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:47917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0Oan-0000Lg-2l for grub-devel@gnu.org; Wed, 22 Feb 2012 21:39:37 -0500 Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id ECD2420F38 for ; Wed, 22 Feb 2012 21:39:32 -0500 (EST) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute3.internal (MEProxy); Wed, 22 Feb 2012 21:39:32 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=+qagmSYjLe2CDonrGI4Eke 7Wyb4=; b=dYqjicFfqBMAuRkeInND/ySX1i+Wh9Y/JPGRMAVIoIcApSqhfSQkuL dei51ucciuA2cgAaDOAn99gch+k8DkxWT79O4VubJ75CYOjZ3zaBCP2CZlkRS9OE PhdGFfDbp2Ixc5gq96KcvPFKLOZkoU6C69/HJoLbCvL/IT66j+fHc= X-Sasl-enc: u/mrYurNfetoT7oe19d07+CPyn+LB19ZC4SxGai2k+Sv 1329964772 Received: from [10.1.4.8] (an4-8.marlboro.edu [216.158.163.8]) by mail.messagingengine.com (Postfix) with ESMTPSA id 9461E8E0209; Wed, 22 Feb 2012 21:39:32 -0500 (EST) Message-ID: <4F45A6E4.3070203@isaac.cedarswampstudios.org> Date: Wed, 22 Feb 2012 21:39:32 -0500 From: Isaac Dupree User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111224 Thunderbird/9.0.1 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: Lists and aliasing (Re: Freeze on 27 February) References: <4F451CD7.9080106@gmail.com> <20120222171612.GL24235@caffeine.csclub.uwaterloo.ca> <4F452775.9070900@gmail.com> <20120222174156.GN24235@caffeine.csclub.uwaterloo.ca> <20120222174614.GO24235@caffeine.csclub.uwaterloo.ca> <20120222180141.GP24235@caffeine.csclub.uwaterloo.ca> <20120222182806.GQ24235@caffeine.csclub.uwaterloo.ca> <20120222184104.GS24235@caffeine.csclub.uwaterloo.ca> <4F453B66.4040406@gmail.com> <20120222225037.GB13612@caffeine.csclub.uwaterloo.ca> <20120222230307.GC13612@caffeine.csclub.uwaterloo.ca> In-Reply-To: <20120222230307.GC13612@caffeine.csclub.uwaterloo.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.29 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2012 02:39:39 -0000 On 02/22/2012 06:03 PM, Lennart Sorensen wrote: > On Wed, Feb 22, 2012 at 05:50:37PM -0500, Lennart Sorensen wrote: >> Now I get: >> >> gcc-4.6 -DHAVE_CONFIG_H -I. -I../../../grub-core -I.. -Wall -W -I../../../include -I../include -DGRUB_MACHINE_EMU=1 -DGRUB_MACHINE=POWERPC_EMU -DGRUB_TARGET_CPU_POWERPC=1 -m32 -DGRUB_FILE=\"normal/charset.c\" -I. -I../../../grub-core -I.. -I../../.. -I../../../include -I../include -I../../../grub-core/lib/posix_wrap -Os -Wall -W -Wshadow -Wold-style-declaration -Wold-style-definition -Wpointer-arith -Wundef -Wextra -Waddress -Warray-bounds -Wattributes -Wbuiltin-macro-redefined -Wcast-align -Wchar-subscripts -Wclobbered -Wcomment -Wcoverage-mismatch -Wdeprecated -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wempty-body -Wendif-labels -Wfloat-equal -Wformat-contains-nul -Wformat-extra-args -Wformat-security -Wformat-y2k -Wignored-qualifiers -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wunsafe-loop-optimizations -Wlogical-op -Wmain -Wmissing-braces -Wmissing-field-initializers -Wmissing-fo rmat-attribute -Wmissing-noreturn -W >> mudflap -Wmultichar -Wnonnull -Woverflow -Wpacked-bitfield-compat -Wparentheses -Wpointer-arith -Wpointer-to-int-cast -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wstrict-aliasing -Wswitch -Wsync-nand -Wtrigraphs -Wtype-limits -Wundef -Wuninitialized -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -Wvariadic-macros -Wvolatile-register-var -Wwrite-strings -Wmissing-parameter-type -Wnested-externs -Wstrict-prototypes -Wpointer-sign -g -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations -fno-dwarf2-cfi-asm -fno-asynchronous-unwind-tables -m32 -fno-stack-protector -Werror -Wno-trampolines -DUSE_ASCII_FAILBACK=1 -DHAVE_UNIFONT_WIDTHSPEC=1 -ffreestanding -fno-builtin -Wno-redundant-decls -c -o normal/normal_module-charset.o `test -f 'normal/charset.c' || echo '../../../grub-core/'`normal/charset.c >> ../../../grub-core/normal/charset.c: In function 'bidi_line_wrap': >> ../../../grub-core/normal/charset.c:737:55: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] >> cc1: all warnings being treated as errors > > For some reason the compiler thinks GRUB_INT_MIN which is defined as > -0x80000000 is unsigned. That's probably because "-0x80000000" *is* unsigned. 0x80000000 is an integer literal that does not fit into (32-bit) int but does fit into (32-bit) unsigned int. The negation operator does not change the signedness of its operand's type. It should probably be signed, e.g. #define GRUB_INT_MIN (-0x7fffffff - 1)