diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/plugin.c | 17 |
2 files changed, 12 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 70ae7f2..f5ef6fc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 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. (get_output_file_with_visibility): Give fatal message when no rules found. diff --git a/gcc/plugin.c b/gcc/plugin.c index b269dfa..3b39a0b 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 |