public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, bootstrap]: Initialize deref_align in ipa_modify_call_arguments to fix profiledbootstrap
@ 2013-09-07  8:19 Uros Bizjak
  2013-09-09  9:07 ` Richard Biener
  0 siblings, 1 reply; 2+ messages in thread
From: Uros Bizjak @ 2013-09-07  8:19 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 419 bytes --]

Hello!

It looks that it is too hard for the compiler to track deref_align
initialization through dependent deref_base boolean. The patch bellow
fixes "may be used uninitialized" warning that breaks
profiledbootstrap.

2013-09-07  Uros Bizjak  <ubizjak@gmail.com>

    * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.

Tested on x86_64-pc-linux-gnu with LTO profiledbootstrap.

OK for mainline?

Uros.

[-- Attachment #2: p.diff.txt --]
[-- Type: text/plain, Size: 440 bytes --]

Index: ipa-prop.c
===================================================================
--- ipa-prop.c	(revision 202352)
+++ ipa-prop.c	(working copy)
@@ -3526,7 +3526,7 @@ ipa_modify_call_arguments (struct cgraph_edge *cs,
 	{
 	  tree expr, base, off;
 	  location_t loc;
-	  unsigned int deref_align;
+	  unsigned int deref_align = 0;
 	  bool deref_base = false;
 
 	  /* We create a new parameter out of the value of the old one, we can

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH, bootstrap]: Initialize deref_align in ipa_modify_call_arguments to fix profiledbootstrap
  2013-09-07  8:19 [PATCH, bootstrap]: Initialize deref_align in ipa_modify_call_arguments to fix profiledbootstrap Uros Bizjak
@ 2013-09-09  9:07 ` Richard Biener
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Biener @ 2013-09-09  9:07 UTC (permalink / raw)
  To: Uros Bizjak; +Cc: gcc-patches

On Sat, Sep 7, 2013 at 10:15 AM, Uros Bizjak <ubizjak@gmail.com> wrote:
> Hello!
>
> It looks that it is too hard for the compiler to track deref_align
> initialization through dependent deref_base boolean. The patch bellow
> fixes "may be used uninitialized" warning that breaks
> profiledbootstrap.
>
> 2013-09-07  Uros Bizjak  <ubizjak@gmail.com>
>
>     * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
>
> Tested on x86_64-pc-linux-gnu with LTO profiledbootstrap.
>
> OK for mainline?

Ok.

Thanks,
Richard.

> Uros.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-09  9:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-07  8:19 [PATCH, bootstrap]: Initialize deref_align in ipa_modify_call_arguments to fix profiledbootstrap Uros Bizjak
2013-09-09  9:07 ` Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).