Commit d600a3a4 by Andrew Haley Committed by Andrew Haley

re PR java/18091 (Valgrind errors building libjava)

2004-10-21  Andrew Haley  <aph@redhat.com>

	PR java/18091:
	* jcf-parse.c (set_source_filename): Add code to build new sfname.

From-SVN: r89376
parent 6f4fd16d
2004-10-21 Andrew Haley <aph@redhat.com>
PR java/18091:
* jcf-parse.c (set_source_filename): Add code to build new sfname.
2004-10-20 Andrew Haley <aph@redhat.com>
* decl.c (end_java_method): Don't expand if flag_syntax_only.
Remove duplicated code block.
2004-10-18 Steven Bosscher <stevenb@suse.de>
* Make-lang.in (java/parse.o-warn, java/parse-scan.o-warn):
......
......@@ -151,9 +151,11 @@ set_source_filename (JCF *jcf, int index)
char *dot = strrchr (class_name, '.');
if (dot != NULL)
{
int i = dot - class_name;
int i = dot - class_name + 1;
/* Concatenate current package prefix with new sfname. */
char *buf = xmalloc (i+new_len+3);
memcpy (buf, class_name, i);
strcpy (buf + i, sfname);
/* Replace '.' by DIR_SEPARATOR. */
for (; i >= 0; i--)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment