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