]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/alias.c
Merge from trunk.
[thirdparty/gcc.git] / gcc / alias.c
index 8a66d2baa449bf90561693445e03c92d5c7aa8ae..8a1f09bc33ef7aa81a636329cbbb1f18b4212b30 100644 (file)
@@ -24,6 +24,8 @@ along with GCC; see the file COPYING3.  If not see
 #include "tm.h"
 #include "rtl.h"
 #include "tree.h"
+#include "varasm.h"
+#include "expr.h"
 #include "tm_p.h"
 #include "function.h"
 #include "alias.h"
@@ -2958,7 +2960,7 @@ init_alias_analysis (void)
      The state of the arrays for the set chain in question does not matter
      since the program has undefined behavior.  */
 
-  rpo = XNEWVEC (int, n_basic_blocks);
+  rpo = XNEWVEC (int, n_basic_blocks_for_fn (cfun));
   rpo_cnt = pre_and_rev_post_order_compute (NULL, rpo, false);
 
   pass = 0;