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]

linuxppc


Hello

I don't know if it is a bug but when i compile a program on linuxppc
that make a comparison like

char c;
...
...

if (c < 0)
{
....
}


I get the following warning: comparison is always false due to limited
range of data type.

So I have to use the -fsigned-char flag when compiling. This is not the
case when compiling on linux intel, shouldn't it be the same???


/Magnus


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