Skip to Main Content Skip to Search
Home |   Select Country  Choose Country  |  Contact Us  |  Cart Store 
Create Account | Log In
Products & Services Solutions Academia Support User Community Company
spacer spacer spacer spacer spacer spacer

Technical Solutions

Why do I receive incorrect results when using Sun CC 5.8 with the -xO3 flag?


Date Last Modified: Friday, June 26, 2009
Solution ID:   1-431HK0
Product:   MATLAB
Reported in Release:   R2007a
Platform:   Solaris
Operating System:   Solaris Any
 

Subject:

Why do I receive incorrect results when using Sun CC 5.8 with the -xO3 flag?

Problem Description:

I am generating code from Simulink and related products, or interfacing with C code. I am using Sun Studio 11 C++ 5.8 Patch 121017-02 2006/04/19 or earlier on 64-bit Solaris.

Solution:

This bug has been fixed in Release 2007b (R2007b). For previous product releases, read below for any possible workarounds:

There is a bug in the Sun Studio 11 C++ 5.8 compiler that can, in some instances, cause incorrect results.

Sun has released patch 120760-12 to address the issue. Contact Sun to update your compiler, or see the patch announcement here:
http://sunsolve.sun.com/search/document.do?assetkey=1-21-120760

Customers can find more information in Sun BugID 6503610.

Please provide feedback to help us improve this Solution
Contact support
E-mail this page
Print this page