Deleted Added
full compact
c-typeck.c (259666) c-typeck.c (260014)
1/* Build expressions with type checking for C compiler.
2 Copyright (C) 1987, 1988, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
3 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
4 Free Software Foundation, Inc.
5
6This file is part of GCC.
7
8GCC is free software; you can redistribute it and/or modify it under

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

1844 if (TREE_READONLY (datum) || TREE_READONLY (subdatum))
1845 TREE_READONLY (ref) = 1;
1846 if (TREE_THIS_VOLATILE (datum) || TREE_THIS_VOLATILE (subdatum))
1847 TREE_THIS_VOLATILE (ref) = 1;
1848
1849 if (TREE_DEPRECATED (subdatum))
1850 warn_deprecated_use (subdatum);
1851
1/* Build expressions with type checking for C compiler.
2 Copyright (C) 1987, 1988, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
3 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
4 Free Software Foundation, Inc.
5
6This file is part of GCC.
7
8GCC is free software; you can redistribute it and/or modify it under

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

1844 if (TREE_READONLY (datum) || TREE_READONLY (subdatum))
1845 TREE_READONLY (ref) = 1;
1846 if (TREE_THIS_VOLATILE (datum) || TREE_THIS_VOLATILE (subdatum))
1847 TREE_THIS_VOLATILE (ref) = 1;
1848
1849 if (TREE_DEPRECATED (subdatum))
1850 warn_deprecated_use (subdatum);
1851
1852 /* APPLE LOCAL begin "unavailable" attribute (radar 2809697) */
1853 if (TREE_UNAVAILABLE (subdatum))
1854 error_unavailable_use (subdatum);
1855 /* APPLE LOCAL end "unavailable" attribute (radar 2809697) */
1856
1852 datum = ref;
1853
1854 field = TREE_CHAIN (field);
1855 }
1856 while (field);
1857
1858 return ref;
1859 }

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

2085 }
2086
2087 if (TREE_TYPE (ref) == error_mark_node)
2088 return error_mark_node;
2089
2090 if (TREE_DEPRECATED (ref))
2091 warn_deprecated_use (ref);
2092
1857 datum = ref;
1858
1859 field = TREE_CHAIN (field);
1860 }
1861 while (field);
1862
1863 return ref;
1864 }

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

2090 }
2091
2092 if (TREE_TYPE (ref) == error_mark_node)
2093 return error_mark_node;
2094
2095 if (TREE_DEPRECATED (ref))
2096 warn_deprecated_use (ref);
2097
2098 /* APPLE LOCAL begin "unavailable" attribute (radar 2809697) */
2099 if (TREE_UNAVAILABLE (ref))
2100 error_unavailable_use (ref);
2101 /* APPLE LOCAL end "unavailable" attribute (radar 2809697) */
2102
2093 if (!skip_evaluation)
2094 assemble_external (ref);
2095 TREE_USED (ref) = 1;
2096
2097 if (TREE_CODE (ref) == FUNCTION_DECL && !in_alignof)
2098 {
2099 if (!in_sizeof && !in_typeof)
2100 C_DECL_USED (ref) = 1;

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

7242
7243 empty_body_warning (then_block, else_block);
7244
7245 stmt = build3 (COND_EXPR, void_type_node, cond, then_block, else_block);
7246 SET_EXPR_LOCATION (stmt, if_locus);
7247 add_stmt (stmt);
7248}
7249
2103 if (!skip_evaluation)
2104 assemble_external (ref);
2105 TREE_USED (ref) = 1;
2106
2107 if (TREE_CODE (ref) == FUNCTION_DECL && !in_alignof)
2108 {
2109 if (!in_sizeof && !in_typeof)
2110 C_DECL_USED (ref) = 1;

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

7252
7253 empty_body_warning (then_block, else_block);
7254
7255 stmt = build3 (COND_EXPR, void_type_node, cond, then_block, else_block);
7256 SET_EXPR_LOCATION (stmt, if_locus);
7257 add_stmt (stmt);
7258}
7259
7250/* Emit a general-purpose loop construct. START_LOCUS is the location of
7251 the beginning of the loop. COND is the loop condition. COND_IS_FIRST
7252 is false for DO loops. INCR is the FOR increment expression. BODY is
7253 the statement controlled by the loop. BLAB is the break label. CLAB is
7254 the continue label. Everything is allowed to be NULL. */
7260/* APPLE LOCAL begin for-fsf-4_4 3274130 5295549 */ \
7261/* Emit a general-purpose loop construct. START_LOCUS is the location
7262 of the beginning of the loop. COND is the loop condition.
7263 COND_IS_FIRST is false for DO loops. INCR is the FOR increment
7264 expression. BODY is the statement controlled by the loop. BLAB is
7265 the break label. CLAB is the continue label. ATTRS is the
7266 attributes associated with the loop, which at present are
7267 associated with the topmost label. Everything is allowed to be
7268 NULL. */
7255
7269
7270/* APPLE LOCAL end for-fsf-4_4 3274130 5295549 */ \
7256void
7257c_finish_loop (location_t start_locus, tree cond, tree incr, tree body,
7271void
7272c_finish_loop (location_t start_locus, tree cond, tree incr, tree body,
7258 tree blab, tree clab, bool cond_is_first)
7273/* APPLE LOCAL begin for-fsf-4_4 3274130 5295549 */ \
7274 tree blab, tree clab, tree attrs, bool cond_is_first)
7275/* APPLE LOCAL end for-fsf-4_4 3274130 5295549 */ \
7259{
7260 tree entry = NULL, exit = NULL, t;
7261
7262 /* If the condition is zero don't generate a loop construct. */
7263 if (cond && integer_zerop (cond))
7264 {
7265 if (cond_is_first)
7266 {

--- 1498 unchanged lines hidden ---
7276{
7277 tree entry = NULL, exit = NULL, t;
7278
7279 /* If the condition is zero don't generate a loop construct. */
7280 if (cond && integer_zerop (cond))
7281 {
7282 if (cond_is_first)
7283 {

--- 1498 unchanged lines hidden ---