diff --git a/gcc/cfgexpand.cc b/gcc/cfgexpand.cc index f3a33ff9a07..ed890f692e5 100644 --- a/gcc/cfgexpand.cc +++ b/gcc/cfgexpand.cc @@ -703,6 +703,11 @@ add_scope_conflicts_1 (basic_block bb, bitmap work, bool for_conflict) static void add_scope_conflicts (void) { + /* If there is only one variable, there is nothing to be done as + there is only possible partition. */ + if (stack_vars_num == 1) + return; + basic_block bb; bool changed; bitmap work = BITMAP_ALLOC (NULL);