From: Joseph Jones Date: 2015-12-17T21:13:33-07:00 Subject: [ruby-core:72351] [Ruby trunk - Misc #11795] [Open] [PATCH] get rid of breaking strict alias for XL compiler --567387ed_69e373_16c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Joseph Jones liked your message with Boxer. On December 9, 2015 at 07:29:= 52 MST, zarko=40ca.ibm.com wrote:Issue =2311795 has been reported by Zark= o Todorovski.----------------------------------------Misc =2311795: =5BPA= TCH=5D get rid of breaking strict alias for XL compilerhttps://bugs.ruby-= lang.org/issues/11795* Author: Zarko Todorovski* Status: Open* Priority: = Normal* Assignee: ----------------------------------------Related to bug = 11790. Thank you for adding the changeset. It may be better to add a IBM = XL specific instruction for this:in line 70 of regparse.h=23ifdef =5F=5Fi= bmxl=5F=5F =23define SET=5FNTYPE(node, ntype) =7Bint value =3D ntype; mem= cpy(&((node)->u.base.type), &value, sizeof((node)->u.base.type));=7D =23e= lse =23define SET=5FNTYPE(node, ntype) (node)->u.base.type =3D (ntype) =23= endifNot sure whether it affects other compilers and it might be safer to= only do this with the XL compiler. ---=46iles---------------------------= -----ruby=5Fibmxl.patch (802 Bytes)-- https://bugs.ruby-lang.org/ --567387ed_69e373_16c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Joseph Jones liked your message with Boxer.


= On December 9, 2015 at 07:29:52 MST, zarko=40ca.ibm.com wrote:
Issue =2311795 has been reported= by Zarko Todorovski.

---------------------------------------= -
Misc =2311795: =5BPATCH=5D get rid of breaking strict alias for XL= compiler
https://bugs.ruby-lang.org/issues/11795

* Autho= r: Zarko Todorovski
* Status: Open
* Priority: Normal
* A= ssignee:
----------------------------------------
Related to b= ug 11790. Thank you for adding the changeset.

It may be bette= r to add a IBM XL specific instruction for this:
in line 70 of regpa= rse.h

=23ifdef =5F=5Fibmxl=5F=5F
=23define SET=5FNTYPE(n= ode, ntype) =7Bint value =3D ntype; memcpy(&((node)->u.base.type), &valu= e, sizeof((node)->u.base.type));=7D
=23else
=23define SET=5FN= TYPE(node, ntype) (node)->u.base.type =3D (ntype)
=23endif
<= br />Not sure whether it affects other compilers and it might be safer to= only do this with the XL compiler.



---=46iles---= -----------------------------
ruby=5Fibmxl.patch (802 Bytes)

--
https://bugs.ruby-lang.org/
--567387ed_69e373_16c--