• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GCC with patches for OS216


Commit MetaInfo

Revisión75e06b71300cd907fa4c40f83563bd0151a6d691 (tree)
Tiempo2018-03-21 03:07:57
AutorAldy Hernandez <aldyh@gcc....>
CommiterAldy Hernandez

Log Message

Fix fallout from merge with Aldy's threader branch.

From-SVN: r258690

Cambiar Resumen

Diferencia incremental

--- a/gcc/ssa-range-bb.c
+++ b/gcc/ssa-range-bb.c
@@ -98,19 +98,18 @@ gori_map::gori_map ()
9898
9999 gori_map::~gori_map ()
100100 {
101- unsigned x;
102- int bb;
103- for (bb = 0; bb < last_basic_block_for_fn (cfun); ++bb)
101+ unsigned x, bb;
102+ for (bb = 0; bb < outgoing.length (); ++bb)
104103 if (outgoing[bb])
105104 BITMAP_FREE (outgoing[bb]);
106105 outgoing.release ();
107106
108- for (bb = 0; bb < last_basic_block_for_fn (cfun); ++bb)
107+ for (bb = 0; bb < incoming.length (); ++bb)
109108 if (incoming[bb])
110109 BITMAP_FREE (incoming[bb]);
111110 incoming.release ();
112111
113- for (x = 0; x < num_ssa_names; ++x)
112+ for (x = 0; x < def_chain.length (); ++x)
114113 if (def_chain[x])
115114 BITMAP_FREE (def_chain[x]);
116115 def_chain.release ();
@@ -281,9 +280,11 @@ gori_map::dump(FILE *f, basic_block bb)
281280 return;
282281 }
283282
284- for (x = 1; x< num_ssa_names; x++)
283+ for (x = 1; x < num_ssa_names; x++)
285284 {
286285 tree name = ssa_name (x);
286+ if (!name)
287+ continue;
287288 gimple *stmt = SSA_NAME_DEF_STMT (name);
288289 if (stmt && gimple_bb (stmt) == bb && def_chain[x] &&
289290 !bitmap_empty_p (def_chain[x]))
@@ -707,6 +708,12 @@ block_ranger::get_derived_range_stmt (range_stmt& stmt, tree name, basic_block b
707708 #endif
708709
709710
711+tree
712+block_ranger::single_import (tree name)
713+{
714+ return gori->single_import (name);
715+}
716+
710717 bool
711718 block_ranger::range_p (basic_block bb, tree name)
712719 {
--- a/gcc/ssa-range-bb.h
+++ b/gcc/ssa-range-bb.h
@@ -59,6 +59,7 @@ public:
5959 bool range_of_def (irange& r, gimple *g, tree name,
6060 const irange& range_for_name);
6161
62+ tree single_import (tree name);
6263 void dump (FILE *f);
6364 void exercise (FILE *f);
6465 };