aboutsummaryrefslogtreecommitdiff
path: root/gdb/doublest.c
diff options
context:
space:
mode:
authorAndreas Arnez <arnez@linux.vnet.ibm.com>2016-08-25 19:13:57 +0200
committerAndreas Arnez <arnez@linux.vnet.ibm.com>2016-08-25 19:13:57 +0200
commitae68ff9f280902d9cead28b90979e75dc046492e (patch)
tree3915210db15d009d505118495a98fc311d41f705 /gdb/doublest.c
parent4811ccb48f0d24b9ae2ce37a06af575fbd83a55d (diff)
downloadgdb-ae68ff9f280902d9cead28b90979e75dc046492e.zip
gdb-ae68ff9f280902d9cead28b90979e75dc046492e.tar.gz
gdb-ae68ff9f280902d9cead28b90979e75dc046492e.tar.bz2
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.
Diffstat (limited to 'gdb/doublest.c')
0 files changed, 0 insertions, 0 deletions