Commit 986dc4e5 by Tom Tromey Committed by Tom Tromey

re PR java/14315 ([3.4 only]: Java compiler is not parallel make safe)

	PR java/14315:
	* jcf-write.c (make_class_file_name): Don't report if mkdir
	failed with EEXIST.

From-SVN: r79868
parent 37214c41
2004-03-23 Tom Tromey <tromey@redhat.com> 2004-03-23 Tom Tromey <tromey@redhat.com>
PR java/14315:
* jcf-write.c (make_class_file_name): Don't report if mkdir
failed with EEXIST.
2004-03-23 Tom Tromey <tromey@redhat.com>
* gcj.texi (Extensions): Document GCJ_PROPERTIES. * gcj.texi (Extensions): Document GCJ_PROPERTIES.
2004-03-20 Kazu Hirata <kazu@cs.umass.edu> 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
......
/* Write out a Java(TM) class file. /* Write out a Java(TM) class file.
Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004
Free Software Foundation, Inc. Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.
...@@ -3392,9 +3392,11 @@ make_class_file_name (tree clas) ...@@ -3392,9 +3392,11 @@ make_class_file_name (tree clas)
if (s == NULL) if (s == NULL)
break; break;
*s = '\0'; *s = '\0';
/* Try to make directory if it doesn't already exist. */
if (stat (r, &sb) == -1 if (stat (r, &sb) == -1
/* Try to make it. */ && mkdir (r, 0755) == -1
&& mkdir (r, 0755) == -1) /* The directory might have been made by another process. */
&& errno != EEXIST)
fatal_error ("can't create directory %s: %m", r); fatal_error ("can't create directory %s: %m", r);
*s = sep; *s = sep;
......
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