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