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