Commit 78647e65 by Thomas Schwinge Committed by Thomas Schwinge

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
parent 43e06d03
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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment