From 78647e656d853937295d821974aca6176b4ea0e7 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Mon, 10 Aug 2015 17:22:24 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/lto-streamer-in.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- 2.30.2