aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaius Mulley <gaiusmod2@gmail.com>2023-10-24 21:13:01 +0100
committerGaius Mulley <gaiusmod2@gmail.com>2023-10-24 21:13:01 +0100
commit23ddfa1bac02499327e77e40a9930ce4a4e635a1 (patch)
tree6fe0262a9690ba5c0140b36337052b3bb3affd3f
parent1fa7bcfdaad2ab611934e8eebdcb3956c40080fb (diff)
downloadgcc-23ddfa1bac02499327e77e40a9930ce4a4e635a1.zip
gcc-23ddfa1bac02499327e77e40a9930ce4a4e635a1.tar.gz
gcc-23ddfa1bac02499327e77e40a9930ce4a4e635a1.tar.bz2
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>
-rw-r--r--gcc/m2/gm2-libs/M2Dependent.mod3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/m2/gm2-libs/M2Dependent.mod b/gcc/m2/gm2-libs/M2Dependent.mod
index 47bbf13..911113f 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 ;