+2018-02-13 Maciej W. Rozycki <macro@mips.com>
+
+ * wasm-module.c (wasm_scan_name_function_section): Rename
+ `index' local variable to `idx'.
+
2018-02-13 Alan Modra <amodra@gmail.com>
PR 22836
for (symcount = 0; p < end && symcount < tdata->symcount; symcount++)
{
- bfd_vma index;
+ bfd_vma idx;
bfd_vma len;
char *name;
asymbol *sym;
- READ_LEB128 (index, p, end);
+ READ_LEB128 (idx, p, end);
READ_LEB128 (len, p, end);
if (p + len < p || p + len > end)
sym = &symbols[symcount];
sym->the_bfd = abfd;
sym->name = name;
- sym->value = index;
+ sym->value = idx;
sym->flags = BSF_GLOBAL | BSF_FUNCTION;
sym->section = space_function_index;
sym->udata.p = NULL;
void *fsarg)
{
sec_ptr *numbered_sections = fsarg;
- int index = wasm_section_name_to_code (asect->name);
+ int idx = wasm_section_name_to_code (asect->name);
- if (index == 0)
+ if (idx == 0)
return;
- numbered_sections[index] = asect;
+ numbered_sections[idx] = asect;
}
struct compute_section_arg
void *fsarg)
{
struct compute_section_arg *fs = fsarg;
- int index;
+ int idx;
if (fs->failed)
return;
- index = wasm_section_name_to_code (asect->name);
+ idx = wasm_section_name_to_code (asect->name);
- if (index != 0)
+ if (idx != 0)
return;
if (CONST_STRNEQ (asect->name, WASM_SECTION_PREFIX))
+2018-02-13 Maciej W. Rozycki <macro@mips.com>
+
+ * wasm32-dis.c (print_insn_wasm32): Rename `index' local
+ variable to `function_index'.
+
2018-02-12 Henry Wong <henry@stuffedcow.net>
* mips-opc.c (mips_builtin_opcodes): Correct "sigrie" encoding.
long flags = 0;
long offset = 0;
long depth = 0;
- long index = 0;
+ long function_index = 0;
long target_count = 0;
long block_type = 0;
int len = 1;
break;
case wasm_call:
- index = wasm_read_leb128
+ function_index = wasm_read_leb128
(pc + len, info, &error, &bytes_read, FALSE);
if (error)
return -1;
len += bytes_read;
prin (stream, " ");
private_data->section_prefix = ".space.function_index";
- (*info->print_address_func) ((bfd_vma) index, info);
+ (*info->print_address_func) ((bfd_vma) function_index, info);
private_data->section_prefix = NULL;
break;