From aee081df0f4394566a5d68879502634d6900e311 Mon Sep 17 00:00:00 2001 From: bstarynk Date: Tue, 22 Jul 2008 13:19:06 +0000 Subject: 2008-07-22 Basile Starynkevitch MERGED WITH TRUNK rev138050 * gcc/compiler-probe.c: more C++ friendly. * gcc/passes.c: merged with trunk. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@138056 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/tree-ssa.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gcc/tree-ssa.c') diff --git a/gcc/tree-ssa.c b/gcc/tree-ssa.c index 7f567b57a2e..2ac1c1184ee 100644 --- a/gcc/tree-ssa.c +++ b/gcc/tree-ssa.c @@ -1385,7 +1385,7 @@ warn_uninit (tree t, const char *gmsgid, void *data) locus = (context != NULL && EXPR_HAS_LOCATION (context) ? EXPR_LOCUS (context) : &DECL_SOURCE_LOCATION (var)); - warning (OPT_Wuninitialized, gmsgid, locus, var); + warning_at (*locus, OPT_Wuninitialized, gmsgid, var); xloc = expand_location (*locus); floc = expand_location (DECL_SOURCE_LOCATION (cfun->decl)); if (xloc.file != floc.file @@ -1416,10 +1416,10 @@ warn_uninitialized_var (tree *tp, int *walk_subtrees, void *data_) /* We only do data flow with SSA_NAMEs, so that's all we can warn about. */ if (data->always_executed) - warn_uninit (t, "%H%qD is used uninitialized in this function", + warn_uninit (t, "%qD is used uninitialized in this function", data->stmt); else - warn_uninit (t, "%H%qD may be used uninitialized in this function", + warn_uninit (t, "%qD may be used uninitialized in this function", data->stmt); *walk_subtrees = 0; break; @@ -1458,7 +1458,7 @@ warn_uninitialized_phi (tree phi) { tree op = PHI_ARG_DEF (phi, i); if (TREE_CODE (op) == SSA_NAME) - warn_uninit (op, "%H%qD may be used uninitialized in this function", + warn_uninit (op, "%qD may be used uninitialized in this function", NULL); } } -- cgit v1.2.1