aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2003-09-21 22:09:32 -0700
committerRichard Henderson <rth@gcc.gnu.org>2003-09-21 22:09:32 -0700
commitf31686a322301454c5ea5b997997aa7c84c57781 (patch)
treed942bc168b4a8f91e17acf863e1d2091ff773b6c /gcc/objc
parent0f7fcd6a40a237b634e0f93f1206724add7354d3 (diff)
downloadgcc-f31686a322301454c5ea5b997997aa7c84c57781.zip
gcc-f31686a322301454c5ea5b997997aa7c84c57781.tar.gz
gcc-f31686a322301454c5ea5b997997aa7c84c57781.tar.bz2
Revert DECL_SOURCE_LOCATION -> TREE_LOCUS change.
From-SVN: r71641
Diffstat (limited to 'gcc/objc')
-rw-r--r--gcc/objc/objc-act.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c
index 02678a4..0c07543 100644
--- a/gcc/objc/objc-act.c
+++ b/gcc/objc/objc-act.c
@@ -1984,12 +1984,13 @@ build_selector_translation_table (void)
}
if (!found)
{
- location_t loc = input_location;
+ /* Adjust line number for warning message. */
+ int save_lineno = input_line;
if (flag_next_runtime && TREE_PURPOSE (chain))
- loc = TREE_LOCUS (TREE_PURPOSE (chain));
-
- warning ("%Hcreating selector for non existant method %s",
- &loc, IDENTIFIER_POINTER (TREE_VALUE (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;
}
}
@@ -2856,6 +2857,7 @@ 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;
}