plugin.c (register_plugin_info): Produce an error message if the plugin is not found in the hash table.
* plugin.c (register_plugin_info): Produce an error message if the plugin is not found in the hash table. From-SVN: r241613
This commit is contained in:
parent
ad6e4ba8de
commit
b5300487f1
2 changed files with 14 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2016-10-27 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* plugin.c (register_plugin_info): Produce an error message if the
|
||||
plugin is not found in the hash table.
|
||||
|
||||
2016-10-27 Bin Cheng <bin.cheng@arm.com>
|
||||
|
||||
* match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
|
||||
|
|
10
gcc/plugin.c
10
gcc/plugin.c
|
@ -330,7 +330,15 @@ static void
|
|||
register_plugin_info (const char* name, struct plugin_info *info)
|
||||
{
|
||||
void **slot = htab_find_slot (plugin_name_args_tab, name, NO_INSERT);
|
||||
struct plugin_name_args *plugin = (struct plugin_name_args *) *slot;
|
||||
struct plugin_name_args *plugin;
|
||||
|
||||
if (slot == NULL)
|
||||
{
|
||||
error ("unable to register info for plugin '%s' - plugin name not found",
|
||||
name);
|
||||
return;
|
||||
}
|
||||
plugin = (struct plugin_name_args *) *slot;
|
||||
plugin->version = info->version;
|
||||
plugin->help = info->help;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue