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]

Re: Problem with unsigned long long on ultrasparc


   Date: Thu, 20 Aug 1998 16:22:03 -0500 (EST)
   From: Brad Lucier <lucier@math.purdue.edu>

   but

   peano-27% gcc -O1 -mcpu=ultrasparc -o testlong testlong.c
   peano-28% testlong
   4294967295ll
   2147483648ll
   Problem

Two things, -1 is an int not a long long (although does GCC promote it
to a long long in this case?), secondarily setting cpu type to
ultrasparc is an error on Solaris-2.5, perhaps you meant
"-mtune=ultrasparc".  "-mcpu=ultrasparc" turns on the V9 instructions
in the compiler which won't work correctly in all cases on Solaris-2.5
since it is not providing a 64-bit userland environment for the cpu.

"-mtune=ultrasparc" on the other hand turns on scheduling and cost
parameters independent of the instruction ISA being used.

Later,
David S. Miller
davem@dm.cobaltmicro.com


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