Fix gcc-5 compilation
authorJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 16 Jan 2015 05:39:47 +0000 (06:39 +0100)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 16 Jan 2015 05:39:47 +0000 (06:39 +0100)
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.

gdb/ChangeLog
gdb/hppa-tdep.c

index 37955d4b398e72ee726d6b3f0dd6f07ee7cd22b8..85c4a6d71d34a0d7fac9fc6807fd4f40afa13837 100644 (file)
@@ -1,3 +1,8 @@
+2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix gcc-5 compilation.
+       * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
+
 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
 
        * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
index 29e297bf7978ca2f8e8525b575dd5cde59e21df8..036bc16a1096024d53226178a328044e844fe88b 100644 (file)
@@ -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;
This page took 0.027367 seconds and 4 git commands to generate.