This SPARC patch for TBB 2.2 was created by Michajlo Matijkiw and Milo Martin at the University of Pennsylvania.
The patch can be downloaded at the following URL:
-http://www.cis.upenn.edu/acg/tbb-sparc/tbb22_004oss_src_patch.tar.gz
The tarball contains the patch itself and a shell script to automatically download the source and apply the patch.
To apply first unpack source (tbb22_004oss_src.tgz) and copy the patch file to the created directory (tbb22_004oss). cd to that directory and run patch -p0 -i tbb22_004oss_sparc.patch.
Alternatively, run ./get_tbb_sparc.sh which will automatically download the source and apply the patch. The resulting source will be in the directory 'tbb22_004oss'.
This patch was tested by running make test and additionally running several benchmarks developed as part of an NSF-funded summer research project.
make test completed successfully for gcc 3.4.3.
All tests appear to complete successfully for gcc 4.3.2, but compilation continues and then hangs, I believe this is a bug in the version of gcc used.
suncc raises errors due to errors in assembly syntax. I am not too familiar with suncc and did not have much success finding the source of these errors.