Deleted Added
full compact
tree-cfg.c (222207) tree-cfg.c (260014)
1/* Control flow functions for trees.
2 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006
3 Free Software Foundation, Inc.
4 Contributed by Diego Novillo <dnovillo@redhat.com>
5
6This file is part of GCC.
7
8GCC is free software; you can redistribute it and/or modify

--- 1037 unchanged lines hidden (view full) ---

1046
1047 default:
1048 break;
1049 }
1050 }
1051
1052 for_each_eh_region (update_eh_label);
1053
1/* Control flow functions for trees.
2 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006
3 Free Software Foundation, Inc.
4 Contributed by Diego Novillo <dnovillo@redhat.com>
5
6This file is part of GCC.
7
8GCC is free software; you can redistribute it and/or modify

--- 1037 unchanged lines hidden (view full) ---

1046
1047 default:
1048 break;
1049 }
1050 }
1051
1052 for_each_eh_region (update_eh_label);
1053
1054 /* Finally, purge dead labels. All user-defined labels and labels that
1055 can be the target of non-local gotos and labels which have their
1056 address taken are preserved. */
1054/* APPLE LOCAL begin for-fsf-4_4 3274130 5295549 */ \
1055 /* Finally, purge dead labels. All user-defined labels, labels that
1056 can be the target of non-local gotos, labels which have their
1057 address taken and labels which have attributes or alignment are
1058 preserved. */
1059/* APPLE LOCAL end for-fsf-4_4 3274130 5295549 */ \
1057 FOR_EACH_BB (bb)
1058 {
1059 block_stmt_iterator i;
1060 tree label_for_this_bb = label_for_bb[bb->index];
1061
1062 if (! label_for_this_bb)
1063 continue;
1064
1065 for (i = bsi_start (bb); !bsi_end_p (i); )
1066 {
1067 tree label, stmt = bsi_stmt (i);
1068
1069 if (TREE_CODE (stmt) != LABEL_EXPR)
1070 break;
1071
1072 label = LABEL_EXPR_LABEL (stmt);
1073
1074 if (label == label_for_this_bb
1075 || ! DECL_ARTIFICIAL (label)
1060 FOR_EACH_BB (bb)
1061 {
1062 block_stmt_iterator i;
1063 tree label_for_this_bb = label_for_bb[bb->index];
1064
1065 if (! label_for_this_bb)
1066 continue;
1067
1068 for (i = bsi_start (bb); !bsi_end_p (i); )
1069 {
1070 tree label, stmt = bsi_stmt (i);
1071
1072 if (TREE_CODE (stmt) != LABEL_EXPR)
1073 break;
1074
1075 label = LABEL_EXPR_LABEL (stmt);
1076
1077 if (label == label_for_this_bb
1078 || ! DECL_ARTIFICIAL (label)
1079/* APPLE LOCAL begin for-fsf-4_4 3274130 5295549 */ \
1080 || DECL_ATTRIBUTES (label)
1081 || DECL_USER_ALIGN (label)
1082/* APPLE LOCAL end for-fsf-4_4 3274130 5295549 */ \
1076 || DECL_NONLOCAL (label)
1077 || FORCED_LABEL (label))
1078 bsi_next (&i);
1079 else
1080 bsi_remove (&i, true);
1081 }
1082 }
1083

--- 4800 unchanged lines hidden ---
1083 || DECL_NONLOCAL (label)
1084 || FORCED_LABEL (label))
1085 bsi_next (&i);
1086 else
1087 bsi_remove (&i, true);
1088 }
1089 }
1090

--- 4800 unchanged lines hidden ---