]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Backport r279306
authorMartin Liska <mliska@suse.cz>
Thu, 9 Jan 2020 10:33:28 +0000 (11:33 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 9 Jan 2020 10:33:28 +0000 (10:33 +0000)
2020-01-09  Martin Liska  <mliska@suse.cz>

Backport from mainline
2019-12-12  Jan Hubicka  <hubicka@ucw.cz>

* ipa-prop.c (read_ipcp_transformation_info): Fix undefined ordering
of execution of function call parameters.

From-SVN: r280037

gcc/ChangeLog
gcc/ipa-prop.c

index 70fff31239bf399e7bc304151b35374cc4229f84..8653f88fbd4198e15a81d270d82b8e5b2ab87fea 100644 (file)
@@ -1,3 +1,11 @@
+2020-01-09  Martin Liska  <mliska@suse.cz>
+
+       Backport from mainline
+       2019-12-12  Jan Hubicka  <hubicka@ucw.cz>
+
+       * ipa-prop.c (read_ipcp_transformation_info): Fix undefined ordering
+       of execution of function call parameters.
+
 2020-01-08  Georg-Johann Lay  <avr@gjlay.de>
 
        Backport from 2020-01-08 trunk r279995.
index 848180aa441c88b23f947bf80b2348261b9e7140..40edee7951c18dbd34c7cd6630c8b1b7feee6709 100644 (file)
@@ -4715,9 +4715,10 @@ read_ipcp_transformation_info (lto_input_block *ib, cgraph_node *node,
          bool known = bp_unpack_value (&bp, 1);
          if (known)
            {
+             const widest_int value = streamer_read_widest_int (ib);
+             const widest_int mask = streamer_read_widest_int (ib);
              ipa_bits *bits
-               = ipa_get_ipa_bits_for_value (streamer_read_widest_int (ib),
-                                             streamer_read_widest_int (ib));
+               = ipa_get_ipa_bits_for_value (value, mask);
              (*ts->bits)[i] = bits;
            }
        }