[openib-general] [PATCH] Opensm - ignore strict-aliasing warning

Yael Kalka yael at mellanox.co.il
Tue Sep 20 00:48:07 PDT 2005


Hi Hal,

Attached is a patch forcing the compiler not to do strict-aliasing optimization on the opensm code, due to strict-aliasing warnings in our code.

Thanks,
Yael

Signed-off-by:  Yael Kalka <yael at mellanox.co.il>

Index: opensm/Makefile.am
===================================================================
--- opensm/Makefile.am  (revision 3487)
+++ opensm/Makefile.am  (working copy)
@@ -64,7 +64,7 @@ opensm_SOURCES = main.c osm_db_files.c o
                 osm_ucast_mgr.c osm_ucast_updn.c \
                 osm_vl15intf.c osm_vl_arb_rcv.c\
                 osm_vl_arb_rcv_ctrl.c st.c
-opensm_CFLAGS = -Wall $(OSMV_CFLAGS) -DVENDOR_RMPP_SUPPORT $(DBGFLAGS) -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1
+opensm_CFLAGS = -Wall $(OSMV_CFLAGS) -fno-strict-aliasing -DVENDOR_RMPP_SUPPORT $(DBGFLAGS) -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1
 opensm_CXXFLAGS = -Wall $(OSMV_CFLAGS) -DVENDOR_RMPP_SUPPORT $(DBGFLAGS) -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1
 
 # for linking with the simulator client library we have to use g++:




More information about the general mailing list