View | Details | Raw Unified | Return to bug 17506 | Differences between
and this patch

Collapse All | Expand All

(-)tree-ssa.c (-1 / +7 lines)
Lines 1154-1160 warn_uninit (tree t, const char *gmsgid, Link Here
1154
  tree var = SSA_NAME_VAR (t);
1154
  tree var = SSA_NAME_VAR (t);
1155
  tree def = SSA_NAME_DEF_STMT (t);
1155
  tree def = SSA_NAME_DEF_STMT (t);
1156
  tree context = (tree) data;
1156
  tree context = (tree) data;
1157
  location_t * locus;
1157
  location_t *locus, *fun_locus;
1158
1158
1159
  /* Default uses (indicated by an empty definition statement),
1159
  /* Default uses (indicated by an empty definition statement),
1160
     are uninitialized.  */
1160
     are uninitialized.  */
Lines 1178-1183 warn_uninit (tree t, const char *gmsgid, Link Here
1178
	   ? EXPR_LOCUS (context)
1178
	   ? EXPR_LOCUS (context)
1179
	   : &DECL_SOURCE_LOCATION (var));
1179
	   : &DECL_SOURCE_LOCATION (var));
1180
  warning (0, gmsgid, locus, var);
1180
  warning (0, gmsgid, locus, var);
1181
  fun_locus = &DECL_SOURCE_LOCATION(cfun->decl);
1182
  if (locus->file != fun_locus->file
1183
      || locus->line < fun_locus->line
1184
      || locus->line > cfun->function_end_locus.line)
1185
    inform ("%J%qD was declared here", var, var);
1186
1181
  TREE_NO_WARNING (var) = 1;
1187
  TREE_NO_WARNING (var) = 1;
1182
}
1188
}
1183
   
1189
   

Return to bug 17506