diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2021-03-29 23:59:49 -0700 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2021-04-03 08:52:18 -0700 |
commit | 30c676134eb8f956853a55023d694062062d40d7 (patch) | |
tree | bc11339aeef8f335eac8162c3b4706e8bef22811 /target/xtensa | |
parent | 84317d57e8c61ff68eeaa1f2de93472fa930a6a4 (diff) |
target/xtensa: make xtensa_modules static on import
xtensa_modules variable defined in each xtensa-modules.c.inc is only
used locally by the including file. Make it static.
Reported-by: Yury Gribov <tetra2005@gmail.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'target/xtensa')
-rwxr-xr-x | target/xtensa/import_core.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/xtensa/import_core.sh b/target/xtensa/import_core.sh index 1120a4a2a5..396b264be9 100755 --- a/target/xtensa/import_core.sh +++ b/target/xtensa/import_core.sh @@ -35,6 +35,7 @@ tar -xf "$OVERLAY" -O binutils/xtensa-modules.c | \ -e '/^#include "ansidecl.h"/d' \ -e '/^Slot_[a-zA-Z0-9_]\+_decode (const xtensa_insnbuf insn)/,/^}/s/^ return 0;$/ return XTENSA_UNDEFINED;/' \ -e 's/#include <xtensa-isa.h>/#include "xtensa-isa.h"/' \ + -e 's/^\(xtensa_isa_internal xtensa_modules\)/static \1/' \ > "$TARGET"/xtensa-modules.c.inc cat <<EOF > "${TARGET}.c" |