Fill up padding in lto_section struct.
gcc/ChangeLog: PR lto/98912 * lto-streamer-out.c (produce_lto_section): Fill up missing padding. * lto-streamer.h (struct lto_section): Add _padding field.
This commit is contained in:
parent
e8c87bc07b
commit
84110515b9
@ -2670,7 +2670,7 @@ produce_lto_section ()
|
||||
|
||||
bool slim_object = flag_generate_lto && !flag_fat_lto_objects;
|
||||
lto_section s
|
||||
= { LTO_major_version, LTO_minor_version, slim_object, 0 };
|
||||
= { LTO_major_version, LTO_minor_version, slim_object, 0, 0 };
|
||||
s.set_compression (compression);
|
||||
lto_write_data (&s, sizeof s);
|
||||
lto_end_section ();
|
||||
|
@ -369,6 +369,7 @@ struct lto_section
|
||||
int16_t major_version;
|
||||
int16_t minor_version;
|
||||
unsigned char slim_object;
|
||||
unsigned char _padding;
|
||||
|
||||
/* Flags is a private field that is not defined publicly. */
|
||||
uint16_t flags;
|
||||
|
Loading…
x
Reference in New Issue
Block a user