1 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3 * c.opt (Wpsabi): Use LangEnabledBy.
4 * c-opts.c (c_common_handle_option): Do not handle here.
6 2014-09-12 Joseph Myers <joseph@codesourcery.com>
8 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
9 macros for floating-point modes.
11 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
14 * c-cppbuiltin.c (builtin_define_float_constants): Correct
15 __*_DENORM_MIN__ without denormals.
17 2014-09-10 Jakub Jelinek <jakub@redhat.com>
19 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
20 ubsan_instrument_vla, ubsan_instrument_return): Adjust
21 ubsan_create_data callers.
22 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
23 index is constant or BIT_AND_EXPR with constant mask and is
24 small enough for the bound.
25 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
26 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
28 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
30 * c.opt: Add CppReason to various flags.
31 (Wdate-time): Re-sort.
32 * c-common.c: Include c-common.h earlier.
33 (struct reason_option_codes_t): Delete.
34 (c_option_controlling_cpp_error): Prefix global type and struct
37 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
39 * c.opt (Wnormalized): New.
40 (Wnormalized=): Use Enum and Reject Negative.
41 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
43 2014-09-08 Joseph Myers <joseph@codesourcery.com>
45 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
46 digits of floating-point modes if -fbuilding-libgcc.
48 2014-09-05 Joseph Myers <joseph@codesourcery.com>
50 * c-cppbuiltin.c (c_cpp_builtins): Also define
51 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
52 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
53 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
54 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
55 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
56 __LIBGCC_STACK_GROWS_DOWNWARD__,
57 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
58 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
59 __LIBGCC_DWARF_FRAME_REGISTERS__,
60 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
61 __LIBGCC_STACK_POINTER_REGNUM__ and
62 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
63 (builtin_define_with_value): Handle backslash-escaping in string
66 2014-09-05 Richard Biener <rguenther@suse.de>
69 * c-format.c (check_format_arg): Properly handle
70 effectively signed POINTER_PLUS_EXPR offset.
72 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
74 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
75 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
76 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
78 * c-opts.c (c_common_handle_option): Do not handle here.
79 (sanitize_cpp_opts): Likewise.
80 * c-common.c (struct reason_option_codes_t): Handle
81 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
83 2014-09-03 Marek Polacek <polacek@redhat.com>
85 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
87 2014-09-02 Jakub Jelinek <jakub@redhat.com>
88 Balaji V. Iyer <balaji.v.iyer@intel.com>
89 Igor Zamyatin <igor.zamyatin@intel.com>
91 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
92 * c-common.c (c_common_reswords): Added _Cilk_for.
93 * c-common.h (enum rid): Added RID_CILK_FOR.
94 (cilk_for_number_of_iterations): Add declaration.
95 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
97 * c-pragma.c (init_pragma): Register "grainsize" pragma.
98 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
100 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
102 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
103 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
104 Wundef): Use CPP, Var and Init.
105 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
107 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
109 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
110 * c-opts.c (c_common_handle_option): Do not handle here.
112 2014-08-25 Jason Merrill <jason@redhat.com>
114 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
115 -std=c++14 and -std=gnu++14, rather than the reverse.
116 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
117 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
118 * c-common.h (cxx_dialect): Remove cxx1y.
120 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
122 * c-common.h (enum cxx_dialect): Add cxx14.
123 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
124 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
125 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
127 2014-08-22 Jason Merrill <jason@redhat.com>
129 * c.opt (std=gnu++17): Fix alias.
131 2014-08-22 Marek Polacek <polacek@redhat.com>
134 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
135 check for vector types. Drop LHS argument.
136 * c-common.h (warn_logical_not_parentheses): Adjust.
138 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
140 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
141 (Wmultichar): Likewise.
142 (Wdate-time): Use C-family languages instead of Common. Use CPP
144 * c-opts.c (c_common_handle_option): Do not handle the above
146 (sanitize_cpp_opts): Likewise.
148 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
151 * c-opts.c: Include tree-diagnostics.h.
152 (c_diagnostic_finalizer): New.
153 (c_common_initialize_diagnostics): Use it.
155 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
157 PR preprocessor/51303
158 * c-common.c (struct reason_option_codes_t option_codes):
159 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
161 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
165 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
166 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
167 (c_common_post_options): Call init_global_opts_from_cpp.
168 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
170 2014-08-19 Marek Polacek <polacek@redhat.com>
173 * c-common.c (maybe_warn_bool_compare): New function.
174 * c-common.h (maybe_warn_bool_compare): Declare.
175 * c.opt (Wbool-compare): New option.
177 2014-08-19 Marek Polacek <polacek@redhat.com>
179 * c.opt (Wc99-c11-compat): New option.
181 2014-08-19 Marek Polacek <polacek@redhat.com>
183 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
184 to warn_c90_c99_compat.
185 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
188 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
189 Steven Bosscher <steven@gcc.gnu.org>
192 * c-format.c: Add extra_arg_loc and format_string_loc to struct
193 format_check_results.
194 (check_function_format): Use true and add comment for boolean
196 (finish_dollar_format_checking): Use explicit location when warning.
197 (check_format_info): Likewise.
198 (check_format_arg): Set extra_arg_loc and format_string_loc.
199 (check_format_info_main): Use explicit location when warning.
200 (check_format_types): Pass explicit location.
201 (format_type_warning): Likewise.
203 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
206 * c-format.c: Handle Fortran flags.
208 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
211 * array-notation-common.c (find_rank): Added handling for other
214 2014-08-10 Marek Polacek <polacek@redhat.com>
217 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
218 * c.opt (Wc90-c99-compat): Add option.
220 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
222 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
224 2014-08-03 Marek Polacek <polacek@redhat.com>
226 * c-common.c (check_case_value): Add location_t parameter. Use it.
227 (c_add_case_label): Pass loc to check_case_value.
229 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
231 * cilk.c: Use hash_map instead of pointer_map.
233 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
235 * c-gimplify.c: Use hash_set instead of pointer_set.
237 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
240 * array-notation-common.c (extract_array_notation_exprs): Handling
243 2014-08-01 Jakub Jelinek <jakub@redhat.com>
245 * c-common.h (min_align_of_type): Removed prototype.
246 * c-common.c (min_align_of_type): Removed.
247 * c-ubsan.h (ubsan_maybe_instrument_reference,
248 ubsan_maybe_instrument_member_call): New prototypes.
249 * c-ubsan.c: Include stor-layout.h and builtins.h.
250 (ubsan_maybe_instrument_reference_or_call,
251 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
254 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
257 * c.opt (-Wreturn-local-addr): Move to common.opt.
259 2014-07-30 Jason Merrill <jason@redhat.com>
264 * c.opt (-fuse-all-virtuals): New.
266 2014-07-30 Tom Tromey <tromey@redhat.com>
269 * c.opt (Wdesignated-init): New option.
270 * c-common.c (c_common_attribute_table): Add "designated_init".
271 (handle_designated_init): New function.
273 2014-07-24 Marek Polacek <polacek@redhat.com>
276 * c-opts.c (c_finish_options): If -imacros is in effect, return.
278 2014-07-16 Dodji Seketeli <dodji@redhat.com>
280 PR preprocessor/60723 - missing system-ness marks for macro tokens
281 * c-ppoutput.c (struct print::prev_was_system_token): New data
283 (init_pp_output): Initialize it.
284 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
285 (do_line_change): Return a flag saying if a line marker was
287 (scan_translation_unit): Detect if the system-ness of the token we
288 are about to emit is different from the one of the previously
289 emitted token. If so, emit a line marker. Avoid emitting useless
290 adjacent line markers. Avoid emitting line markers for tokens
291 originating from the expansion of built-in macros.
292 (scan_translation_unit_directives_only): Adjust.
294 2014-07-15 Marek Polacek <polacek@redhat.com>
296 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
297 TYPE_MAX_VALUE is NULL.
299 2014-07-14 Jakub Jelinek <jakub@redhat.com>
302 * c.opt (Wmemset-transposed-args): New warning.
304 2014-07-10 Jason Merrill <jason@redhat.com>
308 * c.opt (-fuse-all-virtuals): New.
310 2014-07-09 Richard Biener <rguenther@suse.de>
313 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
314 using unsigned arithmetic if overflow does not wrap instead of
315 if overflow is undefined.
317 2014-07-06 Marek Polacek <polacek@redhat.com>
320 * c.opt (Wsizeof-array-argument): New option.
322 2014-07-03 Jakub Jelinek <jakub@redhat.com>
324 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
325 comments->count <= 1, as comments->entries might be NULL.
327 2014-07-01 Marek Polacek <polacek@redhat.com>
329 * c.opt (Wint-conversion): New option.
331 2014-07-01 Marek Polacek <polacek@redhat.com>
334 * c.opt (Wincompatible-pointer-types): New option.
336 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
339 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
340 Do not discard TYPE_QUALS of type.
342 2014-06-26 Jason Merrill <jason@redhat.com>
344 * c-common.h (enum cxx_dialect): Add cxx1z.
345 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
346 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
348 2014-06-26 Teresa Johnson <tejohnson@google.com>
350 * c-common.h (get_dump_info): Declare.
351 * c-gimplify.c (c_genericize): Use saved dump files.
352 * c-opts.c (c_common_parse_file): Begin and end dumps
353 once around parsing invocation.
354 (get_dump_info): New function.
356 2014-06-23 Marek Polacek <polacek@redhat.com>
357 Andrew MacLeod <amacleod@redhat.com>
360 * c-common.c (get_atomic_generic_size): Don't segfault if the
361 type doesn't have a size.
363 2014-06-20 Marek Polacek <polacek@redhat.com>
365 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
366 (ubsan_walk_array_refs_r): New function.
367 (c_genericize): Instrument array bounds.
368 * c-ubsan.c: Include "internal-fn.h".
369 (ubsan_instrument_division): Mark instrumented arrays as having
370 side effects. Adjust ubsan_type_descriptor call.
371 (ubsan_instrument_shift): Likewise.
372 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
373 (ubsan_instrument_bounds): New function.
374 (ubsan_array_ref_instrumented_p): New function.
375 (ubsan_maybe_instrument_array_ref): New function.
376 * c-ubsan.h (ubsan_instrument_bounds): Declare.
377 (ubsan_array_ref_instrumented_p): Declare.
378 (ubsan_maybe_instrument_array_ref): Declare.
380 2014-06-20 Hale Wang <hale.wang@arm.com>
383 * c.opt (fshort-enums): Add to LTO.
384 * c.opt (fshort-wchar): Likewise.
386 2014-06-16 Marek Polacek <polacek@redhat.com>
389 * c.opt (Wswitch-bool): Add Var.
391 2014-06-12 Jakub Jelinek <jakub@redhat.com>
394 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
395 #pragma omp target teams or
396 #pragma omp {,target }teams distribute simd.
398 2014-06-12 Jason Merrill <jason@redhat.com>
400 * c.opt (Wabi=, fabi-compat-version): New.
401 * c-opts.c (c_common_handle_option): Handle -Wabi=.
402 (c_common_post_options): Handle flag_abi_compat_version default.
403 Disallow -fabi-compat-version=1.
404 * c-common.h (abi_version_crosses): New.
406 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
408 * c-family/c-common.c (handle_section_attribute): Update handling for
409 section names that are no longer trees.
411 2014-06-10 Jakub Jelinek <jakub@redhat.com>
414 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
415 (omp_pragmas): ... back here.
417 2014-06-05 Marek Polacek <polacek@redhat.com>
420 * c-common.c (warn_logical_not_parentheses): New function.
421 * c-common.h (warn_logical_not_parentheses): Declare.
422 * c.opt (Wlogical-not-parentheses): New option.
424 2014-06-04 Marek Polacek <polacek@redhat.com>
427 * c-common.c (check_case_bounds): Add location parameter.
429 (c_add_case_label): Pass loc to check_case_bounds.
431 2014-06-03 Marek Polacek <polacek@redhat.com>
434 * c.opt (Wswitch-bool): New option.
436 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
438 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
440 (record_types_used_by_current_var_decl): Move prototype to where
443 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
444 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
445 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
447 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
449 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
450 * c-common.c (c_common_nodes_and_builtins): Don't initialize
452 * c-pretty-print.c (pp_c_void_constant): New function.
453 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
454 (c_pretty_printer::expression): Handle VOID_CST.
455 * cilk.c (extract_free_variables): Likewise.
456 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
457 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
459 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
461 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
462 * c-pragma.c (push_alignment): Adjust.
463 (handle_pragma_push_options): Likewise.
465 2014-05-09 Marek Polacek <polacek@redhat.com>
468 * c-common.c (check_user_alignment): Return -1 if alignment is error
470 (handle_aligned_attribute): Don't call default_conversion on
472 (handle_vector_size_attribute): Likewise.
473 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
474 (handle_sentinel_attribute): Call default_conversion and allow even
475 integral types as an argument.
477 2014-05-08 Marek Polacek <polacek@redhat.com>
480 * c-common.c (min_align_of_type): New function factored out from...
481 (c_sizeof_or_alignof_type): ...here.
482 * c-common.h (min_align_of_type): Declare.
484 2014-05-08 Marek Polacek <polacek@redhat.com>
487 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
488 parameter type of main.
490 2014-05-07 DJ Delorie <dj@redhat.com>
492 * c-cppbuiltin.c (print_bits_of_hex): New.
493 (builtin_define_type_minmax): Print values using hex so as not to
494 require a pre-computed list of string values.
496 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
497 Mike Stump <mikestump@comcast.net>
498 Richard Sandiford <rdsandiford@googlemail.com>
500 * c-ada-spec.c: Include wide-int.h.
501 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
502 (dump_generic_ada_node): Use wide-int interfaces.
503 * c-common.c: Include wide-int-print.h.
504 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
505 (pointer_int_sum): Use wide-int interfaces.
506 (c_common_nodes_and_builtins): Use make_int_cst.
507 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
508 (handle_alloc_size_attribute): Use wide-int interfaces.
509 (get_nonnull_operand): Likewise.
510 * c-format.c (get_constant): Use tree_fits_uhwi_p.
511 * c-lex.c: Include wide-int.h.
512 (narrowest_unsigned_type): Take a widest_int rather than two
514 (narrowest_signed_type): Likewise.
515 (interpret_integer): Update accordingly. Use wide-int interfaces.
516 (lex_charconst): Use wide-int interfaces.
517 * c-pretty-print.c: Include wide-int.h.
518 (pp_c_integer_constant): Use wide-int interfaces.
519 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
522 2014-05-06 Richard Biener <rguenther@suse.de>
524 * c-opts.c (c_common_post_options): For -freestanding,
525 -fno-hosted and -fno-builtin disable pattern recognition
526 if not enabled explicitely.
528 2014-05-02 Marek Polacek <polacek@redhat.com>
530 * c.opt (Wsizeof-pointer-memaccess): Describe option.
532 2014-05-01 Marek Polacek <polacek@redhat.com>
535 * c.opt (Wdiscarded-qualifiers): Add.
537 2014-04-30 Marek Polacek <polacek@redhat.com>
539 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
540 INT_MIN / -1 sanitization only for integer types.
542 2014-04-25 Marek Polacek <polacek@redhat.com>
545 * c-common.c (handle_noinline_attribute): Warn if the attribute
546 conflicts with always_inline attribute.
547 (handle_always_inline_attribute): Warn if the attribute conflicts
548 with noinline attribute.
550 2014-04-25 Marek Polacek <polacek@redhat.com>
553 * c-common.c (check_main_parameter_types): Warn about variadic main.
555 2014-04-24 Mike Stump <mikestump@comcast.net>
557 * c.opt (Wshadow-ivar): Default to on.
559 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
561 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
563 2014-04-23 Marek Polacek <polacek@redhat.com>
565 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
567 2014-04-22 Jakub Jelinek <jakub@redhat.com>
570 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
571 if flag_sanitize_undefined_trap_on_error.
572 (ubsan_instrument_division, ubsan_instrument_shift,
573 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
574 if !flag_sanitize_recover.
576 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
579 * c-common.c (registered_builtin_types): Make non-static.
580 * c-common.h (registered_builtin_types): Declare.
582 2014-04-14 Richard Biener <rguenther@suse.de>
583 Marc Glisse <marc.glisse@inria.fr>
586 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
587 apply may-alias the scalar pointer type when applicable.
589 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
592 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
593 as possible argument for Cilk_spawn.
595 2014-04-11 Tobias Burnus <burnus@net-b.de>
598 * c.opt (Wformat-signedness): Add
599 * c-format.c(check_format_types): Use it.
601 2014-04-11 Jason Merrill <jason@redhat.com>
604 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
605 default_conversion for an array argument.
607 2014-04-08 Marek Polacek <polacek@redhat.com>
610 * c-ubsan.c: Include asan.h.
611 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
613 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
615 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
617 2014-04-02 Marek Polacek <polacek@redhat.com>
619 * c-common.h (c_expand_expr): Remove declaration.
621 2014-03-28 Jakub Jelinek <jakub@redhat.com>
624 * c-common.c (add_atomic_size_parameter): When creating new
625 params vector, push the size argument first.
627 2014-03-26 Jakub Jelinek <jakub@redhat.com>
629 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
630 ubsan_instrument_vla, ubsan_instrument_return): Adjust
631 ubsan_create_data callers.
633 2014-03-22 Jakub Jelinek <jakub@redhat.com>
636 * c-opts.c (c_finish_options): Restore cb_file_change call to
639 2014-03-13 Jakub Jelinek <jakub@redhat.com>
642 * c-pragma.c (apply_pragma_weak): Only look at
643 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
644 DECL_ASSEMBLER_NAME_SET_P (decl).
645 (maybe_apply_pending_pragma_weaks): Exit early if
646 vec_safe_is_empty (pending_weaks) rather than only when
648 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
649 set assembler name back to NULL afterwards.
651 2014-03-11 Jason Merrill <jason@redhat.com>
653 * c.opt: Add -std=gnu++14.
655 2014-03-11 Ian Bolton <ian.bolton@arm.com>
657 * c-opts.c (c_common_post_options): Don't override
658 -ffp-contract=fast if unsafe-math-optimizations is on.
660 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
662 * c.opt: Enable LTO FE for fshort-double.
664 2014-03-07 Jason Merrill <jason@redhat.com>
666 * c.opt: Add -std=c++14.
668 2014-03-06 Marek Polacek <polacek@redhat.com>
671 * cilk.c (contains_cilk_spawn_stmt): New function.
672 (contains_cilk_spawn_stmt_walker): Likewise.
673 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
674 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
676 2014-03-03 Jakub Jelinek <jakub@redhat.com>
678 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
679 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
680 even when flag_preprocess_only.
682 2014-02-26 Jason Merrill <jason@redhat.com>
686 * c-common.c (shorten_compare): Don't check
687 c_inhibit_evaluation_warnings.
689 2014-02-19 Jakub Jelinek <jakub@redhat.com>
692 * c-common.c (c_common_nodes_and_builtins): When initializing
693 c_uint{16,32,64}_type_node, also set corresponding
694 uint{16,32,64}_type_node to the same value.
697 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
698 for PRAGMA_IVDEP if flag_preprocess_only.
700 2014-02-12 Jakub Jelinek <jakub@redhat.com>
703 * c-common.c (merge_tlist): If copy is true, call new_tlist,
704 if false, add ADD itself, rather than vice versa.
705 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
706 copy. For SAVE_EXPR, only call merge_tlist once.
708 2014-02-08 Jakub Jelinek <jakub@redhat.com>
711 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
713 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
715 (c_common_attribute_table): Add alloc_align and assume_aligned
718 2014-02-06 Marek Polacek <polacek@redhat.com>
721 * c-common.c (warn_for_sign_compare): Call warning_at with location
724 2014-02-05 Marek Polacek <polacek@redhat.com>
727 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
730 2014-02-04 Marek Polacek <polacek@redhat.com>
733 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
736 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
740 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
741 handle_vector_size_attribute, handle_nonnull_attribute): Call
742 default_conversion on the attribute argument.
743 (handle_nonnull_attribute): Increment the argument number.
745 2014-01-31 Marek Polacek <polacek@redhat.com>
748 * c-common.c (add_atomic_size_parameter): Pass vNULL to
749 build_function_call_vec.
750 (resolve_overloaded_builtin): Likewise.
751 * c-common.h (build_function_call_vec): Adjust declaration.
753 2014-01-30 Marek Polacek <polacek@redhat.com>
756 * c-common.h (unsafe_conversion_p): Adjust declaration.
757 (warnings_for_convert_and_check): Likewise.
758 (convert_and_check): Likewise.
759 * c-common.c (unsafe_conversion_p): Add location parameter. Call
760 expansion_point_location_if_in_system_header on it.
761 (warnings_for_convert_and_check): Add location parameter. Call
762 expansion_point_location_if_in_system_header on it. Use it.
763 (convert_and_check): Add location parameter. Use it.
764 (conversion_warning): Likewise.
765 (c_add_case_label): Adjust convert_and_check calls.
766 (scalar_to_vector): Adjust unsafe_conversion_p calls.
768 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
770 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
772 * c-pragma.c (init_pragma): Likewise.
775 2014-01-23 Marek Polacek <polacek@redhat.com>
778 * c-common.c (shorten_compare): Add location_t parameter.
779 * c-common.h (shorten_binary_op): Adjust declaration.
781 2014-01-23 Marek Polacek <polacek@redhat.com>
784 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
785 * c-common.h: Declare it.
787 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
789 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
790 * c-ada-spec.c (dump_ads): Likewise.
791 (cpp_check): Likewise.
792 (dump_ada_specs): Likewise.
794 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
797 * c-common.c (handle_no_instrument_function_attribute): Allow
798 no_instrument_function attribute in class member
799 definition/declaration.
801 2014-01-15 Jakub Jelinek <jakub@redhat.com>
804 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
805 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
807 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
808 operand a SAVE_EXPR and second MODIFY_EXPR.
810 2014-01-09 Jakub Jelinek <jakub@redhat.com>
813 * c-pch.c (c_common_write_pch): Call
814 prepare_target_option_nodes_for_pch.
816 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
818 Update copyright years
820 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
822 * array-notation-common.c, c-cilkplus.c: Use the standard form for
823 the copyright notice.
825 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
827 * c-ada-spec.c (print_constructor): New function.
828 (print_destructor): Retrieve the origin of the destructor.
829 (print_ada_declaration): Revamp handling of constructors/destructors.
831 2013-12-23 Stuart Hastings <stuart@apple.com>
832 Bill Maddox <maddox@google.com>
833 Jason Merrill <jason@redhat.com>
835 * c.opt: Add -fdeclone-ctor-dtor.
836 * c-opts.c (c_common_post_options): Default to on iff -Os.
838 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
840 * c-common.c (c_common_attribute_table): Added "cilk simd function"
842 * c-pragma.h (enum pragma_cilk_clause): Remove.
843 (enum pragma_omp_clause): Added the following fields:
844 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
845 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
846 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
847 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
848 PRAGMA_CILK_CLAUSE_UNIFORM.
851 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
853 * cilk.c (cilk_outline): Made this function non-static.
854 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
855 (create_cilk_wrapper): Added a new parameter: a function pointer.
856 (c_install_body_w_frame_cleanup): Remove
857 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
858 * c-common.h (cilk_outline): New prototype.
859 (gimplify_cilk_spawn): Removed two parameters.
860 (cilk_install_body_with_frame_cleanup): New prototype.
861 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
862 CILK_SPAWN_STMT case.
864 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
866 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
868 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
869 (int_array_type_node): Remove.
870 * c-common.c (c_common_nodes_and_builtins): Don't build it.
872 2013-12-05 Marek Polacek <polacek@redhat.com>
875 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
876 [ADJUST_FIELD_ALIGN].
878 2013-12-04 Joseph Myers <joseph@codesourcery.com>
881 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
882 and check field alignment if set.
883 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
884 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
886 2013-12-04 Jakub Jelinek <jakub@redhat.com>
887 Marek Polacek <polacek@redhat.com>
889 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
890 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
892 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
895 * cilk.c (gimplify_cilk_spawn): Properly handle function without
898 2013-11-29 Jakub Jelinek <jakub@redhat.com>
901 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
902 goto invalid. If it is error_mark_node, don't issue further
905 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
907 * c.opt (Wopenmp-simd): New.
909 2013-11-22 Jakub Jelinek <jakub@redhat.com>
911 * c-ubsan.h (ubsan_instrument_return): New prototype.
912 * c-ubsan.c (ubsan_instrument_return): New function.
914 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
916 * c-common.c: Add required include files from gimple.h.
917 * c-gimplify.c: Likewise
920 2013-11-22 David Malcolm <dmalcolm@redhat.com>
922 * c-common.c (unsafe_conversion_p): Remove use of
923 EXPR_LOC_OR_HERE macro.
924 (conversion_warning): Likewise.
925 (warnings_for_convert_and_check): Likewise.
926 (warn_for_collisions_1): Likewise.
927 (shorten_compare): Likewise, and remove use of in_system_header
928 macro, using the location from the former.
929 * c-lex.c (dump_one_header): Remove use of input_filename macro.
930 (cb_def_pragma): Remove use of in_system_header macro.
931 (lex_string): Likewise.
932 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
934 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
935 Mike Stump <mikestump@comcast.net>
936 Richard Sandiford <rdsandiford@googlemail.com>
938 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
939 instead of TREE_INT_CST_LOW, in cases where there is a protecting
940 tree_fits_shwi_p or tree_fits_uhwi_p.
941 (dump_generic_ada_node): Likewise.
942 * c-format.c (check_format_arg): Likewise.
943 * c-pretty-print.c (pp_c_integer_constant): Likewise.
945 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
947 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
949 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
952 * c-common.c (unsafe_conversion_p): Make this function
953 return an enumeration with more detail.
954 (conversion_warning): Use the new return type of
955 unsafe_conversion_p to separately warn either about conversions
956 that lower floating point number precision or about the other
957 kinds of conversions.
958 * c-common.h (enum conversion_safety): New enumeration.
959 (unsafe_conversion_p): switching return type to
960 conversion_safety enumeration.
961 * c.opt: Adding new warning -Wfloat-conversion and
962 enabling it with -Wconversion.
964 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
966 * c-opts.c: Include plugin.h.
967 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
969 2013-11-19 Marek Polacek <polacek@redhat.com>
971 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
973 (ubsan_instrument_shift): Likewise.
974 (ubsan_instrument_vla): Likewise.
976 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
978 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
979 cast to unsigned type.
981 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
983 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
985 (complete_array_type): Update comment to refer to tree_to_[su]hwi
986 rather than tree_low_cst.
988 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
990 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
991 tree_to_uhwi throughout.
993 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
995 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
996 tree_low_cst (..., 0) with tree_to_shwi throughout.
998 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1000 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1001 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1003 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1005 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1006 host_integerp (..., 0) with tree_fits_shwi_p throughout.
1008 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
1010 * c-cilkplus.c: New file.
1011 * c-common.c (readonly_error): Add location argument.
1012 * c-common.h (readonly_error): Same.
1013 (c_finish_cilk_clauses): Protoize.
1014 (c_check_cilk_loop): Same.
1015 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1016 Do not fail on error_mark_node.
1017 Abstract increment canonicalization to here...
1018 (c_omp_for_incr_canonicalize_ptr): New.
1019 c-pragma.c (init_pragma): Register "simd" pragma.
1020 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1021 (enum pragma_cilk_clause): New.
1023 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
1025 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1026 wchar_type and host_integerp checks.
1028 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
1030 * c-common.c: Likewise.
1031 * c-gimplify.c: Likewise.
1034 2013-11-14 Diego Novillo <dnovillo@google.com>
1036 * c-common.c: Include fold-const.h.
1037 Include stor-layout.h.
1039 Include stringpool.h.
1042 Include trans-mem.h.
1043 * c-cppbuiltin.c: Include stor-layout.h.
1044 Include stringpool.h.
1045 * c-format.c: Include stringpool.h.
1046 * c-lex.c: Include stringpool.h.
1047 Include stor-layout.h.
1048 * c-pragma.c: Include stringpool.h.
1051 Include gcc-symtab.h.
1052 * c-pretty-print.c: Include stor-layout.h.
1054 * cilk.c: Include stringpool.h.
1057 2013-11-13 Joseph Myers <joseph@codesourcery.com>
1059 * c-common.h (enum rid): Add RID_AUTO_TYPE.
1060 * c-common.c (c_common_reswords): Add __auto_type.
1061 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1063 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
1065 * c-common.c: Include gimplify.h.
1066 * c-gimplify.c: Likewise.
1068 * c-omp.c: Include gimple-expr.h instead of gimple.h.
1069 * c-ubsan.c: Don't include gimple.h.
1071 2013-11-12 Joseph Myers <joseph@codesourcery.com>
1073 * c-common.c (c_common_reswords): Add _Thread_local.
1075 2013-11-09 Joseph Myers <joseph@codesourcery.com>
1077 * c-common.c (atomic_size_supported_p): New function.
1078 (resolve_overloaded_atomic_exchange)
1079 (resolve_overloaded_atomic_compare_exchange)
1080 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1081 Use it instead of comparing size with a local list of sizes.
1083 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
1084 Joseph Myers <joseph@codesourcery.com>
1086 * c-common.h (enum rid): Add RID_ATOMIC.
1087 * c-common.c (c_common_reswords): Add _Atomic.
1088 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1089 (keyword_is_type_qualifier): Accept RID_ATOMIC.
1090 * c-format.c (check_format_types): Check for extra _Atomic
1091 qualifiers in format argument.
1092 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1093 (pp_c_type_qualifier_list): Mention _Atomic in comment.
1095 2013-11-06 Tobias Burnus <burnus@net-b.de>
1097 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1099 2013-11-06 Joseph Myers <joseph@codesourcery.com>
1101 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1103 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1104 to mean lack of IEEE 754 support.
1106 2013-11-05 Tobias Burnus <burnus@net-b.de>
1108 * c.opt (-Wdate-time): New option
1109 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1111 2013-11-05 Joseph Myers <joseph@codesourcery.com>
1113 * c-cppbuiltin.c (cpp_iec_559_value): Test
1114 flag_excess_precision_cmdline not flag_excess_precision.
1116 2013-11-05 Tobias Burnus <burnus@net-b.de>
1118 * c.opt (fopenmp-simd): New option.
1119 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1120 (omp_pragmas): ... this new struct.
1121 (c_pp_lookup_pragma): Also walk omp_pragmas.
1122 (init_pragma): Init pragmas for -fopenmp-simd.
1124 2013-11-04 Marek Polacek <polacek@redhat.com>
1127 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1129 2013-11-04 Joseph Myers <joseph@codesourcery.com>
1131 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1133 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1135 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
1137 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1138 (dump_ada_specs): Adjust prototype of second callback.
1139 * c-ada-spec.c (cpp_check): New global variable.
1140 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1141 (print_generic_ada_decl): Likewise.
1142 (has_static_fields): Change return type to bool and add guard.
1143 (has_nontrivial_methods): New predicate.
1144 (is_tagged_type): Change return type to bool.
1145 (separate_class_package): Call has_nontrivial_methods.
1146 (pp_ada_tree_identifier): Minor tweaks.
1147 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1148 (dump_ada_array_domains): Likewise.
1149 (dump_ada_array_type): Likewise.
1150 (dump_template_types): Remove cpp_check parameter and do not pass it to
1151 dump_generic_ada_node.
1152 (dump_ada_template): Likewise.
1153 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1155 (print_ada_methods): Change return type to integer. Remove cpp_check
1156 parameter and do not pass it down.
1157 (dump_nested_types): Remove cpp_check parameter and do not pass it to
1158 dump_generic_ada_node.
1159 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
1161 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1162 down. Use has_nontrivial_methods to recognize C++ classes. Use return
1163 value of print_ada_methods.
1164 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1165 Set cpp_check to it before invoking dump_ada_nodes.
1166 (dump_ada_specs): Likewise.
1168 2013-11-03 Marek Polacek <polacek@redhat.com>
1170 * c-ubsan.c: Don't include hash-table.h.
1171 (ubsan_instrument_vla): New function.
1172 * c-ubsan.h: Declare it.
1174 2013-10-31 David Malcolm <dmalcolm@redhat.com>
1176 Automated part of renaming of symtab_node_base to symtab_node.
1178 Patch autogenerated by rename_symtab.py from
1179 https://github.com/davidmalcolm/gcc-refactoring-scripts
1180 revision 58bb219cc090b2f4516a9297d868c245495ee622
1182 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1183 symtab_node_base to symtab_node.
1185 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
1187 Implement C++14 digit separators.
1188 * c-lex.c (interpret_float): Remove digit separators from scratch string
1189 before building real literal.
1191 2013-10-30 Jakub Jelinek <jakub@redhat.com>
1193 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1195 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1197 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1199 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1201 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1202 (insert_cilk_frame): New prototype.
1203 (cilk_init_builtins): Likewise.
1204 (gimplify_cilk_spawn): Likewise.
1205 (c_cilk_install_body_w_frame_cleanup): Likewise.
1206 (cilk_detect_spawn_and_unwrap): Likewise.
1207 (cilk_set_spawn_marker): Likewise.
1208 (build_cilk_sync): Likewise.
1209 (build_cilk_spawn): Likewise.
1212 2013-10-29 David Malcolm <dmalcolm@redhat.com>
1214 Patch autogenerated by refactor_symtab.py from
1215 https://github.com/davidmalcolm/gcc-refactoring-scripts
1216 revision 58bb219cc090b2f4516a9297d868c245495ee622
1218 * c-gimplify.c (c_genericize): Update for conversion of symtab types
1219 to a true class hierarchy.
1220 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1222 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
1224 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1226 2013-10-26 Jeff Law <law@redhat.com>
1228 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
1229 * c-family/c.opt: Ignore and warn for mudflap options.
1231 2013-10-24 Tobias Burnus <burnus@net-b.de>
1234 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1235 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1237 2013-10-23 Jason Merrill <jason@redhat.com>
1239 * c-format.c (gcc_cxxdiag_char_table): Add %X.
1241 2013-10-11 Jakub Jelinek <jakub@redhat.com>
1243 * c-common.h (omp_clause_mask::operator !=): New method.
1244 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1245 instead of if (mask & something) tests everywhere.
1247 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1248 201307 instead of 201107.
1249 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1250 (c_common_attribute_table): Add "omp declare target" and
1251 "omp declare simd" attributes.
1252 (handle_omp_declare_target_attribute,
1253 handle_omp_declare_simd_attribute): New functions.
1254 * c-omp.c: Include c-pragma.h.
1255 (c_finish_omp_taskgroup): New function.
1256 (c_finish_omp_atomic): Add swapped argument, if true,
1257 build the operation first with rhs, lhs arguments and use NOP_EXPR
1259 (c_finish_omp_for): Add code argument, pass it down to make_code.
1260 (c_omp_split_clauses): New function.
1261 (c_split_parallel_clauses): Removed.
1262 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1263 c_omp_declare_simd_clauses_to_decls): New functions.
1264 * c-common.h (omp_clause_mask): New type.
1265 (OMP_CLAUSE_MASK_1): Define.
1266 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1267 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1268 omp_clause_mask::operator |, omp_clause_mask::operator &,
1269 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1270 omp_clause_mask::operator ==): New methods.
1271 (enum c_omp_clause_split): New.
1272 (c_finish_omp_taskgroup): New prototype.
1273 (c_finish_omp_atomic): Add swapped argument.
1274 (c_finish_omp_for): Add code argument.
1275 (c_omp_split_clauses): New prototype.
1276 (c_split_parallel_clauses): Removed.
1277 (c_omp_declare_simd_clauses_to_numbers,
1278 c_omp_declare_simd_clauses_to_decls): New prototypes.
1279 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1280 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1281 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1282 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1283 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1284 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1285 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1286 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1287 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1288 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1289 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1290 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1291 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1292 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1293 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1294 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1295 PRAGMA_OMP_CLAUSE_UNIFORM.
1297 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
1299 PR tree-optimization/20318
1300 * c-common.c (handle_returns_nonnull_attribute): New function.
1301 (c_common_attribute_table): Add returns_nonnull.
1303 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
1306 * c.opt (fcheck-new): Move to common.opt.
1308 2013-09-25 Marek Polacek <polacek@redhat.com>
1309 Jakub Jelinek <jakub@redhat.com>
1312 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1313 an expression if we can prove it is correct.
1314 (ubsan_instrument_division): Likewise. Remove unnecessary
1317 2013-09-18 Marek Polacek <polacek@redhat.com>
1320 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1322 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1324 2013-09-14 Iain Sandoe <iain@codesourcery.com>
1327 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1328 fobjc-gc, freplace-objc-classes): Accept for LTO.
1330 2013-09-13 Jacek Caban <jacek@codeweavers.com>
1332 * c-target.def: New hook
1334 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1337 * c.opt (Wdelete-incomplete): Add.
1339 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1341 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1342 (vector_types_compatible_elements_p): New function.
1343 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1345 (vector_types_compatible_elements_p): Declare.
1347 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1349 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1350 a virtual member function.
1351 (pp_simple_type_specifier): Remove.
1352 (pp_c_type_specifier): Likewise.
1353 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1354 Rename from pp_c_type_specifier. Adjust.
1355 (c_pretty_printer::c_pretty_printer): Do not assign to
1356 simple_type_specifier.
1358 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1360 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1362 (c_pretty_printer::storage_class_specifier): Likewise.
1363 (c_pretty_printer::initializer): Likewise.
1364 (pp_declaration): Remove.
1365 (pp_declaration_specifiers): Likewise.
1366 (pp_abstract_declarator): Likewise.
1367 (pp_declarator): Likewise.
1368 (pp_type_id): Likewise.
1369 (pp_statement): Likewise.
1370 (pp_constant): Likewise.
1371 (pp_id_expression): Likewise.
1372 (pp_primary_expression): Likewise.
1373 (pp_unary_expression): Likewise.
1374 (pp_multiplicative_expression): Likewise.
1375 (pp_conditional_expression): Likewise.
1376 (pp_assignment_expression): Likewise.
1377 (pp_expression): Likewise.
1378 (pp_c_type_id): Likewise.
1379 (pp_c_storage_class_specifier): Likewise.
1380 * c-pretty-print.c (pp_c_type_cast): Tidy.
1381 (pp_c_pointer): Likewise.
1382 (pp_c_type_specifier): Likewise.
1383 (pp_c_parameter_type_list): Likewise.
1384 (pp_c_function_definition): Likewise.
1385 (pp_c_init_declarator): Likewise.
1386 (pp_c_initializer_list): Likewise.
1387 (pp_c_constructor_elts): Likewise.
1388 (c_pretty_printer::direct_abstract_declarator): Likewise.
1389 (c_pretty_printer::declaration_specifiers): Likewise.
1390 (c_pretty_printer::primary_expression): Likewise.
1391 (c_pretty_printer::postfix_expression): Likewise.
1392 (c_pretty_printer::type_id): Rename from pp_c_type_id.
1393 (c_pretty_printer::storage_class_specifier): Rename from
1394 pp_c_storage_class_specifier.
1395 (c_pretty_printer::initializer): Rename from pp_c_initializer.
1396 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1397 storage_class_specifier, initializer, offset_list, flags.
1399 2013-08-30 Marek Polacek <polacek@redhat.com>
1401 * c-ubsan.c: New file.
1402 * c-ubsan.h: New file.
1404 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1406 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1408 (c_pretty_printer::declaration_specifiers): Likewise.
1409 (c_pretty_printer::declarator): Likewise.
1410 (c_pretty_printer::abstract_declarator): Likewise.
1411 (c_pretty_printer::direct_abstract_declarator): Likewise.
1412 (c_pretty_printer::direct_declarator): Likewise.
1413 (c_pretty_printer::function_specifier): Likewise.
1414 (pp_declaration): Adjust.
1415 (pp_declaration_specifiers): Likewise.
1416 (pp_abstract_declarator): Likewise.
1417 (pp_direct_declarator): Likewise.
1418 (pp_function_specifier): Likewise.
1419 (pp_direct_abstract_declarator): Remove as unused.
1420 (pp_c_declaration): Remove.
1421 (pp_c_declaration_specifiers): Likewise.
1422 (pp_c_declarator): Likewise.
1423 (pp_c_direct_declarator): Likewise.
1424 (pp_c_function_specifier): Likewise.
1425 (pp_c_direct_abstract_declarator): Likewise.
1426 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1427 from pp_c_abstract_declarator. Adjust.
1428 (c_pretty_printer::direct_abstract_declarator): Rename from
1429 pp_c_direct_abstract_declarator. Adjust.
1430 (c_pretty_printer::function_specifier): Rename from
1431 pp_c_function_specifier. Adjust.
1432 (c_pretty_printer::declaration_specifiers): Rename from
1433 pp_c_declaration_specifiers. Adjust.
1434 (c_pretty_printer::direct_declarator): Rename from
1435 pp_c_direct_declarator. Adjust.
1436 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
1437 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
1438 (c_pretty_printer::c_pretty_printer): Do not assign to
1439 declaration, declaration_specifiers, declarator,
1440 direct_declarator, direct_abstract_declarator, function_specifier.
1442 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
1444 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1445 virtual member function.
1446 (c_pretty_printer::multiplicative_expression): Likewise.
1447 (c_pretty_printer::conditional_expression): Likewise.
1448 (c_pretty_printer::assignment_expression): Likewise.
1449 (c_pretty_printer::expression): Likewise.
1450 (pp_unary_expression): Adjust.
1451 (pp_multiplicative_expression): Likewise.
1452 (pp_assignment_expression): Likewise.
1453 (pp_conditional_expression): Likewise.
1454 (pp_expression): Likewise.
1455 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1456 from pp_c_unary_expression. Adjust.
1457 (c_pretty_printer::multiplicative_expression): Rename from
1458 pp_c_multiplicative_expression. Adjust.
1459 (c_pretty_printer::conditional_expression): Rename from
1460 pp_c_conditional_expression. Adjust.
1461 (c_pretty_printer::assignment_expression): Rename from
1462 pp_c_assignment_expression. Adjust.
1463 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
1464 (c_pretty_printer::c_pretty_printer): Do not assign to
1465 unary_expression, multiplicative_expression,
1466 conditional_expression, expression.
1468 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1470 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1471 virtual member function.
1472 (pp_postfix_expression): Adjust.
1473 (pp_c_postfix_expression): Remove.
1474 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1475 from pp_c_postfix_expression. Adjust.
1476 (c_pretty_printer::c_pretty_printer): Do not assign to
1479 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1481 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1482 virtua member function.
1483 (pp_primary_expression): Adjust.
1484 (pp_c_primary_expression): Remove.
1485 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1486 from pp_c_primary_expression. Adjust.
1487 (pp_c_initializer_list): Use pp_primary_expression.
1488 (c_pretty_printer::c_pretty_printer): Do not assign to
1491 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1493 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1494 * c-pretty-print.c (M_): Remove.
1495 (c_pretty_printer::translate_string): Define.
1496 (pp_c_type_specifier): Use it.
1497 (pp_c_primary_expression): Likewise.
1498 (pp_c_expression): Likewise.
1500 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1502 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1504 (pp_c_id_expression): Remove.
1505 (pp_id_expression): Adjust.
1506 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1507 pp_c_id_expression. Adjust.
1508 (pp_c_postfix_expression): Use pp_id_expression.
1509 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1511 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1513 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1515 (pp_constant): Adjust.
1516 (pp_c_constant): Remove.
1517 * c-pretty-print.c (c_pretty_printer::constant): Rename from
1518 pp_c_constant. Adjust.
1520 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1521 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1523 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1525 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1526 (c_pretty_printer::c_pretty_printer): Declare.
1527 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1528 c_pretty_printer_init. Adjust.
1529 (print_c_tree): Do not call c_pretty_printer_init.
1530 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1532 2013-08-09 Arnaud Charlet <charlet@adacore.com>
1534 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1536 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
1539 * c-common.c (pointer_int_sum): Add bool parameter.
1540 * c-common.h (pointer_int_sum): Adjust declaration.
1542 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1544 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
1545 c_pretty_printer variable.
1547 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1549 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1551 (pp_c_base): Likewise. Adjust users.
1552 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1553 (pp_c_whitespace): Do not call pp_base.
1554 (pp_c_left_paren): Likewise.
1555 (pp_c_right_paren): Likewise.
1556 (pp_c_left_brace): Likewise.
1557 (pp_c_right_brace): Likewise.
1558 (pp_c_left_bracket): Likewise.
1559 (pp_c_right_bracket): Likewise.
1560 (pp_c_dot): Likewise.
1561 (pp_c_ampersand): Likewise.
1562 (pp_c_star): Likewise.
1563 (pp_c_arrow): Likewise.
1564 (pp_c_semicolon): Likewise.
1565 (pp_c_complement): Likewise.
1566 (pp_c_exclamation): Likewise.
1567 (pp_c_direct_declarator): Likewise.
1568 (pp_c_ws_string): Likewise.
1569 (pp_c_identifier): Likewise.
1570 (pp_c_statement): Likewise.
1571 (print_c_tree): Likewise.
1573 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
1576 * c-common.c (c_parse_error): Catch user-defined literal tokens and
1577 provide useful error strings.
1579 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1581 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1582 printer functions instead of pp_string or operators and punctuators.
1583 (dump_generic_ada_node): Likewise.
1584 * c-pretty-print.c (pp_c_type_specifier): Likewise.
1585 (pp_c_relational_expression): Likewise.
1586 (pp_c_logical_or_expression): Likewise.
1588 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1590 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1591 functions instead of pp_character.
1592 (pp_ada_tree_identifier): Likewise.
1593 (dump_ada_double_name): Likewise.
1594 (dump_ada_function_declaration): Likewise.
1595 (dump_ada_array_domains): Likewise.
1596 (dump_template_types): Likewise.
1597 (dump_generic_ada_node): Likewise.
1598 (print_ada_declaration): Likewise.
1599 (print_ada_struct_decl): Likewise.
1600 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1602 2013-07-23 Tom Tromey <tromey@redhat.com>
1604 * c-common.h (enum rid) <RID_GENERIC>: New constant.
1605 * c-common.c (c_common_reswords): Add _Generic.
1607 2013-07-21 OndÅej BÃlka <neleai@seznam.cz>
1609 * c-common.c: Fix typos.
1610 * c-common.h: Likewise.
1612 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
1615 * c-common.c (c_common_attribute_table): Add warn_unused.
1616 (handle_warn_unused_attribute): New.
1618 2013-07-10 Jakub Jelinek <jakub@redhat.com>
1620 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1621 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1623 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1626 * c.opt: Add Wconditionally-supported.
1628 2013-07-08 Graham Stott <graham.stott@btinternet.com>
1630 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1631 unused variables l_length and l_node.
1633 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
1636 * c-common.c (complete_array_type): Delay folding first index
1637 like other indices. When folding, check for index overflow.
1639 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
1642 * c-common.h (c_build_vec_perm_expr): New complain argument.
1643 * c-common.c (c_build_vec_perm_expr): Likewise.
1644 Use save_expr also in C++.
1646 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1648 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1649 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1650 * c-opts.c (c_common_post_options): Likewise.
1652 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1654 * array-notation-common.c (length_mismatch_in_expr): Changed the
1655 parameter type's from a dynamic array to a vec_tree. Also removed
1656 the size parameters.
1657 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1660 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1662 * c-common.h (struct cilkplus_an_parts): New structure.
1663 (struct cilkplus_an_loop_parts): Likewise.
1664 (cilkplus_extract_an_triplets): New prototype.
1665 (fix_sec_implicit_args): Likewise.
1666 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1667 (fix_sec_implicit_args): Likewise.
1669 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
1671 * array-notation-common.c (find_inv_trees): Removed an unwanted
1673 * c-common.h (struct inv_list::additional_tcodes): Changed type from
1674 enum rid to enum tree_code.
1676 2013-06-11 Jan Hubicka <jh@suse.cz>
1678 * c-common.c (handle_alias_ifunc_attribute): Do not set
1679 DECL_EXTERNAL for weakref variables.
1680 * c-pragma.c (handle_pragma_weak): Make sure aliases
1681 are not declared as external.
1683 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1685 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1686 function from c/c-array-notation.c.
1687 (is_cilkplus_reduce_builtin): Likewise.
1688 (find_rank): Likewise.
1689 (extract_array_notation_exprs): Likewise.
1690 (replace_array_notations): Likewise.
1691 (find_inv_trees): Likewise.
1692 (replace_inv_trees): Likewise.
1693 (contains_array_notation_expr): Likewise.
1694 (find_correct_array_notation_type): Likewise.
1695 * c-common.h (struct inv_list): Moved this struct from the file
1696 c/c-array-notation.c and added a new field called additional tcodes.
1697 (length_mismatch_in_expr_p): New prototype.
1698 (is_cilkplus_reduce_builtin): Likewise.
1699 (find_rank): Likewise.
1700 (extract_array_notation_exprs): Likewise.
1701 (replace_array_notation): Likewise.
1702 (find_inv_trees): Likewise.
1703 (replace_inv_trees): Likewise.
1704 (find_correct_array_notation_type): Likewise.
1706 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1708 * c-common.c (c_define_builtins): When cilkplus is enabled, the
1709 function array_notation_init_builtins is called.
1710 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1711 * c-common.def (ARRAY_NOTATION_REF): New tree.
1712 * c-common.h (build_array_notation_expr): New function declaration.
1713 (build_array_notation_ref): Likewise.
1714 (extract_sec_implicit_index_arg): New extern declaration.
1715 (is_sec_implicit_index_fn): Likewise.
1716 (ARRAY_NOTATION_CHECK): New define.
1717 (ARRAY_NOTATION_ARRAY): Likewise.
1718 (ARRAY_NOTATION_START): Likewise.
1719 (ARRAY_NOTATION_LENGTH): Likewise.
1720 (ARRAY_NOTATION_STRIDE): Likewise.
1721 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1723 (pp_c_expression): Likewise.
1724 * c.opt (flag_enable_cilkplus): New flag.
1725 * array-notation-common.c: New file.
1727 2013-05-14 Jakub Jelinek <jakub@redhat.com>
1730 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1732 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
1734 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1737 2013-05-07 Han Shen <shenhan@google.com>
1739 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1741 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1743 * c-common.c (check_user_alignment): Emit error for negative values.
1745 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1747 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1749 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1751 * c-cppbuiltin.c (c_cpp_builtins): Do not define
1752 __GXX_EXPERIMENTAL_CXX1Y__.
1754 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1755 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1757 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1758 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1759 to simply use OPT_Wpointer_arith.
1760 (c_sizeof_or_alignof_type): Likewise.
1762 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1764 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1766 2013-04-12 Jakub Jelinek <jakub@redhat.com>
1768 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1769 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1772 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
1774 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1776 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
1778 * c-common.c (pointer_int_sum): Remove dead code.
1780 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1783 * c-common.c (handle_optimize_attribute): Don't call
1784 save_optabs_if_changed.
1786 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1789 * c-pch.c (pch_init): Free target_validity at the end.
1791 2013-03-04 Jakub Jelinek <jakub@redhat.com>
1793 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1795 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1796 Jakub Jelinek <jakub@redhat.com>
1799 * c-common.c (handle_no_sanitize_address_attribute): New function.
1800 (c_common_attribute_table): Add no_sanitize_address attribute.
1801 (handle_no_address_safety_analysis_attribute): Add
1802 no_sanitize_address attribute, not no_address_safety_analysis
1805 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
1808 * c-common.c (handle_optimize_attribute): Call
1809 save_optabs_if_changed.
1811 2013-02-18 Jakub Jelinek <jakub@redhat.com>
1812 Steven Bosscher <steven@gcc.gnu.org>
1815 * c-opts.c (c_common_post_options): If debug info is enabled
1816 and non-dwarf*, refuse to load PCH files and when writing PCH
1819 2013-02-05 Jakub Jelinek <jakub@redhat.com>
1822 * c-common.c (handle_error_attribute): Fix condition.
1824 2013-01-30 Jakub Jelinek <jakub@redhat.com>
1827 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1829 2013-01-18 Jason Merrill <jason@redhat.com>
1832 * c.opt (-fextern-tls-init): New.
1833 * c-opts.c (c_common_post_options): Handle it.
1835 2013-01-09 Jakub Jelinek <jakub@redhat.com>
1838 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1839 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1840 and is either negative or bigger or equal to type precision
1841 of the first operand.
1843 2012-12-03 Marek Polacek <polacek@redhat.com>
1846 * c-common.c (check_user_alignment): Swap order of tests,
1847 check TREE_CODE first.
1849 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1852 * c-common.h (overflow_type): New enum.
1853 (build_userdef_literal): Add overflow_type argument.
1854 (tree_userdef_literal): Add overflow_type.
1855 (USERDEF_LITERAL_OVERFLOW): New access macro.
1856 * c-common.c (build_userdef_literal): Add overflow_type
1858 * c-lex.c (c_lex_with_flags): Add overflow_type to
1859 build_userdef_literal calls.
1860 (interpret_integer, interpret_float): Add overflow_type argument.
1862 2012-11-28 Richard Biener <rguenther@suse.de>
1865 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1866 here and use a type with proper overflow behavior for types that would
1867 need to be promoted for the arithmetic.
1869 2012-11-23 Jakub Jelinek <jakub@redhat.com>
1872 * c-common.c (handle_no_address_safety_analysis_attribute): New
1874 (c_common_attribute_table): Add no_address_safety_analysis.
1876 2012-11-16 Simon Baldwin <simonb@google.com>
1878 * c.opt: Add f[no-]canonical-system-headers.
1879 * c-opts.c (c_common_handle_option): Handle
1880 OPT_fcanonical_system_headers.
1882 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1885 * c-opts.c (c_common_handle_option): Set new flags.
1886 * c.opt: Describe new flags.
1888 2012-11-09 Jason Merrill <jason@redhat.com>
1890 * c.opt (Wabi-tag): New.
1892 2012-11-09 Andi Kleen <ak@linux.intel.com>
1895 * c-common.c (get_atomic_generic_size): Mask with
1898 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1901 * c.opt (Wformat): Make it Alias Wformat=1.
1902 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1903 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1905 (Wformat=): RejectNegative. Use LangEnabledBy.
1906 (Wnonnull): Use LangEnabledBy.
1907 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1908 * c-format.c (set_Wformat): Delete.
1909 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1910 (maybe_read_dollar_number): Likewise.
1911 (avoid_dollar_number): Likewise.
1912 (finish_dollar_format_checking): Likewise.
1913 (check_format_info): Likewise.
1914 (check_format_info_main): Likewise.
1915 (check_format_types): Likewise.
1916 (format_type_warning): Likewise.
1917 * c-common.c (int): Likewise.
1918 (check_function_sentinel): Likewise.
1919 * c-common.h (warn_format,set_Wformat): Do not declare here.
1921 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1924 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1925 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1927 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1929 (Wvariadic-macros): Init(1).
1930 * c-opts.c (c_common_handle_option): Do not handle them
1932 (c_common_post_options): Likewise.
1933 (sanitize_cpp_opts): warn_unused_macros is now
1934 cpp_warn_unused_macros.
1935 (push_command_line_include): Likewise.
1936 * c-common.c (warn_unknown_pragmas): Do not define.
1937 * c-common.h (warn_unknown_pragmas): Do not declare.
1939 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1942 * c-common.c (conversion_warning): Handle conditional expressions.
1944 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1947 * c.opt (Wreturn_local_addr): Define new option.
1949 2012-10-25 Jason Merrill <jason@redhat.com>
1951 * c.opt (Wvirtual-move-assign): New.
1953 * c.opt (Winherited-variadic-ctor): New.
1955 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
1958 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1960 2012-10-23 Joseph Myers <joseph@codesourcery.com>
1962 * c-common.h (pch_cpp_save_state): Declare.
1963 * c-target.def (c_preinclude): New hook.
1964 * c-opts.c (done_preinclude): New.
1965 (push_command_line_include): Handle default preincluded header.
1966 (cb_file_change): Call pch_cpp_save_state when calling
1967 push_command_line_include.
1968 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1969 (pch_cpp_save_state): New.
1970 (pch_init): Call pch_cpp_save_state conditionally, instead of
1971 calling cpp_save_state.
1973 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1977 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1978 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1979 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1980 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1981 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1982 * c-opts.c (c_common_handle_option): Remove explicit handling from
1984 (c_common_post_options): Likewise.
1986 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1988 * c-ada-spec.c (LOCATION_COL): Delete.
1989 (compare_location): New function.
1990 (compare_node): Use it.
1991 (compare_comment): Likewise.
1993 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1997 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1998 * c-opts.c (c_common_handle_option): Do not set them here. Add
2000 (c_common_post_options): Likewise.
2002 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
2004 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2005 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2006 Remove POINTER_TYPE handling, add large unsigned handling and use
2007 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2009 2012-10-12 Jakub Jelinek <jakub@redhat.com>
2012 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2013 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2014 locs and array of 3 trees instead of just single loc and single
2015 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
2016 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2017 For *cmp* builtins that take two sources strings report warnings
2018 about first and second source, not about destination and source.
2020 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
2023 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2025 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
2027 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2028 declaring something coming from another file.
2030 2012-10-10 Arnaud Charlet <charlet@adacore.com>
2033 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2035 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2038 * c-common.c (warn_about_parentheses): Add location_t parameter;
2039 use EXPR_LOC_OR_LOC.
2040 * c-common.h: Update declaration.
2042 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
2045 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2046 more operations. Make error messages optional.
2047 * c-common.h (enum stv_conv): Moved from c-typeck.c.
2048 (scalar_to_vector): Declare.
2050 2012-10-08 Jason Merrill <jason@redhat.com>
2052 * c-common.c (c_common_reswords): Add thread_local.
2054 2012-10-08 Dodji Seketeli <dodji@redhat.com>
2056 PR c++/53528 C++11 attribute support
2057 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2059 * c-common.c (check_cxx_fundamental_alignment_constraints): New
2061 (handle_aligned_attribute): In choose strictest alignment
2062 among many. Use new check_cxx_fundamental_alignment_constraints.
2063 (handle_transparent_union_attribute): In c++11 attribute syntax,
2064 don't look through typedefs.
2066 2012-10-04 Arnaud Charlet <charlet@adacore.com>
2068 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2069 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2072 2012-09-25 Dehao Chen <dehao@google.com>
2075 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
2076 map when read in the pch.
2078 2012-09-18 Arnaud Charlet <charlet@adacore.com>
2080 * c-ada-spec.c: Style fixes.
2082 2012-09-18 Thomas Quinot <quinot@adacore.com>
2084 * c.opt (-fada-spec-parent): Define new command line switch.
2085 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2086 is specified, generate binding spec as a child of the specified unit.
2088 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
2089 Manuel López-Ibáñez <manu@gcc.gnu.org>
2092 * c.opt ([Winit-self]): Enabled by -Wall in C++.
2094 2012-08-23 Arnaud Charlet <charlet@adacore.com>
2096 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2097 for pointers, and add missing Convention C pragma.
2098 (print_ada_struct_decl): Add missing aliased keyword.
2099 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2101 2012-08-17 Jakub Jelinek <jakub@redhat.com>
2103 * c-common.c (sizeof_pointer_memaccess_warning): New function.
2104 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2105 * c-opts.c (c_common_handle_option): Enable it for -Wall.
2106 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2107 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2109 2012-08-10 Richard Guenther <rguenther@suse.de>
2111 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2113 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
2115 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2116 instead of separate pp_newline and pp_flush.
2117 (print_c_tree): Likewise.
2119 2012-07-26 Richard Henderson <rth@redhat.com>
2121 * c-common.c (handle_hot_attribute): Allow labels.
2122 (handle_cold_attribute): Likewise.
2124 2012-07-20 Jakub Jelinek <jakub@redhat.com>
2127 * c-common.c (check_function_nonnull): Handle multiple nonnull
2128 attributes properly.
2130 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2132 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2133 * c-ada-spec.c: Likewise.
2134 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2136 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
2138 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2139 Remove code conditional on it.
2141 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
2143 * c-gimplify.c: Do not include basic-block.h.
2144 * c-common.c: Do not include linfuncs.h.
2146 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2148 * c-common.h: Include tree.h.
2150 2012-07-02 Jason Merrill <jason@redhat.com>
2153 * c-common.c (get_priority): Call default_conversion.
2155 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
2157 * c-pch.c (c_common_write_pch): Remove unused variables.
2159 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2161 * cppspec.c: Moved from gcc/ to here.
2163 2012-06-27 Kai Tietz <ktietz@redhat.com>
2165 PR preprocessor/37215
2166 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2168 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
2170 * c-common.h (c_common_print_pch_checksum): Remove.
2171 * c-pch.c: Do not include output.h.
2172 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2173 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2174 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2175 (struct c_pch_header): Remove.
2176 (get_ident): Update gpch version.
2177 (pch_init): Do not print executable_checksum to asm_out_file.
2178 Do not fail if there is no asm_out_file to read back from. Set
2179 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2180 (c_common_write_pch): Verify that nothing was written to asm_out_file
2181 since pch_init was called. Do not write a c_pch_header, and do not
2182 copy from asm_out_file to the PCH.
2183 (c_common_read_pch): Do not read a c_pch_header, and do not restore
2184 the content of asm_out_file from the PCH.
2185 (c_common_print_pch_checksum): Remove.
2186 * c-opts.c (c_common_init): Print out executable_checksum directly.
2188 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2190 * c-target.def (objc_declare_unresolved_class_reference,
2191 objc_declare_class_definition): Add new hooks.
2193 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2195 * c-lex.c: Do not include output.h.
2196 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2197 Remove uses of ASM_OUTPUT_IDENT.
2199 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
2202 * c-common.h (c_build_vec_perm_expr): Move decl here.
2203 * c-common.c (c_build_vec_perm_expr): Move definition
2206 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
2208 * c.opt (fconserve-space): Turn into a no-op.
2210 2012-06-04 Sterling Augustine <saugustine@google.com>
2212 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2213 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2214 both the start and end of the function.
2216 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2218 * c-common.c: Do not include output.h.
2219 * c-pragma.c: Likewise.
2221 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2223 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2224 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2225 (lang_decl_name): Handle namespace decls.
2227 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2229 * c-ada-spec.c: Do not include output.h.
2230 * c-semantics.c: Likewise.
2232 2012-05-29 Joseph Myers <joseph@codesourcery.com>
2234 * c-common.c: Fix typo.
2236 2012-05-29 Michael Matz <matz@suse.de>
2238 * c-common.h (c_expand_decl): Remove prototype.
2240 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2242 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2243 * c-opts.c (c_common_handle_option): Remove code handling
2244 warn_missing_braces.
2246 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2249 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2252 2012-05-22 Dodji Seketeli <dodji@redhat.com>
2255 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2257 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2259 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2260 * c-opts.c (c_common_handle_option): Do not handle explicitly
2261 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2263 2012-05-16 Dodji Seketeli <dodji@redhat.com>
2265 PR preprocessor/7263
2266 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
2267 to cpp_classify_number. For diagnostics, use the precise location
2268 instead of the global input_location.
2270 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2273 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2275 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2277 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
2279 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2282 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2283 Wreorder): Use LangEnabledBy.
2284 * c-opts.c (c_common_handle_option): Do not enable them
2285 explicitly. Call lang-specific generated functions.
2286 (c_common_post_options): Do not set them here.
2288 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2290 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2291 Wmissing-field-initializers,Wmissing-parameter-type,
2292 Wold-style-declaration,Woverride-init): Use EnabledBy.
2293 * c-opts.c (c_common_post_options): Do not set here explicitly.
2295 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2298 * c-opts.c (c_common_handle_option): Use handle_generated_option
2299 to enable sub-options.
2301 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
2304 * c-common.c (warnings_for_convert_and_check): Use warning_at.
2306 2012-05-10 Richard Guenther <rguenther@suse.de>
2308 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2309 adjust commentary about TYPE_IS_SIZETYPE types.
2311 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2314 * c-common.c (warn_logical_operator): Check that argument of
2315 integer_zerop is not NULL.
2317 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
2320 * c-common.c (warn_logical_operator): Do not warn if either side
2321 is already true or false.
2323 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2326 * c-common.c (expr_original_type): New.
2327 (shorten_compare): Do not warn for enumeration types.
2329 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2331 * c.opt (fpermissive): Add Var(flag_permissive).
2333 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
2336 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2337 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2339 2012-04-30 Dodji Seketeli <dodji@redhat.com>
2341 Add -Wvarargs option
2342 * c.opt (Wvarargs): Define new option.
2344 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2346 * c-common.c (check_function_arguments): Replace
2347 Wmissing-format-attribute with Wsuggest-attribute=format.
2349 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2351 * c.opt (Wsuggest-attribute=format): New. Alias of
2352 Wmissing-format-attribute.
2353 * c-format.c (decode_format_type): Replace
2354 Wmissing-format-attribute with Wsuggest-attribute=format.
2355 (check_function_format): Likewise.
2357 2012-04-27 Ollie Wild <aaw@google.com>
2359 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2360 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2361 * c.opt: Add Wliteral-suffix.
2363 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2366 * c.opt (Wpedantic): New.
2367 (pedantic): Alias Wpedantic.
2368 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2369 (c_common_post_options): Likewise.
2370 (sanitize_cpp_opts): Likewise.
2371 * c-lex.c (interpret_float): Likewise.
2372 * c-format.c (check_format_types): Likewise.
2373 * c-common.c (pointer_int_sum): Likewise.
2374 (c_sizeof_or_alignof_type): Likewise.
2375 (c_add_case_label): Likewise.
2376 (c_do_switch_warnings): Likewise.
2377 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2379 2012-04-15 Jason Merrill <jason@redhat.com>
2382 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2383 (C_STD_NAME): Distinguish between C++98 and C++11.
2385 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
2388 * c-common.h (uint16_type_node): Rename into...
2389 (c_uint16_type_node): ...this.
2390 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2391 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2393 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
2395 * c-common.c (warn_if_unused_value): Move definition to here.
2396 * c-common.h (warn_if_unused_value): Move declaration to here.
2398 2012-03-23 William Bader <williambader@hotmail.com>
2400 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2402 2012-03-20 Jason Merrill <jason@redhat.com>
2404 * c-common.h (enum cxx_dialect): Add cxx1y.
2405 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2407 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2408 * c-opts.c (c_common_post_options): Likewise.
2409 (set_std_cxx1y): New.
2410 (c_common_handle_option): Call it.
2411 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2413 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
2416 * c.opt ([Wuseless-cast]): Add.
2418 2012-03-16 Richard Guenther <rguenther@suse.de>
2420 * c-pretty-print.c (pp_c_initializer_list): Adjust.
2422 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2425 * c.opt (ftemplate-backtrace-limit) Add.
2427 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2429 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2431 * c-pragma.c (handle_pragma_extern_prefix): Remove.
2432 (init_pragma): Don't register extern_prefix.
2434 2012-03-12 Richard Guenther <rguenther@suse.de>
2436 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2437 (builtin_type_for_size): Likewise.
2439 2012-02-13 Jakub Jelinek <jakub@redhat.com>
2442 * c-common.c (sync_resolve_params): Don't decide whether to convert
2443 or not based on TYPE_SIZE comparison, convert whenever arg_type
2444 is unsigned INTEGER_TYPE.
2446 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2449 * c.opt ([Wunused-local-typedefs]): Fix description.
2451 2012-01-24 Mike Stump <mikestump@comcast.net>
2453 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2456 2012-01-18 Richard Guenther <rguenther@suse.de>
2458 * c-opts.c (c_common_post_options): Reset LTO flags if
2459 we are about to generate a PCH.
2461 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2464 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2465 use pp_unsigned_wide_integer.
2467 2012-01-10 Richard Guenther <rguenther@suse.de>
2470 * c-opts.c (c_common_handle_option): Move -Werror handling
2471 to language independent code.
2473 2012-01-05 Richard Guenther <rguenther@suse.de>
2476 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2479 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
2482 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2483 of array types with an unknown bound.
2485 2011-12-20 Joseph Myers <joseph@codesourcery.com>
2487 * c-common.c (flag_isoc99): Update comment to refer to C11.
2488 (flag_isoc1x): Change to flag_isoc11.
2489 * c-common.h (flag_isoc99): Update comment to refer to C11.
2490 (flag_isoc1x): Change to flag_isoc11.
2491 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2493 * c-opts.c (set_std_c1x): Change to set_std_c11.
2494 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2496 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2497 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2498 * c.opt (std=c1x): Change to std=c11. Document as non-draft
2500 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2501 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
2502 (std=gnu1x): Make alias of std=gnu11.
2504 2011-12-19 Jason Merrill <jason@redhat.com>
2507 * c-common.c (handle_transparent_union_attribute): Check the first
2508 field if the type is complete.
2510 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
2513 * c-common.c (RID_IS_FINAL): Add.
2514 * c-common.h (RID_IS_FINAL): Add.
2516 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2518 * c.opt (fgnu-runtime): Provide full description.
2519 (fnext-runtime): Likewise.
2520 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2522 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
2524 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
2525 predefines in one place. Add LOCK_FREE predefines.
2526 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2529 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
2532 * c-common.c (get_atomic_generic_size): Check for various error
2534 (resolve_overloaded_atomic_exchange,
2535 resolve_overloaded_atomic_compare_exchange,
2536 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2537 error_mark_node for error conditions.
2539 2011-11-08 Richard Guenther <rguenther@suse.de>
2544 2011-11-07 Richard Henderson <rth@redhat.com>
2545 Aldy Hernandez <aldyh@redhat.com>
2546 Torvald Riegel <triegel@redhat.com>
2548 Merged from transactional-memory.
2550 * c-common.c (handle_tm_wrap_attribute,
2551 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2552 (struct c_common_reswords): Added __transaction* keywords.
2553 (struct c_common_attribute_table): Added transaction* and tm_regparm
2555 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2557 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2558 find_tm_attribute): Declare.
2560 2011-11-07 Jason Merrill <jason@redhat.com>
2563 * c-common.c, c-common.h: Revert yesterday's changes.
2565 2011-11-06 Jason Merrill <jason@redhat.com>
2568 * c-common.c (decl_has_visibility_attr): Split out from...
2569 (c_determine_visibility): ...here.
2570 * c-common.h: Declare it.
2572 2011-11-06 Joseph Myers <joseph@codesourcery.com>
2574 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2575 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2577 (check_user_alignment): New. Split out of
2578 handle_aligned_attribute. Disallow integer constants with
2579 noninteger types. Conditionally allow zero.
2580 (handle_aligned_attribute): Use check_user_alignment.
2581 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2583 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
2584 Richard Henderson <rth@redhat.com>
2586 Merged from cxx-mem-model.
2588 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
2589 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
2590 parameters that are the same type size.
2591 (get_atomic_generic_size): New. Find size of generic
2592 atomic function parameters and do typechecking.
2593 (add_atomic_size_parameter): New. Insert size into parameter list.
2594 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2595 either __atomic_exchange_n or external library call.
2596 (resolve_overloaded_atomic_compare_exchange): Restructure
2597 __atomic_compare_exchange to either _n variant or external library call.
2598 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
2599 __atomic_load_n or an external library call.
2600 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2601 __atomic_store_n or an external library call.
2602 (resolve_overloaded_builtin): Handle new __atomic builtins.
2604 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
2607 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2608 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
2609 <INDIRECT_REF>: Return the argument.
2610 <ARRAY_REF>: Remove special code for negative offset.
2611 Call fold_build_pointer_plus instead of size_binop.
2612 (fold_offsetof): Remove STOP_REF argument and adjust.
2613 * c-common.h (fold_offsetof_1): Declare.
2614 (fold_offsetof): Remove STOP_REF argument.
2616 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
2619 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2620 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2621 Wnarrowing for C++0x and C++98.
2622 * c.opt ([Wnarrowing]): Update.
2624 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2627 * c.opt: Add Wzero-as-null-pointer-constant.
2629 2011-10-31 Jason Merrill <jason@redhat.com>
2631 * c.opt (-fdeduce-init-list): Off by default.
2634 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2635 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2637 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2639 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2642 * c.opt (fvisibility-inlines-hidden): Description change.
2644 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
2646 Implement C++11 user-defined literals.
2647 * c-common.c (build_userdef_literal): New.
2648 * c-common.def: New tree code.
2649 * c-common.h (tree_userdef_literal): New tree struct and accessors.
2650 * c-lex.c (interpret_float): Add suffix parm.
2651 (c_lex_with_flags): Build literal tokens.
2653 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2657 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2660 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2661 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2662 Wnarrowing for C++0x and C++98.
2663 * c.opt ([Wnarrowing]): Update.
2665 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2668 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2669 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2670 Wnarrowing for C++0x and C++98.
2671 * c.opt ([Wnarrowing]): Update.
2673 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
2676 * c-common.c (conversion_warning): Remove code looking for
2677 artificial operands.
2679 2011-10-18 Dodji Seketeli <dodji@redhat.com>
2682 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
2683 !NO_IMPLICIT_EXTERN_C.
2685 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
2687 * c-common.c (c_common_reswords): Add __bases,
2689 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2691 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
2694 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2696 2011-10-15 Tom Tromey <tromey@redhat.com>
2697 Dodji Seketeli <dodji@redhat.com>
2699 * c.opt (fdebug-cpp): New option.
2700 * c-opts.c (c_common_handle_option): Handle the option.
2701 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2702 output stream in parameter. Factorized from ...
2703 (maybe_print_line): ... this. Dump location debug information when
2704 -fdebug-cpp is in effect.
2705 (print_line_1): New static function. Takes an output stream in
2706 parameter. Factorized from ...
2707 (print_line): ... here. Dump location information when -fdebug-cpp
2709 (scan_translation_unit): Dump location information when
2710 -fdebug-cpp is in effect.
2712 2011-10-15 Tom Tromey <tromey@redhat.com>
2713 Dodji Seketeli <dodji@redhat.com>
2715 * c.opt (ftrack-macro-expansion): New option. Handle it with and
2717 * c-opts.c (c_common_handle_option)<case
2718 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2719 cases. Handle -ftrack-macro-expansion with and without argument.
2721 2011-10-15 Tom Tromey <tromey@redhat.com>
2722 Dodji Seketeli <dodji@redhat.com>
2724 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2725 (print_line, cb_define, do_line_change): Adjust to avoid touching
2726 the internals of struct line_map. Use the public API instead.
2727 * c-pch.c (c_common_read_pch): Likewise.
2728 * c-lex.c (fe_file_change): Likewise.
2730 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2733 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2735 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
2738 * c-pretty-print.c (pp_c_floating_constant): Output
2739 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2741 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2743 * c-common.c (def_builtin_1): Delete old interface with two
2744 parallel arrays to hold standard builtin declarations, and replace
2745 it with a function based interface that can support creating
2746 builtins on the fly in the future. Change all uses, and poison
2747 the old names. Make sure 0 is not a legitimate builtin index.
2748 * c-omp.c (c_finish_omp_barrier): Ditto.
2749 (c_finish_omp_taskwait): Ditto.
2750 (c_finish_omp_flush): Ditto.
2752 2011-10-11 Tristan Gingold <gingold@adacore.com>
2754 * c.opt: (fallow-parameterless-variadic-functions): New.
2756 2011-09-08 Dodji Seketeli <dodji@redhat.com>
2758 PR c++/33255 - Support -Wunused-local-typedefs warning
2759 * c-common.h (struct c_language_function::local_typedefs): New
2761 (record_locally_defined_typedef, maybe_record_typedef_use)
2762 (maybe_warn_unused_local_typedefs): Declare new functions.
2763 * c-common.c (record_locally_defined_typedef)
2764 (maybe_record_typedef_use)
2765 (maybe_warn_unused_local_typedefs): Define new functions.
2766 * c.opt: Declare new -Wunused-local-typedefs flag.
2768 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
2771 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2774 2011-09-05 Richard Guenther <rguenther@suse.de>
2776 * c-common.c (complete_array_type): Use ssize_int (-1) instead
2777 of integer_minus_one_node for empty array upper bounds.
2779 2011-08-28 Dodji Seketeli <dodji@redhat.com>
2781 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2782 it's the first time it's being called on this main TU.
2784 2011-08-24 Richard Guenther <rguenther@suse.de>
2787 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2789 2011-08-22 Gabriel Charette <gchare@google.com>
2791 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2792 defined in cpp_init_builtins and c_cpp_builtins.
2794 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2796 * c-common.c (c_common_reswords): Add __builtin_complex.
2797 * c-common.h (RID_BUILTIN_COMPLEX): New.
2799 2011-08-18 Joseph Myers <joseph@codesourcery.com>
2801 * c-common.c (c_common_reswords): Add _Noreturn.
2802 (keyword_is_function_specifier): Handle RID_NORETURN.
2803 * c-common.h (RID_NORETURN): New.
2805 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2807 * c-common.c (unsafe_conversion_p): New function. Check if it is
2808 unsafe to convert an expression to the type.
2809 (conversion_warning): Adjust, use unsafe_conversion_p.
2810 * c-common.h (unsafe_conversion_p): New function declaration.
2812 2011-08-02 Jakub Jelinek <jakub@redhat.com>
2814 * c-common.h (c_finish_omp_atomic): Adjust prototype.
2815 (c_finish_omp_taskyield): New prototype.
2816 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2817 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2818 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
2819 or RHS1 have side-effects, evaluate those too in the right spot,
2820 if it is a decl and LHS is also a decl, error out if they
2822 (c_finish_omp_taskyield): New function.
2823 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2824 * c-pragma.c (omp_pragmas): Add taskyield.
2825 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2826 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2827 PRAGMA_OMP_CLAUSE_MERGEABLE.
2829 2011-07-25 Dodji Seketeli <dodji@redhat.com>
2831 * c-common.h (set_underlying_type): Remove parm name from
2834 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
2836 * c-pretty-print.h: Search c-common.h in c-family.
2838 2011-07-22 Jason Merrill <jason@redhat.com>
2841 * c.opt (Wnarrowing): New.
2844 * c-common.h: Declare c_linkage_bindings.
2845 * c-pragma.c (handle_pragma_redefine_extname): Use it.
2848 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2849 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2850 as flag_isoc99 for 'restrict'.
2851 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2853 2011-07-21 Ian Lance Taylor <iant@google.com>
2856 * c-common.c (c_disable_warnings): New static function.
2857 (c_enable_warnings): New static function.
2858 (c_fully_fold_internal): Change local unused_p to bool. Call
2859 c_disable_warnings and c_enable_warnings rather than change
2860 c_inhibit_evaluation_warnings.
2862 2011-07-20 Jason Merrill <jason@redhat.com>
2864 PR c++/6709 (DR 743)
2865 PR c++/42603 (DR 950)
2866 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2867 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2868 (CPP_DECLTYPE): New.
2869 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2871 2011-07-19 Richard Guenther <rguenther@suse.de>
2873 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2874 * c-omp.c (c_finish_omp_for): Likewise.
2876 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2878 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2879 body on the next line.
2881 2011-07-08 Jason Merrill <jason@redhat.com>
2884 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2887 * c-common.c (c_apply_type_quals_to_decl): Don't check
2888 TYPE_NEEDS_CONSTRUCTING.
2890 2011-07-06 Richard Guenther <rguenther@suse.de>
2892 * c-common.c (c_common_nodes_and_builtins):
2893 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2895 2011-07-05 Richard Guenther <rguenther@suse.de>
2897 * c-common.c (c_common_nodes_and_builtins): Build all common
2900 2011-06-27 Jakub Jelinek <jakub@redhat.com>
2902 * c-common.h (c_tree_chain_next): New static inline function.
2904 * c-common.c (check_builtin_function_arguments): Handle
2905 BUILT_IN_ASSUME_ALIGNED.
2907 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
2909 * c-common.c: Add sync_ or SYNC__ to builtin names.
2910 * c-omp.c: Add sync_ or SYNC__ to builtin names.
2912 2011-06-20 Pierre Vittet <piervit@pvittet.com>
2914 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2916 (gen_pragma_handler): New union.
2917 (internal_pragma_handler): New type.
2918 (c_register_pragma_with_data)
2919 (c_register_pragma_with_expansion_and_data): New functions.
2921 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2922 (c_register_pragma, c_register_pragma_with_expansion)
2923 (c_invoke_pragma_handler): Changed to work with
2924 internal_pragma_handler.
2925 (c_register_pragma_with_data)
2926 (c_register_pragma_with_expansion_and_data): New functions.
2928 2011-06-14 Joseph Myers <joseph@codesourcery.com>
2930 * c-common.c: Include common/common-target.h.
2931 (handle_section_attribute): Use
2932 targetm_common.have_named_sections.
2933 * c-cppbuiltin.c: Include common/common-target.h.
2934 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2936 2011-06-10 Richard Guenther <rguenther@suse.de>
2938 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2939 to print a IDENTIFIER_NODE.
2941 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2942 Joseph Myers <joseph@codesourcery.com>
2944 * c.opt (fbuilding-libgcc): New option.
2945 * c-cppbuiltin.c (c_cpp_builtins): Define
2946 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2948 2011-06-07 Jason Merrill <jason@redhat.com>
2950 * c-common.c (max_tinst_depth): Lower default to 900.
2952 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2954 2011-06-07 Richard Guenther <rguenther@suse.de>
2956 * c-common.c (c_common_nodes_and_builtins): Do not set
2957 size_type_node or call set_sizetype.
2959 2011-06-07 Dodji Seketeli <dodji@redhat.com>
2962 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
2963 type when using pointer comparison to compare types.
2965 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2967 * c.opt: Add -Wdelete-non-virtual-dtor.
2968 * c-opts.c (c_common_handle_option): Include it in -Wall.
2970 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2975 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2977 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2980 2011-05-27 Jakub Jelinek <jakub@redhat.com>
2983 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2984 C++ don't call c_common_truthvalue_conversion on void type arms.
2986 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2988 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2989 (stmt_list_stack): Define.
2990 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2991 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2993 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2995 * c-common.c (warning_candidate_p): Check for BLOCKs.
2997 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2999 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3002 2011-05-25 Jakub Jelinek <jakub@redhat.com>
3004 * c-common.c (def_fn_type): Remove extra va_end.
3006 2011-05-23 Jason Merrill <jason@redhat.com>
3009 * c-common.c (c_common_get_narrower): New.
3010 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3012 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3014 * c-common.h (check_function_arguments): Tweak prototype of
3015 check_function_arguments.
3016 * c-common.c (check_function_arguments): Likewise. Adjust
3017 calls to check_function_nonnull, check_function_format, and
3018 check_function_sentinel.
3019 (check_function_sentinel): Take a FUNCTION_TYPE rather than
3020 separate attributes and typelist arguments. Use
3021 FOREACH_FUNCTION_ARGS to iterate over argument types.
3023 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3025 * c-common.c (c_common_reswords): Reorder.
3026 * c-common.h (rid): Likewise.
3028 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3030 * c-common.c (def_fn_type): Don't call build_function_type, call
3031 build_function_type_array or build_varargs_function_type_array
3033 (c_common_nodes_and_builtins): Likewise.
3035 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3037 * c-common.c (c_add_case_label): Omit the loc argument to
3039 * c-common.h (build_case_label): Remove.
3040 * c-semantics.c (build_case_label): Remove.
3042 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3044 * c-objc.h (objc_start_method_definition): Update prototype.
3045 * stub-objc.c (objc_start_method_definition): Add extra parameter.
3047 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3049 * c-common.c (check_main_parameter_types): Reindent. Don't use
3050 TYPE_ARG_TYPES directly.
3051 (handle_nonnull_attribute): Likewise.
3052 (sync_resolve_params): Likewise.
3053 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
3054 to check_format_string.
3055 (handle_format_attribute): Likewise.
3056 (check_format_string): Take a function type to examine instead of
3057 a type list. Use a function_arg_iterator to step through argument
3060 2011-05-04 Richard Guenther <rguenther@suse.de>
3062 * c-common.c (fix_string_type): Use size_int for index type bounds.
3063 (start_fname_decls): Do not pass NULL to build_int_cst.
3064 (c_init_attributes): Likewise.
3065 * c-lex.c (c_lex_with_flags): Likewise.
3067 2011-04-27 Jason Merrill <jason@redhat.com>
3069 * c-common.c (make_tree_vector_from_list): New.
3070 * c-common.h: Declare it.
3072 2011-04-26 Richard Guenther <rguenther@suse.de>
3074 PR preprocessor/48248
3075 * c-ppoutput.c (maybe_print_line): Always optimize newlines
3076 for output size with -P.
3078 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3080 * c-common.c (struct c_common_resword): Add __underlying_type.
3081 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3083 2011-04-20 Jim Meyering <meyering@redhat.com>
3085 * c-format.c (init_dollar_format_checking): Remove useless
3088 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3090 * c-objc.h (objc_get_interface_ivars): Removed.
3091 (objc_detect_field_duplicates): New.
3092 * stub-objc.c: Likewise.
3094 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3096 * stub-objc.c (objc_declare_protocols): Renamed to
3097 objc_declare_protocol.
3098 * c-objc.h: Likewise.
3100 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3102 * stub-objc.c (objc_declare_class): Updated argument name.
3104 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3106 * c-common.h (c_common_init_ts): Declare.
3107 * c-common.c (c_common_init_ts): Define.
3109 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3111 * c-objc.h (objc_build_message_expr): Updated prototype.
3112 * stub-objc.c (objc_build_message_expr): Likewise.
3114 2011-04-12 Martin Jambor <mjambor@suse.cz>
3116 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3119 2011-04-11 Richard Guenther <rguenther@suse.de>
3121 * c-common.c (complete_array_type): Build a range type of
3124 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3126 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3127 (handle_type_generic_attribute): Likewise.
3129 2011-04-07 Jason Merrill <jason@redhat.com>
3132 * c-common.c (c_common_truthvalue_conversion): Don't ignore
3133 conversion from C++0x scoped enum.
3135 2011-04-06 Joseph Myers <joseph@codesourcery.com>
3137 * c-target-def.h: New file.
3138 * c-target.def: New file.
3139 * c-target.h: New file.
3140 * c-common.c (targetcm): Don't define here.
3141 * c-common.h (default_handle_c_option): Declare.
3142 * c-format.c: Include c-target.h instead of target.h.
3143 * c-opts.c: Include c-target.h instead of target.h. Explicitly
3145 (default_handle_c_option): Move from targhooks.c.
3147 2011-03-29 Jakub Jelinek <jakub@redhat.com>
3149 PR preprocessor/48248
3150 * c-ppoutput.c (print): Add src_file field.
3151 (init_pp_output): Initialize it.
3152 (maybe_print_line): Don't optimize by adding up to 8 newlines
3153 if map->to_file and print.src_file are different file.
3154 (print_line): Update print.src_file.
3156 2011-03-25 Kai Tietz <ktietz@redhat.com>
3158 * c-ada-spec.c (compare_comment): Use filename_cmp
3159 instead of strcmp for filename.
3161 2011-03-25 Jeff Law <law@redhat.com>
3163 * c-family/c-common.c (def_fn_type): Add missing va_end.
3165 2011-03-25 Jason Merrill <jason@redhat.com>
3167 * c.opt: Add -std=c++03.
3169 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3171 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3173 2011-03-17 Kai Tietz
3176 * c-pretty-print.c (pp_c_specifier_qualifier_list):
3177 Display allowed attributes for function pointer types.
3178 (pp_c_attributes_display): New function to display
3179 attributes having affects_type_identity flag set to true.
3180 * c-pretty-print.h (pp_c_attributes_display): New prototype.
3182 * c-common.c (c_common_attribute_table):
3184 (c_common_format_attribute_table): Likewise.
3186 2011-03-18 Jason Merrill <jason@redhat.com>
3188 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3189 * c-common.h: Don't declare it here.
3190 * c-common.c: Or define it here.
3191 * c-opts.c (c_common_handle_option): Or set it here.
3194 * c-common.c (handle_transparent_union_attribute): Don't
3195 make a duplicate type in C++.
3197 2011-03-15 Jason Merrill <jason@redhat.com>
3199 * c-common.c (max_constexpr_depth): New.
3200 * c-common.h: Declare it.
3201 * c-opts.c (c_common_handle_option): Set it.
3202 * c.opt (fconstexpr-depth): New option.
3204 2011-03-11 Jason Merrill <jason@redhat.com>
3206 * c-common.c (attribute_takes_identifier_p): Add missing const.
3209 * c-common.c (attribute_takes_identifier_p): Assume that an
3210 unknown attribute takes an identifier.
3212 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
3215 * c-common.c (c_type_hash): Call list_length instead of iterating
3216 through DECL_CHAIN. Rename 'i' to 'n_elements'.
3218 2011-02-19 Jakub Jelinek <jakub@redhat.com>
3221 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3223 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
3225 * c.opt (fobjc-abi-version=) New.
3226 (fobjc-nilcheck): New.
3228 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
3231 * c-common.h (keyword_is_decl_specifier): Declare.
3232 * c-common.c (keyword_is_decl_specifier): Define.
3233 (keyword_is_function_specifier): New function.
3235 2011-01-26 Jakub Jelinek <jakub@redhat.com>
3238 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3239 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3242 2011-01-26 Arnaud Charlet <charlet@adacore.com>
3244 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3246 2011-01-26 Jakub Jelinek <jakub@redhat.com>
3249 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3250 after init_c_lex if pch_file is set.
3252 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3255 * c.opt (-fkeep-inline-dllexport): New switch.
3257 2011-01-12 Richard Guenther <rguenther@suse.de>
3260 * c-common.c (handle_weak_attribute): Warn instead of error
3261 on declaring an inline function weak.
3263 2011-01-05 Tom Tromey <tromey@redhat.com>
3265 * c-common.h (lvalue_error): Update.
3266 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
3269 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
3272 * c-objc.h (objc_finish_message_expr): Added argument to
3275 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
3277 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3280 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
3282 * c-objc.h (objc_maybe_warn_exceptions): New.
3283 * stub-objc.c (objc_maybe_warn_exceptions): New.
3285 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3287 * c-common.h (readonly_error): Declare.
3288 * c-common.c (readonly_error): Define.
3290 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
3292 * c-common.h (invalid_indirection_error): Declare.
3293 * c-common.c (invalid_indirection_error): Define.
3295 2010-12-03 Richard Guenther <rguenther@suse.de>
3298 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3299 (pp_c_unary_expression): Likewise.
3300 (pp_c_expression): Likewise.
3302 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
3304 * c-common.h (objc_finish_function): New.
3305 (objc_non_volatilized_type): Removed.
3306 (objc_type_quals_match): Removed.
3307 * stub-objc.c (objc_finish_function): New.
3308 (objc_non_volatilized_type): Removed.
3309 (objc_type_quals_match): Removed.
3311 2010-11-30 Joseph Myers <joseph@codesourcery.com>
3313 * c-common.h (parse_optimize_options): Declare.
3314 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3315 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3317 2010-11-29 Joseph Myers <joseph@codesourcery.com>
3319 * c-opts.c (check_deps_environment_vars): Use getenv instead of
3321 * c-pch.c (O_BINARY): Don't define here.
3322 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3324 2010-11-25 Joseph Myers <joseph@codesourcery.com>
3326 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3327 targetm.except_unwind_info.
3329 2010-11-23 Joseph Myers <joseph@codesourcery.com>
3331 * c-opts.c (c_common_handle_option): Pass location to
3332 set_struct_debug_option.
3334 2010-11-23 Joseph Myers <joseph@codesourcery.com>
3336 * c-common.c (visibility_options): Move from ../opts.c.
3337 * c-common.h (struct visibility_flags, visibility_options):
3339 * c-opts.c (finish_options): Rename to c_finish_options.
3340 (c_common_init): Update call to finish_options.
3342 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
3345 * c-lex.c (lex_string): Check that each string in an Objective-C
3346 string concat sequence starts with either one or zero '@', and
3347 that there are no spurious '@' signs at the end.
3349 2010-11-20 Joseph Myers <joseph@codesourcery.com>
3351 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3352 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3353 HANDLE_PRAGMA_VISIBILITY.
3354 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3355 HANDLE_PRAGMA_VISIBILITY): Don't define.
3356 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3358 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
3363 * c-common.h (keyword_begins_type_specifier): Declare.
3364 (keyword_is_storage_class_specifier): Declare.
3365 (keyword_is_type_qualifier): Declare.
3366 * c-common.c (keyword_begins_type_specifier): New function.
3367 (keyword_is_storage_class_specifier): New function.
3368 (keyword_is_type_qualifier): Declare.
3370 2010-11-19 Joseph Myers <joseph@codesourcery.com>
3373 * c-common.c (in_late_binary_op): Define.
3374 (c_common_truthvalue_conversion): Check in_late_binary_op before
3375 calling c_save_expr.
3376 * c-common.h (in_late_binary_op): Declare.
3378 2010-11-19 Joseph Myers <joseph@codesourcery.com>
3380 * c-opts.c (c_common_handle_option): Update calls to
3381 set_struct_debug_option.
3383 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3385 * c-common.h (objc_declare_protocols): Added additional argument.
3386 * stub-objc.c (objc_declare_protocol): Same change.
3388 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3391 * c-common.h (build_real_imag_expr): Declare.
3392 * c-semantics.c (build_real_imag_expr): Define.
3394 2010-11-17 Joseph Myers <joseph@codesourcery.com>
3396 * c-opts.c (c_common_parse_file): Take no arguments.
3397 * c-common.h (c_common_parse_file): Update prototype.
3399 2010-11-16 Jakub Jelinek <jakub@redhat.com>
3402 * c-common.c (warning_candidate_p): Don't track non-const calls
3405 2010-11-15 Ian Lance Taylor <iant@google.com>
3407 * c-lex.c (init_c_lex): Set macro debug callbacks if
3408 flag_dump_go_spec is set.
3410 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3412 * c-common.h (objc_build_incr_expr_for_property_ref): New.
3413 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3415 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
3417 PR preprocessor/45038
3418 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3421 2010-11-12 Joseph Myers <joseph@codesourcery.com>
3423 * c-common.h (c_family_lang_mask): Declare.
3424 * c-opts.c (c_family_lang_mask): Make extern.
3425 * c-pragma.c (handle_pragma_diagnostic): Use
3426 control_warning_option.
3428 2010-11-12 Joseph Myers <joseph@codesourcery.com>
3430 * c-common.c (parse_optimize_options): Update call to
3432 * c-common.h (c_common_handle_option): Update prototype.
3433 * c-opts.c (c_common_handle_option): Take location_t parameter and
3434 pass it to other functions.
3436 2010-11-11 Joseph Myers <joseph@codesourcery.com>
3438 * c-opts.c (warning_as_error_callback): Remove.
3439 (c_common_initialize_diagnostics): Don't call
3440 register_warning_as_error_callback.
3441 (c_common_handle_option): Handle -Werror=normalized= here.
3443 2010-11-10 Joseph Myers <joseph@codesourcery.com>
3445 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3447 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3449 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3450 Remove trailing '.' from diagnostics.
3451 * c.opt (Wwrite-strings_: Avoid '`' in help text.
3453 2010-11-10 Joseph Myers <joseph@codesourcery.com>
3455 * c-common.c (parse_optimize_options): Pass global_dc to
3457 * c-opts.c (c_common_handle_option): Pass &global_options to
3458 set_Wstrict_aliasing.
3459 * c.opt (v): Don't mark Common or document here.
3461 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3464 * c-format.c (format_type): New type gcc_objc_string_format_type.
3465 (valid_stringptr_type_p): New.
3466 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
3467 (check_format_string): Pass expected type, use
3468 valid_stringptr_type_p (), check that the format string types are
3469 consistent with the format specification.
3470 (decode_format_attr): Warn if NSString is used outside objective-c.
3471 (format_types_orig): Add NSString.
3473 (format_flags): New.
3474 (check_format_arg): Handle format strings requiring an external parser.
3475 first_target_format_type: New variable.
3476 (handle_format_attribute): Set up first_target_format_type, pass the
3477 expected format arg string type to check_format_string().
3478 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
3479 * stub-objc.c (objc_string_ref_type_p): New.
3480 (objc_check_format_arg): New.
3482 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3484 Fixed using the Objective-C 2.0 dot-syntax with class names.
3485 * c-common.h (objc_build_class_component_ref): New.
3486 * stub-objc.c (objc_build_class_component_ref): New.
3488 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3490 * c.opt (Wproperty-assign-default): New option.
3492 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3494 Implemented -fobjc-std=objc1 flag.
3495 * c.opt (fobjc-std=objc1): New option.
3497 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
3499 Implemented format and noreturn attributes for Objective-C methods.
3500 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3501 attribute for Objective-C methods.
3503 2010-10-31 Jason Merrill <jason@redhat.com>
3505 * c-common.c (conversion_warning, warn_for_collisions_1): Use
3508 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3510 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3511 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3512 (objc_add_property_declaration): Removed arguments for copies and
3514 (objc_build_getter_call): Renamed to
3515 objc_maybe_build_component_ref.
3516 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3517 (objc_is_property_ref): New.
3518 * c-common.c (c_common_reswords): Removed copies and ivar.
3519 * stub-objc.c (objc_add_property_declaration): Removed arguments
3520 for copies and ivar.
3521 (objc_build_getter_call): Renamed to
3522 objc_maybe_build_component_ref.
3523 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3524 (objc_is_property_ref): New.
3526 2010-10-29 Arnaud Charlet <charlet@adacore.com>
3527 Matthew Gingell <gingell@adacore.com>
3529 * c-ada-spec.c (separate_class_package): New function.
3530 (pp_ada_tree_identifier): Prefix references to C++ classes with the
3531 name of their enclosing package.
3532 (print_ada_declaration): Use separate_class_package.
3534 2010-10-27 Jason Merrill <jason@redhat.com>
3536 * c-common.c (c_common_reswords): Add __is_literal_type.
3537 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3539 * c-common.c (check_case_value): Remove special C++ code.
3541 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3543 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3544 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
3546 (objc_add_property_declaration): Added additional arguments.
3547 (objc_property_attribute_kind): Removed.
3548 (objc_set_property_attr): Removed.
3549 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3551 * stub-objc.c (objc_add_property_declaration): Added additional
3553 (objc_set_property_attr): Removed.
3555 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3557 * c-common.h (objc_add_property_variable): Renamed to
3558 objc_add_property_declaration. Added location argument.
3559 * stub-objc.c (objc_add_property_variable): Same change.
3561 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3563 * c-common.h (objc_maybe_printable_name): New.
3564 * stub-objc.c (objc_maybe_printable_name): New.
3566 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3567 Andrew Pinski <pinskia@gmail.com>
3569 * c-common.h (c_common_mark_addressable_vec): Declare.
3570 * c-common.c (c_common_mark_addressable_vec): New function.
3572 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3574 * c-common.h (objc_set_method_type): Removed.
3575 (objc_add_method_declaration): Added boolean argument.
3576 (objc_start_method_definition): Same change.
3577 (objc_build_method_signature): Same change.
3578 * stub-objc.c (objc_set_method_type): Removed.
3579 (objc_add_method_declaration): Added boolean argument.
3580 (objc_start_method_definition): Same change.
3581 (objc_build_method_signature): Same change.
3583 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3585 * c-common.h (finish_file): Removed.
3586 (objc_write_global_declarations): New.
3587 * c-opts.c (c_common_parse_file): Do not call finish_file.
3588 * stub-objc.c (objc_write_global_declarations): New.
3590 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3592 Implemented parsing @synthesize and @dynamic for
3593 Objective-C/Objective-C++.
3594 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3595 (objc_add_synthesize_declaration): New.
3596 (objc_add_dynamic_declaration): New.
3597 * c-common.c (c_common_reswords): Add synthesize and dynamic.
3598 * stub-objc.c (objc_add_synthesize_declaration): New.
3599 (objc_add_dynamic_declaration): New.
3601 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3604 * c-cppbuiltin.c (mode_has_fma): Move function here from
3605 builtins.c. Don't use the fma optab, instead just use the
3606 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3609 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3611 Merge from 'apple/trunk' branch on FSF servers.
3613 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
3616 * c-common.h (objc_non_volatilized_type): New declaration
3617 * stub-objc.c (objc_non_volatilized_type): New stub.
3619 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3621 Merge from 'apple/trunk' branch on FSF servers.
3623 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3626 * c-common.h (objc_diagnose_private_ivar): New decl.
3627 * stub-objc.c (objc_diagnose_private_ivar): New stub.
3629 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
3631 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3632 * c-common.h (enum rid): Add RID_AT_PACKAGE.
3633 (objc_ivar_visibility_kind): New enum.
3634 (objc_set_visibility): Adjust prototype to use visibility enum.
3635 * stub-objc.c (objc_set_visibility): Adjust stub to use
3638 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3640 * c-cppbuiltin.c (builtin_define_float_constants): Emit
3641 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3642 has the appropriate fma builtins.
3643 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3645 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3647 merge from FSF apple 'trunk' branch.
3648 2006 Fariborz Jahanian <fjahanian@apple.com>
3650 Radars 4436866, 4505126, 4506903, 4517826
3651 * c-common.c (c_common_resword): Define @property and its attributes.
3652 * c-common.h: Define property attribute enum entries.
3653 (OBJC_IS_PATTR_KEYWORD): New.
3654 (objc_property_attribute_kind): New enum.
3655 Declare objc_set_property_attr (), objc_add_property_variable (),
3656 objc_build_getter_call () and objc_build_setter_call ().
3657 * stub-objc.c (objc_set_property_attr): New stub.
3658 (objc_add_property_variable): Likewise.
3659 (objc_build_getter_call): Likewise.
3660 (objc_build_setter_call) Likewise.
3662 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
3664 merge from FSF apple 'trunk' branch.
3665 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3667 Radar 3803157 (method attributes)
3668 * c-common.c (handle_deprecated_attribute): Recognize
3669 objc methods as valid declarations.
3670 * c-common.h: Declare objc_method_decl ().
3671 * stub-objc.c (objc_method_decl): New stub.
3673 2010-10-08 Joseph Myers <joseph@codesourcery.com>
3675 * c-common.c (parse_optimize_options): Call
3676 decode_cmdline_options_to_array_default_mask before
3677 decode_options. Update arguments to decode_options.
3678 * c-common.h (c_common_init_options_struct): Declare.
3679 * c-opts.c (c_common_init_options_struct): New. Split out from
3680 c_common_init_options.
3682 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3684 Implemented fast enumeration for Objective-C.
3685 * c-common.h (objc_finish_foreach_loop): New.
3686 * stub-objc.c (objc_finish_foreach_loop): New.
3688 2010-10-05 Joseph Myers <joseph@codesourcery.com>
3690 * c-common.h (struct diagnostic_context): Don't declare here.
3691 (c_common_initialize_diagnostics): Declare using
3692 diagnostic_context typedef.
3693 * c-opts.c (c_common_handle_option): Pass global_dc to
3694 handle_generated_option.
3696 2010-10-04 Joseph Myers <joseph@codesourcery.com>
3698 * c-opts.c (c_common_handle_option): Pass &global_options_set to
3699 handle_generated_option.
3701 2010-10-03 Ian Lance Taylor <iant@google.com>
3703 * c.opt (-fplan9-extensions): New option.
3705 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3707 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3709 (c_cpp_builtins): Call functions from cppbuiltin.c instead
3710 of duplicating code.
3712 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
3714 * c-common.c: Add two new entries for @optional
3715 and @required keywords.
3717 merge from FSF 'apple/trunk' branch.
3718 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
3721 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3722 objective-c keywords.
3723 (objc_set_method_opt): New declaration.
3724 * stub-objc.c (objc_set_method_opt): New stub.
3726 2010-09-30 Joseph Myers <joseph@codesourcery.com>
3728 * c-common.c (handle_optimize_attribute): Pass &global_options to
3729 cl_optimization_save and cl_optimization_restore.
3730 * c-opts.c (c_common_handle_option): Pass &global_options to
3731 handle_generated_option.
3732 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3733 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3734 &global_options to cl_optimization_restore.
3736 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
3738 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3739 Objective-C/Objective-C++ keywords.
3741 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3743 Merge from 'apple/trunk' branch on FSF servers.
3745 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
3748 * c-common.h (objc_check_global_decl): New declaration.
3749 * stub-objc.c (objc_check_global_decl): New stub.
3751 2010-09-29 Joseph Myers <joseph@codesourcery.com>
3753 * c.opt: Don't use VarExists.
3755 2010-09-29 Joseph Myers <joseph@codesourcery.com>
3757 * c-common.c (c_cpp_error): Update names of diagnostic_context
3759 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3760 cl_optimization members.
3761 * c-opts.c (warning_as_error_callback, c_common_handle_option,
3762 sanitize_cpp_opts, finish_options): Update names of cpp_options
3765 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3767 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
3768 (objc_is_reserved_word): Removed.
3769 * c-common.c: Updated comments.
3770 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3771 objc_is_reserved_word.
3772 * stub-objc.c (objc_is_reserved_word): Removed.
3774 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3776 * c-common.h (objc_add_method_declaration): Adjust prototype to
3778 (objc_start_method_definition): Likewise.
3779 (objc_build_keyword_decl): Likewise.
3780 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3781 (objc_start_method_definition): Likewise.
3782 (objc_build_keyword_decl): Likewise.
3784 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3786 * c-common.h (objc_start_class_interface): Adjust prototype.
3787 (objc_start_category_interface): Likewise.
3788 (objc_start_protocol): Likewise.
3789 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3790 (objc_start_class_interface): Likewise.
3791 (objc_start_category_interface): Likewise.
3793 2010-09-27 Ian Lance Taylor <iant@google.com>
3795 * c-common.c (c_common_attribute_table): Add no_split_stack.
3796 (handle_no_split_stack_attribute): New static function.
3798 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3800 Merge from 'apple/trunk' branch on FSF servers.
3802 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3805 * c-common.h (objc_have_common_type): New declaration.
3806 * stub-objc.c (objc_have_common_type): New stub.
3808 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3811 * c-common.h (objc_common_type): New prototype.
3812 * stub-objc.c (objc_common_type): New stub.
3814 2010-09-24 Jan Hubicka <jh@suse.cz>
3816 * c-common.c (handle_leaf_attribute): New function.
3817 (struct attribute_spec c_common_att): Add leaf.
3819 2010-09-22 Joseph Myers <joseph@codesourcery.com>
3821 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3822 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3823 -dump, -dump=, -imacros, -imacros=, -include, -include=,
3824 -include-barrier, -include-directory, -include-directory=,
3825 -include-directory-after, -include-directory-after=,
3826 -include-prefix, -include-prefix=, -include-with-prefix,
3827 -include-with-prefix=, -include-with-prefix-after,
3828 -include-with-prefix-after=, -include-with-prefix-before,
3829 -include-with-prefix-before=, -no-integrated-cpp,
3830 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3831 -output=, -pedantic, -pedantic-errors, -preprocess,
3832 -print-missing-file-dependencies, -trace-includes, -traditional,
3833 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3834 -user-dependencies, -verbose, -write-dependencies,
3835 -write-user-dependencies, no-integrated-cpp, traditional): New.
3837 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3840 * c-common.h (objc_start_method_definition): Return bool instead
3842 * stub-objc.c (objc_start_method_definition): Return bool instead
3845 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3848 * c-common.h (objc_get_interface_ivars): New declaration.
3849 * stub-objc.c (objc_get_interface_ivars): New stub.
3851 2010-09-15 Ian Lance Taylor <iant@google.com>
3853 * c-common.c (parse_optimize_options): Do not capitalize warning
3854 messages. Remove period at end of warning message.
3856 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3858 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3859 (handle_alias_attribute): ... here.
3860 (handle_ifunc_attribute): New.
3862 2010-09-06 Mark Mitchell <mark@codesourcery.com>
3864 * c-common.h (do_warn_double_promotion): Declare.
3865 * c-common.c (do_warn_double_promotion): Define.
3867 2010-09-05 Mark Mitchell <mark@codesourcery.com>
3869 * c.opt (Wdouble-promotion): New.
3871 2010-09-02 Joseph Myers <joseph@codesourcery.com>
3873 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3874 fvtable-thunks, fxref): Mark no longer supported in help text.
3876 2010-09-02 Joseph Myers <joseph@codesourcery.com>
3878 * c.opt (Wimport, fall-virtual, falt-external-templates,
3879 fdefault-inline, fenum-int-equiv, fexternal-templates,
3880 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3881 fname-mangling-version-, fnew-abi, fnonnull-objects,
3882 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3883 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3885 (fhandle-exceptions): Mark with Alias and Warn.
3886 * c-opts.c (c_common_handle_option): Don't handle options marked
3889 2010-09-02 Joseph Myers <joseph@codesourcery.com>
3891 * c.opt (Wcomments, Werror-implicit-function-declaration,
3892 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3893 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3895 * c-common.c (option_codes): Use OPT_Wcomment instead of
3897 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3898 Don't handle options marked as aliases.
3900 2010-08-25 Richard Guenther <rguenther@suse.de>
3902 * c-common.c (c_common_get_alias_set): Remove special
3903 handling for pointers.
3905 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3907 * c-common.c: Use FOR_EACH_VEC_ELT.
3908 * c-gimplify.c: Likewise.
3909 * c-pragma.c: Likewise.
3911 2010-08-16 Joseph Myers <joseph@codesourcery.com>
3913 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3915 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3917 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3918 instead of OPT_MDX and OPT_MMDX.
3920 2010-08-16 Joseph Myers <joseph@codesourcery.com>
3922 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3924 2010-08-12 Joseph Myers <joseph@codesourcery.com>
3926 * c.opt (MD, MMD): Change to MDX and MMDX.
3927 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3929 2010-08-11 Joseph Myers <joseph@codesourcery.com>
3931 * c-opts.c (c_common_handle_option): Call handle_generated_option
3932 instead of handle_option.
3934 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3936 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3937 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3939 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3941 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3942 (pending_redefine_extname): Change type to a VEC.
3943 (add_to_renaming_pragma_list): Update for new type of
3944 pending_redefine_extname.
3945 (maybe_apply_renaming_pragma): Likewise.
3947 2010-08-04 Arnaud Charlet <charlet@adacore.com>
3949 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3951 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3952 decide whether a type has already been declared/seen.
3953 Do not go to the original type.
3954 (dump_nested_types): New parameter forward.
3955 Generate forward declaration if needed and mark type as visited.
3956 (print_ada_declaration): Call dump_nested_types if not already done.
3957 Mark types as visited.
3959 2010-08-03 Joseph Myers <joseph@codesourcery.com>
3961 * c.opt (-print-pch-checksum): Remove option.
3962 * c-opts.c (c_common_handle_option): Don't handle
3963 OPT_print_pch_checksum.
3965 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3967 * c-common.h (c_common_handle_option): Update prototype and return
3969 * c-opts.c (c_common_handle_option): Update prototype and return
3970 value type. Update calls to handle_option and
3971 enable_warning_as_error.
3973 2010-07-27 Jakub Jelinek <jakub@redhat.com>
3976 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3978 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3980 * c-common.h (c_common_missing_argument): Remove.
3981 * c-opts.c (c_common_missing_argument): Remove.
3982 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3983 idirafter, imacros, include, isysroot, isystem, iquote): Add
3985 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3987 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3989 * c-common.h (c_common_option_lang_mask,
3990 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3992 (c_common_init_options): Update prototype.
3993 * c-opts.c (c_common_option_lang_mask): New.
3994 (c_common_initialize_diagnostics): Split out of
3995 c_common_init_options.
3996 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3998 (c_common_init_options): Update prototype. Use decoded options in
3999 search for -lang-asm.
4001 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4003 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4004 * c-format.c: Likewise.
4006 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4008 * c-common.h: Include diagnostic-core.h. Error if already
4010 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4012 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4014 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
4015 Do not include expr.h
4016 (vector_mode_valid_p): Move here.
4018 2010-06-21 DJ Delorie <dj@redhat.com>
4020 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4021 allow these pragmas anywhere.
4023 2010-06-14 Jakub Jelinek <jakub@redhat.com>
4026 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4027 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4028 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4029 ggc_strdup instead of xstrdup.
4031 2010-06-10 Jakub Jelinek <jakub@redhat.com>
4033 * c-cppbuiltin.c: Include cpp-id-data.h.
4034 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4035 (lazy_hex_fp_value): New function.
4036 (builtin_define_with_hex_fp_value): Provide definitions lazily.
4038 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4040 * c-gimplify.c: Do not include tree-flow.h
4042 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4045 * c-common.c: Rename targetm member:
4046 targetm.enum_va_list -> targetm.enum_va_list_p
4048 2010-06-28 Anatoly Sokolov <aesok@post.ru>
4050 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4052 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4054 * c-cppbuiltin.c: Do not include except.h.
4056 2010-06-24 Andi Kleen <ak@linux.intel.com>
4058 * c-common.c (warn_for_omitted_condop): New.
4059 * c-common.h (warn_for_omitted_condop): Add prototype.
4061 2010-06-21 Joseph Myers <joseph@codesourcery.com>
4063 * c.opt (lang-objc): Remove.
4064 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4066 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
4068 * c-opts.c: Include "tm_p.h".
4070 2010-06-20 Joseph Myers <joseph@codesourcery.com>
4072 * c-common.c (parse_optimize_options): Update call to
4075 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4077 * c-common.c (record_types_used_by_current_var_decl): Adjust for
4078 new type of types_used_by_cur_var_decl.
4080 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
4083 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4084 for C++ standard compliance.
4086 2010-06-16 Jason Merrill <jason@redhat.com>
4088 * c.opt: Add -Wnoexcept.
4090 2010-06-16 Richard Guenther <rguenther@suse.de>
4093 * c-common.c (c_common_truthvalue_conversion): Remove
4094 premature and wrong optimization concering ADDR_EXPRs.
4096 2010-06-15 Arnaud Charlet <charlet@adacore.com>
4098 * c-ada-spec.c (dump_sloc): Remove column info.
4099 (is_simple_enum): New function.
4100 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4101 enum types when relevant.
4103 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4105 * c-common.c (conversion_warning): Warn at expression
4108 2010-06-10 Joseph Myers <joseph@codesourcery.com>
4110 * c-opts.c (c_common_handle_option): Don't handle
4113 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4115 * c-pragma.c (push_alignment): Use typed GC allocation.
4116 (handle_pragma_push_options): Likewise.
4118 * c-common.c (parse_optimize_options): Likewise.
4120 * c-common.h (struct sorted_fields_type): Add variable_size GTY
4123 2010-06-07 Joseph Myers <joseph@codesourcery.com>
4125 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4126 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4127 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4128 flag_signed_bitfields, warn_strict_null_sentinel,
4129 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4130 flag_gen_declaration, flag_no_gnu_keywords,
4131 flag_implement_inlines, flag_implicit_templates,
4132 flag_implicit_inline_templates, flag_optional_diags,
4133 flag_elide_constructors, flag_default_inline, flag_rtti,
4134 flag_conserve_space, flag_access_control, flag_check_new,
4135 flag_new_for_scope, flag_weak, flag_working_directory,
4136 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4137 flag_enforce_eh_specs, flag_threadsafe_statics,
4138 flag_pretty_templates): Remove.
4139 * c-common.h (flag_preprocess_only, flag_nil_receivers,
4140 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4141 flag_replace_objc_classes, flag_undef, flag_no_builtin,
4142 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4143 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4144 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4145 flag_no_gnu_keywords, flag_implement_inlines,
4146 flag_implicit_templates, flag_implicit_inline_templates,
4147 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4148 flag_rtti, flag_conserve_space, flag_access_control,
4149 flag_check_new, flag_new_for_scope, flag_weak,
4150 flag_working_directory, flag_use_cxa_atexit,
4151 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4152 flag_threadsafe_statics, flag_pretty_templates,
4153 warn_strict_null_sentinel): Remove.
4154 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4155 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4156 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4157 fimplicit-inline-templates, fimplicit-templates,
4158 flax-vector-conversions, fms-extensions, fnil-receivers,
4159 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4160 frtti, fshort-double, fshort-enums, fshort-wchar,
4161 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4162 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4163 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4164 gen-decls, undef): Use Var.
4165 (fdefault-inline, foptional-diags): Document as doing nothing.
4166 * c-opts.c (c_common_handle_option): Remove cases for options now
4167 using Var. Mark ignored options as such.
4169 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4171 * c-common.c: Moved to here from parent directory.
4172 * c-common.def: Likewise.
4173 * c-common.h: Likewise.
4174 * c-cppbuiltin.c: Likewise.
4175 * c-dump.c: Likewise.
4176 * c-format.c: Likewise.
4177 * c-format.h : Likewise.
4178 * c-gimplify.c: Likewise.
4179 * c-lex.c: Likewise.
4180 * c-omp.c: Likewise.
4182 * c-opts.c: Likewise.
4183 * c-pch.c: Likewise.
4184 * c-ppoutput.c: Likewise.
4185 * c-pragma.c: Likewise.
4186 * c-pragma.h: Likewise.
4187 * c-pretty-print.c: Likewise.
4188 * c-pretty-print.h: Likewise.
4189 * c-semantics.c: Likewise.
4190 * stub-objc.c: Likewise.
4192 * c-common.c: Include gt-c-family-c-common.h.
4193 * c-pragma.c: Include gt-c-family-c-pragma.h.
4195 Copyright (C) 2010-2014 Free Software Foundation, Inc.
4197 Copying and distribution of this file, with or without modification,
4198 are permitted in any medium without royalty provided the copyright
4199 notice and this notice are preserved.