aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-semantics.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2003-07-07 17:57:30 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2003-07-07 17:57:30 +0000
commit0cea056ba1409967d888007cf43e05ac4bd0003f (patch)
tree193bbe1a5e7e548cfde12119b9718bb33a509382 /gcc/c-semantics.c
parent8eb910fc139d3d9ecde0dbac534f48e89ab89659 (diff)
downloadgcc-0cea056ba1409967d888007cf43e05ac4bd0003f.zip
gcc-0cea056ba1409967d888007cf43e05ac4bd0003f.tar.gz
gcc-0cea056ba1409967d888007cf43e05ac4bd0003f.tar.bz2
rtl.h (emit_line_note): Take a location_t.
* rtl.h (emit_line_note): Take a location_t. (emit_line_note_force): Remove. (set_file_and_line_for_statement): Take a location_t. * tree.g (emit_line_note): Take a location_t. * emit-rtl.c (emit_line_note): Take a location_t. (emit_line_note_force): Remove. * function.c (init_function_start): Adjust emit_line_note call. (expand_function_end): Use force_next_line_note, not emit_line_note_force. * c-parse.in (maybe_type_qual): Adjust emit_line_note calls. * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt, genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt, genrtl_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt): Likewise. * expr.c (expand_expr): Likewise. * integrate.c (expand_inline_function): Likewise. * stmt.c (set_file_and_line_for_stmt): Take a location_t. (expand_decl_init): Adjust emit_line_note call. * ada/trans.c (build_unit_elab, set_lineno): Adjust emit_line_note calls. * cp/semantics.c: (genrtl_try_block) Adjust emit_line_note calls. * f/com.c (bison_rule_pushlevel_, bison_rule_compstmt_): Adjust emit_line_note calls. * f/ste.c (ffeste_emit_line_note_): Likewise. * java/expr.c (expand_byte_code): * treelang/treetree.c (tree_code_if_start, tree_code_if_else, tree_code_if_end, tree_code_create_function_initial, tree_code_create_function_wrapup, tree_code_generate_return, tree_code_output_expression_statement): Adjust emit_line_note calls. From-SVN: r69047
Diffstat (limited to 'gcc/c-semantics.c')
-rw-r--r--gcc/c-semantics.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c
index 4e27bec..1481e1d 100644
--- a/gcc/c-semantics.c
+++ b/gcc/c-semantics.c
@@ -300,7 +300,7 @@ emit_local_var (tree decl)
void
genrtl_do_pushlevel (void)
{
- emit_line_note (input_filename, input_line);
+ emit_line_note (input_location);
clear_last_expr ();
}
@@ -317,7 +317,7 @@ genrtl_goto_stmt (tree destination)
if (TREE_CODE (destination) == LABEL_DECL)
TREE_USED (destination) = 1;
- emit_line_note (input_filename, input_line);
+ emit_line_note (input_location);
if (TREE_CODE (destination) == LABEL_DECL)
{
@@ -350,7 +350,7 @@ genrtl_expr_stmt_value (tree expr, int want_value, int maybe_last)
{
if (expr != NULL_TREE)
{
- emit_line_note (input_filename, input_line);
+ emit_line_note (input_location);
if (stmts_are_full_exprs_p ())
expand_start_target_temps ();
@@ -369,7 +369,7 @@ void
genrtl_decl_stmt (tree t)
{
tree decl;
- emit_line_note (input_filename, input_line);
+ emit_line_note (input_location);
decl = DECL_STMT_DECL (t);
/* If this is a declaration for an automatic local
variable, initialize it. Note that we might also see a
@@ -405,7 +405,7 @@ genrtl_if_stmt (tree t)
tree cond;
genrtl_do_pushlevel ();
cond = expand_cond (IF_COND (t));
- emit_line_note (input_filename, input_line);
+ emit_line_note (input_location);
expand_start_cond (cond, 0);
if (THEN_CLAUSE (t))
{
@@ -435,14 +435,14 @@ genrtl_while_stmt (tree t)
tree cond = WHILE_COND (t);
emit_nop ();
- emit_line_note (input_filename, input_line);
+ emit_line_note (input_location);
expand_start_loop (1);
genrtl_do_pushlevel ();
if (cond && !integer_nonzerop (cond))
{
cond = expand_cond (cond);
- emit_line_note (input_filename, input_line);
+ emit_line_note (input_location);
expand_exit_loop_top_cond (0, cond);
genrtl_do_pushlevel ();
}
@@ -472,25 +472,25 @@ genrtl_do_stmt_1 (tree cond, tree body)
else if (integer_nonzerop (cond))
{
emit_nop ();
- emit_line_note (input_filename, input_line);
+ emit_line_note (input_location);
expand_start_loop (1);
expand_stmt (body);
- emit_line_note (input_filename, input_line);
+ emit_line_note (input_location);
expand_end_loop ();
}
else
{
emit_nop ();
- emit_line_note (input_filename, input_line);
+ emit_line_note (input_location);
expand_start_loop_continue_elsewhere (1);
expand_stmt (body);
expand_loop_continue_here ();
cond = expand_cond (cond);
- emit_line_note (input_filename, input_line);
+ emit_line_note (input_location);
expand_exit_loop_if_false (0, cond);
expand_end_loop ();
}
@@ -521,7 +521,7 @@ genrtl_return_stmt (tree stmt)
expr = RETURN_STMT_EXPR (stmt);
- emit_line_note (input_filename, input_line);
+ emit_line_note (input_location);
if (!expr)
expand_null_return ();
else
@@ -547,7 +547,7 @@ genrtl_for_stmt (tree t)
/* Expand the initialization. */
emit_nop ();
- emit_line_note (input_filename, input_line);
+ emit_line_note (input_location);
if (FOR_EXPR (t))
expand_start_loop_continue_elsewhere (1);
else
@@ -562,7 +562,7 @@ genrtl_for_stmt (tree t)
if (cond && !integer_nonzerop (cond))
{
cond = expand_cond (cond);
- emit_line_note (input_filename, input_line);
+ emit_line_note (input_location);
expand_exit_loop_top_cond (0, cond);
genrtl_do_pushlevel ();
}
@@ -572,7 +572,7 @@ genrtl_for_stmt (tree t)
/* Expand the increment expression. */
input_location = saved_loc;
- emit_line_note (input_filename, input_line);
+ emit_line_note (input_location);
if (FOR_EXPR (t))
{
expand_loop_continue_here ();
@@ -594,7 +594,7 @@ build_break_stmt (void)
void
genrtl_break_stmt (void)
{
- emit_line_note (input_filename, input_line);
+ emit_line_note (input_location);
if ( ! expand_exit_something ())
error ("break statement not within loop or switch");
}
@@ -612,7 +612,7 @@ build_continue_stmt (void)
void
genrtl_continue_stmt (void)
{
- emit_line_note (input_filename, input_line);
+ emit_line_note (input_location);
if (! expand_continue_loop (0))
error ("continue statement not within a loop");
}
@@ -674,7 +674,7 @@ genrtl_switch_stmt (tree t)
crash. */
cond = boolean_false_node;
- emit_line_note (input_filename, input_line);
+ emit_line_note (input_location);
expand_start_case (1, cond, TREE_TYPE (cond), "switch statement");
expand_stmt (expand_unreachable_stmt (SWITCH_BODY (t), warn_notreached));
expand_end_case_type (cond, SWITCH_TYPE (t));
@@ -746,7 +746,7 @@ genrtl_asm_stmt (tree cv_qualifier, tree string, tree output_operands,
cv_qualifier = NULL_TREE;
}
- emit_line_note (input_filename, input_line);
+ emit_line_note (input_location);
if (asm_input_p)
expand_asm (string, cv_qualifier != NULL_TREE);
else