diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 70ae7f207d6..f5ef6fc8e6f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-09-20 Basile Starynkevitch + + * plugin.c (parse_plugin_arg_opt): Accept equal sign inside + plugin argument. + 2013-09-20 Basile Starynkevitch * gengtype.c (file_rules): Added rule for *.cc files. diff --git a/gcc/plugin.c b/gcc/plugin.c index b269dfa3971..3b39a0b30d9 100644 --- a/gcc/plugin.c +++ b/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