diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2015-01-16 06:39:47 +0100 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2015-01-16 06:39:47 +0100 |
commit | 95761b2d9c3c77933cac233b93eff371b3e52859 (patch) | |
tree | 7e0439262174126a5e3ceed48e3188837c80157e /gdb/hppa-tdep.c | |
parent | f5818f7d80adb707a35f04049c841b230b36b824 (diff) | |
download | gdb-95761b2d9c3c77933cac233b93eff371b3e52859.zip gdb-95761b2d9c3c77933cac233b93eff371b3e52859.tar.gz gdb-95761b2d9c3c77933cac233b93eff371b3e52859.tar.bz2 |
Fix gcc-5 compilation
With gcc-5.0 pre-release one gets:
hppa-tdep.c: In function ‘inst_saves_gr’:
hppa-tdep.c:1406:30: error: comparison of constant ‘9’ with boolean expression is always false [-Werror=bool-compare]
I find the misplaced parentheses obvious.
gdb/ChangeLog
2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix gcc-5 compilation.
* hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r-- | gdb/hppa-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 29e297b..036bc16 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -1403,7 +1403,7 @@ inst_saves_gr (unsigned long inst) if ((inst >> 26) == 0x19 || (inst >> 26) == 0x18 || ((inst >> 26) == 0x3 && (((inst >> 6) & 0xf) == 0x8 - || (inst >> 6) & 0xf) == 0x9)) + || ((inst >> 6) & 0xf) == 0x9))) return hppa_extract_5R_store (inst); return 0; |