This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix MIPS builds with current trunk
- From: Jeff Law <law at redhat dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 4 Apr 2017 09:31:51 -0600
- Subject: Fix MIPS builds with current trunk
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=law at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 8720A7E9DF
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 8720A7E9DF
All the MIPS compilers will fail to build using the trunk due to a
couple minor uninitialized memory issues.
First in mips_multi_add we add an uninitialized mips_multi_member object
to the mips_multi_members vec. It's easy enough to just memset the new
member.
Second in mips_expand_vec_perm_const the tail of the orig_perm may be
uninitialized if the number of elements in the target object is smaller
than MAX_VECT_LEN. This is also trivial to fix by explicitly clearing
the tail of the array.
Tested by verifying the MIPS targets in config-list.mk will build using
a trunk compiler again.
Installed on the trunk.
Jeff