]>
Commit | Line | Data |
---|---|---|
fa337f3a RB |
1 | 2014-01-30 Richard Biener <rguenther@suse.de> |
2 | ||
3 | PR c/59905 | |
4 | * c-typeck.c (build_function_call_vec): Do not replace calls | |
5 | to a function via an incompatible type with a runtime abort. | |
6 | ||
b72271b9 BI |
7 | 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com> |
8 | ||
9 | * c-parser.c (c_parser_declaration_or_fndef): Replaced | |
10 | flag_enable_cilkplus with flag_cilkplus. | |
11 | (c_parser_direct_declarator_inner): Likewise. | |
12 | (c_parser_attribute_any_word): Likewise. | |
13 | (c_parser_attributes): Likewise. | |
14 | (c_parser_compound_statement): Likewise. | |
15 | (c_parser_statement_after_labels): Likewise. | |
16 | (c_parser_if_statement): Likewise. | |
17 | (c_parser_switch_statement): Likewise. | |
18 | (c_parser_do_statement): Likewise. | |
19 | (c_parser_for_statement): Likewise. | |
20 | (c_parser_unary_expression): Likewise. | |
21 | (c_parser_postfix_expression): Likewise. | |
22 | (c_parser_postfix_expression_after_primary): Likewise. | |
23 | (c_parser_postfix_expression_after_primary): Likewise. | |
24 | (c_parser_omp_clause_name): Likewise. | |
25 | (c_finish_omp_declare_simd): Likewise. | |
26 | (c_parser_cilk_verify_simd): Likewise. | |
27 | * c-typeck.c (build_array_ref): Likewise. | |
28 | (build_function_call_vec): Likewise. | |
29 | (convert_arguments): Likewise. | |
30 | (build_compound_expr): Likewise. | |
31 | (c_finish_return): Likewise. | |
32 | (c_finish_if_stmt): Likewise. | |
33 | (c_finish_loop): Likewise. | |
34 | (build_binary_op): Likewise. | |
35 | ||
393e8e8b MP |
36 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
37 | ||
38 | PR c/59846 | |
39 | * c-typeck.c (parser_build_binary_op): Use location instead of | |
40 | input_location. | |
41 | (build_binary_op): Pass location to shorten_compare. | |
42 | ||
f04dda30 MP |
43 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
44 | ||
45 | PR c/58346 | |
46 | * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to | |
47 | an empty aggregate. | |
48 | ||
789eadcd MP |
49 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
50 | ||
51 | PR c/59871 | |
52 | * c-typeck.c (build_compound_expr): Warn even for right-hand operand | |
53 | of a comma expression. | |
54 | (emit_side_effect_warnings): Likewise. | |
55 | ||
40f14e9f BI |
56 | 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com> |
57 | ||
58 | PR c/59825 | |
59 | * c-array-notation.c (expand_array_notation_exprs): Rewrote this | |
60 | function to use walk_tree and moved a lot of its functionality to | |
61 | expand_array_notations. | |
62 | (expand_array_notations): New function. | |
63 | ||
74558dd9 BI |
64 | 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com> |
65 | ||
66 | * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function" | |
67 | attribute an attribute without value. | |
68 | ||
652fea39 JJ |
69 | 2014-01-23 Jakub Jelinek <jakub@redhat.com> |
70 | ||
71 | PR middle-end/58809 | |
72 | * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR, | |
73 | BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs. | |
74 | ||
f34f1c87 MP |
75 | 2014-01-22 Marek Polacek <polacek@redhat.com> |
76 | ||
77 | PR c/59891 | |
78 | * c-typeck.c (build_conditional_expr): Call c_fully_fold instead | |
79 | of remove_c_maybe_const_expr on op1 and op2. | |
80 | ||
241f845a JJ |
81 | 2014-01-15 Jakub Jelinek <jakub@redhat.com> |
82 | ||
83 | PR c/58943 | |
84 | * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side | |
85 | effects, preevaluate rhs using SAVE_EXPR first. | |
86 | ||
9a74f20c BI |
87 | 2014-01-09 Balaji V. Iyer <balaji.v.iyer@intel.com> |
88 | ||
89 | PR c++/59631 | |
90 | * c-parser.c (c_parser_postfix_expression): Replaced consecutive if | |
91 | statements with if-elseif statements. | |
92 | ||
96066ce1 MP |
93 | 2014-01-06 Marek Polacek <polacek@redhat.com> |
94 | ||
95 | PR c/57773 | |
96 | * c-decl.c (check_bitfield_type_and_width): Warn for implementation | |
97 | defined bit-field types only in ISO C. | |
98 | ||
23a5b65a RS |
99 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
100 | ||
101 | Update copyright years | |
102 | ||
f9030485 RS |
103 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
104 | ||
105 | * c-array-notation.c: Use the standard form for the copyright notice. | |
106 | ||
41958c28 BI |
107 | 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com> |
108 | ||
109 | * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field. | |
110 | (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens | |
111 | field in parser is not empty. If not-empty, call the function | |
112 | c_parser_finish_omp_declare_simd. | |
113 | (c_parser_cilk_clause_vectorlength): Modified function to be shared | |
114 | between SIMD-enabled functions and #pragma simd. Added new parameter. | |
115 | (c_parser_cilk_all_clauses): Modified the usage of the function | |
116 | c_parser_cilk_clause_vectorlength as mentioned above. | |
117 | (c_parser_cilk_simd_fn_vector_attrs): New function. | |
118 | (c_finish_cilk_simd_fn_tokens): Likewise. | |
119 | (is_cilkplus_vector_p): Likewise. | |
120 | (c_parser_omp_clause_name): Added checking for "vectorlength," | |
121 | "nomask," and "mask" strings in clause name. | |
122 | (c_parser_omp_all_clauses): Added 3 new case statements: | |
123 | PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and | |
124 | PRAGMA_CILK_CLAUSE_NOMASK. | |
125 | (c_parser_attributes): Added a cilk_simd_fn_tokens parameter. Added a | |
126 | check for vector attribute and if so call the function | |
127 | c_parser_cilk_simd_fn_vector_attrs. Also, when Cilk plus is enabled, | |
128 | called the function c_finish_cilk_simd_fn_tokens. | |
129 | (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in | |
130 | parser field is non-empty. If so, parse them as you would parse | |
131 | the omp declare simd pragma. | |
132 | (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn. | |
133 | Added a check when step is a parameter and flag it as error. | |
134 | (CILK_SIMD_FN_CLAUSE_MASK): New #define. | |
135 | (c_parser_cilk_clause_name): Changed pragma_cilk_clause to | |
136 | pragma_omp_clause. | |
137 | ||
cef0fd0e TS |
138 | 2013-12-17 Thomas Schwinge <thomas@codesourcery.com> |
139 | ||
140 | * c-parser.c (c_parser_omp_parallel): Fix description. | |
141 | ||
12893402 BI |
142 | 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com> |
143 | ||
144 | * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove. | |
145 | (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise. | |
146 | (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise. | |
147 | * c-typeck.c (cilk_install_body_with_frame_cleanup): New function. | |
148 | ||
296674db JM |
149 | 2013-12-04 Joseph Myers <joseph@codesourcery.com> |
150 | ||
151 | PR c/52023 | |
152 | * c-parser.c (c_parser_alignas_specifier): Use | |
153 | c_sizeof_or_alignof_type instead of c_alignof. | |
154 | (c_parser_alignof_expression): Likewise, with min_alignof | |
155 | parameter depending on alignof spelling used. | |
156 | ||
edd28054 MP |
157 | 2013-12-04 Marek Polacek <polacek@redhat.com> |
158 | ||
159 | PR c/54113 | |
160 | * c-decl.c (start_function): Don't warn for missing prototype for | |
161 | inline functions. | |
162 | ||
da0fc454 MP |
163 | 2013-12-03 Marek Polacek <polacek@redhat.com> |
164 | ||
165 | PR c/59351 | |
166 | * c-decl.c (build_compound_literal): Allow compound literals with | |
167 | empty initial value. | |
168 | ||
4c2ecab0 JM |
169 | 2013-12-02 Joseph Myers <joseph@codesourcery.com> |
170 | ||
171 | PR c/58235 | |
172 | * c-typeck.c (build_modify_expr): Diagnose assignment to | |
173 | expression with array type. | |
174 | ||
340baef7 JM |
175 | 2013-11-29 Joseph Myers <joseph@codesourcery.com> |
176 | ||
177 | PR c/42262 | |
178 | * c-typeck.c (process_init_element): Do not treat a string as | |
179 | initializing a whole array when used with a designator for an | |
180 | individual element. | |
181 | ||
6763b9f7 JM |
182 | 2013-11-29 Joseph Myers <joseph@codesourcery.com> |
183 | ||
184 | PR c/57574 | |
185 | * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of | |
186 | an inline function following a static declaration. | |
187 | ||
e7bd1de1 JJ |
188 | 2013-11-28 Jakub Jelinek <jakub@redhat.com> |
189 | ||
190 | PR c/59310 | |
191 | * c-parser.c (c_parser_omp_target): Copy "#pragma omp target" | |
192 | to p_name before calling c_parser_omp_teams instead of after. | |
193 | (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser | |
194 | argument. Remove unused p_name variable. | |
195 | ||
0136f8f0 AH |
196 | 2013-11-27 Aldy Hernandez <aldyh@redhat.com> |
197 | Jakub Jelinek <jakub@redhat.com> | |
198 | ||
199 | * c-decl.c (c_builtin_function_ext_scope): Avoid binding if | |
200 | external_scope is NULL. | |
201 | ||
241b71bb TV |
202 | 2013-11-27 Tom de Vries <tom@codesourcery.com> |
203 | Marc Glisse <marc.glisse@inria.fr> | |
204 | ||
205 | PR c++/59032 | |
206 | * c-typeck.c (build_unary_op): Allow vector increment and decrement. | |
207 | ||
2fb9a547 AM |
208 | 2013-11-22 Andrew MacLeod <amacleod@redhat.com> |
209 | ||
210 | * c-typeck.c: Add required include files from gimple.h. | |
211 | ||
8400e75e DM |
212 | 2013-11-22 David Malcolm <dmalcolm@redhat.com> |
213 | ||
214 | * c-decl.c (define_label, shadow_tag_warned) | |
215 | (check_bitfield_type_and_width, grokdeclarator, grokparms, | |
216 | store_parm_decls_newstyle, store_parm_decls_oldstyle) | |
217 | (declspecs_add_type): Remove use of in_system_header macro. | |
218 | * c-parser.c (c_parser_unary_expression): Likewise. | |
219 | * c-typeck.c (store_init_value, process_init_element) | |
220 | (c_start_case): Likewise. | |
221 | ||
222 | * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE | |
223 | macro. | |
224 | ||
225 | * c-parser.c (c_parser_set_source_position_from_token): Remove | |
226 | reference to in_system_header from comment. | |
227 | ||
386b1f1f RS |
228 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
229 | ||
230 | * c-decl.c (grokdeclarator): Update comment to refer to | |
231 | tree_to_[su]hwi rather than tree_low_cst. | |
232 | ||
ae7e9ddd RS |
233 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
234 | ||
235 | * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with | |
236 | tree_to_uhwi throughout. | |
237 | ||
9439e9a1 RS |
238 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
239 | ||
240 | * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi | |
241 | throughout. | |
242 | ||
9541ffee RS |
243 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
244 | ||
245 | * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p | |
246 | throughout. | |
247 | ||
c02065fc AH |
248 | 2013-11-15 Aldy Hernandez <aldyh@redhat.com> |
249 | ||
250 | * c-parser.c (c_parser_cilk_simd): New. | |
251 | (c_parser_cilk_verify_simd): New. | |
252 | (c_parser_pragma): Add case for PRAGMA_CILK_SIMD. | |
253 | (c_parser_omp_for_loop): Add case for NE_EXPR. | |
254 | Set c_break_label for CILK_SIMD. | |
255 | (c_parser_cilk_clause_vectorlength): New. | |
256 | (c_parser_cilk_clause_linear): New. | |
257 | (c_parser_cilk_clause_name): New. | |
258 | (c_parser_cilk_all_clauses): New. | |
259 | * c-typeck.c (build_unary_op): Pass location argument to | |
260 | readonly_error. | |
261 | (build_modify_expr): Same. | |
262 | (build_asm_expr): Same. | |
263 | (c_finish_bc_stmt): Error on break/continue in loops. | |
264 | ||
18f429e2 AM |
265 | 2013-11-14 Andrew MacLeod <amacleod@redhat.com> |
266 | ||
267 | * c-typeck.c: Include only gimplify.h and gimple.h as needed. | |
268 | ||
d8a2d370 DN |
269 | 2013-11-14 Diego Novillo <dnovillo@google.com> |
270 | ||
271 | * c-decl.c: Include print-tree.h. | |
272 | Include stor-layout.h. | |
273 | Include varasm.h. | |
274 | Include attribs.h. | |
275 | Include stringpool.h. | |
276 | * c-lang.c: Include fold-const.h. | |
277 | * c-parser.c: Include stringpool.h. | |
278 | Include attribs.h. | |
279 | Include stor-layout.h. | |
280 | Include varasm.h. | |
281 | Include trans-mem.h. | |
282 | * c-typeck.c: Include stor-layout.h. | |
283 | Include trans-mem.h. | |
284 | Include varasm.h. | |
285 | Include stmt.h. | |
286 | ||
38b7bc7f JM |
287 | 2013-11-13 Joseph Myers <joseph@codesourcery.com> |
288 | ||
289 | * c-tree.h (c_typespec_keyword): Add cts_auto_type. | |
290 | * c-decl.c (declspecs_add_type, finish_declspecs): Handle | |
291 | __auto_type. | |
292 | * c-parser.c (c_token_starts_typename, c_token_starts_declspecs) | |
293 | (c_parser_attribute_any_word, c_parser_objc_selector): Handle | |
294 | RID_AUTO_TYPE. | |
295 | (c_parser_declspecs): Take argument AUTO_TYPE_OK. | |
296 | (c_parser_declaration_or_fndef, c_parser_struct_declaration) | |
297 | (c_parser_declarator, c_parser_direct_declarator_inner) | |
298 | (c_parser_parameter_declaration, c_parser_type_name): All callers | |
299 | changed. | |
300 | (c_parser_declaration_or_fndef): Handle declarations with type | |
301 | determined from the initializer. | |
302 | ||
45b0be94 AM |
303 | 2013-11-12 Andrew MacLeod <amacleod@redhat.com> |
304 | ||
18f429e2 | 305 | * c-typeck.c: Include gimplify.h. |
45b0be94 | 306 | |
582d9b50 JM |
307 | 2013-11-12 Joseph Myers <joseph@codesourcery.com> |
308 | ||
309 | * c-tree.h (struct c_declspecs): Add thread_gnu_p field. | |
310 | * c-parser.c (c_parser_declspecs): Mention _Thread_local in | |
311 | comment. | |
312 | * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread | |
313 | or _Thread_local as appropriate in diagnostics. | |
314 | (build_null_declspecs): Initialize ret->thread_gnu_p. | |
315 | (declspecs_add_scspec): Handle either __thread or _Thread_local | |
316 | for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if | |
317 | pedantic. Do not disallow _Thread_local extern and _Thread_local | |
318 | static. | |
319 | ||
267bac10 JM |
320 | 2013-11-07 Joseph Myers <joseph@codesourcery.com> |
321 | Andrew MacLeod <amacleod@redhat.com> | |
322 | ||
323 | * c-aux-info.c (gen_type): Handle atomic qualifier. | |
324 | * c-decl.c (validate_proto_after_old_defn): Do not remove atomic | |
325 | qualifiers when compating types. | |
326 | (shadow_tag_warned): Handle atomic_p in declspecs. | |
327 | (quals_from_declspecs): Likewise. | |
328 | (start_decl): Use c_type_promotes_to when promoting argument | |
329 | types. | |
330 | (grokdeclarator): Handle _Atomic. | |
331 | (get_parm_info): Diagnose any qualifier on "void" as only | |
332 | parameter. | |
333 | (store_parm_decls_oldstyle): Do not remove atomic qualifiers when | |
334 | comparing types. Use c_type_promotes_to when promoting argument | |
335 | types. | |
336 | (finish_function): Use c_type_promotes_to when promoting argument | |
337 | types. | |
338 | (build_null_declspecs): Handle atomic_p in declspecs. | |
339 | (declspecs_add_qual): Handle RID_ATOMIC. | |
340 | * c-parser.c (c_token_starts_typename, c_token_is_qualifier) | |
341 | (c_token_starts_declspecs): Handle RID_ATOMIC. | |
342 | (c_parser_declspecs): Handle atomic type specifiers and | |
343 | qualifiers. | |
344 | (c_parser_typeof_specifier): Remove const and _Atomic qualifiers | |
345 | from types of expressions with atomic type. | |
346 | (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue. | |
347 | (c_parser_attribute_any_word): Handle RID_ATOMIC. | |
348 | (c_parser_initializer, c_parser_initelt, c_parser_initval) | |
349 | (c_parser_statement_after_labels, c_parser_switch_statement) | |
350 | (c_parser_for_statement, c_parser_expr_no_commas) | |
351 | (c_parser_conditional_expression, c_parser_binary_expression) | |
352 | (c_parser_cast_expression, c_parser_unary_expression) | |
353 | (c_parser_postfix_expression) | |
354 | (c_parser_postfix_expression_after_primary, c_parser_expression): | |
355 | Use convert_lvalue_to_rvalue. | |
356 | (c_parser_expression_conv, c_parser_expr_list): Document | |
357 | conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue. | |
358 | (c_parser_objc_synchronized_statement): Use | |
359 | convert_lvalue_to_rvalue. | |
360 | (c_parser_objc_selector): Handle RID_ATOMIC. | |
361 | (c_parser_objc_receiver, c_parser_array_notation): Use | |
362 | convert_lvalue_to_rvalue. | |
363 | * c-tree.h (ctsk_typeof): Adjust comment to mention use for | |
364 | _Atomic (type-name). | |
365 | (struct c_declspecs): Add atomic_p field. | |
366 | (convert_lvalue_to_rvalue): Declare. | |
367 | * c-typeck.c (c_type_promotes_to): Promote atomic types to | |
368 | corresponding atomic types. | |
369 | (qualify_type): Don't add _Atomic qualifiers from second argument. | |
370 | (comp_target_types): Do not allow _Atomic mismatches. | |
371 | (type_lists_compatible_p): Do not remove atomic qualifiers when | |
372 | comparing types. | |
373 | (really_atomic_lvalue, convert_lvalue_to_rvalue) | |
374 | (build_atomic_assign): New functions. | |
375 | (build_unary_op): Use build_atomic_assign for atomic increment and | |
376 | decrement. | |
377 | (build_conditional_expr): Do not treat _Atomic void as a qualified | |
378 | version of void. | |
379 | (build_modify_expr): Use build_atomic_assign for atomic LHS. | |
380 | (find_anonymous_field_with_type, convert_to_anonymous_field) | |
381 | (convert_for_assignment): Do not remove atomic qualifiers when | |
382 | comparing types. | |
383 | (digest_init): Do not accept initialization of arrays of atomic | |
384 | elements by string constants. | |
385 | (build_asm_expr): Use convert_lvalue_to_rvalue. | |
386 | (build_binary_op): Do not treat _Atomic void as a qualified | |
387 | version of void. | |
388 | ||
0c249d4b DD |
389 | 2013-11-06 DJ Delorie <dj@redhat.com> |
390 | ||
391 | * c-decl.c (locate_old_decl): If a previous conflicting decl is | |
392 | both explicit and builtin, print the location of the explicit one. | |
393 | ||
6d7f7e0a TB |
394 | 2013-11-05 Tobias Burnus <burnus@net-b.de> |
395 | ||
396 | * c-parser.c (c_parser_omp_for, c_parser_omp_parallel, | |
397 | c_parser_omp_distribute, c_parser_omp_teams, | |
398 | c_parser_omp_target, c_parser_omp_declare): Handle | |
399 | -fopenmp-simd. | |
400 | ||
b906f4ca MP |
401 | 2013-11-03 Marek Polacek <polacek@redhat.com> |
402 | ||
403 | * c-decl.c (grokdeclarator): Add VLA instrumentation. | |
404 | ||
ee1d5a02 JJ |
405 | 2013-11-01 Jakub Jelinek <jakub@redhat.com> |
406 | ||
407 | * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to | |
408 | check_dup_generic at the end, unless remove is true. | |
409 | (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after | |
410 | remove = true;. | |
411 | (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise. | |
412 | ||
5a9785fb JJ |
413 | 2013-10-31 Jakub Jelinek <jakub@redhat.com> |
414 | ||
415 | * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause | |
416 | with decl that is not pointer nor array. | |
417 | ||
939b37da BI |
418 | 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com> |
419 | ||
420 | * c-decl.c (finish_function): Added a call for insert_cilk_frame when | |
421 | a spawning function is found. | |
422 | * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define. | |
423 | (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise. | |
424 | (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise. | |
425 | * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC | |
426 | case. | |
427 | (c_parser_postfix_expression): Added RID_CILK_SPAWN case. | |
428 | * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma | |
429 | expr. | |
430 | (c_finish_return): Added a check to reject _Cilk_spawn in return | |
431 | expression. | |
432 | (build_cilk_spawn): New function. | |
433 | (build_cilk_sync): Likewise. | |
434 | * Makefile.in (c-decl.o): Added cilk.h in dependency list. | |
435 | ||
d4af74d4 TB |
436 | 2013-10-27 Tobias Burnus <burnus@net-b.de> |
437 | ||
438 | PR other/33426 | |
439 | * c-parser.c (c_parser_while_statement, c_parser_while_statement, | |
440 | c_parser_pragma): Add GCC ivdep support to 'do' and 'while'. | |
441 | (c_parser_statement_after_labels): Update calls. | |
442 | ||
d73749df | 443 | 2013-10-24 Tobias Burnus <burnus@net-b.de> |
8170608b TB |
444 | |
445 | PR other/33426 | |
446 | * c-parser.c (c_parser_pragma, c_parser_for_statement): | |
447 | Handle PRAGMA_IVDEP. | |
448 | (c_parser_statement_after_labels): Update call. | |
449 | ||
f28aa681 MP |
450 | 2013-10-24 Marek Polacek <polacek@redhat.com> |
451 | ||
452 | * c-parser.c (c_parser_struct_declaration): Add a comment. | |
453 | (c_parser_declarator): Don't allow _Alignas here. | |
454 | ||
0645c1a2 AM |
455 | 2013-10-17 Andrew MacLeod <amacleod@redhat.com> |
456 | ||
457 | * c-parser.c: Include omp-low.h. | |
458 | * c-typeck.c: Likewise. | |
459 | ||
568a31f2 MP |
460 | 2013-10-17 Marek Polacek <polacek@redhat.com> |
461 | ||
462 | PR c/58267 | |
463 | * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter. | |
464 | Document syntax of the array-declarator. | |
465 | (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs | |
466 | are not permitted. | |
467 | (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call. | |
468 | (c_parser_struct_declaration): Likewise. | |
469 | (c_parser_declarator): Likewise. | |
470 | (c_parser_direct_declarator_inner): Likewise. | |
471 | (c_parser_parameter_declaration): Likewise. | |
472 | (c_parser_type_name): Likewise. | |
473 | ||
acf0174b JJ |
474 | 2013-10-11 Jakub Jelinek <jakub@redhat.com> |
475 | ||
476 | * c-lang.h (current_omp_declare_target_attribute): New extern | |
477 | decl. | |
478 | * c-parser.c: Include c-lang.h. | |
479 | (struct c_parser): Change tokens to c_token *. | |
480 | Add tokens_buf field. Change tokens_avail type to unsigned int. | |
481 | (c_parser_consume_token): If parser->tokens isn't | |
482 | &parser->tokens_buf[0], increment parser->tokens. | |
483 | (c_parser_consume_pragma): Likewise. | |
484 | (enum pragma_context): Add pragma_struct and pragma_param. | |
485 | (c_parser_external_declaration): Adjust | |
486 | c_parser_declaration_or_fndef caller. | |
487 | (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses | |
488 | argument, if it is non-vNULL vector, call c_finish_omp_declare_simd. | |
489 | Adjust recursive call. | |
490 | (c_parser_struct_or_union_specifier): Use pragma_struct instead | |
491 | of pragma_external. | |
492 | (c_parser_parameter_declaration): Use pragma_param instead of | |
493 | pragma_external. | |
494 | (c_parser_compound_statement_nostart, c_parser_label, | |
495 | c_parser_for_statement): Adjust | |
496 | c_parser_declaration_or_fndef callers. | |
497 | (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass | |
498 | it through to c_parser_conditional_expression. | |
499 | (c_parser_conditional_expression): Add omp_atomic_lhs argument, | |
500 | pass it through to c_parser_binary_expression. Adjust recursive | |
501 | call. | |
502 | (c_parser_binary_expression): Remove prec argument, add | |
503 | omp_atomic_lhs argument instead. Always start from PREC_NONE, if | |
504 | omp_atomic_lhs is non-NULL and one of the arguments of toplevel | |
505 | binop matches it, use build2 instead of parser_build_binary_op. | |
506 | (c_parser_pragma): Handle PRAGMA_OMP_CANCEL, | |
507 | PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET, | |
508 | PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION. | |
509 | Handle pragma_struct and pragma_param the same as pragma_external. | |
510 | (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names. | |
511 | (c_parser_omp_variable_list): Parse array sections for | |
512 | OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses. | |
513 | (c_parser_omp_clause_collapse): Fully fold collapse expression. | |
514 | (c_parser_omp_clause_reduction): Handle user defined reductions. | |
515 | (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind, | |
516 | c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit, | |
517 | c_parser_omp_clause_aligned, c_parser_omp_clause_linear, | |
518 | c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen, | |
519 | c_parser_omp_clause_depend, c_parser_omp_clause_map, | |
520 | c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule, | |
521 | c_parser_omp_clause_proc_bind, c_parser_omp_clause_to, | |
522 | c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions. | |
523 | (c_parser_omp_all_clauses): Add finish_p argument. Don't call | |
524 | c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses. | |
525 | (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is | |
526 | present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms. | |
527 | (c_parser_omp_for_loop): Add CODE argument, pass it through | |
528 | to c_finish_omp_for. Change last argument to cclauses, | |
529 | and adjust uses to grab parallel clauses from the array of all | |
530 | the split clauses. Adjust c_parser_binary_expression, | |
531 | c_parser_declaration_or_fndef and c_finish_omp_for callers. | |
532 | (omp_split_clauses): New function. | |
533 | (c_parser_omp_simd): New function. | |
534 | (c_parser_omp_for): Add p_name, mask and cclauses arguments. | |
535 | Allow the function to be called also when parsing combined constructs, | |
536 | and call c_parser_omp_simd when parsing for simd. | |
537 | (c_parser_omp_sections_scope): If section-sequence doesn't start with | |
538 | #pragma omp section, require exactly one structured-block instead of | |
539 | sequence of statements. | |
540 | (c_parser_omp_sections): Add p_name, mask and cclauses arguments. | |
541 | Allow the function to be called also when parsing combined constructs. | |
542 | (c_parser_omp_parallel): Add p_name, mask and cclauses arguments. | |
543 | Allow the function to be called also when parsing combined | |
544 | constructs. | |
545 | (c_parser_omp_taskgroup, c_parser_omp_cancel, | |
546 | c_parser_omp_cancellation_point, c_parser_omp_distribute, | |
547 | c_parser_omp_teams, c_parser_omp_target_data, | |
548 | c_parser_omp_target_update, c_parser_omp_target, | |
549 | c_parser_omp_declare_simd, c_finish_omp_declare_simd, | |
550 | c_parser_omp_declare_target, c_parser_omp_end_declare_target, | |
551 | c_parser_omp_declare_reduction, c_parser_omp_declare): New functions. | |
552 | (c_parser_omp_construct): Add p_name and mask vars. Handle | |
553 | PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP, | |
554 | PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel | |
555 | and c_parser_omp_sections callers. | |
556 | (c_parse_file): Initialize tparser.tokens and the_parser->tokens here. | |
557 | (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK, | |
558 | OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. | |
559 | (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND. | |
560 | (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add | |
561 | OMP_CLAUSE_DEPEND. | |
562 | (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK, | |
563 | OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK, | |
564 | OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK, | |
565 | OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK, | |
566 | OMP_DECLARE_SIMD_CLAUSE_MASK): Define. | |
567 | * c-typeck.c: Include tree-inline.h. | |
568 | (c_finish_omp_cancel, c_finish_omp_cancellation_point, | |
569 | handle_omp_array_sections_1, handle_omp_array_sections, | |
570 | c_clone_omp_udr, c_find_omp_placeholder_r): New functions. | |
571 | (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and | |
572 | user defined reductions. | |
573 | (c_tree_equal): New function. | |
574 | * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls, | |
575 | c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal, | |
576 | c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup, | |
577 | c_check_omp_declare_reduction_r): New prototypes. | |
578 | * c-decl.c (current_omp_declare_target_attribute): New variable. | |
579 | (c_decl_attributes): New function. | |
580 | (start_decl, start_function): Use it instead of decl_attributes. | |
581 | (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id, | |
582 | c_omp_reduction_decl, c_omp_reduction_lookup, | |
583 | c_check_omp_declare_reduction_r): New functions. | |
584 | ||
0a6c2227 TT |
585 | 2013-09-25 Tom Tromey <tromey@redhat.com> |
586 | ||
587 | * Make-lang.in (c/gccspec.o): Remove. | |
588 | (CFLAGS-c/gccspec.o): New variable. | |
589 | (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o) | |
590 | (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o) | |
591 | (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove. | |
592 | ||
f3bc55f0 TT |
593 | 2013-09-25 Tom Tromey <tromey@redhat.com> |
594 | ||
595 | * Make-lang.in (c/gccspec.o): Don't use subshell. | |
596 | ||
a24d975c MP |
597 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
598 | ||
599 | PR sanitize/58443 | |
600 | * c-typeck.c (build_binary_op): Properly honor -fsanitize options. | |
601 | Remove unnecessary check. | |
602 | ||
ce6923c5 MP |
603 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
604 | ||
605 | PR sanitizer/58411 | |
606 | * c-typeck.c (build_binary_op): Don't sanitize function if it has the | |
607 | no_sanitize_undefined attribute. | |
608 | ||
a1e51df9 KT |
609 | 2013-09-13 Kai Tietz <ktietz@redhat.com> |
610 | ||
611 | PR target/57848 | |
612 | * c-decl.c (c_builtin_function_ext_scope): Remove | |
613 | wrong assumption that it is never called on prexisting | |
614 | symbol. | |
615 | ||
0af94e6f JR |
616 | 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com> |
617 | ||
618 | * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p. | |
619 | ||
20059c8b GDR |
620 | 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
621 | ||
622 | * c-objc-common.c (c_tree_printer): Tidy. | |
623 | ||
de5a5fa1 MP |
624 | 2013-08-30 Marek Polacek <polacek@redhat.com> |
625 | ||
626 | * c-typeck.c (build_binary_op): Add division by zero and shift | |
627 | instrumentation. | |
628 | ||
2531a1d9 | 629 | 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com> |
0fdd4508 | 630 | Joseph Myers <joseph@codesourcery.com> |
2531a1d9 | 631 | |
6e2bcc98 | 632 | PR c/35649 |
2531a1d9 JR |
633 | * c-typeck.c (c_common_type): Prefer double_type_node over |
634 | other REAL_TYPE types with the same precision. | |
635 | (convert_arguments): Likewise. | |
636 | ||
025311c4 GDR |
637 | 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net> |
638 | ||
639 | * c-objc-common.c (c_tree_printer): Document the nature of the cast. | |
640 | (c_initialize_diagnostics): Call a destructor for the early printer. | |
641 | ||
da6ca2b5 GDR |
642 | 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
643 | ||
644 | * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty | |
645 | printer initialization. | |
646 | ||
318cda85 | 647 | 2013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com> |
da6ca2b5 | 648 | |
318cda85 BI |
649 | PR c/57490 |
650 | * c-array-notation.c (fix_conditional_array_notations_1): Added a | |
651 | check for truth values. | |
652 | (expand_array_notation_exprs): Added truth values case. Removed an | |
653 | unwanted else. Added for-loop to walk through subtrees in default | |
654 | case. | |
655 | ||
b066401f GDR |
656 | 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
657 | ||
658 | * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base. | |
659 | ||
fb48aadc JM |
660 | 2013-07-23 Joseph Myers <joseph@codesourcery.com> |
661 | ||
662 | * c-parser.c (struct c_generic_association): Fix typo. | |
663 | ||
433cc7b0 TT |
664 | 2013-07-23 Tom Tromey <tromey@redhat.com> |
665 | Joseph Myers <joseph@codesourcery.com> | |
666 | ||
667 | * c-parser.c (struct c_generic_association): New. | |
668 | (c_generic_association_d): New typedef. | |
669 | (c_parser_generic_selection): New function. | |
670 | (c_parser_postfix_expression): Handle RID_GENERIC. | |
671 | ||
26d40c3d JM |
672 | 2013-07-13 Jason Merrill <jason@redhat.com> |
673 | ||
674 | PR c++/57793 | |
675 | * c-decl.c (finish_struct): Check for too-large class. | |
676 | ||
ecdbd01a | 677 | 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com> |
40d3d530 JR |
678 | |
679 | PR c/57821 | |
680 | * c-typeck.c (set_init_index): When folding, check for index overflow. | |
681 | ||
1141ed3f BI |
682 | 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
683 | ||
684 | * c-parser.c (c_parser_array_notation): Removed rejection of array | |
685 | notations in an array of function pointers. | |
686 | ||
713b46fa BI |
687 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
688 | ||
689 | * c-array-notation.c (make_triplet_val_inv): New function. | |
690 | (create_cmp_incr): Likewise. | |
691 | (create_array_refs): Likewise. | |
692 | (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec. | |
693 | Also modularized common parts between functions and called the function. | |
694 | (build_array_notation_expr): Likewise. | |
695 | (fix_conditional_array_notations_1): Likewise. | |
696 | (fix_array_notation_expr): Likewise. | |
697 | (fix_array_notation_call_expr): Likewise. | |
698 | ||
92f20202 MP |
699 | 2013-06-18 Marek Polacek <polacek@redhat.com> |
700 | ||
701 | PR c/57630 | |
702 | * c-decl.c (check_for_loop_decls): Improve diagnostics messages. | |
703 | ||
73a23b06 BI |
704 | 2013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com> |
705 | ||
706 | * c-array-notation.c (build_array_notation_expr): Reject array notation | |
707 | mismatch between LHS and RHS even inside a call_expr. Also, removed | |
708 | a couple while statements that were dead code. | |
709 | ||
00b8517d BI |
710 | 2013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com> |
711 | ||
712 | * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded | |
713 | excessive precision expressions in function parameters. Also removed | |
714 | couple unwanted while statements. | |
715 | ||
1509bdda BI |
716 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
717 | ||
718 | * c-array-notation.c (expand_array_notation_exprs): Added | |
719 | ARRAY_NOTATION_REF case. | |
720 | ||
d60f1706 BI |
721 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
722 | ||
723 | * c-array-notation.c (length_mismatch_in_expr_p): Moved this | |
724 | function to c-family/array-notation-common.c. | |
725 | (is_cilkplus_reduce_builtin): Likewise. | |
726 | (find_rank): Likewise. | |
727 | (extract_array_notation_exprs): Likewise. | |
728 | (replace_array_notations): Likewise. | |
729 | (find_inv_trees): Likewise. | |
730 | (replace_inv_trees): Likewise. | |
731 | (contains_array_notation_expr): Likewise. | |
732 | (find_correct_array_notation_type): Likewise. | |
733 | (replace_invariant_exprs): Initialized additional_tcodes to NULL. | |
734 | (struct inv_list): Moved this to c-family/array-notation-common.c. | |
735 | * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype. | |
736 | ||
6d6efbb3 BI |
737 | 2013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com> |
738 | ||
739 | * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus | |
740 | reduction functions outside the for-loop. Added a check if the fundecl | |
741 | is non-NULL. Finally, removed an unwanted if-statement, and made the | |
742 | body unconditional. | |
743 | ||
25c22937 BI |
744 | 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com> |
745 | ||
746 | * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the | |
747 | condition of the if-statement matches the rank of else-block and then- | |
748 | block when array notations are used. | |
749 | * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation | |
750 | expression after the entire function body is parsed. | |
751 | (c_parser_expr_no_commas): Delayed creating array notation expressions | |
752 | to the end of function parsing. | |
753 | * c-array-notation.c (fix_conditional_array_notations_1): Expanded the | |
754 | whole if-statement instead of just the condition. | |
755 | (expand_array_notation_exprs): Added MODIFY_EXPR case. | |
756 | ||
edd25645 BI |
757 | 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com> |
758 | ||
759 | PR c/57474 | |
760 | * c-array-notation.c (build_array_notation_expr): Initialized rhs_length | |
761 | array to NULL_TREE if they are unused. Also added a check for the | |
762 | field to be NULL before its fields are used in future. | |
763 | ||
065ce7f1 RO |
764 | 2013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
765 | ||
766 | PR bootstrap/57450 | |
767 | * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi. | |
768 | (build_array_notation_expr): Likewise. | |
769 | ||
36536d79 BI |
770 | 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
771 | ||
772 | * c-typeck.c (build_array_ref): Added a check to see if array's | |
773 | index is greater than one. If true, then emit an error. | |
774 | (build_function_call_vec): Exclude error reporting and checking | |
775 | for builtin array-notation functions. | |
776 | (convert_arguments): Likewise. | |
777 | (c_finish_return): Added a check for array notations as a return | |
778 | expression. If true, then emit an error. | |
779 | (c_finish_loop): Added a check for array notations in a loop | |
780 | condition. If true then emit an error. | |
781 | (lvalue_p): Added a ARRAY_NOTATION_REF case. | |
782 | (build_binary_op): Added a check for array notation expr inside | |
783 | op1 and op0. If present, we call another function to find correct | |
784 | type. | |
785 | * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o. | |
786 | * c-parser.c (c_parser_compound_statement): Check if array | |
787 | notation code is used in tree, if so, then transform them into | |
788 | appropriate C code. | |
789 | (c_parser_expr_no_commas): Check if array notation is used in LHS | |
790 | or RHS, if so, then build array notation expression instead of | |
791 | regular modify. | |
792 | (c_parser_postfix_expression_after_primary): Added a check for | |
793 | colon(s) after square braces, if so then handle it like an array | |
794 | notation. Also, break up array notations in unary op if found. | |
795 | (c_parser_direct_declarator_inner): Added a check for array | |
796 | notation. | |
797 | (c_parser_compound_statement): Added a check for array notation in | |
798 | a stmt. If one is present, then expand array notation expr. | |
799 | (c_parser_if_statement): Likewise. | |
800 | (c_parser_switch_statement): Added a check for array notations in | |
801 | a switch statement's condition. If true, then output an error. | |
802 | (c_parser_while_statement): Similarly, but for a while. | |
803 | (c_parser_do_statement): Similarly, but for a do-while. | |
804 | (c_parser_for_statement): Similarly, but for a for-loop. | |
805 | (c_parser_unary_expression): Check if array notation is used in a | |
806 | pre-increment or pre-decrement expression. If true, then expand | |
807 | them. | |
808 | (c_parser_array_notation): New function. | |
809 | * c-array-notation.c: New file. | |
810 | * c-tree.h (is_cilkplus_reduce_builtin): Protoize. | |
811 | ||
cd192ccc MS |
812 | 2013-05-23 Mike Stump <mikestump@comcast.net> |
813 | ||
814 | * c-typeck.c (convert_for_assignment): Handle references to memory | |
815 | spaces better. | |
816 | ||
427b248d JM |
817 | 2013-05-16 Jason Merrill <jason@redhat.com> |
818 | ||
819 | * Make-lang.in (cc1$(exeext)): Use link mutex. | |
820 | ||
44d90fe1 PC |
821 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
822 | ||
823 | * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns | |
824 | to simply use OPT_Wpointer_arith. | |
825 | (build_unary_op): Likewise. | |
826 | ||
4e7d7b3d JJ |
827 | 2013-04-03 Jakub Jelinek <jakub@redhat.com> |
828 | ||
829 | PR c/19449 | |
830 | * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p | |
831 | argument. If set, or it temporarily for parsing of the first | |
832 | argument into force_folding_builtin_constant_p. | |
833 | (c_parser_postfix_expression): Adjust callers. | |
834 | ||
839b422f RB |
835 | 2013-03-21 Richard Biener <rguenther@suse.de> |
836 | ||
837 | * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P | |
838 | instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly. | |
839 | ||
2ee028f1 MP |
840 | 2013-02-12 Marek Polacek <polacek@redhat.com> |
841 | ||
842 | PR c/44938 | |
843 | * c-parser.c (c_parser_postfix_expression_after_primary): Initialize | |
844 | origtypes to NULL. | |
845 | ||
8824edff JJ |
846 | 2013-01-24 Jakub Jelinek <jakub@redhat.com> |
847 | ||
848 | PR c/56078 | |
849 | * c-typeck.c (set_nonincremental_init_from_string): If | |
850 | constructor_max_index is NULL, treat it as if tree_int_cst_lt | |
851 | returned false. | |
852 | (process_init_element): Likewise. | |
853 | ||
eadd3d0d JJ |
854 | 2012-12-20 Jakub Jelinek <jakub@redhat.com> |
855 | ||
856 | PR c++/55619 | |
857 | * c-parser.c (c_parser_asm_operands): Remove CONVERT_P | |
858 | argument, don't call default_function_array_conversion | |
859 | nor c_fully_fold here. | |
860 | (c_parser_asm_statement): Adjust callers. | |
861 | * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs | |
862 | and outputs here, and call default_function_array_conversion | |
863 | on inputs that don't need to be addressable. | |
864 | ||
f8a93a2e JJ |
865 | 2012-12-18 Jakub Jelinek <jakub@redhat.com> |
866 | ||
867 | PR c/39464 | |
868 | * c-typeck.c (convert_for_assignment): For -Wpointer-sign | |
869 | warning require that both c_common_unsigned_type as well as | |
870 | c_common_signed_type is the same for both mvl and mvr types. | |
871 | ||
9771b263 DN |
872 | 2012-11-16 Diego Novillo <dnovillo@google.com> |
873 | ||
874 | Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) | |
875 | ||
876 | * c-common.c: Use new vec API in vec.h. | |
877 | * c-common.h: Likewise. | |
878 | * c-gimplify.c: Likewise. | |
879 | * c-pragma.c: Likewise. | |
880 | * c-pretty-print.c: Likewise. | |
881 | * c-pretty-print.h: Likewise. | |
882 | * c-semantics.c: Likewise. | |
883 | * c-decl.c: Likewise. | |
884 | * c-parser.c: Likewise. | |
885 | * c-tree.h: Likewise. | |
886 | * c-typeck.c: Likewise. | |
887 | ||
880661a4 JW |
888 | 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com> |
889 | ||
890 | PR c++/54930 | |
891 | * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr. | |
892 | ||
077d1abe MLI |
893 | 2012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
894 | ||
895 | PR c/53066 | |
896 | * c-decl.c (warn_if_shadowing): Do not warn if a variable | |
897 | shadows a function, unless the variable is a function or a | |
898 | pointer-to-function. | |
899 | ||
3a785c97 JJ |
900 | 2012-10-12 Jakub Jelinek <jakub@redhat.com> |
901 | ||
902 | PR c/54381 | |
903 | * c-parser.c (struct c_tree_loc_pair): Removed. | |
904 | (c_parser_expr_list): Remove struct c_tree_loc_pair * argument, | |
905 | add location_t * and tree * arguments, fill in array of 3 | |
906 | sizeof_arg trees and corresponding locs. | |
907 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust | |
908 | c_parser_expr_list callers. | |
909 | (c_parser_postfix_expression_after_primary): Likewise. Pass | |
910 | array of 3 sizeof_arg trees and locs (corresponding to first | |
911 | 3 arguments) to sizeof_pointer_memaccess_warning. | |
912 | ||
703c8606 LC |
913 | 2012-10-09 Lawrence Crowl <crowl@google.com> |
914 | ||
915 | * Make-lang.in (c-decl.o): Add dependence on hash-table.h. | |
916 | * c-decl.c (detect_field_duplicates_hash): Change to new type-safe | |
917 | hash table. | |
918 | ||
5d9de0d0 PC |
919 | 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com> |
920 | ||
921 | PR c++/54194 | |
922 | * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses | |
923 | call. | |
924 | ||
a212e43f MG |
925 | 2012-10-09 Marc Glisse <marc.glisse@inria.fr> |
926 | ||
927 | PR c++/54427 | |
928 | * c-typeck.c: Include c-common.h. | |
929 | (enum stv_conv): Moved to c-common.h. | |
930 | (scalar_to_vector): Moved to c-common.c. | |
931 | (build_binary_op): Adapt to scalar_to_vector's new prototype. | |
932 | * Make-lang.in: c-typeck.c depends on c-common.h. | |
933 | ||
3b78de56 AC |
934 | 2012-10-04 Arnaud Charlet <charlet@adacore.com> |
935 | ||
936 | * c-decl.c (c_write_global_declarations): Fix handling of | |
937 | -fdump-ada-spec*. | |
938 | ||
78c60e3d SS |
939 | 2012-09-30 Sharad Singhai <singhai@google.com> |
940 | ||
941 | * c-decl.c (c_write_global_declarations): Use a different method | |
942 | to determine if the dump has ben initialized. | |
943 | ||
9f33203d JM |
944 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
945 | ||
946 | PR c/54552 | |
947 | * c-typeck.c (c_cast_expr): When casting to a type requiring | |
948 | C_MAYBE_CONST_EXPR to be created, pass the inner expression to | |
949 | c_fully_fold first. | |
950 | ||
a27d595d JM |
951 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
952 | ||
953 | PR c/54103 | |
954 | * c-typeck.c (build_unary_op): Pass original argument of | |
955 | TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove | |
956 | any C_MAYBE_CONST_EXPR, if it has integer operands. | |
957 | (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR, | |
958 | TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR | |
959 | to c_objc_common_truthvalue_conversion, then remove any | |
960 | C_MAYBE_CONST_EXPR, if they have integer operands. Use | |
961 | c_objc_common_truthvalue_conversion not | |
962 | c_common_truthvalue_conversion. | |
963 | (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and | |
964 | call note_integer_operands for arguments with integer operands | |
965 | that are not integer constants. | |
966 | ||
9feb29df JJ |
967 | 2012-09-13 Jakub Jelinek <jakub@redhat.com> |
968 | ||
969 | PR c/54559 | |
970 | * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or | |
971 | COMPLEX_TYPE with in_late_binary_op set temporarily to true. | |
972 | ||
d409320c JJ |
973 | 2012-08-31 Jakub Jelinek <jakub@redhat.com> |
974 | ||
975 | PR c/54428 | |
976 | * c-convert.c (convert): Don't call fold_convert_loc if | |
977 | TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e | |
978 | is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from | |
979 | COMPLEX_TYPE -> COMPLEX_TYPE conversion. | |
980 | ||
6265d07c JJ |
981 | 2012-08-24 Jakub Jelinek <jakub@redhat.com> |
982 | ||
983 | PR c/54355 | |
984 | * c-decl.c (c_parser_label): Pass true as nested and fix up comments | |
985 | for nested and empty_ok arguments in the call to | |
986 | c_parser_declaration_or_fndef. | |
987 | ||
1a4049e7 JJ |
988 | 2012-08-17 Jakub Jelinek <jakub@redhat.com> |
989 | ||
990 | * c-tree.h (c_last_sizeof_arg): Declare. | |
991 | * c-parser.c (struct c_tree_loc_pair): New type. | |
992 | (c_parser_expr_list): Add sizeof_arg argument. Fill it in if | |
993 | non-NULL. | |
994 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers. | |
995 | (c_parser_postfix_expression_after_primary): Likewise. Call | |
996 | sizeof_pointer_memaccess_warning if needed. | |
997 | (sizeof_ptr_memacc_comptypes): New function. | |
998 | * c-typeck.c (c_last_sizeof_arg): New global variable. | |
999 | (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it. | |
1000 | ||
0229aee9 UB |
1001 | 2012-07-24 Uros Bizjak <ubizjak@gmail.com> |
1002 | ||
1003 | * c-lang.h (lang_decl): Add variable_size GTY option. | |
1004 | ||
7ee2468b SB |
1005 | 2012-07-16 Steven Bosscher <steven@gcc.gnu.org> |
1006 | ||
1007 | * c-decl.c: Include dumpfile.h instead of tree-dump.h. | |
1008 | * Make-lang.in: Fix dependencies. | |
1009 | ||
d4a10d0a SB |
1010 | 2012-06-29 Steven Bosscher <steven@gcc.gnu.org> |
1011 | ||
1012 | * Make-lang.in: New file, rules migrated from gcc/Makefile.in | |
1013 | and add language Makefile hooks. | |
1014 | * config-lang.in: New file. | |
1015 | * c-config-lang.in: Moved from gcc/config-lang.in to here, and | |
1016 | add the required "normal" config-lang.in rules. | |
1017 | * c-lang.h: Moved from gcc/ to here. | |
1018 | * c-tree.h: Likewise. | |
1019 | * c-objc-common.c: Likewise. | |
1020 | * c-objc-common.h: Likewise. | |
1021 | * c-typeck.c: Likewise. | |
1022 | * c-convert.c: Likewise. | |
1023 | * c-lang.c: Likewise. | |
1024 | * c-aux-info.c: Likewise. | |
1025 | * c-errors.c: Likewise. | |
1026 | * gccspec.c: Likewise. | |
1027 | * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h. | |
1028 | * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h. | |
1029 | \f | |
23a5b65a | 1030 | Copyright (C) 2012-2014 Free Software Foundation, Inc. |
d4a10d0a SB |
1031 | |
1032 | Copying and distribution of this file, with or without modification, | |
1033 | are permitted in any medium without royalty provided the copyright | |
1034 | notice and this notice are preserved. |