From 097607c782746ae0130f7e128ae44d5c4d146edc Mon Sep 17 00:00:00 2001 From: Trevor Norris Date: Tue, 10 Feb 2015 13:10:05 -0700 Subject: [PATCH] build: fix use of strict aliasing The -fno-strict-aliasing flag was added to fix compilation warnings when building Node.js with GCC <= 4.4 PR: #25141 Reviewed-By: Julien Gilli PR-URL: https://github.com/joyent/node/pull/25475 --- deps/uv/uv.gyp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deps/uv/uv.gyp b/deps/uv/uv.gyp index 7173a827a37..89c383fce8a 100644 --- a/deps/uv/uv.gyp +++ b/deps/uv/uv.gyp @@ -64,6 +64,12 @@ 'src/version.c' ], 'conditions': [ + [ 'gcc_version<=44', { + # GCC versions <= 4.4 do not handle the aliasing in the queue + # implementation, so disable aliasing on these platforms + # to avoid subtle bugs + 'cflags': [ '-fno-strict-aliasing' ], + }], [ 'OS=="win"', { 'defines': [ '_WIN32_WINNT=0x0600',