Skip to content

Commit 321ce74

Browse files
authored
Disable GCC VTA for SWIG-generated file (#1253)
Fix sonic-net/sonic-buildimage#13775 -fvar-tracking-assignments Annotate assignments to user variables early in the compilation and attempt to carry the annotations over throughout the compilation all the way to the end, in an attempt to improve debug information while optimizing. By default, this flag is enabled. There is no reason to use this flag for auto-generated code.
1 parent 00a953c commit 321ce74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyext/pysairedis.i

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
%include "carrays.i"
44

55
%{
6+
#pragma GCC optimize("no-var-tracking-assignments")
7+
68
#include "pysairedis.h"
79

810
extern "C"{

0 commit comments

Comments
 (0)