ruby-changes:49229
From: ngoto <ko1@a...>
Date: Wed, 20 Dec 2017 01:55:13 +0900 (JST)
Subject: [ruby-changes:49229] ngoto:r61344 (trunk): Workaround for optimization bug of Oracle Developer Studio 12.4-12.6
ngoto 2017-12-20 01:55:08 +0900 (Wed, 20 Dec 2017) New Revision: 61344 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61344 Log: Workaround for optimization bug of Oracle Developer Studio 12.4-12.6 * pack.c (pack_unpack, AVOID_CC_BUG): Very ugly workaround for optimization bug of Oracle Developer Studio (Oracle Solaris Studio) 12.4, 12.5, and 12.6 on Solaris 10 with -xO4 optimization option. [Bug #11684] [ruby-core:84351] Modified files: trunk/pack.c Index: pack.c =================================================================== --- pack.c (revision 61343) +++ pack.c (revision 61344) @@ -1011,10 +1011,11 @@ hex2num(char c) https://github.com/ruby/ruby/blob/trunk/pack.c#L1011 rb_ary_store(ary, RARRAY_LEN(ary)+tmp_len-1, Qnil); \ } while (0) -/* Workaround for Oracle Solaris Studio 12.4/12.5 C compiler optimization bug +/* Workaround for Oracle Developer Studio (Oracle Solaris Studio) + * 12.4/12.5/12.6 C compiler optimization bug * with "-xO4" optimization option. */ -#if defined(__SUNPRO_C) && 0x5130 <= __SUNPRO_C && __SUNPRO_C <= 0x5140 +#if defined(__SUNPRO_C) && 0x5130 <= __SUNPRO_C && __SUNPRO_C <= 0x5150 # define AVOID_CC_BUG volatile #else # define AVOID_CC_BUG -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/