Received: from list by lists.gnu.org with archive (Exim 4.71) id 1S0chN-00084Y-DS for mharc-grub-devel@gnu.org; Thu, 23 Feb 2012 12:43:21 -0500 Received: from eggs.gnu.org ([140.186.70.92]:58207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0chF-00083R-11 for grub-devel@gnu.org; Thu, 23 Feb 2012 12:43:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S0chB-0002MC-UV for grub-devel@gnu.org; Thu, 23 Feb 2012 12:43:12 -0500 Received: from caffeine.csclub.uwaterloo.ca ([129.97.134.17]:40061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0chB-0002Lm-Ov for grub-devel@gnu.org; Thu, 23 Feb 2012 12:43:09 -0500 Received: by caffeine.csclub.uwaterloo.ca (Postfix, from userid 20367) id 2C4FBF9F; Thu, 23 Feb 2012 12:43:08 -0500 (EST) Date: Thu, 23 Feb 2012 12:43:08 -0500 To: The development of GNU GRUB Subject: Re: Lists and aliasing (Re: Freeze on 27 February) Message-ID: <20120223174308.GG13612@caffeine.csclub.uwaterloo.ca> References: <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> <4F45DA0D.10901@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <4F45DA0D.10901@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) From: lsorense@csclub.uwaterloo.ca (Lennart Sorensen) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 129.97.134.17 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 17:43:18 -0000 On Thu, Feb 23, 2012 at 07:17:49AM +0100, Vladimir '=CF=86-coder/phcoder' S= erbinenko wrote: > >../../../grub-core/normal/charset.c: In function > 'grub_bidi_line_logical_to_visual': > ../../../grub-core/normal/charset.c:737: error: cannot optimize > possibly infinite > > loops If I do what is already done for GRUB_LONG_MIN and use: > #define GRUB_INT_MIN (-0x7fffffff - 1) ...then gcc 4.6 is happy. gcc > 4.4 goes on complaining > > about the inability to optimize possibly infinite loops. > in charset.c we actually want to ensure that it doesn't go negative. > In grub-mkfont.c it's ok to disable warning altogether. Here is the > patch (+grub-install fix) gcc-4.6 -DHAVE_CONFIG_H -I. -I../.. -Wall -W -I./include -DGRUB_UTIL=3D1 -= DGRUB_LIBDIR=3D\"/usr/lib/grub\" -DLOCALEDIR=3D\"/usr/share/locale\" -DGRU= B_MACHINE_EMU=3D1 -DGRUB_MACHINE=3DPOWERPC_EMU -DGRUB_TARGET_CPU_POWERPC=3D= 1 -DGRUB_FILE=3D\"grub-core/disk/diskfilter.c\" -I. -I../.. -I. -I../.. -I.= =2E/../include -I./include -I./grub-core/gnulib -I../../grub-core/gnulib = -g -Wall -O2 -Wall -W -Wshadow -Wold-style-declaration -Wold-= style-definition -Wpointer-arith -Wundef -Wextra -Waddress -Warray-bounds -= Wattributes -Wbuiltin-macro-redefined -Wcast-align -Wchar-subscripts -Wclob= bered -Wcomment -Wcoverage-mismatch -Wdeprecated -Wdeprecated-declarations = -Wdisabled-optimization -Wdiv-by-zero -Wempty-body -Wendif-labels -Wfloat-e= qual -Wformat-contains-nul -Wformat-extra-args -Wformat-security -Wformat-y= 2k -Wignored-qualifiers -Wimplicit -Wimplicit-function-declaration -Wimplic= it-int -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wunsafe-loop-optimi= zations -Wlogical-op -Wmain -Wmissing-braces -Wmissing-field-initializers -= Wmissing-format-attribute -Wmissing-noreturn -Wmudflap -Wmultichar -Wnonnul= l -Woverflow -Wpacked-bitfield-compat -Wparentheses -Wpointer-arith -Wpoint= er-to-int-cast -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wstr= ict-aliasing -Wswitch -Wsync-nand -Wtrigraphs -Wtype-limits -Wundef -Wunin= itialized -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunu= sed-parameter -Wunused-value -Wunused-variable -Wvariadic-macros -Wvolatil= e-register-var -Wwrite-strings -Wmissing-parameter-type -Wnested-externs -W= strict-prototypes -Wpointer-sign -Werror -Wno-undef -Wno-sign-compare -Wno= -unused -Wno-unused-parameter -Wno-redundant-decls -Wno-unreachable-code -W= no-conversion -Wno-old-style-definition -Wno-unsafe-loop-optimizations = -c -o grub-core/disk/libgrubkern_a-diskfilter.o `test -f 'grub-c= ore/disk/diskfilter.c' || echo '../../'`grub-core/disk/diskfilter.c =2E./../grub-core/disk/diskfilter.c: In function 'insert_array': =2E./../grub-core/disk/diskfilter.c:975:14: error: declaration of 'disk' sh= adows a parameter [-Werror=3Dshadow] =2E./../grub-core/disk/diskfilter.c:953:27: error: shadowed declaration is = here [-Werror=3Dshadow] --=20 Len Sorensen