1 2013-05-16 Jason Merrill <jason@redhat.com>
3 * Make-lang.in (cc1$(exeext)): Use link mutex.
5 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7 * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
8 to simply use OPT_Wpointer_arith.
9 (build_unary_op): Likewise.
11 2013-04-03 Jakub Jelinek <jakub@redhat.com>
14 * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
15 argument. If set, or it temporarily for parsing of the first
16 argument into force_folding_builtin_constant_p.
17 (c_parser_postfix_expression): Adjust callers.
19 2013-03-21 Richard Biener <rguenther@suse.de>
21 * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
22 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
24 2013-02-12 Marek Polacek <polacek@redhat.com>
27 * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
30 2013-01-24 Jakub Jelinek <jakub@redhat.com>
33 * c-typeck.c (set_nonincremental_init_from_string): If
34 constructor_max_index is NULL, treat it as if tree_int_cst_lt
36 (process_init_element): Likewise.
38 2012-12-20 Jakub Jelinek <jakub@redhat.com>
41 * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
42 argument, don't call default_function_array_conversion
43 nor c_fully_fold here.
44 (c_parser_asm_statement): Adjust callers.
45 * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
46 and outputs here, and call default_function_array_conversion
47 on inputs that don't need to be addressable.
49 2012-12-18 Jakub Jelinek <jakub@redhat.com>
52 * c-typeck.c (convert_for_assignment): For -Wpointer-sign
53 warning require that both c_common_unsigned_type as well as
54 c_common_signed_type is the same for both mvl and mvr types.
56 2012-11-16 Diego Novillo <dnovillo@google.com>
58 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
60 * c-common.c: Use new vec API in vec.h.
61 * c-common.h: Likewise.
62 * c-gimplify.c: Likewise.
63 * c-pragma.c: Likewise.
64 * c-pretty-print.c: Likewise.
65 * c-pretty-print.h: Likewise.
66 * c-semantics.c: Likewise.
68 * c-parser.c: Likewise.
70 * c-typeck.c: Likewise.
72 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
75 * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
77 2012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
80 * c-decl.c (warn_if_shadowing): Do not warn if a variable
81 shadows a function, unless the variable is a function or a
84 2012-10-12 Jakub Jelinek <jakub@redhat.com>
87 * c-parser.c (struct c_tree_loc_pair): Removed.
88 (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
89 add location_t * and tree * arguments, fill in array of 3
90 sizeof_arg trees and corresponding locs.
91 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
92 c_parser_expr_list callers.
93 (c_parser_postfix_expression_after_primary): Likewise. Pass
94 array of 3 sizeof_arg trees and locs (corresponding to first
95 3 arguments) to sizeof_pointer_memaccess_warning.
97 2012-10-09 Lawrence Crowl <crowl@google.com>
99 * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
100 * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
103 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
106 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
109 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
112 * c-typeck.c: Include c-common.h.
113 (enum stv_conv): Moved to c-common.h.
114 (scalar_to_vector): Moved to c-common.c.
115 (build_binary_op): Adapt to scalar_to_vector's new prototype.
116 * Make-lang.in: c-typeck.c depends on c-common.h.
118 2012-10-04 Arnaud Charlet <charlet@adacore.com>
120 * c-decl.c (c_write_global_declarations): Fix handling of
123 2012-09-30 Sharad Singhai <singhai@google.com>
125 * c-decl.c (c_write_global_declarations): Use a different method
126 to determine if the dump has ben initialized.
128 2012-09-14 Joseph Myers <joseph@codesourcery.com>
131 * c-typeck.c (c_cast_expr): When casting to a type requiring
132 C_MAYBE_CONST_EXPR to be created, pass the inner expression to
135 2012-09-14 Joseph Myers <joseph@codesourcery.com>
138 * c-typeck.c (build_unary_op): Pass original argument of
139 TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
140 any C_MAYBE_CONST_EXPR, if it has integer operands.
141 (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
142 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
143 to c_objc_common_truthvalue_conversion, then remove any
144 C_MAYBE_CONST_EXPR, if they have integer operands. Use
145 c_objc_common_truthvalue_conversion not
146 c_common_truthvalue_conversion.
147 (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
148 call note_integer_operands for arguments with integer operands
149 that are not integer constants.
151 2012-09-13 Jakub Jelinek <jakub@redhat.com>
154 * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
155 COMPLEX_TYPE with in_late_binary_op set temporarily to true.
157 2012-08-31 Jakub Jelinek <jakub@redhat.com>
160 * c-convert.c (convert): Don't call fold_convert_loc if
161 TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
162 is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
163 COMPLEX_TYPE -> COMPLEX_TYPE conversion.
165 2012-08-24 Jakub Jelinek <jakub@redhat.com>
168 * c-decl.c (c_parser_label): Pass true as nested and fix up comments
169 for nested and empty_ok arguments in the call to
170 c_parser_declaration_or_fndef.
172 2012-08-17 Jakub Jelinek <jakub@redhat.com>
174 * c-tree.h (c_last_sizeof_arg): Declare.
175 * c-parser.c (struct c_tree_loc_pair): New type.
176 (c_parser_expr_list): Add sizeof_arg argument. Fill it in if
178 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
179 (c_parser_postfix_expression_after_primary): Likewise. Call
180 sizeof_pointer_memaccess_warning if needed.
181 (sizeof_ptr_memacc_comptypes): New function.
182 * c-typeck.c (c_last_sizeof_arg): New global variable.
183 (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
185 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
187 * c-lang.h (lang_decl): Add variable_size GTY option.
189 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
191 * c-decl.c: Include dumpfile.h instead of tree-dump.h.
192 * Make-lang.in: Fix dependencies.
194 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
196 * Make-lang.in: New file, rules migrated from gcc/Makefile.in
197 and add language Makefile hooks.
198 * config-lang.in: New file.
199 * c-config-lang.in: Moved from gcc/config-lang.in to here, and
200 add the required "normal" config-lang.in rules.
201 * c-lang.h: Moved from gcc/ to here.
202 * c-tree.h: Likewise.
203 * c-objc-common.c: Likewise.
204 * c-objc-common.h: Likewise.
205 * c-typeck.c: Likewise.
206 * c-convert.c: Likewise.
207 * c-lang.c: Likewise.
208 * c-aux-info.c: Likewise.
209 * c-errors.c: Likewise.
210 * gccspec.c: Likewise.
211 * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h.
212 * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h.
214 Copyright (C) 2012-2013 Free Software Foundation, Inc.
216 Copying and distribution of this file, with or without modification,
217 are permitted in any medium without royalty provided the copyright
218 notice and this notice are preserved.