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:
parent
0078f46235
commit
0a811e96fd
@ -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.
|
||||
|
17
gcc/plugin.c
17
gcc/plugin.c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user