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 run-time results when using the Sun Studio 12 cc/CC 5.9 compiler with Patch 124861-01 to compile Real-Time Workshop generated code?


Date Last Modified: Friday, June 26, 2009
Solution ID:   1-6IJJ4C
Product:   Real-Time Workshop
Reported in Release:   No Release
Platform:   Solaris
Operating System:   Solaris Any
 

Subject:

Why do I receive incorrect run-time results when using the Sun Studio 12 cc/CC 5.9 compiler with Patch 124861-01 to compile Real-Time Workshop generated code?

Problem Description:

I am compiling Real-Time Workshop generated code, using the Sun Studio 12 cc/CC 5.9 compiler with Patch 124861-01 installed.
If the Real-Time Workshop generated code casts to int8 and then double as a result of bit-shift operators applied to an int16, I am seeing incorrect numerical results from running the compiled code.
This problem did not occur with the unpatched Sun Studio 12 cc/CC 5.9 compiler.

Solution:

This enhancement has been incorporated in Release 2008b (R2008b). For previous product releases, read below for any possible workarounds:

Patch 124861-01 to the Sun Studio 12 cc/CC 5.9 compiler introduced a bug that can, in some instances, cause incorrect run-time results. Sun has released Patch 124861-06 2008/05/06 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-124861

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