semantics.c (258731) | semantics.c (260014) |
---|---|
1/* Perform the semantic phase of parsing, i.e., the process of 2 building tree structure, checking semantic consistency, and 3 building RTL. These routines are used both during actual parsing 4 and during the instantiation of template functions. 5 6 Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 7 Free Software Foundation, Inc. 8 Written by Mark Mitchell (mmitchell@usa.net) based on code found --- 690 unchanged lines hidden (view full) --- 699 finish_stmt (); 700 empty_body_warning (THEN_CLAUSE (if_stmt), ELSE_CLAUSE (if_stmt)); 701} 702 703/* Begin a while-statement. Returns a newly created WHILE_STMT if 704 appropriate. */ 705 706tree | 1/* Perform the semantic phase of parsing, i.e., the process of 2 building tree structure, checking semantic consistency, and 3 building RTL. These routines are used both during actual parsing 4 and during the instantiation of template functions. 5 6 Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 7 Free Software Foundation, Inc. 8 Written by Mark Mitchell (mmitchell@usa.net) based on code found --- 690 unchanged lines hidden (view full) --- 699 finish_stmt (); 700 empty_body_warning (THEN_CLAUSE (if_stmt), ELSE_CLAUSE (if_stmt)); 701} 702 703/* Begin a while-statement. Returns a newly created WHILE_STMT if 704 appropriate. */ 705 706tree |
707begin_while_stmt (void) | 707/* APPLE LOCAL begin for-fsf-4_4 3274130 5295549 */ \ 708begin_while_stmt (tree attribs) 709/* APPLE LOCAL end for-fsf-4_4 3274130 5295549 */ \ |
708{ 709 tree r; | 710{ 711 tree r; |
710 r = build_stmt (WHILE_STMT, NULL_TREE, NULL_TREE); | 712/* APPLE LOCAL begin for-fsf-4_4 3274130 5295549 */ \ 713 r = build_stmt (WHILE_STMT, NULL_TREE, NULL_TREE, attribs); 714/* APPLE LOCAL end for-fsf-4_4 3274130 5295549 */ \ |
711 add_stmt (r); 712 WHILE_BODY (r) = do_pushlevel (sk_block); 713 begin_cond (&WHILE_COND (r)); 714 return r; 715} 716 717/* Process the COND of a while-statement, which may be given by 718 WHILE_STMT. */ --- 13 unchanged lines hidden (view full) --- 732 WHILE_BODY (while_stmt) = do_poplevel (WHILE_BODY (while_stmt)); 733 finish_stmt (); 734} 735 736/* Begin a do-statement. Returns a newly created DO_STMT if 737 appropriate. */ 738 739tree | 715 add_stmt (r); 716 WHILE_BODY (r) = do_pushlevel (sk_block); 717 begin_cond (&WHILE_COND (r)); 718 return r; 719} 720 721/* Process the COND of a while-statement, which may be given by 722 WHILE_STMT. */ --- 13 unchanged lines hidden (view full) --- 736 WHILE_BODY (while_stmt) = do_poplevel (WHILE_BODY (while_stmt)); 737 finish_stmt (); 738} 739 740/* Begin a do-statement. Returns a newly created DO_STMT if 741 appropriate. */ 742 743tree |
740begin_do_stmt (void) | 744/* APPLE LOCAL begin for-fsf-4_4 3274130 5295549 */ \ 745begin_do_stmt (tree attribs) 746/* APPLE LOCAL end for-fsf-4_4 3274130 5295549 */ \ |
741{ | 747{ |
742 tree r = build_stmt (DO_STMT, NULL_TREE, NULL_TREE); | 748 /* APPLE LOCAL radar 4445586 */ 749/* APPLE LOCAL begin for-fsf-4_4 3274130 5295549 */ \ 750 tree r = build_stmt (DO_STMT, NULL_TREE, NULL_TREE, attribs, NULL_TREE); 751/* APPLE LOCAL end for-fsf-4_4 3274130 5295549 */ \ |
743 add_stmt (r); 744 DO_BODY (r) = push_stmt_list (); 745 return r; 746} 747 748/* Finish the body of a do-statement, which may be given by DO_STMT. */ 749 750void --- 47 unchanged lines hidden (view full) --- 798 finish_stmt (); 799 800 return r; 801} 802 803/* Begin a for-statement. Returns a new FOR_STMT if appropriate. */ 804 805tree | 752 add_stmt (r); 753 DO_BODY (r) = push_stmt_list (); 754 return r; 755} 756 757/* Finish the body of a do-statement, which may be given by DO_STMT. */ 758 759void --- 47 unchanged lines hidden (view full) --- 807 finish_stmt (); 808 809 return r; 810} 811 812/* Begin a for-statement. Returns a new FOR_STMT if appropriate. */ 813 814tree |
806begin_for_stmt (void) | 815/* APPLE LOCAL begin for-fsf-4_4 3274130 5295549 */ \ 816begin_for_stmt (tree attribs) 817/* APPLE LOCAL end for-fsf-4_4 3274130 5295549 */ \ |
807{ 808 tree r; 809 810 r = build_stmt (FOR_STMT, NULL_TREE, NULL_TREE, | 818{ 819 tree r; 820 821 r = build_stmt (FOR_STMT, NULL_TREE, NULL_TREE, |
811 NULL_TREE, NULL_TREE); | 822/* APPLE LOCAL begin for-fsf-4_4 3274130 5295549 */ \ 823 NULL_TREE, NULL_TREE, attribs); |
812 | 824 |
825/* APPLE LOCAL end for-fsf-4_4 3274130 5295549 */ \ 826 |
|
813 if (flag_new_for_scope > 0) 814 TREE_CHAIN (r) = do_pushlevel (sk_for); 815 816 if (processing_template_decl) 817 FOR_INIT_STMT (r) = push_stmt_list (); 818 819 return r; 820} --- 3140 unchanged lines hidden --- | 827 if (flag_new_for_scope > 0) 828 TREE_CHAIN (r) = do_pushlevel (sk_for); 829 830 if (processing_template_decl) 831 FOR_INIT_STMT (r) = push_stmt_list (); 832 833 return r; 834} --- 3140 unchanged lines hidden --- |