diff options
author | Basile Starynkevitch <basile@starynkevitch.net> | 2010-10-18 05:41:48 +0000 |
---|---|---|
committer | Basile Starynkevitch <bstarynk@gcc.gnu.org> | 2010-10-18 05:41:48 +0000 |
commit | dad2226856d96ee6c0424ec4b908e39356a6e5b5 (patch) | |
tree | 29ce59a5f28d2d7f4247a82a30ab7e92062b8bbf | |
parent | 187d35188059584a3107e30fd7d3d5619a4a0e0a (diff) | |
download | gcc-dad2226856d96ee6c0424ec4b908e39356a6e5b5.zip gcc-dad2226856d96ee6c0424ec4b908e39356a6e5b5.tar.gz gcc-dad2226856d96ee6c0424ec4b908e39356a6e5b5.tar.bz2 |
gengtype.c (parse_program_options): Added allocation of plugin_files, and corrected test on nb_plugin_files.
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.
From-SVN: r165608
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/gengtype.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5bfe507..c84e66d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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. + 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com> Merge from 'apple/trunk' branch on FSF servers. diff --git a/gcc/gengtype.c b/gcc/gengtype.c index 612d21b..3133d65 100644 --- a/gcc/gengtype.c +++ b/gcc/gengtype.c @@ -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); |