This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix MIPS builds with current trunk



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]