diff options
author | Tom de Vries <tdevries@suse.de> | 2022-08-05 17:31:43 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-08-05 17:31:43 +0200 |
commit | 99c902690493e35aad16b2083bad34cf79c366bf (patch) | |
tree | a243c354636d5542b715ebf6c0066a80b8690e14 /sim/d10v/interp.c | |
parent | 728d5439e3f5e812246237670f5d9dc9f0d97bae (diff) | |
download | fsf-binutils-gdb-99c902690493e35aad16b2083bad34cf79c366bf.zip fsf-binutils-gdb-99c902690493e35aad16b2083bad34cf79c366bf.tar.gz fsf-binutils-gdb-99c902690493e35aad16b2083bad34cf79c366bf.tar.bz2 |
[gdb/build] Fix build breaker in language.c with gcc 7.5.0
When building gdb on openSUSE Leap 15.3, using gcc 7.5.0, I run into:
...
gdb/language.c: In constructor ‘constexpr language_gdbarch::language_gdbarch()’:
gdb/language.c:921:8: error: use of deleted function \
‘language_arch_info::language_arch_info(const language_arch_info&)’
struct language_gdbarch
^~~~~~~~~~~~~~~~
In file included from gdbsupport/common-defs.h:104:0,
from gdb/defs.h:28,
from gdb/language.c:31:
gdb/language.h:95:28: note: declared here
DISABLE_COPY_AND_ASSIGN (language_arch_info);
^
include/ansidecl.h:342:3: note: in definition of macro \
‘DISABLE_COPY_AND_ASSIGN’
TYPE (const TYPE&) = delete; \
^~~~
gdb/language.c: In function ‘language_gdbarch* get_language_gdbarch(gdbarch*)’:
gdb/language.c:936:22: note: synthesized method ‘constexpr \
language_gdbarch::language_gdbarch()’ first required here
l = new struct language_gdbarch;
^~~~~~~~~~~~~~~~
...
This seems to be fixed by this change in the struct language_gdbarch
definition:
...
- struct language_arch_info arch_info[nr_languages] {};
+ struct language_arch_info arch_info[nr_languages];
...
Tested on x86_64-linux.
Diffstat (limited to 'sim/d10v/interp.c')
0 files changed, 0 insertions, 0 deletions