From: Jan Hubicka Date: Thu, 12 Dec 2019 14:32:48 +0000 (+0100) Subject: ipa-prop.c (read_ipcp_transformation_info): Fix undefined ordering of execution of... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2fb1d6d65474998f9359203af9785f8613f3b622;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c9eb4224d01..14d8dc9daec 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-12-12 Jan Hubicka + + * ipa-prop.c (read_ipcp_transformation_info): Fix undefined ordering + of execution of function call parameters. + 2019-12-12 Vineet Gupta * 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 547c2edef47..1a59c3554f5 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; } }