[CRIU] [crtools-bot] zdtm: Disable strict aliasing optimization

Cyrill Gorcunov gorcunov at openvz.org
Mon Jan 30 03:47:15 EST 2012


The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit 3a1de34132ea1ecdfd9ee599d161423cf8bf6295
Author: Cyrill Gorcunov <gorcunov at openvz.org>
Date:   Sat Jan 28 11:44:38 2012 +0400

    zdtm: Disable strict aliasing optimization
    
    Just disable it for a while, otherwise we get
    in test/zdtm/live/streaming/netlink00.c
    
    cc1: warnings being treated as errors
    netlink00.c: In function ‘form_request_del’:
    netlink00.c:311: error: dereferencing pointer ‘rtap’ does break strict-aliasing rules
    netlink00.c:312: error: dereferencing pointer ‘rtap’ does break strict-aliasing rules
    netlink00.c:310: note: initialized from here
    netlink00.c: In function ‘form_request_add’:
    netlink00.c:271: error: dereferencing pointer ‘rtap’ does break strict-aliasing rules
    netlink00.c:272: error: dereferencing pointer ‘rtap’ does break strict-aliasing rules
    netlink00.c:270: note: initialized from here
    
    Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 test/zdtm/live/streaming/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/test/zdtm/live/streaming/Makefile b/test/zdtm/live/streaming/Makefile
index 0bda326..7aeced5 100644
--- a/test/zdtm/live/streaming/Makefile
+++ b/test/zdtm/live/streaming/Makefile
@@ -1,7 +1,7 @@
 LIBDIR	= ../../lib
 LIB	= $(LIBDIR)/libzdtmtst.a
 override CPPFLAGS += -I$(LIBDIR)
-CFLAGS	= -g -O2 -Wall -Werror
+CFLAGS	= -g -O2 -Wall -Werror -fno-strict-aliasing
 
 TST_NOFILE	=	\
 		pipe_loop00	\


More information about the CRIU mailing list