aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc/objc-act.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/objc/objc-act.c')
-rw-r--r--gcc/objc/objc-act.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c
index 0c07543..02678a4 100644
--- a/gcc/objc/objc-act.c
+++ b/gcc/objc/objc-act.c
@@ -1984,13 +1984,12 @@ build_selector_translation_table (void)
}
if (!found)
{
- /* Adjust line number for warning message. */
- int save_lineno = input_line;
+ location_t loc = input_location;
if (flag_next_runtime && TREE_PURPOSE (chain))
- input_line = DECL_SOURCE_LINE (TREE_PURPOSE (chain));
- warning ("creating selector for non existant method %s",
- IDENTIFIER_POINTER (TREE_VALUE (chain)));
- input_line = save_lineno;
+ loc = TREE_LOCUS (TREE_PURPOSE (chain));
+
+ warning ("%Hcreating selector for non existant method %s",
+ &loc, IDENTIFIER_POINTER (TREE_VALUE (chain)));
}
}
@@ -2857,7 +2856,6 @@ build_tmp_function_decl (void)
expr_decl = build1 (INDIRECT_REF, NULL_TREE, expr_decl);
tmp_decl = define_decl (expr_decl, decl_specs);
- DECL_SOURCE_LINE (tmp_decl) = 0;
return tmp_decl;
}