summaryrefslogtreecommitdiff
path: root/gcc/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/plugin.c')
-rw-r--r--gcc/plugin.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/plugin.c b/gcc/plugin.c
index 7e07b634d2f..d924438c940 100644
--- a/gcc/plugin.c
+++ b/gcc/plugin.c
@@ -187,7 +187,8 @@ add_new_plugin (const char* plugin_name)
plugin_name, ".so", NULL);
if (access (plugin_name, R_OK))
fatal_error
- ("inaccessible plugin file %s expanded from short plugin name %s: %m",
+ (input_location,
+ "inaccessible plugin file %s expanded from short plugin name %s: %m",
plugin_name, base_name);
}
else
@@ -595,7 +596,8 @@ try_init_one_plugin (struct plugin_name_args *plugin)
/* Check the plugin license. */
if (dlsym (dl_handle, str_license) == NULL)
- fatal_error ("plugin %s is not licensed under a GPL-compatible license\n"
+ fatal_error (input_location,
+ "plugin %s is not licensed under a GPL-compatible license\n"
"%s", plugin->full_name, dlerror ());
PTR_UNION_AS_VOID_PTR (plugin_init_union) =
@@ -893,6 +895,7 @@ const char*
default_plugin_dir_name (void)
{
if (!plugindir_string)
- fatal_error ("-iplugindir <dir> option not passed from the gcc driver");
+ fatal_error (input_location,
+ "-iplugindir <dir> option not passed from the gcc driver");
return plugindir_string;
}