]> code.ossystems Code Review - openembedded-core.git/commit
valgrind: Make local functions static to avoid assembler error
authorRandy MacLeod <Randy.MacLeod@windriver.com>
Mon, 22 Oct 2018 04:21:16 +0000 (00:21 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 22 Oct 2018 06:05:13 +0000 (07:05 +0100)
commit5fface331c46b809c10b4f3d65904534d6933896
tree59e2b1a7124a06fbd7b8108f6792ada0c49db132
parentd6b737a31a8842cdc770b05e28503c81a691d10d
valgrind: Make local functions static to avoid assembler error

Avoid mips32 x-compiler warnings such as:

| ../../../valgrind-3.14.0/helgrind/tests/annotate_hbefore.c:360:6: warning: no previous prototype for 'do_signal' [-Wmissing-prototypes]
|  void do_signal ( UWord* w )
|       ^~~~~~~~~

by making functions and global variables that are file scope be static
and more importantly also avoid an assembler error:

/tmp/cce22iiw.s: Assembler messages:
/tmp/cce22iiw.s:446: Error: symbol `exit_0' is already defined
/tmp/cce22iiw.s:448: Error: symbol `exit' is already defined
/tmp/cce22iiw.s:915: Error: symbol `exit_0' is already defined
/tmp/cce22iiw.s:917: Error: symbol `exit' is already defined

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/valgrind/valgrind/0001-Make-local-functions-static-to-avoid-assembler-error.patch [new file with mode: 0644]
meta/recipes-devtools/valgrind/valgrind_3.14.0.bb