aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2019-12-12 15:32:48 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2019-12-12 14:32:48 +0000
commit2fb1d6d65474998f9359203af9785f8613f3b622 (patch)
tree69fc2543f5143acf605be0793ec35ee1d946e67e
parent8d9cf0a3b3e5629be6ff87f0db8232867555ece8 (diff)
downloadgcc-2fb1d6d65474998f9359203af9785f8613f3b622.zip
gcc-2fb1d6d65474998f9359203af9785f8613f3b622.tar.gz
gcc-2fb1d6d65474998f9359203af9785f8613f3b622.tar.bz2
ipa-prop.c (read_ipcp_transformation_info): Fix undefined ordering of execution of function call parameters.
* ipa-prop.c (read_ipcp_transformation_info): Fix undefined ordering of execution of function call parameters. From-SVN: r279306
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/ipa-prop.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c9eb422..14d8dc9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2019-12-12 Jan Hubicka <hubicka@ucw.cz>
+
+ * ipa-prop.c (read_ipcp_transformation_info): Fix undefined ordering
+ of execution of function call parameters.
+
2019-12-12 Vineet Gupta <vgupta@synopsys.com>
* config/arc/arc-modes.def (CC_FPUE): New Mode CC_FPUE which
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c
index 547c2ed..1a59c35 100644
--- a/gcc/ipa-prop.c
+++ b/gcc/ipa-prop.c
@@ -5227,9 +5227,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;
}
}