plugin.c (parse_plugin_arg_opt): Accept equal sign inside plugin argument.

2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>

	* plugin.c (parse_plugin_arg_opt): Accept equal sign inside 
          plugin argument.

From-SVN: r202783
This commit is contained in:
Basile Starynkevitch 2013-09-20 15:54:47 +00:00 committed by Basile Starynkevitch
parent 0078f46235
commit 0a811e96fd
2 changed files with 12 additions and 10 deletions

View File

@ -1,3 +1,8 @@
2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
* plugin.c (parse_plugin_arg_opt): Accept equal sign inside
plugin argument.
2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
* gengtype.c (file_rules): Added rule for *.cc files.

View File

@ -241,16 +241,13 @@ parse_plugin_arg_opt (const char *arg)
}
else if (*ptr == '=')
{
if (key_parsed)
{
error ("malformed option -fplugin-arg-%s (multiple '=' signs)",
arg);
return;
}
key_len = len;
len = 0;
value_start = ptr + 1;
key_parsed = true;
if (!key_parsed)
{
key_len = len;
len = 0;
value_start = ptr + 1;
key_parsed = true;
}
continue;
}
else