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