1 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
4 * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
6 2012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
9 * c-decl.c (warn_if_shadowing): Do not warn if a variable
10 shadows a function, unless the variable is a function or a
13 2012-10-12 Jakub Jelinek <jakub@redhat.com>
16 * c-parser.c (struct c_tree_loc_pair): Removed.
17 (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
18 add location_t * and tree * arguments, fill in array of 3
19 sizeof_arg trees and corresponding locs.
20 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
21 c_parser_expr_list callers.
22 (c_parser_postfix_expression_after_primary): Likewise. Pass
23 array of 3 sizeof_arg trees and locs (corresponding to first
24 3 arguments) to sizeof_pointer_memaccess_warning.
26 2012-10-09 Lawrence Crowl <crowl@google.com>
28 * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
29 * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
32 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
35 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
38 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
41 * c-typeck.c: Include c-common.h.
42 (enum stv_conv): Moved to c-common.h.
43 (scalar_to_vector): Moved to c-common.c.
44 (build_binary_op): Adapt to scalar_to_vector's new prototype.
45 * Make-lang.in: c-typeck.c depends on c-common.h.
47 2012-10-04 Arnaud Charlet <charlet@adacore.com>
49 * c-decl.c (c_write_global_declarations): Fix handling of
52 2012-09-30 Sharad Singhai <singhai@google.com>
54 * c-decl.c (c_write_global_declarations): Use a different method
55 to determine if the dump has ben initialized.
57 2012-09-14 Joseph Myers <joseph@codesourcery.com>
60 * c-typeck.c (c_cast_expr): When casting to a type requiring
61 C_MAYBE_CONST_EXPR to be created, pass the inner expression to
64 2012-09-14 Joseph Myers <joseph@codesourcery.com>
67 * c-typeck.c (build_unary_op): Pass original argument of
68 TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
69 any C_MAYBE_CONST_EXPR, if it has integer operands.
70 (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
71 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
72 to c_objc_common_truthvalue_conversion, then remove any
73 C_MAYBE_CONST_EXPR, if they have integer operands. Use
74 c_objc_common_truthvalue_conversion not
75 c_common_truthvalue_conversion.
76 (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
77 call note_integer_operands for arguments with integer operands
78 that are not integer constants.
80 2012-09-13 Jakub Jelinek <jakub@redhat.com>
83 * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
84 COMPLEX_TYPE with in_late_binary_op set temporarily to true.
86 2012-08-31 Jakub Jelinek <jakub@redhat.com>
89 * c-convert.c (convert): Don't call fold_convert_loc if
90 TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
91 is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
92 COMPLEX_TYPE -> COMPLEX_TYPE conversion.
94 2012-08-24 Jakub Jelinek <jakub@redhat.com>
97 * c-decl.c (c_parser_label): Pass true as nested and fix up comments
98 for nested and empty_ok arguments in the call to
99 c_parser_declaration_or_fndef.
101 2012-08-17 Jakub Jelinek <jakub@redhat.com>
103 * c-tree.h (c_last_sizeof_arg): Declare.
104 * c-parser.c (struct c_tree_loc_pair): New type.
105 (c_parser_expr_list): Add sizeof_arg argument. Fill it in if
107 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
108 (c_parser_postfix_expression_after_primary): Likewise. Call
109 sizeof_pointer_memaccess_warning if needed.
110 (sizeof_ptr_memacc_comptypes): New function.
111 * c-typeck.c (c_last_sizeof_arg): New global variable.
112 (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
114 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
116 * c-lang.h (lang_decl): Add variable_size GTY option.
118 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
120 * c-decl.c: Include dumpfile.h instead of tree-dump.h.
121 * Make-lang.in: Fix dependencies.
123 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
125 * Make-lang.in: New file, rules migrated from gcc/Makefile.in
126 and add language Makefile hooks.
127 * config-lang.in: New file.
128 * c-config-lang.in: Moved from gcc/config-lang.in to here, and
129 add the required "normal" config-lang.in rules.
130 * c-lang.h: Moved from gcc/ to here.
131 * c-tree.h: Likewise.
132 * c-objc-common.c: Likewise.
133 * c-objc-common.h: Likewise.
134 * c-typeck.c: Likewise.
135 * c-convert.c: Likewise.
136 * c-lang.c: Likewise.
137 * c-aux-info.c: Likewise.
138 * c-errors.c: Likewise.
139 * gccspec.c: Likewise.
140 * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h.
141 * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h.
143 Copyright (C) 2012 Free Software Foundation, Inc.
145 Copying and distribution of this file, with or without modification,
146 are permitted in any medium without royalty provided the copyright
147 notice and this notice are preserved.