]> git.ipfire.org Git - thirdparty/gcc.git/commit
cobol: Eliminate padding bytes from cbl_declarative_t. [PR119377]
authorRobert Dubner <rdubner@symas.com>
Sun, 11 May 2025 17:43:32 +0000 (13:43 -0400)
committerRobert Dubner <rdubner@symas.com>
Tue, 29 Jul 2025 16:06:38 +0000 (12:06 -0400)
commitd6da95bc4ce45e57ec47016275a2a9a12c8ef0ce
treea5fe9407196dc914b27de8612ede0f06b0f2905d
parent5a1de4de9a6dff8b89d74ac00dab6a2be7fb2b2f
cobol: Eliminate padding bytes from cbl_declarative_t. [PR119377]

By changing the type of a variable in the cbl_declarative_t structure from "bool"
to "uint32_t", three uninitialized padding bytes were turned into initialized
bytes.  This eliminates the valgrind error caused by those uninitialized values.

This is an interim fix, which expediently eliminates the valgrind problem. The
underlying design flaw, which involves turning a host-side C++ structure into
a run-time data block, is slated for complete replacement in the next few weeks.

libgcobol/ChangeLog:

PR cobol/119377
* common-defs.h: (struct cbl_declaratives_t): Change "bool global" to
"uint32_t global".

(cherry picked from commit d7d24f9cc55d5cf0a70a984d4e63e8a307710d9e)
libgcobol/common-defs.h