public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix for tree-ssa-pre
@ 2014-09-03 12:24 Martin Liška
  0 siblings, 0 replies; only message in thread
From: Martin Liška @ 2014-09-03 12:24 UTC (permalink / raw)
  To: GCC Patches

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

Hello,
    I've encountered and issue in a ltrans for libxul.so (with LTO). The patch fixes uninitialized value for a given argument, pre-approved by Richard.

Thanks,
Martin

[-- Attachment #2: tree-ssa-pre-fix.changelog --]
[-- Type: text/plain, Size: 183 bytes --]

gcc/ChangeLog:

2014-09-03  Martin Liska  <mliska@suse.cz>

	* tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
	is set to preserve uninitialized value for vnresult.

[-- Attachment #3: tree-ssa-pre-fix.patch --]
[-- Type: text/x-patch, Size: 390 bytes --]

diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c
index 1bcbde3..44656ea 100644
--- a/gcc/tree-ssa-sccvn.c
+++ b/gcc/tree-ssa-sccvn.c
@@ -2146,6 +2146,9 @@ void
 vn_reference_lookup_call (gimple call, vn_reference_t *vnresult,
 			  vn_reference_t vr)
 {
+  if (vnresult)
+    *vnresult = NULL;
+
   tree vuse = gimple_vuse (call);
 
   vr->vuse = vuse ? SSA_VAL (vuse) : NULL_TREE;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-09-03 12:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-03 12:24 [PATCH] Fix for tree-ssa-pre Martin Liška

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).