]> git.ipfire.org Git - thirdparty/gcc.git/commit
Mitigation for PR target/88469 on arm-based systems bootstrapping with gcc-6/7/8
authorrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 Jan 2019 16:06:34 +0000 (16:06 +0000)
committerrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 Jan 2019 16:06:34 +0000 (16:06 +0000)
commit349734df3faf47b51ccd9c440ab13e867ee588b5
treedfeb8cb4562d124b0e15d2b56ceeb02d1c659638
parent4bc4fd900c1f28a2986bfa3514f55ae524f8bc33
Mitigation for PR target/88469 on arm-based systems bootstrapping with gcc-6/7/8

This patch, for gcc 8/9 is a mitigation patch for PR target/88469
where gcc-6/7/8 miscompile a structure whose alignment is dominated by
a 64-bit bitfield member.  Since the PCS rules for such a type must
ignore any overalignment of the base type we cannot address this by
simply adding a larger alignment to the class.  We can, however, force
the alignment of the bit-field itself and GCC will handle that as
desired.

PR target/88469
* profile-count.h (profile_count): On ARM systems using GCC 6/7/8
force the alignment of m_val.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@268240 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/profile-count.h