From: Thomas Schwinge Date: Mon, 10 Aug 2015 15:22:24 +0000 (+0200) Subject: Correctly advance iterator in offloading machine mode stream reading X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78647e656d853937295d821974aca6176b4ea0e7;p=gcc.git 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 From-SVN: r226758 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f103d41933f..c51aaf995c5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-08-10 Thomas Schwinge + Ilya Verbin + + * lto-streamer-in.c (lto_input_mode_table): Correctly advance + iterator. + 2015-08-09 Manuel López-Ibáñez * 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 a56d3f3f8f4..299900ae379 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