From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1S4K9r-0001UO-Pt for mharc-grub-devel@gnu.org; Sun, 04 Mar 2012 17:44:03 -0500 Received: from eggs.gnu.org ([208.118.235.92]:32959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4K9p-0001TP-4P for grub-devel@gnu.org; Sun, 04 Mar 2012 17:44:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S4K9n-0002Zs-54 for grub-devel@gnu.org; Sun, 04 Mar 2012 17:44:00 -0500 Received: from mail-ee0-f41.google.com ([74.125.83.41]:54496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4K9m-0002Z7-Rt for grub-devel@gnu.org; Sun, 04 Mar 2012 17:43:59 -0500 Received: by eeke53 with SMTP id e53so1317957eek.0 for ; Sun, 04 Mar 2012 14:43:56 -0800 (PST) Received-SPF: pass (google.com: domain of futur.andy@googlemail.com designates 10.213.30.16 as permitted sender) client-ip=10.213.30.16; Authentication-Results: mr.google.com; spf=pass (google.com: domain of futur.andy@googlemail.com designates 10.213.30.16 as permitted sender) smtp.mail=futur.andy@googlemail.com; dkim=pass header.i=futur.andy@googlemail.com Received: from mr.google.com ([10.213.30.16]) by 10.213.30.16 with SMTP id s16mr1706521ebc.177.1330901036689 (num_hops = 1); Sun, 04 Mar 2012 14:43:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=CiHdNl0wvyQWXQraTxbjySZESy2nFnP9hvT+9oJvcq0=; b=rE3OwBKs4oOsIyPDUQcU0TrZjbwNT63+YynDA27CYQ8fM9E31RNcJPYlxhrqgSaRv2 k1dYHPva/h/qkffDZPt/zaCUPUKRGsAQkGSRK7mIta344WtTjd10yUEEctwGAYHrca8W vH/1SEy5z6aVAjmj/dOEzQYFBFkC578+fkRnUDHT3zXUtnYIOenT25yA1Vwi9+baJNqQ y1dqlf3Iljo8StpNRSjTRdtB7lF8Qxjs/2OuSEC/W3ZHMO2RJD1dtjGVUv8XJx1dmFz4 1p7XvQPG954R0ZjI5zA4roMeNX1EAjJl35z01Bg0d+Xsagy7tvZjN+yOGTbUxT/gmDHj aNBQ== Received: by 10.213.30.16 with SMTP id s16mr1291100ebc.177.1330901036614; Sun, 04 Mar 2012 14:43:56 -0800 (PST) Received: from [192.168.178.55] (p5091D536.dip.t-dialin.net. [80.145.213.54]) by mx.google.com with ESMTPS id d54sm7834827eei.9.2012.03.04.14.43.55 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 04 Mar 2012 14:43:55 -0800 (PST) Message-ID: <4F53F029.5090103@googlemail.com> Date: Sun, 04 Mar 2012 23:43:53 +0100 From: Andreas Born User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120220 Thunderbird/10.0.2 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: Frozen References: <4F4C4CE8.6010001@gmail.com> <20120228163932.GO13612@caffeine.csclub.uwaterloo.ca> <20120301183710.GB22241@caffeine.csclub.uwaterloo.ca> <20120301191517.GC22241@caffeine.csclub.uwaterloo.ca> <4F535D59.2080704@gmail.com> In-Reply-To: <4F535D59.2080704@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.83.41 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: Sun, 04 Mar 2012 22:44:02 -0000 Am 04.03.2012 13:17, schrieb Vladimir 'φ-coder/phcoder' Serbinenko: > You forget the case line_start = 0. Please try: > - for (i = k - 1; i > (signed) line_start - 1 && i >= 0; > + for (i = k - 1; i >= 0 && (unsigned) i >= line_start; Fixes it here with gcc 4.5.2. But now getting: gcc -DHAVE_CONFIG_H -I. -I.. -Wall -W -I../include -I../include -DGRUB_MACHINE_PCBIOS=1 -DGRUB_MACHINE=I386_PC -DGRUB_TARGET_CPU_I386=1 -m32 -nostdinc -isystem /usr/lib64/gcc/x86_64-slackware-linux/4.5.2/include -DGRUB_FILE=\"video/bitmap_scale.c\" -I. -I. -I.. -I.. -I../include -I../include -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-format-attribute -Wmissing-noreturn -Wmudflap -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 -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -fno-asynchronous-unwind-tables -m32 -fno-stack-protector -mno-stack-arg-probe -Werror -mrtd -mregparm=3 -ffreestanding -MT video/bitmap_scale_module-bitmap_scale.o -MD -MP -MF video/.deps-core/bitmap_scale_module-bitmap_scale.Tpo -c -o video/bitmap_scale_module-bitmap_scale.o `test -f 'video/bitmap_scale.c' || echo './'`video/bitmap_scale.c distcc[1015] ERROR: compile /home/shador/.ccache/tmp/linux.tmp.nyx.927.i on localhost failed cc1: warnings being treated as errors loader/i386/linux.c: In function 'grub_cmd_linux': loader/i386/linux.c:292:13: error: cannot optimize possibly infinite loops make[3]: *** [loader/i386/linux_module-linux.o] Error 1 Suggestion: - for (; err && *align >= min_align; (*align)--) + for (; err && *align + 1 > min_align; (*align)--) That's the last one I get with my version of gcc.