This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 186350 - SunStudio and OracleSolarisStudio compiler options (Performance Release mode) are changed in latest builds (1-2 week ago)
Summary: SunStudio and OracleSolarisStudio compiler options (Performance Release mode)...
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Toolchain (show other bugs)
Version: 6.x
Hardware: PC Linux
: P1 normal (vote)
Assignee: Alexander Simon
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2010-05-19 07:50 UTC by soldatov
Modified: 2010-05-24 07:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2010-05-19 07:50:19 UTC
Platform: x86 (Solaris and Linux)

Scenario:
- Create C/C++ project
- Call context menu on project and select Properties menu item
- Set Build|C++ Compiler|Development Mode = Performance Release
==> check options (for example press "..." button in "Additional Options" field)

NetBeans 6.9beta (SunStudio, SunStudio12.1 or OracleSolarisStudio toolchain):
-fast -xipo -xvector=simd -g0

Latest builds:
SunStudio or OracleSolarisStudio: -fast -xipo -g0
SunStudio12.1: -fast -xipo -xvector=simd -g0
Comment 1 Alexander Simon 2010-05-19 08:14:29 UTC
Logic of tool collection manager for creating Oracle Solaris Studio is:
- manager detect latest Oracle Solaris Studio by following priority:
  1. SunStudio_12.2 - Oracle Solaris Studio 12.2 Compiler Collection
  2. SunStudioExpressAten - Oracle Solaris Studio Express 6/10 Compiler Collection
  3. SunStudio_12.1 - Sun Studio 12.1 Compiler Collection
  4. SunStudioExpressCeres - Sun Studio Express Compiler Collection (Ceres)
  5. SunStudio_12 - Sun Studio 12 Compiler Collection
  6. SunStudio_11 - Sun Studio 11 Compiler Collection
  7. SunStudio_10 - Sun Studio 10 Compiler Collection
  8. SunStudio_9 - Sun Studio 9 Compiler Collection
  9. SunStudio_8 - Sun Studio 8 Compiler Collection
  latest studio has appropriate name and flavor.
- manger creates two link on latest studio compilers:
  1. SunStudio - Sun Studio Compiler Collection
  2. OracleSolarisStudio - Oracle Solaris Studio Compiler Collection
  both link have own flavor that is a common flavor of all studios (equals SunStudio_8). I.e. SunStudio has flavor SunStudio and OracleSolarisStudio has flavor OracleSolarisStudio.
Is it bug?
Comment 2 Leonid Lenyashin 2010-05-19 09:37:29 UTC
I think it is at least confusing. If user does not have anything older than 12.1 why to keep the set of option that is compatible with older versions?
I think correct logic should be to pick common set of flags for installed toolchains only.
Comment 3 Alexander Simon 2010-05-19 11:42:22 UTC
I do not understand that is "common set of flags".
Explain please.
For example:
Let exist two tool collections and tools has following flag set:
- S1 for C tool from first tool collection
- S2 for C tool from second tool collection
Common set of flags is:
- intersection of S1 and s2
- set from oldest tool
- or anything else?
Comment 4 Leonid Lenyashin 2010-05-19 11:53:25 UTC
Intersection sounds most right. However if OracleSolarisStudio is an alias, then it might make sense to just pick the flags from the toolchain that it refers to.
Comment 5 Alexander Simon 2010-05-19 12:05:49 UTC
i.e., restore behavior that was in beta:
- manger creates two link on latest studio compilers:
  1. SunStudio - Sun Studio Compiler Collection
  2. OracleSolarisStudio - Oracle Solaris Studio Compiler Collection
  both links have flavor that is a flavor of the latest studio.
Comment 6 Leonid Lenyashin 2010-05-19 12:18:48 UTC
Yep. I think it is more intuitive for users and exactly what Valery is asking for.
Comment 7 Alexander Simon 2010-05-19 12:44:52 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/892958204b2d
Comment 8 Quality Engineering 2010-05-20 06:16:52 UTC
Integrated into 'main-golden', will be available in build *201005192201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/892958204b2d
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed BZ#186350 SunStudio and OracleSolarisStudio compiler options (Performance Release mode) are changed in latest builds (1-2 week ago)
Comment 9 Alexander Simon 2010-05-20 07:06:54 UTC
QA: please evaluate issue as show stopper according to NetBeans 6.9 High Resistance procedure.
Comment 10 Vladimir Voskresensky 2010-05-20 13:29:00 UTC
it's difference in behavior of IDE comparing with beta.
Fix is safe and correct. And if you think that the current behavior is not needed, but behavior of Beta is needed => I agree with fix.
Comment 11 Alexander Pepin 2010-05-20 13:34:37 UTC
Accepted as a show stopper after discussion.
Starting show stopper process.
Comment 12 Alexander Pepin 2010-05-20 16:40:40 UTC
verified in dev cnd build from bertram.
please push to release69 clone.
Comment 13 Alexey Vladykin 2010-05-20 16:57:17 UTC
Fix transplanted to release69 as 34acd9a8c7e5
Comment 14 soldatov 2010-05-24 07:41:50 UTC
verified in RC1