This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Fortran,patch] PR 39178 - inline main()

On Wed, May 27, 2009 at 00:24, Tobias Burnus <> wrote:
> Janne Blomqvist wrote:
>>> Bootstrapped on x86-64-linux and regtested.
>>> OK for the trunk?
>> Ok.
> Thanks for the review! Comitted as Rev. 147883.

Oops, I was a bit hasty..

I just committed the patch below as obvious. Turns out we can't remove
store_exe_path since it's part of the ABI. I also added a note about
this to

diff --git a/libgfortran/libgfortran.h b/libgfortran/libgfortran.h
index 85b454d..3591fa9 100644
--- a/libgfortran/libgfortran.h
+++ b/libgfortran/libgfortran.h
@@ -610,6 +610,9 @@ export_proto(set_args);
 extern void get_args (int *, char ***);

+extern void store_exe_path (const char *);
 extern char * full_exe_path (void);

diff --git a/libgfortran/runtime/main.c b/libgfortran/runtime/main.c
index 6df2775..3f3d494 100644
--- a/libgfortran/runtime/main.c
+++ b/libgfortran/runtime/main.c
@@ -74,7 +74,7 @@ static int please_free_exe_path_when_done;

 /* Save the path under which the program was called, for use in the
    backtrace routines.  */
-static void
 store_exe_path (const char * argv0)
 #ifndef PATH_MAX

Janne Blomqvist

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]