do not opttimize graph node functions in debug builds 80/16280/2
authorDamjan Marion <damarion@cisco.com>
Thu, 29 Nov 2018 13:40:30 +0000 (14:40 +0100)
committerDamjan Marion <dmarion@me.com>
Thu, 29 Nov 2018 21:55:10 +0000 (21:55 +0000)
Change-Id: I5b4cd419d317381a06e7e6d703373959f4bbd97b
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/vppinfra/cpu.h

index 0ca9edb..6dc0a23 100644 (file)
@@ -33,7 +33,7 @@
 #endif
 
 
-#if __GNUC__ > 4  && !__clang__
+#if __GNUC__ > 4  && !__clang__ && CLIB_DEBUG == 0
 #define CLIB_CPU_OPTIMIZED __attribute__ ((optimize ("O3")))
 #else
 #define CLIB_CPU_OPTIMIZED