projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
706adc3
)
gold won't build with gcc-9
author
Alan Modra
<amodra@gmail.com>
Wed, 5 Dec 2018 01:49:34 +0000
(12:19 +1030)
committer
Alan Modra
<amodra@gmail.com>
Wed, 5 Dec 2018 04:02:13 +0000
(14:32 +1030)
* symtab.h (Symbol::Symbol): Avoid -Wclass-memaccess warning.
gold/ChangeLog
patch
|
blob
|
history
gold/symtab.h
patch
|
blob
|
history
diff --git
a/gold/ChangeLog
b/gold/ChangeLog
index f0d3ef924351725069ea6f3fba284589f42036e0..2379536e702be7578f711e2f7f979609ad6f5a6f 100644
(file)
--- a/
gold/ChangeLog
+++ b/
gold/ChangeLog
@@
-1,3
+1,7
@@
+2018-12-05 Alan Modra <amodra@gmail.com>
+
+ * symtab.h (Symbol::Symbol): Avoid -Wclass-memaccess warning.
+
2018-12-03 Alexey Neyman <stilor@att.net>
PR gold/23594
diff --git
a/gold/symtab.h
b/gold/symtab.h
index 089e156b452c82b1c049dfc846076cea6e530ea6..16a244855daecdff7cd942a9c0264a6e8671225f 100644
(file)
--- a/
gold/symtab.h
+++ b/
gold/symtab.h
@@
-914,7
+914,7
@@
class Symbol
// Instances of this class should always be created at a specific
// size.
Symbol()
- { memset(
this
, 0, sizeof *this); }
+ { memset(
static_cast<void*>(this)
, 0, sizeof *this); }
// Initialize the general fields.
void