xtensa: Avoid designated inits, for C++ compliance
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Thu, 25 Aug 2016 17:13:57 +0000 (19:13 +0200)
committerAndreas Arnez <arnez@linux.vnet.ibm.com>
Thu, 25 Aug 2016 17:13:57 +0000 (19:13 +0200)
commitae68ff9f280902d9cead28b90979e75dc046492e
tree3915210db15d009d505118495a98fc311d41f705
parent4811ccb48f0d24b9ae2ce37a06af575fbd83a55d
xtensa: Avoid designated inits, for C++ compliance

C++ does not officially support designators in initializer lists.  Thus
some compilers may issue errors when encountering them.  Modern versions
of GCC seem to allow them by default, as a GCC extension, even though
the GCC documentation explicitly states otherwise: "[...] This extension
is not implemented in GNU C++."  But some older GCC versions (like
4.4.7) did indeed emit an error instead, like this:

  .../gdb/xtensa-config.c:219: error: expected primary-expression before
       ‘.’ token

This patch removes the only such instance I've seen when building with
'--enable-targets=all'.

gdb/ChangeLog:

* xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Replace
designated initializer list by plain initializer list, for C++
compliance.
gdb/ChangeLog
gdb/xtensa-tdep.h
This page took 0.025946 seconds and 4 git commands to generate.