Patch-ID# 120760-11 NOTE: *********************************************************************** READ THE TERMS OF THE AGREEMENT ("AGREEMENT") IN THE LEGAL_LICENSE.TXT FILE CAREFULLY BEFORE USING THIS SOFTWARE. BY USING THE SOFTWARE, YOU AGREE TO THE TERMS OF THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS, PROMPTLY DESTROY THE UNUSED SOFTWARE. *********************************************************************** Keywords: common compiler backend iropt cg ipo ss11cc Synopsis: Sun Studio 11: Compiler Common patch for Sun C C++ F77 F95 Date: Nov/16/2006 Install Requirements: NA Solaris Release: 8 9 10 SunOS Release: 5.8 5.9 5.10 Unbundled Product: Sun Studio 11 C, C++, FORTRAN 77, FORTRAN 95 NOTE: Sun Studio 11 C, C++, FORTRAN 77, FORTRAN 95 Unbundled Release: 11.0 Xref: Topic: Relevant Architectures: sparc BugId's fixed with this patch: 5068534 6240430 6291201 6299603 6303849 6304998 6307367 6308531 6309337 6309890 6309952 6311748 6312647 6312694 6313534 6315352 6316009 6316204 6316410 6316913 6317408 6319734 6319749 6320450 6321483 6322809 6323803 6324196 6324835 6325998 6327191 6328734 6333204 6333695 6334811 6335529 6336188 6337239 6337304 6342975 6343314 6343628 6344519 6345274 6346242 6347478 6350399 6352177 6352300 6353992 6354978 6355587 6355935 6356190 6356695 6356724 6357238 6357344 6358717 6359085 6361987 6364647 6364654 6365085 6370940 6372459 6372464 6373172 6374039 6378292 6380194 6382654 6384450 6385088 6385120 6385750 6386330 6392095 6392474 6393330 6394035 6395037 6400423 6401212 6403230 6404968 6406574 6407177 6407361 6416524 6417856 6418944 6420649 6422832 6423109 6426719 6429342 6436895 6439613 6439850 6452303 6454083 6457852 6458511 6459133 6460537 6465362 6467426 6473144 6474353 Changes incorporated in this version: 6457852 6459133 6465362 6467426 6473144 6474353 Patches accumulated and obsoleted by this patch: Patches which conflict with this patch: Patches required with this patch: Obsoleted by: Files included with this patch: /SUNWspro/prod/bin/cg /SUNWspro/prod/bin/fbe /SUNWspro/prod/bin/fpversion /SUNWspro/prod/bin/ipo /SUNWspro/prod/bin/iropt /SUNWspro/prod/bin/postopt /SUNWspro/prod/lib/prof_lib.map /SUNWspro/prod/lib/prof_lib.o /SUNWspro/prod/lib/prof_tsd.map /SUNWspro/prod/lib/prof_tsd.o /SUNWspro/prod/lib/sys/libyabe.so /SUNWspro/prod/lib/v8/libm.il /SUNWspro/prod/lib/v8a/libm.il /SUNWspro/prod/lib/v8plus/libm.il /SUNWspro/prod/lib/v8plusa/libm.il /SUNWspro/prod/lib/v8plusb/libm.il /SUNWspro/prod/lib/v9/libm.il /SUNWspro/prod/lib/v9/prof_lib.map /SUNWspro/prod/lib/v9/prof_lib.o /SUNWspro/prod/lib/v9/prof_tsd.map /SUNWspro/prod/lib/v9/prof_tsd.o /SUNWspro/prod/lib/v9a/libm.il /SUNWspro/prod/lib/v9b/libm.il Problem Description: 6457852 Mars/Venus (v8plusb) caused 10x slowdown to mlib_VideoInterpAveXY_U8_U8 6459133 Failure when compiling php with -xipo 6465362 Optimizer goes into infinite loop 6467426 iropt core dumps with compiling 464.h264ref with -xarch=v9 6473144 fpversion has /tmp/SunWS_cache problem on ultra4plus 6474353 compiler not inlining math calls (from 120760-10) 6452303 OpenMP Autoscoping: Compiler does not emit scope of reduction variable 6458511 SPARC64: -xO3 gives CC: Fatal error in iropt: Segmentation Fault (core dumped) (from 120760-09) 6460537 version string wrong (from 120760-08) 6439613 Bad SPARC code generated for #pragma unknown_control_flow 6439850 Application crashes with Studio11patch compilers 6454083 SunStudio 11 compiler may generate incorrect assembly when used with -xO2 and -xarch=v9[ab ] (from 120760-07) 6334811 turn on the mem_merge optimization 6345274 ATG client failure due to bad immediate dominator info 6403230 -O1 failed to compile "while ((handy -= len) < 0) { ... }" 6422832 Sun Studio 11 compiler is corrupting memory at the 4096th offset 6423109 -xlinkopt failure with -g, with weak symbol test case (6420649) 6426719 Oracle 10gR2 source file with default optimization gives an error in iropt (Studio 11,V40z,x64) 6429342 AMD64: Studio 11 iropt segv 6436895 undefined symbol with -xO4 -xbuiltin=%all -xipo=2; 1stF:20060524_mars_x86 (from 120760-06) 6404968 Assertion failed: file ../src/var_df.c, line 2699 6406574 447 miscompare with xalias_level=compatible for venus 6407177 value profiling aborts when multiple versions of a routine are called from the same call site 6407361 programs compiled with -xprofile=collect use too much memory during feedback generation 6416524 compiler will optimize out loops 6417856 codegen ir tree syntax error with -O 6418944 Fatal error in iropt: Segmentation Fault (core dumped) 6420649 annotations/profile for weak functions are incorrect (from 120760-05) 6380194 Wrong answer with -xO3 -xarch=amd64 6382654 gcc: iropt segfault -xipo=2 -O3; 6384450 gcc: incorout -xautopar -O3; 6385088 F90:-O4|5 gave incorrect output 6385120 Postopt should accept a link line and perform -xlinkopt optimizations. 6392095 an important benchmark failed with gcc2ir on clpt1 6393330 dealII produces incorrect result with -xipo=2 using sgcc 6394035 SPARC C++ optimizer bug with integer shifts, masks and bool conversions and out-of-line functions 6400423 optimizer has troubles w/ recursive routine 6401212 benchmark slows down 28% with venus patch (from 120760-04) 6385750 incorout -xspace -xO4 -xchip=ultra3 -xopenmp at binopt -blevel=2 6392474 CC produces wrong result when -xO2 is used. 6395037 f90 8.2: iropt dependency check is broken. (from 120760-03) 5068534 Assmebler factoring out expressions wrongly 6240430 venus-5.0 benchmark 436: 20% run-time regression vs. mercury-patch 6316204 condition peeling of the loop yields 9% performance 6320450 The loop prefetch phase does not use the SSA information of a stride register. 6342975 Tune the kind of prefetch (strong, weak) emitted for low trip count loops for panther 6343314 44% speedup with manually inserted prefetch 6344519 benchmark 456 got 21% regression 6352300 13% regression may be due to alignment 6356724 benchmark 734 regressed ~15% 6357238 benchmark 634 regressed 37% 6364647 For register strides use the stride register to form the address of an indirect prefetch 6364654 Check the stride instruction when the ahead value is computed for an indirect prefetch 6365085 UBE fails to compile ISV application with -xO2 only 6372464 small test case produces wrong result under -xO2 only 6374039 incorout w -xmemalign -xarch=v9 -xO5 -xprofile=use; 6378292 complain from f90 forum. slow() produces wrong result under -depend 6386330 -xlinkopt regression with Siebel (from 120760-02) 6316009 sgcc does not autoparallelize 6319749 sparc|x86|x64: venus b17.0 icu-2.8 got run-time failure under -fast 6321483 cg assertion on SAP 6325998 iropt error: Unexpected Error when calling libsunir; 6350399 v9 and xipo leed to assertion in ../src/ipa_asm.c, line 4184 6353992 openssl-0.9.7i test fails in run-time under -xO3 -xdepend 6354978 sparc|x86|x64 venus-patch: benhchmark 614 failed in iropt 6355587 icu-3.4 miscompared on sparc 6355935 iropt assertion failed: use != NULL in var_df.c line 3202, when using -xautopar 6356190 venus-patch: pari-2.2.11 benchmark nfields is looping on sparc 6356695 incorout -xspace -xdepend -O3 -xrestrict; 1stF:20051115_gcc2ir 6357344 incorout -xchip=ultra3 -xbuiltin -xO3 -xarch=v9; 1stF:20050715_venus 6358717 imsl_stat test vanest fails 6359085 15% regression for important app. 6361987 bad IR error with -fast -xarch=v9 6370940 -xbuiltin -O3 -xipo=2 causes iropt Fatal error on sgcc 6372459 iropt encounters an unexpected compiler error when compiling an important benchmark 6373172 f90 7.1, 8.0, 8.1, 8.2: Incorrect CODEGEN IR TREE SYNTAX ERROR (from 120760-01) 6291201 Venus compiler performance is down by 5.3% compared to Mercury for an important benchmark 6299603 binopt does not support shared objects built without -Kpic 6303849 Need new commentary messages for M-functions 6304998 L-unknown tag messages generated by the pipeliner should be improved. 6307367 Cg assertion failure "cannot find empty slots in code_out" 6308531 OpenMP: SUNW_MP_THR_IDLE and spin time 6309337 incorout -xipo=2 -xO4 -xprofile=use; 1stF:20050524_venus 6309890 stlport test case fail during execution when compile with -O4 and -O5 6309952 value profiling not working correctly under iropt region mode 6311748 Studio 10 Update 1 beta C compiler bug with -O 6312647 missing load object records in asynchronous profile collection 6312694 3 parallel testcases produced duplicate inlined messages 6313534 error when profiling shared objects compiled using previous release of compiler 6315352 Too many threads created by OpenMP runtime library 6316410 simpliest functions is either not inlined or compiler commentary is incorrect 6316913 mlib_ImageColorHSL2RGB() (v9a) performance degraded under venus_patch. (was CR 5023532) 6317408 binopt: assertion failed: at line 491 in file "../src/generic/infrastructure/dbg_gen_handler.cc" 6319734 incorrect constant propagation across omp parallel region 6322809 PostOptimizer with -ztext build fails on a program with protected symbols 6323803 compiler bug causes __*mul64 failure; svc.configd dies 6324196 Code fails at runtime when compiled for 64-bit 6324835 binopt'ed binary fails due to incorrect _ex_text0 value 6327191 build failure with indirect prefetch 6328734 cc 5.5, 5.6, 5.7: iropt hangs if a constant is set to a large value. 6333204 F90:-xparallel caused test to fail at runtime 6333695 invalid source code in cg 6335529 a simple test produces incorrect result when compiled with -xO4 under ve nus 6336188 C++ code looping in destructor of deque with -xO4 and above 6337239 OpenMP: libmtsk.so does not issue a warning message when it adjusts the number of threads 6337304 sgcc: -O3 -xautopar gives incorrect output 6343628 Regression compiling with CC -g -xarch=v8, compiler crashes 6346242 Bad code using -xO4 xarch=v8, bytes and doubles 6347478 Optimizer SEGVs with -g and nested OpenMP parallel regions 6352177 Fatal error in iropt - core dump compiling test omp_chr_ac_union Patch Installation Instructions: -------------------------------- For Solaris 8-9 releases, refer to the man pages for instructions on using 'patchadd' and 'patchrm' scripts provided with Solaris. Any other special or non-generic installation instructions should be described below as special instructions. The following example installs a patch to a standalone machine: example# patchadd /var/spool/patch/106326-01 The following example removes a patch from a standalone system: example# patchrm 104945-02 For additional examples please see the appropriate man pages. For Solaris 10 releases, Sun Studio 11 installer explicitly does a -G install, therefore the patches must be installed or removed with -G, also. example# patchadd -G /var/spool/patch/106326-01 example# patchrm -G 104945-02 Special Install Instructions: ----------------------------- none. README -- Last modified date: Thursday, November 16, 2006