comparison gcc/passes.c @ 117:f81c5aa9f14f

fix
author mir3636
date Tue, 28 Nov 2017 21:17:15 +0900
parents ab0bcb71f44d
children d34655255c78
comparison
equal deleted inserted replaced
116:367f9f4f266e 117:f81c5aa9f14f
1539 : all_passes (NULL), all_small_ipa_passes (NULL), all_lowering_passes (NULL), 1539 : all_passes (NULL), all_small_ipa_passes (NULL), all_lowering_passes (NULL),
1540 all_regular_ipa_passes (NULL), 1540 all_regular_ipa_passes (NULL),
1541 all_late_ipa_passes (NULL), passes_by_id (NULL), passes_by_id_size (0), 1541 all_late_ipa_passes (NULL), passes_by_id (NULL), passes_by_id_size (0),
1542 m_ctxt (ctxt), m_name_to_pass_map (NULL) 1542 m_ctxt (ctxt), m_name_to_pass_map (NULL)
1543 { 1543 {
1544 <<<<<<< local
1545 opt_pass **p; 1544 opt_pass **p;
1546 1545
1547 /* Zero-initialize pass members. */ 1546 /* Zero-initialize pass members. */
1548 #define INSERT_PASSES_AFTER(PASS) 1547 #define INSERT_PASSES_AFTER(PASS)
1549 #define PUSH_INSERT_PASSES_WITHIN(PASS) 1548 #define PUSH_INSERT_PASSES_WITHIN(PASS)
1621 1620
1622 static void 1621 static void
1623 delete_pass_tree (opt_pass *pass) 1622 delete_pass_tree (opt_pass *pass)
1624 { 1623 {
1625 while (pass) 1624 while (pass)
1626 =======
1627 struct opt_pass **p;
1628
1629 #define NEXT_PASS(PASS) (p = next_pass_1 (p, &((PASS).pass)))
1630
1631 /* All passes needed to lower the function into shape optimizers can
1632 operate on. These passes are always run first on the function, but
1633 backend might produce already lowered functions that are not processed
1634 by these passes. */
1635 p = &all_lowering_passes;
1636 NEXT_PASS (pass_warn_unused_result);
1637 NEXT_PASS (pass_diagnose_omp_blocks);
1638 NEXT_PASS (pass_mudflap_1);
1639 NEXT_PASS (pass_lower_omp);
1640 NEXT_PASS (pass_lower_cf);
1641 NEXT_PASS (pass_refactor_eh);
1642 NEXT_PASS (pass_lower_eh);
1643 NEXT_PASS (pass_build_cfg);
1644
1645 #ifndef noCbC
1646 //NEXT_PASS (pass_warn_function_return);
1647 #else
1648 NEXT_PASS (pass_warn_function_return);
1649 #endif
1650 NEXT_PASS (pass_build_cgraph_edges);
1651 *p = NULL;
1652
1653 /* Interprocedural optimization passes. */
1654 p = &all_small_ipa_passes;
1655 NEXT_PASS (pass_ipa_free_lang_data);
1656 NEXT_PASS (pass_ipa_function_and_variable_visibility);
1657 NEXT_PASS (pass_early_local_passes);
1658 >>>>>>> other
1659 { 1625 {
1660 /* Recurse into child passes. */ 1626 /* Recurse into child passes. */
1661 delete_pass_tree (pass->sub); 1627 delete_pass_tree (pass->sub);
1662 1628
1663 opt_pass *next = pass->next; 1629 opt_pass *next = pass->next;