From: nobu@... Date: 2015-12-09T20:15:03+00:00 Subject: [ruby-core:72005] [Ruby trunk - Misc #11795] [Closed] [PATCH] get rid of breaking strict alias for XL compiler Issue #11795 has been updated by Nobuyoshi Nakada. Description updated Status changed from Open to Closed gcc/clang optimize away that `memcpy`, at least. ---------------------------------------- Misc #11795: [PATCH] get rid of breaking strict alias for XL compiler https://bugs.ruby-lang.org/issues/11795#change-55415 * Author: Zarko Todorovski * Status: Closed * 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 ~~~c #ifdef __ibmxl__ #define SET_NTYPE(node, ntype) {int value = ntype; memcpy(&((node)->u.base.type), &value, sizeof((node)->u.base.type));} #else #define SET_NTYPE(node, ntype) (node)->u.base.type = (ntype) #endif ~~~ Not sure whether it affects other compilers and it might be safer to only do this with the XL compiler. ---Files-------------------------------- ruby_ibmxl.patch (802 Bytes) -- https://bugs.ruby-lang.org/