Commit c9ab724f by Martin Liska Committed by Martin Liska

re PR ipa/68311 (gcc/ipa-icf.c:3041: possible sequence point error ?)

Fix PR ipa/68311

	PR ipa/68311
	* ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
	Replace ctor with auto_vec and initialization in a loop.

From-SVN: r230311
parent 52eab378
2015-11-13 Martin Liska <mliska@suse.cz>
PR ipa/68311
* ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
Replace ctor with auto_vec and initialization in a loop.
2015-11-13 Richard Biener <rguenther@suse.de>
PR tree-optimization/68306
......@@ -3046,7 +3046,9 @@ sem_item_optimizer::traverse_congruence_split (congruence_class * const &cls,
if (popcount > 0 && popcount < cls->members.length ())
{
congruence_class* newclasses[2] = { new congruence_class (class_id++), new congruence_class (class_id++) };
auto_vec <congruence_class *, 2> newclasses;
newclasses.quick_push (new congruence_class (class_id++));
newclasses.quick_push (new congruence_class (class_id++));
for (unsigned int i = 0; i < cls->members.length (); i++)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment