diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2015-08-10 17:22:24 +0200 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gcc.gnu.org> | 2015-08-10 17:22:24 +0200 |
commit | 78647e656d853937295d821974aca6176b4ea0e7 (patch) | |
tree | c31470dd0191777ec862477834b7c1bf599c9592 | |
parent | 43e06d03ef96cfb4ddce46edc29cc7c7b82bf2f0 (diff) | |
download | gcc-78647e656d853937295d821974aca6176b4ea0e7.zip gcc-78647e656d853937295d821974aca6176b4ea0e7.tar.gz gcc-78647e656d853937295d821974aca6176b4ea0e7.tar.bz2 |
Correctly advance iterator in offloading machine mode stream reading
gcc/
* lto-streamer-in.c (lto_input_mode_table): Correctly advance
iterator.
Co-Authored-By: Ilya Verbin <ilya.verbin@intel.com>
From-SVN: r226758
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/lto-streamer-in.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f103d41..c51aaf9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-08-10 Thomas Schwinge <thomas@codesourcery.com> + Ilya Verbin <ilya.verbin@intel.com> + + * lto-streamer-in.c (lto_input_mode_table): Correctly advance + iterator. + 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org> * doc/options.texi (EnabledBy): Document that the argument must be diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c index a56d3f3..299900a 100644 --- a/gcc/lto-streamer-in.c +++ b/gcc/lto-streamer-in.c @@ -1573,7 +1573,7 @@ lto_input_mode_table (struct lto_file_decl_data *file_data) for (machine_mode mr = pass ? VOIDmode : GET_CLASS_NARROWEST_MODE (mclass); pass ? mr < MAX_MACHINE_MODE : mr != VOIDmode; - pass ? mr = (machine_mode) (m + 1) + pass ? mr = (machine_mode) (mr + 1) : mr = GET_MODE_WIDER_MODE (mr)) if (GET_MODE_CLASS (mr) != mclass || GET_MODE_SIZE (mr) != size |