1 2012-10-25 Jason Merrill <jason@redhat.com>
3 * c.opt (Winherited-variadic-ctor): New.
5 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
8 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
10 2012-10-23 Joseph Myers <joseph@codesourcery.com>
12 * c-common.h (pch_cpp_save_state): Declare.
13 * c-target.def (c_preinclude): New hook.
14 * c-opts.c (done_preinclude): New.
15 (push_command_line_include): Handle default preincluded header.
16 (cb_file_change): Call pch_cpp_save_state when calling
17 push_command_line_include.
18 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
19 (pch_cpp_save_state): New.
20 (pch_init): Call pch_cpp_save_state conditionally, instead of
21 calling cpp_save_state.
23 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
27 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
28 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
29 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
30 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
31 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
32 * c-opts.c (c_common_handle_option): Remove explicit handling from
34 (c_common_post_options): Likewise.
36 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
38 * c-ada-spec.c (LOCATION_COL): Delete.
39 (compare_location): New function.
40 (compare_node): Use it.
41 (compare_comment): Likewise.
43 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
47 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
48 * c-opts.c (c_common_handle_option): Do not set them here. Add
50 (c_common_post_options): Likewise.
52 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
54 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
55 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
56 Remove POINTER_TYPE handling, add large unsigned handling and use
57 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
59 2012-10-12 Jakub Jelinek <jakub@redhat.com>
62 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
63 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
64 locs and array of 3 trees instead of just single loc and single
65 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
66 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
67 For *cmp* builtins that take two sources strings report warnings
68 about first and second source, not about destination and source.
70 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
73 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
75 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
77 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
78 declaring something coming from another file.
80 2012-10-10 Arnaud Charlet <charlet@adacore.com>
83 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
85 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
88 * c-common.c (warn_about_parentheses): Add location_t parameter;
90 * c-common.h: Update declaration.
92 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
95 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
96 more operations. Make error messages optional.
97 * c-common.h (enum stv_conv): Moved from c-typeck.c.
98 (scalar_to_vector): Declare.
100 2012-10-08 Jason Merrill <jason@redhat.com>
102 * c-common.c (c_common_reswords): Add thread_local.
104 2012-10-08 Dodji Seketeli <dodji@redhat.com>
106 PR c++/53528 C++11 attribute support
107 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
109 * c-common.c (check_cxx_fundamental_alignment_constraints): New
111 (handle_aligned_attribute): In choose strictest alignment
112 among many. Use new check_cxx_fundamental_alignment_constraints.
113 (handle_transparent_union_attribute): In c++11 attribute syntax,
114 don't look through typedefs.
116 2012-10-04 Arnaud Charlet <charlet@adacore.com>
118 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
119 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
122 2012-09-25 Dehao Chen <dehao@google.com>
125 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
126 map when read in the pch.
128 2012-09-18 Arnaud Charlet <charlet@adacore.com>
130 * c-ada-spec.c: Style fixes.
132 2012-09-18 Thomas Quinot <quinot@adacore.com>
134 * c.opt (-fada-spec-parent): Define new command line switch.
135 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
136 is specified, generate binding spec as a child of the specified unit.
138 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
139 Manuel López-Ibáñez <manu@gcc.gnu.org>
142 * c.opt ([Winit-self]): Enabled by -Wall in C++.
144 2012-08-23 Arnaud Charlet <charlet@adacore.com>
146 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
147 for pointers, and add missing Convention C pragma.
148 (print_ada_struct_decl): Add missing aliased keyword.
149 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
151 2012-08-17 Jakub Jelinek <jakub@redhat.com>
153 * c-common.c (sizeof_pointer_memaccess_warning): New function.
154 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
155 * c-opts.c (c_common_handle_option): Enable it for -Wall.
156 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
157 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
159 2012-08-10 Richard Guenther <rguenther@suse.de>
161 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
163 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
165 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
166 instead of separate pp_newline and pp_flush.
167 (print_c_tree): Likewise.
169 2012-07-26 Richard Henderson <rth@redhat.com>
171 * c-common.c (handle_hot_attribute): Allow labels.
172 (handle_cold_attribute): Likewise.
174 2012-07-20 Jakub Jelinek <jakub@redhat.com>
177 * c-common.c (check_function_nonnull): Handle multiple nonnull
180 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
182 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
183 * c-ada-spec.c: Likewise.
184 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
186 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
188 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
189 Remove code conditional on it.
191 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
193 * c-gimplify.c: Do not include basic-block.h.
194 * c-common.c: Do not include linfuncs.h.
196 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
198 * c-common.h: Include tree.h.
200 2012-07-02 Jason Merrill <jason@redhat.com>
203 * c-common.c (get_priority): Call default_conversion.
205 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
207 * c-pch.c (c_common_write_pch): Remove unused variables.
209 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
211 * cppspec.c: Moved from gcc/ to here.
213 2012-06-27 Kai Tietz <ktietz@redhat.com>
215 PR preprocessor/37215
216 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
218 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
220 * c-common.h (c_common_print_pch_checksum): Remove.
221 * c-pch.c: Do not include output.h.
222 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
223 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
224 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
225 (struct c_pch_header): Remove.
226 (get_ident): Update gpch version.
227 (pch_init): Do not print executable_checksum to asm_out_file.
228 Do not fail if there is no asm_out_file to read back from. Set
229 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
230 (c_common_write_pch): Verify that nothing was written to asm_out_file
231 since pch_init was called. Do not write a c_pch_header, and do not
232 copy from asm_out_file to the PCH.
233 (c_common_read_pch): Do not read a c_pch_header, and do not restore
234 the content of asm_out_file from the PCH.
235 (c_common_print_pch_checksum): Remove.
236 * c-opts.c (c_common_init): Print out executable_checksum directly.
238 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
240 * c-target.def (objc_declare_unresolved_class_reference,
241 objc_declare_class_definition): Add new hooks.
243 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
245 * c-lex.c: Do not include output.h.
246 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
247 Remove uses of ASM_OUTPUT_IDENT.
249 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
252 * c-common.h (c_build_vec_perm_expr): Move decl here.
253 * c-common.c (c_build_vec_perm_expr): Move definition
256 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
258 * c.opt (fconserve-space): Turn into a no-op.
260 2012-06-04 Sterling Augustine <saugustine@google.com>
262 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
263 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
264 both the start and end of the function.
266 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
268 * c-common.c: Do not include output.h.
269 * c-pragma.c: Likewise.
271 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
273 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
274 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
275 (lang_decl_name): Handle namespace decls.
277 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
279 * c-ada-spec.c: Do not include output.h.
280 * c-semantics.c: Likewise.
282 2012-05-29 Joseph Myers <joseph@codesourcery.com>
284 * c-common.c: Fix typo.
286 2012-05-29 Michael Matz <matz@suse.de>
288 * c-common.h (c_expand_decl): Remove prototype.
290 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
292 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
293 * c-opts.c (c_common_handle_option): Remove code handling
296 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
299 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
302 2012-05-22 Dodji Seketeli <dodji@redhat.com>
305 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
307 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
309 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
310 * c-opts.c (c_common_handle_option): Do not handle explicitly
311 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
313 2012-05-16 Dodji Seketeli <dodji@redhat.com>
316 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
317 to cpp_classify_number. For diagnostics, use the precise location
318 instead of the global input_location.
320 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
323 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
325 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
327 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
329 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
332 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
333 Wreorder): Use LangEnabledBy.
334 * c-opts.c (c_common_handle_option): Do not enable them
335 explicitly. Call lang-specific generated functions.
336 (c_common_post_options): Do not set them here.
338 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
340 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
341 Wmissing-field-initializers,Wmissing-parameter-type,
342 Wold-style-declaration,Woverride-init): Use EnabledBy.
343 * c-opts.c (c_common_post_options): Do not set here explicitly.
345 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
348 * c-opts.c (c_common_handle_option): Use handle_generated_option
349 to enable sub-options.
351 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
354 * c-common.c (warnings_for_convert_and_check): Use warning_at.
356 2012-05-10 Richard Guenther <rguenther@suse.de>
358 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
359 adjust commentary about TYPE_IS_SIZETYPE types.
361 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
364 * c-common.c (warn_logical_operator): Check that argument of
365 integer_zerop is not NULL.
367 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
370 * c-common.c (warn_logical_operator): Do not warn if either side
371 is already true or false.
373 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
376 * c-common.c (expr_original_type): New.
377 (shorten_compare): Do not warn for enumeration types.
379 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
381 * c.opt (fpermissive): Add Var(flag_permissive).
383 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
386 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
387 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
389 2012-04-30 Dodji Seketeli <dodji@redhat.com>
392 * c.opt (Wvarargs): Define new option.
394 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
396 * c-common.c (check_function_arguments): Replace
397 Wmissing-format-attribute with Wsuggest-attribute=format.
399 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
401 * c.opt (Wsuggest-attribute=format): New. Alias of
402 Wmissing-format-attribute.
403 * c-format.c (decode_format_type): Replace
404 Wmissing-format-attribute with Wsuggest-attribute=format.
405 (check_function_format): Likewise.
407 2012-04-27 Ollie Wild <aaw@google.com>
409 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
410 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
411 * c.opt: Add Wliteral-suffix.
413 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
416 * c.opt (Wpedantic): New.
417 (pedantic): Alias Wpedantic.
418 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
419 (c_common_post_options): Likewise.
420 (sanitize_cpp_opts): Likewise.
421 * c-lex.c (interpret_float): Likewise.
422 * c-format.c (check_format_types): Likewise.
423 * c-common.c (pointer_int_sum): Likewise.
424 (c_sizeof_or_alignof_type): Likewise.
425 (c_add_case_label): Likewise.
426 (c_do_switch_warnings): Likewise.
427 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
429 2012-04-15 Jason Merrill <jason@redhat.com>
432 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
433 (C_STD_NAME): Distinguish between C++98 and C++11.
435 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
438 * c-common.h (uint16_type_node): Rename into...
439 (c_uint16_type_node): ...this.
440 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
441 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
443 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
445 * c-common.c (warn_if_unused_value): Move definition to here.
446 * c-common.h (warn_if_unused_value): Move declaration to here.
448 2012-03-23 William Bader <williambader@hotmail.com>
450 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
452 2012-03-20 Jason Merrill <jason@redhat.com>
454 * c-common.h (enum cxx_dialect): Add cxx1y.
455 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
457 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
458 * c-opts.c (c_common_post_options): Likewise.
459 (set_std_cxx1y): New.
460 (c_common_handle_option): Call it.
461 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
463 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
466 * c.opt ([Wuseless-cast]): Add.
468 2012-03-16 Richard Guenther <rguenther@suse.de>
470 * c-pretty-print.c (pp_c_initializer_list): Adjust.
472 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
475 * c.opt (ftemplate-backtrace-limit) Add.
477 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
479 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
481 * c-pragma.c (handle_pragma_extern_prefix): Remove.
482 (init_pragma): Don't register extern_prefix.
484 2012-03-12 Richard Guenther <rguenther@suse.de>
486 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
487 (builtin_type_for_size): Likewise.
489 2012-02-13 Jakub Jelinek <jakub@redhat.com>
492 * c-common.c (sync_resolve_params): Don't decide whether to convert
493 or not based on TYPE_SIZE comparison, convert whenever arg_type
494 is unsigned INTEGER_TYPE.
496 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
499 * c.opt ([Wunused-local-typedefs]): Fix description.
501 2012-01-24 Mike Stump <mikestump@comcast.net>
503 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
506 2012-01-18 Richard Guenther <rguenther@suse.de>
508 * c-opts.c (c_common_post_options): Reset LTO flags if
509 we are about to generate a PCH.
511 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
514 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
515 use pp_unsigned_wide_integer.
517 2012-01-10 Richard Guenther <rguenther@suse.de>
520 * c-opts.c (c_common_handle_option): Move -Werror handling
521 to language independent code.
523 2012-01-05 Richard Guenther <rguenther@suse.de>
526 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
529 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
532 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
533 of array types with an unknown bound.
535 2011-12-20 Joseph Myers <joseph@codesourcery.com>
537 * c-common.c (flag_isoc99): Update comment to refer to C11.
538 (flag_isoc1x): Change to flag_isoc11.
539 * c-common.h (flag_isoc99): Update comment to refer to C11.
540 (flag_isoc1x): Change to flag_isoc11.
541 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
543 * c-opts.c (set_std_c1x): Change to set_std_c11.
544 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
546 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
547 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
548 * c.opt (std=c1x): Change to std=c11. Document as non-draft
550 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
551 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
552 (std=gnu1x): Make alias of std=gnu11.
554 2011-12-19 Jason Merrill <jason@redhat.com>
557 * c-common.c (handle_transparent_union_attribute): Check the first
558 field if the type is complete.
560 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
563 * c-common.c (RID_IS_FINAL): Add.
564 * c-common.h (RID_IS_FINAL): Add.
566 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
568 * c.opt (fgnu-runtime): Provide full description.
569 (fnext-runtime): Likewise.
570 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
572 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
574 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
575 predefines in one place. Add LOCK_FREE predefines.
576 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
579 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
582 * c-common.c (get_atomic_generic_size): Check for various error
584 (resolve_overloaded_atomic_exchange,
585 resolve_overloaded_atomic_compare_exchange,
586 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
587 error_mark_node for error conditions.
589 2011-11-08 Richard Guenther <rguenther@suse.de>
594 2011-11-07 Richard Henderson <rth@redhat.com>
595 Aldy Hernandez <aldyh@redhat.com>
596 Torvald Riegel <triegel@redhat.com>
598 Merged from transactional-memory.
600 * c-common.c (handle_tm_wrap_attribute,
601 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
602 (struct c_common_reswords): Added __transaction* keywords.
603 (struct c_common_attribute_table): Added transaction* and tm_regparm
605 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
607 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
608 find_tm_attribute): Declare.
610 2011-11-07 Jason Merrill <jason@redhat.com>
613 * c-common.c, c-common.h: Revert yesterday's changes.
615 2011-11-06 Jason Merrill <jason@redhat.com>
618 * c-common.c (decl_has_visibility_attr): Split out from...
619 (c_determine_visibility): ...here.
620 * c-common.h: Declare it.
622 2011-11-06 Joseph Myers <joseph@codesourcery.com>
624 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
625 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
627 (check_user_alignment): New. Split out of
628 handle_aligned_attribute. Disallow integer constants with
629 noninteger types. Conditionally allow zero.
630 (handle_aligned_attribute): Use check_user_alignment.
631 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
633 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
634 Richard Henderson <rth@redhat.com>
636 Merged from cxx-mem-model.
638 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
639 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
640 parameters that are the same type size.
641 (get_atomic_generic_size): New. Find size of generic
642 atomic function parameters and do typechecking.
643 (add_atomic_size_parameter): New. Insert size into parameter list.
644 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
645 either __atomic_exchange_n or external library call.
646 (resolve_overloaded_atomic_compare_exchange): Restructure
647 __atomic_compare_exchange to either _n variant or external library call.
648 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
649 __atomic_load_n or an external library call.
650 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
651 __atomic_store_n or an external library call.
652 (resolve_overloaded_builtin): Handle new __atomic builtins.
654 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
657 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
658 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
659 <INDIRECT_REF>: Return the argument.
660 <ARRAY_REF>: Remove special code for negative offset.
661 Call fold_build_pointer_plus instead of size_binop.
662 (fold_offsetof): Remove STOP_REF argument and adjust.
663 * c-common.h (fold_offsetof_1): Declare.
664 (fold_offsetof): Remove STOP_REF argument.
666 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
669 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
670 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
671 Wnarrowing for C++0x and C++98.
672 * c.opt ([Wnarrowing]): Update.
674 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
677 * c.opt: Add Wzero-as-null-pointer-constant.
679 2011-10-31 Jason Merrill <jason@redhat.com>
681 * c.opt (-fdeduce-init-list): Off by default.
684 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
685 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
687 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
689 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
692 * c.opt (fvisibility-inlines-hidden): Description change.
694 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
696 Implement C++11 user-defined literals.
697 * c-common.c (build_userdef_literal): New.
698 * c-common.def: New tree code.
699 * c-common.h (tree_userdef_literal): New tree struct and accessors.
700 * c-lex.c (interpret_float): Add suffix parm.
701 (c_lex_with_flags): Build literal tokens.
703 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
707 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
710 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
711 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
712 Wnarrowing for C++0x and C++98.
713 * c.opt ([Wnarrowing]): Update.
715 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
718 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
719 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
720 Wnarrowing for C++0x and C++98.
721 * c.opt ([Wnarrowing]): Update.
723 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
726 * c-common.c (conversion_warning): Remove code looking for
729 2011-10-18 Dodji Seketeli <dodji@redhat.com>
732 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
733 !NO_IMPLICIT_EXTERN_C.
735 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
737 * c-common.c (c_common_reswords): Add __bases,
739 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
741 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
744 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
746 2011-10-15 Tom Tromey <tromey@redhat.com>
747 Dodji Seketeli <dodji@redhat.com>
749 * c.opt (fdebug-cpp): New option.
750 * c-opts.c (c_common_handle_option): Handle the option.
751 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
752 output stream in parameter. Factorized from ...
753 (maybe_print_line): ... this. Dump location debug information when
754 -fdebug-cpp is in effect.
755 (print_line_1): New static function. Takes an output stream in
756 parameter. Factorized from ...
757 (print_line): ... here. Dump location information when -fdebug-cpp
759 (scan_translation_unit): Dump location information when
760 -fdebug-cpp is in effect.
762 2011-10-15 Tom Tromey <tromey@redhat.com>
763 Dodji Seketeli <dodji@redhat.com>
765 * c.opt (ftrack-macro-expansion): New option. Handle it with and
767 * c-opts.c (c_common_handle_option)<case
768 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
769 cases. Handle -ftrack-macro-expansion with and without argument.
771 2011-10-15 Tom Tromey <tromey@redhat.com>
772 Dodji Seketeli <dodji@redhat.com>
774 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
775 (print_line, cb_define, do_line_change): Adjust to avoid touching
776 the internals of struct line_map. Use the public API instead.
777 * c-pch.c (c_common_read_pch): Likewise.
778 * c-lex.c (fe_file_change): Likewise.
780 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
783 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
785 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
788 * c-pretty-print.c (pp_c_floating_constant): Output
789 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
791 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
793 * c-common.c (def_builtin_1): Delete old interface with two
794 parallel arrays to hold standard builtin declarations, and replace
795 it with a function based interface that can support creating
796 builtins on the fly in the future. Change all uses, and poison
797 the old names. Make sure 0 is not a legitimate builtin index.
798 * c-omp.c (c_finish_omp_barrier): Ditto.
799 (c_finish_omp_taskwait): Ditto.
800 (c_finish_omp_flush): Ditto.
802 2011-10-11 Tristan Gingold <gingold@adacore.com>
804 * c.opt: (fallow-parameterless-variadic-functions): New.
806 2011-09-08 Dodji Seketeli <dodji@redhat.com>
808 PR c++/33255 - Support -Wunused-local-typedefs warning
809 * c-common.h (struct c_language_function::local_typedefs): New
811 (record_locally_defined_typedef, maybe_record_typedef_use)
812 (maybe_warn_unused_local_typedefs): Declare new functions.
813 * c-common.c (record_locally_defined_typedef)
814 (maybe_record_typedef_use)
815 (maybe_warn_unused_local_typedefs): Define new functions.
816 * c.opt: Declare new -Wunused-local-typedefs flag.
818 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
821 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
824 2011-09-05 Richard Guenther <rguenther@suse.de>
826 * c-common.c (complete_array_type): Use ssize_int (-1) instead
827 of integer_minus_one_node for empty array upper bounds.
829 2011-08-28 Dodji Seketeli <dodji@redhat.com>
831 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
832 it's the first time it's being called on this main TU.
834 2011-08-24 Richard Guenther <rguenther@suse.de>
837 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
839 2011-08-22 Gabriel Charette <gchare@google.com>
841 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
842 defined in cpp_init_builtins and c_cpp_builtins.
844 2011-08-19 Joseph Myers <joseph@codesourcery.com>
846 * c-common.c (c_common_reswords): Add __builtin_complex.
847 * c-common.h (RID_BUILTIN_COMPLEX): New.
849 2011-08-18 Joseph Myers <joseph@codesourcery.com>
851 * c-common.c (c_common_reswords): Add _Noreturn.
852 (keyword_is_function_specifier): Handle RID_NORETURN.
853 * c-common.h (RID_NORETURN): New.
855 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
857 * c-common.c (unsafe_conversion_p): New function. Check if it is
858 unsafe to convert an expression to the type.
859 (conversion_warning): Adjust, use unsafe_conversion_p.
860 * c-common.h (unsafe_conversion_p): New function declaration.
862 2011-08-02 Jakub Jelinek <jakub@redhat.com>
864 * c-common.h (c_finish_omp_atomic): Adjust prototype.
865 (c_finish_omp_taskyield): New prototype.
866 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
867 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
868 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
869 or RHS1 have side-effects, evaluate those too in the right spot,
870 if it is a decl and LHS is also a decl, error out if they
872 (c_finish_omp_taskyield): New function.
873 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
874 * c-pragma.c (omp_pragmas): Add taskyield.
875 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
876 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
877 PRAGMA_OMP_CLAUSE_MERGEABLE.
879 2011-07-25 Dodji Seketeli <dodji@redhat.com>
881 * c-common.h (set_underlying_type): Remove parm name from
884 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
886 * c-pretty-print.h: Search c-common.h in c-family.
888 2011-07-22 Jason Merrill <jason@redhat.com>
891 * c.opt (Wnarrowing): New.
894 * c-common.h: Declare c_linkage_bindings.
895 * c-pragma.c (handle_pragma_redefine_extname): Use it.
898 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
899 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
900 as flag_isoc99 for 'restrict'.
901 (pp_c_specifier_qualifier_list): Likewise for _Complex.
903 2011-07-21 Ian Lance Taylor <iant@google.com>
906 * c-common.c (c_disable_warnings): New static function.
907 (c_enable_warnings): New static function.
908 (c_fully_fold_internal): Change local unused_p to bool. Call
909 c_disable_warnings and c_enable_warnings rather than change
910 c_inhibit_evaluation_warnings.
912 2011-07-20 Jason Merrill <jason@redhat.com>
915 PR c++/42603 (DR 950)
916 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
917 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
919 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
921 2011-07-19 Richard Guenther <rguenther@suse.de>
923 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
924 * c-omp.c (c_finish_omp_for): Likewise.
926 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
928 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
929 body on the next line.
931 2011-07-08 Jason Merrill <jason@redhat.com>
934 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
937 * c-common.c (c_apply_type_quals_to_decl): Don't check
938 TYPE_NEEDS_CONSTRUCTING.
940 2011-07-06 Richard Guenther <rguenther@suse.de>
942 * c-common.c (c_common_nodes_and_builtins):
943 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
945 2011-07-05 Richard Guenther <rguenther@suse.de>
947 * c-common.c (c_common_nodes_and_builtins): Build all common
950 2011-06-27 Jakub Jelinek <jakub@redhat.com>
952 * c-common.h (c_tree_chain_next): New static inline function.
954 * c-common.c (check_builtin_function_arguments): Handle
955 BUILT_IN_ASSUME_ALIGNED.
957 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
959 * c-common.c: Add sync_ or SYNC__ to builtin names.
960 * c-omp.c: Add sync_ or SYNC__ to builtin names.
962 2011-06-20 Pierre Vittet <piervit@pvittet.com>
964 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
966 (gen_pragma_handler): New union.
967 (internal_pragma_handler): New type.
968 (c_register_pragma_with_data)
969 (c_register_pragma_with_expansion_and_data): New functions.
971 * c-pragma.c (registered_pragmas, c_register_pragma_1)
972 (c_register_pragma, c_register_pragma_with_expansion)
973 (c_invoke_pragma_handler): Changed to work with
974 internal_pragma_handler.
975 (c_register_pragma_with_data)
976 (c_register_pragma_with_expansion_and_data): New functions.
978 2011-06-14 Joseph Myers <joseph@codesourcery.com>
980 * c-common.c: Include common/common-target.h.
981 (handle_section_attribute): Use
982 targetm_common.have_named_sections.
983 * c-cppbuiltin.c: Include common/common-target.h.
984 (c_cpp_builtins): Use targetm_common.except_unwind_info.
986 2011-06-10 Richard Guenther <rguenther@suse.de>
988 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
989 to print a IDENTIFIER_NODE.
991 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
992 Joseph Myers <joseph@codesourcery.com>
994 * c.opt (fbuilding-libgcc): New option.
995 * c-cppbuiltin.c (c_cpp_builtins): Define
996 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
998 2011-06-07 Jason Merrill <jason@redhat.com>
1000 * c-common.c (max_tinst_depth): Lower default to 900.
1002 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1004 2011-06-07 Richard Guenther <rguenther@suse.de>
1006 * c-common.c (c_common_nodes_and_builtins): Do not set
1007 size_type_node or call set_sizetype.
1009 2011-06-07 Dodji Seketeli <dodji@redhat.com>
1012 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
1013 type when using pointer comparison to compare types.
1015 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1017 * c.opt: Add -Wdelete-non-virtual-dtor.
1018 * c-opts.c (c_common_handle_option): Include it in -Wall.
1020 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1025 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1027 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1030 2011-05-27 Jakub Jelinek <jakub@redhat.com>
1033 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1034 C++ don't call c_common_truthvalue_conversion on void type arms.
1036 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1038 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1039 (stmt_list_stack): Define.
1040 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1041 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1043 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1045 * c-common.c (warning_candidate_p): Check for BLOCKs.
1047 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1049 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1052 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1054 * c-common.c (def_fn_type): Remove extra va_end.
1056 2011-05-23 Jason Merrill <jason@redhat.com>
1059 * c-common.c (c_common_get_narrower): New.
1060 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1062 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1064 * c-common.h (check_function_arguments): Tweak prototype of
1065 check_function_arguments.
1066 * c-common.c (check_function_arguments): Likewise. Adjust
1067 calls to check_function_nonnull, check_function_format, and
1068 check_function_sentinel.
1069 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1070 separate attributes and typelist arguments. Use
1071 FOREACH_FUNCTION_ARGS to iterate over argument types.
1073 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1075 * c-common.c (c_common_reswords): Reorder.
1076 * c-common.h (rid): Likewise.
1078 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1080 * c-common.c (def_fn_type): Don't call build_function_type, call
1081 build_function_type_array or build_varargs_function_type_array
1083 (c_common_nodes_and_builtins): Likewise.
1085 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1087 * c-common.c (c_add_case_label): Omit the loc argument to
1089 * c-common.h (build_case_label): Remove.
1090 * c-semantics.c (build_case_label): Remove.
1092 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1094 * c-objc.h (objc_start_method_definition): Update prototype.
1095 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1097 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1099 * c-common.c (check_main_parameter_types): Reindent. Don't use
1100 TYPE_ARG_TYPES directly.
1101 (handle_nonnull_attribute): Likewise.
1102 (sync_resolve_params): Likewise.
1103 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1104 to check_format_string.
1105 (handle_format_attribute): Likewise.
1106 (check_format_string): Take a function type to examine instead of
1107 a type list. Use a function_arg_iterator to step through argument
1110 2011-05-04 Richard Guenther <rguenther@suse.de>
1112 * c-common.c (fix_string_type): Use size_int for index type bounds.
1113 (start_fname_decls): Do not pass NULL to build_int_cst.
1114 (c_init_attributes): Likewise.
1115 * c-lex.c (c_lex_with_flags): Likewise.
1117 2011-04-27 Jason Merrill <jason@redhat.com>
1119 * c-common.c (make_tree_vector_from_list): New.
1120 * c-common.h: Declare it.
1122 2011-04-26 Richard Guenther <rguenther@suse.de>
1124 PR preprocessor/48248
1125 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1126 for output size with -P.
1128 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1130 * c-common.c (struct c_common_resword): Add __underlying_type.
1131 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1133 2011-04-20 Jim Meyering <meyering@redhat.com>
1135 * c-format.c (init_dollar_format_checking): Remove useless
1138 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1140 * c-objc.h (objc_get_interface_ivars): Removed.
1141 (objc_detect_field_duplicates): New.
1142 * stub-objc.c: Likewise.
1144 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1146 * stub-objc.c (objc_declare_protocols): Renamed to
1147 objc_declare_protocol.
1148 * c-objc.h: Likewise.
1150 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1152 * stub-objc.c (objc_declare_class): Updated argument name.
1154 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1156 * c-common.h (c_common_init_ts): Declare.
1157 * c-common.c (c_common_init_ts): Define.
1159 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1161 * c-objc.h (objc_build_message_expr): Updated prototype.
1162 * stub-objc.c (objc_build_message_expr): Likewise.
1164 2011-04-12 Martin Jambor <mjambor@suse.cz>
1166 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1169 2011-04-11 Richard Guenther <rguenther@suse.de>
1171 * c-common.c (complete_array_type): Build a range type of
1174 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1176 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1177 (handle_type_generic_attribute): Likewise.
1179 2011-04-07 Jason Merrill <jason@redhat.com>
1182 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1183 conversion from C++0x scoped enum.
1185 2011-04-06 Joseph Myers <joseph@codesourcery.com>
1187 * c-target-def.h: New file.
1188 * c-target.def: New file.
1189 * c-target.h: New file.
1190 * c-common.c (targetcm): Don't define here.
1191 * c-common.h (default_handle_c_option): Declare.
1192 * c-format.c: Include c-target.h instead of target.h.
1193 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1195 (default_handle_c_option): Move from targhooks.c.
1197 2011-03-29 Jakub Jelinek <jakub@redhat.com>
1199 PR preprocessor/48248
1200 * c-ppoutput.c (print): Add src_file field.
1201 (init_pp_output): Initialize it.
1202 (maybe_print_line): Don't optimize by adding up to 8 newlines
1203 if map->to_file and print.src_file are different file.
1204 (print_line): Update print.src_file.
1206 2011-03-25 Kai Tietz <ktietz@redhat.com>
1208 * c-ada-spec.c (compare_comment): Use filename_cmp
1209 instead of strcmp for filename.
1211 2011-03-25 Jeff Law <law@redhat.com>
1213 * c-family/c-common.c (def_fn_type): Add missing va_end.
1215 2011-03-25 Jason Merrill <jason@redhat.com>
1217 * c.opt: Add -std=c++03.
1219 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1221 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1223 2011-03-17 Kai Tietz
1226 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1227 Display allowed attributes for function pointer types.
1228 (pp_c_attributes_display): New function to display
1229 attributes having affects_type_identity flag set to true.
1230 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1232 * c-common.c (c_common_attribute_table):
1234 (c_common_format_attribute_table): Likewise.
1236 2011-03-18 Jason Merrill <jason@redhat.com>
1238 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1239 * c-common.h: Don't declare it here.
1240 * c-common.c: Or define it here.
1241 * c-opts.c (c_common_handle_option): Or set it here.
1244 * c-common.c (handle_transparent_union_attribute): Don't
1245 make a duplicate type in C++.
1247 2011-03-15 Jason Merrill <jason@redhat.com>
1249 * c-common.c (max_constexpr_depth): New.
1250 * c-common.h: Declare it.
1251 * c-opts.c (c_common_handle_option): Set it.
1252 * c.opt (fconstexpr-depth): New option.
1254 2011-03-11 Jason Merrill <jason@redhat.com>
1256 * c-common.c (attribute_takes_identifier_p): Add missing const.
1259 * c-common.c (attribute_takes_identifier_p): Assume that an
1260 unknown attribute takes an identifier.
1262 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1265 * c-common.c (c_type_hash): Call list_length instead of iterating
1266 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1268 2011-02-19 Jakub Jelinek <jakub@redhat.com>
1271 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1273 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1275 * c.opt (fobjc-abi-version=) New.
1276 (fobjc-nilcheck): New.
1278 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1281 * c-common.h (keyword_is_decl_specifier): Declare.
1282 * c-common.c (keyword_is_decl_specifier): Define.
1283 (keyword_is_function_specifier): New function.
1285 2011-01-26 Jakub Jelinek <jakub@redhat.com>
1288 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1289 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1292 2011-01-26 Arnaud Charlet <charlet@adacore.com>
1294 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1296 2011-01-26 Jakub Jelinek <jakub@redhat.com>
1299 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1300 after init_c_lex if pch_file is set.
1302 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1305 * c.opt (-fkeep-inline-dllexport): New switch.
1307 2011-01-12 Richard Guenther <rguenther@suse.de>
1310 * c-common.c (handle_weak_attribute): Warn instead of error
1311 on declaring an inline function weak.
1313 2011-01-05 Tom Tromey <tromey@redhat.com>
1315 * c-common.h (lvalue_error): Update.
1316 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1319 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
1322 * c-objc.h (objc_finish_message_expr): Added argument to
1325 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1327 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1330 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1332 * c-objc.h (objc_maybe_warn_exceptions): New.
1333 * stub-objc.c (objc_maybe_warn_exceptions): New.
1335 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1337 * c-common.h (readonly_error): Declare.
1338 * c-common.c (readonly_error): Define.
1340 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1342 * c-common.h (invalid_indirection_error): Declare.
1343 * c-common.c (invalid_indirection_error): Define.
1345 2010-12-03 Richard Guenther <rguenther@suse.de>
1348 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1349 (pp_c_unary_expression): Likewise.
1350 (pp_c_expression): Likewise.
1352 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1354 * c-common.h (objc_finish_function): New.
1355 (objc_non_volatilized_type): Removed.
1356 (objc_type_quals_match): Removed.
1357 * stub-objc.c (objc_finish_function): New.
1358 (objc_non_volatilized_type): Removed.
1359 (objc_type_quals_match): Removed.
1361 2010-11-30 Joseph Myers <joseph@codesourcery.com>
1363 * c-common.h (parse_optimize_options): Declare.
1364 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1365 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1367 2010-11-29 Joseph Myers <joseph@codesourcery.com>
1369 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1371 * c-pch.c (O_BINARY): Don't define here.
1372 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1374 2010-11-25 Joseph Myers <joseph@codesourcery.com>
1376 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1377 targetm.except_unwind_info.
1379 2010-11-23 Joseph Myers <joseph@codesourcery.com>
1381 * c-opts.c (c_common_handle_option): Pass location to
1382 set_struct_debug_option.
1384 2010-11-23 Joseph Myers <joseph@codesourcery.com>
1386 * c-common.c (visibility_options): Move from ../opts.c.
1387 * c-common.h (struct visibility_flags, visibility_options):
1389 * c-opts.c (finish_options): Rename to c_finish_options.
1390 (c_common_init): Update call to finish_options.
1392 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1395 * c-lex.c (lex_string): Check that each string in an Objective-C
1396 string concat sequence starts with either one or zero '@', and
1397 that there are no spurious '@' signs at the end.
1399 2010-11-20 Joseph Myers <joseph@codesourcery.com>
1401 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1402 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1403 HANDLE_PRAGMA_VISIBILITY.
1404 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1405 HANDLE_PRAGMA_VISIBILITY): Don't define.
1406 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1408 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1413 * c-common.h (keyword_begins_type_specifier): Declare.
1414 (keyword_is_storage_class_specifier): Declare.
1415 (keyword_is_type_qualifier): Declare.
1416 * c-common.c (keyword_begins_type_specifier): New function.
1417 (keyword_is_storage_class_specifier): New function.
1418 (keyword_is_type_qualifier): Declare.
1420 2010-11-19 Joseph Myers <joseph@codesourcery.com>
1423 * c-common.c (in_late_binary_op): Define.
1424 (c_common_truthvalue_conversion): Check in_late_binary_op before
1425 calling c_save_expr.
1426 * c-common.h (in_late_binary_op): Declare.
1428 2010-11-19 Joseph Myers <joseph@codesourcery.com>
1430 * c-opts.c (c_common_handle_option): Update calls to
1431 set_struct_debug_option.
1433 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1435 * c-common.h (objc_declare_protocols): Added additional argument.
1436 * stub-objc.c (objc_declare_protocol): Same change.
1438 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1441 * c-common.h (build_real_imag_expr): Declare.
1442 * c-semantics.c (build_real_imag_expr): Define.
1444 2010-11-17 Joseph Myers <joseph@codesourcery.com>
1446 * c-opts.c (c_common_parse_file): Take no arguments.
1447 * c-common.h (c_common_parse_file): Update prototype.
1449 2010-11-16 Jakub Jelinek <jakub@redhat.com>
1452 * c-common.c (warning_candidate_p): Don't track non-const calls
1455 2010-11-15 Ian Lance Taylor <iant@google.com>
1457 * c-lex.c (init_c_lex): Set macro debug callbacks if
1458 flag_dump_go_spec is set.
1460 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1462 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1463 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1465 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1467 PR preprocessor/45038
1468 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1471 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1473 * c-common.h (c_family_lang_mask): Declare.
1474 * c-opts.c (c_family_lang_mask): Make extern.
1475 * c-pragma.c (handle_pragma_diagnostic): Use
1476 control_warning_option.
1478 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1480 * c-common.c (parse_optimize_options): Update call to
1482 * c-common.h (c_common_handle_option): Update prototype.
1483 * c-opts.c (c_common_handle_option): Take location_t parameter and
1484 pass it to other functions.
1486 2010-11-11 Joseph Myers <joseph@codesourcery.com>
1488 * c-opts.c (warning_as_error_callback): Remove.
1489 (c_common_initialize_diagnostics): Don't call
1490 register_warning_as_error_callback.
1491 (c_common_handle_option): Handle -Werror=normalized= here.
1493 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1495 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1497 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1499 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1500 Remove trailing '.' from diagnostics.
1501 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1503 2010-11-10 Joseph Myers <joseph@codesourcery.com>
1505 * c-common.c (parse_optimize_options): Pass global_dc to
1507 * c-opts.c (c_common_handle_option): Pass &global_options to
1508 set_Wstrict_aliasing.
1509 * c.opt (v): Don't mark Common or document here.
1511 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1514 * c-format.c (format_type): New type gcc_objc_string_format_type.
1515 (valid_stringptr_type_p): New.
1516 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1517 (check_format_string): Pass expected type, use
1518 valid_stringptr_type_p (), check that the format string types are
1519 consistent with the format specification.
1520 (decode_format_attr): Warn if NSString is used outside objective-c.
1521 (format_types_orig): Add NSString.
1523 (format_flags): New.
1524 (check_format_arg): Handle format strings requiring an external parser.
1525 first_target_format_type: New variable.
1526 (handle_format_attribute): Set up first_target_format_type, pass the
1527 expected format arg string type to check_format_string().
1528 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1529 * stub-objc.c (objc_string_ref_type_p): New.
1530 (objc_check_format_arg): New.
1532 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1534 Fixed using the Objective-C 2.0 dot-syntax with class names.
1535 * c-common.h (objc_build_class_component_ref): New.
1536 * stub-objc.c (objc_build_class_component_ref): New.
1538 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1540 * c.opt (Wproperty-assign-default): New option.
1542 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1544 Implemented -fobjc-std=objc1 flag.
1545 * c.opt (fobjc-std=objc1): New option.
1547 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1549 Implemented format and noreturn attributes for Objective-C methods.
1550 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1551 attribute for Objective-C methods.
1553 2010-10-31 Jason Merrill <jason@redhat.com>
1555 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1558 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1560 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1561 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1562 (objc_add_property_declaration): Removed arguments for copies and
1564 (objc_build_getter_call): Renamed to
1565 objc_maybe_build_component_ref.
1566 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1567 (objc_is_property_ref): New.
1568 * c-common.c (c_common_reswords): Removed copies and ivar.
1569 * stub-objc.c (objc_add_property_declaration): Removed arguments
1570 for copies and ivar.
1571 (objc_build_getter_call): Renamed to
1572 objc_maybe_build_component_ref.
1573 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1574 (objc_is_property_ref): New.
1576 2010-10-29 Arnaud Charlet <charlet@adacore.com>
1577 Matthew Gingell <gingell@adacore.com>
1579 * c-ada-spec.c (separate_class_package): New function.
1580 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1581 name of their enclosing package.
1582 (print_ada_declaration): Use separate_class_package.
1584 2010-10-27 Jason Merrill <jason@redhat.com>
1586 * c-common.c (c_common_reswords): Add __is_literal_type.
1587 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1589 * c-common.c (check_case_value): Remove special C++ code.
1591 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1593 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1594 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1596 (objc_add_property_declaration): Added additional arguments.
1597 (objc_property_attribute_kind): Removed.
1598 (objc_set_property_attr): Removed.
1599 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1601 * stub-objc.c (objc_add_property_declaration): Added additional
1603 (objc_set_property_attr): Removed.
1605 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1607 * c-common.h (objc_add_property_variable): Renamed to
1608 objc_add_property_declaration. Added location argument.
1609 * stub-objc.c (objc_add_property_variable): Same change.
1611 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1613 * c-common.h (objc_maybe_printable_name): New.
1614 * stub-objc.c (objc_maybe_printable_name): New.
1616 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1617 Andrew Pinski <pinskia@gmail.com>
1619 * c-common.h (c_common_mark_addressable_vec): Declare.
1620 * c-common.c (c_common_mark_addressable_vec): New function.
1622 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1624 * c-common.h (objc_set_method_type): Removed.
1625 (objc_add_method_declaration): Added boolean argument.
1626 (objc_start_method_definition): Same change.
1627 (objc_build_method_signature): Same change.
1628 * stub-objc.c (objc_set_method_type): Removed.
1629 (objc_add_method_declaration): Added boolean argument.
1630 (objc_start_method_definition): Same change.
1631 (objc_build_method_signature): Same change.
1633 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1635 * c-common.h (finish_file): Removed.
1636 (objc_write_global_declarations): New.
1637 * c-opts.c (c_common_parse_file): Do not call finish_file.
1638 * stub-objc.c (objc_write_global_declarations): New.
1640 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1642 Implemented parsing @synthesize and @dynamic for
1643 Objective-C/Objective-C++.
1644 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1645 (objc_add_synthesize_declaration): New.
1646 (objc_add_dynamic_declaration): New.
1647 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1648 * stub-objc.c (objc_add_synthesize_declaration): New.
1649 (objc_add_dynamic_declaration): New.
1651 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1654 * c-cppbuiltin.c (mode_has_fma): Move function here from
1655 builtins.c. Don't use the fma optab, instead just use the
1656 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1659 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1661 Merge from 'apple/trunk' branch on FSF servers.
1663 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1666 * c-common.h (objc_non_volatilized_type): New declaration
1667 * stub-objc.c (objc_non_volatilized_type): New stub.
1669 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1671 Merge from 'apple/trunk' branch on FSF servers.
1673 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1676 * c-common.h (objc_diagnose_private_ivar): New decl.
1677 * stub-objc.c (objc_diagnose_private_ivar): New stub.
1679 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1681 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1682 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1683 (objc_ivar_visibility_kind): New enum.
1684 (objc_set_visibility): Adjust prototype to use visibility enum.
1685 * stub-objc.c (objc_set_visibility): Adjust stub to use
1688 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1690 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1691 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1692 has the appropriate fma builtins.
1693 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1695 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1697 merge from FSF apple 'trunk' branch.
1698 2006 Fariborz Jahanian <fjahanian@apple.com>
1700 Radars 4436866, 4505126, 4506903, 4517826
1701 * c-common.c (c_common_resword): Define @property and its attributes.
1702 * c-common.h: Define property attribute enum entries.
1703 (OBJC_IS_PATTR_KEYWORD): New.
1704 (objc_property_attribute_kind): New enum.
1705 Declare objc_set_property_attr (), objc_add_property_variable (),
1706 objc_build_getter_call () and objc_build_setter_call ().
1707 * stub-objc.c (objc_set_property_attr): New stub.
1708 (objc_add_property_variable): Likewise.
1709 (objc_build_getter_call): Likewise.
1710 (objc_build_setter_call) Likewise.
1712 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1714 merge from FSF apple 'trunk' branch.
1715 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1717 Radar 3803157 (method attributes)
1718 * c-common.c (handle_deprecated_attribute): Recognize
1719 objc methods as valid declarations.
1720 * c-common.h: Declare objc_method_decl ().
1721 * stub-objc.c (objc_method_decl): New stub.
1723 2010-10-08 Joseph Myers <joseph@codesourcery.com>
1725 * c-common.c (parse_optimize_options): Call
1726 decode_cmdline_options_to_array_default_mask before
1727 decode_options. Update arguments to decode_options.
1728 * c-common.h (c_common_init_options_struct): Declare.
1729 * c-opts.c (c_common_init_options_struct): New. Split out from
1730 c_common_init_options.
1732 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1734 Implemented fast enumeration for Objective-C.
1735 * c-common.h (objc_finish_foreach_loop): New.
1736 * stub-objc.c (objc_finish_foreach_loop): New.
1738 2010-10-05 Joseph Myers <joseph@codesourcery.com>
1740 * c-common.h (struct diagnostic_context): Don't declare here.
1741 (c_common_initialize_diagnostics): Declare using
1742 diagnostic_context typedef.
1743 * c-opts.c (c_common_handle_option): Pass global_dc to
1744 handle_generated_option.
1746 2010-10-04 Joseph Myers <joseph@codesourcery.com>
1748 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1749 handle_generated_option.
1751 2010-10-03 Ian Lance Taylor <iant@google.com>
1753 * c.opt (-fplan9-extensions): New option.
1755 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1757 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1759 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1760 of duplicating code.
1762 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1764 * c-common.c: Add two new entries for @optional
1765 and @required keywords.
1767 merge from FSF 'apple/trunk' branch.
1768 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1771 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1772 objective-c keywords.
1773 (objc_set_method_opt): New declaration.
1774 * stub-objc.c (objc_set_method_opt): New stub.
1776 2010-09-30 Joseph Myers <joseph@codesourcery.com>
1778 * c-common.c (handle_optimize_attribute): Pass &global_options to
1779 cl_optimization_save and cl_optimization_restore.
1780 * c-opts.c (c_common_handle_option): Pass &global_options to
1781 handle_generated_option.
1782 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1783 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1784 &global_options to cl_optimization_restore.
1786 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1788 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1789 Objective-C/Objective-C++ keywords.
1791 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1793 Merge from 'apple/trunk' branch on FSF servers.
1795 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1798 * c-common.h (objc_check_global_decl): New declaration.
1799 * stub-objc.c (objc_check_global_decl): New stub.
1801 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1803 * c.opt: Don't use VarExists.
1805 2010-09-29 Joseph Myers <joseph@codesourcery.com>
1807 * c-common.c (c_cpp_error): Update names of diagnostic_context
1809 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1810 cl_optimization members.
1811 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1812 sanitize_cpp_opts, finish_options): Update names of cpp_options
1815 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1817 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1818 (objc_is_reserved_word): Removed.
1819 * c-common.c: Updated comments.
1820 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1821 objc_is_reserved_word.
1822 * stub-objc.c (objc_is_reserved_word): Removed.
1824 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1826 * c-common.h (objc_add_method_declaration): Adjust prototype to
1828 (objc_start_method_definition): Likewise.
1829 (objc_build_keyword_decl): Likewise.
1830 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1831 (objc_start_method_definition): Likewise.
1832 (objc_build_keyword_decl): Likewise.
1834 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1836 * c-common.h (objc_start_class_interface): Adjust prototype.
1837 (objc_start_category_interface): Likewise.
1838 (objc_start_protocol): Likewise.
1839 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1840 (objc_start_class_interface): Likewise.
1841 (objc_start_category_interface): Likewise.
1843 2010-09-27 Ian Lance Taylor <iant@google.com>
1845 * c-common.c (c_common_attribute_table): Add no_split_stack.
1846 (handle_no_split_stack_attribute): New static function.
1848 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1850 Merge from 'apple/trunk' branch on FSF servers.
1852 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1855 * c-common.h (objc_have_common_type): New declaration.
1856 * stub-objc.c (objc_have_common_type): New stub.
1858 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1861 * c-common.h (objc_common_type): New prototype.
1862 * stub-objc.c (objc_common_type): New stub.
1864 2010-09-24 Jan Hubicka <jh@suse.cz>
1866 * c-common.c (handle_leaf_attribute): New function.
1867 (struct attribute_spec c_common_att): Add leaf.
1869 2010-09-22 Joseph Myers <joseph@codesourcery.com>
1871 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1872 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1873 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1874 -include-barrier, -include-directory, -include-directory=,
1875 -include-directory-after, -include-directory-after=,
1876 -include-prefix, -include-prefix=, -include-with-prefix,
1877 -include-with-prefix=, -include-with-prefix-after,
1878 -include-with-prefix-after=, -include-with-prefix-before,
1879 -include-with-prefix-before=, -no-integrated-cpp,
1880 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1881 -output=, -pedantic, -pedantic-errors, -preprocess,
1882 -print-missing-file-dependencies, -trace-includes, -traditional,
1883 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1884 -user-dependencies, -verbose, -write-dependencies,
1885 -write-user-dependencies, no-integrated-cpp, traditional): New.
1887 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1890 * c-common.h (objc_start_method_definition): Return bool instead
1892 * stub-objc.c (objc_start_method_definition): Return bool instead
1895 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1898 * c-common.h (objc_get_interface_ivars): New declaration.
1899 * stub-objc.c (objc_get_interface_ivars): New stub.
1901 2010-09-15 Ian Lance Taylor <iant@google.com>
1903 * c-common.c (parse_optimize_options): Do not capitalize warning
1904 messages. Remove period at end of warning message.
1906 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1908 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1909 (handle_alias_attribute): ... here.
1910 (handle_ifunc_attribute): New.
1912 2010-09-06 Mark Mitchell <mark@codesourcery.com>
1914 * c-common.h (do_warn_double_promotion): Declare.
1915 * c-common.c (do_warn_double_promotion): Define.
1917 2010-09-05 Mark Mitchell <mark@codesourcery.com>
1919 * c.opt (Wdouble-promotion): New.
1921 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1923 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1924 fvtable-thunks, fxref): Mark no longer supported in help text.
1926 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1928 * c.opt (Wimport, fall-virtual, falt-external-templates,
1929 fdefault-inline, fenum-int-equiv, fexternal-templates,
1930 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1931 fname-mangling-version-, fnew-abi, fnonnull-objects,
1932 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1933 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1935 (fhandle-exceptions): Mark with Alias and Warn.
1936 * c-opts.c (c_common_handle_option): Don't handle options marked
1939 2010-09-02 Joseph Myers <joseph@codesourcery.com>
1941 * c.opt (Wcomments, Werror-implicit-function-declaration,
1942 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1943 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1945 * c-common.c (option_codes): Use OPT_Wcomment instead of
1947 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1948 Don't handle options marked as aliases.
1950 2010-08-25 Richard Guenther <rguenther@suse.de>
1952 * c-common.c (c_common_get_alias_set): Remove special
1953 handling for pointers.
1955 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1957 * c-common.c: Use FOR_EACH_VEC_ELT.
1958 * c-gimplify.c: Likewise.
1959 * c-pragma.c: Likewise.
1961 2010-08-16 Joseph Myers <joseph@codesourcery.com>
1963 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1965 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1967 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1968 instead of OPT_MDX and OPT_MMDX.
1970 2010-08-16 Joseph Myers <joseph@codesourcery.com>
1972 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1974 2010-08-12 Joseph Myers <joseph@codesourcery.com>
1976 * c.opt (MD, MMD): Change to MDX and MMDX.
1977 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1979 2010-08-11 Joseph Myers <joseph@codesourcery.com>
1981 * c-opts.c (c_common_handle_option): Call handle_generated_option
1982 instead of handle_option.
1984 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1986 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1987 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1989 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1991 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1992 (pending_redefine_extname): Change type to a VEC.
1993 (add_to_renaming_pragma_list): Update for new type of
1994 pending_redefine_extname.
1995 (maybe_apply_renaming_pragma): Likewise.
1997 2010-08-04 Arnaud Charlet <charlet@adacore.com>
1999 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2001 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2002 decide whether a type has already been declared/seen.
2003 Do not go to the original type.
2004 (dump_nested_types): New parameter forward.
2005 Generate forward declaration if needed and mark type as visited.
2006 (print_ada_declaration): Call dump_nested_types if not already done.
2007 Mark types as visited.
2009 2010-08-03 Joseph Myers <joseph@codesourcery.com>
2011 * c.opt (-print-pch-checksum): Remove option.
2012 * c-opts.c (c_common_handle_option): Don't handle
2013 OPT_print_pch_checksum.
2015 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2017 * c-common.h (c_common_handle_option): Update prototype and return
2019 * c-opts.c (c_common_handle_option): Update prototype and return
2020 value type. Update calls to handle_option and
2021 enable_warning_as_error.
2023 2010-07-27 Jakub Jelinek <jakub@redhat.com>
2026 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2028 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2030 * c-common.h (c_common_missing_argument): Remove.
2031 * c-opts.c (c_common_missing_argument): Remove.
2032 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2033 idirafter, imacros, include, isysroot, isystem, iquote): Add
2035 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2037 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2039 * c-common.h (c_common_option_lang_mask,
2040 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2042 (c_common_init_options): Update prototype.
2043 * c-opts.c (c_common_option_lang_mask): New.
2044 (c_common_initialize_diagnostics): Split out of
2045 c_common_init_options.
2046 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2048 (c_common_init_options): Update prototype. Use decoded options in
2049 search for -lang-asm.
2051 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2053 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2054 * c-format.c: Likewise.
2056 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2058 * c-common.h: Include diagnostic-core.h. Error if already
2060 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2062 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2064 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2065 Do not include expr.h
2066 (vector_mode_valid_p): Move here.
2068 2010-06-21 DJ Delorie <dj@redhat.com>
2070 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2071 allow these pragmas anywhere.
2073 2010-06-14 Jakub Jelinek <jakub@redhat.com>
2076 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2077 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2078 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2079 ggc_strdup instead of xstrdup.
2081 2010-06-10 Jakub Jelinek <jakub@redhat.com>
2083 * c-cppbuiltin.c: Include cpp-id-data.h.
2084 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2085 (lazy_hex_fp_value): New function.
2086 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2088 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2090 * c-gimplify.c: Do not include tree-flow.h
2092 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2095 * c-common.c: Rename targetm member:
2096 targetm.enum_va_list -> targetm.enum_va_list_p
2098 2010-06-28 Anatoly Sokolov <aesok@post.ru>
2100 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2102 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2104 * c-cppbuiltin.c: Do not include except.h.
2106 2010-06-24 Andi Kleen <ak@linux.intel.com>
2108 * c-common.c (warn_for_omitted_condop): New.
2109 * c-common.h (warn_for_omitted_condop): Add prototype.
2111 2010-06-21 Joseph Myers <joseph@codesourcery.com>
2113 * c.opt (lang-objc): Remove.
2114 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2116 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2118 * c-opts.c: Include "tm_p.h".
2120 2010-06-20 Joseph Myers <joseph@codesourcery.com>
2122 * c-common.c (parse_optimize_options): Update call to
2125 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2127 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2128 new type of types_used_by_cur_var_decl.
2130 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2133 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2134 for C++ standard compliance.
2136 2010-06-16 Jason Merrill <jason@redhat.com>
2138 * c.opt: Add -Wnoexcept.
2140 2010-06-16 Richard Guenther <rguenther@suse.de>
2143 * c-common.c (c_common_truthvalue_conversion): Remove
2144 premature and wrong optimization concering ADDR_EXPRs.
2146 2010-06-15 Arnaud Charlet <charlet@adacore.com>
2148 * c-ada-spec.c (dump_sloc): Remove column info.
2149 (is_simple_enum): New function.
2150 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2151 enum types when relevant.
2153 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2155 * c-common.c (conversion_warning): Warn at expression
2158 2010-06-10 Joseph Myers <joseph@codesourcery.com>
2160 * c-opts.c (c_common_handle_option): Don't handle
2163 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2165 * c-pragma.c (push_alignment): Use typed GC allocation.
2166 (handle_pragma_push_options): Likewise.
2168 * c-common.c (parse_optimize_options): Likewise.
2170 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2173 2010-06-07 Joseph Myers <joseph@codesourcery.com>
2175 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2176 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2177 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2178 flag_signed_bitfields, warn_strict_null_sentinel,
2179 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2180 flag_gen_declaration, flag_no_gnu_keywords,
2181 flag_implement_inlines, flag_implicit_templates,
2182 flag_implicit_inline_templates, flag_optional_diags,
2183 flag_elide_constructors, flag_default_inline, flag_rtti,
2184 flag_conserve_space, flag_access_control, flag_check_new,
2185 flag_new_for_scope, flag_weak, flag_working_directory,
2186 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2187 flag_enforce_eh_specs, flag_threadsafe_statics,
2188 flag_pretty_templates): Remove.
2189 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2190 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2191 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2192 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2193 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2194 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2195 flag_no_gnu_keywords, flag_implement_inlines,
2196 flag_implicit_templates, flag_implicit_inline_templates,
2197 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2198 flag_rtti, flag_conserve_space, flag_access_control,
2199 flag_check_new, flag_new_for_scope, flag_weak,
2200 flag_working_directory, flag_use_cxa_atexit,
2201 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2202 flag_threadsafe_statics, flag_pretty_templates,
2203 warn_strict_null_sentinel): Remove.
2204 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2205 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2206 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2207 fimplicit-inline-templates, fimplicit-templates,
2208 flax-vector-conversions, fms-extensions, fnil-receivers,
2209 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2210 frtti, fshort-double, fshort-enums, fshort-wchar,
2211 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2212 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2213 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2214 gen-decls, undef): Use Var.
2215 (fdefault-inline, foptional-diags): Document as doing nothing.
2216 * c-opts.c (c_common_handle_option): Remove cases for options now
2217 using Var. Mark ignored options as such.
2219 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2221 * c-common.c: Moved to here from parent directory.
2222 * c-common.def: Likewise.
2223 * c-common.h: Likewise.
2224 * c-cppbuiltin.c: Likewise.
2225 * c-dump.c: Likewise.
2226 * c-format.c: Likewise.
2227 * c-format.h : Likewise.
2228 * c-gimplify.c: Likewise.
2229 * c-lex.c: Likewise.
2230 * c-omp.c: Likewise.
2232 * c-opts.c: Likewise.
2233 * c-pch.c: Likewise.
2234 * c-ppoutput.c: Likewise.
2235 * c-pragma.c: Likewise.
2236 * c-pragma.h: Likewise.
2237 * c-pretty-print.c: Likewise.
2238 * c-pretty-print.h: Likewise.
2239 * c-semantics.c: Likewise.
2240 * stub-objc.c: Likewise.
2242 * c-common.c: Include gt-c-family-c-common.h.
2243 * c-pragma.c: Include gt-c-family-c-pragma.h.
2245 Copyright (C) 2010, 2011 Free Software Foundation, Inc.
2247 Copying and distribution of this file, with or without modification,
2248 are permitted in any medium without royalty provided the copyright
2249 notice and this notice are preserved.