diff options
| author | membar <membar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-11-26 01:34:32 +0000 |
|---|---|---|
| committer | membar <membar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-11-26 01:34:32 +0000 |
| commit | 34347eb580ab9ac5ede96f42413b656d40ae6dfb (patch) | |
| tree | f0417ffd81e78dcfcf67e1816b7a55afbd7e0cc2 | |
| parent | 0d8aad34067674adf6922a8f387a9c93fbd13c9c (diff) | |
| download | ppe42-gcc-34347eb580ab9ac5ede96f42413b656d40ae6dfb.tar.gz ppe42-gcc-34347eb580ab9ac5ede96f42413b656d40ae6dfb.zip | |
PR java/12548
* resource.c (write_resource_constructor): Append
"_resource" to constructor identifier name.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73940 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/java/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/java/resource.c | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 1a34e36a6a7..695f317b8dd 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,9 @@ +2003-11-25 Mohan Embar <gnustuff@thisiscool.com> + + PR java/12548 + * resource.c (write_resource_constructor): Append + "_resource" to constructor identifier name. + 2003-11-25 Jeff Sturm <jsturm@one-point.com> Fix PR java/13183. diff --git a/gcc/java/resource.c b/gcc/java/resource.c index b71a6709f5e..5d4b72a13ae 100644 --- a/gcc/java/resource.c +++ b/gcc/java/resource.c @@ -105,12 +105,16 @@ write_resource_constructor (void) tree init_name, init_type, init_decl; tree iter; location_t saved_loc = input_location; + char *resource_ctor_name; /* Only do work if required. */ if (resources == NULL_TREE) return; - init_name = get_file_function_name ('I'); + resource_ctor_name = concat (IDENTIFIER_POINTER (get_file_function_name ('I')), + "_resource", NULL); + init_name = get_identifier (resource_ctor_name); + free (resource_ctor_name); init_type = build_function_type (void_type_node, end_params_node); init_decl = build_decl (FUNCTION_DECL, init_name, init_type); |

