]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[PowerPC] Refactor have_ initializers in rs6000-tdep.c
authorPedro Franco de Carvalho <pedromfc@linux.ibm.com>
Fri, 26 Oct 2018 12:37:54 +0000 (09:37 -0300)
committerPedro Franco de Carvalho <pedromfc@linux.ibm.com>
Fri, 26 Oct 2018 12:57:07 +0000 (09:57 -0300)
This patch refactors a series of initializers in rs6000_gdbarch_init
for clarity.  The have_fpu initializer is also changed to set the
variable to 0, like the other similar variables.  This doesn't affect
program behavior.

gdb/ChangeLog:
2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>

* rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
second initializer line for the have_* variables.  Initialize
have_fpu to 0 instead of 1.

gdb/ChangeLog
gdb/rs6000-tdep.c

index 3b299758b1630e4498d780025a601da5c8597457..d9b5f0adf00d8500f38ff85aff0a95b7f86b76dd 100644 (file)
@@ -1,3 +1,9 @@
+2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
+
+       * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
+       second initializer line for the have_* variables.  Initialize
+       have_fpu to 0 instead of 1.
+
 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
 
        * arch/ppc-linux-common.c (ppc_linux_match_description):
index c967bc748a69a9042d55a860a9f2cd8e7eb4a66a..db308d1ea32815ca8226378f55cc55f111f335f8 100644 (file)
@@ -5791,8 +5791,8 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   enum powerpc_long_double_abi long_double_abi = POWERPC_LONG_DOUBLE_AUTO;
   enum powerpc_vector_abi vector_abi = powerpc_vector_abi_global;
   enum powerpc_elf_abi elf_abi = POWERPC_ELF_AUTO;
-  int have_fpu = 1, have_spe = 0, have_mq = 0, have_altivec = 0, have_dfp = 0,
-      have_vsx = 0;
+  int have_fpu = 0, have_spe = 0, have_mq = 0, have_altivec = 0;
+  int have_dfp = 0, have_vsx = 0;
   int tdesc_wordsize = -1;
   const struct target_desc *tdesc = info.target_desc;
   struct tdesc_arch_data *tdesc_data = NULL;