Message ID | 20101018074050.aa438178.basile@starynkevitch.net |
---|---|
State | New |
Headers | show |
> 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net> > > * gengtype.c (parse_program_options): Added allocation of > plugin_files, and corrected test on nb_plugin_files. Present tense only in ChangeLog entries: "Add allocation..."
On Mon, 18 Oct 2010 10:37:48 +0200 Eric Botcazou <ebotcazou@adacore.com> wrote: > > 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net> > > > > * gengtype.c (parse_program_options): Added allocation of > > plugin_files, and corrected test on nb_plugin_files. > > Present tense only in ChangeLog entries: "Add allocation..." I svn commit-ed the trivial correction to ChangeLog. Thanks
> I svn commit-ed the trivial correction to ChangeLog.
Thanks!
Index: gcc/gengtype.c =================================================================== --- gcc/gengtype.c (revision 165607) +++ gcc/gengtype.c (working copy) @@ -4395,6 +4395,7 @@ parse_program_options (int argc, char **argv) if (optind >= argc) fatal ("no source files given in plugin mode"); nb_plugin_files = argc - optind; + plugin_files = XNEWVEC (char*, nb_plugin_files); for (i = 0; i < (int) nb_plugin_files; i++) { char *name = argv[i + optind]; @@ -4488,7 +4489,7 @@ main (int argc, char **argv) fatal ("No read state given in plugin mode for %s", plugin_output_filename); - if (nb_plugin_files <= 0 || !plugin_files) + if (nb_plugin_files == 0 || !plugin_files) fatal ("No plugin files given in plugin mode for %s", plugin_output_filename);