Commit 0a811e96 by Basile Starynkevitch Committed by Basile Starynkevitch

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
parent 0078f462
2013-09-20 Basile Starynkevitch <basile@starynkevitch.net> 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. * gengtype.c (file_rules): Added rule for *.cc files.
(get_output_file_with_visibility): Give fatal message when no (get_output_file_with_visibility): Give fatal message when no
rules found. rules found.
......
...@@ -241,16 +241,13 @@ parse_plugin_arg_opt (const char *arg) ...@@ -241,16 +241,13 @@ parse_plugin_arg_opt (const char *arg)
} }
else if (*ptr == '=') else if (*ptr == '=')
{ {
if (key_parsed) if (!key_parsed)
{ {
error ("malformed option -fplugin-arg-%s (multiple '=' signs)", key_len = len;
arg); len = 0;
return; value_start = ptr + 1;
} key_parsed = true;
key_len = len; }
len = 0;
value_start = ptr + 1;
key_parsed = true;
continue; continue;
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment