Summary: | Support building with Sun Studio | ||
---|---|---|---|
Product: | liboil | Reporter: | Brian Cameron <brian.cameron> |
Component: | unknown | Assignee: | David Schleef <ds> |
Status: | NEW --- | QA Contact: | David Schleef <ds> |
Severity: | normal | ||
Priority: | medium | ||
Version: | 0.3.5 | ||
Hardware: | Other | ||
OS: | Solaris | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
patch allowing liboil to be built with Sun Studio support taking advantage of its new GCC-style assembly support.
updated patch updated patch |
Description
Brian Cameron
2010-03-31 16:04:26 UTC
Created attachment 34701 [details] [review] updated patch Here is an updated patch. A few minor changes. With this patch "make check" works for both i386 and amd64 and I can run "oil-bugreport" without it failing. + The mapfile is applied for both i386 and amd64 in configure.ac + m4/as-host-defines.m4 now has a better check for Solaris I386 versus AMD64 that works. + Reworked m4/as-intrinsics.m4 so that it is a little smarter and just sets the flags as is appropriate for the different intrinsics and does not bother calling getisax. The flags are set more closely to what the Sun Studio cc manpage says they should be set to. + A new hunk for liboil/liboiltest.c. Sun Studio requires that if you pass a floating-point type to an integer hex printf specifier, it will not work unless it is specifically cast. Refer here: http://developers.sun.com/solaris/articles/about_amd64_abi.html#varargs This hunk avoids a crash when running one of the tests in "make check". Note that aside from that latest patch, I also make two other changes: - When building in amd64 mode I modify liboil/Makefile.am so that it does not build the amd64 and i386_amd64 directories when building amd64. When these are built, there are problems with the code segfaulting when tests are run and oil-bugreport is run. - In liboil/i386/trans8x8_i386.c I comment out the functions trans8x8_u16_asm1 and trans8x8_u16_asm2 since they crash when running oil-bugreport in a manner that looks like a Sun Studio bug. I will work with the Sun Studio team to address these problems. I do not think we should try to get these fixes upstream since they are workarounds for what seem to be Sun Studio bugs. I only mention this so that if people try to build liboil with Sun Studio with the latest patch, they about these additional problems if they are using a compiler that does not yet have the fixes. Created attachment 35116 [details] [review] updated patch Here is a patch which applies against the latest 0.3.17 version of liboil |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.