From: Andreas Born <futur.andy@googlemail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: Frozen
Date: Sun, 04 Mar 2012 23:43:53 +0100 [thread overview]
Message-ID: <4F53F029.5090103@googlemail.com> (raw)
In-Reply-To: <4F535D59.2080704@gmail.com>
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.
next prev parent reply other threads:[~2012-03-04 22:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-28 3:41 Frozen Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-28 16:39 ` Frozen Lennart Sorensen
2012-03-01 18:37 ` Frozen Lennart Sorensen
2012-03-01 19:15 ` Frozen Lennart Sorensen
2012-03-01 19:25 ` Frozen Lennart Sorensen
2012-03-04 12:17 ` Frozen Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-04 22:43 ` Andreas Born [this message]
2012-03-05 14:46 ` Frozen Lennart Sorensen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F53F029.5090103@googlemail.com \
--to=futur.andy@googlemail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.