summaryrefslogtreecommitdiffstats
path: root/gcc/jump.c
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-09 09:25:34 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-09 09:25:34 +0000
commitb14b763f1fd43a15ebafaeedf8b520849d7459a5 (patch)
tree235b8b6256cd629d05ae13903460b2c1e44f7f37 /gcc/jump.c
parent33126533ba216e3170b11497a036d6514a45228e (diff)
downloadppe42-gcc-b14b763f1fd43a15ebafaeedf8b520849d7459a5.tar.gz
ppe42-gcc-b14b763f1fd43a15ebafaeedf8b520849d7459a5.zip
* c-parse.in (if_stmt_locus): New object.
(if_prefix rule): Use it. Don't use warning_with_file_and_line. (select_or_iter_stmt rule): Likewise. (if_stmt_file): Remove. (if_stmt_line): Likewise. * jump.c: include "diagnostic.h" (never_reached_warning): Don't use warning_with_file_and_line. * Makefile.in (jump.o): Add dependce on diagnostic.h git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66627 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/jump.c')
-rw-r--r--gcc/jump.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/jump.c b/gcc/jump.c
index 5bed408fb5c..4cb9bcb1f6f 100644
--- a/gcc/jump.c
+++ b/gcc/jump.c
@@ -54,6 +54,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "reload.h"
#include "predict.h"
#include "timevar.h"
+#include "diagnostic.h"
/* Optimize jump y; x: ... y: jumpif... x?
Don't know if it is worth bothering with. */
@@ -1951,9 +1952,12 @@ never_reached_warning (avoided_insn, finish)
reached_end = 1;
}
if (two_avoided_lines && contains_insn)
- warning_with_file_and_line (NOTE_SOURCE_FILE (a_line_note),
- NOTE_LINE_NUMBER (a_line_note),
- "will never be executed");
+ {
+ location_t locus;
+ locus.file = NOTE_SOURCE_FILE (a_line_note);
+ locus.line = NOTE_LINE_NUMBER (a_line_note);
+ warning ("%Hwill never be executed", &locus);
+ }
}
/* Throughout LOC, redirect OLABEL to NLABEL. Treat null OLABEL or
OpenPOWER on IntegriCloud