public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-4896] modula2: gcc/m2/gm2-libs/M2Dependent.mod initialize all record fields.
@ 2023-10-24 20:14 Gaius Mulley
0 siblings, 0 replies; only message in thread
From: Gaius Mulley @ 2023-10-24 20:14 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:23ddfa1bac02499327e77e40a9930ce4a4e635a1
commit r14-4896-g23ddfa1bac02499327e77e40a9930ce4a4e635a1
Author: Gaius Mulley <gaiusmod2@gmail.com>
Date: Tue Oct 24 21:13:01 2023 +0100
modula2: gcc/m2/gm2-libs/M2Dependent.mod initialize all record fields.
Initialize all sub fields within mptr. Valgrind detected
uninitialized fields in M2Dependent.mod. CreateModule must ensure all
sub fields are initialized.
gcc/m2/ChangeLog:
* gm2-libs/M2Dependent.mod (CreateModule): Initialize all
dependency fields for DependencyList.
Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
Diff:
---
gcc/m2/gm2-libs/M2Dependent.mod | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gcc/m2/gm2-libs/M2Dependent.mod b/gcc/m2/gm2-libs/M2Dependent.mod
index 47bbf13aed4..911113fc00b 100644
--- a/gcc/m2/gm2-libs/M2Dependent.mod
+++ b/gcc/m2/gm2-libs/M2Dependent.mod
@@ -91,6 +91,9 @@ BEGIN
mptr^.init := init ;
mptr^.fini := fini ;
mptr^.dependency.proc := dependencies ;
+ mptr^.dependency.forced := FALSE ;
+ mptr^.dependency.forc := FALSE ;
+ mptr^.dependency.appl := FALSE ;
mptr^.dependency.state := unregistered ;
mptr^.prev := NIL ;
mptr^.next := NIL ;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-10-24 20:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-24 20:14 [gcc r14-4896] modula2: gcc/m2/gm2-libs/M2Dependent.mod initialize all record fields Gaius Mulley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).