This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix undefined behavior in ira-build.c
- From: Vladimir Makarov <vmakarov at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 27 Jun 2014 10:39:25 -0400
- Subject: Re: [PATCH] Fix undefined behavior in ira-build.c
- Authentication-results: sourceware.org; auth=none
- References: <20140627071629 dot GX31640 at tucnak dot redhat dot com>
On 2014-06-27, 3:16 AM, Jakub Jelinek wrote:
Hi!
This fixes the most common source of the new runtime diagnostics
during bootstrap-ubsan, if num is 0, ira_object_id_map is often
0 as well.
Ok for trunk/4.9?
Sure, Jakub. You can use num > 1 as Richard pointed out.
Thanks.
2014-06-27 Jakub Jelinek <jakub@redhat.com>
* ira-build.c (sort_conflict_id_map): Don't call
qsort if num is 0, as ira_object_id_map might be NULL.