gcc-4 -Og false positive "may be used uninitialised"
binutils/ * readelf.c (dump_section_as_strings) Avoid false positive "may be used uninitialised". gas/ * config/tc-arm.c (move_or_literal_pool): Avoid false positive "may be used uninitialised". (opcode_lookup): Likewise.
This commit is contained in:
parent
85d14aaeb7
commit
f3da8a96ee
4 changed files with 16 additions and 7 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2020-08-24 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* readelf.c (dump_section_as_strings) Avoid false positive
|
||||||
|
"may be used uninitialised".
|
||||||
|
|
||||||
2020-08-22 H.J. Lu <hongjiu.lu@intel.com>
|
2020-08-22 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
PR ld/26382
|
PR ld/26382
|
||||||
|
|
|
@ -13968,7 +13968,7 @@ dump_section_as_strings (Elf_Internal_Shdr * section, Filedata * filedata)
|
||||||
|
|
||||||
if (maxlen > 0)
|
if (maxlen > 0)
|
||||||
{
|
{
|
||||||
char c;
|
char c = 0;
|
||||||
|
|
||||||
while (maxlen)
|
while (maxlen)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
2020-08-24 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* config/tc-arm.c (move_or_literal_pool): Avoid false positive
|
||||||
|
"may be used uninitialised".
|
||||||
|
(opcode_lookup): Likewise.
|
||||||
|
|
||||||
2020-08-24 Alan Modra <amodra@gmail.com>
|
2020-08-24 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
PR 26526
|
PR 26526
|
||||||
|
|
|
@ -8898,15 +8898,12 @@ move_or_literal_pool (int i, enum lit_type t, bfd_boolean mode_3)
|
||||||
/* Check if on thumb2 it can be done with a mov.w, mvn or
|
/* Check if on thumb2 it can be done with a mov.w, mvn or
|
||||||
movw instruction. */
|
movw instruction. */
|
||||||
unsigned int newimm;
|
unsigned int newimm;
|
||||||
bfd_boolean isNegated;
|
bfd_boolean isNegated = FALSE;
|
||||||
|
|
||||||
newimm = encode_thumb32_immediate (v);
|
newimm = encode_thumb32_immediate (v);
|
||||||
if (newimm != (unsigned int) FAIL)
|
if (newimm == (unsigned int) FAIL)
|
||||||
isNegated = FALSE;
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
newimm = encode_thumb32_immediate (~v);
|
newimm = encode_thumb32_immediate (~v);
|
||||||
if (newimm != (unsigned int) FAIL)
|
|
||||||
isNegated = TRUE;
|
isNegated = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22622,6 +22619,7 @@ opcode_lookup (char **str)
|
||||||
/* Look for unaffixed or special-case affixed mnemonic. */
|
/* Look for unaffixed or special-case affixed mnemonic. */
|
||||||
opcode = (const struct asm_opcode *) str_hash_find_n (arm_ops_hsh, base,
|
opcode = (const struct asm_opcode *) str_hash_find_n (arm_ops_hsh, base,
|
||||||
end - base);
|
end - base);
|
||||||
|
cond = NULL;
|
||||||
if (opcode)
|
if (opcode)
|
||||||
{
|
{
|
||||||
/* step U */
|
/* step U */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue