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
This commit is contained in:
Thomas Schwinge 2015-08-10 17:22:24 +02:00 committed by Thomas Schwinge
parent 43e06d03ef
commit 78647e656d
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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