aboutsummaryrefslogtreecommitdiff
path: root/makefile.vms
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2024-06-25 07:59:13 +0200
committerTom de Vries <tdevries@suse.de>2024-06-25 07:59:13 +0200
commitbd54c881cd14af32f2347dab5ce51823ed631a88 (patch)
tree9159166ec6d1adbd164c4a0cf4e10dd5786d430b /makefile.vms
parent218bb9dcdbb8ee5a15977dc1ffe7ed7422803368 (diff)
downloadfsf-binutils-gdb-bd54c881cd14af32f2347dab5ce51823ed631a88.zip
fsf-binutils-gdb-bd54c881cd14af32f2347dab5ce51823ed631a88.tar.gz
fsf-binutils-gdb-bd54c881cd14af32f2347dab5ce51823ed631a88.tar.bz2
[gdb/symtab] Remove dead code in parse_macro_definition
In parse_macro_definition, there's a loop: ... for (p = body; *p; p++) if (*p == ' ' || *p == '(') break; ... whose post-condition is: ... gdb_assert (*p == ' ' || *p == '(' || *p == '\0'); ... Consequently, in the following: ... if (*p == ' ' || *p == '\0') <BODY1> else if (*p == '(') <BODY2> else <BODY3> ... BODY3 is dead code. Remove it, and get rid of unnecessary indentation by using an early-exit: .... if (*p == ' ' || *p == '\0') { <BODY1> return; } gdb_assert (*p == '('); <BODY2> ... Tested on aarch64-linux. Reviewed-By: Alexandra Petlanova Hajkova <ahajkova@redhat.com> Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'makefile.vms')
0 files changed, 0 insertions, 0 deletions