]> gcc.gnu.org Git - gcc.git/commit
Uninitialized padding in struct _dep.
authorAndrew Pinski <apinski@marvell.com>
Thu, 16 Jan 2020 02:07:28 +0000 (02:07 +0000)
committerAndrew Pinski <apinski@marvell.com>
Thu, 16 Jan 2020 12:30:22 +0000 (12:30 +0000)
commit7c6056d52ef7ea43b503b11a571b316d55f392c7
treee21d1b601f6292ebe8d2984def0c19c8b2e31556
parent55c7ffae7021367df36588d7991a1fb0f870e2c6
Uninitialized padding in struct _dep.

In struct _dep, there is an implicit padding of 4bits.  This
bit-field padding is uninitialized when init_dep_1 is being called.
This means we access uninitialized memory but never use it for
anything.  Adding an unused bit-field field and initializing it
in init_dep_1 will improve code generation also as we initialize
the whole 32bits now rather than just part of it.

ChangeLog:
* sched-int.h (_dep): Add unused bit-field field for the padding.
* sched-deps.c (init_dep_1): Init unused field.
gcc/ChangeLog
gcc/sched-deps.c
gcc/sched-int.h
This page took 0.057529 seconds and 5 git commands to generate.