On Thu, Feb 9, 2017 at 8:59 AM, Alexei Starovoitov <[email protected]> wrote: > On Thu, Feb 9, 2017 at 8:43 AM, William Tu via iovisor-dev > <[email protected]> wrote: >> >> $(CLANG) \ >> -D__KERNEL__ -D__ASM_SYSREG_H -Wno-unused-value -Wno-pointer-sign \ >> -Wno-compare-distinct-pointer-types \ >> -Wno-gnu-variable-sized-type-not-at-end \ >> -Wno-tautological-compare \ >> -O2 -emit-llvm -g -c $< -o -| $(LLC) -O0 -march=bpf -filetype=obj -o >> $@ > > -O0 ?! > yeah. that should not work. > always use -O2 for llvm or don't specify it at all and keep -O2 for clang.
oh, the code I shared doesn't specify it at all. "-O0" is just something I'm playing around to see any diff. _______________________________________________ iovisor-dev mailing list [email protected] https://lists.iovisor.org/mailman/listinfo/iovisor-dev
