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 middle-end/26632] [4.1/4.2 Regression] spurious warning: value computed is not used



------- Comment #4 from neil at daikokuya dot co dot uk  2006-03-11 00:15 -------
Subject: Re:  spurious warning: value computed is not used

pinskia at gcc dot gnu dot org wrote:-

> 
> 
> ------- Comment #1 from pinskia at gcc dot gnu dot org  2006-03-10 15:16 -------
> Hmm, what is going on here is the following.
>         0 ? h() : g();
> is not really just that but instead:
>         0 ? h() : (long)g();
> which then gets foldded into:
> (long)g();
> and we warn about the cast.

Every time we get bitten by issuing diagnostics after parts of GCC
other than the front end manipulate the IR.  These bugs won't go
away until GCC stops doing this.

Neil.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26632


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