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