]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/c-family/ChangeLog
eb4d5bfbae20ac9cc799abf8f8bf3792401efa69
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
1 2015-11-11 Marek Polacek <polacek@redhat.com>
2
3 PR c/68107
4 PR c++/68266
5 * c-common.c (valid_array_size_p): New function.
6 * c-common.h (valid_array_size_p): Declare.
7
8 2015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
9
10 PR bootstrap/68271
11 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
12
13 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
14
15 * array-notation-common.c: Remove unused header files.
16 * c-ada-spec.c: Likewise.
17 * c-cilkplus.c: Likewise.
18 * c-common.c: Likewise.
19 * c-cppbuiltin.c: Likewise.
20 * c-dump.c: Likewise.
21 * c-format.c: Likewise.
22 * c-gimplify.c: Likewise.
23 * c-indentation.c: Likewise.
24 * c-lex.c: Likewise.
25 * c-omp.c: Likewise.
26 * c-opts.c: Likewise.
27 * c-pch.c: Likewise.
28 * c-ppoutput.c: Likewise.
29 * c-pragma.c: Likewise.
30 * c-pretty-print.c: Likewise.
31 * c-semantics.c: Likewise.
32 * c-ubsan.c: Likewise.
33 * cilk.c: Likewise.
34 * stub-objc.c: Likewise.
35
36 2015-11-09 Thomas Schwinge <thomas@codesourcery.com>
37 Cesar Philippidis <cesar@codesourcery.com>
38 James Norris <jnorris@codesourcery.com>
39 Julian Brown <julian@codesourcery.com>
40 Nathan Sidwell <nathan@codesourcery.com>
41
42 * c-pragma.c (oacc_pragmas): Add "routine".
43 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
44
45 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
46
47 * c-common.c (c_common_attributes): Add scalar_storage_order.
48 (handle_scalar_storage_order_attribute): New function.
49 * c-pragma.c (global_sso): New variable.
50 (maybe_apply_pragma_scalar_storage_order): New function.
51 (handle_pragma_scalar_storage_order): Likewise.
52 (init_pragma): Register scalar_storage_order.
53 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
54 * c.opt (Wscalar-storage-order): New warning.
55 (fsso-struct=): New option.
56
57 2015-11-08 Martin Sebor <msebor@redhat.com>
58
59 * c.opt (Wplacement-new): Add a period to the end of a sentence.
60
61 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
62
63 * c-common.c: Don't undef DEF_BUILTIN.
64
65 2015-11-06 David Malcolm <dmalcolm@redhat.com>
66
67 * c-common.c (c_cpp_error): Convert parameter from location_t to
68 rich_location *. Eliminate the "column_override" parameter and
69 the call to diagnostic_override_column.
70 Update the "done_lexing" clause to set range 0
71 on the rich_location, rather than overwriting a location_t.
72 * c-common.h (c_cpp_error): Convert parameter from location_t to
73 rich_location *. Eliminate the "column_override" parameter.
74
75 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
76 Thomas Schwinge <thomas@codesourcery.com>
77 James Norris <jnorris@codesourcery.com>
78
79 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
80 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
81 clauses with parallel and kernels and loops.
82 * c-pragma.h (enum pragma_omp_clause): Add entries for
83 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
84 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
85 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
86 INDEPENDENT,SEQ}.
87 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
88
89 2015-11-05 Martin Sebor <msebor@redhat.com>
90
91 PR c++/67942
92 * c.opt (-Wplacement-new): New option.
93
94 2015-11-05 Jakub Jelinek <jakub@redhat.com>
95
96 * c-common.h (c_finish_omp_atomic): Add TEST argument.
97 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
98 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
99 save_expr or create_tmp_var* if TEST is true.
100 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
101 Don't call add_stmt here.
102 (struct c_omp_check_loop_iv_data): New type.
103 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
104 c_omp_check_loop_iv_exprs): New functions.
105 (c_omp_split_clauses): Adjust for lastprivate being allowed on
106 distribute.
107 (c_omp_declare_simd_clauses_to_numbers): Change
108 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
109 (c_omp_declare_simd_clauses_to_decls): Similarly change those
110 from numbers to PARM_DECLs.
111
112 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
113
114 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
115 flag_checking.
116
117 2015-11-03 Bernd Schmidt <bschmidt@redhat.com>
118
119 PR c++-common/67882
120 * c-family/c-common.h (fold_offsetof_1): Add argument.
121 * c-family/c-common.c (fold_offsetof_1): Diagnose more invalid
122 offsetof expressions that reference elements past the end of
123 an array.
124
125 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
126 Chung-Lin Tang <cltang@codesourcery.com>
127
128 * c-pragma.c (oacc_pragmas): Add "atomic".
129 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
130
131 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
132
133 * c-common.c (handle_target_clones_attribute): New.
134 (c_common_attribute_table): Add handle_target_clones_attribute.
135 (handle_always_inline_attribute): Add check on target_clones attribute.
136 (handle_target_attribute): Ditto.
137
138 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
139
140 * array-notation-common.c: Reorder #include's and remove duplicates.
141 * c-ada-spec.c: Likewise.
142 * c-cilkplus.c: Likewise.
143 * c-common.c: Likewise.
144 * c-cppbuiltin.c: Likewise.
145 * c-dump.c: Likewise.
146 * c-format.c: Likewise.
147 * c-gimplify.c: Likewise.
148 * c-indentation.c: Likewise.
149 * c-lex.c: Likewise.
150 * c-omp.c: Likewise.
151 * c-opts.c: Likewise.
152 * c-pch.c: Likewise.
153 * c-ppoutput.c: Likewise.
154 * c-pragma.c: Likewise.
155 * c-pretty-print.c: Likewise.
156 * c-semantics.c: Likewise.
157 * c-ubsan.c: Likewise.
158 * cilk.c: Likewise.
159 * stub-objc.c: Likewise.
160
161 2015-10-28 Jason Merrill <jason@redhat.com>
162
163 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
164
165 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
166 James Norris <jnorris@codesourcery.com>
167 Cesar Philippidis <cesar@codesourcery.com>
168
169 PR c/64765
170 PR c/64880
171 * c-common.h (c_oacc_split_loop_clauses): Declare function.
172 * c-omp.c (c_oacc_split_loop_clauses): New function.
173
174 2015-10-21 Martin Sebor <msebor@redhat.com>
175
176 PR driver/68043
177 * c.opt: End each sentence that describes an option with a period.
178
179 2015-10-20 Marek Polacek <polacek@redhat.com>
180
181 * array-notation-common.c (is_cilkplus_vector_p): Define.
182 * c-common.h (is_cilkplus_vector_p): Declare.
183
184 2015-10-20 Marek Polacek <polacek@redhat.com>
185
186 * c.opt (std=gnu++11): Do not describe as experimental.
187 (std=gnu++14): Likewise.
188
189 2015-10-19 Jason Merrill <jason@redhat.com>
190
191 * c-cppbuiltin.c (c_cpp_builtins): Define
192 __cpp_nontype_template_args.
193
194 2015-10-19 Jason Merrill <jason@redhat.com>
195
196 * c-cppbuiltin.c (c_cpp_builtins): Define
197 __cpp_enumerator_attributes, __cpp_fold_expressions,
198 __cpp_unicode_characters.
199
200 2015-10-13 Jakub Jelinek <jakub@redhat.com>
201 Aldy Hernandez <aldyh@redhat.com>
202
203 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
204 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
205 (c_define_builtins): Likewise.
206 * c-common.h (enum c_omp_clause_split): Add
207 C_OMP_CLAUSE_SPLIT_TASKLOOP.
208 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
209 (c_finish_omp_for): Add ORIG_DECLV argument.
210 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
211 201511 instead of 201307.
212 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
213 OMP_CRITICAL_CLAUSES to it.
214 (c_finish_omp_ordered): Add CLAUSES argument, set
215 OMP_ORDERED_CLAUSES to it.
216 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
217 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
218 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
219 constructs and new OpenMP 4.5 clauses. Clear
220 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
221 verification code.
222 * c-pragma.c (omp_pragmas_simd): Add taskloop.
223 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
224 (enum pragma_omp_clause): Add
225 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
226 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
227
228 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
229
230 * c-lex.c (interpret_float): Use real_equal instead of
231 REAL_VALUES_EQUAL.
232
233 2015-10-04 Jason Merrill <jason@redhat.com>
234
235 Implement N4514, C++ Extensions for Transactional Memory.
236 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
237 (c_common_attribute_table): Add transaction_safe_dynamic.
238 transaction_safe now affects type identity.
239 (handle_tm_attribute): Handle transaction_safe_dynamic.
240 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
241 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
242 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
243 (D_TRANSMEM): New.
244 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
245 * c-pretty-print.c (pp_c_attributes_display): Don't print
246 transaction_safe in C++.
247
248 2015-10-02 Marek Polacek <polacek@redhat.com>
249
250 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
251
252 2015-10-02 Marek Polacek <polacek@redhat.com>
253
254 PR c/64249
255 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
256 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
257 * c.opt (Wduplicated-cond): New option.
258
259 2015-10-01 Joseph Myers <joseph@codesourcery.com>
260
261 * c.opt (std=c11): Do not describe as experimental.
262 (std=gnu11): Likewise.
263 (std=iso9899:2011): Likewise.
264
265 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
266
267 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
268 (DEF_FUNCTION_TYPE_VAR_11): Delete.
269
270 2015-09-25 Marek Polacek <polacek@redhat.com>
271
272 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
273 (ubsan_instrument_shift): Likewise.
274
275 2015-09-25 Marek Polacek <polacek@redhat.com>
276
277 PR sanitizer/64906
278 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
279
280 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
281
282 * c-indentation.c (should_warn_for_misleading_indentation):
283 Compare next_stmt_vis_column with guard_line_first_nws instead
284 of with guard_line_vis_column.
285
286 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
287
288 PR c/49654
289 PR c/49655
290 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
291 options and options not valid for the current language.
292
293 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
294
295 * c-indentation.c (should_warn_for_misleading_indentation):
296 Float out and consolidate the calls to get_visual_column that
297 are passed guard_exploc as an argument. Compare
298 next_stmt_vis_column with guard_line_first_nws instead of with
299 body_line_first_nws.
300
301 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
302
303 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
304 Wnamespaces): New C++ warnings.
305
306 2015-09-22 Jason Merrill <jason@redhat.com>
307
308 * c-common.h (abi_compat_version_crosses): New.
309 (warn_abi_version): Declare.
310 * c-common.c: Define it.
311 * c-opts.c (c_common_post_options): Handle it.
312 flag_abi_compat_version defaults to 8.
313
314 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
315
316 Complete the implementation of N4230, Nested namespace definition.
317 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
318 __cpp_nested_namespace_definitions.
319
320 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
321
322 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
323
324 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
325
326 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
327 when warning.
328 * c-pragma.h (pragma_lex): Add optional loc argument.
329
330 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
331
332 * c-format.c (check_format_arg): Adjust to use common block size in all
333 object pools.
334
335 2015-09-15 David Malcolm <dmalcolm@redhat.com>
336
337 * c-format.c (location_from_offset): Update for change in
338 signature of location_get_source_line.
339 * c-indentation.c (get_visual_column): Likewise.
340 (line_contains_hash_if): Likewise.
341
342 2015-09-14 Marek Polacek <polacek@redhat.com>
343
344 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
345 setting various warnings.
346
347 2015-09-14 Marek Polacek <polacek@redhat.com>
348
349 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
350 a negative value.
351
352 2015-09-11 Mark Wielaard <mjw@redhat.com>
353
354 PR c/28901
355 * c.opt (Wunused-variable): Option from common.opt.
356 (Wunused-const-variable): New option.
357
358 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
359
360 PR c++/53184
361 * c.opt ([Wsubobject-linkage]): Add.
362
363 2015-09-03 Martin Sebor <msebor@redhat.com>
364
365 PR c/66516
366 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
367 functions.
368 * c-common.c (reject_gcc_builtin): Define.
369
370 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
371
372 PR middle-end/60586
373 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
374 prototype.
375 * c-gimplify.c (c_gimplify_expr): Added a call to the function
376 cilk_gimplify_call_params_in_spawned_fn.
377 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
378 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
379 unwrapping.
380
381 2015-08-25 Marek Polacek <polacek@redhat.com>
382
383 PR middle-end/67330
384 * c-common.c (handle_weak_attribute): Don't check whether the
385 visibility can be changed here.
386
387 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
388
389 * c-lex.c (c_lex_with_flags): Use explicit locations.
390
391 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
392
393 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
394 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
395
396 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
397
398 PR middle-end/36757
399 * c-common.c (check_builtin_function_arguments): Add check
400 for BUILT_IN_SIGNBIT argument.
401
402 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
403
404 PR c++/67160
405 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
406 in c++1z mode.
407
408 2015-08-17 Marek Polacek <polacek@redhat.com>
409
410 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
411 with whitespaces before qualifier names.
412
413 2015-08-12 Marek Polacek <polacek@redhat.com>
414
415 PR c++/55095
416 * c-common.c (maybe_warn_shift_overflow): Properly handle
417 left-shifting 1 into the sign bit.
418
419 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
420
421 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
422
423 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
424 Braden Obrzut <admin@maniacsvault.net>
425 Jason Merrill <jason@redhat.com>
426
427 Add C++ Concepts TS support.
428 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
429 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
430 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
431 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
432 * c-opts.c (set_std_cxx1z): Set flag_concepts.
433 * c.opt (fconcepts): New.
434
435 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
436
437 * c-indentation.c (should_warn_for_misleading_indentation):
438 Improve heuristics.
439
440 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
441
442 * c-indentation.c (get_visual_column): Add parameter first_nws,
443 use it. Update comment documenting the function.
444 (is_first_nonwhitespace_on_line): Remove.
445 (should_warn_for_misleading_indentation): Replace usage of
446 of is_first_nonwhitespace_on_line with get_visual_column.
447
448 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
449
450 * c-indentation.h (struct token_indent_info): Define.
451 (get_token_indent_info): Define.
452 (warn_for_misleading_information): Declare.
453 * c-common.h (warn_for_misleading_information): Remove.
454 * c-identation.c (warn_for_misleading_indentation):
455 Change declaration to take three token_indent_infos. Adjust
456 accordingly.
457 * c-identation.c (should_warn_for_misleading_indentation):
458 Likewise. Bail out early if the body is a compound statement.
459 (guard_tinfo_to_string): Define.
460
461 2015-07-30 Jason Merrill <jason@redhat.com>
462
463 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
464 '*' for reference decay.
465
466 2015-07-30 Marek Polacek <polacek@redhat.com>
467
468 * c-common.c (warn_tautological_cmp): Bail for float types.
469
470 2015-07-27 Marek Polacek <polacek@redhat.com>
471
472 PR bootstrap/67030
473 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
474
475 2015-07-27 Marek Polacek <polacek@redhat.com>
476
477 PR c++/66555
478 PR c/54979
479 * c-common.c (find_array_ref_with_const_idx_r): New function.
480 (warn_tautological_cmp): New function.
481 * c-common.h (warn_tautological_cmp): Declare.
482 * c.opt (Wtautological-compare): New option.
483
484 2015-07-23 Marek Polacek <polacek@redhat.com>
485
486 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
487 (ubsan_instrument_shift): Likewise.
488
489 2015-07-23 Marek Polacek <polacek@redhat.com>
490
491 PR sanitizer/66908
492 * c-ubsan.c: Include gimplify.h.
493 (ubsan_instrument_division): Unshare OP0 and OP1.
494 (ubsan_instrument_shift): Likewise.
495
496 2015-07-20 Marek Polacek <polacek@redhat.com>
497 Richard Sandiford <richard.sandiford@arm.com>
498
499 PR c++/55095
500 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
501 Use EXPR_LOC_OR_LOC.
502 (maybe_warn_shift_overflow): New function.
503 * c-common.h (maybe_warn_shift_overflow): Declare.
504 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
505 * c.opt (Wshift-overflow): New option.
506
507 2015-07-16 Martin Liska <mliska@suse.cz>
508
509 * c-format.c (static void check_format_info_main): Use
510 object_allocator instead of pool_allocator.
511 (check_format_arg): Likewise.
512 (check_format_info_main): Likewise.
513
514 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
515
516 * c-opts.c: Remove multiline #include comment.
517
518 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
519
520 * c-common.c: Fix double word typos.
521
522 2015-07-10 Eric Botcazou <ebotcazou@adacore.com>
523
524 * c-ada-spec.h (cpp_operation): Revert latest change.
525 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
526 constructors and destructors.
527
528 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
529
530 * c-common.h: Adjust includes for flags.h changes.
531 * stub-objc.c: Likewise.
532
533 2015-07-08 Eric Botcazou <ebotcazou@adacore.com>
534
535 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
536 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
537
538 2015-07-08 Jakub Jelinek <jakub@redhat.com>
539
540 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
541 are to be removed, return NULL rather than original clauses list.
542
543 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
544
545 * array-notation-common.c: Adjust includes.
546 * c-ada-spec.c: Likewise.
547 * c-cilkplus.c: Likewise.
548 * c-common.h: Likewise.
549 * c-cppbuiltin.c: Likewise.
550 * c-dump.c: Likewise.
551 * c-format.c: Likewise.
552 * c-gimplify.c: Likewise.
553 * c-indentation.c: Likewise.
554 * c-lex.c: Likewise.
555 * c-omp.c: Likewise.
556 * c-opts.c: Likewise.
557 * c-pch.c: Likewise.
558 * c-ppoutput.c: Likewise.
559 * c-pragma.c: Likewise.
560 * c-pretty-print.c: Likewise.
561 * c-semantics.c: Likewise.
562 * c-ubsan.c: Likewise.
563 * cilk.c: Likewise.
564 * stub-objc.c: Likewise.
565
566 2015-07-07 Eric Botcazou <ebotcazou@adacore.com>
567
568 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
569 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
570
571 2015-07-01 Jason Merrill <jason@redhat.com>
572
573 * c-common.h (D_CXX11): Rename from D_CXX0X.
574 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
575 * c-common.c: Adjust.
576
577 * c-opts.c (c_common_post_options): Default to C++14.
578
579 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
580
581 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
582
583 Implement N4197 - Adding u8 character literals
584 * c-family/c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
585 CPP_CHAR.
586 * c-family/c-common.c (c_parse_error): Print CPP_UTF8CHAR and
587 CPP_UTF8CHAR_USERDEF tokens.
588 * c-family/c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
589 and CPP_UTF8CHAR tokens.
590 (lex_charconst): Treat CPP_UTF8CHAR token.
591
592 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
593
594 PR fortran/66605
595 * c-common.c (do_warn_unused_parameter): Move here.
596 * c-common.h (do_warn_unused_parameter): Declare.
597
598 2015-06-29 Marek Polacek <polacek@redhat.com>
599
600 PR c/66322
601 * c-common.c (check_case_bounds): Add bool * parameter. Set
602 OUTSIDE_RANGE_P.
603 (c_add_case_label): Add bool * parameter. Pass it down to
604 check_case_bounds.
605 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
606 warning here.
607 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
608 declarations.
609
610 2015-06-27 Marek Polacek <polacek@redhat.com>
611
612 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
613 or VECTOR_INTEGER_TYPE_P throughout.
614 * c-gimplify.c: Likewise.
615
616 2015-06-26 Marek Polacek <polacek@redhat.com>
617
618 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
619 * c-common.c (c_fully_fold_internal): Likewise.
620 (c_alignof_expr): Likewise.
621 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
622 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
623 * cilk.c (create_parm_list): Likewise.
624
625 2015-06-26 Marek Polacek <polacek@redhat.com>
626
627 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
628
629 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
630
631 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
632 * c-gimplify.c: Likewise.
633 * c-pragma.c: Likewise.
634 * c-ubsan.c: Likewise.
635 * cilk.c: Likewise.
636
637 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
638
639 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
640 ggc_hasher.
641
642 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
643
644 * cilk.c: Move calls.h after tm.h in the include chain.
645
646 2015-06-25 Marek Polacek <polacek@redhat.com>
647
648 * array-notation-common.c: Use VAR_P throughout.
649 * c-ada-spec.c: Likewise.
650 * c-common.c: Likewise.
651 * c-format.c: Likewise.
652 * c-gimplify.c: Likewise.
653 * c-omp.c: Likewise.
654 * c-pragma.c: Likewise.
655 * c-pretty-print.c: Likewise.
656 * cilk.c: Likewise.
657
658 2015-06-25 Marek Polacek <polacek@redhat.com>
659
660 * cilk.c (extract_free_variables): Use is_global_var.
661
662 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
663
664 * c-common.c: Don't include target-def.h.
665
666 2015-06-23 Marek Polacek <polacek@redhat.com>
667
668 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
669 when comparing INTEGER_CSTs.
670
671 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
672
673 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
674 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
675 (dump_ada_template): Skip partially specialized types.
676
677 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
678
679 * c-common.c (scalar_to_vector): Use std::swap instead of manually
680 swapping.
681
682 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
683
684 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
685 * c-ada-spec.c: Likewise.
686 * c-cilkplus.c: Likewise.
687 * c-common.c: Likewise.
688 * c-common.h: Likewise.
689 * c-cppbuiltin.c: Likewise.
690 * c-dump.c: Likewise.
691 * c-format.c: Likewise.
692 * c-gimplify.c: Likewise.
693 * c-indentation.c: Likewise.
694 * c-lex.c: Likewise.
695 * c-omp.c: Likewise.
696 * c-opts.c: Likewise.
697 * c-pch.c: Likewise.
698 * c-ppoutput.c: Likewise.
699 * c-pragma.c: Likewise.
700 * c-pretty-print.c: Likewise.
701 * c-semantics.c: Likewise.
702 * c-ubsan.c: Likewise.
703 * cilk.c: Likewise.
704 * stub-objc.c: Likewise.
705
706 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
707
708 PR c++/65168
709 * c-common.c (c_common_truthvalue_conversion): Warn when
710 converting an address of a reference to a truth value.
711
712 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
713
714 * array-notation-common.c : Adjust include files.
715 * c-ada-spec.c : Likewise.
716 * c-cilkplus.c : Likewise.
717 * c-common.c : Likewise.
718 * c-common.h : Likewise.
719 * c-cppbuiltin.c : Likewise.
720 * c-dump.c : Likewise.
721 * c-format.c : Likewise.
722 * c-gimplify.c : Likewise.
723 * c-indentation.c : Likewise.
724 * c-lex.c : Likewise.
725 * c-omp.c : Likewise.
726 * c-opts.c : Likewise.
727 * c-pch.c : Likewise.
728 * c-ppoutput.c : Likewise.
729 * c-pragma.c : Likewise.
730 * c-pretty-print.c : Likewise.
731 * c-semantics.c : Likewise.
732 * c-ubsan.c : Likewise.
733 * cilk.c : Likewise.
734 * stub-objc.c : Likewise.
735
736 2015-06-08 Marek Polacek <polacek@redhat.com>
737
738 PR c/66415
739 * c-format.c (location_from_offset): Return LOC if LINE is null.
740
741 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
742
743 * c-common.h (c_parse_final_cleanups): New prototype.
744 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
745
746 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
747
748 * array-notation-common.c: Adjust includes for restructured coretypes.h.
749 * c-ada-spec.c: Likewise.
750 * c-cilkplus.c: Likewise.
751 * c-common.c: Likewise.
752 * c-common.h: Likewise.
753 * c-cppbuiltin.c: Likewise.
754 * c-dump.c: Likewise.
755 * c-format.c: Likewise.
756 * c-gimplify.c: Likewise.
757 * c-indentation.c: Likewise.
758 * c-lex.c: Likewise.
759 * c-omp.c: Likewise.
760 * c-opts.c: Likewise.
761 * c-pch.c: Likewise.
762 * c-ppoutput.c: Likewise.
763 * c-pragma.c: Likewise.
764 * c-pretty-print.c: Likewise.
765 * c-semantics.c: Likewise.
766 * c-ubsan.c: Likewise.
767 * cilk.c: Likewise.
768 * stub-objc.c: Likewise.
769
770 2015-06-02 David Malcolm <dmalcolm@redhat.com>
771
772 PR c/66220:
773 * c-indentation.c (should_warn_for_misleading_indentation): Use
774 expand_location rather than expand_location_to_spelling_point.
775 Don't warn if the guarding statement is more indented than the
776 next/body stmts.
777
778 2015-06-02 David Malcolm <dmalcolm@redhat.com>
779
780 * c-indentation.c (warn_for_misleading_indentation): Bail out
781 immediately if -Wmisleading-indentation isn't enabled.
782
783 2015-06-01 Martin Liska <mliska@suse.cz>
784
785 * c-format.c (check_format_arg):Use new type-based pool allocator.
786 (check_format_info_main) Likewise.
787
788 2015-05-31 Eric Botcazou <ebotcazou@adacore.com>
789
790 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
791 (has_nontrivial_methods): Likewise.
792
793 2015-05-25 Marek Polacek <polacek@redhat.com>
794
795 * c-ubsan.c (ubsan_instrument_shift): Use type0.
796
797 2015-05-22 Marek Polacek <polacek@redhat.com>
798
799 PR c/47043
800 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
801
802 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
803
804 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
805 STACK_GROWS_DOWNWARD.
806
807 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
808
809 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
810 STACK_GROWS_DOWNWARD rather than if it is defined.
811
812 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
813
814 PR c/52952
815 * c-format.c (location_column_from_byte_offset): New.
816 (location_from_offset): New.
817 (struct format_wanted_type): Add offset_loc field.
818 (check_format_info): Move handling of location for extra arguments
819 closer to the point of warning.
820 (check_format_info_main): Pass the result of location_from_offset
821 to warning_at.
822 (format_type_warning): Pass the result of location_from_offset
823 to warning_at.
824
825 2015-05-20 Marek Polacek <polacek@redhat.com>
826
827 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
828
829 2015-05-20 Marek Polacek <polacek@redhat.com>
830
831 * c-ada-spec.c (dump_sloc): Use DECL_P.
832
833 2015-05-20 Marek Polacek <polacek@redhat.com>
834
835 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
836 * c-common.c: Likewise.
837
838 2015-05-19 David Malcolm <dmalcolm@redhat.com>
839
840 * c-common.h (fe_file_change): Strengthen param from
841 const line_map * to const line_map_ordinary *.
842 (pp_file_change): Likewise.
843 * c-lex.c (fe_file_change): Likewise.
844 (cb_define): Use linemap_check_ordinary when invoking
845 SOURCE_LINE.
846 (cb_undef): Likewise.
847 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
848 invoking cb_file_change.
849 (c_finish_options): Likewise.
850 (push_command_line_include): Likewise.
851 (cb_file_change): Strengthen param "new_map" from
852 const line_map * to const line_map_ordinary *.
853 * c-ppoutput.c (cb_define): Likewise for local "map".
854 (pp_file_change): Likewise for param "map" and local "from".
855
856 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
857
858 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
859
860 2015-05-18 Tom de Vries <tom@codesourcery.com>
861
862 * c-common.c (build_va_arg_1): New function.
863 (build_va_arg): Add address operator to va_list operand if necessary.
864
865 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
866
867 PR c/48956
868 * c-common.c (int_safely_convertible_to_real_p): Define.
869 (unsafe_conversion_p): Check conversions involving complex types.
870 (conversion_warning): Add new warning message for conversions which
871 discard imaginary component.
872 * c-common.h: (enum conversion_safety): Add new enumerator for such
873 conversions.
874
875 2015-05-14 Marek Polacek <polacek@redhat.com>
876
877 PR c/66066
878 PR c/66127
879 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
880 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
881 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
882 use it. If FOR_INT_CONST, require that all evaluated operands be
883 INTEGER_CSTs.
884
885 2015-05-12 David Malcolm <dmalcolm@redhat.com>
886
887 * c-common.h (warn_for_misleading_indentation): New prototype.
888 * c-indentation.c: New file.
889 * c.opt (Wmisleading-indentation): New option.
890
891 2015-05-12 Tom de Vries <tom@codesourcery.com>
892
893 PR tree-optimization/66010
894 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
895
896 2015-05-09 Jason Merrill <jason@redhat.com>
897
898 * c-opts.c (c_common_post_options): Also clear
899 cpp_opts->cpp_warn_cxx11_compat.
900
901 * c-common.h (enum cxx_dialect): Add cxx_unset.
902 * c-common.c (cxx_dialect): Initialize to cxx_unset.
903 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
904
905 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
906 (std=gnu++0x): Mark as Undocumented.
907 (std=gnu++1y): Add deprecated message.
908
909 2015-05-08 Jason Merrill <jason@redhat.com>
910
911 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
912 * c-opts.c: Adjust.
913
914 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
915
916 2015-05-08 Marek Polacek <polacek@redhat.com>
917
918 PR c/64918
919 * c.opt (Woverride-init-side-effects): New option.
920
921 2015-05-07 Marek Polacek <polacek@redhat.com>
922
923 PR c/65179
924 * c-common.c (c_fully_fold_internal): Warn when left shifting a
925 negative value.
926 * c.opt (Wshift-negative-value): New option.
927 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
928 when -Wextra and C99/C++11 mode.
929
930 2015-05-07 Marek Polacek <polacek@redhat.com>
931 Martin Uecker <uecker@eecs.berkeley.edu>
932
933 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
934 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
935
936 2015-05-05 Jason Merrill <jason@redhat.com>
937
938 * c.opt (Wterminate): New.
939
940 2015-04-30 Marek Polacek <polacek@redhat.com>
941
942 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
943 require that the non-constant be of a boolean type.
944
945 2015-04-29 Josh Triplett <josh@joshtriplett.org>
946
947 * c-common.c (handle_section_attribute): Refactor to reduce
948 nesting and distinguish between error cases.
949
950 2015-04-29 Marek Polacek <polacek@redhat.com>
951
952 PR c/64610
953 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
954 with 0/1.
955
956 2015-04-29 Jakub Jelinek <jakub@redhat.com>
957
958 * c-common.h (omp_clause_mask): Unconditionally define as a class.
959 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
960 HOST_BITS_PER_WIDE_INT.
961
962 2015-04-28 Tom de Vries <tom@codesourcery.com>
963
964 PR tree-optimization/65887
965 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
966
967 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
968 Pierre-Marie de Rodat <derodat@adacore.com>
969
970 * c-ada-spec.c (in_function): Delete.
971 (dump_generic_ada_node): Do not change in_function and remove the
972 redundant code dealing with it.
973 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
974 (print_ada_methods): Output the static member functions in a nested
975 package after the regular methods as well as associated renamings.
976
977 2015-04-24 Marek Polacek <polacek@redhat.com>
978
979 PR c/65830
980 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
981 and OPT_Wshift_count_overflow.
982
983 PR c/63357
984 * c-common.c (warn_logical_operator): Warn if the operands have the
985 same expressions.
986
987 2015-04-24 Marek Polacek <polacek@redhat.com>
988
989 PR c/61534
990 * c-common.c (warn_logical_operator): Bail if either operand comes
991 from a macro expansion.
992
993 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
994
995 PR target/55143
996 * c-common.c (c_default_pointer_mode): Add definition.
997 * c-common.h (c_default_pointer_mode): Add declaration.
998
999 2015-03-11 Jakub Jelinek <jakub@redhat.com>
1000
1001 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
1002 on record_builtin_type argument.
1003
1004 2015-03-10 Jakub Jelinek <jakub@redhat.com>
1005
1006 PR c/65120
1007 * c-common.c (warn_logical_not_parentheses): Don't warn for
1008 !x == 0 or !x != 0.
1009
1010 2015-03-07 Marek Polacek <polacek@redhat.com>
1011
1012 PR sanitizer/65280
1013 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
1014 before trying to figure out whether we have a flexible array member.
1015
1016 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
1017 Jonathan Wakely <jwakely.gcc@gmail.com>
1018
1019 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
1020
1021 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
1022
1023 PR ada/65319
1024 * c-ada-spec.c (print_destructor): Remove obsolete code.
1025
1026 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
1027
1028 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
1029 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
1030 DECL_TEMPLATE_RESULT emulations.
1031 (dump_ada_template)): Add guard for TYPE_METHODS.
1032
1033 2015-02-27 Marek Polacek <polacek@redhat.com>
1034
1035 PR c/65040
1036 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
1037
1038 2015-02-27 Kai Tietz <ktietz@redhat.com>
1039
1040 PR c/35330
1041 * c-pragma.c (handle_pragma_weak): Do not try to create
1042 weak/alias of declarations not being function, or variable
1043 declarations.
1044
1045 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
1046
1047 PR libgomp/64625
1048 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1049 Remove macros.
1050 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
1051
1052 2015-02-16 Marek Polacek <polacek@redhat.com>
1053
1054 PR c/65066
1055 * c-format.c (check_format_types): Handle null param.
1056
1057 2015-02-13 Marek Polacek <polacek@redhat.com>
1058
1059 PR c/65040
1060 * c-format.c (check_format_types): Don't warn about different
1061 signedness if the original value is in the range of WANTED_TYPE.
1062
1063 2015-02-12 Jason Merrill <jason@redhat.com>
1064
1065 PR c++/64956
1066 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
1067 to the current highest version.
1068 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
1069
1070 2015-02-04 Jakub Jelinek <jakub@redhat.com>
1071
1072 PR c/64824
1073 PR c/64868
1074 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
1075 instead of RDIV_EXPR. Use build_binary_op instead of
1076 build2_loc.
1077
1078 2015-01-30 Joseph Myers <joseph@codesourcery.com>
1079
1080 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
1081 to pass input_location as first argument.
1082
1083 2015-01-23 Tom de Vries <tom@codesourcery.com>
1084
1085 PR libgomp/64672
1086 * c.opt (fopenacc): Mark as LTO option.
1087
1088 2015-01-23 Tom de Vries <tom@codesourcery.com>
1089
1090 PR libgomp/64707
1091 * c.opt (fopenmp): Mark as LTO option.
1092
1093 2015-01-21 Jakub Jelinek <jakub@redhat.com>
1094
1095 PR c/63307
1096 * cilk.c (fill_decls_vec): Only put decls into vector v.
1097 (compare_decls): Fix up formatting.
1098
1099 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
1100
1101 PR c/63307
1102 * cilk.c: Include vec.h.
1103 (struct cilk_decls): New structure.
1104 (wrapper_parm_cb): Split this function to...
1105 (fill_decls_vec): ...this...
1106 (create_parm_list): ...and this.
1107 (compare_decls): New function.
1108 (for_local_cb): Remove.
1109 (wrapper_local_cb): Ditto.
1110 (build_wrapper_type): For now first traverse and fill vector of
1111 declarations then sort it and then deal with sorted vector.
1112 (cilk_outline): Ditto.
1113 (declare_one_free_variable): Ditto.
1114
1115 2015-01-21 Jason Merrill <jason@redhat.com>
1116
1117 PR c++/64629
1118 * c-format.c (check_format_arg): Call decl_constant_value.
1119
1120 2015-01-19 Martin Liska <mliska@suse.cz>
1121
1122 * c-common.c (handle_noicf_attribute): New function.
1123
1124 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1125 Bernd Schmidt <bernds@codesourcery.com>
1126 James Norris <jnorris@codesourcery.com>
1127 Cesar Philippidis <cesar@codesourcery.com>
1128 Ilmir Usmanov <i.usmanov@samsung.com>
1129 Jakub Jelinek <jakub@redhat.com>
1130
1131 * c.opt (fopenacc): New option.
1132 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
1133 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1134 New macros.
1135 * c-common.h (c_finish_oacc_wait): New prototype.
1136 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
1137 (c_finish_oacc_wait): New function.
1138 * c-pragma.c (oacc_pragmas): New variable.
1139 (c_pp_lookup_pragma, init_pragma): Handle it.
1140 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
1141 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
1142 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
1143 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
1144 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
1145 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
1146 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
1147 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
1148 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
1149 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
1150 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
1151 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
1152 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
1153 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
1154 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
1155 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
1156 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
1157 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
1158 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
1159 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
1160 PRAGMA_OACC_CLAUSE_WORKER.
1161
1162 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
1163
1164 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
1165 for the new option fstack-protector_explicit.
1166 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
1167 (handle_stack_protect_attribute): New function.
1168
1169 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
1170
1171 * c.opt: New option -Warray-bounds=.
1172
1173 2015-01-09 Michael Collison <michael.collison@linaro.org>
1174
1175 * array-notation-common.c: Include hash-set.h, machmode.h,
1176 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1177 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
1178 * c-ada-spec.c: Ditto.
1179 * c-cilkplus.c: Ditto.
1180 * c-common.c: Include input.h due to flattening of tree.h.
1181 Define macro GCC_C_COMMON_C.
1182 * c-common.h: Flatten tree.h header files into c-common.h.
1183 Remove include of tree-core.h.
1184 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1185 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1186 fold-const.h, wide-int.h, and inchash.h due to
1187 flattening of tree.h.
1188 * c-dump.c: Ditto.
1189 * c-format.c: Flatten tree.h header files into c-common.h.
1190 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1191 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1192 fold-const.h, wide-int.h, and inchash.h due to
1193 flattening of tree.h.
1194 * c-dump.c: Include hash-set.h, machmode.h,
1195 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1196 fold-const.h, wide-int.h, and inchash.h due to
1197 flattening of tree.h.
1198 * c-format.c: Include hash-set.h, machmode.h,
1199 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1200 fold-const.h, wide-int.h, inchash.h and real.h due to
1201 flattening of tree.h.
1202 * c-gimplify.c: Include hash-set.h, machmode.h,
1203 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1204 fold-const.h, wide-int.h, and inchash.h due to
1205 flattening of tree.h.
1206 * cilk.c: Ditto.
1207 * c-lex.c: Ditto.
1208 * c-omp.c: Ditto.
1209 * c-opts.c: Ditto.
1210 * c-pch.c: Ditto.
1211 * c-ppoutput.c: Ditto.
1212 * c-pragma.c: Ditto.
1213 * c-pretty-print.c: Ditto.
1214 * c-semantics.c: Ditto.
1215 * c-ubsan.c: Ditto.
1216 * stub-objc.c: Ditto.
1217
1218 2015-01-08 Jason Merrill <jason@redhat.com>
1219
1220 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
1221 do_ubsan_in_current_function.
1222 (ubsan_maybe_instrument_reference_or_call): Likewise.
1223 * c-ubsan.h: Declare it.
1224
1225 2015-01-08 Mike Stump <mikestump@comcast.net>
1226
1227 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
1228
1229 2015-01-07 Marek Polacek <polacek@redhat.com>
1230
1231 PR c/64440
1232 * c-common.c (c_fully_fold_internal): Warn for division and modulo
1233 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
1234
1235 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
1236
1237 PR c++/31397
1238 * c.opt (Wsuggest-override): New option.
1239
1240 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1241
1242 Update copyright years.
1243
1244 2015-01-05 Marek Polacek <polacek@redhat.com>
1245
1246 PR c/64423
1247 * c-common.c (warn_array_subscript_with_type_char): Add location_t
1248 parameter. Use it.
1249 * c-common.h (warn_array_subscript_with_type_char): Update
1250 declaration.
1251
1252 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
1253
1254 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
1255 Control macro with flag_sized_deallocation.
1256
1257 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
1258
1259 * c.opt (Wdiscarded-array-qualifiers): New option.
1260
1261 2014-12-19 Jakub Jelinek <jakub@redhat.com>
1262
1263 PR preprocessor/63831
1264 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
1265 and __has_cpp_attribute here.
1266 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
1267 c_common_has_attribute.
1268 * c-common.h (c_common_has_attribute): New prototype.
1269 * c-lex.c (init_c_lex): Set cb->has_attribute to
1270 c_common_has_attribute instead of cb_has_attribute.
1271 (get_token_no_padding): New function.
1272 (cb_has_attribute): Renamed to ...
1273 (c_common_has_attribute): ... this. No longer static. Use
1274 get_token_no_padding, require ()s, don't build TREE_LIST
1275 unnecessarily, fix up formatting, adjust diagnostics, call
1276 init_attributes.
1277
1278 2014-12-15 Jason Merrill <jason@redhat.com>
1279
1280 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
1281 (-Wsized-deallocation): New.
1282 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
1283 to on in C++14 and up.
1284
1285 2014-12-11 Jason Merrill <jason@redhat.com>
1286
1287 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
1288
1289 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
1290 we aren't complaining about VLAs.
1291
1292 2014-12-06 Marek Polacek <polacek@redhat.com>
1293
1294 PR tree-optimization/64183
1295 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
1296 shift-expression if it is integer_type_node. Use types_compatible_p.
1297
1298 2014-11-29 Jakub Jelinek <jakub@redhat.com>
1299
1300 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
1301 last argument from create_tmp_var_raw and create_tmp_var calls.
1302 * cilk.c (gimplify_cilk_spawn): Likewise.
1303 * c-omp.c (c_finish_omp_atomic): Likewise.
1304
1305 2014-11-28 Marek Polacek <polacek@redhat.com>
1306
1307 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
1308 instead of unsigned_type_node.
1309
1310 2014-11-28 Marek Polacek <polacek@redhat.com>
1311
1312 PR c/63862
1313 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
1314 to op1_utype.
1315 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
1316 expression to unsigned_type_node.
1317
1318 2014-11-20 Mark Wielaard <mjw@redhat.com>
1319
1320 PR debug/38757
1321 * c-opts.c (set_std_c89): Set lang_hooks.name.
1322 (set_std_c99): Likewise.
1323 (set_std_c11): Likewise.
1324 (set_std_cxx98): Likewise.
1325 (set_std_cxx11): Likewise.
1326 (set_std_cxx14): Likewise.
1327 (set_std_cxx1z): Likewise.
1328
1329 2014-11-21 Jakub Jelinek <jakub@redhat.com>
1330
1331 PR target/63764
1332 * c-common.h (convert_vector_to_pointer_for_subscript): Change
1333 return type to bool.
1334 * c-common.c: Include gimple-expr.h.
1335 (convert_vector_to_pointer_for_subscript): Change return type to
1336 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
1337 and copy it into a TARGET_EXPR and use that instead of *vecp
1338 directly.
1339
1340 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1341
1342 Merger of git branch "gimple-classes-v2-option-3".
1343 * ChangeLog.gimple-classes: New.
1344 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
1345 from being just a vec<gimple> to a vec<gbind *>.
1346
1347 2014-11-18 Jakub Jelinek <jakub@redhat.com>
1348
1349 PR sanitizer/63813
1350 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
1351 argument to ptype, set type to TREE_TYPE (ptype). Don't call
1352 get_pointer_alignment for non-pointers. Use ptype, or if it is
1353 reference type, corresponding pointer type, as type of kind
1354 argument.
1355 (ubsan_maybe_instrument_reference,
1356 ubsan_maybe_instrument_member_call): Adjust callers.
1357
1358 2014-11-15 Marek Polacek <polacek@redhat.com>
1359
1360 PR middle-end/63884
1361 * array-notation-common.c (is_sec_implicit_index_fn): Return false
1362 for NULL fndecl.
1363 (extract_array_notation_exprs): Return for NULL node.
1364
1365 2014-11-12 Joseph Myers <joseph@codesourcery.com>
1366
1367 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
1368 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
1369
1370 2014-11-12 Jakub Jelinek <jakub@redhat.com>
1371
1372 PR c/59708
1373 * c-common.c (check_builtin_function_arguments): Handle
1374 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
1375
1376 2014-11-10 Andi Kleen <ak@linux.intel.com>
1377
1378 PR c/60804
1379 * c-common.h (check_no_cilk): Declare.
1380 * cilk.c (get_error_location): New function.
1381 (check_no_cilk): Dito.
1382
1383 2014-11-10 Andi Kleen <ak@linux.intel.com>
1384
1385 * cilk.c (recognize_spawn): Use expression location
1386 for error message.
1387
1388 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1389
1390 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
1391
1392 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1393
1394 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1395 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1396 (__cpp_range_based_for, __cpp_initializer_lists,
1397 __cpp_delegating_constructors, __cpp_nsdmi,
1398 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1399 for C++11; (__cpp_attribute_deprecated): Remove in favor of
1400 __has_cpp_attribute.
1401 * c-lex.c (cb_has_attribute): New callback CPP function;
1402 (init_c_lex): Set has_attribute callback.
1403
1404 2014-11-04 Richard Biener <rguenther@suse.de>
1405
1406 * c-common.c (shorten_compare): Do not shorten mixed
1407 DFP and non-DFP compares.
1408
1409 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1410
1411 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
1412 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
1413 Commentary and rearrangement of tests.
1414 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
1415 Commentary and rearrangement of tests.
1416 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
1417 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
1418
1419 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1420
1421 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
1422 enum from machine_mode.
1423
1424 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
1425
1426 * c-common.c: Adjust include files.
1427 * c-gimplify.c: Ditto.
1428 * cilk.c: Ditto.
1429 * c-pragma.c: Ditto.
1430 * c-ubsan.c: Ditto.
1431
1432 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
1433
1434 * c-gimplify.c: Adjust include files.
1435
1436 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1437
1438 PR c++/53061
1439 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
1440 c_common_initialize_diagnostics.
1441 * c-common.h: Likewise.
1442
1443 2014-10-24 Marek Polacek <polacek@redhat.com>
1444
1445 PR c/56980
1446 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
1447 print "struct"/"union"/"enum" for typedefed names.
1448
1449 2014-10-23 Marek Polacek <polacek@redhat.com>
1450
1451 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
1452 in unsigned type.
1453
1454 2014-10-22 Jakub Jelinek <jakub@redhat.com>
1455 Yury Gribov <y.gribov@samsung.com>
1456
1457 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1458 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
1459 instead of flag_sanitize_recover as bool flag.
1460
1461 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
1462
1463 * cilk.c: Revert previous change.
1464
1465 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
1466
1467 PR c/63307
1468 * cilk.c: Include vec.h.
1469 (struct cilk_decls): New structure.
1470 (wrapper_parm_cb): Split this function to...
1471 (fill_decls_vec): ...this...
1472 (create_parm_list): ...and this.
1473 (compare_decls): New function.
1474 (for_local_cb): Remove.
1475 (wrapper_local_cb): Ditto.
1476 (build_wrapper_type): For now first traverse and fill vector of
1477 declarations then sort it and then deal with sorted vector.
1478 (cilk_outline): Ditto.
1479 (declare_one_free_variable): Ditto.
1480
1481 2014-10-17 Marek Polacek <polacek@redhat.com>
1482
1483 * c-opts.c (c_common_post_options): Set warn_implicit_int.
1484 * c.opt (Wimplicit-int): Initialize to -1.
1485
1486 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
1487
1488 * c-pragma.c: Adjust include files.
1489 * c-semantics.c: Likewise.
1490
1491 2014-10-16 DJ Delorie <dj@redhat.com>
1492
1493 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
1494 multiples of bytes.
1495
1496 2014-10-14 Jason Merrill <jason@redhat.com>
1497
1498 PR c++/63455
1499 * c-common.h (CPP_PREPARSED_EXPR): New.
1500 (N_CP_TTYPES): Adjust.
1501
1502 2014-10-15 Marek Polacek <polacek@redhat.com>
1503
1504 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
1505
1506 2014-10-14 DJ Delorie <dj@redhat.com>
1507
1508 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
1509 types, not just __int128.
1510 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
1511 types, not just __int128.
1512 (cpp_atomic_builtins): Round pointer sizes up.
1513 (type_suffix): Use type precision, not specific types.
1514 * c-common.c (c_common_reswords): Remove __int128 special case.
1515 (c_common_type_for_size): Check for all __intN types, not just
1516 __int128.
1517 (c_common_type_for_mode): Likewise.
1518 (c_common_signed_or_unsigned_type): Likewise.
1519 (c_build_bitfield_integer_type): Likewise.
1520 (c_common_nodes_and_builtins): Likewise.
1521 (keyword_begins_type_specifier): Likewise.
1522 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
1523 __intN variants.
1524
1525 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
1526
1527 * c-common.c: Use hash_table instead of hashtab.
1528
1529 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
1530
1531 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
1532 C++11 section.
1533
1534 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
1535
1536 PR c++/54427
1537 PR c++/57198
1538 PR c++/58845
1539 * c-common.c (warn_logical_operator): Punt for vectors.
1540
1541 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1542
1543 Implement SD-6: SG10 Feature Test Recommendations
1544 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
1545 macros and the __has_header macro.
1546
1547 2014-09-30 Jason Merrill <jason@redhat.com>
1548
1549 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
1550 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
1551 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1552
1553 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
1554 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1555
1556 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
1557 * c-common.c (c_common_reswords): Remove __is_convertible_to.
1558
1559 2014-09-24 Marek Polacek <polacek@redhat.com>
1560
1561 PR c/61405
1562 PR c/53874
1563 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
1564
1565 2014-09-23 Andi Kleen <ak@linux.intel.com>
1566
1567 * c-common.c (handle_no_reorder_attribute): New function.
1568 (c_common_attribute_table): Add no_reorder attribute.
1569
1570 2014-09-22 Joseph Myers <joseph@codesourcery.com>
1571
1572 * c-cppbuiltin.c (c_cpp_builtins): Define
1573 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
1574 modes.
1575
1576 2014-09-18 Joseph Myers <joseph@codesourcery.com>
1577
1578 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
1579 for supported floating-point modes.
1580
1581 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1582
1583 * c.opt (Wpsabi): Use LangEnabledBy.
1584 * c-opts.c (c_common_handle_option): Do not handle here.
1585
1586 2014-09-12 Joseph Myers <joseph@codesourcery.com>
1587
1588 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
1589 macros for floating-point modes.
1590
1591 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
1592
1593 PR target/58757
1594 * c-cppbuiltin.c (builtin_define_float_constants): Correct
1595 __*_DENORM_MIN__ without denormals.
1596
1597 2014-09-10 Jakub Jelinek <jakub@redhat.com>
1598
1599 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1600 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1601 ubsan_create_data callers.
1602 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
1603 index is constant or BIT_AND_EXPR with constant mask and is
1604 small enough for the bound.
1605 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
1606 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
1607
1608 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1609
1610 * c.opt: Add CppReason to various flags.
1611 (Wdate-time): Re-sort.
1612 * c-common.c: Include c-common.h earlier.
1613 (struct reason_option_codes_t): Delete.
1614 (c_option_controlling_cpp_error): Prefix global type and struct
1615 with cpp_.
1616
1617 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1618
1619 * c.opt (Wnormalized): New.
1620 (Wnormalized=): Use Enum and Reject Negative.
1621 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
1622
1623 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1624
1625 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
1626 digits of floating-point modes if -fbuilding-libgcc.
1627
1628 2014-09-05 Joseph Myers <joseph@codesourcery.com>
1629
1630 * c-cppbuiltin.c (c_cpp_builtins): Also define
1631 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
1632 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
1633 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
1634 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
1635 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
1636 __LIBGCC_STACK_GROWS_DOWNWARD__,
1637 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
1638 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
1639 __LIBGCC_DWARF_FRAME_REGISTERS__,
1640 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
1641 __LIBGCC_STACK_POINTER_REGNUM__ and
1642 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
1643 (builtin_define_with_value): Handle backslash-escaping in string
1644 macro values.
1645
1646 2014-09-05 Richard Biener <rguenther@suse.de>
1647
1648 PR middle-end/63148
1649 * c-format.c (check_format_arg): Properly handle
1650 effectively signed POINTER_PLUS_EXPR offset.
1651
1652 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1653
1654 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
1655 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
1656 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
1657 and Init.
1658 * c-opts.c (c_common_handle_option): Do not handle here.
1659 (sanitize_cpp_opts): Likewise.
1660 * c-common.c (struct reason_option_codes_t): Handle
1661 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
1662
1663 2014-09-03 Marek Polacek <polacek@redhat.com>
1664
1665 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
1666
1667 2014-09-02 Jakub Jelinek <jakub@redhat.com>
1668 Balaji V. Iyer <balaji.v.iyer@intel.com>
1669 Igor Zamyatin <igor.zamyatin@intel.com>
1670
1671 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
1672 * c-common.c (c_common_reswords): Added _Cilk_for.
1673 * c-common.h (enum rid): Added RID_CILK_FOR.
1674 (cilk_for_number_of_iterations): Add declaration.
1675 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
1676 CILK_FOR.
1677 * c-pragma.c (init_pragma): Register "grainsize" pragma.
1678 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
1679
1680 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1681
1682 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
1683 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
1684 Wundef): Use CPP, Var and Init.
1685 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
1686
1687 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1688
1689 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
1690 * c-opts.c (c_common_handle_option): Do not handle here.
1691
1692 2014-08-25 Jason Merrill <jason@redhat.com>
1693
1694 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
1695 -std=c++14 and -std=gnu++14, rather than the reverse.
1696 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
1697 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
1698 * c-common.h (cxx_dialect): Remove cxx1y.
1699
1700 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
1701
1702 * c-common.h (enum cxx_dialect): Add cxx14.
1703 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
1704 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
1705 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
1706
1707 2014-08-22 Jason Merrill <jason@redhat.com>
1708
1709 * c.opt (std=gnu++17): Fix alias.
1710
1711 2014-08-22 Marek Polacek <polacek@redhat.com>
1712
1713 PR c++/62199
1714 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
1715 check for vector types. Drop LHS argument.
1716 * c-common.h (warn_logical_not_parentheses): Adjust.
1717
1718 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1719
1720 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
1721 (Wmultichar): Likewise.
1722 (Wdate-time): Use C-family languages instead of Common. Use CPP
1723 and Var.
1724 * c-opts.c (c_common_handle_option): Do not handle the above
1725 options here.
1726 (sanitize_cpp_opts): Likewise.
1727
1728 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1729
1730 PR fortran/44054
1731 * c-opts.c: Include tree-diagnostics.h.
1732 (c_diagnostic_finalizer): New.
1733 (c_common_initialize_diagnostics): Use it.
1734
1735 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1736
1737 PR preprocessor/51303
1738 * c-common.c (struct reason_option_codes_t option_codes):
1739 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
1740
1741 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1742
1743 PR c/60975
1744 PR c/53063
1745 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
1746 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
1747 (c_common_post_options): Call init_global_opts_from_cpp.
1748 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
1749
1750 2014-08-19 Marek Polacek <polacek@redhat.com>
1751
1752 PR c++/62153
1753 * c-common.c (maybe_warn_bool_compare): New function.
1754 * c-common.h (maybe_warn_bool_compare): Declare.
1755 * c.opt (Wbool-compare): New option.
1756
1757 2014-08-19 Marek Polacek <polacek@redhat.com>
1758
1759 * c.opt (Wc99-c11-compat): New option.
1760
1761 2014-08-19 Marek Polacek <polacek@redhat.com>
1762
1763 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
1764 to warn_c90_c99_compat.
1765 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
1766 to -1.
1767
1768 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1769 Steven Bosscher <steven@gcc.gnu.org>
1770
1771 PR c/52952
1772 * c-format.c: Add extra_arg_loc and format_string_loc to struct
1773 format_check_results.
1774 (check_function_format): Use true and add comment for boolean
1775 argument.
1776 (finish_dollar_format_checking): Use explicit location when warning.
1777 (check_format_info): Likewise.
1778 (check_format_arg): Set extra_arg_loc and format_string_loc.
1779 (check_format_info_main): Use explicit location when warning.
1780 (check_format_types): Pass explicit location.
1781 (format_type_warning): Likewise.
1782
1783 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1784
1785 PR fortran/44054
1786 * c-format.c: Handle Fortran flags.
1787
1788 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
1789
1790 PR other/61962
1791 * array-notation-common.c (find_rank): Added handling for other
1792 types of references.
1793
1794 2014-08-10 Marek Polacek <polacek@redhat.com>
1795
1796 PR c/51849
1797 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
1798 * c.opt (Wc90-c99-compat): Add option.
1799
1800 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
1801
1802 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1803
1804 2014-08-03 Marek Polacek <polacek@redhat.com>
1805
1806 * c-common.c (check_case_value): Add location_t parameter. Use it.
1807 (c_add_case_label): Pass loc to check_case_value.
1808
1809 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1810
1811 * cilk.c: Use hash_map instead of pointer_map.
1812
1813 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1814
1815 * c-gimplify.c: Use hash_set instead of pointer_set.
1816
1817 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
1818
1819 PR middle-end/61455
1820 * array-notation-common.c (extract_array_notation_exprs): Handling
1821 of DECL_EXPR added.
1822
1823 2014-08-01 Jakub Jelinek <jakub@redhat.com>
1824
1825 * c-common.h (min_align_of_type): Removed prototype.
1826 * c-common.c (min_align_of_type): Removed.
1827 * c-ubsan.h (ubsan_maybe_instrument_reference,
1828 ubsan_maybe_instrument_member_call): New prototypes.
1829 * c-ubsan.c: Include stor-layout.h and builtins.h.
1830 (ubsan_maybe_instrument_reference_or_call,
1831 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1832 functions.
1833
1834 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
1835
1836 PR c++/60517
1837 * c.opt (-Wreturn-local-addr): Move to common.opt.
1838
1839 2014-07-30 Jason Merrill <jason@redhat.com>
1840
1841 PR c++/61659
1842 PR c++/61687
1843 Revert:
1844 * c.opt (-fuse-all-virtuals): New.
1845
1846 2014-07-30 Tom Tromey <tromey@redhat.com>
1847
1848 PR c/59855
1849 * c.opt (Wdesignated-init): New option.
1850 * c-common.c (c_common_attribute_table): Add "designated_init".
1851 (handle_designated_init): New function.
1852
1853 2014-07-24 Marek Polacek <polacek@redhat.com>
1854
1855 PR c/57653
1856 * c-opts.c (c_finish_options): If -imacros is in effect, return.
1857
1858 2014-07-16 Dodji Seketeli <dodji@redhat.com>
1859
1860 PR preprocessor/60723 - missing system-ness marks for macro tokens
1861 * c-ppoutput.c (struct print::prev_was_system_token): New data
1862 member.
1863 (init_pp_output): Initialize it.
1864 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1865 (do_line_change): Return a flag saying if a line marker was
1866 emitted or not.
1867 (scan_translation_unit): Detect if the system-ness of the token we
1868 are about to emit is different from the one of the previously
1869 emitted token. If so, emit a line marker. Avoid emitting useless
1870 adjacent line markers. Avoid emitting line markers for tokens
1871 originating from the expansion of built-in macros.
1872 (scan_translation_unit_directives_only): Adjust.
1873
1874 2014-07-15 Marek Polacek <polacek@redhat.com>
1875
1876 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1877 TYPE_MAX_VALUE is NULL.
1878
1879 2014-07-14 Jakub Jelinek <jakub@redhat.com>
1880
1881 PR middle-end/61294
1882 * c.opt (Wmemset-transposed-args): New warning.
1883
1884 2014-07-10 Jason Merrill <jason@redhat.com>
1885
1886 PR c++/61659
1887 PR c++/61687
1888 * c.opt (-fuse-all-virtuals): New.
1889
1890 2014-07-09 Richard Biener <rguenther@suse.de>
1891
1892 PR c-family/61741
1893 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1894 using unsigned arithmetic if overflow does not wrap instead of
1895 if overflow is undefined.
1896
1897 2014-07-06 Marek Polacek <polacek@redhat.com>
1898
1899 PR c/6940
1900 * c.opt (Wsizeof-array-argument): New option.
1901
1902 2014-07-03 Jakub Jelinek <jakub@redhat.com>
1903
1904 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
1905 comments->count <= 1, as comments->entries might be NULL.
1906
1907 2014-07-01 Marek Polacek <polacek@redhat.com>
1908
1909 * c.opt (Wint-conversion): New option.
1910
1911 2014-07-01 Marek Polacek <polacek@redhat.com>
1912
1913 PR c/58286
1914 * c.opt (Wincompatible-pointer-types): New option.
1915
1916 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1917
1918 PR c++/51400
1919 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1920 Do not discard TYPE_QUALS of type.
1921
1922 2014-06-26 Jason Merrill <jason@redhat.com>
1923
1924 * c-common.h (enum cxx_dialect): Add cxx1z.
1925 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1926 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1927
1928 2014-06-26 Teresa Johnson <tejohnson@google.com>
1929
1930 * c-common.h (get_dump_info): Declare.
1931 * c-gimplify.c (c_genericize): Use saved dump files.
1932 * c-opts.c (c_common_parse_file): Begin and end dumps
1933 once around parsing invocation.
1934 (get_dump_info): New function.
1935
1936 2014-06-23 Marek Polacek <polacek@redhat.com>
1937 Andrew MacLeod <amacleod@redhat.com>
1938
1939 PR c/61553
1940 * c-common.c (get_atomic_generic_size): Don't segfault if the
1941 type doesn't have a size.
1942
1943 2014-06-20 Marek Polacek <polacek@redhat.com>
1944
1945 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1946 (ubsan_walk_array_refs_r): New function.
1947 (c_genericize): Instrument array bounds.
1948 * c-ubsan.c: Include "internal-fn.h".
1949 (ubsan_instrument_division): Mark instrumented arrays as having
1950 side effects. Adjust ubsan_type_descriptor call.
1951 (ubsan_instrument_shift): Likewise.
1952 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1953 (ubsan_instrument_bounds): New function.
1954 (ubsan_array_ref_instrumented_p): New function.
1955 (ubsan_maybe_instrument_array_ref): New function.
1956 * c-ubsan.h (ubsan_instrument_bounds): Declare.
1957 (ubsan_array_ref_instrumented_p): Declare.
1958 (ubsan_maybe_instrument_array_ref): Declare.
1959
1960 2014-06-20 Hale Wang <hale.wang@arm.com>
1961
1962 PR lto/61123
1963 * c.opt (fshort-enums): Add to LTO.
1964 * c.opt (fshort-wchar): Likewise.
1965
1966 2014-06-16 Marek Polacek <polacek@redhat.com>
1967
1968 PR c/60439
1969 * c.opt (Wswitch-bool): Add Var.
1970
1971 2014-06-12 Jakub Jelinek <jakub@redhat.com>
1972
1973 PR middle-end/61486
1974 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1975 #pragma omp target teams or
1976 #pragma omp {,target }teams distribute simd.
1977
1978 2014-06-12 Jason Merrill <jason@redhat.com>
1979
1980 * c.opt (Wabi=, fabi-compat-version): New.
1981 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1982 (c_common_post_options): Handle flag_abi_compat_version default.
1983 Disallow -fabi-compat-version=1.
1984 * c-common.h (abi_version_crosses): New.
1985
1986 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
1987
1988 * c-common.c (handle_section_attribute): Update handling for
1989 section names that are no longer trees.
1990
1991 2014-06-10 Jakub Jelinek <jakub@redhat.com>
1992
1993 PR fortran/60928
1994 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1995 (omp_pragmas): ... back here.
1996
1997 2014-06-05 Marek Polacek <polacek@redhat.com>
1998
1999 PR c/49706
2000 * c-common.c (warn_logical_not_parentheses): New function.
2001 * c-common.h (warn_logical_not_parentheses): Declare.
2002 * c.opt (Wlogical-not-parentheses): New option.
2003
2004 2014-06-04 Marek Polacek <polacek@redhat.com>
2005
2006 PR c/30020
2007 * c-common.c (check_case_bounds): Add location parameter.
2008 Use it.
2009 (c_add_case_label): Pass loc to check_case_bounds.
2010
2011 2014-06-03 Marek Polacek <polacek@redhat.com>
2012
2013 PR c/60439
2014 * c.opt (Wswitch-bool): New option.
2015
2016 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
2017
2018 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
2019 Remove prototypes.
2020 (record_types_used_by_current_var_decl): Move prototype to where
2021 it belongs.
2022
2023 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
2024 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
2025 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
2026
2027 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2028
2029 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
2030 * c-common.c (c_common_nodes_and_builtins): Don't initialize
2031 void_zero_node.
2032 * c-pretty-print.c (pp_c_void_constant): New function.
2033 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
2034 (c_pretty_printer::expression): Handle VOID_CST.
2035 * cilk.c (extract_free_variables): Likewise.
2036 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
2037 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
2038
2039 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
2040
2041 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
2042 * c-pragma.c (push_alignment): Adjust.
2043 (handle_pragma_push_options): Likewise.
2044
2045 2014-05-09 Marek Polacek <polacek@redhat.com>
2046
2047 PR c/50459
2048 * c-common.c (check_user_alignment): Return -1 if alignment is error
2049 node.
2050 (handle_aligned_attribute): Don't call default_conversion on
2051 FUNCTION_DECLs.
2052 (handle_vector_size_attribute): Likewise.
2053 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
2054 (handle_sentinel_attribute): Call default_conversion and allow even
2055 integral types as an argument.
2056
2057 2014-05-08 Marek Polacek <polacek@redhat.com>
2058
2059 PR c/61053
2060 * c-common.c (min_align_of_type): New function factored out from...
2061 (c_sizeof_or_alignof_type): ...here.
2062 * c-common.h (min_align_of_type): Declare.
2063
2064 2014-05-08 Marek Polacek <polacek@redhat.com>
2065
2066 PR c/61077
2067 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
2068 parameter type of main.
2069
2070 2014-05-07 DJ Delorie <dj@redhat.com>
2071
2072 * c-cppbuiltin.c (print_bits_of_hex): New.
2073 (builtin_define_type_minmax): Print values using hex so as not to
2074 require a pre-computed list of string values.
2075
2076 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
2077 Mike Stump <mikestump@comcast.net>
2078 Richard Sandiford <rdsandiford@googlemail.com>
2079
2080 * c-ada-spec.c: Include wide-int.h.
2081 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
2082 (dump_generic_ada_node): Use wide-int interfaces.
2083 * c-common.c: Include wide-int-print.h.
2084 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
2085 (pointer_int_sum): Use wide-int interfaces.
2086 (c_common_nodes_and_builtins): Use make_int_cst.
2087 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
2088 (handle_alloc_size_attribute): Use wide-int interfaces.
2089 (get_nonnull_operand): Likewise.
2090 * c-format.c (get_constant): Use tree_fits_uhwi_p.
2091 * c-lex.c: Include wide-int.h.
2092 (narrowest_unsigned_type): Take a widest_int rather than two
2093 HOST_WIDE_INTs.
2094 (narrowest_signed_type): Likewise.
2095 (interpret_integer): Update accordingly. Use wide-int interfaces.
2096 (lex_charconst): Use wide-int interfaces.
2097 * c-pretty-print.c: Include wide-int.h.
2098 (pp_c_integer_constant): Use wide-int interfaces.
2099 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
2100 INT_CST_LT_UNSIGNED.
2101
2102 2014-05-06 Richard Biener <rguenther@suse.de>
2103
2104 * c-opts.c (c_common_post_options): For -freestanding,
2105 -fno-hosted and -fno-builtin disable pattern recognition
2106 if not enabled explicitely.
2107
2108 2014-05-02 Marek Polacek <polacek@redhat.com>
2109
2110 * c.opt (Wsizeof-pointer-memaccess): Describe option.
2111
2112 2014-05-01 Marek Polacek <polacek@redhat.com>
2113
2114 PR c/43245
2115 * c.opt (Wdiscarded-qualifiers): Add.
2116
2117 2014-04-30 Marek Polacek <polacek@redhat.com>
2118
2119 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
2120 INT_MIN / -1 sanitization only for integer types.
2121
2122 2014-04-25 Marek Polacek <polacek@redhat.com>
2123
2124 PR c/18079
2125 * c-common.c (handle_noinline_attribute): Warn if the attribute
2126 conflicts with always_inline attribute.
2127 (handle_always_inline_attribute): Warn if the attribute conflicts
2128 with noinline attribute.
2129
2130 2014-04-25 Marek Polacek <polacek@redhat.com>
2131
2132 PR c/60156
2133 * c-common.c (check_main_parameter_types): Warn about variadic main.
2134
2135 2014-04-24 Mike Stump <mikestump@comcast.net>
2136
2137 * c.opt (Wshadow-ivar): Default to on.
2138
2139 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
2140
2141 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
2142
2143 2014-04-23 Marek Polacek <polacek@redhat.com>
2144
2145 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
2146
2147 2014-04-22 Jakub Jelinek <jakub@redhat.com>
2148
2149 PR sanitizer/60275
2150 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
2151 if flag_sanitize_undefined_trap_on_error.
2152 (ubsan_instrument_division, ubsan_instrument_shift,
2153 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
2154 if !flag_sanitize_recover.
2155
2156 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
2157
2158 PR libstdc++/43622
2159 * c-common.c (registered_builtin_types): Make non-static.
2160 * c-common.h (registered_builtin_types): Declare.
2161
2162 2014-04-14 Richard Biener <rguenther@suse.de>
2163 Marc Glisse <marc.glisse@inria.fr>
2164
2165 PR c/60819
2166 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
2167 apply may-alias the scalar pointer type when applicable.
2168
2169 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
2170
2171 PR middle-end/60467
2172 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
2173 as possible argument for Cilk_spawn.
2174
2175 2014-04-11 Tobias Burnus <burnus@net-b.de>
2176
2177 PR c/60194
2178 * c.opt (Wformat-signedness): Add
2179 * c-format.c(check_format_types): Use it.
2180
2181 2014-04-11 Jason Merrill <jason@redhat.com>
2182
2183 PR c++/57926
2184 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
2185 default_conversion for an array argument.
2186
2187 2014-04-08 Marek Polacek <polacek@redhat.com>
2188
2189 PR sanitizer/60745
2190 * c-ubsan.c: Include asan.h.
2191 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
2192
2193 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
2194
2195 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
2196
2197 2014-04-02 Marek Polacek <polacek@redhat.com>
2198
2199 * c-common.h (c_expand_expr): Remove declaration.
2200
2201 2014-03-28 Jakub Jelinek <jakub@redhat.com>
2202
2203 PR c++/60689
2204 * c-common.c (add_atomic_size_parameter): When creating new
2205 params vector, push the size argument first.
2206
2207 2014-03-26 Jakub Jelinek <jakub@redhat.com>
2208
2209 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2210 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2211 ubsan_create_data callers.
2212
2213 2014-03-22 Jakub Jelinek <jakub@redhat.com>
2214
2215 PR debug/60603
2216 * c-opts.c (c_finish_options): Restore cb_file_change call to
2217 <built-in>.
2218
2219 2014-03-13 Jakub Jelinek <jakub@redhat.com>
2220
2221 PR middle-end/36282
2222 * c-pragma.c (apply_pragma_weak): Only look at
2223 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
2224 DECL_ASSEMBLER_NAME_SET_P (decl).
2225 (maybe_apply_pending_pragma_weaks): Exit early if
2226 vec_safe_is_empty (pending_weaks) rather than only when
2227 !pending_weaks.
2228 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
2229 set assembler name back to NULL afterwards.
2230
2231 2014-03-11 Jason Merrill <jason@redhat.com>
2232
2233 * c.opt: Add -std=gnu++14.
2234
2235 2014-03-11 Ian Bolton <ian.bolton@arm.com>
2236
2237 * c-opts.c (c_common_post_options): Don't override
2238 -ffp-contract=fast if unsafe-math-optimizations is on.
2239
2240 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
2241
2242 * c.opt: Enable LTO FE for fshort-double.
2243
2244 2014-03-07 Jason Merrill <jason@redhat.com>
2245
2246 * c.opt: Add -std=c++14.
2247
2248 2014-03-06 Marek Polacek <polacek@redhat.com>
2249
2250 PR c/60197
2251 * cilk.c (contains_cilk_spawn_stmt): New function.
2252 (contains_cilk_spawn_stmt_walker): Likewise.
2253 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
2254 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
2255
2256 2014-03-03 Jakub Jelinek <jakub@redhat.com>
2257
2258 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
2259 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
2260 even when flag_preprocess_only.
2261
2262 2014-02-26 Jason Merrill <jason@redhat.com>
2263
2264 PR c++/59231
2265 PR c++/11586
2266 * c-common.c (shorten_compare): Don't check
2267 c_inhibit_evaluation_warnings.
2268
2269 2014-02-19 Jakub Jelinek <jakub@redhat.com>
2270
2271 PR c/37743
2272 * c-common.c (c_common_nodes_and_builtins): When initializing
2273 c_uint{16,32,64}_type_node, also set corresponding
2274 uint{16,32,64}_type_node to the same value.
2275
2276 PR c++/60267
2277 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
2278 for PRAGMA_IVDEP if flag_preprocess_only.
2279
2280 2014-02-12 Jakub Jelinek <jakub@redhat.com>
2281
2282 PR c/60101
2283 * c-common.c (merge_tlist): If copy is true, call new_tlist,
2284 if false, add ADD itself, rather than vice versa.
2285 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
2286 copy. For SAVE_EXPR, only call merge_tlist once.
2287
2288 2014-02-08 Jakub Jelinek <jakub@redhat.com>
2289
2290 PR middle-end/60092
2291 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
2292 and tree_to_uhwi.
2293 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
2294 functions.
2295 (c_common_attribute_table): Add alloc_align and assume_aligned
2296 attributes.
2297
2298 2014-02-06 Marek Polacek <polacek@redhat.com>
2299
2300 PR c/60087
2301 * c-common.c (warn_for_sign_compare): Call warning_at with location
2302 instead of warning.
2303
2304 2014-02-05 Marek Polacek <polacek@redhat.com>
2305
2306 PR c/53123
2307 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
2308 statement.
2309
2310 2014-02-04 Marek Polacek <polacek@redhat.com>
2311
2312 PR c/60036
2313 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
2314 SAVE_EXPR.
2315
2316 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
2317
2318 PR c++/53017
2319 PR c++/59211
2320 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
2321 handle_vector_size_attribute, handle_nonnull_attribute): Call
2322 default_conversion on the attribute argument.
2323 (handle_nonnull_attribute): Increment the argument number.
2324
2325 2014-01-31 Marek Polacek <polacek@redhat.com>
2326
2327 PR c/59963
2328 * c-common.c (add_atomic_size_parameter): Pass vNULL to
2329 build_function_call_vec.
2330 (resolve_overloaded_builtin): Likewise.
2331 * c-common.h (build_function_call_vec): Adjust declaration.
2332
2333 2014-01-30 Marek Polacek <polacek@redhat.com>
2334
2335 PR c/59940
2336 * c-common.h (unsafe_conversion_p): Adjust declaration.
2337 (warnings_for_convert_and_check): Likewise.
2338 (convert_and_check): Likewise.
2339 * c-common.c (unsafe_conversion_p): Add location parameter. Call
2340 expansion_point_location_if_in_system_header on it.
2341 (warnings_for_convert_and_check): Add location parameter. Call
2342 expansion_point_location_if_in_system_header on it. Use it.
2343 (convert_and_check): Add location parameter. Use it.
2344 (conversion_warning): Likewise.
2345 (c_add_case_label): Adjust convert_and_check calls.
2346 (scalar_to_vector): Adjust unsafe_conversion_p calls.
2347
2348 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2349
2350 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
2351 flag_cilkplus.
2352 * c-pragma.c (init_pragma): Likewise.
2353 * c.opt: Likewise.
2354
2355 2014-01-23 Marek Polacek <polacek@redhat.com>
2356
2357 PR c/59846
2358 * c-common.c (shorten_compare): Add location_t parameter.
2359 * c-common.h (shorten_binary_op): Adjust declaration.
2360
2361 2014-01-23 Marek Polacek <polacek@redhat.com>
2362
2363 PR c/58346
2364 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
2365 * c-common.h: Declare it.
2366
2367 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
2368
2369 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
2370 * c-ada-spec.c (dump_ads): Likewise.
2371 (cpp_check): Likewise.
2372 (dump_ada_specs): Likewise.
2373
2374 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
2375
2376 PR c++/49718
2377 * c-common.c (handle_no_instrument_function_attribute): Allow
2378 no_instrument_function attribute in class member
2379 definition/declaration.
2380
2381 2014-01-15 Jakub Jelinek <jakub@redhat.com>
2382
2383 PR c/58943
2384 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
2385 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
2386 being COMPOUND_EXPR.
2387 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
2388 operand a SAVE_EXPR and second MODIFY_EXPR.
2389
2390 2014-01-09 Jakub Jelinek <jakub@redhat.com>
2391
2392 PR target/58115
2393 * c-pch.c (c_common_write_pch): Call
2394 prepare_target_option_nodes_for_pch.
2395
2396 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2397
2398 Update copyright years
2399
2400 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2401
2402 * array-notation-common.c, c-cilkplus.c: Use the standard form for
2403 the copyright notice.
2404
2405 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
2406
2407 * c-ada-spec.c (print_constructor): New function.
2408 (print_destructor): Retrieve the origin of the destructor.
2409 (print_ada_declaration): Revamp handling of constructors/destructors.
2410
2411 2013-12-23 Stuart Hastings <stuart@apple.com>
2412 Bill Maddox <maddox@google.com>
2413 Jason Merrill <jason@redhat.com>
2414
2415 * c.opt: Add -fdeclone-ctor-dtor.
2416 * c-opts.c (c_common_post_options): Default to on iff -Os.
2417
2418 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2419
2420 * c-common.c (c_common_attribute_table): Added "cilk simd function"
2421 attribute.
2422 * c-pragma.h (enum pragma_cilk_clause): Remove.
2423 (enum pragma_omp_clause): Added the following fields:
2424 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
2425 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
2426 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
2427 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
2428 PRAGMA_CILK_CLAUSE_UNIFORM.
2429
2430
2431 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2432
2433 * cilk.c (cilk_outline): Made this function non-static.
2434 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
2435 (create_cilk_wrapper): Added a new parameter: a function pointer.
2436 (c_install_body_w_frame_cleanup): Remove
2437 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
2438 * c-common.h (cilk_outline): New prototype.
2439 (gimplify_cilk_spawn): Removed two parameters.
2440 (cilk_install_body_with_frame_cleanup): New prototype.
2441 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
2442 CILK_SPAWN_STMT case.
2443
2444 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
2445
2446 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
2447
2448 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
2449 (int_array_type_node): Remove.
2450 * c-common.c (c_common_nodes_and_builtins): Don't build it.
2451
2452 2013-12-05 Marek Polacek <polacek@redhat.com>
2453
2454 PR c/52023
2455 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
2456 [ADJUST_FIELD_ALIGN].
2457
2458 2013-12-04 Joseph Myers <joseph@codesourcery.com>
2459
2460 PR c/52023
2461 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
2462 and check field alignment if set.
2463 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
2464 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
2465
2466 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2467 Marek Polacek <polacek@redhat.com>
2468
2469 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
2470 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
2471
2472 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
2473
2474 PR c/59309
2475 * cilk.c (gimplify_cilk_spawn): Properly handle function without
2476 arguments.
2477
2478 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2479
2480 PR c/59280
2481 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
2482 goto invalid. If it is error_mark_node, don't issue further
2483 diagnostics.
2484
2485 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2486
2487 * c.opt (Wopenmp-simd): New.
2488
2489 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2490
2491 * c-ubsan.h (ubsan_instrument_return): New prototype.
2492 * c-ubsan.c (ubsan_instrument_return): New function.
2493
2494 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
2495
2496 * c-common.c: Add required include files from gimple.h.
2497 * c-gimplify.c: Likewise
2498 * cilk.c: Likewise
2499
2500 2013-11-22 David Malcolm <dmalcolm@redhat.com>
2501
2502 * c-common.c (unsafe_conversion_p): Remove use of
2503 EXPR_LOC_OR_HERE macro.
2504 (conversion_warning): Likewise.
2505 (warnings_for_convert_and_check): Likewise.
2506 (warn_for_collisions_1): Likewise.
2507 (shorten_compare): Likewise, and remove use of in_system_header
2508 macro, using the location from the former.
2509 * c-lex.c (dump_one_header): Remove use of input_filename macro.
2510 (cb_def_pragma): Remove use of in_system_header macro.
2511 (lex_string): Likewise.
2512 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2513
2514 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2515 Mike Stump <mikestump@comcast.net>
2516 Richard Sandiford <rdsandiford@googlemail.com>
2517
2518 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
2519 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2520 tree_fits_shwi_p or tree_fits_uhwi_p.
2521 (dump_generic_ada_node): Likewise.
2522 * c-format.c (check_format_arg): Likewise.
2523 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2524
2525 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2526
2527 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
2528
2529 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2530
2531 PR c/53001
2532 * c-common.c (unsafe_conversion_p): Make this function
2533 return an enumeration with more detail.
2534 (conversion_warning): Use the new return type of
2535 unsafe_conversion_p to separately warn either about conversions
2536 that lower floating point number precision or about the other
2537 kinds of conversions.
2538 * c-common.h (enum conversion_safety): New enumeration.
2539 (unsafe_conversion_p): switching return type to
2540 conversion_safety enumeration.
2541 * c.opt: Adding new warning -Wfloat-conversion and
2542 enabling it with -Wconversion.
2543
2544 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2545
2546 * c-opts.c: Include plugin.h.
2547 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
2548
2549 2013-11-19 Marek Polacek <polacek@redhat.com>
2550
2551 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
2552 call.
2553 (ubsan_instrument_shift): Likewise.
2554 (ubsan_instrument_vla): Likewise.
2555
2556 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2557
2558 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
2559 cast to unsigned type.
2560
2561 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2562
2563 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
2564 tree_low_cst.
2565 (complete_array_type): Update comment to refer to tree_to_[su]hwi
2566 rather than tree_low_cst.
2567
2568 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2569
2570 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
2571 tree_to_uhwi throughout.
2572
2573 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2574
2575 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
2576 tree_low_cst (..., 0) with tree_to_shwi throughout.
2577
2578 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2579
2580 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
2581 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
2582
2583 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2584
2585 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
2586 host_integerp (..., 0) with tree_fits_shwi_p throughout.
2587
2588 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
2589
2590 * c-cilkplus.c: New file.
2591 * c-common.c (readonly_error): Add location argument.
2592 * c-common.h (readonly_error): Same.
2593 (c_finish_cilk_clauses): Protoize.
2594 (c_check_cilk_loop): Same.
2595 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
2596 Do not fail on error_mark_node.
2597 Abstract increment canonicalization to here...
2598 (c_omp_for_incr_canonicalize_ptr): New.
2599 c-pragma.c (init_pragma): Register "simd" pragma.
2600 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
2601 (enum pragma_cilk_clause): New.
2602
2603 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2604
2605 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
2606 wchar_type and host_integerp checks.
2607
2608 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
2609
2610 * c-common.c: Likewise.
2611 * c-gimplify.c: Likewise.
2612 * cilk.c: Likewise.
2613
2614 2013-11-14 Diego Novillo <dnovillo@google.com>
2615
2616 * c-common.c: Include fold-const.h.
2617 Include stor-layout.h.
2618 Include calls.h.
2619 Include stringpool.h.
2620 Include attribs.h.
2621 Include varasm.h.
2622 Include trans-mem.h.
2623 * c-cppbuiltin.c: Include stor-layout.h.
2624 Include stringpool.h.
2625 * c-format.c: Include stringpool.h.
2626 * c-lex.c: Include stringpool.h.
2627 Include stor-layout.h.
2628 * c-pragma.c: Include stringpool.h.
2629 Include attribs.h.
2630 Include varasm.h.
2631 Include gcc-symtab.h.
2632 * c-pretty-print.c: Include stor-layout.h.
2633 Include attribs.h.
2634 * cilk.c: Include stringpool.h.
2635 Include calls.h.
2636
2637 2013-11-13 Joseph Myers <joseph@codesourcery.com>
2638
2639 * c-common.h (enum rid): Add RID_AUTO_TYPE.
2640 * c-common.c (c_common_reswords): Add __auto_type.
2641 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
2642
2643 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
2644
2645 * c-common.c: Include gimplify.h.
2646 * c-gimplify.c: Likewise.
2647 * cilk.c: Likewise.
2648 * c-omp.c: Include gimple-expr.h instead of gimple.h.
2649 * c-ubsan.c: Don't include gimple.h.
2650
2651 2013-11-12 Joseph Myers <joseph@codesourcery.com>
2652
2653 * c-common.c (c_common_reswords): Add _Thread_local.
2654
2655 2013-11-09 Joseph Myers <joseph@codesourcery.com>
2656
2657 * c-common.c (atomic_size_supported_p): New function.
2658 (resolve_overloaded_atomic_exchange)
2659 (resolve_overloaded_atomic_compare_exchange)
2660 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
2661 Use it instead of comparing size with a local list of sizes.
2662
2663 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
2664 Joseph Myers <joseph@codesourcery.com>
2665
2666 * c-common.h (enum rid): Add RID_ATOMIC.
2667 * c-common.c (c_common_reswords): Add _Atomic.
2668 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
2669 (keyword_is_type_qualifier): Accept RID_ATOMIC.
2670 * c-format.c (check_format_types): Check for extra _Atomic
2671 qualifiers in format argument.
2672 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
2673 (pp_c_type_qualifier_list): Mention _Atomic in comment.
2674
2675 2013-11-06 Tobias Burnus <burnus@net-b.de>
2676
2677 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
2678
2679 2013-11-06 Joseph Myers <joseph@codesourcery.com>
2680
2681 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
2682 standards modes.
2683 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
2684 to mean lack of IEEE 754 support.
2685
2686 2013-11-05 Tobias Burnus <burnus@net-b.de>
2687
2688 * c.opt (-Wdate-time): New option
2689 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
2690
2691 2013-11-05 Joseph Myers <joseph@codesourcery.com>
2692
2693 * c-cppbuiltin.c (cpp_iec_559_value): Test
2694 flag_excess_precision_cmdline not flag_excess_precision.
2695
2696 2013-11-05 Tobias Burnus <burnus@net-b.de>
2697
2698 * c.opt (fopenmp-simd): New option.
2699 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
2700 (omp_pragmas): ... this new struct.
2701 (c_pp_lookup_pragma): Also walk omp_pragmas.
2702 (init_pragma): Init pragmas for -fopenmp-simd.
2703
2704 2013-11-04 Marek Polacek <polacek@redhat.com>
2705
2706 PR c++/58979
2707 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
2708
2709 2013-11-04 Joseph Myers <joseph@codesourcery.com>
2710
2711 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
2712 New functions.
2713 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
2714
2715 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
2716
2717 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
2718 (dump_ada_specs): Adjust prototype of second callback.
2719 * c-ada-spec.c (cpp_check): New global variable.
2720 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
2721 (print_generic_ada_decl): Likewise.
2722 (has_static_fields): Change return type to bool and add guard.
2723 (has_nontrivial_methods): New predicate.
2724 (is_tagged_type): Change return type to bool.
2725 (separate_class_package): Call has_nontrivial_methods.
2726 (pp_ada_tree_identifier): Minor tweaks.
2727 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
2728 (dump_ada_array_domains): Likewise.
2729 (dump_ada_array_type): Likewise.
2730 (dump_template_types): Remove cpp_check parameter and do not pass it to
2731 dump_generic_ada_node.
2732 (dump_ada_template): Likewise.
2733 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
2734 recursively.
2735 (print_ada_methods): Change return type to integer. Remove cpp_check
2736 parameter and do not pass it down.
2737 (dump_nested_types): Remove cpp_check parameter and do not pass it to
2738 dump_generic_ada_node.
2739 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
2740 accessing methods.
2741 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
2742 down. Use has_nontrivial_methods to recognize C++ classes. Use return
2743 value of print_ada_methods.
2744 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
2745 Set cpp_check to it before invoking dump_ada_nodes.
2746 (dump_ada_specs): Likewise.
2747
2748 2013-11-03 Marek Polacek <polacek@redhat.com>
2749
2750 * c-ubsan.c: Don't include hash-table.h.
2751 (ubsan_instrument_vla): New function.
2752 * c-ubsan.h: Declare it.
2753
2754 2013-10-31 David Malcolm <dmalcolm@redhat.com>
2755
2756 Automated part of renaming of symtab_node_base to symtab_node.
2757
2758 Patch autogenerated by rename_symtab.py from
2759 https://github.com/davidmalcolm/gcc-refactoring-scripts
2760 revision 58bb219cc090b2f4516a9297d868c245495ee622
2761
2762 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
2763 symtab_node_base to symtab_node.
2764
2765 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
2766
2767 Implement C++14 digit separators.
2768 * c-lex.c (interpret_float): Remove digit separators from scratch string
2769 before building real literal.
2770
2771 2013-10-30 Jakub Jelinek <jakub@redhat.com>
2772
2773 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
2774
2775 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
2776
2777 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
2778 fields.
2779 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
2780 enabled.
2781 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
2782 (insert_cilk_frame): New prototype.
2783 (cilk_init_builtins): Likewise.
2784 (gimplify_cilk_spawn): Likewise.
2785 (c_cilk_install_body_w_frame_cleanup): Likewise.
2786 (cilk_detect_spawn_and_unwrap): Likewise.
2787 (cilk_set_spawn_marker): Likewise.
2788 (build_cilk_sync): Likewise.
2789 (build_cilk_spawn): Likewise.
2790 * cilk.c: New file.
2791
2792 2013-10-29 David Malcolm <dmalcolm@redhat.com>
2793
2794 Patch autogenerated by refactor_symtab.py from
2795 https://github.com/davidmalcolm/gcc-refactoring-scripts
2796 revision 58bb219cc090b2f4516a9297d868c245495ee622
2797
2798 * c-gimplify.c (c_genericize): Update for conversion of symtab types
2799 to a true class hierarchy.
2800 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2801
2802 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
2803
2804 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2805
2806 2013-10-26 Jeff Law <law@redhat.com>
2807
2808 * c-common.c (c_define_builtins): Remove mudflap support.
2809 * c.opt: Ignore and warn for mudflap options.
2810
2811 2013-10-24 Tobias Burnus <burnus@net-b.de>
2812
2813 PR other/33426
2814 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2815 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2816
2817 2013-10-23 Jason Merrill <jason@redhat.com>
2818
2819 * c-format.c (gcc_cxxdiag_char_table): Add %X.
2820
2821 2013-10-11 Jakub Jelinek <jakub@redhat.com>
2822
2823 * c-common.h (omp_clause_mask::operator !=): New method.
2824 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2825 instead of if (mask & something) tests everywhere.
2826
2827 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2828 201307 instead of 201107.
2829 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2830 (c_common_attribute_table): Add "omp declare target" and
2831 "omp declare simd" attributes.
2832 (handle_omp_declare_target_attribute,
2833 handle_omp_declare_simd_attribute): New functions.
2834 * c-omp.c: Include c-pragma.h.
2835 (c_finish_omp_taskgroup): New function.
2836 (c_finish_omp_atomic): Add swapped argument, if true,
2837 build the operation first with rhs, lhs arguments and use NOP_EXPR
2838 build_modify_expr.
2839 (c_finish_omp_for): Add code argument, pass it down to make_code.
2840 (c_omp_split_clauses): New function.
2841 (c_split_parallel_clauses): Removed.
2842 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2843 c_omp_declare_simd_clauses_to_decls): New functions.
2844 * c-common.h (omp_clause_mask): New type.
2845 (OMP_CLAUSE_MASK_1): Define.
2846 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2847 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2848 omp_clause_mask::operator |, omp_clause_mask::operator &,
2849 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2850 omp_clause_mask::operator ==): New methods.
2851 (enum c_omp_clause_split): New.
2852 (c_finish_omp_taskgroup): New prototype.
2853 (c_finish_omp_atomic): Add swapped argument.
2854 (c_finish_omp_for): Add code argument.
2855 (c_omp_split_clauses): New prototype.
2856 (c_split_parallel_clauses): Removed.
2857 (c_omp_declare_simd_clauses_to_numbers,
2858 c_omp_declare_simd_clauses_to_decls): New prototypes.
2859 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2860 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2861 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2862 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2863 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2864 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2865 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2866 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2867 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2868 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2869 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2870 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2871 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2872 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2873 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2874 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2875 PRAGMA_OMP_CLAUSE_UNIFORM.
2876
2877 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
2878
2879 PR tree-optimization/20318
2880 * c-common.c (handle_returns_nonnull_attribute): New function.
2881 (c_common_attribute_table): Add returns_nonnull.
2882
2883 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
2884
2885 PR c++/19476
2886 * c.opt (fcheck-new): Move to common.opt.
2887
2888 2013-09-25 Marek Polacek <polacek@redhat.com>
2889 Jakub Jelinek <jakub@redhat.com>
2890
2891 PR sanitizer/58413
2892 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2893 an expression if we can prove it is correct.
2894 (ubsan_instrument_division): Likewise. Remove unnecessary
2895 check.
2896
2897 2013-09-18 Marek Polacek <polacek@redhat.com>
2898
2899 PR sanitizer/58411
2900 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2901 Declare it.
2902 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2903
2904 2013-09-14 Iain Sandoe <iain@codesourcery.com>
2905
2906 PR target/48094
2907 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2908 fobjc-gc, freplace-objc-classes): Accept for LTO.
2909
2910 2013-09-13 Jacek Caban <jacek@codeweavers.com>
2911
2912 * c-target.def: New hook
2913
2914 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2915
2916 PR c++/43452
2917 * c.opt (Wdelete-incomplete): Add.
2918
2919 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2920
2921 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2922 (vector_types_compatible_elements_p): New function.
2923 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2924 declaration.
2925 (vector_types_compatible_elements_p): Declare.
2926
2927 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2928
2929 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2930 a virtual member function.
2931 (pp_simple_type_specifier): Remove.
2932 (pp_c_type_specifier): Likewise.
2933 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2934 Rename from pp_c_type_specifier. Adjust.
2935 (c_pretty_printer::c_pretty_printer): Do not assign to
2936 simple_type_specifier.
2937
2938 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2939
2940 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2941 member function.
2942 (c_pretty_printer::storage_class_specifier): Likewise.
2943 (c_pretty_printer::initializer): Likewise.
2944 (pp_declaration): Remove.
2945 (pp_declaration_specifiers): Likewise.
2946 (pp_abstract_declarator): Likewise.
2947 (pp_declarator): Likewise.
2948 (pp_type_id): Likewise.
2949 (pp_statement): Likewise.
2950 (pp_constant): Likewise.
2951 (pp_id_expression): Likewise.
2952 (pp_primary_expression): Likewise.
2953 (pp_unary_expression): Likewise.
2954 (pp_multiplicative_expression): Likewise.
2955 (pp_conditional_expression): Likewise.
2956 (pp_assignment_expression): Likewise.
2957 (pp_expression): Likewise.
2958 (pp_c_type_id): Likewise.
2959 (pp_c_storage_class_specifier): Likewise.
2960 * c-pretty-print.c (pp_c_type_cast): Tidy.
2961 (pp_c_pointer): Likewise.
2962 (pp_c_type_specifier): Likewise.
2963 (pp_c_parameter_type_list): Likewise.
2964 (pp_c_function_definition): Likewise.
2965 (pp_c_init_declarator): Likewise.
2966 (pp_c_initializer_list): Likewise.
2967 (pp_c_constructor_elts): Likewise.
2968 (c_pretty_printer::direct_abstract_declarator): Likewise.
2969 (c_pretty_printer::declaration_specifiers): Likewise.
2970 (c_pretty_printer::primary_expression): Likewise.
2971 (c_pretty_printer::postfix_expression): Likewise.
2972 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2973 (c_pretty_printer::storage_class_specifier): Rename from
2974 pp_c_storage_class_specifier.
2975 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2976 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2977 storage_class_specifier, initializer, offset_list, flags.
2978
2979 2013-08-30 Marek Polacek <polacek@redhat.com>
2980
2981 * c-ubsan.c: New file.
2982 * c-ubsan.h: New file.
2983
2984 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2985
2986 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2987 member function.
2988 (c_pretty_printer::declaration_specifiers): Likewise.
2989 (c_pretty_printer::declarator): Likewise.
2990 (c_pretty_printer::abstract_declarator): Likewise.
2991 (c_pretty_printer::direct_abstract_declarator): Likewise.
2992 (c_pretty_printer::direct_declarator): Likewise.
2993 (c_pretty_printer::function_specifier): Likewise.
2994 (pp_declaration): Adjust.
2995 (pp_declaration_specifiers): Likewise.
2996 (pp_abstract_declarator): Likewise.
2997 (pp_direct_declarator): Likewise.
2998 (pp_function_specifier): Likewise.
2999 (pp_direct_abstract_declarator): Remove as unused.
3000 (pp_c_declaration): Remove.
3001 (pp_c_declaration_specifiers): Likewise.
3002 (pp_c_declarator): Likewise.
3003 (pp_c_direct_declarator): Likewise.
3004 (pp_c_function_specifier): Likewise.
3005 (pp_c_direct_abstract_declarator): Likewise.
3006 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
3007 from pp_c_abstract_declarator. Adjust.
3008 (c_pretty_printer::direct_abstract_declarator): Rename from
3009 pp_c_direct_abstract_declarator. Adjust.
3010 (c_pretty_printer::function_specifier): Rename from
3011 pp_c_function_specifier. Adjust.
3012 (c_pretty_printer::declaration_specifiers): Rename from
3013 pp_c_declaration_specifiers. Adjust.
3014 (c_pretty_printer::direct_declarator): Rename from
3015 pp_c_direct_declarator. Adjust.
3016 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
3017 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
3018 (c_pretty_printer::c_pretty_printer): Do not assign to
3019 declaration, declaration_specifiers, declarator,
3020 direct_declarator, direct_abstract_declarator, function_specifier.
3021
3022 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
3023
3024 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
3025 virtual member function.
3026 (c_pretty_printer::multiplicative_expression): Likewise.
3027 (c_pretty_printer::conditional_expression): Likewise.
3028 (c_pretty_printer::assignment_expression): Likewise.
3029 (c_pretty_printer::expression): Likewise.
3030 (pp_unary_expression): Adjust.
3031 (pp_multiplicative_expression): Likewise.
3032 (pp_assignment_expression): Likewise.
3033 (pp_conditional_expression): Likewise.
3034 (pp_expression): Likewise.
3035 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
3036 from pp_c_unary_expression. Adjust.
3037 (c_pretty_printer::multiplicative_expression): Rename from
3038 pp_c_multiplicative_expression. Adjust.
3039 (c_pretty_printer::conditional_expression): Rename from
3040 pp_c_conditional_expression. Adjust.
3041 (c_pretty_printer::assignment_expression): Rename from
3042 pp_c_assignment_expression. Adjust.
3043 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
3044 (c_pretty_printer::c_pretty_printer): Do not assign to
3045 unary_expression, multiplicative_expression,
3046 conditional_expression, expression.
3047
3048 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3049
3050 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
3051 virtual member function.
3052 (pp_postfix_expression): Adjust.
3053 (pp_c_postfix_expression): Remove.
3054 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
3055 from pp_c_postfix_expression. Adjust.
3056 (c_pretty_printer::c_pretty_printer): Do not assign to
3057 postfix_expression.
3058
3059 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3060
3061 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
3062 virtua member function.
3063 (pp_primary_expression): Adjust.
3064 (pp_c_primary_expression): Remove.
3065 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
3066 from pp_c_primary_expression. Adjust.
3067 (pp_c_initializer_list): Use pp_primary_expression.
3068 (c_pretty_printer::c_pretty_printer): Do not assign to
3069 primary_expression.
3070
3071 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3072
3073 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
3074 * c-pretty-print.c (M_): Remove.
3075 (c_pretty_printer::translate_string): Define.
3076 (pp_c_type_specifier): Use it.
3077 (pp_c_primary_expression): Likewise.
3078 (pp_c_expression): Likewise.
3079
3080 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3081
3082 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
3083 virtual function.
3084 (pp_c_id_expression): Remove.
3085 (pp_id_expression): Adjust.
3086 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
3087 pp_c_id_expression. Adjust.
3088 (pp_c_postfix_expression): Use pp_id_expression.
3089 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
3090
3091 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3092
3093 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
3094 member function.
3095 (pp_constant): Adjust.
3096 (pp_c_constant): Remove.
3097 * c-pretty-print.c (c_pretty_printer::constant): Rename from
3098 pp_c_constant. Adjust.
3099 (pp_c_constant)
3100 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
3101 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
3102
3103 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3104
3105 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
3106 (c_pretty_printer::c_pretty_printer): Declare.
3107 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
3108 c_pretty_printer_init. Adjust.
3109 (print_c_tree): Do not call c_pretty_printer_init.
3110 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
3111
3112 2013-08-09 Arnaud Charlet <charlet@adacore.com>
3113
3114 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
3115
3116 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
3117
3118 PR c++/58080
3119 * c-common.c (pointer_int_sum): Add bool parameter.
3120 * c-common.h (pointer_int_sum): Adjust declaration.
3121
3122 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
3123
3124 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
3125 c_pretty_printer variable.
3126
3127 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3128
3129 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
3130 (pp_base): Remove.
3131 (pp_c_base): Likewise. Adjust users.
3132 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
3133 (pp_c_whitespace): Do not call pp_base.
3134 (pp_c_left_paren): Likewise.
3135 (pp_c_right_paren): Likewise.
3136 (pp_c_left_brace): Likewise.
3137 (pp_c_right_brace): Likewise.
3138 (pp_c_left_bracket): Likewise.
3139 (pp_c_right_bracket): Likewise.
3140 (pp_c_dot): Likewise.
3141 (pp_c_ampersand): Likewise.
3142 (pp_c_star): Likewise.
3143 (pp_c_arrow): Likewise.
3144 (pp_c_semicolon): Likewise.
3145 (pp_c_complement): Likewise.
3146 (pp_c_exclamation): Likewise.
3147 (pp_c_direct_declarator): Likewise.
3148 (pp_c_ws_string): Likewise.
3149 (pp_c_identifier): Likewise.
3150 (pp_c_statement): Likewise.
3151 (print_c_tree): Likewise.
3152
3153 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
3154
3155 PR c++/58072
3156 * c-common.c (c_parse_error): Catch user-defined literal tokens and
3157 provide useful error strings.
3158
3159 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3160
3161 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
3162 printer functions instead of pp_string or operators and punctuators.
3163 (dump_generic_ada_node): Likewise.
3164 * c-pretty-print.c (pp_c_type_specifier): Likewise.
3165 (pp_c_relational_expression): Likewise.
3166 (pp_c_logical_or_expression): Likewise.
3167
3168 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3169
3170 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
3171 functions instead of pp_character.
3172 (pp_ada_tree_identifier): Likewise.
3173 (dump_ada_double_name): Likewise.
3174 (dump_ada_function_declaration): Likewise.
3175 (dump_ada_array_domains): Likewise.
3176 (dump_template_types): Likewise.
3177 (dump_generic_ada_node): Likewise.
3178 (print_ada_declaration): Likewise.
3179 (print_ada_struct_decl): Likewise.
3180 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3181
3182 2013-07-23 Tom Tromey <tromey@redhat.com>
3183
3184 * c-common.h (enum rid) <RID_GENERIC>: New constant.
3185 * c-common.c (c_common_reswords): Add _Generic.
3186
3187 2013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
3188
3189 * c-common.c: Fix typos.
3190 * c-common.h: Likewise.
3191
3192 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
3193
3194 PR c++/55203
3195 * c-common.c (c_common_attribute_table): Add warn_unused.
3196 (handle_warn_unused_attribute): New.
3197
3198 2013-07-10 Jakub Jelinek <jakub@redhat.com>
3199
3200 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
3201 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
3202
3203 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
3204
3205 PR c++/57869
3206 * c.opt: Add Wconditionally-supported.
3207
3208 2013-07-08 Graham Stott <graham.stott@btinternet.com>
3209
3210 * array-notation-common.c (length_mismatch_in_expr_p): Delete
3211 unused variables l_length and l_node.
3212
3213 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
3214
3215 PR c/57821
3216 * c-common.c (complete_array_type): Delay folding first index
3217 like other indices. When folding, check for index overflow.
3218
3219 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
3220
3221 PR c++/57509
3222 * c-common.h (c_build_vec_perm_expr): New complain argument.
3223 * c-common.c (c_build_vec_perm_expr): Likewise.
3224 Use save_expr also in C++.
3225
3226 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3227
3228 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
3229 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3230 * c-opts.c (c_common_post_options): Likewise.
3231
3232 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3233
3234 * array-notation-common.c (length_mismatch_in_expr): Changed the
3235 parameter type's from a dynamic array to a vec_tree. Also removed
3236 the size parameters.
3237 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
3238 the change above.
3239
3240 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3241
3242 * c-common.h (struct cilkplus_an_parts): New structure.
3243 (struct cilkplus_an_loop_parts): Likewise.
3244 (cilkplus_extract_an_triplets): New prototype.
3245 (fix_sec_implicit_args): Likewise.
3246 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
3247 (fix_sec_implicit_args): Likewise.
3248
3249 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
3250
3251 * array-notation-common.c (find_inv_trees): Removed an unwanted
3252 typecasting.
3253 * c-common.h (struct inv_list::additional_tcodes): Changed type from
3254 enum rid to enum tree_code.
3255
3256 2013-06-11 Jan Hubicka <jh@suse.cz>
3257
3258 * c-common.c (handle_alias_ifunc_attribute): Do not set
3259 DECL_EXTERNAL for weakref variables.
3260 * c-pragma.c (handle_pragma_weak): Make sure aliases
3261 are not declared as external.
3262
3263 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3264
3265 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
3266 function from c/c-array-notation.c.
3267 (is_cilkplus_reduce_builtin): Likewise.
3268 (find_rank): Likewise.
3269 (extract_array_notation_exprs): Likewise.
3270 (replace_array_notations): Likewise.
3271 (find_inv_trees): Likewise.
3272 (replace_inv_trees): Likewise.
3273 (contains_array_notation_expr): Likewise.
3274 (find_correct_array_notation_type): Likewise.
3275 * c-common.h (struct inv_list): Moved this struct from the file
3276 c/c-array-notation.c and added a new field called additional tcodes.
3277 (length_mismatch_in_expr_p): New prototype.
3278 (is_cilkplus_reduce_builtin): Likewise.
3279 (find_rank): Likewise.
3280 (extract_array_notation_exprs): Likewise.
3281 (replace_array_notation): Likewise.
3282 (find_inv_trees): Likewise.
3283 (replace_inv_trees): Likewise.
3284 (find_correct_array_notation_type): Likewise.
3285
3286 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3287
3288 * c-common.c (c_define_builtins): When cilkplus is enabled, the
3289 function array_notation_init_builtins is called.
3290 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
3291 * c-common.def (ARRAY_NOTATION_REF): New tree.
3292 * c-common.h (build_array_notation_expr): New function declaration.
3293 (build_array_notation_ref): Likewise.
3294 (extract_sec_implicit_index_arg): New extern declaration.
3295 (is_sec_implicit_index_fn): Likewise.
3296 (ARRAY_NOTATION_CHECK): New define.
3297 (ARRAY_NOTATION_ARRAY): Likewise.
3298 (ARRAY_NOTATION_START): Likewise.
3299 (ARRAY_NOTATION_LENGTH): Likewise.
3300 (ARRAY_NOTATION_STRIDE): Likewise.
3301 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
3302 ARRAY_NOTATION_REF.
3303 (pp_c_expression): Likewise.
3304 * c.opt (flag_enable_cilkplus): New flag.
3305 * array-notation-common.c: New file.
3306
3307 2013-05-14 Jakub Jelinek <jakub@redhat.com>
3308
3309 PR c++/57274
3310 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
3311
3312 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
3313
3314 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
3315 vectors.
3316
3317 2013-05-07 Han Shen <shenhan@google.com>
3318
3319 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
3320
3321 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3322
3323 * c-common.c (check_user_alignment): Emit error for negative values.
3324
3325 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3326
3327 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
3328
3329 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3330
3331 * c-cppbuiltin.c (c_cpp_builtins): Do not define
3332 __GXX_EXPERIMENTAL_CXX1Y__.
3333
3334 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3335 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3336
3337 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
3338 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
3339 to simply use OPT_Wpointer_arith.
3340 (c_sizeof_or_alignof_type): Likewise.
3341
3342 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3343
3344 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
3345
3346 2013-04-12 Jakub Jelinek <jakub@redhat.com>
3347
3348 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3349 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
3350 specifiers.
3351
3352 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
3353
3354 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
3355
3356 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3357
3358 * c-common.c (pointer_int_sum): Remove dead code.
3359
3360 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3361
3362 PR middle-end/56524
3363 * c-common.c (handle_optimize_attribute): Don't call
3364 save_optabs_if_changed.
3365
3366 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3367
3368 PR middle-end/56461
3369 * c-pch.c (pch_init): Free target_validity at the end.
3370
3371 2013-03-04 Jakub Jelinek <jakub@redhat.com>
3372
3373 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
3374
3375 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3376 Jakub Jelinek <jakub@redhat.com>
3377
3378 PR sanitizer/56454
3379 * c-common.c (handle_no_sanitize_address_attribute): New function.
3380 (c_common_attribute_table): Add no_sanitize_address attribute.
3381 (handle_no_address_safety_analysis_attribute): Add
3382 no_sanitize_address attribute, not no_address_safety_analysis
3383 attribute.
3384
3385 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
3386
3387 PR target/52555
3388 * c-common.c (handle_optimize_attribute): Call
3389 save_optabs_if_changed.
3390
3391 2013-02-18 Jakub Jelinek <jakub@redhat.com>
3392 Steven Bosscher <steven@gcc.gnu.org>
3393
3394 PR pch/54117
3395 * c-opts.c (c_common_post_options): If debug info is enabled
3396 and non-dwarf*, refuse to load PCH files and when writing PCH
3397 file warn.
3398
3399 2013-02-05 Jakub Jelinek <jakub@redhat.com>
3400
3401 PR middle-end/56167
3402 * c-common.c (handle_error_attribute): Fix condition.
3403
3404 2013-01-30 Jakub Jelinek <jakub@redhat.com>
3405
3406 PR c++/55742
3407 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
3408
3409 2013-01-18 Jason Merrill <jason@redhat.com>
3410
3411 PR target/54908
3412 * c.opt (-fextern-tls-init): New.
3413 * c-opts.c (c_common_post_options): Handle it.
3414
3415 2013-01-09 Jakub Jelinek <jakub@redhat.com>
3416
3417 PR c/48418
3418 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
3419 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
3420 and is either negative or bigger or equal to type precision
3421 of the first operand.
3422
3423 2012-12-03 Marek Polacek <polacek@redhat.com>
3424
3425 PR c/55570
3426 * c-common.c (check_user_alignment): Swap order of tests,
3427 check TREE_CODE first.
3428
3429 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
3430
3431 PR c++/52654
3432 * c-common.h (overflow_type): New enum.
3433 (build_userdef_literal): Add overflow_type argument.
3434 (tree_userdef_literal): Add overflow_type.
3435 (USERDEF_LITERAL_OVERFLOW): New access macro.
3436 * c-common.c (build_userdef_literal): Add overflow_type
3437 argument.
3438 * c-lex.c (c_lex_with_flags): Add overflow_type to
3439 build_userdef_literal calls.
3440 (interpret_integer, interpret_float): Add overflow_type argument.
3441
3442 2012-11-28 Richard Biener <rguenther@suse.de>
3443
3444 PR c/35634
3445 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3446 here and use a type with proper overflow behavior for types that would
3447 need to be promoted for the arithmetic.
3448
3449 2012-11-23 Jakub Jelinek <jakub@redhat.com>
3450
3451 PR sanitizer/55435
3452 * c-common.c (handle_no_address_safety_analysis_attribute): New
3453 function.
3454 (c_common_attribute_table): Add no_address_safety_analysis.
3455
3456 2012-11-16 Simon Baldwin <simonb@google.com>
3457
3458 * c.opt: Add f[no-]canonical-system-headers.
3459 * c-opts.c (c_common_handle_option): Handle
3460 OPT_fcanonical_system_headers.
3461
3462 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
3463
3464 PR c++/54413
3465 * c-opts.c (c_common_handle_option): Set new flags.
3466 * c.opt: Describe new flags.
3467
3468 2012-11-09 Jason Merrill <jason@redhat.com>
3469
3470 * c.opt (Wabi-tag): New.
3471
3472 2012-11-09 Andi Kleen <ak@linux.intel.com>
3473
3474 PR 55139
3475 * c-common.c (get_atomic_generic_size): Mask with
3476 MEMMODEL_MASK
3477
3478 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3479
3480 PR c/53063
3481 * c.opt (Wformat): Make it Alias Wformat=1.
3482 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
3483 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
3484 LangEnabledBy.
3485 (Wformat=): RejectNegative. Use LangEnabledBy.
3486 (Wnonnull): Use LangEnabledBy.
3487 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
3488 * c-format.c (set_Wformat): Delete.
3489 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
3490 (maybe_read_dollar_number): Likewise.
3491 (avoid_dollar_number): Likewise.
3492 (finish_dollar_format_checking): Likewise.
3493 (check_format_info): Likewise.
3494 (check_format_info_main): Likewise.
3495 (check_format_types): Likewise.
3496 (format_type_warning): Likewise.
3497 * c-common.c (int): Likewise.
3498 (check_function_sentinel): Likewise.
3499 * c-common.h (warn_format,set_Wformat): Do not declare here.
3500
3501 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3502
3503 PR c/53063
3504 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
3505 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
3506 Use LangEnabledBy.
3507 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
3508 common.opt.
3509 (Wvariadic-macros): Init(1).
3510 * c-opts.c (c_common_handle_option): Do not handle them
3511 explicitly.
3512 (c_common_post_options): Likewise.
3513 (sanitize_cpp_opts): warn_unused_macros is now
3514 cpp_warn_unused_macros.
3515 (push_command_line_include): Likewise.
3516 * c-common.c (warn_unknown_pragmas): Do not define.
3517 * c-common.h (warn_unknown_pragmas): Do not declare.
3518
3519 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3520
3521 PR c/51294
3522 * c-common.c (conversion_warning): Handle conditional expressions.
3523
3524 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3525
3526 PR c++/54930
3527 * c.opt (Wreturn_local_addr): Define new option.
3528
3529 2012-10-25 Jason Merrill <jason@redhat.com>
3530
3531 * c.opt (Wvirtual-move-assign): New.
3532
3533 * c.opt (Winherited-variadic-ctor): New.
3534
3535 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
3536
3537 PR c++/54427
3538 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
3539
3540 2012-10-23 Joseph Myers <joseph@codesourcery.com>
3541
3542 * c-common.h (pch_cpp_save_state): Declare.
3543 * c-target.def (c_preinclude): New hook.
3544 * c-opts.c (done_preinclude): New.
3545 (push_command_line_include): Handle default preincluded header.
3546 (cb_file_change): Call pch_cpp_save_state when calling
3547 push_command_line_include.
3548 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
3549 (pch_cpp_save_state): New.
3550 (pch_init): Call pch_cpp_save_state conditionally, instead of
3551 calling cpp_save_state.
3552
3553 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3554
3555 PR c/53063
3556 PR c/40989
3557 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
3558 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
3559 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
3560 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
3561 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
3562 * c-opts.c (c_common_handle_option): Remove explicit handling from
3563 here.
3564 (c_common_post_options): Likewise.
3565
3566 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
3567
3568 * c-ada-spec.c (LOCATION_COL): Delete.
3569 (compare_location): New function.
3570 (compare_node): Use it.
3571 (compare_comment): Likewise.
3572
3573 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3574
3575 PR c/53063
3576 PR c/40989
3577 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
3578 * c-opts.c (c_common_handle_option): Do not set them here. Add
3579 comment.
3580 (c_common_post_options): Likewise.
3581
3582 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
3583
3584 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
3585 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
3586 Remove POINTER_TYPE handling, add large unsigned handling and use
3587 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
3588
3589 2012-10-12 Jakub Jelinek <jakub@redhat.com>
3590
3591 PR c/54381
3592 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
3593 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
3594 locs and array of 3 trees instead of just single loc and single
3595 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
3596 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
3597 For *cmp* builtins that take two sources strings report warnings
3598 about first and second source, not about destination and source.
3599
3600 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
3601
3602 PR c++/53055
3603 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
3604
3605 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
3606
3607 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
3608 declaring something coming from another file.
3609
3610 2012-10-10 Arnaud Charlet <charlet@adacore.com>
3611
3612 PR ada/54845
3613 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
3614
3615 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
3616
3617 PR c++/54194
3618 * c-common.c (warn_about_parentheses): Add location_t parameter;
3619 use EXPR_LOC_OR_LOC.
3620 * c-common.h: Update declaration.
3621
3622 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
3623
3624 PR c++/54427
3625 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
3626 more operations. Make error messages optional.
3627 * c-common.h (enum stv_conv): Moved from c-typeck.c.
3628 (scalar_to_vector): Declare.
3629
3630 2012-10-08 Jason Merrill <jason@redhat.com>
3631
3632 * c-common.c (c_common_reswords): Add thread_local.
3633
3634 2012-10-08 Dodji Seketeli <dodji@redhat.com>
3635
3636 PR c++/53528 C++11 attribute support
3637 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
3638 new functions.
3639 * c-common.c (check_cxx_fundamental_alignment_constraints): New
3640 static function.
3641 (handle_aligned_attribute): In choose strictest alignment
3642 among many. Use new check_cxx_fundamental_alignment_constraints.
3643 (handle_transparent_union_attribute): In c++11 attribute syntax,
3644 don't look through typedefs.
3645
3646 2012-10-04 Arnaud Charlet <charlet@adacore.com>
3647
3648 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
3649 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
3650 out of dumpfile.h.
3651
3652 2012-09-25 Dehao Chen <dehao@google.com>
3653
3654 PR middle-end/54645
3655 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
3656 map when read in the pch.
3657
3658 2012-09-18 Arnaud Charlet <charlet@adacore.com>
3659
3660 * c-ada-spec.c: Style fixes.
3661
3662 2012-09-18 Thomas Quinot <quinot@adacore.com>
3663
3664 * c.opt (-fada-spec-parent): Define new command line switch.
3665 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
3666 is specified, generate binding spec as a child of the specified unit.
3667
3668 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
3669 Manuel López-Ibáñez <manu@gcc.gnu.org>
3670
3671 PR c++/53210
3672 * c.opt ([Winit-self]): Enabled by -Wall in C++.
3673
3674 2012-08-23 Arnaud Charlet <charlet@adacore.com>
3675
3676 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
3677 for pointers, and add missing Convention C pragma.
3678 (print_ada_struct_decl): Add missing aliased keyword.
3679 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
3680
3681 2012-08-17 Jakub Jelinek <jakub@redhat.com>
3682
3683 * c-common.c (sizeof_pointer_memaccess_warning): New function.
3684 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
3685 * c-opts.c (c_common_handle_option): Enable it for -Wall.
3686 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
3687 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
3688
3689 2012-08-10 Richard Guenther <rguenther@suse.de>
3690
3691 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
3692
3693 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
3694
3695 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
3696 instead of separate pp_newline and pp_flush.
3697 (print_c_tree): Likewise.
3698
3699 2012-07-26 Richard Henderson <rth@redhat.com>
3700
3701 * c-common.c (handle_hot_attribute): Allow labels.
3702 (handle_cold_attribute): Likewise.
3703
3704 2012-07-20 Jakub Jelinek <jakub@redhat.com>
3705
3706 PR c++/28656
3707 * c-common.c (check_function_nonnull): Handle multiple nonnull
3708 attributes properly.
3709
3710 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3711
3712 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
3713 * c-ada-spec.c: Likewise.
3714 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
3715
3716 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
3717
3718 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
3719 Remove code conditional on it.
3720
3721 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
3722
3723 * c-gimplify.c: Do not include basic-block.h.
3724 * c-common.c: Do not include linfuncs.h.
3725
3726 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
3727
3728 * c-common.h: Include tree.h.
3729
3730 2012-07-02 Jason Merrill <jason@redhat.com>
3731
3732 PR c++/53524
3733 * c-common.c (get_priority): Call default_conversion.
3734
3735 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
3736
3737 * c-pch.c (c_common_write_pch): Remove unused variables.
3738
3739 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
3740
3741 * cppspec.c: Moved from gcc/ to here.
3742
3743 2012-06-27 Kai Tietz <ktietz@redhat.com>
3744
3745 PR preprocessor/37215
3746 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
3747
3748 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
3749
3750 * c-common.h (c_common_print_pch_checksum): Remove.
3751 * c-pch.c: Do not include output.h.
3752 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
3753 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
3754 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
3755 (struct c_pch_header): Remove.
3756 (get_ident): Update gpch version.
3757 (pch_init): Do not print executable_checksum to asm_out_file.
3758 Do not fail if there is no asm_out_file to read back from. Set
3759 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
3760 (c_common_write_pch): Verify that nothing was written to asm_out_file
3761 since pch_init was called. Do not write a c_pch_header, and do not
3762 copy from asm_out_file to the PCH.
3763 (c_common_read_pch): Do not read a c_pch_header, and do not restore
3764 the content of asm_out_file from the PCH.
3765 (c_common_print_pch_checksum): Remove.
3766 * c-opts.c (c_common_init): Print out executable_checksum directly.
3767
3768 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3769
3770 * c-target.def (objc_declare_unresolved_class_reference,
3771 objc_declare_class_definition): Add new hooks.
3772
3773 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3774
3775 * c-lex.c: Do not include output.h.
3776 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
3777 Remove uses of ASM_OUTPUT_IDENT.
3778
3779 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
3780
3781 PR c++/51033
3782 * c-common.h (c_build_vec_perm_expr): Move decl here.
3783 * c-common.c (c_build_vec_perm_expr): Move definition
3784 here.
3785
3786 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
3787
3788 * c.opt (fconserve-space): Turn into a no-op.
3789
3790 2012-06-04 Sterling Augustine <saugustine@google.com>
3791
3792 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
3793 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
3794 both the start and end of the function.
3795
3796 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3797
3798 * c-common.c: Do not include output.h.
3799 * c-pragma.c: Likewise.
3800
3801 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3802
3803 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3804 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3805 (lang_decl_name): Handle namespace decls.
3806
3807 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
3808
3809 * c-ada-spec.c: Do not include output.h.
3810 * c-semantics.c: Likewise.
3811
3812 2012-05-29 Joseph Myers <joseph@codesourcery.com>
3813
3814 * c-common.c: Fix typo.
3815
3816 2012-05-29 Michael Matz <matz@suse.de>
3817
3818 * c-common.h (c_expand_decl): Remove prototype.
3819
3820 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3821
3822 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3823 * c-opts.c (c_common_handle_option): Remove code handling
3824 warn_missing_braces.
3825
3826 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
3827
3828 PR c++/25137
3829 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3830 -Wmissing_braces.
3831
3832 2012-05-22 Dodji Seketeli <dodji@redhat.com>
3833
3834 PR c++/53322
3835 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3836
3837 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3838
3839 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3840 * c-opts.c (c_common_handle_option): Do not handle explicitly
3841 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3842
3843 2012-05-16 Dodji Seketeli <dodji@redhat.com>
3844
3845 PR preprocessor/7263
3846 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
3847 to cpp_classify_number. For diagnostics, use the precise location
3848 instead of the global input_location.
3849
3850 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3851
3852 PR c++/11856
3853 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3854
3855 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
3856
3857 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
3858
3859 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3860
3861 PR 53063
3862 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3863 Wreorder): Use LangEnabledBy.
3864 * c-opts.c (c_common_handle_option): Do not enable them
3865 explicitly. Call lang-specific generated functions.
3866 (c_common_post_options): Do not set them here.
3867
3868 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3869
3870 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3871 Wmissing-field-initializers,Wmissing-parameter-type,
3872 Wold-style-declaration,Woverride-init): Use EnabledBy.
3873 * c-opts.c (c_common_post_options): Do not set here explicitly.
3874
3875 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3876
3877 PR 53063
3878 * c-opts.c (c_common_handle_option): Use handle_generated_option
3879 to enable sub-options.
3880
3881 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
3882
3883 PR c++/53158
3884 * c-common.c (warnings_for_convert_and_check): Use warning_at.
3885
3886 2012-05-10 Richard Guenther <rguenther@suse.de>
3887
3888 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3889 adjust commentary about TYPE_IS_SIZETYPE types.
3890
3891 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3892
3893 PR c++/53261
3894 * c-common.c (warn_logical_operator): Check that argument of
3895 integer_zerop is not NULL.
3896
3897 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3898
3899 PR c/43772
3900 * c-common.c (warn_logical_operator): Do not warn if either side
3901 is already true or false.
3902
3903 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3904
3905 PR c/51712
3906 * c-common.c (expr_original_type): New.
3907 (shorten_compare): Do not warn for enumeration types.
3908
3909 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3910
3911 * c.opt (fpermissive): Add Var(flag_permissive).
3912
3913 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
3914
3915 PR c++/51033
3916 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3917 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3918
3919 2012-04-30 Dodji Seketeli <dodji@redhat.com>
3920
3921 Add -Wvarargs option
3922 * c.opt (Wvarargs): Define new option.
3923
3924 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3925
3926 * c-common.c (check_function_arguments): Replace
3927 Wmissing-format-attribute with Wsuggest-attribute=format.
3928
3929 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3930
3931 * c.opt (Wsuggest-attribute=format): New. Alias of
3932 Wmissing-format-attribute.
3933 * c-format.c (decode_format_type): Replace
3934 Wmissing-format-attribute with Wsuggest-attribute=format.
3935 (check_function_format): Likewise.
3936
3937 2012-04-27 Ollie Wild <aaw@google.com>
3938
3939 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3940 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3941 * c.opt: Add Wliteral-suffix.
3942
3943 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3944
3945 PR c/44774
3946 * c.opt (Wpedantic): New.
3947 (pedantic): Alias Wpedantic.
3948 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3949 (c_common_post_options): Likewise.
3950 (sanitize_cpp_opts): Likewise.
3951 * c-lex.c (interpret_float): Likewise.
3952 * c-format.c (check_format_types): Likewise.
3953 * c-common.c (pointer_int_sum): Likewise.
3954 (c_sizeof_or_alignof_type): Likewise.
3955 (c_add_case_label): Likewise.
3956 (c_do_switch_warnings): Likewise.
3957 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3958
3959 2012-04-15 Jason Merrill <jason@redhat.com>
3960
3961 PR c++/52818
3962 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3963 (C_STD_NAME): Distinguish between C++98 and C++11.
3964
3965 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3966
3967 PR target/52624
3968 * c-common.h (uint16_type_node): Rename into...
3969 (c_uint16_type_node): ...this.
3970 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3971 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3972
3973 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3974
3975 * c-common.c (warn_if_unused_value): Move definition to here.
3976 * c-common.h (warn_if_unused_value): Move declaration to here.
3977
3978 2012-03-23 William Bader <williambader@hotmail.com>
3979
3980 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3981
3982 2012-03-20 Jason Merrill <jason@redhat.com>
3983
3984 * c-common.h (enum cxx_dialect): Add cxx1y.
3985 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3986 test.
3987 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3988 * c-opts.c (c_common_post_options): Likewise.
3989 (set_std_cxx1y): New.
3990 (c_common_handle_option): Call it.
3991 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3992
3993 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3994
3995 PR c++/14710
3996 * c.opt ([Wuseless-cast]): Add.
3997
3998 2012-03-16 Richard Guenther <rguenther@suse.de>
3999
4000 * c-pretty-print.c (pp_c_initializer_list): Adjust.
4001
4002 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4003
4004 PR c++/44783
4005 * c.opt (ftemplate-backtrace-limit) Add.
4006
4007 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4008
4009 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
4010 handling.
4011 * c-pragma.c (handle_pragma_extern_prefix): Remove.
4012 (init_pragma): Don't register extern_prefix.
4013
4014 2012-03-12 Richard Guenther <rguenther@suse.de>
4015
4016 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
4017 (builtin_type_for_size): Likewise.
4018
4019 2012-02-13 Jakub Jelinek <jakub@redhat.com>
4020
4021 PR c++/52215
4022 * c-common.c (sync_resolve_params): Don't decide whether to convert
4023 or not based on TYPE_SIZE comparison, convert whenever arg_type
4024 is unsigned INTEGER_TYPE.
4025
4026 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
4027
4028 PR c/52118
4029 * c.opt ([Wunused-local-typedefs]): Fix description.
4030
4031 2012-01-24 Mike Stump <mikestump@comcast.net>
4032
4033 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
4034 exactly.
4035
4036 2012-01-18 Richard Guenther <rguenther@suse.de>
4037
4038 * c-opts.c (c_common_post_options): Reset LTO flags if
4039 we are about to generate a PCH.
4040
4041 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
4042
4043 PR c++/51777
4044 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
4045 use pp_unsigned_wide_integer.
4046
4047 2012-01-10 Richard Guenther <rguenther@suse.de>
4048
4049 PR middle-end/51806
4050 * c-opts.c (c_common_handle_option): Move -Werror handling
4051 to language independent code.
4052
4053 2012-01-05 Richard Guenther <rguenther@suse.de>
4054
4055 PR middle-end/51764
4056 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
4057 from common.opt.
4058
4059 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
4060
4061 PR c++/51316
4062 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
4063 of array types with an unknown bound.
4064
4065 2011-12-20 Joseph Myers <joseph@codesourcery.com>
4066
4067 * c-common.c (flag_isoc99): Update comment to refer to C11.
4068 (flag_isoc1x): Change to flag_isoc11.
4069 * c-common.h (flag_isoc99): Update comment to refer to C11.
4070 (flag_isoc1x): Change to flag_isoc11.
4071 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
4072 C11.
4073 * c-opts.c (set_std_c1x): Change to set_std_c11.
4074 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
4075 Call set_std_c11.
4076 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
4077 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
4078 * c.opt (std=c1x): Change to std=c11. Document as non-draft
4079 standard.
4080 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
4081 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
4082 (std=gnu1x): Make alias of std=gnu11.
4083
4084 2011-12-19 Jason Merrill <jason@redhat.com>
4085
4086 PR c++/51228
4087 * c-common.c (handle_transparent_union_attribute): Check the first
4088 field if the type is complete.
4089
4090 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
4091
4092 PR libstdc++/51365
4093 * c-common.c (RID_IS_FINAL): Add.
4094 * c-common.h (RID_IS_FINAL): Add.
4095
4096 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
4097
4098 * c.opt (fgnu-runtime): Provide full description.
4099 (fnext-runtime): Likewise.
4100 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
4101
4102 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
4103
4104 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
4105 predefines in one place. Add LOCK_FREE predefines.
4106 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
4107 new func.
4108
4109 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
4110
4111 PR c/51256
4112 * c-common.c (get_atomic_generic_size): Check for various error
4113 conditions
4114 (resolve_overloaded_atomic_exchange,
4115 resolve_overloaded_atomic_compare_exchange,
4116 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
4117 error_mark_node for error conditions.
4118
4119 2011-11-08 Richard Guenther <rguenther@suse.de>
4120
4121 PR middle-end/51010
4122 c-family/
4123
4124 2011-11-07 Richard Henderson <rth@redhat.com>
4125 Aldy Hernandez <aldyh@redhat.com>
4126 Torvald Riegel <triegel@redhat.com>
4127
4128 Merged from transactional-memory.
4129
4130 * c-common.c (handle_tm_wrap_attribute,
4131 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
4132 (struct c_common_reswords): Added __transaction* keywords.
4133 (struct c_common_attribute_table): Added transaction* and tm_regparm
4134 attributes.
4135 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
4136 masks.
4137 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
4138 find_tm_attribute): Declare.
4139
4140 2011-11-07 Jason Merrill <jason@redhat.com>
4141
4142 PR c++/35688
4143 * c-common.c, c-common.h: Revert yesterday's changes.
4144
4145 2011-11-06 Jason Merrill <jason@redhat.com>
4146
4147 PR c++/35688
4148 * c-common.c (decl_has_visibility_attr): Split out from...
4149 (c_determine_visibility): ...here.
4150 * c-common.h: Declare it.
4151
4152 2011-11-06 Joseph Myers <joseph@codesourcery.com>
4153
4154 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
4155 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
4156 type.
4157 (check_user_alignment): New. Split out of
4158 handle_aligned_attribute. Disallow integer constants with
4159 noninteger types. Conditionally allow zero.
4160 (handle_aligned_attribute): Use check_user_alignment.
4161 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
4162
4163 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
4164 Richard Henderson <rth@redhat.com>
4165
4166 Merged from cxx-mem-model.
4167
4168 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
4169 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
4170 parameters that are the same type size.
4171 (get_atomic_generic_size): New. Find size of generic
4172 atomic function parameters and do typechecking.
4173 (add_atomic_size_parameter): New. Insert size into parameter list.
4174 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
4175 either __atomic_exchange_n or external library call.
4176 (resolve_overloaded_atomic_compare_exchange): Restructure
4177 __atomic_compare_exchange to either _n variant or external library call.
4178 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
4179 __atomic_load_n or an external library call.
4180 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
4181 __atomic_store_n or an external library call.
4182 (resolve_overloaded_builtin): Handle new __atomic builtins.
4183
4184 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
4185
4186 PR c++/50608
4187 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
4188 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
4189 <INDIRECT_REF>: Return the argument.
4190 <ARRAY_REF>: Remove special code for negative offset.
4191 Call fold_build_pointer_plus instead of size_binop.
4192 (fold_offsetof): Remove STOP_REF argument and adjust.
4193 * c-common.h (fold_offsetof_1): Declare.
4194 (fold_offsetof): Remove STOP_REF argument.
4195
4196 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
4197
4198 PR c++/50810
4199 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4200 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4201 Wnarrowing for C++0x and C++98.
4202 * c.opt ([Wnarrowing]): Update.
4203
4204 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
4205
4206 PR c++/44277
4207 * c.opt: Add Wzero-as-null-pointer-constant.
4208
4209 2011-10-31 Jason Merrill <jason@redhat.com>
4210
4211 * c.opt (-fdeduce-init-list): Off by default.
4212
4213 PR c++/50920
4214 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
4215 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
4216 and -Wc++11-compat.
4217 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
4218
4219 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
4220
4221 PR c++/30066
4222 * c.opt (fvisibility-inlines-hidden): Description change.
4223
4224 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
4225
4226 Implement C++11 user-defined literals.
4227 * c-common.c (build_userdef_literal): New.
4228 * c-common.def: New tree code.
4229 * c-common.h (tree_userdef_literal): New tree struct and accessors.
4230 * c-lex.c (interpret_float): Add suffix parm.
4231 (c_lex_with_flags): Build literal tokens.
4232
4233 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4234
4235 PR c++/50841
4236 Revert:
4237 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4238
4239 PR c++/50810
4240 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4241 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4242 Wnarrowing for C++0x and C++98.
4243 * c.opt ([Wnarrowing]): Update.
4244
4245 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4246
4247 PR c++/50810
4248 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4249 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4250 Wnarrowing for C++0x and C++98.
4251 * c.opt ([Wnarrowing]): Update.
4252
4253 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
4254
4255 PR c++/45385
4256 * c-common.c (conversion_warning): Remove code looking for
4257 artificial operands.
4258
4259 2011-10-18 Dodji Seketeli <dodji@redhat.com>
4260
4261 PR bootstrap/50760
4262 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
4263 !NO_IMPLICIT_EXTERN_C.
4264
4265 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
4266
4267 * c-common.c (c_common_reswords): Add __bases,
4268 __direct_bases.
4269 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
4270
4271 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
4272
4273 PR c++/50757
4274 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
4275
4276 2011-10-15 Tom Tromey <tromey@redhat.com>
4277 Dodji Seketeli <dodji@redhat.com>
4278
4279 * c.opt (fdebug-cpp): New option.
4280 * c-opts.c (c_common_handle_option): Handle the option.
4281 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
4282 output stream in parameter. Factorized from ...
4283 (maybe_print_line): ... this. Dump location debug information when
4284 -fdebug-cpp is in effect.
4285 (print_line_1): New static function. Takes an output stream in
4286 parameter. Factorized from ...
4287 (print_line): ... here. Dump location information when -fdebug-cpp
4288 is in effect.
4289 (scan_translation_unit): Dump location information when
4290 -fdebug-cpp is in effect.
4291
4292 2011-10-15 Tom Tromey <tromey@redhat.com>
4293 Dodji Seketeli <dodji@redhat.com>
4294
4295 * c.opt (ftrack-macro-expansion): New option. Handle it with and
4296 without argument.
4297 * c-opts.c (c_common_handle_option)<case
4298 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
4299 cases. Handle -ftrack-macro-expansion with and without argument.
4300
4301 2011-10-15 Tom Tromey <tromey@redhat.com>
4302 Dodji Seketeli <dodji@redhat.com>
4303
4304 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
4305 (print_line, cb_define, do_line_change): Adjust to avoid touching
4306 the internals of struct line_map. Use the public API instead.
4307 * c-pch.c (c_common_read_pch): Likewise.
4308 * c-lex.c (fe_file_change): Likewise.
4309
4310 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4311
4312 PR c++/17212
4313 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
4314
4315 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
4316
4317 PR c++/33067
4318 * c-pretty-print.c (pp_c_floating_constant): Output
4319 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
4320
4321 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4322
4323 * c-common.c (def_builtin_1): Delete old interface with two
4324 parallel arrays to hold standard builtin declarations, and replace
4325 it with a function based interface that can support creating
4326 builtins on the fly in the future. Change all uses, and poison
4327 the old names. Make sure 0 is not a legitimate builtin index.
4328 * c-omp.c (c_finish_omp_barrier): Ditto.
4329 (c_finish_omp_taskwait): Ditto.
4330 (c_finish_omp_flush): Ditto.
4331
4332 2011-10-11 Tristan Gingold <gingold@adacore.com>
4333
4334 * c.opt: (fallow-parameterless-variadic-functions): New.
4335
4336 2011-09-08 Dodji Seketeli <dodji@redhat.com>
4337
4338 PR c++/33255 - Support -Wunused-local-typedefs warning
4339 * c-common.h (struct c_language_function::local_typedefs): New
4340 field.
4341 (record_locally_defined_typedef, maybe_record_typedef_use)
4342 (maybe_warn_unused_local_typedefs): Declare new functions.
4343 * c-common.c (record_locally_defined_typedef)
4344 (maybe_record_typedef_use)
4345 (maybe_warn_unused_local_typedefs): Define new functions.
4346 * c.opt: Declare new -Wunused-local-typedefs flag.
4347
4348 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
4349
4350 PR middle-end/50266
4351 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
4352 computations.
4353
4354 2011-09-05 Richard Guenther <rguenther@suse.de>
4355
4356 * c-common.c (complete_array_type): Use ssize_int (-1) instead
4357 of integer_minus_one_node for empty array upper bounds.
4358
4359 2011-08-28 Dodji Seketeli <dodji@redhat.com>
4360
4361 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
4362 it's the first time it's being called on this main TU.
4363
4364 2011-08-24 Richard Guenther <rguenther@suse.de>
4365
4366 PR c/49396
4367 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
4368
4369 2011-08-22 Gabriel Charette <gchare@google.com>
4370
4371 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
4372 defined in cpp_init_builtins and c_cpp_builtins.
4373
4374 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4375
4376 * c-common.c (c_common_reswords): Add __builtin_complex.
4377 * c-common.h (RID_BUILTIN_COMPLEX): New.
4378
4379 2011-08-18 Joseph Myers <joseph@codesourcery.com>
4380
4381 * c-common.c (c_common_reswords): Add _Noreturn.
4382 (keyword_is_function_specifier): Handle RID_NORETURN.
4383 * c-common.h (RID_NORETURN): New.
4384
4385 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4386
4387 * c-common.c (unsafe_conversion_p): New function. Check if it is
4388 unsafe to convert an expression to the type.
4389 (conversion_warning): Adjust, use unsafe_conversion_p.
4390 * c-common.h (unsafe_conversion_p): New function declaration.
4391
4392 2011-08-02 Jakub Jelinek <jakub@redhat.com>
4393
4394 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4395 (c_finish_omp_taskyield): New prototype.
4396 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4397 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4398 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
4399 or RHS1 have side-effects, evaluate those too in the right spot,
4400 if it is a decl and LHS is also a decl, error out if they
4401 aren't the same.
4402 (c_finish_omp_taskyield): New function.
4403 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4404 * c-pragma.c (omp_pragmas): Add taskyield.
4405 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4406 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4407 PRAGMA_OMP_CLAUSE_MERGEABLE.
4408
4409 2011-07-25 Dodji Seketeli <dodji@redhat.com>
4410
4411 * c-common.h (set_underlying_type): Remove parm name from
4412 declaration.
4413
4414 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
4415
4416 * c-pretty-print.h: Search c-common.h in c-family.
4417
4418 2011-07-22 Jason Merrill <jason@redhat.com>
4419
4420 PR c++/49793
4421 * c.opt (Wnarrowing): New.
4422
4423 PR c++/30112
4424 * c-common.h: Declare c_linkage_bindings.
4425 * c-pragma.c (handle_pragma_redefine_extname): Use it.
4426
4427 PR c++/49813
4428 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
4429 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
4430 as flag_isoc99 for 'restrict'.
4431 (pp_c_specifier_qualifier_list): Likewise for _Complex.
4432
4433 2011-07-21 Ian Lance Taylor <iant@google.com>
4434
4435 PR middle-end/49705
4436 * c-common.c (c_disable_warnings): New static function.
4437 (c_enable_warnings): New static function.
4438 (c_fully_fold_internal): Change local unused_p to bool. Call
4439 c_disable_warnings and c_enable_warnings rather than change
4440 c_inhibit_evaluation_warnings.
4441
4442 2011-07-20 Jason Merrill <jason@redhat.com>
4443
4444 PR c++/6709 (DR 743)
4445 PR c++/42603 (DR 950)
4446 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
4447 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
4448 (CPP_DECLTYPE): New.
4449 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
4450
4451 2011-07-19 Richard Guenther <rguenther@suse.de>
4452
4453 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
4454 * c-omp.c (c_finish_omp_for): Likewise.
4455
4456 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
4457
4458 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
4459 body on the next line.
4460
4461 2011-07-08 Jason Merrill <jason@redhat.com>
4462
4463 PR c++/45437
4464 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
4465
4466 PR c++/49673
4467 * c-common.c (c_apply_type_quals_to_decl): Don't check
4468 TYPE_NEEDS_CONSTRUCTING.
4469
4470 2011-07-06 Richard Guenther <rguenther@suse.de>
4471
4472 * c-common.c (c_common_nodes_and_builtins):
4473 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
4474
4475 2011-07-05 Richard Guenther <rguenther@suse.de>
4476
4477 * c-common.c (c_common_nodes_and_builtins): Build all common
4478 tree nodes first.
4479
4480 2011-06-27 Jakub Jelinek <jakub@redhat.com>
4481
4482 * c-common.h (c_tree_chain_next): New static inline function.
4483
4484 * c-common.c (check_builtin_function_arguments): Handle
4485 BUILT_IN_ASSUME_ALIGNED.
4486
4487 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
4488
4489 * c-common.c: Add sync_ or SYNC__ to builtin names.
4490 * c-omp.c: Add sync_ or SYNC__ to builtin names.
4491
4492 2011-06-20 Pierre Vittet <piervit@pvittet.com>
4493
4494 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
4495 handler.
4496 (gen_pragma_handler): New union.
4497 (internal_pragma_handler): New type.
4498 (c_register_pragma_with_data)
4499 (c_register_pragma_with_expansion_and_data): New functions.
4500
4501 * c-pragma.c (registered_pragmas, c_register_pragma_1)
4502 (c_register_pragma, c_register_pragma_with_expansion)
4503 (c_invoke_pragma_handler): Changed to work with
4504 internal_pragma_handler.
4505 (c_register_pragma_with_data)
4506 (c_register_pragma_with_expansion_and_data): New functions.
4507
4508 2011-06-14 Joseph Myers <joseph@codesourcery.com>
4509
4510 * c-common.c: Include common/common-target.h.
4511 (handle_section_attribute): Use
4512 targetm_common.have_named_sections.
4513 * c-cppbuiltin.c: Include common/common-target.h.
4514 (c_cpp_builtins): Use targetm_common.except_unwind_info.
4515
4516 2011-06-10 Richard Guenther <rguenther@suse.de>
4517
4518 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
4519 to print a IDENTIFIER_NODE.
4520
4521 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4522 Joseph Myers <joseph@codesourcery.com>
4523
4524 * c.opt (fbuilding-libgcc): New option.
4525 * c-cppbuiltin.c (c_cpp_builtins): Define
4526 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
4527
4528 2011-06-07 Jason Merrill <jason@redhat.com>
4529
4530 * c-common.c (max_tinst_depth): Lower default to 900.
4531
4532 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
4533
4534 2011-06-07 Richard Guenther <rguenther@suse.de>
4535
4536 * c-common.c (c_common_nodes_and_builtins): Do not set
4537 size_type_node or call set_sizetype.
4538
4539 2011-06-07 Dodji Seketeli <dodji@redhat.com>
4540
4541 PR debug/49130
4542 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
4543 type when using pointer comparison to compare types.
4544
4545 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
4546
4547 * c.opt: Add -Wdelete-non-virtual-dtor.
4548 * c-opts.c (c_common_handle_option): Include it in -Wall.
4549
4550 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4551
4552 PR bootstrap/49190
4553
4554 Revert:
4555 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4556
4557 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4558 not tree_common.
4559
4560 2011-05-27 Jakub Jelinek <jakub@redhat.com>
4561
4562 PR c++/49165
4563 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
4564 C++ don't call c_common_truthvalue_conversion on void type arms.
4565
4566 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4567
4568 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
4569 (stmt_list_stack): Define.
4570 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
4571 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
4572
4573 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4574
4575 * c-common.c (warning_candidate_p): Check for BLOCKs.
4576
4577 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4578
4579 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4580 not tree_common.
4581
4582 2011-05-25 Jakub Jelinek <jakub@redhat.com>
4583
4584 * c-common.c (def_fn_type): Remove extra va_end.
4585
4586 2011-05-23 Jason Merrill <jason@redhat.com>
4587
4588 PR c++/48106
4589 * c-common.c (c_common_get_narrower): New.
4590 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
4591
4592 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4593
4594 * c-common.h (check_function_arguments): Tweak prototype of
4595 check_function_arguments.
4596 * c-common.c (check_function_arguments): Likewise. Adjust
4597 calls to check_function_nonnull, check_function_format, and
4598 check_function_sentinel.
4599 (check_function_sentinel): Take a FUNCTION_TYPE rather than
4600 separate attributes and typelist arguments. Use
4601 FOREACH_FUNCTION_ARGS to iterate over argument types.
4602
4603 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4604
4605 * c-common.c (c_common_reswords): Reorder.
4606 * c-common.h (rid): Likewise.
4607
4608 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4609
4610 * c-common.c (def_fn_type): Don't call build_function_type, call
4611 build_function_type_array or build_varargs_function_type_array
4612 instead.
4613 (c_common_nodes_and_builtins): Likewise.
4614
4615 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4616
4617 * c-common.c (c_add_case_label): Omit the loc argument to
4618 build_case_label.
4619 * c-common.h (build_case_label): Remove.
4620 * c-semantics.c (build_case_label): Remove.
4621
4622 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4623
4624 * c-objc.h (objc_start_method_definition): Update prototype.
4625 * stub-objc.c (objc_start_method_definition): Add extra parameter.
4626
4627 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4628
4629 * c-common.c (check_main_parameter_types): Reindent. Don't use
4630 TYPE_ARG_TYPES directly.
4631 (handle_nonnull_attribute): Likewise.
4632 (sync_resolve_params): Likewise.
4633 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
4634 to check_format_string.
4635 (handle_format_attribute): Likewise.
4636 (check_format_string): Take a function type to examine instead of
4637 a type list. Use a function_arg_iterator to step through argument
4638 types.
4639
4640 2011-05-04 Richard Guenther <rguenther@suse.de>
4641
4642 * c-common.c (fix_string_type): Use size_int for index type bounds.
4643 (start_fname_decls): Do not pass NULL to build_int_cst.
4644 (c_init_attributes): Likewise.
4645 * c-lex.c (c_lex_with_flags): Likewise.
4646
4647 2011-04-27 Jason Merrill <jason@redhat.com>
4648
4649 * c-common.c (make_tree_vector_from_list): New.
4650 * c-common.h: Declare it.
4651
4652 2011-04-26 Richard Guenther <rguenther@suse.de>
4653
4654 PR preprocessor/48248
4655 * c-ppoutput.c (maybe_print_line): Always optimize newlines
4656 for output size with -P.
4657
4658 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4659
4660 * c-common.c (struct c_common_resword): Add __underlying_type.
4661 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
4662
4663 2011-04-20 Jim Meyering <meyering@redhat.com>
4664
4665 * c-format.c (init_dollar_format_checking): Remove useless
4666 if-before-free.
4667
4668 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4669
4670 * c-objc.h (objc_get_interface_ivars): Removed.
4671 (objc_detect_field_duplicates): New.
4672 * stub-objc.c: Likewise.
4673
4674 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4675
4676 * stub-objc.c (objc_declare_protocols): Renamed to
4677 objc_declare_protocol.
4678 * c-objc.h: Likewise.
4679
4680 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4681
4682 * stub-objc.c (objc_declare_class): Updated argument name.
4683
4684 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4685
4686 * c-common.h (c_common_init_ts): Declare.
4687 * c-common.c (c_common_init_ts): Define.
4688
4689 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4690
4691 * c-objc.h (objc_build_message_expr): Updated prototype.
4692 * stub-objc.c (objc_build_message_expr): Likewise.
4693
4694 2011-04-12 Martin Jambor <mjambor@suse.cz>
4695
4696 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
4697 of cgraph_node.
4698
4699 2011-04-11 Richard Guenther <rguenther@suse.de>
4700
4701 * c-common.c (complete_array_type): Build a range type of
4702 proper type.
4703
4704 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4705
4706 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
4707 (handle_type_generic_attribute): Likewise.
4708
4709 2011-04-07 Jason Merrill <jason@redhat.com>
4710
4711 PR c++/48450
4712 * c-common.c (c_common_truthvalue_conversion): Don't ignore
4713 conversion from C++0x scoped enum.
4714
4715 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4716
4717 * c-target-def.h: New file.
4718 * c-target.def: New file.
4719 * c-target.h: New file.
4720 * c-common.c (targetcm): Don't define here.
4721 * c-common.h (default_handle_c_option): Declare.
4722 * c-format.c: Include c-target.h instead of target.h.
4723 * c-opts.c: Include c-target.h instead of target.h. Explicitly
4724 include tm.h.
4725 (default_handle_c_option): Move from targhooks.c.
4726
4727 2011-03-29 Jakub Jelinek <jakub@redhat.com>
4728
4729 PR preprocessor/48248
4730 * c-ppoutput.c (print): Add src_file field.
4731 (init_pp_output): Initialize it.
4732 (maybe_print_line): Don't optimize by adding up to 8 newlines
4733 if map->to_file and print.src_file are different file.
4734 (print_line): Update print.src_file.
4735
4736 2011-03-25 Kai Tietz <ktietz@redhat.com>
4737
4738 * c-ada-spec.c (compare_comment): Use filename_cmp
4739 instead of strcmp for filename.
4740
4741 2011-03-25 Jeff Law <law@redhat.com>
4742
4743 * c-common.c (def_fn_type): Add missing va_end.
4744
4745 2011-03-25 Jason Merrill <jason@redhat.com>
4746
4747 * c.opt: Add -std=c++03.
4748
4749 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4750
4751 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
4752
4753 2011-03-17 Kai Tietz
4754
4755 PR target/12171
4756 * c-pretty-print.c (pp_c_specifier_qualifier_list):
4757 Display allowed attributes for function pointer types.
4758 (pp_c_attributes_display): New function to display
4759 attributes having affects_type_identity flag set to true.
4760 * c-pretty-print.h (pp_c_attributes_display): New prototype.
4761
4762 * c-common.c (c_common_attribute_table):
4763 Add new element.
4764 (c_common_format_attribute_table): Likewise.
4765
4766 2011-03-18 Jason Merrill <jason@redhat.com>
4767
4768 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
4769 * c-common.h: Don't declare it here.
4770 * c-common.c: Or define it here.
4771 * c-opts.c (c_common_handle_option): Or set it here.
4772
4773 PR c++/35315
4774 * c-common.c (handle_transparent_union_attribute): Don't
4775 make a duplicate type in C++.
4776
4777 2011-03-15 Jason Merrill <jason@redhat.com>
4778
4779 * c-common.c (max_constexpr_depth): New.
4780 * c-common.h: Declare it.
4781 * c-opts.c (c_common_handle_option): Set it.
4782 * c.opt (fconstexpr-depth): New option.
4783
4784 2011-03-11 Jason Merrill <jason@redhat.com>
4785
4786 * c-common.c (attribute_takes_identifier_p): Add missing const.
4787
4788 PR c++/46803
4789 * c-common.c (attribute_takes_identifier_p): Assume that an
4790 unknown attribute takes an identifier.
4791
4792 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
4793
4794 PR c/47786
4795 * c-common.c (c_type_hash): Call list_length instead of iterating
4796 through DECL_CHAIN. Rename 'i' to 'n_elements'.
4797
4798 2011-02-19 Jakub Jelinek <jakub@redhat.com>
4799
4800 PR c/47809
4801 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4802
4803 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4804
4805 * c.opt (fobjc-abi-version=) New.
4806 (fobjc-nilcheck): New.
4807
4808 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
4809
4810 PR c++/46890
4811 * c-common.h (keyword_is_decl_specifier): Declare.
4812 * c-common.c (keyword_is_decl_specifier): Define.
4813 (keyword_is_function_specifier): New function.
4814
4815 2011-01-26 Jakub Jelinek <jakub@redhat.com>
4816
4817 PR c/47473
4818 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4819 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4820 REAL_TYPE.
4821
4822 2011-01-26 Arnaud Charlet <charlet@adacore.com>
4823
4824 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4825
4826 2011-01-26 Jakub Jelinek <jakub@redhat.com>
4827
4828 PR pch/47430
4829 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4830 after init_c_lex if pch_file is set.
4831
4832 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
4833
4834 PR c++/43601
4835 * c.opt (-fkeep-inline-dllexport): New switch.
4836
4837 2011-01-12 Richard Guenther <rguenther@suse.de>
4838
4839 PR middle-end/32511
4840 * c-common.c (handle_weak_attribute): Warn instead of error
4841 on declaring an inline function weak.
4842
4843 2011-01-05 Tom Tromey <tromey@redhat.com>
4844
4845 * c-common.h (lvalue_error): Update.
4846 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
4847 not error.
4848
4849 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
4850
4851 PR objc/47075
4852 * c-objc.h (objc_finish_message_expr): Added argument to
4853 prototype.
4854
4855 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
4856
4857 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4858 Use prototype_p.
4859
4860 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
4861
4862 * c-objc.h (objc_maybe_warn_exceptions): New.
4863 * stub-objc.c (objc_maybe_warn_exceptions): New.
4864
4865 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
4866
4867 * c-common.h (readonly_error): Declare.
4868 * c-common.c (readonly_error): Define.
4869
4870 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
4871
4872 * c-common.h (invalid_indirection_error): Declare.
4873 * c-common.c (invalid_indirection_error): Define.
4874
4875 2010-12-03 Richard Guenther <rguenther@suse.de>
4876
4877 PR c/46745
4878 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4879 (pp_c_unary_expression): Likewise.
4880 (pp_c_expression): Likewise.
4881
4882 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
4883
4884 * c-common.h (objc_finish_function): New.
4885 (objc_non_volatilized_type): Removed.
4886 (objc_type_quals_match): Removed.
4887 * stub-objc.c (objc_finish_function): New.
4888 (objc_non_volatilized_type): Removed.
4889 (objc_type_quals_match): Removed.
4890
4891 2010-11-30 Joseph Myers <joseph@codesourcery.com>
4892
4893 * c-common.h (parse_optimize_options): Declare.
4894 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4895 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4896
4897 2010-11-29 Joseph Myers <joseph@codesourcery.com>
4898
4899 * c-opts.c (check_deps_environment_vars): Use getenv instead of
4900 GET_ENVIRONMENT.
4901 * c-pch.c (O_BINARY): Don't define here.
4902 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4903
4904 2010-11-25 Joseph Myers <joseph@codesourcery.com>
4905
4906 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4907 targetm.except_unwind_info.
4908
4909 2010-11-23 Joseph Myers <joseph@codesourcery.com>
4910
4911 * c-opts.c (c_common_handle_option): Pass location to
4912 set_struct_debug_option.
4913
4914 2010-11-23 Joseph Myers <joseph@codesourcery.com>
4915
4916 * c-common.c (visibility_options): Move from ../opts.c.
4917 * c-common.h (struct visibility_flags, visibility_options):
4918 Declare here.
4919 * c-opts.c (finish_options): Rename to c_finish_options.
4920 (c_common_init): Update call to finish_options.
4921
4922 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4923
4924 PR objc/34033
4925 * c-lex.c (lex_string): Check that each string in an Objective-C
4926 string concat sequence starts with either one or zero '@', and
4927 that there are no spurious '@' signs at the end.
4928
4929 2010-11-20 Joseph Myers <joseph@codesourcery.com>
4930
4931 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4932 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4933 HANDLE_PRAGMA_VISIBILITY.
4934 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4935 HANDLE_PRAGMA_VISIBILITY): Don't define.
4936 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4937
4938 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
4939
4940 PR c++/16189
4941 PR c++/36888
4942 PR c++/45331
4943 * c-common.h (keyword_begins_type_specifier): Declare.
4944 (keyword_is_storage_class_specifier): Declare.
4945 (keyword_is_type_qualifier): Declare.
4946 * c-common.c (keyword_begins_type_specifier): New function.
4947 (keyword_is_storage_class_specifier): New function.
4948 (keyword_is_type_qualifier): Declare.
4949
4950 2010-11-19 Joseph Myers <joseph@codesourcery.com>
4951
4952 PR c/46547
4953 * c-common.c (in_late_binary_op): Define.
4954 (c_common_truthvalue_conversion): Check in_late_binary_op before
4955 calling c_save_expr.
4956 * c-common.h (in_late_binary_op): Declare.
4957
4958 2010-11-19 Joseph Myers <joseph@codesourcery.com>
4959
4960 * c-opts.c (c_common_handle_option): Update calls to
4961 set_struct_debug_option.
4962
4963 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
4964
4965 * c-common.h (objc_declare_protocols): Added additional argument.
4966 * stub-objc.c (objc_declare_protocol): Same change.
4967
4968 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4969
4970 PR c/33193
4971 * c-common.h (build_real_imag_expr): Declare.
4972 * c-semantics.c (build_real_imag_expr): Define.
4973
4974 2010-11-17 Joseph Myers <joseph@codesourcery.com>
4975
4976 * c-opts.c (c_common_parse_file): Take no arguments.
4977 * c-common.h (c_common_parse_file): Update prototype.
4978
4979 2010-11-16 Jakub Jelinek <jakub@redhat.com>
4980
4981 PR c++/46401
4982 * c-common.c (warning_candidate_p): Don't track non-const calls
4983 or STRING_CSTs.
4984
4985 2010-11-15 Ian Lance Taylor <iant@google.com>
4986
4987 * c-lex.c (init_c_lex): Set macro debug callbacks if
4988 flag_dump_go_spec is set.
4989
4990 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4991
4992 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4993 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4994
4995 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4996
4997 PR preprocessor/45038
4998 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4999 dialects.
5000
5001 2010-11-12 Joseph Myers <joseph@codesourcery.com>
5002
5003 * c-common.h (c_family_lang_mask): Declare.
5004 * c-opts.c (c_family_lang_mask): Make extern.
5005 * c-pragma.c (handle_pragma_diagnostic): Use
5006 control_warning_option.
5007
5008 2010-11-12 Joseph Myers <joseph@codesourcery.com>
5009
5010 * c-common.c (parse_optimize_options): Update call to
5011 decode_options.
5012 * c-common.h (c_common_handle_option): Update prototype.
5013 * c-opts.c (c_common_handle_option): Take location_t parameter and
5014 pass it to other functions.
5015
5016 2010-11-11 Joseph Myers <joseph@codesourcery.com>
5017
5018 * c-opts.c (warning_as_error_callback): Remove.
5019 (c_common_initialize_diagnostics): Don't call
5020 register_warning_as_error_callback.
5021 (c_common_handle_option): Handle -Werror=normalized= here.
5022
5023 2010-11-10 Joseph Myers <joseph@codesourcery.com>
5024
5025 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
5026 in diagnostic.
5027 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
5028 letter.
5029 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
5030 Remove trailing '.' from diagnostics.
5031 * c.opt (Wwrite-strings_: Avoid '`' in help text.
5032
5033 2010-11-10 Joseph Myers <joseph@codesourcery.com>
5034
5035 * c-common.c (parse_optimize_options): Pass global_dc to
5036 decode_options.
5037 * c-opts.c (c_common_handle_option): Pass &global_options to
5038 set_Wstrict_aliasing.
5039 * c.opt (v): Don't mark Common or document here.
5040
5041 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
5042
5043 PR target/44981
5044 * c-format.c (format_type): New type gcc_objc_string_format_type.
5045 (valid_stringptr_type_p): New.
5046 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
5047 (check_format_string): Pass expected type, use
5048 valid_stringptr_type_p (), check that the format string types are
5049 consistent with the format specification.
5050 (decode_format_attr): Warn if NSString is used outside objective-c.
5051 (format_types_orig): Add NSString.
5052 (format_name): New.
5053 (format_flags): New.
5054 (check_format_arg): Handle format strings requiring an external parser.
5055 first_target_format_type: New variable.
5056 (handle_format_attribute): Set up first_target_format_type, pass the
5057 expected format arg string type to check_format_string().
5058 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
5059 * stub-objc.c (objc_string_ref_type_p): New.
5060 (objc_check_format_arg): New.
5061
5062 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
5063
5064 Fixed using the Objective-C 2.0 dot-syntax with class names.
5065 * c-common.h (objc_build_class_component_ref): New.
5066 * stub-objc.c (objc_build_class_component_ref): New.
5067
5068 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5069
5070 * c.opt (Wproperty-assign-default): New option.
5071
5072 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5073
5074 Implemented -fobjc-std=objc1 flag.
5075 * c.opt (fobjc-std=objc1): New option.
5076
5077 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
5078
5079 Implemented format and noreturn attributes for Objective-C methods.
5080 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
5081 attribute for Objective-C methods.
5082
5083 2010-10-31 Jason Merrill <jason@redhat.com>
5084
5085 * c-common.c (conversion_warning, warn_for_collisions_1): Use
5086 EXPR_LOC_OR_HERE.
5087
5088 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
5089
5090 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
5091 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
5092 (objc_add_property_declaration): Removed arguments for copies and
5093 ivar.
5094 (objc_build_getter_call): Renamed to
5095 objc_maybe_build_component_ref.
5096 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5097 (objc_is_property_ref): New.
5098 * c-common.c (c_common_reswords): Removed copies and ivar.
5099 * stub-objc.c (objc_add_property_declaration): Removed arguments
5100 for copies and ivar.
5101 (objc_build_getter_call): Renamed to
5102 objc_maybe_build_component_ref.
5103 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5104 (objc_is_property_ref): New.
5105
5106 2010-10-29 Arnaud Charlet <charlet@adacore.com>
5107 Matthew Gingell <gingell@adacore.com>
5108
5109 * c-ada-spec.c (separate_class_package): New function.
5110 (pp_ada_tree_identifier): Prefix references to C++ classes with the
5111 name of their enclosing package.
5112 (print_ada_declaration): Use separate_class_package.
5113
5114 2010-10-27 Jason Merrill <jason@redhat.com>
5115
5116 * c-common.c (c_common_reswords): Add __is_literal_type.
5117 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
5118
5119 * c-common.c (check_case_value): Remove special C++ code.
5120
5121 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5122
5123 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
5124 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
5125 and RID_LAST_PATTR.
5126 (objc_add_property_declaration): Added additional arguments.
5127 (objc_property_attribute_kind): Removed.
5128 (objc_set_property_attr): Removed.
5129 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
5130 copy and nonatomic.
5131 * stub-objc.c (objc_add_property_declaration): Added additional
5132 arguments.
5133 (objc_set_property_attr): Removed.
5134
5135 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5136
5137 * c-common.h (objc_add_property_variable): Renamed to
5138 objc_add_property_declaration. Added location argument.
5139 * stub-objc.c (objc_add_property_variable): Same change.
5140
5141 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
5142
5143 * c-common.h (objc_maybe_printable_name): New.
5144 * stub-objc.c (objc_maybe_printable_name): New.
5145
5146 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5147 Andrew Pinski <pinskia@gmail.com>
5148
5149 * c-common.h (c_common_mark_addressable_vec): Declare.
5150 * c-common.c (c_common_mark_addressable_vec): New function.
5151
5152 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5153
5154 * c-common.h (objc_set_method_type): Removed.
5155 (objc_add_method_declaration): Added boolean argument.
5156 (objc_start_method_definition): Same change.
5157 (objc_build_method_signature): Same change.
5158 * stub-objc.c (objc_set_method_type): Removed.
5159 (objc_add_method_declaration): Added boolean argument.
5160 (objc_start_method_definition): Same change.
5161 (objc_build_method_signature): Same change.
5162
5163 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5164
5165 * c-common.h (finish_file): Removed.
5166 (objc_write_global_declarations): New.
5167 * c-opts.c (c_common_parse_file): Do not call finish_file.
5168 * stub-objc.c (objc_write_global_declarations): New.
5169
5170 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5171
5172 Implemented parsing @synthesize and @dynamic for
5173 Objective-C/Objective-C++.
5174 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
5175 (objc_add_synthesize_declaration): New.
5176 (objc_add_dynamic_declaration): New.
5177 * c-common.c (c_common_reswords): Add synthesize and dynamic.
5178 * stub-objc.c (objc_add_synthesize_declaration): New.
5179 (objc_add_dynamic_declaration): New.
5180
5181 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5182
5183 PR target/46041
5184 * c-cppbuiltin.c (mode_has_fma): Move function here from
5185 builtins.c. Don't use the fma optab, instead just use the
5186 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
5187 using -save-temps.
5188
5189 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5190
5191 Merge from 'apple/trunk' branch on FSF servers.
5192
5193 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
5194
5195 Radar 4330422
5196 * c-common.h (objc_non_volatilized_type): New declaration
5197 * stub-objc.c (objc_non_volatilized_type): New stub.
5198
5199 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5200
5201 Merge from 'apple/trunk' branch on FSF servers.
5202
5203 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
5204
5205 Radar 4133425
5206 * c-common.h (objc_diagnose_private_ivar): New decl.
5207 * stub-objc.c (objc_diagnose_private_ivar): New stub.
5208
5209 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
5210
5211 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
5212 * c-common.h (enum rid): Add RID_AT_PACKAGE.
5213 (objc_ivar_visibility_kind): New enum.
5214 (objc_set_visibility): Adjust prototype to use visibility enum.
5215 * stub-objc.c (objc_set_visibility): Adjust stub to use
5216 visibility enum.
5217
5218 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5219
5220 * c-cppbuiltin.c (builtin_define_float_constants): Emit
5221 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
5222 has the appropriate fma builtins.
5223 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
5224
5225 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
5226
5227 merge from FSF apple 'trunk' branch.
5228 2006 Fariborz Jahanian <fjahanian@apple.com>
5229
5230 Radars 4436866, 4505126, 4506903, 4517826
5231 * c-common.c (c_common_resword): Define @property and its attributes.
5232 * c-common.h: Define property attribute enum entries.
5233 (OBJC_IS_PATTR_KEYWORD): New.
5234 (objc_property_attribute_kind): New enum.
5235 Declare objc_set_property_attr (), objc_add_property_variable (),
5236 objc_build_getter_call () and objc_build_setter_call ().
5237 * stub-objc.c (objc_set_property_attr): New stub.
5238 (objc_add_property_variable): Likewise.
5239 (objc_build_getter_call): Likewise.
5240 (objc_build_setter_call) Likewise.
5241
5242 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
5243
5244 merge from FSF apple 'trunk' branch.
5245 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
5246
5247 Radar 3803157 (method attributes)
5248 * c-common.c (handle_deprecated_attribute): Recognize
5249 objc methods as valid declarations.
5250 * c-common.h: Declare objc_method_decl ().
5251 * stub-objc.c (objc_method_decl): New stub.
5252
5253 2010-10-08 Joseph Myers <joseph@codesourcery.com>
5254
5255 * c-common.c (parse_optimize_options): Call
5256 decode_cmdline_options_to_array_default_mask before
5257 decode_options. Update arguments to decode_options.
5258 * c-common.h (c_common_init_options_struct): Declare.
5259 * c-opts.c (c_common_init_options_struct): New. Split out from
5260 c_common_init_options.
5261
5262 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
5263
5264 Implemented fast enumeration for Objective-C.
5265 * c-common.h (objc_finish_foreach_loop): New.
5266 * stub-objc.c (objc_finish_foreach_loop): New.
5267
5268 2010-10-05 Joseph Myers <joseph@codesourcery.com>
5269
5270 * c-common.h (struct diagnostic_context): Don't declare here.
5271 (c_common_initialize_diagnostics): Declare using
5272 diagnostic_context typedef.
5273 * c-opts.c (c_common_handle_option): Pass global_dc to
5274 handle_generated_option.
5275
5276 2010-10-04 Joseph Myers <joseph@codesourcery.com>
5277
5278 * c-opts.c (c_common_handle_option): Pass &global_options_set to
5279 handle_generated_option.
5280
5281 2010-10-03 Ian Lance Taylor <iant@google.com>
5282
5283 * c.opt (-fplan9-extensions): New option.
5284
5285 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5286
5287 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
5288 Remove.
5289 (c_cpp_builtins): Call functions from cppbuiltin.c instead
5290 of duplicating code.
5291
5292 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5293
5294 * c-common.c: Add two new entries for @optional
5295 and @required keywords.
5296
5297 merge from FSF 'apple/trunk' branch.
5298 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
5299
5300 Radar 4386773
5301 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
5302 objective-c keywords.
5303 (objc_set_method_opt): New declaration.
5304 * stub-objc.c (objc_set_method_opt): New stub.
5305
5306 2010-09-30 Joseph Myers <joseph@codesourcery.com>
5307
5308 * c-common.c (handle_optimize_attribute): Pass &global_options to
5309 cl_optimization_save and cl_optimization_restore.
5310 * c-opts.c (c_common_handle_option): Pass &global_options to
5311 handle_generated_option.
5312 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
5313 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
5314 &global_options to cl_optimization_restore.
5315
5316 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5317
5318 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
5319 Objective-C/Objective-C++ keywords.
5320
5321 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5322
5323 Merge from 'apple/trunk' branch on FSF servers.
5324
5325 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5326
5327 Radar 4281748
5328 * c-common.h (objc_check_global_decl): New declaration.
5329 * stub-objc.c (objc_check_global_decl): New stub.
5330
5331 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5332
5333 * c.opt: Don't use VarExists.
5334
5335 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5336
5337 * c-common.c (c_cpp_error): Update names of diagnostic_context
5338 members.
5339 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
5340 cl_optimization members.
5341 * c-opts.c (warning_as_error_callback, c_common_handle_option,
5342 sanitize_cpp_opts, finish_options): Update names of cpp_options
5343 members.
5344
5345 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5346
5347 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
5348 (objc_is_reserved_word): Removed.
5349 * c-common.c: Updated comments.
5350 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
5351 objc_is_reserved_word.
5352 * stub-objc.c (objc_is_reserved_word): Removed.
5353
5354 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5355
5356 * c-common.h (objc_add_method_declaration): Adjust prototype to
5357 include attributes.
5358 (objc_start_method_definition): Likewise.
5359 (objc_build_keyword_decl): Likewise.
5360 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
5361 (objc_start_method_definition): Likewise.
5362 (objc_build_keyword_decl): Likewise.
5363
5364 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5365
5366 * c-common.h (objc_start_class_interface): Adjust prototype.
5367 (objc_start_category_interface): Likewise.
5368 (objc_start_protocol): Likewise.
5369 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
5370 (objc_start_class_interface): Likewise.
5371 (objc_start_category_interface): Likewise.
5372
5373 2010-09-27 Ian Lance Taylor <iant@google.com>
5374
5375 * c-common.c (c_common_attribute_table): Add no_split_stack.
5376 (handle_no_split_stack_attribute): New static function.
5377
5378 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5379
5380 Merge from 'apple/trunk' branch on FSF servers.
5381
5382 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5383
5384 Radar 4229905
5385 * c-common.h (objc_have_common_type): New declaration.
5386 * stub-objc.c (objc_have_common_type): New stub.
5387
5388 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5389
5390 Radar 4154928
5391 * c-common.h (objc_common_type): New prototype.
5392 * stub-objc.c (objc_common_type): New stub.
5393
5394 2010-09-24 Jan Hubicka <jh@suse.cz>
5395
5396 * c-common.c (handle_leaf_attribute): New function.
5397 (struct attribute_spec c_common_att): Add leaf.
5398
5399 2010-09-22 Joseph Myers <joseph@codesourcery.com>
5400
5401 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5402 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5403 -dump, -dump=, -imacros, -imacros=, -include, -include=,
5404 -include-barrier, -include-directory, -include-directory=,
5405 -include-directory-after, -include-directory-after=,
5406 -include-prefix, -include-prefix=, -include-with-prefix,
5407 -include-with-prefix=, -include-with-prefix-after,
5408 -include-with-prefix-after=, -include-with-prefix-before,
5409 -include-with-prefix-before=, -no-integrated-cpp,
5410 -no-line-commands, -no-standard-includes, -no-warnings, -output,
5411 -output=, -pedantic, -pedantic-errors, -preprocess,
5412 -print-missing-file-dependencies, -trace-includes, -traditional,
5413 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
5414 -user-dependencies, -verbose, -write-dependencies,
5415 -write-user-dependencies, no-integrated-cpp, traditional): New.
5416
5417 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5418
5419 PR objc/23710
5420 * c-common.h (objc_start_method_definition): Return bool instead
5421 of void.
5422 * stub-objc.c (objc_start_method_definition): Return bool instead
5423 of void.
5424
5425 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5426
5427 PR objc/25965
5428 * c-common.h (objc_get_interface_ivars): New declaration.
5429 * stub-objc.c (objc_get_interface_ivars): New stub.
5430
5431 2010-09-15 Ian Lance Taylor <iant@google.com>
5432
5433 * c-common.c (parse_optimize_options): Do not capitalize warning
5434 messages. Remove period at end of warning message.
5435
5436 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
5437
5438 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
5439 (handle_alias_attribute): ... here.
5440 (handle_ifunc_attribute): New.
5441
5442 2010-09-06 Mark Mitchell <mark@codesourcery.com>
5443
5444 * c-common.h (do_warn_double_promotion): Declare.
5445 * c-common.c (do_warn_double_promotion): Define.
5446
5447 2010-09-05 Mark Mitchell <mark@codesourcery.com>
5448
5449 * c.opt (Wdouble-promotion): New.
5450
5451 2010-09-02 Joseph Myers <joseph@codesourcery.com>
5452
5453 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
5454 fvtable-thunks, fxref): Mark no longer supported in help text.
5455
5456 2010-09-02 Joseph Myers <joseph@codesourcery.com>
5457
5458 * c.opt (Wimport, fall-virtual, falt-external-templates,
5459 fdefault-inline, fenum-int-equiv, fexternal-templates,
5460 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
5461 fname-mangling-version-, fnew-abi, fnonnull-objects,
5462 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
5463 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
5464 applicable.
5465 (fhandle-exceptions): Mark with Alias and Warn.
5466 * c-opts.c (c_common_handle_option): Don't handle options marked
5467 as ignored.
5468
5469 2010-09-02 Joseph Myers <joseph@codesourcery.com>
5470
5471 * c.opt (Wcomments, Werror-implicit-function-declaration,
5472 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
5473 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
5474 aliases.
5475 * c-common.c (option_codes): Use OPT_Wcomment instead of
5476 OPT_Wcomments.
5477 * c-opts.c (warning_as_error_callback, c_common_handle_option):
5478 Don't handle options marked as aliases.
5479
5480 2010-08-25 Richard Guenther <rguenther@suse.de>
5481
5482 * c-common.c (c_common_get_alias_set): Remove special
5483 handling for pointers.
5484
5485 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5486
5487 * c-common.c: Use FOR_EACH_VEC_ELT.
5488 * c-gimplify.c: Likewise.
5489 * c-pragma.c: Likewise.
5490
5491 2010-08-16 Joseph Myers <joseph@codesourcery.com>
5492
5493 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
5494 RejectDriver.
5495 (MMDX): Change back to MMD. Mark NoDriverArg instead of
5496 RejectDriver.
5497 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
5498 instead of OPT_MDX and OPT_MMDX.
5499
5500 2010-08-16 Joseph Myers <joseph@codesourcery.com>
5501
5502 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
5503
5504 2010-08-12 Joseph Myers <joseph@codesourcery.com>
5505
5506 * c.opt (MD, MMD): Change to MDX and MMDX.
5507 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
5508
5509 2010-08-11 Joseph Myers <joseph@codesourcery.com>
5510
5511 * c-opts.c (c_common_handle_option): Call handle_generated_option
5512 instead of handle_option.
5513
5514 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5515
5516 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
5517 (maybe_apply_renaming_pragma): Delete unneeded declarations.
5518
5519 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5520
5521 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
5522 (pending_redefine_extname): Change type to a VEC.
5523 (add_to_renaming_pragma_list): Update for new type of
5524 pending_redefine_extname.
5525 (maybe_apply_renaming_pragma): Likewise.
5526
5527 2010-08-04 Arnaud Charlet <charlet@adacore.com>
5528
5529 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
5530 visited.
5531 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
5532 decide whether a type has already been declared/seen.
5533 Do not go to the original type.
5534 (dump_nested_types): New parameter forward.
5535 Generate forward declaration if needed and mark type as visited.
5536 (print_ada_declaration): Call dump_nested_types if not already done.
5537 Mark types as visited.
5538
5539 2010-08-03 Joseph Myers <joseph@codesourcery.com>
5540
5541 * c.opt (-print-pch-checksum): Remove option.
5542 * c-opts.c (c_common_handle_option): Don't handle
5543 OPT_print_pch_checksum.
5544
5545 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5546
5547 * c-common.h (c_common_handle_option): Update prototype and return
5548 value type.
5549 * c-opts.c (c_common_handle_option): Update prototype and return
5550 value type. Update calls to handle_option and
5551 enable_warning_as_error.
5552
5553 2010-07-27 Jakub Jelinek <jakub@redhat.com>
5554
5555 PR c/45079
5556 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
5557
5558 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5559
5560 * c-common.h (c_common_missing_argument): Remove.
5561 * c-opts.c (c_common_missing_argument): Remove.
5562 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
5563 idirafter, imacros, include, isysroot, isystem, iquote): Add
5564 MissingArgError.
5565 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5566
5567 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5568
5569 * c-common.h (c_common_option_lang_mask,
5570 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
5571 New.
5572 (c_common_init_options): Update prototype.
5573 * c-opts.c (c_common_option_lang_mask): New.
5574 (c_common_initialize_diagnostics): Split out of
5575 c_common_init_options.
5576 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
5577 New.
5578 (c_common_init_options): Update prototype. Use decoded options in
5579 search for -lang-asm.
5580
5581 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5582
5583 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5584 * c-format.c: Likewise.
5585
5586 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5587
5588 * c-common.h: Include diagnostic-core.h. Error if already
5589 included.
5590 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
5591
5592 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5593
5594 * c-common.c (IN_GCC_FRONTEND): Do not undef.
5595 Do not include expr.h
5596 (vector_mode_valid_p): Move here.
5597
5598 2010-06-21 DJ Delorie <dj@redhat.com>
5599
5600 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
5601 allow these pragmas anywhere.
5602
5603 2010-06-14 Jakub Jelinek <jakub@redhat.com>
5604
5605 PR bootstrap/44509
5606 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
5607 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
5608 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
5609 ggc_strdup instead of xstrdup.
5610
5611 2010-06-10 Jakub Jelinek <jakub@redhat.com>
5612
5613 * c-cppbuiltin.c: Include cpp-id-data.h.
5614 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
5615 (lazy_hex_fp_value): New function.
5616 (builtin_define_with_hex_fp_value): Provide definitions lazily.
5617
5618 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5619
5620 * c-gimplify.c: Do not include tree-flow.h
5621
5622 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
5623
5624 PR other/44034
5625 * c-common.c: Rename targetm member:
5626 targetm.enum_va_list -> targetm.enum_va_list_p
5627
5628 2010-06-28 Anatoly Sokolov <aesok@post.ru>
5629
5630 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
5631
5632 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5633
5634 * c-cppbuiltin.c: Do not include except.h.
5635
5636 2010-06-24 Andi Kleen <ak@linux.intel.com>
5637
5638 * c-common.c (warn_for_omitted_condop): New.
5639 * c-common.h (warn_for_omitted_condop): Add prototype.
5640
5641 2010-06-21 Joseph Myers <joseph@codesourcery.com>
5642
5643 * c.opt (lang-objc): Remove.
5644 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
5645
5646 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
5647
5648 * c-opts.c: Include "tm_p.h".
5649
5650 2010-06-20 Joseph Myers <joseph@codesourcery.com>
5651
5652 * c-common.c (parse_optimize_options): Update call to
5653 decode_options.
5654
5655 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5656
5657 * c-common.c (record_types_used_by_current_var_decl): Adjust for
5658 new type of types_used_by_cur_var_decl.
5659
5660 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
5661
5662 PR bootstrap/44512
5663 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
5664 for C++ standard compliance.
5665
5666 2010-06-16 Jason Merrill <jason@redhat.com>
5667
5668 * c.opt: Add -Wnoexcept.
5669
5670 2010-06-16 Richard Guenther <rguenther@suse.de>
5671
5672 PR c/44555
5673 * c-common.c (c_common_truthvalue_conversion): Remove
5674 premature and wrong optimization concering ADDR_EXPRs.
5675
5676 2010-06-15 Arnaud Charlet <charlet@adacore.com>
5677
5678 * c-ada-spec.c (dump_sloc): Remove column info.
5679 (is_simple_enum): New function.
5680 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
5681 enum types when relevant.
5682
5683 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5684
5685 * c-common.c (conversion_warning): Warn at expression
5686 location.
5687
5688 2010-06-10 Joseph Myers <joseph@codesourcery.com>
5689
5690 * c-opts.c (c_common_handle_option): Don't handle
5691 OPT_fshow_column.
5692
5693 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5694
5695 * c-pragma.c (push_alignment): Use typed GC allocation.
5696 (handle_pragma_push_options): Likewise.
5697
5698 * c-common.c (parse_optimize_options): Likewise.
5699
5700 * c-common.h (struct sorted_fields_type): Add variable_size GTY
5701 option.
5702
5703 2010-06-07 Joseph Myers <joseph@codesourcery.com>
5704
5705 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
5706 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5707 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5708 flag_signed_bitfields, warn_strict_null_sentinel,
5709 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
5710 flag_gen_declaration, flag_no_gnu_keywords,
5711 flag_implement_inlines, flag_implicit_templates,
5712 flag_implicit_inline_templates, flag_optional_diags,
5713 flag_elide_constructors, flag_default_inline, flag_rtti,
5714 flag_conserve_space, flag_access_control, flag_check_new,
5715 flag_new_for_scope, flag_weak, flag_working_directory,
5716 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
5717 flag_enforce_eh_specs, flag_threadsafe_statics,
5718 flag_pretty_templates): Remove.
5719 * c-common.h (flag_preprocess_only, flag_nil_receivers,
5720 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
5721 flag_replace_objc_classes, flag_undef, flag_no_builtin,
5722 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5723 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5724 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
5725 flag_no_gnu_keywords, flag_implement_inlines,
5726 flag_implicit_templates, flag_implicit_inline_templates,
5727 flag_optional_diags, flag_elide_constructors, flag_default_inline,
5728 flag_rtti, flag_conserve_space, flag_access_control,
5729 flag_check_new, flag_new_for_scope, flag_weak,
5730 flag_working_directory, flag_use_cxa_atexit,
5731 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
5732 flag_threadsafe_statics, flag_pretty_templates,
5733 warn_strict_null_sentinel): Remove.
5734 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
5735 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
5736 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
5737 fimplicit-inline-templates, fimplicit-templates,
5738 flax-vector-conversions, fms-extensions, fnil-receivers,
5739 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
5740 frtti, fshort-double, fshort-enums, fshort-wchar,
5741 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
5742 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
5743 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
5744 gen-decls, undef): Use Var.
5745 (fdefault-inline, foptional-diags): Document as doing nothing.
5746 * c-opts.c (c_common_handle_option): Remove cases for options now
5747 using Var. Mark ignored options as such.
5748
5749 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5750
5751 * c-common.c: Moved to here from parent directory.
5752 * c-common.def: Likewise.
5753 * c-common.h: Likewise.
5754 * c-cppbuiltin.c: Likewise.
5755 * c-dump.c: Likewise.
5756 * c-format.c: Likewise.
5757 * c-format.h : Likewise.
5758 * c-gimplify.c: Likewise.
5759 * c-lex.c: Likewise.
5760 * c-omp.c: Likewise.
5761 * c.opt: Likewise.
5762 * c-opts.c: Likewise.
5763 * c-pch.c: Likewise.
5764 * c-ppoutput.c: Likewise.
5765 * c-pragma.c: Likewise.
5766 * c-pragma.h: Likewise.
5767 * c-pretty-print.c: Likewise.
5768 * c-pretty-print.h: Likewise.
5769 * c-semantics.c: Likewise.
5770 * stub-objc.c: Likewise.
5771
5772 * c-common.c: Include gt-c-family-c-common.h.
5773 * c-pragma.c: Include gt-c-family-c-pragma.h.
5774 \f
5775 Copyright (C) 2010-2015 Free Software Foundation, Inc.
5776
5777 Copying and distribution of this file, with or without modification,
5778 are permitted in any medium without royalty provided the copyright
5779 notice and this notice are preserved.