projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca84f39
)
Fortran: Revert explicit memcpy in gfc_get_typebound_proc
author
Bernhard Reutner-Fischer
<aldot@gcc.gnu.org>
Sun, 31 Oct 2021 22:21:36 +0000
(23:21 +0100)
committer
Bernhard Reutner-Fischer
<aldot@gcc.gnu.org>
Sun, 31 Oct 2021 22:30:19 +0000
(23:30 +0100)
This reverts the hunk to gfc_get_typebound_proc from
7883a7f07c1ad9c8aaccc5bbd96e0ae1fa230c89
gcc/fortran/ChangeLog:
* symbol.c (gfc_get_typebound_proc): Revert memcpy.
gcc/fortran/symbol.c
patch
|
blob
|
history
diff --git
a/gcc/fortran/symbol.c
b/gcc/fortran/symbol.c
index
34c0ba2
..
d6f53f4
100644
(file)
--- a/
gcc/fortran/symbol.c
+++ b/
gcc/fortran/symbol.c
@@
-5073,7
+5073,7
@@
gfc_get_typebound_proc (gfc_typebound_proc *tb0)
result = XCNEW (gfc_typebound_proc);
if (tb0)
-
memcpy (result, tb0, sizeof (gfc_typebound_proc))
;
+
*result = *tb0
;
result->error = 1;
latest_undo_chgset->tbps.safe_push (result);