diff options
author | Per Bothner <per@bothner.com> | 2001-01-21 12:18:31 -0800 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2001-01-21 12:18:31 -0800 |
commit | e6b6db0dd843faddeee59e08a8733f47a4f0ef59 (patch) | |
tree | 6eb6c93a126671457badde5c220af2f368e888ee /gcc/java/parse.y | |
parent | b57300bcff75e7dcef532bd9ddce1c8171440a0f (diff) | |
download | gcc-e6b6db0dd843faddeee59e08a8733f47a4f0ef59.zip gcc-e6b6db0dd843faddeee59e08a8733f47a4f0ef59.tar.gz gcc-e6b6db0dd843faddeee59e08a8733f47a4f0ef59.tar.bz2 |
parse.y (method_header): Don't set the DECL_NAME of a FUNCTION_DECL to a EXPR_WITH_FILE_LOCATION - that...
* parse.y (method_header): Don't set the DECL_NAME of a FUNCTION_DECL
to a EXPR_WITH_FILE_LOCATION - that is just too fragile and wrong.
From-SVN: r39169
Diffstat (limited to 'gcc/java/parse.y')
-rw-r--r-- | gcc/java/parse.y | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y index c5165b7..73c0496 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -4514,16 +4514,6 @@ method_header (flags, type, mdecl, throws) DECL_FUNCTION_THROWS (meth) = throws; } - /* We set the DECL_NAME to ID so we can track the location where - the function was declared. This allow us to report - redefinition error accurately. When method are verified, - DECL_NAME is reinstalled properly (using the content of the - WFL node ID) (see check_method_redefinition). We don't do that - when Object is being defined. Constructor <init> names will be - reinstalled the same way. */ - if (TREE_TYPE (GET_CPC ()) != object_type_node) - DECL_NAME (meth) = id; - /* Set the flag if we correctly processed a constructor */ if (constructor_ok) { |