PR objc/18862
* objc-act.c (build_selector_translation_table): Use
input_location in the diagnostic for the GNU runtime or if
TREE_PURPOSE (chain) is NULL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94285
138bc75d-0d04-0410-961f-
82ee72b054a4
+2005-01-26 Alexander Malmberg <alexander@malmberg.org>
+
+ PR objc/18862
+ * objc-act.c (build_selector_translation_table): Use
+ input_location in the diagnostic for the GNU runtime or if
+ TREE_PURPOSE (chain) is NULL.
+
2005-01-25 Alexander Malmberg <alexander@malmberg.org>
PR objc/18408
}
}
if (!found)
- warning ("%Jcreating selector for nonexistent method %qE",
- TREE_PURPOSE (chain), TREE_VALUE (chain));
+ {
+ location_t *loc;
+ if (flag_next_runtime && TREE_PURPOSE (chain))
+ loc = &DECL_SOURCE_LOCATION (TREE_PURPOSE (chain));
+ else
+ loc = &input_location;
+ warning ("%Hcreating selector for nonexistent method %qE",
+ loc, TREE_VALUE (chain));
+ }
}
expr = build_selector (TREE_VALUE (chain));