This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/26679] boostrap failure due to warning in gcc/varasm.c



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]