blob: 0d112cfe7a7e9c7b04aaf1b903bd4dcd211176d0 [file] [log] [blame]
Bernhard Rosenkraenzeree2ec6d2012-10-10 01:40:27 +015912012-10-04 Arnaud Charlet <charlet@adacore.com>
2
3 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
4 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
5 out of dumpfile.h.
6
Bernhard Rosenkraenzer1d5e0062012-10-03 01:40:46 +015972012-09-25 Dehao Chen <dehao@google.com>
8
9 PR middle-end/54645
Bernhard Rosenkraenzeree2ec6d2012-10-10 01:40:27 +015910 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
Bernhard Rosenkraenzer1d5e0062012-10-03 01:40:46 +015911 map when read in the pch.
12
Bernhard Rosenkraenzer84c11392012-09-27 01:39:09 +0159132012-09-18 Arnaud Charlet <charlet@adacore.com>
14
15 * c-ada-spec.c: Style fixes.
16
172012-09-18 Thomas Quinot <quinot@adacore.com>
18
19 * c.opt (-fada-spec-parent): Define new command line switch.
20 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
21 is specified, generate binding spec as a child of the specified unit.
22
Bernhard Rosenkraenzerc83ebe52012-09-18 21:38:03 +0159232012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
24 Manuel López-Ibáñez <manu@gcc.gnu.org>
25
26 PR c++/53210
27 * c.opt ([Winit-self]): Enabled by -Wall in C++.
28
292012-08-23 Arnaud Charlet <charlet@adacore.com>
30
31 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
32 for pointers, and add missing Convention C pragma.
33 (print_ada_struct_decl): Add missing aliased keyword.
34 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
35
362012-08-17 Jakub Jelinek <jakub@redhat.com>
37
38 * c-common.c (sizeof_pointer_memaccess_warning): New function.
39 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
40 * c-opts.c (c_common_handle_option): Enable it for -Wall.
41 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
42 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
43
442012-08-10 Richard Guenther <rguenther@suse.de>
45
46 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
47
482012-08-07 Steven Bosscher <steven@gcc.gnu.org>
49
50 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
51 instead of separate pp_newline and pp_flush.
52 (print_c_tree): Likewise.
53
542012-07-26 Richard Henderson <rth@redhat.com>
55
56 * c-common.c (handle_hot_attribute): Allow labels.
57 (handle_cold_attribute): Likewise.
58
592012-07-20 Jakub Jelinek <jakub@redhat.com>
60
61 PR c++/28656
62 * c-common.c (check_function_nonnull): Handle multiple nonnull
63 attributes properly.
64
652012-07-16 Steven Bosscher <steven@gcc.gnu.org>
66
67 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
68 * c-ada-spec.c: Likewise.
69 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
70
712012-07-14 Steven Bosscher <steven@gcc.gnu.org>
72
73 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
74 Remove code conditional on it.
75
762012-07-11 Steven Bosscher <steven@gcc.gnu.org>
77
78 * c-gimplify.c: Do not include basic-block.h.
79 * c-common.c: Do not include linfuncs.h.
80
812012-07-08 Steven Bosscher <steven@gcc.gnu.org>
82
83 * c-common.h: Include tree.h.
84
852012-07-02 Jason Merrill <jason@redhat.com>
86
87 PR c++/53524
88 * c-common.c (get_priority): Call default_conversion.
89
902012-07-01 Uros Bizjak <ubizjak@gmail.com>
91
92 * c-pch.c (c_common_write_pch): Remove unused variables.
93
942012-06-29 Steven Bosscher <steven@gcc.gnu.org>
95
96 * cppspec.c: Moved from gcc/ to here.
97
982012-06-27 Kai Tietz <ktietz@redhat.com>
99
100 PR preprocessor/37215
101 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
102
1032012-06-21 Steven Bosscher <steven@gcc.gnu.org>
104
105 * c-common.h (c_common_print_pch_checksum): Remove.
106 * c-pch.c: Do not include output.h.
107 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
108 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
109 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
110 (struct c_pch_header): Remove.
111 (get_ident): Update gpch version.
112 (pch_init): Do not print executable_checksum to asm_out_file.
113 Do not fail if there is no asm_out_file to read back from. Set
114 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
115 (c_common_write_pch): Verify that nothing was written to asm_out_file
116 since pch_init was called. Do not write a c_pch_header, and do not
117 copy from asm_out_file to the PCH.
118 (c_common_read_pch): Do not read a c_pch_header, and do not restore
119 the content of asm_out_file from the PCH.
120 (c_common_print_pch_checksum): Remove.
121 * c-opts.c (c_common_init): Print out executable_checksum directly.
122
1232012-06-19 Steven Bosscher <steven@gcc.gnu.org>
124
125 * c-target.def (objc_declare_unresolved_class_reference,
126 objc_declare_class_definition): Add new hooks.
127
1282012-06-19 Steven Bosscher <steven@gcc.gnu.org>
129
130 * c-lex.c: Do not include output.h.
131 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
132 Remove uses of ASM_OUTPUT_IDENT.
133
1342012-06-15 Marc Glisse <marc.glisse@inria.fr>
135
136 PR c++/51033
137 * c-common.h (c_build_vec_perm_expr): Move decl here.
138 * c-common.c (c_build_vec_perm_expr): Move definition
139 here.
140
1412012-06-06 Steven Bosscher <steven@gcc.gnu.org>
142
143 * c.opt (fconserve-space): Turn into a no-op.
144
1452012-06-04 Sterling Augustine <saugustine@google.com>
146
147 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
148 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
149 both the start and end of the function.
150
1512012-06-04 Steven Bosscher <steven@gcc.gnu.org>
152
153 * c-common.c: Do not include output.h.
154 * c-pragma.c: Likewise.
155
1562012-06-04 Steven Bosscher <steven@gcc.gnu.org>
157
158 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
159 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
160 (lang_decl_name): Handle namespace decls.
161
1622012-05-31 Steven Bosscher <steven@gcc.gnu.org>
163
164 * c-ada-spec.c: Do not include output.h.
165 * c-semantics.c: Likewise.
166
1672012-05-29 Joseph Myers <joseph@codesourcery.com>
168
169 * c-common.c: Fix typo.
170
1712012-05-29 Michael Matz <matz@suse.de>
172
173 * c-common.h (c_expand_decl): Remove prototype.
174
1752012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
176
177 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
178 * c-opts.c (c_common_handle_option): Remove code handling
179 warn_missing_braces.
180
1812012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
182
183 PR c++/25137
184 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
185 -Wmissing_braces.
186
1872012-05-22 Dodji Seketeli <dodji@redhat.com>
188
189 PR c++/53322
190 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
191
1922012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
193
194 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
195 * c-opts.c (c_common_handle_option): Do not handle explicitly
196 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
197
1982012-05-16 Dodji Seketeli <dodji@redhat.com>
199
200 PR preprocessor/7263
201 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
202 to cpp_classify_number. For diagnostics, use the precise location
203 instead of the global input_location.
204
2052012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
206
207 PR c++/11856
208 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
209
2102012-05-14 Bernd Schmidt <bernds@codesourcery.com>
211
212 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
213
2142012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
215
216 PR 53063
217 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
218 Wreorder): Use LangEnabledBy.
219 * c-opts.c (c_common_handle_option): Do not enable them
220 explicitly. Call lang-specific generated functions.
221 (c_common_post_options): Do not set them here.
222
2232012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
224
225 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
226 Wmissing-field-initializers,Wmissing-parameter-type,
227 Wold-style-declaration,Woverride-init): Use EnabledBy.
228 * c-opts.c (c_common_post_options): Do not set here explicitly.
229
2302012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
231
232 PR 53063
233 * c-opts.c (c_common_handle_option): Use handle_generated_option
234 to enable sub-options.
235
2362012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
237
238 PR c++/53158
239 * c-common.c (warnings_for_convert_and_check): Use warning_at.
240
2412012-05-10 Richard Guenther <rguenther@suse.de>
242
243 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
244 adjust commentary about TYPE_IS_SIZETYPE types.
245
2462012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
247
248 PR c++/53261
249 * c-common.c (warn_logical_operator): Check that argument of
250 integer_zerop is not NULL.
251
2522012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
253
254 PR c/43772
255 * c-common.c (warn_logical_operator): Do not warn if either side
256 is already true or false.
257
2582012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
259
260 PR c/51712
261 * c-common.c (expr_original_type): New.
262 (shorten_compare): Do not warn for enumeration types.
263
2642012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
265
266 * c.opt (fpermissive): Add Var(flag_permissive).
267
2682012-04-30 Marc Glisse <marc.glisse@inria.fr>
269
270 PR c++/51033
271 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
272 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
273
2742012-04-30 Dodji Seketeli <dodji@redhat.com>
275
276 Add -Wvarargs option
277 * c.opt (Wvarargs): Define new option.
278
2792012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
280
281 * c-common.c (check_function_arguments): Replace
282 Wmissing-format-attribute with Wsuggest-attribute=format.
283
2842012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
285
286 * c.opt (Wsuggest-attribute=format): New. Alias of
287 Wmissing-format-attribute.
288 * c-format.c (decode_format_type): Replace
289 Wmissing-format-attribute with Wsuggest-attribute=format.
290 (check_function_format): Likewise.
291
2922012-04-27 Ollie Wild <aaw@google.com>
293
294 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
295 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
296 * c.opt: Add Wliteral-suffix.
297
2982012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
299
300 PR c/44774
301 * c.opt (Wpedantic): New.
302 (pedantic): Alias Wpedantic.
303 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
304 (c_common_post_options): Likewise.
305 (sanitize_cpp_opts): Likewise.
306 * c-lex.c (interpret_float): Likewise.
307 * c-format.c (check_format_types): Likewise.
308 * c-common.c (pointer_int_sum): Likewise.
309 (c_sizeof_or_alignof_type): Likewise.
310 (c_add_case_label): Likewise.
311 (c_do_switch_warnings): Likewise.
312 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
313
3142012-04-15 Jason Merrill <jason@redhat.com>
315
316 PR c++/52818
317 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
318 (C_STD_NAME): Distinguish between C++98 and C++11.
319
3202012-04-11 Eric Botcazou <ebotcazou@adacore.com>
321
322 PR target/52624
323 * c-common.h (uint16_type_node): Rename into...
324 (c_uint16_type_node): ...this.
325 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
326 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
327
3282012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
329
330 * c-common.c (warn_if_unused_value): Move definition to here.
331 * c-common.h (warn_if_unused_value): Move declaration to here.
332
3332012-03-23 William Bader <williambader@hotmail.com>
334
335 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
336
3372012-03-20 Jason Merrill <jason@redhat.com>
338
339 * c-common.h (enum cxx_dialect): Add cxx1y.
340 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
341 test.
342 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
343 * c-opts.c (c_common_post_options): Likewise.
344 (set_std_cxx1y): New.
345 (c_common_handle_option): Call it.
346 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
347
3482012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
349
350 PR c++/14710
351 * c.opt ([Wuseless-cast]): Add.
352
3532012-03-16 Richard Guenther <rguenther@suse.de>
354
355 * c-pretty-print.c (pp_c_initializer_list): Adjust.
356
3572012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
358
359 PR c++/44783
360 * c.opt (ftemplate-backtrace-limit) Add.
361
3622012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
363
364 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
365 handling.
366 * c-pragma.c (handle_pragma_extern_prefix): Remove.
367 (init_pragma): Don't register extern_prefix.
368
3692012-03-12 Richard Guenther <rguenther@suse.de>
370
371 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
372 (builtin_type_for_size): Likewise.
373
3742012-02-13 Jakub Jelinek <jakub@redhat.com>
375
376 PR c++/52215
377 * c-common.c (sync_resolve_params): Don't decide whether to convert
378 or not based on TYPE_SIZE comparison, convert whenever arg_type
379 is unsigned INTEGER_TYPE.
380
3812012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
382
383 PR c/52118
384 * c.opt ([Wunused-local-typedefs]): Fix description.
385
3862012-01-24 Mike Stump <mikestump@comcast.net>
387
388 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
389 exactly.
390
3912012-01-18 Richard Guenther <rguenther@suse.de>
392
393 * c-opts.c (c_common_post_options): Reset LTO flags if
394 we are about to generate a PCH.
395
3962012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
397
398 PR c++/51777
399 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
400 use pp_unsigned_wide_integer.
401
4022012-01-10 Richard Guenther <rguenther@suse.de>
403
404 PR middle-end/51806
405 * c-opts.c (c_common_handle_option): Move -Werror handling
406 to language independent code.
407
4082012-01-05 Richard Guenther <rguenther@suse.de>
409
410 PR middle-end/51764
411 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
412 from common.opt.
413
4142011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
415
416 PR c++/51316
417 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
418 of array types with an unknown bound.
419
4202011-12-20 Joseph Myers <joseph@codesourcery.com>
421
422 * c-common.c (flag_isoc99): Update comment to refer to C11.
423 (flag_isoc1x): Change to flag_isoc11.
424 * c-common.h (flag_isoc99): Update comment to refer to C11.
425 (flag_isoc1x): Change to flag_isoc11.
426 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
427 C11.
428 * c-opts.c (set_std_c1x): Change to set_std_c11.
429 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
430 Call set_std_c11.
431 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
432 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
433 * c.opt (std=c1x): Change to std=c11. Document as non-draft
434 standard.
435 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
436 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
437 (std=gnu1x): Make alias of std=gnu11.
438
4392011-12-19 Jason Merrill <jason@redhat.com>
440
441 PR c++/51228
442 * c-common.c (handle_transparent_union_attribute): Check the first
443 field if the type is complete.
444
4452011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
446
447 PR libstdc++/51365
448 * c-common.c (RID_IS_FINAL): Add.
449 * c-common.h (RID_IS_FINAL): Add.
450
4512011-11-30 Iain Sandoe <iains@gcc.gnu.org>
452
453 * c.opt (fgnu-runtime): Provide full description.
454 (fnext-runtime): Likewise.
455 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
456
4572011-11-28 Andrew MacLeod <amacleod@redhat.com>
458
459 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
460 predefines in one place. Add LOCK_FREE predefines.
461 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
462 new func.
463
4642011-11-24 Andrew MacLeod <amacleod@redhat.com>
465
466 PR c/51256
467 * c-common.c (get_atomic_generic_size): Check for various error
468 conditions
469 (resolve_overloaded_atomic_exchange,
470 resolve_overloaded_atomic_compare_exchange,
471 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
472 error_mark_node for error conditions.
473
4742011-11-08 Richard Guenther <rguenther@suse.de>
475
476 PR middle-end/51010
477 c-family/
478
4792011-11-07 Richard Henderson <rth@redhat.com>
480 Aldy Hernandez <aldyh@redhat.com>
481 Torvald Riegel <triegel@redhat.com>
482
483 Merged from transactional-memory.
484
485 * c-common.c (handle_tm_wrap_attribute,
486 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
487 (struct c_common_reswords): Added __transaction* keywords.
488 (struct c_common_attribute_table): Added transaction* and tm_regparm
489 attributes.
490 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
491 masks.
492 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
493 find_tm_attribute): Declare.
494
4952011-11-07 Jason Merrill <jason@redhat.com>
496
497 PR c++/35688
498 * c-common.c, c-common.h: Revert yesterday's changes.
499
5002011-11-06 Jason Merrill <jason@redhat.com>
501
502 PR c++/35688
503 * c-common.c (decl_has_visibility_attr): Split out from...
504 (c_determine_visibility): ...here.
505 * c-common.h: Declare it.
506
5072011-11-06 Joseph Myers <joseph@codesourcery.com>
508
509 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
510 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
511 type.
512 (check_user_alignment): New. Split out of
513 handle_aligned_attribute. Disallow integer constants with
514 noninteger types. Conditionally allow zero.
515 (handle_aligned_attribute): Use check_user_alignment.
516 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
517
5182011-11-06 Andrew MacLeod <amacleod@redhat.com>
519 Richard Henderson <rth@redhat.com>
520
521 Merged from cxx-mem-model.
522
523 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
524 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
525 parameters that are the same type size.
526 (get_atomic_generic_size): New. Find size of generic
527 atomic function parameters and do typechecking.
528 (add_atomic_size_parameter): New. Insert size into parameter list.
529 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
530 either __atomic_exchange_n or external library call.
531 (resolve_overloaded_atomic_compare_exchange): Restructure
532 __atomic_compare_exchange to either _n variant or external library call.
533 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
534 __atomic_load_n or an external library call.
535 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
536 __atomic_store_n or an external library call.
537 (resolve_overloaded_builtin): Handle new __atomic builtins.
538
5392011-11-04 Eric Botcazou <ebotcazou@adacore.com>
540
541 PR c++/50608
542 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
543 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
544 <INDIRECT_REF>: Return the argument.
545 <ARRAY_REF>: Remove special code for negative offset.
546 Call fold_build_pointer_plus instead of size_binop.
547 (fold_offsetof): Remove STOP_REF argument and adjust.
548 * c-common.h (fold_offsetof_1): Declare.
549 (fold_offsetof): Remove STOP_REF argument.
550
5512011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
552
553 PR c++/50810
554 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
555 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
556 Wnarrowing for C++0x and C++98.
557 * c.opt ([Wnarrowing]): Update.
558
5592011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
560
561 PR c++/44277
562 * c.opt: Add Wzero-as-null-pointer-constant.
563
5642011-10-31 Jason Merrill <jason@redhat.com>
565
566 * c.opt (-fdeduce-init-list): Off by default.
567
568 PR c++/50920
569 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
570 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
571 and -Wc++11-compat.
572 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
573
5742011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
575
576 PR c++/30066
577 * c.opt (fvisibility-inlines-hidden): Description change.
578
5792011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
580
581 Implement C++11 user-defined literals.
582 * c-common.c (build_userdef_literal): New.
583 * c-common.def: New tree code.
584 * c-common.h (tree_userdef_literal): New tree struct and accessors.
585 * c-lex.c (interpret_float): Add suffix parm.
586 (c_lex_with_flags): Build literal tokens.
587
5882011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
589
590 PR c++/50841
591 Revert:
592 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
593
594 PR c++/50810
595 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
596 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
597 Wnarrowing for C++0x and C++98.
598 * c.opt ([Wnarrowing]): Update.
599
6002011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
601
602 PR c++/50810
603 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
604 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
605 Wnarrowing for C++0x and C++98.
606 * c.opt ([Wnarrowing]): Update.
607
6082011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
609
610 PR c++/45385
611 * c-common.c (conversion_warning): Remove code looking for
612 artificial operands.
613
6142011-10-18 Dodji Seketeli <dodji@redhat.com>
615
616 PR bootstrap/50760
617 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
618 !NO_IMPLICIT_EXTERN_C.
619
6202011-10-17 Michael Spertus <mike_spertus@symantec.com>
621
622 * c-common.c (c_common_reswords): Add __bases,
623 __direct_bases.
624 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
625
6262011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
627
628 PR c++/50757
629 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
630
6312011-10-15 Tom Tromey <tromey@redhat.com>
632 Dodji Seketeli <dodji@redhat.com>
633
634 * c.opt (fdebug-cpp): New option.
635 * c-opts.c (c_common_handle_option): Handle the option.
636 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
637 output stream in parameter. Factorized from ...
638 (maybe_print_line): ... this. Dump location debug information when
639 -fdebug-cpp is in effect.
640 (print_line_1): New static function. Takes an output stream in
641 parameter. Factorized from ...
642 (print_line): ... here. Dump location information when -fdebug-cpp
643 is in effect.
644 (scan_translation_unit): Dump location information when
645 -fdebug-cpp is in effect.
646
6472011-10-15 Tom Tromey <tromey@redhat.com>
648 Dodji Seketeli <dodji@redhat.com>
649
650 * c.opt (ftrack-macro-expansion): New option. Handle it with and
651 without argument.
652 * c-opts.c (c_common_handle_option)<case
653 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
654 cases. Handle -ftrack-macro-expansion with and without argument.
655
6562011-10-15 Tom Tromey <tromey@redhat.com>
657 Dodji Seketeli <dodji@redhat.com>
658
659 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
660 (print_line, cb_define, do_line_change): Adjust to avoid touching
661 the internals of struct line_map. Use the public API instead.
662 * c-pch.c (c_common_read_pch): Likewise.
663 * c-lex.c (fe_file_change): Likewise.
664
6652011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
666
667 PR c++/17212
668 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
669
6702011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
671
672 PR c++/33067
673 * c-pretty-print.c (pp_c_floating_constant): Output
674 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
675
6762011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
677
678 * c-common.c (def_builtin_1): Delete old interface with two
679 parallel arrays to hold standard builtin declarations, and replace
680 it with a function based interface that can support creating
681 builtins on the fly in the future. Change all uses, and poison
682 the old names. Make sure 0 is not a legitimate builtin index.
683 * c-omp.c (c_finish_omp_barrier): Ditto.
684 (c_finish_omp_taskwait): Ditto.
685 (c_finish_omp_flush): Ditto.
686
6872011-10-11 Tristan Gingold <gingold@adacore.com>
688
689 * c.opt: (fallow-parameterless-variadic-functions): New.
690
6912011-09-08 Dodji Seketeli <dodji@redhat.com>
692
693 PR c++/33255 - Support -Wunused-local-typedefs warning
694 * c-common.h (struct c_language_function::local_typedefs): New
695 field.
696 (record_locally_defined_typedef, maybe_record_typedef_use)
697 (maybe_warn_unused_local_typedefs): Declare new functions.
698 * c-common.c (record_locally_defined_typedef)
699 (maybe_record_typedef_use)
700 (maybe_warn_unused_local_typedefs): Define new functions.
701 * c.opt: Declare new -Wunused-local-typedefs flag.
702
7032011-09-06 Eric Botcazou <ebotcazou@adacore.com>
704
705 PR middle-end/50266
706 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
707 computations.
708
7092011-09-05 Richard Guenther <rguenther@suse.de>
710
711 * c-common.c (complete_array_type): Use ssize_int (-1) instead
712 of integer_minus_one_node for empty array upper bounds.
713
7142011-08-28 Dodji Seketeli <dodji@redhat.com>
715
716 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
717 it's the first time it's being called on this main TU.
718
7192011-08-24 Richard Guenther <rguenther@suse.de>
720
721 PR c/49396
722 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
723
7242011-08-22 Gabriel Charette <gchare@google.com>
725
726 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
727 defined in cpp_init_builtins and c_cpp_builtins.
728
7292011-08-19 Joseph Myers <joseph@codesourcery.com>
730
731 * c-common.c (c_common_reswords): Add __builtin_complex.
732 * c-common.h (RID_BUILTIN_COMPLEX): New.
733
7342011-08-18 Joseph Myers <joseph@codesourcery.com>
735
736 * c-common.c (c_common_reswords): Add _Noreturn.
737 (keyword_is_function_specifier): Handle RID_NORETURN.
738 * c-common.h (RID_NORETURN): New.
739
7402011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
741
742 * c-common.c (unsafe_conversion_p): New function. Check if it is
743 unsafe to convert an expression to the type.
744 (conversion_warning): Adjust, use unsafe_conversion_p.
745 * c-common.h (unsafe_conversion_p): New function declaration.
746
7472011-08-02 Jakub Jelinek <jakub@redhat.com>
748
749 * c-common.h (c_finish_omp_atomic): Adjust prototype.
750 (c_finish_omp_taskyield): New prototype.
751 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
752 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
753 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
754 or RHS1 have side-effects, evaluate those too in the right spot,
755 if it is a decl and LHS is also a decl, error out if they
756 aren't the same.
757 (c_finish_omp_taskyield): New function.
758 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
759 * c-pragma.c (omp_pragmas): Add taskyield.
760 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
761 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
762 PRAGMA_OMP_CLAUSE_MERGEABLE.
763
7642011-07-25 Dodji Seketeli <dodji@redhat.com>
765
766 * c-common.h (set_underlying_type): Remove parm name from
767 declaration.
768
7692011-07-25 Romain Geissler <romain.geissler@gmail.com>
770
771 * c-pretty-print.h: Search c-common.h in c-family.
772
7732011-07-22 Jason Merrill <jason@redhat.com>
774
775 PR c++/49793
776 * c.opt (Wnarrowing): New.
777
778 PR c++/30112
779 * c-common.h: Declare c_linkage_bindings.
780 * c-pragma.c (handle_pragma_redefine_extname): Use it.
781
782 PR c++/49813
783 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
784 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
785 as flag_isoc99 for 'restrict'.
786 (pp_c_specifier_qualifier_list): Likewise for _Complex.
787
7882011-07-21 Ian Lance Taylor <iant@google.com>
789
790 PR middle-end/49705
791 * c-common.c (c_disable_warnings): New static function.
792 (c_enable_warnings): New static function.
793 (c_fully_fold_internal): Change local unused_p to bool. Call
794 c_disable_warnings and c_enable_warnings rather than change
795 c_inhibit_evaluation_warnings.
796
7972011-07-20 Jason Merrill <jason@redhat.com>
798
799 PR c++/6709 (DR 743)
800 PR c++/42603 (DR 950)
801 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
802 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
803 (CPP_DECLTYPE): New.
804 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
805
8062011-07-19 Richard Guenther <rguenther@suse.de>
807
808 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
809 * c-omp.c (c_finish_omp_for): Likewise.
810
8112011-07-12 Eric Botcazou <ebotcazou@adacore.com>
812
813 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
814 body on the next line.
815
8162011-07-08 Jason Merrill <jason@redhat.com>
817
818 PR c++/45437
819 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
820
821 PR c++/49673
822 * c-common.c (c_apply_type_quals_to_decl): Don't check
823 TYPE_NEEDS_CONSTRUCTING.
824
8252011-07-06 Richard Guenther <rguenther@suse.de>
826
827 * c-common.c (c_common_nodes_and_builtins):
828 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
829
8302011-07-05 Richard Guenther <rguenther@suse.de>
831
832 * c-common.c (c_common_nodes_and_builtins): Build all common
833 tree nodes first.
834
8352011-06-27 Jakub Jelinek <jakub@redhat.com>
836
837 * c-common.h (c_tree_chain_next): New static inline function.
838
839 * c-common.c (check_builtin_function_arguments): Handle
840 BUILT_IN_ASSUME_ALIGNED.
841
8422011-06-21 Andrew MacLeod <amacleod@redhat.com>
843
844 * c-common.c: Add sync_ or SYNC__ to builtin names.
845 * c-omp.c: Add sync_ or SYNC__ to builtin names.
846
8472011-06-20 Pierre Vittet <piervit@pvittet.com>
848
849 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
850 handler.
851 (gen_pragma_handler): New union.
852 (internal_pragma_handler): New type.
853 (c_register_pragma_with_data)
854 (c_register_pragma_with_expansion_and_data): New functions.
855
856 * c-pragma.c (registered_pragmas, c_register_pragma_1)
857 (c_register_pragma, c_register_pragma_with_expansion)
858 (c_invoke_pragma_handler): Changed to work with
859 internal_pragma_handler.
860 (c_register_pragma_with_data)
861 (c_register_pragma_with_expansion_and_data): New functions.
862
8632011-06-14 Joseph Myers <joseph@codesourcery.com>
864
865 * c-common.c: Include common/common-target.h.
866 (handle_section_attribute): Use
867 targetm_common.have_named_sections.
868 * c-cppbuiltin.c: Include common/common-target.h.
869 (c_cpp_builtins): Use targetm_common.except_unwind_info.
870
8712011-06-10 Richard Guenther <rguenther@suse.de>
872
873 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
874 to print a IDENTIFIER_NODE.
875
8762011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
877 Joseph Myers <joseph@codesourcery.com>
878
879 * c.opt (fbuilding-libgcc): New option.
880 * c-cppbuiltin.c (c_cpp_builtins): Define
881 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
882
8832011-06-07 Jason Merrill <jason@redhat.com>
884
885 * c-common.c (max_tinst_depth): Lower default to 900.
886
887 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
888
8892011-06-07 Richard Guenther <rguenther@suse.de>
890
891 * c-common.c (c_common_nodes_and_builtins): Do not set
892 size_type_node or call set_sizetype.
893
8942011-06-07 Dodji Seketeli <dodji@redhat.com>
895
896 PR debug/49130
897 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
898 type when using pointer comparison to compare types.
899
9002011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
901
902 * c.opt: Add -Wdelete-non-virtual-dtor.
903 * c-opts.c (c_common_handle_option): Include it in -Wall.
904
9052011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
906
907 PR bootstrap/49190
908
909 Revert:
910 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
911
912 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
913 not tree_common.
914
9152011-05-27 Jakub Jelinek <jakub@redhat.com>
916
917 PR c++/49165
918 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
919 C++ don't call c_common_truthvalue_conversion on void type arms.
920
9212011-05-27 Nathan Froyd <froydnj@codesourcery.com>
922
923 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
924 (stmt_list_stack): Define.
925 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
926 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
927
9282011-05-26 Nathan Froyd <froydnj@codesourcery.com>
929
930 * c-common.c (warning_candidate_p): Check for BLOCKs.
931
9322011-05-26 Nathan Froyd <froydnj@codesourcery.com>
933
934 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
935 not tree_common.
936
9372011-05-25 Jakub Jelinek <jakub@redhat.com>
938
939 * c-common.c (def_fn_type): Remove extra va_end.
940
9412011-05-23 Jason Merrill <jason@redhat.com>
942
943 PR c++/48106
944 * c-common.c (c_common_get_narrower): New.
945 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
946
9472011-05-23 Nathan Froyd <froydnj@codesourcery.com>
948
949 * c-common.h (check_function_arguments): Tweak prototype of
950 check_function_arguments.
951 * c-common.c (check_function_arguments): Likewise. Adjust
952 calls to check_function_nonnull, check_function_format, and
953 check_function_sentinel.
954 (check_function_sentinel): Take a FUNCTION_TYPE rather than
955 separate attributes and typelist arguments. Use
956 FOREACH_FUNCTION_ARGS to iterate over argument types.
957
9582011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
959
960 * c-common.c (c_common_reswords): Reorder.
961 * c-common.h (rid): Likewise.
962
9632011-05-10 Nathan Froyd <froydnj@codesourcery.com>
964
965 * c-common.c (def_fn_type): Don't call build_function_type, call
966 build_function_type_array or build_varargs_function_type_array
967 instead.
968 (c_common_nodes_and_builtins): Likewise.
969
9702011-05-05 Nathan Froyd <froydnj@codesourcery.com>
971
972 * c-common.c (c_add_case_label): Omit the loc argument to
973 build_case_label.
974 * c-common.h (build_case_label): Remove.
975 * c-semantics.c (build_case_label): Remove.
976
9772011-05-05 Joseph Myers <joseph@codesourcery.com>
978
979 * c-objc.h (objc_start_method_definition): Update prototype.
980 * stub-objc.c (objc_start_method_definition): Add extra parameter.
981
9822011-05-04 Nathan Froyd <froydnj@codesourcery.com>
983
984 * c-common.c (check_main_parameter_types): Reindent. Don't use
985 TYPE_ARG_TYPES directly.
986 (handle_nonnull_attribute): Likewise.
987 (sync_resolve_params): Likewise.
988 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
989 to check_format_string.
990 (handle_format_attribute): Likewise.
991 (check_format_string): Take a function type to examine instead of
992 a type list. Use a function_arg_iterator to step through argument
993 types.
994
9952011-05-04 Richard Guenther <rguenther@suse.de>
996
997 * c-common.c (fix_string_type): Use size_int for index type bounds.
998 (start_fname_decls): Do not pass NULL to build_int_cst.
999 (c_init_attributes): Likewise.
1000 * c-lex.c (c_lex_with_flags): Likewise.
1001
10022011-04-27 Jason Merrill <jason@redhat.com>
1003
1004 * c-common.c (make_tree_vector_from_list): New.
1005 * c-common.h: Declare it.
1006
10072011-04-26 Richard Guenther <rguenther@suse.de>
1008
1009 PR preprocessor/48248
1010 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1011 for output size with -P.
1012
10132011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1014
1015 * c-common.c (struct c_common_resword): Add __underlying_type.
1016 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1017
10182011-04-20 Jim Meyering <meyering@redhat.com>
1019
1020 * c-format.c (init_dollar_format_checking): Remove useless
1021 if-before-free.
1022
10232011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1024
1025 * c-objc.h (objc_get_interface_ivars): Removed.
1026 (objc_detect_field_duplicates): New.
1027 * stub-objc.c: Likewise.
1028
10292011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1030
1031 * stub-objc.c (objc_declare_protocols): Renamed to
1032 objc_declare_protocol.
1033 * c-objc.h: Likewise.
1034
10352011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1036
1037 * stub-objc.c (objc_declare_class): Updated argument name.
1038
10392011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1040
1041 * c-common.h (c_common_init_ts): Declare.
1042 * c-common.c (c_common_init_ts): Define.
1043
10442011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1045
1046 * c-objc.h (objc_build_message_expr): Updated prototype.
1047 * stub-objc.c (objc_build_message_expr): Likewise.
1048
10492011-04-12 Martin Jambor <mjambor@suse.cz>
1050
1051 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1052 of cgraph_node.
1053
10542011-04-11 Richard Guenther <rguenther@suse.de>
1055
1056 * c-common.c (complete_array_type): Build a range type of
1057 proper type.
1058
10592011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1060
1061 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1062 (handle_type_generic_attribute): Likewise.
1063
10642011-04-07 Jason Merrill <jason@redhat.com>
1065
1066 PR c++/48450
1067 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1068 conversion from C++0x scoped enum.
1069
10702011-04-06 Joseph Myers <joseph@codesourcery.com>
1071
1072 * c-target-def.h: New file.
1073 * c-target.def: New file.
1074 * c-target.h: New file.
1075 * c-common.c (targetcm): Don't define here.
1076 * c-common.h (default_handle_c_option): Declare.
1077 * c-format.c: Include c-target.h instead of target.h.
1078 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1079 include tm.h.
1080 (default_handle_c_option): Move from targhooks.c.
1081
10822011-03-29 Jakub Jelinek <jakub@redhat.com>
1083
1084 PR preprocessor/48248
1085 * c-ppoutput.c (print): Add src_file field.
1086 (init_pp_output): Initialize it.
1087 (maybe_print_line): Don't optimize by adding up to 8 newlines
1088 if map->to_file and print.src_file are different file.
1089 (print_line): Update print.src_file.
1090
10912011-03-25 Kai Tietz <ktietz@redhat.com>
1092
1093 * c-ada-spec.c (compare_comment): Use filename_cmp
1094 instead of strcmp for filename.
1095
10962011-03-25 Jeff Law <law@redhat.com>
1097
1098 * c-family/c-common.c (def_fn_type): Add missing va_end.
1099
11002011-03-25 Jason Merrill <jason@redhat.com>
1101
1102 * c.opt: Add -std=c++03.
1103
11042011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1105
1106 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1107
11082011-03-17 Kai Tietz
1109
1110 PR target/12171
1111 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1112 Display allowed attributes for function pointer types.
1113 (pp_c_attributes_display): New function to display
1114 attributes having affects_type_identity flag set to true.
1115 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1116
1117 * c-common.c (c_common_attribute_table):
1118 Add new element.
1119 (c_common_format_attribute_table): Likewise.
1120
11212011-03-18 Jason Merrill <jason@redhat.com>
1122
1123 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1124 * c-common.h: Don't declare it here.
1125 * c-common.c: Or define it here.
1126 * c-opts.c (c_common_handle_option): Or set it here.
1127
1128 PR c++/35315
1129 * c-common.c (handle_transparent_union_attribute): Don't
1130 make a duplicate type in C++.
1131
11322011-03-15 Jason Merrill <jason@redhat.com>
1133
1134 * c-common.c (max_constexpr_depth): New.
1135 * c-common.h: Declare it.
1136 * c-opts.c (c_common_handle_option): Set it.
1137 * c.opt (fconstexpr-depth): New option.
1138
11392011-03-11 Jason Merrill <jason@redhat.com>
1140
1141 * c-common.c (attribute_takes_identifier_p): Add missing const.
1142
1143 PR c++/46803
1144 * c-common.c (attribute_takes_identifier_p): Assume that an
1145 unknown attribute takes an identifier.
1146
11472011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1148
1149 PR c/47786
1150 * c-common.c (c_type_hash): Call list_length instead of iterating
1151 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1152
11532011-02-19 Jakub Jelinek <jakub@redhat.com>
1154
1155 PR c/47809
1156 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1157
11582011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1159
1160 * c.opt (fobjc-abi-version=) New.
1161 (fobjc-nilcheck): New.
1162
11632011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1164
1165 PR c++/46890
1166 * c-common.h (keyword_is_decl_specifier): Declare.
1167 * c-common.c (keyword_is_decl_specifier): Define.
1168 (keyword_is_function_specifier): New function.
1169
11702011-01-26 Jakub Jelinek <jakub@redhat.com>
1171
1172 PR c/47473
1173 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1174 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1175 REAL_TYPE.
1176
11772011-01-26 Arnaud Charlet <charlet@adacore.com>
1178
1179 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1180
11812011-01-26 Jakub Jelinek <jakub@redhat.com>
1182
1183 PR pch/47430
1184 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1185 after init_c_lex if pch_file is set.
1186
11872011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1188
1189 PR c++/43601
1190 * c.opt (-fkeep-inline-dllexport): New switch.
1191
11922011-01-12 Richard Guenther <rguenther@suse.de>
1193
1194 PR middle-end/32511
1195 * c-common.c (handle_weak_attribute): Warn instead of error
1196 on declaring an inline function weak.
1197
11982011-01-05 Tom Tromey <tromey@redhat.com>
1199
1200 * c-common.h (lvalue_error): Update.
1201 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1202 not error.
1203
12042010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
1205
1206 PR objc/47075
1207 * c-objc.h (objc_finish_message_expr): Added argument to
1208 prototype.
1209
12102010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1211
1212 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1213 Use prototype_p.
1214
12152010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1216
1217 * c-objc.h (objc_maybe_warn_exceptions): New.
1218 * stub-objc.c (objc_maybe_warn_exceptions): New.
1219
12202010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1221
1222 * c-common.h (readonly_error): Declare.
1223 * c-common.c (readonly_error): Define.
1224
12252010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1226
1227 * c-common.h (invalid_indirection_error): Declare.
1228 * c-common.c (invalid_indirection_error): Define.
1229
12302010-12-03 Richard Guenther <rguenther@suse.de>
1231
1232 PR c/46745
1233 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1234 (pp_c_unary_expression): Likewise.
1235 (pp_c_expression): Likewise.
1236
12372010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1238
1239 * c-common.h (objc_finish_function): New.
1240 (objc_non_volatilized_type): Removed.
1241 (objc_type_quals_match): Removed.
1242 * stub-objc.c (objc_finish_function): New.
1243 (objc_non_volatilized_type): Removed.
1244 (objc_type_quals_match): Removed.
1245
12462010-11-30 Joseph Myers <joseph@codesourcery.com>
1247
1248 * c-common.h (parse_optimize_options): Declare.
1249 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1250 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1251
12522010-11-29 Joseph Myers <joseph@codesourcery.com>
1253
1254 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1255 GET_ENVIRONMENT.
1256 * c-pch.c (O_BINARY): Don't define here.
1257 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1258
12592010-11-25 Joseph Myers <joseph@codesourcery.com>
1260
1261 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1262 targetm.except_unwind_info.
1263
12642010-11-23 Joseph Myers <joseph@codesourcery.com>
1265
1266 * c-opts.c (c_common_handle_option): Pass location to
1267 set_struct_debug_option.
1268
12692010-11-23 Joseph Myers <joseph@codesourcery.com>
1270
1271 * c-common.c (visibility_options): Move from ../opts.c.
1272 * c-common.h (struct visibility_flags, visibility_options):
1273 Declare here.
1274 * c-opts.c (finish_options): Rename to c_finish_options.
1275 (c_common_init): Update call to finish_options.
1276
12772010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1278
1279 PR objc/34033
1280 * c-lex.c (lex_string): Check that each string in an Objective-C
1281 string concat sequence starts with either one or zero '@', and
1282 that there are no spurious '@' signs at the end.
1283
12842010-11-20 Joseph Myers <joseph@codesourcery.com>
1285
1286 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1287 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1288 HANDLE_PRAGMA_VISIBILITY.
1289 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1290 HANDLE_PRAGMA_VISIBILITY): Don't define.
1291 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1292
12932010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1294
1295 PR c++/16189
1296 PR c++/36888
1297 PR c++/45331
1298 * c-common.h (keyword_begins_type_specifier): Declare.
1299 (keyword_is_storage_class_specifier): Declare.
1300 (keyword_is_type_qualifier): Declare.
1301 * c-common.c (keyword_begins_type_specifier): New function.
1302 (keyword_is_storage_class_specifier): New function.
1303 (keyword_is_type_qualifier): Declare.
1304
13052010-11-19 Joseph Myers <joseph@codesourcery.com>
1306
1307 PR c/46547
1308 * c-common.c (in_late_binary_op): Define.
1309 (c_common_truthvalue_conversion): Check in_late_binary_op before
1310 calling c_save_expr.
1311 * c-common.h (in_late_binary_op): Declare.
1312
13132010-11-19 Joseph Myers <joseph@codesourcery.com>
1314
1315 * c-opts.c (c_common_handle_option): Update calls to
1316 set_struct_debug_option.
1317
13182010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1319
1320 * c-common.h (objc_declare_protocols): Added additional argument.
1321 * stub-objc.c (objc_declare_protocol): Same change.
1322
13232010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1324
1325 PR c/33193
1326 * c-common.h (build_real_imag_expr): Declare.
1327 * c-semantics.c (build_real_imag_expr): Define.
1328
13292010-11-17 Joseph Myers <joseph@codesourcery.com>
1330
1331 * c-opts.c (c_common_parse_file): Take no arguments.
1332 * c-common.h (c_common_parse_file): Update prototype.
1333
13342010-11-16 Jakub Jelinek <jakub@redhat.com>
1335
1336 PR c++/46401
1337 * c-common.c (warning_candidate_p): Don't track non-const calls
1338 or STRING_CSTs.
1339
13402010-11-15 Ian Lance Taylor <iant@google.com>
1341
1342 * c-lex.c (init_c_lex): Set macro debug callbacks if
1343 flag_dump_go_spec is set.
1344
13452010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1346
1347 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1348 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1349
13502010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1351
1352 PR preprocessor/45038
1353 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1354 dialects.
1355
13562010-11-12 Joseph Myers <joseph@codesourcery.com>
1357
1358 * c-common.h (c_family_lang_mask): Declare.
1359 * c-opts.c (c_family_lang_mask): Make extern.
1360 * c-pragma.c (handle_pragma_diagnostic): Use
1361 control_warning_option.
1362
13632010-11-12 Joseph Myers <joseph@codesourcery.com>
1364
1365 * c-common.c (parse_optimize_options): Update call to
1366 decode_options.
1367 * c-common.h (c_common_handle_option): Update prototype.
1368 * c-opts.c (c_common_handle_option): Take location_t parameter and
1369 pass it to other functions.
1370
13712010-11-11 Joseph Myers <joseph@codesourcery.com>
1372
1373 * c-opts.c (warning_as_error_callback): Remove.
1374 (c_common_initialize_diagnostics): Don't call
1375 register_warning_as_error_callback.
1376 (c_common_handle_option): Handle -Werror=normalized= here.
1377
13782010-11-10 Joseph Myers <joseph@codesourcery.com>
1379
1380 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1381 in diagnostic.
1382 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1383 letter.
1384 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1385 Remove trailing '.' from diagnostics.
1386 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1387
13882010-11-10 Joseph Myers <joseph@codesourcery.com>
1389
1390 * c-common.c (parse_optimize_options): Pass global_dc to
1391 decode_options.
1392 * c-opts.c (c_common_handle_option): Pass &global_options to
1393 set_Wstrict_aliasing.
1394 * c.opt (v): Don't mark Common or document here.
1395
13962010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1397
1398 PR target/44981
1399 * c-format.c (format_type): New type gcc_objc_string_format_type.
1400 (valid_stringptr_type_p): New.
1401 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1402 (check_format_string): Pass expected type, use
1403 valid_stringptr_type_p (), check that the format string types are
1404 consistent with the format specification.
1405 (decode_format_attr): Warn if NSString is used outside objective-c.
1406 (format_types_orig): Add NSString.
1407 (format_name): New.
1408 (format_flags): New.
1409 (check_format_arg): Handle format strings requiring an external parser.
1410 first_target_format_type: New variable.
1411 (handle_format_attribute): Set up first_target_format_type, pass the
1412 expected format arg string type to check_format_string().
1413 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1414 * stub-objc.c (objc_string_ref_type_p): New.
1415 (objc_check_format_arg): New.
1416
14172010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1418
1419 Fixed using the Objective-C 2.0 dot-syntax with class names.
1420 * c-common.h (objc_build_class_component_ref): New.
1421 * stub-objc.c (objc_build_class_component_ref): New.
1422
14232010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1424
1425 * c.opt (Wproperty-assign-default): New option.
1426
14272010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1428
1429 Implemented -fobjc-std=objc1 flag.
1430 * c.opt (fobjc-std=objc1): New option.
1431
14322010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1433
1434 Implemented format and noreturn attributes for Objective-C methods.
1435 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1436 attribute for Objective-C methods.
1437
14382010-10-31 Jason Merrill <jason@redhat.com>
1439
1440 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1441 EXPR_LOC_OR_HERE.
1442
14432010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1444
1445 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1446 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1447 (objc_add_property_declaration): Removed arguments for copies and
1448 ivar.
1449 (objc_build_getter_call): Renamed to
1450 objc_maybe_build_component_ref.
1451 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1452 (objc_is_property_ref): New.
1453 * c-common.c (c_common_reswords): Removed copies and ivar.
1454 * stub-objc.c (objc_add_property_declaration): Removed arguments
1455 for copies and ivar.
1456 (objc_build_getter_call): Renamed to
1457 objc_maybe_build_component_ref.
1458 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1459 (objc_is_property_ref): New.
1460
14612010-10-29 Arnaud Charlet <charlet@adacore.com>
1462 Matthew Gingell <gingell@adacore.com>
1463
1464 * c-ada-spec.c (separate_class_package): New function.
1465 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1466 name of their enclosing package.
1467 (print_ada_declaration): Use separate_class_package.
1468
14692010-10-27 Jason Merrill <jason@redhat.com>
1470
1471 * c-common.c (c_common_reswords): Add __is_literal_type.
1472 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1473
1474 * c-common.c (check_case_value): Remove special C++ code.
1475
14762010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1477
1478 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1479 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1480 and RID_LAST_PATTR.
1481 (objc_add_property_declaration): Added additional arguments.
1482 (objc_property_attribute_kind): Removed.
1483 (objc_set_property_attr): Removed.
1484 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1485 copy and nonatomic.
1486 * stub-objc.c (objc_add_property_declaration): Added additional
1487 arguments.
1488 (objc_set_property_attr): Removed.
1489
14902010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1491
1492 * c-common.h (objc_add_property_variable): Renamed to
1493 objc_add_property_declaration. Added location argument.
1494 * stub-objc.c (objc_add_property_variable): Same change.
1495
14962010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1497
1498 * c-common.h (objc_maybe_printable_name): New.
1499 * stub-objc.c (objc_maybe_printable_name): New.
1500
15012010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1502 Andrew Pinski <pinskia@gmail.com>
1503
1504 * c-common.h (c_common_mark_addressable_vec): Declare.
1505 * c-common.c (c_common_mark_addressable_vec): New function.
1506
15072010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1508
1509 * c-common.h (objc_set_method_type): Removed.
1510 (objc_add_method_declaration): Added boolean argument.
1511 (objc_start_method_definition): Same change.
1512 (objc_build_method_signature): Same change.
1513 * stub-objc.c (objc_set_method_type): Removed.
1514 (objc_add_method_declaration): Added boolean argument.
1515 (objc_start_method_definition): Same change.
1516 (objc_build_method_signature): Same change.
1517
15182010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1519
1520 * c-common.h (finish_file): Removed.
1521 (objc_write_global_declarations): New.
1522 * c-opts.c (c_common_parse_file): Do not call finish_file.
1523 * stub-objc.c (objc_write_global_declarations): New.
1524
15252010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1526
1527 Implemented parsing @synthesize and @dynamic for
1528 Objective-C/Objective-C++.
1529 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1530 (objc_add_synthesize_declaration): New.
1531 (objc_add_dynamic_declaration): New.
1532 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1533 * stub-objc.c (objc_add_synthesize_declaration): New.
1534 (objc_add_dynamic_declaration): New.
1535
15362010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1537
1538 PR target/46041
1539 * c-cppbuiltin.c (mode_has_fma): Move function here from
1540 builtins.c. Don't use the fma optab, instead just use the
1541 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1542 using -save-temps.
1543
15442010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1545
1546 Merge from 'apple/trunk' branch on FSF servers.
1547
1548 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1549
1550 Radar 4330422
1551 * c-common.h (objc_non_volatilized_type): New declaration
1552 * stub-objc.c (objc_non_volatilized_type): New stub.
1553
15542010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1555
1556 Merge from 'apple/trunk' branch on FSF servers.
1557
1558 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1559
1560 Radar 4133425
1561 * c-common.h (objc_diagnose_private_ivar): New decl.
1562 * stub-objc.c (objc_diagnose_private_ivar): New stub.
1563
15642010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1565
1566 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1567 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1568 (objc_ivar_visibility_kind): New enum.
1569 (objc_set_visibility): Adjust prototype to use visibility enum.
1570 * stub-objc.c (objc_set_visibility): Adjust stub to use
1571 visibility enum.
1572
15732010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1574
1575 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1576 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1577 has the appropriate fma builtins.
1578 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1579
15802010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1581
1582 merge from FSF apple 'trunk' branch.
1583 2006 Fariborz Jahanian <fjahanian@apple.com>
1584
1585 Radars 4436866, 4505126, 4506903, 4517826
1586 * c-common.c (c_common_resword): Define @property and its attributes.
1587 * c-common.h: Define property attribute enum entries.
1588 (OBJC_IS_PATTR_KEYWORD): New.
1589 (objc_property_attribute_kind): New enum.
1590 Declare objc_set_property_attr (), objc_add_property_variable (),
1591 objc_build_getter_call () and objc_build_setter_call ().
1592 * stub-objc.c (objc_set_property_attr): New stub.
1593 (objc_add_property_variable): Likewise.
1594 (objc_build_getter_call): Likewise.
1595 (objc_build_setter_call) Likewise.
1596
15972010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1598
1599 merge from FSF apple 'trunk' branch.
1600 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1601
1602 Radar 3803157 (method attributes)
1603 * c-common.c (handle_deprecated_attribute): Recognize
1604 objc methods as valid declarations.
1605 * c-common.h: Declare objc_method_decl ().
1606 * stub-objc.c (objc_method_decl): New stub.
1607
16082010-10-08 Joseph Myers <joseph@codesourcery.com>
1609
1610 * c-common.c (parse_optimize_options): Call
1611 decode_cmdline_options_to_array_default_mask before
1612 decode_options. Update arguments to decode_options.
1613 * c-common.h (c_common_init_options_struct): Declare.
1614 * c-opts.c (c_common_init_options_struct): New. Split out from
1615 c_common_init_options.
1616
16172010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1618
1619 Implemented fast enumeration for Objective-C.
1620 * c-common.h (objc_finish_foreach_loop): New.
1621 * stub-objc.c (objc_finish_foreach_loop): New.
1622
16232010-10-05 Joseph Myers <joseph@codesourcery.com>
1624
1625 * c-common.h (struct diagnostic_context): Don't declare here.
1626 (c_common_initialize_diagnostics): Declare using
1627 diagnostic_context typedef.
1628 * c-opts.c (c_common_handle_option): Pass global_dc to
1629 handle_generated_option.
1630
16312010-10-04 Joseph Myers <joseph@codesourcery.com>
1632
1633 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1634 handle_generated_option.
1635
16362010-10-03 Ian Lance Taylor <iant@google.com>
1637
1638 * c.opt (-fplan9-extensions): New option.
1639
16402010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1641
1642 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1643 Remove.
1644 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1645 of duplicating code.
1646
16472010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1648
1649 * c-common.c: Add two new entries for @optional
1650 and @required keywords.
1651
1652 merge from FSF 'apple/trunk' branch.
1653 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1654
1655 Radar 4386773
1656 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1657 objective-c keywords.
1658 (objc_set_method_opt): New declaration.
1659 * stub-objc.c (objc_set_method_opt): New stub.
1660
16612010-09-30 Joseph Myers <joseph@codesourcery.com>
1662
1663 * c-common.c (handle_optimize_attribute): Pass &global_options to
1664 cl_optimization_save and cl_optimization_restore.
1665 * c-opts.c (c_common_handle_option): Pass &global_options to
1666 handle_generated_option.
1667 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1668 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1669 &global_options to cl_optimization_restore.
1670
16712010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1672
1673 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1674 Objective-C/Objective-C++ keywords.
1675
16762010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1677
1678 Merge from 'apple/trunk' branch on FSF servers.
1679
1680 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1681
1682 Radar 4281748
1683 * c-common.h (objc_check_global_decl): New declaration.
1684 * stub-objc.c (objc_check_global_decl): New stub.
1685
16862010-09-29 Joseph Myers <joseph@codesourcery.com>
1687
1688 * c.opt: Don't use VarExists.
1689
16902010-09-29 Joseph Myers <joseph@codesourcery.com>
1691
1692 * c-common.c (c_cpp_error): Update names of diagnostic_context
1693 members.
1694 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1695 cl_optimization members.
1696 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1697 sanitize_cpp_opts, finish_options): Update names of cpp_options
1698 members.
1699
17002010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1701
1702 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1703 (objc_is_reserved_word): Removed.
1704 * c-common.c: Updated comments.
1705 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1706 objc_is_reserved_word.
1707 * stub-objc.c (objc_is_reserved_word): Removed.
1708
17092010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1710
1711 * c-common.h (objc_add_method_declaration): Adjust prototype to
1712 include attributes.
1713 (objc_start_method_definition): Likewise.
1714 (objc_build_keyword_decl): Likewise.
1715 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1716 (objc_start_method_definition): Likewise.
1717 (objc_build_keyword_decl): Likewise.
1718
17192010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1720
1721 * c-common.h (objc_start_class_interface): Adjust prototype.
1722 (objc_start_category_interface): Likewise.
1723 (objc_start_protocol): Likewise.
1724 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1725 (objc_start_class_interface): Likewise.
1726 (objc_start_category_interface): Likewise.
1727
17282010-09-27 Ian Lance Taylor <iant@google.com>
1729
1730 * c-common.c (c_common_attribute_table): Add no_split_stack.
1731 (handle_no_split_stack_attribute): New static function.
1732
17332010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1734
1735 Merge from 'apple/trunk' branch on FSF servers.
1736
1737 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1738
1739 Radar 4229905
1740 * c-common.h (objc_have_common_type): New declaration.
1741 * stub-objc.c (objc_have_common_type): New stub.
1742
1743 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1744
1745 Radar 4154928
1746 * c-common.h (objc_common_type): New prototype.
1747 * stub-objc.c (objc_common_type): New stub.
1748
17492010-09-24 Jan Hubicka <jh@suse.cz>
1750
1751 * c-common.c (handle_leaf_attribute): New function.
1752 (struct attribute_spec c_common_att): Add leaf.
1753
17542010-09-22 Joseph Myers <joseph@codesourcery.com>
1755
1756 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1757 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1758 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1759 -include-barrier, -include-directory, -include-directory=,
1760 -include-directory-after, -include-directory-after=,
1761 -include-prefix, -include-prefix=, -include-with-prefix,
1762 -include-with-prefix=, -include-with-prefix-after,
1763 -include-with-prefix-after=, -include-with-prefix-before,
1764 -include-with-prefix-before=, -no-integrated-cpp,
1765 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1766 -output=, -pedantic, -pedantic-errors, -preprocess,
1767 -print-missing-file-dependencies, -trace-includes, -traditional,
1768 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1769 -user-dependencies, -verbose, -write-dependencies,
1770 -write-user-dependencies, no-integrated-cpp, traditional): New.
1771
17722010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1773
1774 PR objc/23710
1775 * c-common.h (objc_start_method_definition): Return bool instead
1776 of void.
1777 * stub-objc.c (objc_start_method_definition): Return bool instead
1778 of void.
1779
17802010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1781
1782 PR objc/25965
1783 * c-common.h (objc_get_interface_ivars): New declaration.
1784 * stub-objc.c (objc_get_interface_ivars): New stub.
1785
17862010-09-15 Ian Lance Taylor <iant@google.com>
1787
1788 * c-common.c (parse_optimize_options): Do not capitalize warning
1789 messages. Remove period at end of warning message.
1790
17912010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1792
1793 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1794 (handle_alias_attribute): ... here.
1795 (handle_ifunc_attribute): New.
1796
17972010-09-06 Mark Mitchell <mark@codesourcery.com>
1798
1799 * c-common.h (do_warn_double_promotion): Declare.
1800 * c-common.c (do_warn_double_promotion): Define.
1801
18022010-09-05 Mark Mitchell <mark@codesourcery.com>
1803
1804 * c.opt (Wdouble-promotion): New.
1805
18062010-09-02 Joseph Myers <joseph@codesourcery.com>
1807
1808 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1809 fvtable-thunks, fxref): Mark no longer supported in help text.
1810
18112010-09-02 Joseph Myers <joseph@codesourcery.com>
1812
1813 * c.opt (Wimport, fall-virtual, falt-external-templates,
1814 fdefault-inline, fenum-int-equiv, fexternal-templates,
1815 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1816 fname-mangling-version-, fnew-abi, fnonnull-objects,
1817 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1818 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1819 applicable.
1820 (fhandle-exceptions): Mark with Alias and Warn.
1821 * c-opts.c (c_common_handle_option): Don't handle options marked
1822 as ignored.
1823
18242010-09-02 Joseph Myers <joseph@codesourcery.com>
1825
1826 * c.opt (Wcomments, Werror-implicit-function-declaration,
1827 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1828 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1829 aliases.
1830 * c-common.c (option_codes): Use OPT_Wcomment instead of
1831 OPT_Wcomments.
1832 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1833 Don't handle options marked as aliases.
1834
18352010-08-25 Richard Guenther <rguenther@suse.de>
1836
1837 * c-common.c (c_common_get_alias_set): Remove special
1838 handling for pointers.
1839
18402010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1841
1842 * c-common.c: Use FOR_EACH_VEC_ELT.
1843 * c-gimplify.c: Likewise.
1844 * c-pragma.c: Likewise.
1845
18462010-08-16 Joseph Myers <joseph@codesourcery.com>
1847
1848 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1849 RejectDriver.
1850 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1851 RejectDriver.
1852 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1853 instead of OPT_MDX and OPT_MMDX.
1854
18552010-08-16 Joseph Myers <joseph@codesourcery.com>
1856
1857 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1858
18592010-08-12 Joseph Myers <joseph@codesourcery.com>
1860
1861 * c.opt (MD, MMD): Change to MDX and MMDX.
1862 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1863
18642010-08-11 Joseph Myers <joseph@codesourcery.com>
1865
1866 * c-opts.c (c_common_handle_option): Call handle_generated_option
1867 instead of handle_option.
1868
18692010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1870
1871 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1872 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1873
18742010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1875
1876 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1877 (pending_redefine_extname): Change type to a VEC.
1878 (add_to_renaming_pragma_list): Update for new type of
1879 pending_redefine_extname.
1880 (maybe_apply_renaming_pragma): Likewise.
1881
18822010-08-04 Arnaud Charlet <charlet@adacore.com>
1883
1884 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1885 visited.
1886 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1887 decide whether a type has already been declared/seen.
1888 Do not go to the original type.
1889 (dump_nested_types): New parameter forward.
1890 Generate forward declaration if needed and mark type as visited.
1891 (print_ada_declaration): Call dump_nested_types if not already done.
1892 Mark types as visited.
1893
18942010-08-03 Joseph Myers <joseph@codesourcery.com>
1895
1896 * c.opt (-print-pch-checksum): Remove option.
1897 * c-opts.c (c_common_handle_option): Don't handle
1898 OPT_print_pch_checksum.
1899
19002010-07-27 Joseph Myers <joseph@codesourcery.com>
1901
1902 * c-common.h (c_common_handle_option): Update prototype and return
1903 value type.
1904 * c-opts.c (c_common_handle_option): Update prototype and return
1905 value type. Update calls to handle_option and
1906 enable_warning_as_error.
1907
19082010-07-27 Jakub Jelinek <jakub@redhat.com>
1909
1910 PR c/45079
1911 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1912
19132010-07-27 Joseph Myers <joseph@codesourcery.com>
1914
1915 * c-common.h (c_common_missing_argument): Remove.
1916 * c-opts.c (c_common_missing_argument): Remove.
1917 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1918 idirafter, imacros, include, isysroot, isystem, iquote): Add
1919 MissingArgError.
1920 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1921
19222010-07-27 Joseph Myers <joseph@codesourcery.com>
1923
1924 * c-common.h (c_common_option_lang_mask,
1925 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1926 New.
1927 (c_common_init_options): Update prototype.
1928 * c-opts.c (c_common_option_lang_mask): New.
1929 (c_common_initialize_diagnostics): Split out of
1930 c_common_init_options.
1931 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1932 New.
1933 (c_common_init_options): Update prototype. Use decoded options in
1934 search for -lang-asm.
1935
19362010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1937
1938 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1939 * c-format.c: Likewise.
1940
19412010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1942
1943 * c-common.h: Include diagnostic-core.h. Error if already
1944 included.
1945 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1946
19472010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1948
1949 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1950 Do not include expr.h
1951 (vector_mode_valid_p): Move here.
1952
19532010-06-21 DJ Delorie <dj@redhat.com>
1954
1955 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1956 allow these pragmas anywhere.
1957
19582010-06-14 Jakub Jelinek <jakub@redhat.com>
1959
1960 PR bootstrap/44509
1961 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1962 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1963 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1964 ggc_strdup instead of xstrdup.
1965
19662010-06-10 Jakub Jelinek <jakub@redhat.com>
1967
1968 * c-cppbuiltin.c: Include cpp-id-data.h.
1969 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1970 (lazy_hex_fp_value): New function.
1971 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1972
19732010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1974
1975 * c-gimplify.c: Do not include tree-flow.h
1976
19772010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1978
1979 PR other/44034
1980 * c-common.c: Rename targetm member:
1981 targetm.enum_va_list -> targetm.enum_va_list_p
1982
19832010-06-28 Anatoly Sokolov <aesok@post.ru>
1984
1985 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1986
19872010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1988
1989 * c-cppbuiltin.c: Do not include except.h.
1990
19912010-06-24 Andi Kleen <ak@linux.intel.com>
1992
1993 * c-common.c (warn_for_omitted_condop): New.
1994 * c-common.h (warn_for_omitted_condop): Add prototype.
1995
19962010-06-21 Joseph Myers <joseph@codesourcery.com>
1997
1998 * c.opt (lang-objc): Remove.
1999 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2000
20012010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2002
2003 * c-opts.c: Include "tm_p.h".
2004
20052010-06-20 Joseph Myers <joseph@codesourcery.com>
2006
2007 * c-common.c (parse_optimize_options): Update call to
2008 decode_options.
2009
20102010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2011
2012 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2013 new type of types_used_by_cur_var_decl.
2014
20152010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2016
2017 PR bootstrap/44512
2018 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2019 for C++ standard compliance.
2020
20212010-06-16 Jason Merrill <jason@redhat.com>
2022
2023 * c.opt: Add -Wnoexcept.
2024
20252010-06-16 Richard Guenther <rguenther@suse.de>
2026
2027 PR c/44555
2028 * c-common.c (c_common_truthvalue_conversion): Remove
2029 premature and wrong optimization concering ADDR_EXPRs.
2030
20312010-06-15 Arnaud Charlet <charlet@adacore.com>
2032
2033 * c-ada-spec.c (dump_sloc): Remove column info.
2034 (is_simple_enum): New function.
2035 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2036 enum types when relevant.
2037
20382010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2039
2040 * c-common.c (conversion_warning): Warn at expression
2041 location.
2042
20432010-06-10 Joseph Myers <joseph@codesourcery.com>
2044
2045 * c-opts.c (c_common_handle_option): Don't handle
2046 OPT_fshow_column.
2047
20482010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2049
2050 * c-pragma.c (push_alignment): Use typed GC allocation.
2051 (handle_pragma_push_options): Likewise.
2052
2053 * c-common.c (parse_optimize_options): Likewise.
2054
2055 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2056 option.
2057
20582010-06-07 Joseph Myers <joseph@codesourcery.com>
2059
2060 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2061 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2062 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2063 flag_signed_bitfields, warn_strict_null_sentinel,
2064 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2065 flag_gen_declaration, flag_no_gnu_keywords,
2066 flag_implement_inlines, flag_implicit_templates,
2067 flag_implicit_inline_templates, flag_optional_diags,
2068 flag_elide_constructors, flag_default_inline, flag_rtti,
2069 flag_conserve_space, flag_access_control, flag_check_new,
2070 flag_new_for_scope, flag_weak, flag_working_directory,
2071 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2072 flag_enforce_eh_specs, flag_threadsafe_statics,
2073 flag_pretty_templates): Remove.
2074 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2075 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2076 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2077 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2078 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2079 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2080 flag_no_gnu_keywords, flag_implement_inlines,
2081 flag_implicit_templates, flag_implicit_inline_templates,
2082 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2083 flag_rtti, flag_conserve_space, flag_access_control,
2084 flag_check_new, flag_new_for_scope, flag_weak,
2085 flag_working_directory, flag_use_cxa_atexit,
2086 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2087 flag_threadsafe_statics, flag_pretty_templates,
2088 warn_strict_null_sentinel): Remove.
2089 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2090 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2091 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2092 fimplicit-inline-templates, fimplicit-templates,
2093 flax-vector-conversions, fms-extensions, fnil-receivers,
2094 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2095 frtti, fshort-double, fshort-enums, fshort-wchar,
2096 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2097 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2098 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2099 gen-decls, undef): Use Var.
2100 (fdefault-inline, foptional-diags): Document as doing nothing.
2101 * c-opts.c (c_common_handle_option): Remove cases for options now
2102 using Var. Mark ignored options as such.
2103
21042010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2105
2106 * c-common.c: Moved to here from parent directory.
2107 * c-common.def: Likewise.
2108 * c-common.h: Likewise.
2109 * c-cppbuiltin.c: Likewise.
2110 * c-dump.c: Likewise.
2111 * c-format.c: Likewise.
2112 * c-format.h : Likewise.
2113 * c-gimplify.c: Likewise.
2114 * c-lex.c: Likewise.
2115 * c-omp.c: Likewise.
2116 * c.opt: Likewise.
2117 * c-opts.c: Likewise.
2118 * c-pch.c: Likewise.
2119 * c-ppoutput.c: Likewise.
2120 * c-pragma.c: Likewise.
2121 * c-pragma.h: Likewise.
2122 * c-pretty-print.c: Likewise.
2123 * c-pretty-print.h: Likewise.
2124 * c-semantics.c: Likewise.
2125 * stub-objc.c: Likewise.
2126
2127 * c-common.c: Include gt-c-family-c-common.h.
2128 * c-pragma.c: Include gt-c-family-c-pragma.h.
2129
2130Copyright (C) 2010, 2011 Free Software Foundation, Inc.
2131
2132Copying and distribution of this file, with or without modification,
2133are permitted in any medium without royalty provided the copyright
2134notice and this notice are preserved.