]>
Commit | Line | Data |
---|---|---|
ce6923c5 MP |
1 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
2 | ||
3 | PR sanitizer/58411 | |
4 | * c-typeck.c (build_binary_op): Don't sanitize function if it has the | |
5 | no_sanitize_undefined attribute. | |
6 | ||
a1e51df9 KT |
7 | 2013-09-13 Kai Tietz <ktietz@redhat.com> |
8 | ||
9 | PR target/57848 | |
10 | * c-decl.c (c_builtin_function_ext_scope): Remove | |
11 | wrong assumption that it is never called on prexisting | |
12 | symbol. | |
13 | ||
0af94e6f JR |
14 | 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com> |
15 | ||
16 | * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p. | |
17 | ||
20059c8b GDR |
18 | 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
19 | ||
20 | * c-objc-common.c (c_tree_printer): Tidy. | |
21 | ||
de5a5fa1 MP |
22 | 2013-08-30 Marek Polacek <polacek@redhat.com> |
23 | ||
24 | * c-typeck.c (build_binary_op): Add division by zero and shift | |
25 | instrumentation. | |
26 | ||
2531a1d9 | 27 | 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com> |
0fdd4508 | 28 | Joseph Myers <joseph@codesourcery.com> |
2531a1d9 | 29 | |
6e2bcc98 | 30 | PR c/35649 |
2531a1d9 JR |
31 | * c-typeck.c (c_common_type): Prefer double_type_node over |
32 | other REAL_TYPE types with the same precision. | |
33 | (convert_arguments): Likewise. | |
34 | ||
025311c4 GDR |
35 | 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net> |
36 | ||
37 | * c-objc-common.c (c_tree_printer): Document the nature of the cast. | |
38 | (c_initialize_diagnostics): Call a destructor for the early printer. | |
39 | ||
da6ca2b5 GDR |
40 | 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
41 | ||
42 | * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty | |
43 | printer initialization. | |
44 | ||
318cda85 | 45 | 2013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com> |
da6ca2b5 | 46 | |
318cda85 BI |
47 | PR c/57490 |
48 | * c-array-notation.c (fix_conditional_array_notations_1): Added a | |
49 | check for truth values. | |
50 | (expand_array_notation_exprs): Added truth values case. Removed an | |
51 | unwanted else. Added for-loop to walk through subtrees in default | |
52 | case. | |
53 | ||
b066401f GDR |
54 | 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
55 | ||
56 | * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base. | |
57 | ||
fb48aadc JM |
58 | 2013-07-23 Joseph Myers <joseph@codesourcery.com> |
59 | ||
60 | * c-parser.c (struct c_generic_association): Fix typo. | |
61 | ||
433cc7b0 TT |
62 | 2013-07-23 Tom Tromey <tromey@redhat.com> |
63 | Joseph Myers <joseph@codesourcery.com> | |
64 | ||
65 | * c-parser.c (struct c_generic_association): New. | |
66 | (c_generic_association_d): New typedef. | |
67 | (c_parser_generic_selection): New function. | |
68 | (c_parser_postfix_expression): Handle RID_GENERIC. | |
69 | ||
26d40c3d JM |
70 | 2013-07-13 Jason Merrill <jason@redhat.com> |
71 | ||
72 | PR c++/57793 | |
73 | * c-decl.c (finish_struct): Check for too-large class. | |
74 | ||
40d3d530 JR |
75 | 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com> |
76 | ||
77 | PR c/57821 | |
78 | * c-typeck.c (set_init_index): When folding, check for index overflow. | |
79 | ||
1141ed3f BI |
80 | 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
81 | ||
82 | * c-parser.c (c_parser_array_notation): Removed rejection of array | |
83 | notations in an array of function pointers. | |
84 | ||
713b46fa BI |
85 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
86 | ||
87 | * c-array-notation.c (make_triplet_val_inv): New function. | |
88 | (create_cmp_incr): Likewise. | |
89 | (create_array_refs): Likewise. | |
90 | (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec. | |
91 | Also modularized common parts between functions and called the function. | |
92 | (build_array_notation_expr): Likewise. | |
93 | (fix_conditional_array_notations_1): Likewise. | |
94 | (fix_array_notation_expr): Likewise. | |
95 | (fix_array_notation_call_expr): Likewise. | |
96 | ||
92f20202 MP |
97 | 2013-06-18 Marek Polacek <polacek@redhat.com> |
98 | ||
99 | PR c/57630 | |
100 | * c-decl.c (check_for_loop_decls): Improve diagnostics messages. | |
101 | ||
73a23b06 BI |
102 | 2013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com> |
103 | ||
104 | * c-array-notation.c (build_array_notation_expr): Reject array notation | |
105 | mismatch between LHS and RHS even inside a call_expr. Also, removed | |
106 | a couple while statements that were dead code. | |
107 | ||
00b8517d BI |
108 | 2013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com> |
109 | ||
110 | * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded | |
111 | excessive precision expressions in function parameters. Also removed | |
112 | couple unwanted while statements. | |
113 | ||
1509bdda BI |
114 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
115 | ||
116 | * c-array-notation.c (expand_array_notation_exprs): Added | |
117 | ARRAY_NOTATION_REF case. | |
118 | ||
d60f1706 BI |
119 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
120 | ||
121 | * c-array-notation.c (length_mismatch_in_expr_p): Moved this | |
122 | function to c-family/array-notation-common.c. | |
123 | (is_cilkplus_reduce_builtin): Likewise. | |
124 | (find_rank): Likewise. | |
125 | (extract_array_notation_exprs): Likewise. | |
126 | (replace_array_notations): Likewise. | |
127 | (find_inv_trees): Likewise. | |
128 | (replace_inv_trees): Likewise. | |
129 | (contains_array_notation_expr): Likewise. | |
130 | (find_correct_array_notation_type): Likewise. | |
131 | (replace_invariant_exprs): Initialized additional_tcodes to NULL. | |
132 | (struct inv_list): Moved this to c-family/array-notation-common.c. | |
133 | * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype. | |
134 | ||
6d6efbb3 BI |
135 | 2013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com> |
136 | ||
137 | * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus | |
138 | reduction functions outside the for-loop. Added a check if the fundecl | |
139 | is non-NULL. Finally, removed an unwanted if-statement, and made the | |
140 | body unconditional. | |
141 | ||
25c22937 BI |
142 | 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com> |
143 | ||
144 | * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the | |
145 | condition of the if-statement matches the rank of else-block and then- | |
146 | block when array notations are used. | |
147 | * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation | |
148 | expression after the entire function body is parsed. | |
149 | (c_parser_expr_no_commas): Delayed creating array notation expressions | |
150 | to the end of function parsing. | |
151 | * c-array-notation.c (fix_conditional_array_notations_1): Expanded the | |
152 | whole if-statement instead of just the condition. | |
153 | (expand_array_notation_exprs): Added MODIFY_EXPR case. | |
154 | ||
edd25645 BI |
155 | 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com> |
156 | ||
157 | PR c/57474 | |
158 | * c-array-notation.c (build_array_notation_expr): Initialized rhs_length | |
159 | array to NULL_TREE if they are unused. Also added a check for the | |
160 | field to be NULL before its fields are used in future. | |
161 | ||
065ce7f1 RO |
162 | 2013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
163 | ||
164 | PR bootstrap/57450 | |
165 | * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi. | |
166 | (build_array_notation_expr): Likewise. | |
167 | ||
36536d79 BI |
168 | 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
169 | ||
170 | * c-typeck.c (build_array_ref): Added a check to see if array's | |
171 | index is greater than one. If true, then emit an error. | |
172 | (build_function_call_vec): Exclude error reporting and checking | |
173 | for builtin array-notation functions. | |
174 | (convert_arguments): Likewise. | |
175 | (c_finish_return): Added a check for array notations as a return | |
176 | expression. If true, then emit an error. | |
177 | (c_finish_loop): Added a check for array notations in a loop | |
178 | condition. If true then emit an error. | |
179 | (lvalue_p): Added a ARRAY_NOTATION_REF case. | |
180 | (build_binary_op): Added a check for array notation expr inside | |
181 | op1 and op0. If present, we call another function to find correct | |
182 | type. | |
183 | * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o. | |
184 | * c-parser.c (c_parser_compound_statement): Check if array | |
185 | notation code is used in tree, if so, then transform them into | |
186 | appropriate C code. | |
187 | (c_parser_expr_no_commas): Check if array notation is used in LHS | |
188 | or RHS, if so, then build array notation expression instead of | |
189 | regular modify. | |
190 | (c_parser_postfix_expression_after_primary): Added a check for | |
191 | colon(s) after square braces, if so then handle it like an array | |
192 | notation. Also, break up array notations in unary op if found. | |
193 | (c_parser_direct_declarator_inner): Added a check for array | |
194 | notation. | |
195 | (c_parser_compound_statement): Added a check for array notation in | |
196 | a stmt. If one is present, then expand array notation expr. | |
197 | (c_parser_if_statement): Likewise. | |
198 | (c_parser_switch_statement): Added a check for array notations in | |
199 | a switch statement's condition. If true, then output an error. | |
200 | (c_parser_while_statement): Similarly, but for a while. | |
201 | (c_parser_do_statement): Similarly, but for a do-while. | |
202 | (c_parser_for_statement): Similarly, but for a for-loop. | |
203 | (c_parser_unary_expression): Check if array notation is used in a | |
204 | pre-increment or pre-decrement expression. If true, then expand | |
205 | them. | |
206 | (c_parser_array_notation): New function. | |
207 | * c-array-notation.c: New file. | |
208 | * c-tree.h (is_cilkplus_reduce_builtin): Protoize. | |
209 | ||
cd192ccc MS |
210 | 2013-05-23 Mike Stump <mikestump@comcast.net> |
211 | ||
212 | * c-typeck.c (convert_for_assignment): Handle references to memory | |
213 | spaces better. | |
214 | ||
427b248d JM |
215 | 2013-05-16 Jason Merrill <jason@redhat.com> |
216 | ||
217 | * Make-lang.in (cc1$(exeext)): Use link mutex. | |
218 | ||
44d90fe1 PC |
219 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
220 | ||
221 | * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns | |
222 | to simply use OPT_Wpointer_arith. | |
223 | (build_unary_op): Likewise. | |
224 | ||
4e7d7b3d JJ |
225 | 2013-04-03 Jakub Jelinek <jakub@redhat.com> |
226 | ||
227 | PR c/19449 | |
228 | * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p | |
229 | argument. If set, or it temporarily for parsing of the first | |
230 | argument into force_folding_builtin_constant_p. | |
231 | (c_parser_postfix_expression): Adjust callers. | |
232 | ||
839b422f RB |
233 | 2013-03-21 Richard Biener <rguenther@suse.de> |
234 | ||
235 | * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P | |
236 | instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly. | |
237 | ||
2ee028f1 MP |
238 | 2013-02-12 Marek Polacek <polacek@redhat.com> |
239 | ||
240 | PR c/44938 | |
241 | * c-parser.c (c_parser_postfix_expression_after_primary): Initialize | |
242 | origtypes to NULL. | |
243 | ||
8824edff JJ |
244 | 2013-01-24 Jakub Jelinek <jakub@redhat.com> |
245 | ||
246 | PR c/56078 | |
247 | * c-typeck.c (set_nonincremental_init_from_string): If | |
248 | constructor_max_index is NULL, treat it as if tree_int_cst_lt | |
249 | returned false. | |
250 | (process_init_element): Likewise. | |
251 | ||
eadd3d0d JJ |
252 | 2012-12-20 Jakub Jelinek <jakub@redhat.com> |
253 | ||
254 | PR c++/55619 | |
255 | * c-parser.c (c_parser_asm_operands): Remove CONVERT_P | |
256 | argument, don't call default_function_array_conversion | |
257 | nor c_fully_fold here. | |
258 | (c_parser_asm_statement): Adjust callers. | |
259 | * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs | |
260 | and outputs here, and call default_function_array_conversion | |
261 | on inputs that don't need to be addressable. | |
262 | ||
f8a93a2e JJ |
263 | 2012-12-18 Jakub Jelinek <jakub@redhat.com> |
264 | ||
265 | PR c/39464 | |
266 | * c-typeck.c (convert_for_assignment): For -Wpointer-sign | |
267 | warning require that both c_common_unsigned_type as well as | |
268 | c_common_signed_type is the same for both mvl and mvr types. | |
269 | ||
9771b263 DN |
270 | 2012-11-16 Diego Novillo <dnovillo@google.com> |
271 | ||
272 | Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) | |
273 | ||
274 | * c-common.c: Use new vec API in vec.h. | |
275 | * c-common.h: Likewise. | |
276 | * c-gimplify.c: Likewise. | |
277 | * c-pragma.c: Likewise. | |
278 | * c-pretty-print.c: Likewise. | |
279 | * c-pretty-print.h: Likewise. | |
280 | * c-semantics.c: Likewise. | |
281 | * c-decl.c: Likewise. | |
282 | * c-parser.c: Likewise. | |
283 | * c-tree.h: Likewise. | |
284 | * c-typeck.c: Likewise. | |
285 | ||
880661a4 JW |
286 | 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com> |
287 | ||
288 | PR c++/54930 | |
289 | * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr. | |
290 | ||
077d1abe MLI |
291 | 2012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
292 | ||
293 | PR c/53066 | |
294 | * c-decl.c (warn_if_shadowing): Do not warn if a variable | |
295 | shadows a function, unless the variable is a function or a | |
296 | pointer-to-function. | |
297 | ||
3a785c97 JJ |
298 | 2012-10-12 Jakub Jelinek <jakub@redhat.com> |
299 | ||
300 | PR c/54381 | |
301 | * c-parser.c (struct c_tree_loc_pair): Removed. | |
302 | (c_parser_expr_list): Remove struct c_tree_loc_pair * argument, | |
303 | add location_t * and tree * arguments, fill in array of 3 | |
304 | sizeof_arg trees and corresponding locs. | |
305 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust | |
306 | c_parser_expr_list callers. | |
307 | (c_parser_postfix_expression_after_primary): Likewise. Pass | |
308 | array of 3 sizeof_arg trees and locs (corresponding to first | |
309 | 3 arguments) to sizeof_pointer_memaccess_warning. | |
310 | ||
703c8606 LC |
311 | 2012-10-09 Lawrence Crowl <crowl@google.com> |
312 | ||
313 | * Make-lang.in (c-decl.o): Add dependence on hash-table.h. | |
314 | * c-decl.c (detect_field_duplicates_hash): Change to new type-safe | |
315 | hash table. | |
316 | ||
5d9de0d0 PC |
317 | 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com> |
318 | ||
319 | PR c++/54194 | |
320 | * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses | |
321 | call. | |
322 | ||
a212e43f MG |
323 | 2012-10-09 Marc Glisse <marc.glisse@inria.fr> |
324 | ||
325 | PR c++/54427 | |
326 | * c-typeck.c: Include c-common.h. | |
327 | (enum stv_conv): Moved to c-common.h. | |
328 | (scalar_to_vector): Moved to c-common.c. | |
329 | (build_binary_op): Adapt to scalar_to_vector's new prototype. | |
330 | * Make-lang.in: c-typeck.c depends on c-common.h. | |
331 | ||
3b78de56 AC |
332 | 2012-10-04 Arnaud Charlet <charlet@adacore.com> |
333 | ||
334 | * c-decl.c (c_write_global_declarations): Fix handling of | |
335 | -fdump-ada-spec*. | |
336 | ||
78c60e3d SS |
337 | 2012-09-30 Sharad Singhai <singhai@google.com> |
338 | ||
339 | * c-decl.c (c_write_global_declarations): Use a different method | |
340 | to determine if the dump has ben initialized. | |
341 | ||
9f33203d JM |
342 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
343 | ||
344 | PR c/54552 | |
345 | * c-typeck.c (c_cast_expr): When casting to a type requiring | |
346 | C_MAYBE_CONST_EXPR to be created, pass the inner expression to | |
347 | c_fully_fold first. | |
348 | ||
a27d595d JM |
349 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
350 | ||
351 | PR c/54103 | |
352 | * c-typeck.c (build_unary_op): Pass original argument of | |
353 | TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove | |
354 | any C_MAYBE_CONST_EXPR, if it has integer operands. | |
355 | (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR, | |
356 | TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR | |
357 | to c_objc_common_truthvalue_conversion, then remove any | |
358 | C_MAYBE_CONST_EXPR, if they have integer operands. Use | |
359 | c_objc_common_truthvalue_conversion not | |
360 | c_common_truthvalue_conversion. | |
361 | (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and | |
362 | call note_integer_operands for arguments with integer operands | |
363 | that are not integer constants. | |
364 | ||
9feb29df JJ |
365 | 2012-09-13 Jakub Jelinek <jakub@redhat.com> |
366 | ||
367 | PR c/54559 | |
368 | * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or | |
369 | COMPLEX_TYPE with in_late_binary_op set temporarily to true. | |
370 | ||
d409320c JJ |
371 | 2012-08-31 Jakub Jelinek <jakub@redhat.com> |
372 | ||
373 | PR c/54428 | |
374 | * c-convert.c (convert): Don't call fold_convert_loc if | |
375 | TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e | |
376 | is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from | |
377 | COMPLEX_TYPE -> COMPLEX_TYPE conversion. | |
378 | ||
6265d07c JJ |
379 | 2012-08-24 Jakub Jelinek <jakub@redhat.com> |
380 | ||
381 | PR c/54355 | |
382 | * c-decl.c (c_parser_label): Pass true as nested and fix up comments | |
383 | for nested and empty_ok arguments in the call to | |
384 | c_parser_declaration_or_fndef. | |
385 | ||
1a4049e7 JJ |
386 | 2012-08-17 Jakub Jelinek <jakub@redhat.com> |
387 | ||
388 | * c-tree.h (c_last_sizeof_arg): Declare. | |
389 | * c-parser.c (struct c_tree_loc_pair): New type. | |
390 | (c_parser_expr_list): Add sizeof_arg argument. Fill it in if | |
391 | non-NULL. | |
392 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers. | |
393 | (c_parser_postfix_expression_after_primary): Likewise. Call | |
394 | sizeof_pointer_memaccess_warning if needed. | |
395 | (sizeof_ptr_memacc_comptypes): New function. | |
396 | * c-typeck.c (c_last_sizeof_arg): New global variable. | |
397 | (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it. | |
398 | ||
0229aee9 UB |
399 | 2012-07-24 Uros Bizjak <ubizjak@gmail.com> |
400 | ||
401 | * c-lang.h (lang_decl): Add variable_size GTY option. | |
402 | ||
7ee2468b SB |
403 | 2012-07-16 Steven Bosscher <steven@gcc.gnu.org> |
404 | ||
405 | * c-decl.c: Include dumpfile.h instead of tree-dump.h. | |
406 | * Make-lang.in: Fix dependencies. | |
407 | ||
d4a10d0a SB |
408 | 2012-06-29 Steven Bosscher <steven@gcc.gnu.org> |
409 | ||
410 | * Make-lang.in: New file, rules migrated from gcc/Makefile.in | |
411 | and add language Makefile hooks. | |
412 | * config-lang.in: New file. | |
413 | * c-config-lang.in: Moved from gcc/config-lang.in to here, and | |
414 | add the required "normal" config-lang.in rules. | |
415 | * c-lang.h: Moved from gcc/ to here. | |
416 | * c-tree.h: Likewise. | |
417 | * c-objc-common.c: Likewise. | |
418 | * c-objc-common.h: Likewise. | |
419 | * c-typeck.c: Likewise. | |
420 | * c-convert.c: Likewise. | |
421 | * c-lang.c: Likewise. | |
422 | * c-aux-info.c: Likewise. | |
423 | * c-errors.c: Likewise. | |
424 | * gccspec.c: Likewise. | |
425 | * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h. | |
426 | * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h. | |
427 | \f | |
d1e082c2 | 428 | Copyright (C) 2012-2013 Free Software Foundation, Inc. |
d4a10d0a SB |
429 | |
430 | Copying and distribution of this file, with or without modification, | |
431 | are permitted in any medium without royalty provided the copyright | |
432 | notice and this notice are preserved. |