===================================================================
@@ -10977,7 +10977,9 @@ static char revision[] = "$gcc_REVISION";
static struct plugin_gcc_version gcc_version = {basever, datestamp,
devphase, revision,
- configuration_arguments};
+ configuration_arguments,
+/* Field invoking_program is set in general_init inside toplev.c. */
+ NULL};
EOF
# Internationalization
@@ -17517,7 +17519,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 17520 "configure"
+#line 17522 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -17623,7 +17625,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 17626 "configure"
+#line 17628 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
===================================================================
@@ -1521,7 +1521,9 @@ static char revision[] = "$gcc_REVISION";
static struct plugin_gcc_version gcc_version = {basever, datestamp,
devphase, revision,
- configuration_arguments};
+ configuration_arguments,
+/* Field invoking_program is set in general_init inside toplev.c. */
+ NULL};
EOF
changequote([,])dnl
===================================================================
@@ -70,6 +70,8 @@ struct plugin_gcc_version
const char *devphase;
const char *revision;
const char *configuration_arguments;
+ /* Short string like "cc1" or "lto1" giving the invoking program. */
+ const char *invoking_program;
};
/* Object that keeps track of the plugin name and its arguments. */
===================================================================
@@ -632,6 +632,7 @@ initialize_plugins (void)
timevar_push (TV_PLUGIN_INIT);
#ifdef ENABLE_PLUGIN
+ gcc_version.invoking_program = progname;
/* Traverse and initialize each plugin specified in the command-line. */
htab_traverse_noresize (plugin_name_args_tab, init_one_plugin, NULL);
#endif