ioq3, gcc and their Solaris/Sparc friends

vincent at cojot.name vincent at cojot.name
Thu Dec 8 12:25:11 EST 2005


Just for the record, there appears to be some alignment issues lurking.. I 
am now able to successfully run the Solaris/Sparc -O2 release client but I 
had to compile using "-fno-faster-structs" (SPARC option). From the GCC 
man page:

      -mno-faster-structs
      -mfaster-structs
          With -mfaster-structs, the compiler assumes that
          structures should have 8 byte alignment.  This enables
          the use of pairs of "ldd" and "std" instructions for
          copies in structure assignment, in place of twice as
          many "ld" and "st" pairs.  However, the use of this
          changed alignment directly violates the SPARC ABI.
          Thus, it's intended only for use on targets where the
          developer acknowledges that their resulting code will
          not be directly in line with the rules of the ABI.

I am able to run the release/client and play a level with the following 
compile flags:

   ifeq ($(ARCH),sparc)
     OPTIMIZE = -O2 -ffast-math -falign-loops=2 \
       -falign-jumps=2 -falign-functions=2 -fstrength-reduce \
       -mtune=ultrasparc -mv8plus -munaligned-doubles \
       -funroll-loops -mno-faster-structs

If I can verify on my other workstations that these flags do solve the 
problem, I'll be submitting a patch to the Makefile and status page.

Stay tuned,

,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,
Vincent S. Cojot, Computer Engineering. STEP project. _.,-*~'`^`'~*-,._.,-*~
Ecole Polytechnique de Montreal, Comite Micro-Informatique. _.,-*~'`^`'~*-,.
Linux Xview/OpenLook resources page _.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'
http://step.polymtl.ca/~coyote  _.,-*~'`^`'~*-,._ coyote at NOSPAM4cojot.name

They cannot scare me with their empty spaces
Between stars - on stars where no human race is
I have it in me so much nearer home
To scare myself with my own desert places.       - Robert Frost





More information about the quake3 mailing list