This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/51803] gfortran getcwd at startup
- From: "mrs at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 10 Jan 2012 16:44:24 +0000
- Subject: [Bug libfortran/51803] gfortran getcwd at startup
- Auto-submitted: auto-generated
- References: <bug-51803-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51803
--- Comment #4 from mrs at gcc dot gnu.org <mrs at gcc dot gnu.org> 2012-01-10 16:44:24 UTC ---
Oh, a related, but different bug would be, if getcwd isn't on the system, or
fails, I think "." might be better than "", as we form getcwd '/' argv[0], and
that doesn't make any sense as "" really. ./a.out seems better than /a.out for
example. I merely copied the bug from the other code path for uniformity, not
because I thought it was the right value.