|
|
132810 |
commit cbf3b6e6ac7d26d6667b306b9d8677678624bec8
|
|
|
132810 |
Author: Frank Ch. Eigler <fche@redhat.com>
|
|
|
132810 |
Date: Thu Nov 15 22:02:18 2018 -0500
|
|
|
132810 |
|
|
|
132810 |
bpf-translate.cxx: quiet a compiler warning
|
|
|
132810 |
|
|
|
132810 |
It's a false positive with rawhide gcc, but easy to quiet anyway.
|
|
|
132810 |
|
|
|
132810 |
diff --git a/bpf-translate.cxx b/bpf-translate.cxx
|
|
|
132810 |
index b382a2e..78a5a8d 100644
|
|
|
132810 |
--- a/bpf-translate.cxx
|
|
|
132810 |
+++ b/bpf-translate.cxx
|
|
|
132810 |
@@ -1150,6 +1150,7 @@ bpf_unparser::emit_asm_opcode (const asm_stmt &stmt,
|
|
|
132810 |
stmt.fallthrough.c_str()), stmt.tok);
|
|
|
132810 |
block *target = label_map[stmt.jmp_target];
|
|
|
132810 |
block *fallthrough = label_map[stmt.fallthrough];
|
|
|
132810 |
+ c = EQ; // defeat compiler warning about uninitialized c
|
|
|
132810 |
this_prog.mk_jcond(this_ins, c, v_dest, v_src1, target, fallthrough);
|
|
|
132810 |
}
|
|
|
132810 |
else // regular opcode
|
|
|
132810 |
|
|
|
132810 |
commit e6227e5df0851bea0e5a94b17fe0a82c280ed600
|
|
|
132810 |
Author: Serhei Makarov <smakarov@redhat.com>
|
|
|
132810 |
Date: Fri Nov 16 12:12:07 2018 -0500
|
|
|
132810 |
|
|
|
132810 |
bpf-translate.cxx: don't clobber any earlier value of c
|
|
|
132810 |
|
|
|
132810 |
diff --git a/bpf-translate.cxx b/bpf-translate.cxx
|
|
|
132810 |
index 78a5a8d..92f0ea4 100644
|
|
|
132810 |
--- a/bpf-translate.cxx
|
|
|
132810 |
+++ b/bpf-translate.cxx
|
|
|
132810 |
@@ -1027,7 +1027,8 @@ bpf_unparser::emit_asm_opcode (const asm_stmt &stmt,
|
|
|
132810 |
throw SEMANTIC_ERROR (_("invalid bpf code"), stmt.tok);
|
|
|
132810 |
|
|
|
132810 |
bool r_dest = false, r_src0 = false, r_src1 = false, i_src1 = false;
|
|
|
132810 |
- bool op_jmp = false, op_jcond = false; condition c;
|
|
|
132810 |
+ bool op_jmp = false, op_jcond = false;
|
|
|
132810 |
+ condition c = EQ; // <- quiet a compiler warning about uninitialized c
|
|
|
132810 |
switch (BPF_CLASS (stmt.code))
|
|
|
132810 |
{
|
|
|
132810 |
case BPF_LDX:
|
|
|
132810 |
@@ -1150,7 +1151,6 @@ bpf_unparser::emit_asm_opcode (const asm_stmt &stmt,
|
|
|
132810 |
stmt.fallthrough.c_str()), stmt.tok);
|
|
|
132810 |
block *target = label_map[stmt.jmp_target];
|
|
|
132810 |
block *fallthrough = label_map[stmt.fallthrough];
|
|
|
132810 |
- c = EQ; // defeat compiler warning about uninitialized c
|
|
|
132810 |
this_prog.mk_jcond(this_ins, c, v_dest, v_src1, target, fallthrough);
|
|
|
132810 |
}
|
|
|
132810 |
else // regular opcode
|