[torqueusers] Torque 2.3.6 on PPC64
Gabe Turner
gabe at msi.umn.edu
Thu Mar 5 17:17:05 MST 2009
On Thu, Mar 05, 2009 at 04:11:35PM -0800, Garrick Staples wrote:
> On Thu, Mar 05, 2009 at 05:25:50PM -0600, Gabe Turner alleged:
[snip]
> > If I configure with --disable-gcc-warnings, it builds (though, I haven't tested
> > the functionality yet). Has anyone else encountered this? I'm just curious if
> > it can be ignored on this architecture, or if this is a known-issue.
>
> It's probably not a big deal, but we would like to fix all such warnings.
>
> EOF is -1, but it looks like char is unsigned on ppc64? It is certainly signed on x86 linux.
>
> Can you try this compile and run this program?
>
> #include <stdio.h>
>
> int
> main (void)
> {
> char c = 255;
> if (c > 128) {
> printf ("char is unsigned (c = %d)\n", c);
> } else {
> printf ("char is signed (c = %d)\n", c);
> }
> return 0;
> }
silver01:~ # gcc -o test -m64 test.c
silver01:~ # ./test
char is unsigned (c = 255)
Gabe
--
Gabe Turner gabe at msi.umn.edu
UNIX System Administrator,
University of Minnesota
Supercomputing Institute http://www.msi.umn.edu
More information about the torqueusers
mailing list