re PR debug/42991 (cfgexpand.c:2487: Conditional jump or move depends on uninitialise...
authorRichard Guenther <rguenther@suse.de>
Sun, 7 Feb 2010 17:18:22 +0000 (17:18 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sun, 7 Feb 2010 17:18:22 +0000 (17:18 +0000)
2010-02-07  Richard Guenther  <rguenther@suse.de>

PR middle-end/42991
* expr.c (get_inner_reference): Always initialize *pbitsize.

From-SVN: r156575

gcc/ChangeLog
gcc/expr.c

index c05b65858a73ca3de4a34886d35bb6ece920c388..d3ef114395023be08f1926d11ca6c95aa9d2d577 100644 (file)
@@ -1,3 +1,8 @@
+2010-02-07  Richard Guenther  <rguenther@suse.de>
+
+       PR middle-end/42991
+       * expr.c (get_inner_reference): Always initialize *pbitsize.
+
 2010-02-07  Richard Guenther  <rguenther@suse.de>
 
        PR middle-end/42956
index d1cd815dd9bec672b4aead13313866834015d647..caf64ede233d92bcbe0c8a54563425c3888919b2 100644 (file)
@@ -5968,6 +5968,7 @@ get_inner_reference (tree exp, HOST_WIDE_INT *pbitsize,
 
   /* First get the mode, signedness, and size.  We do this from just the
      outermost expression.  */
+  *pbitsize = -1;
   if (TREE_CODE (exp) == COMPONENT_REF)
     {
       tree field = TREE_OPERAND (exp, 1);