[Bug bootstrap/26679] boostrap failure due to warning in gcc/varasm.c
joseph at codesourcery dot com
gcc-bugzilla@gcc.gnu.org
Tue Mar 14 15:11:00 GMT 2006
------- Comment #4 from joseph at codesourcery dot com 2006-03-14 15:11 -------
Subject: Re: boostrap failure due to warning in
gcc/varasm.c
On Tue, 14 Mar 2006, pinskia at gcc dot gnu dot org wrote:
> What compiler are you using to get that warning?
> There should be no warning as shift is a variable and n is a variable and
> should be zero.
shift is a const variable initialized with a constant, so when building
with optimization (this is the stage1 compiler building the stage2
compiler) it gets replaced by its value. Because the warning is given
before dead code elimination, the fact that n is also a constant and the
code is unreachable is irrelevant. Why this error is newly appeared I'm
not sure.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26679
More information about the Gcc-bugs
mailing list