This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Quash warning in final.c
- From: Marek Polacek <polacek at redhat dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 12 Nov 2013 12:58:19 +0100
- Subject: [PATCH] Quash warning in final.c
- Authentication-results: sourceware.org; auth=none
This patch quashes a -Wmaybe-uninitialized warning that showed up
when running bootstrap with asan/ubsan. Supposedly in that case
we aren't able to preinitialize label with the first element of the
label_pairs vector.
Regtested/bootstrapped on x86_64-linux, ok for trunk?
2013-11-12 Marek Polacek <polacek@redhat.com>
* final.c (update_alignments): Initialize label to NULL_RTX.
--- gcc/final.c.mp 2013-11-12 09:59:29.455585155 +0100
+++ gcc/final.c 2013-11-12 09:59:40.140622495 +0100
@@ -830,7 +830,7 @@ void
update_alignments (vec<rtx> &label_pairs)
{
unsigned int i = 0;
- rtx iter, label;
+ rtx iter, label = NULL_RTX;
if (max_labelno != max_label_num ())
grow_label_align ();
Marek