]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
* testsuite/util/testsuite_abi.cc (check_version): Add CXXABI_1.3.7.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
3740094c 12012-10-08 Jason Merrill <jason@redhat.com>
2
3 * c-common.c (c_common_reswords): Add thread_local.
4
ffcdbf9c 52012-10-08 Dodji Seketeli <dodji@redhat.com>
6
7 PR c++/53528 C++11 attribute support
8 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
9 new functions.
10 * c-common.c (check_cxx_fundamental_alignment_constraints): New
11 static function.
12 (handle_aligned_attribute): In choose strictest alignment
13 among many. Use new check_cxx_fundamental_alignment_constraints.
14 (handle_transparent_union_attribute): In c++11 attribute syntax,
15 don't look through typedefs.
16
ef34afc1 172012-10-04 Arnaud Charlet <charlet@adacore.com>
18
19 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
20 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
21 out of dumpfile.h.
22
f1ff4562 232012-09-25 Dehao Chen <dehao@google.com>
24
25 PR middle-end/54645
ef34afc1 26 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
f1ff4562 27 map when read in the pch.
28
735538a1 292012-09-18 Arnaud Charlet <charlet@adacore.com>
30
31 * c-ada-spec.c: Style fixes.
32
9120cdc8 332012-09-18 Thomas Quinot <quinot@adacore.com>
34
35 * c.opt (-fada-spec-parent): Define new command line switch.
36 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
37 is specified, generate binding spec as a child of the specified unit.
38
8eba82c2 392012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
40 Manuel López-Ibáñez <manu@gcc.gnu.org>
41
42 PR c++/53210
43 * c.opt ([Winit-self]): Enabled by -Wall in C++.
44
38682990 452012-08-23 Arnaud Charlet <charlet@adacore.com>
46
47 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
48 for pointers, and add missing Convention C pragma.
49 (print_ada_struct_decl): Add missing aliased keyword.
50 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
51
f003f5dc 522012-08-17 Jakub Jelinek <jakub@redhat.com>
53
54 * c-common.c (sizeof_pointer_memaccess_warning): New function.
55 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
56 * c-opts.c (c_common_handle_option): Enable it for -Wall.
57 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
58 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
59
ec11736b 602012-08-10 Richard Guenther <rguenther@suse.de>
61
62 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
63
5f7f600e 642012-08-07 Steven Bosscher <steven@gcc.gnu.org>
65
66 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
67 instead of separate pp_newline and pp_flush.
68 (print_c_tree): Likewise.
69
758a38ab 702012-07-26 Richard Henderson <rth@redhat.com>
71
72 * c-common.c (handle_hot_attribute): Allow labels.
73 (handle_cold_attribute): Likewise.
74
9ca77b08 752012-07-20 Jakub Jelinek <jakub@redhat.com>
76
77 PR c++/28656
78 * c-common.c (check_function_nonnull): Handle multiple nonnull
79 attributes properly.
80
b9ed1410 812012-07-16 Steven Bosscher <steven@gcc.gnu.org>
82
83 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
84 * c-ada-spec.c: Likewise.
85 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
86
c2a65b90 872012-07-14 Steven Bosscher <steven@gcc.gnu.org>
88
89 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
90 Remove code conditional on it.
91
88c5a1d1 922012-07-11 Steven Bosscher <steven@gcc.gnu.org>
93
94 * c-gimplify.c: Do not include basic-block.h.
95 * c-common.c: Do not include linfuncs.h.
96
4a020a8c 972012-07-08 Steven Bosscher <steven@gcc.gnu.org>
98
99 * c-common.h: Include tree.h.
100
c28ddc97 1012012-07-02 Jason Merrill <jason@redhat.com>
102
103 PR c++/53524
104 * c-common.c (get_priority): Call default_conversion.
105
405ed67f 1062012-07-01 Uros Bizjak <ubizjak@gmail.com>
107
108 * c-pch.c (c_common_write_pch): Remove unused variables.
109
e53d55e7 1102012-06-29 Steven Bosscher <steven@gcc.gnu.org>
111
112 * cppspec.c: Moved from gcc/ to here.
113
3d9c25ec 1142012-06-27 Kai Tietz <ktietz@redhat.com>
115
116 PR preprocessor/37215
117 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
118
3169c57a 1192012-06-21 Steven Bosscher <steven@gcc.gnu.org>
120
121 * c-common.h (c_common_print_pch_checksum): Remove.
122 * c-pch.c: Do not include output.h.
123 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
124 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
125 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
126 (struct c_pch_header): Remove.
127 (get_ident): Update gpch version.
128 (pch_init): Do not print executable_checksum to asm_out_file.
129 Do not fail if there is no asm_out_file to read back from. Set
130 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
131 (c_common_write_pch): Verify that nothing was written to asm_out_file
132 since pch_init was called. Do not write a c_pch_header, and do not
133 copy from asm_out_file to the PCH.
134 (c_common_read_pch): Do not read a c_pch_header, and do not restore
135 the content of asm_out_file from the PCH.
136 (c_common_print_pch_checksum): Remove.
137 * c-opts.c (c_common_init): Print out executable_checksum directly.
138
ff6624bc 1392012-06-19 Steven Bosscher <steven@gcc.gnu.org>
140
141 * c-target.def (objc_declare_unresolved_class_reference,
142 objc_declare_class_definition): Add new hooks.
143
367b1459 1442012-06-19 Steven Bosscher <steven@gcc.gnu.org>
145
146 * c-lex.c: Do not include output.h.
147 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
148 Remove uses of ASM_OUTPUT_IDENT.
149
bf0cb017 1502012-06-15 Marc Glisse <marc.glisse@inria.fr>
151
152 PR c++/51033
153 * c-common.h (c_build_vec_perm_expr): Move decl here.
154 * c-common.c (c_build_vec_perm_expr): Move definition
155 here.
156
b37a3600 1572012-06-06 Steven Bosscher <steven@gcc.gnu.org>
158
159 * c.opt (fconserve-space): Turn into a no-op.
160
19931eea 1612012-06-04 Sterling Augustine <saugustine@google.com>
5f9e7dd5 162
163 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
164 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
165 both the start and end of the function.
166
dff12c10 1672012-06-04 Steven Bosscher <steven@gcc.gnu.org>
168
169 * c-common.c: Do not include output.h.
170 * c-pragma.c: Likewise.
171
5f9e7dd5 1722012-06-04 Steven Bosscher <steven@gcc.gnu.org>
173
174 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
175 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
176 (lang_decl_name): Handle namespace decls.
177
b5369b7d 1782012-05-31 Steven Bosscher <steven@gcc.gnu.org>
179
180 * c-ada-spec.c: Do not include output.h.
181 * c-semantics.c: Likewise.
182
8032877c 1832012-05-29 Joseph Myers <joseph@codesourcery.com>
184
185 * c-common.c: Fix typo.
186
7843e4bc 1872012-05-29 Michael Matz <matz@suse.de>
188
189 * c-common.h (c_expand_decl): Remove prototype.
190
8cf857d4 1912012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
192
193 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
194 * c-opts.c (c_common_handle_option): Remove code handling
195 warn_missing_braces.
196
8b64dc3c 1972012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
198
199 PR c++/25137
200 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
201 -Wmissing_braces.
202
43cbde16 2032012-05-22 Dodji Seketeli <dodji@redhat.com>
204
205 PR c++/53322
206 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
207
db490cb6 2082012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
209
210 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
211 * c-opts.c (c_common_handle_option): Do not handle explicitly
212 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
213
a60f3e81 2142012-05-16 Dodji Seketeli <dodji@redhat.com>
215
216 PR preprocessor/7263
217 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
218 to cpp_classify_number. For diagnostics, use the precise location
219 instead of the global input_location.
220
82e6ef7c 2212012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
222
cd4797ff 223 PR c++/11856
82e6ef7c 224 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
225
258a168d 2262012-05-14 Bernd Schmidt <bernds@codesourcery.com>
227
82e6ef7c 228 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
258a168d 229
d3b7ee7c 2302012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
231
232 PR 53063
233 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
234 Wreorder): Use LangEnabledBy.
235 * c-opts.c (c_common_handle_option): Do not enable them
236 explicitly. Call lang-specific generated functions.
237 (c_common_post_options): Do not set them here.
238
70059cea 2392012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
240
241 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
242 Wmissing-field-initializers,Wmissing-parameter-type,
243 Wold-style-declaration,Woverride-init): Use EnabledBy.
244 * c-opts.c (c_common_post_options): Do not set here explicitly.
245
fbb6fbd8 2462012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
247
248 PR 53063
249 * c-opts.c (c_common_handle_option): Use handle_generated_option
250 to enable sub-options.
251
61f69bc9 2522012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
253
254 PR c++/53158
255 * c-common.c (warnings_for_convert_and_check): Use warning_at.
256
5a1fe2db 2572012-05-10 Richard Guenther <rguenther@suse.de>
258
259 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
260 adjust commentary about TYPE_IS_SIZETYPE types.
261
d42e7c5a 2622012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
263
264 PR c++/53261
265 * c-common.c (warn_logical_operator): Check that argument of
266 integer_zerop is not NULL.
267
686369e8 2682012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
269
270 PR c/43772
271 * c-common.c (warn_logical_operator): Do not warn if either side
272 is already true or false.
273
03fe1dc2 2742012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
275
276 PR c/51712
277 * c-common.c (expr_original_type): New.
278 (shorten_compare): Do not warn for enumeration types.
279
bba5a206 2802012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
281
282 * c.opt (fpermissive): Add Var(flag_permissive).
283
7059d45d 2842012-04-30 Marc Glisse <marc.glisse@inria.fr>
285
286 PR c++/51033
287 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
288 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
289
7edb1062 2902012-04-30 Dodji Seketeli <dodji@redhat.com>
291
292 Add -Wvarargs option
293 * c.opt (Wvarargs): Define new option.
294
068bea1e 2952012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
296
297 * c-common.c (check_function_arguments): Replace
298 Wmissing-format-attribute with Wsuggest-attribute=format.
299
b86527d8 3002012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
301
302 * c.opt (Wsuggest-attribute=format): New. Alias of
303 Wmissing-format-attribute.
304 * c-format.c (decode_format_type): Replace
305 Wmissing-format-attribute with Wsuggest-attribute=format.
306 (check_function_format): Likewise.
307
19931eea 3082012-04-27 Ollie Wild <aaw@google.com>
76d340ac 309
310 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
311 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
312 * c.opt: Add Wliteral-suffix.
313
29438999 3142012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
315
316 PR c/44774
317 * c.opt (Wpedantic): New.
318 (pedantic): Alias Wpedantic.
319 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
320 (c_common_post_options): Likewise.
321 (sanitize_cpp_opts): Likewise.
322 * c-lex.c (interpret_float): Likewise.
323 * c-format.c (check_format_types): Likewise.
324 * c-common.c (pointer_int_sum): Likewise.
325 (c_sizeof_or_alignof_type): Likewise.
326 (c_add_case_label): Likewise.
327 (c_do_switch_warnings): Likewise.
328 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
329
4f9d6b8b 3302012-04-15 Jason Merrill <jason@redhat.com>
331
332 PR c++/52818
333 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
334 (C_STD_NAME): Distinguish between C++98 and C++11.
335
74bdbe96 3362012-04-11 Eric Botcazou <ebotcazou@adacore.com>
337
338 PR target/52624
339 * c-common.h (uint16_type_node): Rename into...
340 (c_uint16_type_node): ...this.
341 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
342 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
343
3d177e8c 3442012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
345
346 * c-common.c (warn_if_unused_value): Move definition to here.
347 * c-common.h (warn_if_unused_value): Move declaration to here.
348
6a9a958f 3492012-03-23 William Bader <williambader@hotmail.com>
350
351 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
352
543efdbe 3532012-03-20 Jason Merrill <jason@redhat.com>
354
355 * c-common.h (enum cxx_dialect): Add cxx1y.
356 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
357 test.
358 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
359 * c-opts.c (c_common_post_options): Likewise.
360 (set_std_cxx1y): New.
361 (c_common_handle_option): Call it.
362 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
363
62206d34 3642012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
365
366 PR c++/14710
367 * c.opt ([Wuseless-cast]): Add.
368
fadf62f4 3692012-03-16 Richard Guenther <rguenther@suse.de>
370
371 * c-pretty-print.c (pp_c_initializer_list): Adjust.
372
249faa35 3732012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
374
375 PR c++/44783
376 * c.opt (ftemplate-backtrace-limit) Add.
377
126b6848 3782012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
379
380 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
381 handling.
382 * c-pragma.c (handle_pragma_extern_prefix): Remove.
383 (init_pragma): Don't register extern_prefix.
384
a51edb4c 3852012-03-12 Richard Guenther <rguenther@suse.de>
386
387 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
388 (builtin_type_for_size): Likewise.
389
0f6a7cb7 3902012-02-13 Jakub Jelinek <jakub@redhat.com>
391
392 PR c++/52215
393 * c-common.c (sync_resolve_params): Don't decide whether to convert
394 or not based on TYPE_SIZE comparison, convert whenever arg_type
395 is unsigned INTEGER_TYPE.
396
0779e32c 3972012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
398
399 PR c/52118
400 * c.opt ([Wunused-local-typedefs]): Fix description.
401
baec58e1 4022012-01-24 Mike Stump <mikestump@comcast.net>
403
404 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
405 exactly.
406
c779d8cc 4072012-01-18 Richard Guenther <rguenther@suse.de>
408
409 * c-opts.c (c_common_post_options): Reset LTO flags if
410 we are about to generate a PCH.
411
ee917d24 4122012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
413
414 PR c++/51777
415 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
416 use pp_unsigned_wide_integer.
417
90e2341f 4182012-01-10 Richard Guenther <rguenther@suse.de>
419
420 PR middle-end/51806
421 * c-opts.c (c_common_handle_option): Move -Werror handling
422 to language independent code.
423
9ea022ce 4242012-01-05 Richard Guenther <rguenther@suse.de>
425
426 PR middle-end/51764
427 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
428 from common.opt.
429
3df19e1b 4302011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
431
432 PR c++/51316
433 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
434 of array types with an unknown bound.
435
32074525 4362011-12-20 Joseph Myers <joseph@codesourcery.com>
437
438 * c-common.c (flag_isoc99): Update comment to refer to C11.
439 (flag_isoc1x): Change to flag_isoc11.
440 * c-common.h (flag_isoc99): Update comment to refer to C11.
441 (flag_isoc1x): Change to flag_isoc11.
442 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
443 C11.
444 * c-opts.c (set_std_c1x): Change to set_std_c11.
445 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
446 Call set_std_c11.
447 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
448 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
449 * c.opt (std=c1x): Change to std=c11. Document as non-draft
450 standard.
451 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
452 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
453 (std=gnu1x): Make alias of std=gnu11.
454
fca86134 4552011-12-19 Jason Merrill <jason@redhat.com>
456
457 PR c++/51228
458 * c-common.c (handle_transparent_union_attribute): Check the first
459 field if the type is complete.
460
aa4313eb 4612011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
462
463 PR libstdc++/51365
464 * c-common.c (RID_IS_FINAL): Add.
465 * c-common.h (RID_IS_FINAL): Add.
466
3f3d5ad4 4672011-11-30 Iain Sandoe <iains@gcc.gnu.org>
468
469 * c.opt (fgnu-runtime): Provide full description.
470 (fnext-runtime): Likewise.
471 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
472
c4606d19 4732011-11-28 Andrew MacLeod <amacleod@redhat.com>
474
475 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
476 predefines in one place. Add LOCK_FREE predefines.
477 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
478 new func.
479
1d581089 4802011-11-24 Andrew MacLeod <amacleod@redhat.com>
481
482 PR c/51256
19931eea 483 * c-common.c (get_atomic_generic_size): Check for various error
1d581089 484 conditions
19931eea 485 (resolve_overloaded_atomic_exchange,
486 resolve_overloaded_atomic_compare_exchange,
1d581089 487 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
488 error_mark_node for error conditions.
19931eea 489
6aa221fa 4902011-11-08 Richard Guenther <rguenther@suse.de>
491
492 PR middle-end/51010
493 c-family/
494
4c0315d0 4952011-11-07 Richard Henderson <rth@redhat.com>
496 Aldy Hernandez <aldyh@redhat.com>
497 Torvald Riegel <triegel@redhat.com>
498
499 Merged from transactional-memory.
500
501 * c-common.c (handle_tm_wrap_attribute,
502 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
503 (struct c_common_reswords): Added __transaction* keywords.
504 (struct c_common_attribute_table): Added transaction* and tm_regparm
505 attributes.
506 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
507 masks.
508 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
509 find_tm_attribute): Declare.
510
920f5a70 5112011-11-07 Jason Merrill <jason@redhat.com>
512
513 PR c++/35688
514 * c-common.c, c-common.h: Revert yesterday's changes.
515
b4f861b4 5162011-11-06 Jason Merrill <jason@redhat.com>
517
518 PR c++/35688
519 * c-common.c (decl_has_visibility_attr): Split out from...
520 (c_determine_visibility): ...here.
521 * c-common.h: Declare it.
522
83e25171 5232011-11-06 Joseph Myers <joseph@codesourcery.com>
524
525 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
526 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
527 type.
528 (check_user_alignment): New. Split out of
529 handle_aligned_attribute. Disallow integer constants with
530 noninteger types. Conditionally allow zero.
531 (handle_aligned_attribute): Use check_user_alignment.
532 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
533
1cd6e20d 5342011-11-06 Andrew MacLeod <amacleod@redhat.com>
535 Richard Henderson <rth@redhat.com>
536
537 Merged from cxx-mem-model.
538
539 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
19931eea 540 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
1cd6e20d 541 parameters that are the same type size.
542 (get_atomic_generic_size): New. Find size of generic
543 atomic function parameters and do typechecking.
544 (add_atomic_size_parameter): New. Insert size into parameter list.
545 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
546 either __atomic_exchange_n or external library call.
19931eea 547 (resolve_overloaded_atomic_compare_exchange): Restructure
1cd6e20d 548 __atomic_compare_exchange to either _n variant or external library call.
19931eea 549 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
1cd6e20d 550 __atomic_load_n or an external library call.
551 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
552 __atomic_store_n or an external library call.
553 (resolve_overloaded_builtin): Handle new __atomic builtins.
554
7549df0d 5552011-11-04 Eric Botcazou <ebotcazou@adacore.com>
556
557 PR c++/50608
558 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
559 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
560 <INDIRECT_REF>: Return the argument.
561 <ARRAY_REF>: Remove special code for negative offset.
562 Call fold_build_pointer_plus instead of size_binop.
563 (fold_offsetof): Remove STOP_REF argument and adjust.
564 * c-common.h (fold_offsetof_1): Declare.
565 (fold_offsetof): Remove STOP_REF argument.
566
7e783eb3 5672011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
568
569 PR c++/50810
570 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
571 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
572 Wnarrowing for C++0x and C++98.
573 * c.opt ([Wnarrowing]): Update.
574
8fe701f5 5752011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
576
577 PR c++/44277
578 * c.opt: Add Wzero-as-null-pointer-constant.
579
0d84dc2d 5802011-10-31 Jason Merrill <jason@redhat.com>
581
67031f52 582 * c.opt (-fdeduce-init-list): Off by default.
583
0d84dc2d 584 PR c++/50920
585 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
586 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
587 and -Wc++11-compat.
588 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
589
66f24c41 5902011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
591
592 PR c++/30066
593 * c.opt (fvisibility-inlines-hidden): Description change.
594
244db24d 5952011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
596
597 Implement C++11 user-defined literals.
598 * c-common.c (build_userdef_literal): New.
599 * c-common.def: New tree code.
600 * c-common.h (tree_userdef_literal): New tree struct and accessors.
601 * c-lex.c (interpret_float): Add suffix parm.
602 (c_lex_with_flags): Build literal tokens.
603
235be70f 6042011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
605
606 PR c++/50841
607 Revert:
608 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
609
610 PR c++/50810
611 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
612 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
613 Wnarrowing for C++0x and C++98.
614 * c.opt ([Wnarrowing]): Update.
615
4fe0fb1c 6162011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
617
618 PR c++/50810
619 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
620 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
621 Wnarrowing for C++0x and C++98.
622 * c.opt ([Wnarrowing]): Update.
623
5f7504f9 6242011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
625
626 PR c++/45385
627 * c-common.c (conversion_warning): Remove code looking for
628 artificial operands.
629
2a688977 6302011-10-18 Dodji Seketeli <dodji@redhat.com>
631
632 PR bootstrap/50760
633 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
19931eea 634 !NO_IMPLICIT_EXTERN_C.
2a688977 635
326e3391 6362011-10-17 Michael Spertus <mike_spertus@symantec.com>
637
638 * c-common.c (c_common_reswords): Add __bases,
639 __direct_bases.
640 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
641
6422011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
643
644 PR c++/50757
645 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
646
62db153a 6472011-10-15 Tom Tromey <tromey@redhat.com>
648 Dodji Seketeli <dodji@redhat.com>
649
650 * c.opt (fdebug-cpp): New option.
651 * c-opts.c (c_common_handle_option): Handle the option.
652 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
653 output stream in parameter. Factorized from ...
654 (maybe_print_line): ... this. Dump location debug information when
655 -fdebug-cpp is in effect.
656 (print_line_1): New static function. Takes an output stream in
657 parameter. Factorized from ...
658 (print_line): ... here. Dump location information when -fdebug-cpp
659 is in effect.
660 (scan_translation_unit): Dump location information when
661 -fdebug-cpp is in effect.
662
ce70f433 6632011-10-15 Tom Tromey <tromey@redhat.com>
664 Dodji Seketeli <dodji@redhat.com>
665
666 * c.opt (ftrack-macro-expansion): New option. Handle it with and
667 without argument.
668 * c-opts.c (c_common_handle_option)<case
669 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
670 cases. Handle -ftrack-macro-expansion with and without argument.
671
97bfb9ef 6722011-10-15 Tom Tromey <tromey@redhat.com>
673 Dodji Seketeli <dodji@redhat.com>
674
675 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
676 (print_line, cb_define, do_line_change): Adjust to avoid touching
677 the internals of struct line_map. Use the public API instead.
678 * c-pch.c (c_common_read_pch): Likewise.
679 * c-lex.c (fe_file_change): Likewise.
680
326e3391 6812011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
682
683 PR c++/17212
684 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
685
6862011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
687
688 PR c++/33067
689 * c-pretty-print.c (pp_c_floating_constant): Output
690 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
691
b9a16870 6922011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
693
694 * c-common.c (def_builtin_1): Delete old interface with two
695 parallel arrays to hold standard builtin declarations, and replace
696 it with a function based interface that can support creating
697 builtins on the fly in the future. Change all uses, and poison
698 the old names. Make sure 0 is not a legitimate builtin index.
699 * c-omp.c (c_finish_omp_barrier): Ditto.
700 (c_finish_omp_taskwait): Ditto.
701 (c_finish_omp_flush): Ditto.
702
c7964868 7032011-10-11 Tristan Gingold <gingold@adacore.com>
704
705 * c.opt: (fallow-parameterless-variadic-functions): New.
706
a4e3ffad 7072011-09-08 Dodji Seketeli <dodji@redhat.com>
708
709 PR c++/33255 - Support -Wunused-local-typedefs warning
710 * c-common.h (struct c_language_function::local_typedefs): New
711 field.
19931eea 712 (record_locally_defined_typedef, maybe_record_typedef_use)
713 (maybe_warn_unused_local_typedefs): Declare new functions.
a4e3ffad 714 * c-common.c (record_locally_defined_typedef)
19931eea 715 (maybe_record_typedef_use)
716 (maybe_warn_unused_local_typedefs): Define new functions.
a4e3ffad 717 * c.opt: Declare new -Wunused-local-typedefs flag.
718
737a23cc 7192011-09-06 Eric Botcazou <ebotcazou@adacore.com>
720
721 PR middle-end/50266
722 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
723 computations.
724
7542c3b4 7252011-09-05 Richard Guenther <rguenther@suse.de>
726
727 * c-common.c (complete_array_type): Use ssize_int (-1) instead
728 of integer_minus_one_node for empty array upper bounds.
729
1dc92c59 7302011-08-28 Dodji Seketeli <dodji@redhat.com>
731
732 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
733 it's the first time it's being called on this main TU.
734
2bdf2b6e 7352011-08-24 Richard Guenther <rguenther@suse.de>
736
737 PR c/49396
738 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
739
7402011-08-22 Gabriel Charette <gchare@google.com>
6ea2c7a3 741
742 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
743 defined in cpp_init_builtins and c_cpp_builtins.
744
bff4ad11 7452011-08-19 Joseph Myers <joseph@codesourcery.com>
746
747 * c-common.c (c_common_reswords): Add __builtin_complex.
748 * c-common.h (RID_BUILTIN_COMPLEX): New.
749
985c6e3a 7502011-08-18 Joseph Myers <joseph@codesourcery.com>
751
752 * c-common.c (c_common_reswords): Add _Noreturn.
753 (keyword_is_function_specifier): Handle RID_NORETURN.
754 * c-common.h (RID_NORETURN): New.
755
7dfa155b 7562011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
757
758 * c-common.c (unsafe_conversion_p): New function. Check if it is
759 unsafe to convert an expression to the type.
760 (conversion_warning): Adjust, use unsafe_conversion_p.
761 * c-common.h (unsafe_conversion_p): New function declaration.
762
2169f33b 7632011-08-02 Jakub Jelinek <jakub@redhat.com>
764
765 * c-common.h (c_finish_omp_atomic): Adjust prototype.
766 (c_finish_omp_taskyield): New prototype.
767 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
768 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
769 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
770 or RHS1 have side-effects, evaluate those too in the right spot,
771 if it is a decl and LHS is also a decl, error out if they
772 aren't the same.
773 (c_finish_omp_taskyield): New function.
774 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
775 * c-pragma.c (omp_pragmas): Add taskyield.
776 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
777 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
778 PRAGMA_OMP_CLAUSE_MERGEABLE.
779
ab77850e 7802011-07-25 Dodji Seketeli <dodji@redhat.com>
781
782 * c-common.h (set_underlying_type): Remove parm name from
783 declaration.
784
6ee97920 7852011-07-25 Romain Geissler <romain.geissler@gmail.com>
786
787 * c-pretty-print.h: Search c-common.h in c-family.
19931eea 788
dc251364 7892011-07-22 Jason Merrill <jason@redhat.com>
790
1a2a35f0 791 PR c++/49793
792 * c.opt (Wnarrowing): New.
793
27282252 794 PR c++/30112
795 * c-common.h: Declare c_linkage_bindings.
796 * c-pragma.c (handle_pragma_redefine_extname): Use it.
797
dc251364 798 PR c++/49813
799 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
800 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
801 as flag_isoc99 for 'restrict'.
802 (pp_c_specifier_qualifier_list): Likewise for _Complex.
803
fc501191 8042011-07-21 Ian Lance Taylor <iant@google.com>
805
806 PR middle-end/49705
807 * c-common.c (c_disable_warnings): New static function.
808 (c_enable_warnings): New static function.
809 (c_fully_fold_internal): Change local unused_p to bool. Call
810 c_disable_warnings and c_enable_warnings rather than change
811 c_inhibit_evaluation_warnings.
812
07b8f133 8132011-07-20 Jason Merrill <jason@redhat.com>
814
815 PR c++/6709 (DR 743)
816 PR c++/42603 (DR 950)
817 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
818 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
819 (CPP_DECLTYPE): New.
820 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
821
2cc66f2a 8222011-07-19 Richard Guenther <rguenther@suse.de>
823
824 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
825 * c-omp.c (c_finish_omp_for): Likewise.
826
3c802a1e 8272011-07-12 Eric Botcazou <ebotcazou@adacore.com>
828
829 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
830 body on the next line.
831
98a33d9f 8322011-07-08 Jason Merrill <jason@redhat.com>
833
3115bda0 834 PR c++/45437
835 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
836
98a33d9f 837 PR c++/49673
838 * c-common.c (c_apply_type_quals_to_decl): Don't check
839 TYPE_NEEDS_CONSTRUCTING.
840
c38a75b7 8412011-07-06 Richard Guenther <rguenther@suse.de>
842
843 * c-common.c (c_common_nodes_and_builtins):
844 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
845
e593356b 8462011-07-05 Richard Guenther <rguenther@suse.de>
847
848 * c-common.c (c_common_nodes_and_builtins): Build all common
849 tree nodes first.
850
fca0886c 8512011-06-27 Jakub Jelinek <jakub@redhat.com>
852
a68f7a8d 853 * c-common.h (c_tree_chain_next): New static inline function.
854
fca0886c 855 * c-common.c (check_builtin_function_arguments): Handle
856 BUILT_IN_ASSUME_ALIGNED.
857
2797f13a 8582011-06-21 Andrew MacLeod <amacleod@redhat.com>
859
860 * c-common.c: Add sync_ or SYNC__ to builtin names.
861 * c-omp.c: Add sync_ or SYNC__ to builtin names.
9cad95b7 862
8632011-06-20 Pierre Vittet <piervit@pvittet.com>
864
865 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
866 handler.
867 (gen_pragma_handler): New union.
868 (internal_pragma_handler): New type.
869 (c_register_pragma_with_data)
870 (c_register_pragma_with_expansion_and_data): New functions.
871
872 * c-pragma.c (registered_pragmas, c_register_pragma_1)
873 (c_register_pragma, c_register_pragma_with_expansion)
874 (c_invoke_pragma_handler): Changed to work with
875 internal_pragma_handler.
876 (c_register_pragma_with_data)
877 (c_register_pragma_with_expansion_and_data): New functions.
878
218e3e4e 8792011-06-14 Joseph Myers <joseph@codesourcery.com>
880
881 * c-common.c: Include common/common-target.h.
882 (handle_section_attribute): Use
883 targetm_common.have_named_sections.
884 * c-cppbuiltin.c: Include common/common-target.h.
885 (c_cpp_builtins): Use targetm_common.except_unwind_info.
886
41e53ed2 8872011-06-10 Richard Guenther <rguenther@suse.de>
888
889 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
890 to print a IDENTIFIER_NODE.
891
a6f06169 8922011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
893 Joseph Myers <joseph@codesourcery.com>
894
895 * c.opt (fbuilding-libgcc): New option.
896 * c-cppbuiltin.c (c_cpp_builtins): Define
897 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
898
1ea9269b 8992011-06-07 Jason Merrill <jason@redhat.com>
900
8ce59854 901 * c-common.c (max_tinst_depth): Lower default to 900.
902
1ea9269b 903 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
904
1af0124d 9052011-06-07 Richard Guenther <rguenther@suse.de>
906
907 * c-common.c (c_common_nodes_and_builtins): Do not set
908 size_type_node or call set_sizetype.
909
0e9a4c01 9102011-06-07 Dodji Seketeli <dodji@redhat.com>
911
912 PR debug/49130
913 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
19931eea 914 type when using pointer comparison to compare types.
0e9a4c01 915
90b40725 9162011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
917
918 * c.opt: Add -Wdelete-non-virtual-dtor.
919 * c-opts.c (c_common_handle_option): Include it in -Wall.
920
fc9c9e87 9212011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
922
923 PR bootstrap/49190
924
925 Revert:
926 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
927
928 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
929 not tree_common.
930
d0389adc 9312011-05-27 Jakub Jelinek <jakub@redhat.com>
932
933 PR c++/49165
934 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
935 C++ don't call c_common_truthvalue_conversion on void type arms.
936
cacfdc02 9372011-05-27 Nathan Froyd <froydnj@codesourcery.com>
938
939 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
940 (stmt_list_stack): Define.
941 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
942 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
943
027fc6ef 9442011-05-26 Nathan Froyd <froydnj@codesourcery.com>
945
946 * c-common.c (warning_candidate_p): Check for BLOCKs.
947
f21317a1 9482011-05-26 Nathan Froyd <froydnj@codesourcery.com>
949
950 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
951 not tree_common.
952
789e953d 9532011-05-25 Jakub Jelinek <jakub@redhat.com>
954
955 * c-common.c (def_fn_type): Remove extra va_end.
956
7f506bca 9572011-05-23 Jason Merrill <jason@redhat.com>
958
959 PR c++/48106
960 * c-common.c (c_common_get_narrower): New.
961 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
962
774e9d58 9632011-05-23 Nathan Froyd <froydnj@codesourcery.com>
964
965 * c-common.h (check_function_arguments): Tweak prototype of
966 check_function_arguments.
967 * c-common.c (check_function_arguments): Likewise. Adjust
968 calls to check_function_nonnull, check_function_format, and
969 check_function_sentinel.
970 (check_function_sentinel): Take a FUNCTION_TYPE rather than
971 separate attributes and typelist arguments. Use
972 FOREACH_FUNCTION_ARGS to iterate over argument types.
973
23407dc9 9742011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
975
976 * c-common.c (c_common_reswords): Reorder.
977 * c-common.h (rid): Likewise.
978
3a939d12 9792011-05-10 Nathan Froyd <froydnj@codesourcery.com>
980
981 * c-common.c (def_fn_type): Don't call build_function_type, call
982 build_function_type_array or build_varargs_function_type_array
983 instead.
984 (c_common_nodes_and_builtins): Likewise.
985
b6e3dd65 9862011-05-05 Nathan Froyd <froydnj@codesourcery.com>
987
988 * c-common.c (c_add_case_label): Omit the loc argument to
989 build_case_label.
990 * c-common.h (build_case_label): Remove.
991 * c-semantics.c (build_case_label): Remove.
992
4232a958 9932011-05-05 Joseph Myers <joseph@codesourcery.com>
994
995 * c-objc.h (objc_start_method_definition): Update prototype.
996 * stub-objc.c (objc_start_method_definition): Add extra parameter.
997
d0af78c5 9982011-05-04 Nathan Froyd <froydnj@codesourcery.com>
999
1000 * c-common.c (check_main_parameter_types): Reindent. Don't use
1001 TYPE_ARG_TYPES directly.
1002 (handle_nonnull_attribute): Likewise.
1003 (sync_resolve_params): Likewise.
1004 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1005 to check_format_string.
1006 (handle_format_attribute): Likewise.
1007 (check_format_string): Take a function type to examine instead of
1008 a type list. Use a function_arg_iterator to step through argument
1009 types.
1010
ceb7b692 10112011-05-04 Richard Guenther <rguenther@suse.de>
1012
1013 * c-common.c (fix_string_type): Use size_int for index type bounds.
1014 (start_fname_decls): Do not pass NULL to build_int_cst.
1015 (c_init_attributes): Likewise.
1016 * c-lex.c (c_lex_with_flags): Likewise.
1017
c66c81be 10182011-04-27 Jason Merrill <jason@redhat.com>
1019
1020 * c-common.c (make_tree_vector_from_list): New.
1021 * c-common.h: Declare it.
1022
16930c72 10232011-04-26 Richard Guenther <rguenther@suse.de>
1024
1025 PR preprocessor/48248
1026 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1027 for output size with -P.
1028
23407dc9 10292011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1030
1031 * c-common.c (struct c_common_resword): Add __underlying_type.
1032 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1033
dd045aee 10342011-04-20 Jim Meyering <meyering@redhat.com>
1035
1036 * c-format.c (init_dollar_format_checking): Remove useless
1037 if-before-free.
1038
394dd737 10392011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1040
1041 * c-objc.h (objc_get_interface_ivars): Removed.
23407dc9 1042 (objc_detect_field_duplicates): New.
394dd737 1043 * stub-objc.c: Likewise.
23407dc9 1044
a758bf7d 10452011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1046
1047 * stub-objc.c (objc_declare_protocols): Renamed to
1048 objc_declare_protocol.
1049 * c-objc.h: Likewise.
23407dc9 1050
29d7200d 10512011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1052
1053 * stub-objc.c (objc_declare_class): Updated argument name.
1054
9b88d08d 10552011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1056
1057 * c-common.h (c_common_init_ts): Declare.
1058 * c-common.c (c_common_init_ts): Define.
1059
4185cf58 10602011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1061
1062 * c-objc.h (objc_build_message_expr): Updated prototype.
1063 * stub-objc.c (objc_build_message_expr): Likewise.
19931eea 1064
5a90471f 10652011-04-12 Martin Jambor <mjambor@suse.cz>
1066
1067 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1068 of cgraph_node.
1069
783bb57e 10702011-04-11 Richard Guenther <rguenther@suse.de>
1071
1072 * c-common.c (complete_array_type): Build a range type of
1073 proper type.
1074
c33080b9 10752011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1076
1077 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1078 (handle_type_generic_attribute): Likewise.
1079
f8913d47 10802011-04-07 Jason Merrill <jason@redhat.com>
1081
1082 PR c++/48450
1083 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1084 conversion from C++0x scoped enum.
1085
c94b1d0e 10862011-04-06 Joseph Myers <joseph@codesourcery.com>
1087
1088 * c-target-def.h: New file.
1089 * c-target.def: New file.
1090 * c-target.h: New file.
1091 * c-common.c (targetcm): Don't define here.
1092 * c-common.h (default_handle_c_option): Declare.
1093 * c-format.c: Include c-target.h instead of target.h.
1094 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1095 include tm.h.
1096 (default_handle_c_option): Move from targhooks.c.
1097
acb10f41 10982011-03-29 Jakub Jelinek <jakub@redhat.com>
1099
1100 PR preprocessor/48248
1101 * c-ppoutput.c (print): Add src_file field.
1102 (init_pp_output): Initialize it.
1103 (maybe_print_line): Don't optimize by adding up to 8 newlines
1104 if map->to_file and print.src_file are different file.
1105 (print_line): Update print.src_file.
1106
82715bcd 11072011-03-25 Kai Tietz <ktietz@redhat.com>
1108
1109 * c-ada-spec.c (compare_comment): Use filename_cmp
1110 instead of strcmp for filename.
1111
451c8e2f 11122011-03-25 Jeff Law <law@redhat.com>
1113
1114 * c-family/c-common.c (def_fn_type): Add missing va_end.
1115
3c47771c 11162011-03-25 Jason Merrill <jason@redhat.com>
1117
1118 * c.opt: Add -std=c++03.
1119
97e6200f 11202011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1121
1122 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1123
ac86af5d 11242011-03-17 Kai Tietz
1125
1126 PR target/12171
ee212425 1127 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1128 Display allowed attributes for function pointer types.
1129 (pp_c_attributes_display): New function to display
1130 attributes having affects_type_identity flag set to true.
1131 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1132
ac86af5d 1133 * c-common.c (c_common_attribute_table):
1134 Add new element.
1135 (c_common_format_attribute_table): Likewise.
1136
914d1151 11372011-03-18 Jason Merrill <jason@redhat.com>
1138
69788bdf 1139 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1140 * c-common.h: Don't declare it here.
1141 * c-common.c: Or define it here.
1142 * c-opts.c (c_common_handle_option): Or set it here.
1143
914d1151 1144 PR c++/35315
1145 * c-common.c (handle_transparent_union_attribute): Don't
1146 make a duplicate type in C++.
1147
54cf6eed 11482011-03-15 Jason Merrill <jason@redhat.com>
1149
1150 * c-common.c (max_constexpr_depth): New.
1151 * c-common.h: Declare it.
1152 * c-opts.c (c_common_handle_option): Set it.
1153 * c.opt (fconstexpr-depth): New option.
1154
02cb1060 11552011-03-11 Jason Merrill <jason@redhat.com>
1156
9bf1c74e 1157 * c-common.c (attribute_takes_identifier_p): Add missing const.
1158
02cb1060 1159 PR c++/46803
1160 * c-common.c (attribute_takes_identifier_p): Assume that an
1161 unknown attribute takes an identifier.
1162
ecf2703d 11632011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1164
1165 PR c/47786
1166 * c-common.c (c_type_hash): Call list_length instead of iterating
1167 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1168
2b19dfe4 11692011-02-19 Jakub Jelinek <jakub@redhat.com>
1170
1171 PR c/47809
1172 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1173
29cf2335 11742011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1175
1176 * c.opt (fobjc-abi-version=) New.
1177 (fobjc-nilcheck): New.
1178
fad3f658 11792011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1180
1181 PR c++/46890
1182 * c-common.h (keyword_is_decl_specifier): Declare.
1183 * c-common.c (keyword_is_decl_specifier): Define.
1184 (keyword_is_function_specifier): New function.
1185
a12319b3 11862011-01-26 Jakub Jelinek <jakub@redhat.com>
1187
1188 PR c/47473
1189 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1190 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1191 REAL_TYPE.
1192
5c128dc8 11932011-01-26 Arnaud Charlet <charlet@adacore.com>
1194
1195 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1196
8d67b0c7 11972011-01-26 Jakub Jelinek <jakub@redhat.com>
1198
1199 PR pch/47430
1200 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1201 after init_c_lex if pch_file is set.
1202
0675168d 12032011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1204
e8911163 1205 PR c++/43601
0675168d 1206 * c.opt (-fkeep-inline-dllexport): New switch.
1207
0725e25c 12082011-01-12 Richard Guenther <rguenther@suse.de>
1209
1210 PR middle-end/32511
1211 * c-common.c (handle_weak_attribute): Warn instead of error
1212 on declaring an inline function weak.
1213
fdd84b77 12142011-01-05 Tom Tromey <tromey@redhat.com>
1215
1216 * c-common.h (lvalue_error): Update.
1217 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1218 not error.
1219
e6e73d14 12202010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
19931eea 1221
d67e8485 1222 PR objc/47075
1223 * c-objc.h (objc_finish_message_expr): Added argument to
1224 prototype.
1225
a36cf284 12262010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1227
1228 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1229 Use prototype_p.
1230
33b3681f 12312010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1232
1233 * c-objc.h (objc_maybe_warn_exceptions): New.
19931eea 1234 * stub-objc.c (objc_maybe_warn_exceptions): New.
33b3681f 1235
a1f90215 12362010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1237
1238 * c-common.h (readonly_error): Declare.
1239 * c-common.c (readonly_error): Define.
1240
b1bbc8e5 12412010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1242
1243 * c-common.h (invalid_indirection_error): Declare.
1244 * c-common.c (invalid_indirection_error): Define.
1245
b0d55af9 12462010-12-03 Richard Guenther <rguenther@suse.de>
1247
1248 PR c/46745
1249 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1250 (pp_c_unary_expression): Likewise.
1251 (pp_c_expression): Likewise.
1252
d7489d8d 12532010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1254
1255 * c-common.h (objc_finish_function): New.
1256 (objc_non_volatilized_type): Removed.
1257 (objc_type_quals_match): Removed.
1258 * stub-objc.c (objc_finish_function): New.
1259 (objc_non_volatilized_type): Removed.
1260 (objc_type_quals_match): Removed.
19931eea 1261
92468061 12622010-11-30 Joseph Myers <joseph@codesourcery.com>
1263
1264 * c-common.h (parse_optimize_options): Declare.
1265 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1266 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1267
967958e4 12682010-11-29 Joseph Myers <joseph@codesourcery.com>
1269
1270 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1271 GET_ENVIRONMENT.
1272 * c-pch.c (O_BINARY): Don't define here.
1273 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1274
b213bf24 12752010-11-25 Joseph Myers <joseph@codesourcery.com>
1276
1277 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1278 targetm.except_unwind_info.
1279
9faf44d6 12802010-11-23 Joseph Myers <joseph@codesourcery.com>
1281
1282 * c-opts.c (c_common_handle_option): Pass location to
1283 set_struct_debug_option.
1284
79396169 12852010-11-23 Joseph Myers <joseph@codesourcery.com>
1286
1287 * c-common.c (visibility_options): Move from ../opts.c.
1288 * c-common.h (struct visibility_flags, visibility_options):
1289 Declare here.
1290 * c-opts.c (finish_options): Rename to c_finish_options.
1291 (c_common_init): Update call to finish_options.
1292
b4aa4123 12932010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1294
1295 PR objc/34033
1296 * c-lex.c (lex_string): Check that each string in an Objective-C
1297 string concat sequence starts with either one or zero '@', and
1298 that there are no spurious '@' signs at the end.
1299
3e0e49f2 13002010-11-20 Joseph Myers <joseph@codesourcery.com>
1301
1302 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1303 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1304 HANDLE_PRAGMA_VISIBILITY.
1305 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1306 HANDLE_PRAGMA_VISIBILITY): Don't define.
1307 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1308
a9ffdd35 13092010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1310
1311 PR c++/16189
1312 PR c++/36888
1313 PR c++/45331
1314 * c-common.h (keyword_begins_type_specifier): Declare.
1315 (keyword_is_storage_class_specifier): Declare.
1316 (keyword_is_type_qualifier): Declare.
1317 * c-common.c (keyword_begins_type_specifier): New function.
1318 (keyword_is_storage_class_specifier): New function.
1319 (keyword_is_type_qualifier): Declare.
1320
93be21c0 13212010-11-19 Joseph Myers <joseph@codesourcery.com>
1322
1323 PR c/46547
1324 * c-common.c (in_late_binary_op): Define.
1325 (c_common_truthvalue_conversion): Check in_late_binary_op before
1326 calling c_save_expr.
1327 * c-common.h (in_late_binary_op): Declare.
1328
d7175aef 13292010-11-19 Joseph Myers <joseph@codesourcery.com>
1330
1331 * c-opts.c (c_common_handle_option): Update calls to
1332 set_struct_debug_option.
1333
c213e196 13342010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1335
1336 * c-common.h (objc_declare_protocols): Added additional argument.
1337 * stub-objc.c (objc_declare_protocol): Same change.
19931eea 1338
0b5fc5d6 13392010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1340
1341 PR c/33193
1342 * c-common.h (build_real_imag_expr): Declare.
1343 * c-semantics.c (build_real_imag_expr): Define.
1344
b8ba44e7 13452010-11-17 Joseph Myers <joseph@codesourcery.com>
1346
1347 * c-opts.c (c_common_parse_file): Take no arguments.
1348 * c-common.h (c_common_parse_file): Update prototype.
1349
6ef8d12f 13502010-11-16 Jakub Jelinek <jakub@redhat.com>
1351
1352 PR c++/46401
1353 * c-common.c (warning_candidate_p): Don't track non-const calls
1354 or STRING_CSTs.
1355
929d2a90 13562010-11-15 Ian Lance Taylor <iant@google.com>
1357
1358 * c-lex.c (init_c_lex): Set macro debug callbacks if
1359 flag_dump_go_spec is set.
1360
e4a7640a 13612010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1362
1363 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1364 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1365
597d2d81 13662010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1367
1368 PR preprocessor/45038
1369 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1370 dialects.
1371
c123f04d 13722010-11-12 Joseph Myers <joseph@codesourcery.com>
1373
1374 * c-common.h (c_family_lang_mask): Declare.
1375 * c-opts.c (c_family_lang_mask): Make extern.
1376 * c-pragma.c (handle_pragma_diagnostic): Use
1377 control_warning_option.
1378
3c6c0e40 13792010-11-12 Joseph Myers <joseph@codesourcery.com>
1380
1381 * c-common.c (parse_optimize_options): Update call to
1382 decode_options.
1383 * c-common.h (c_common_handle_option): Update prototype.
1384 * c-opts.c (c_common_handle_option): Take location_t parameter and
1385 pass it to other functions.
1386
19ec5c9e 13872010-11-11 Joseph Myers <joseph@codesourcery.com>
1388
1389 * c-opts.c (warning_as_error_callback): Remove.
1390 (c_common_initialize_diagnostics): Don't call
1391 register_warning_as_error_callback.
1392 (c_common_handle_option): Handle -Werror=normalized= here.
1393
bf776685 13942010-11-10 Joseph Myers <joseph@codesourcery.com>
1395
1396 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1397 in diagnostic.
1398 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1399 letter.
1400 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1401 Remove trailing '.' from diagnostics.
1402 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1403
6bd9d862 14042010-11-10 Joseph Myers <joseph@codesourcery.com>
1405
1406 * c-common.c (parse_optimize_options): Pass global_dc to
1407 decode_options.
1408 * c-opts.c (c_common_handle_option): Pass &global_options to
1409 set_Wstrict_aliasing.
1410 * c.opt (v): Don't mark Common or document here.
1411
1f6616ee 14122010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1413
1414 PR target/44981
1415 * c-format.c (format_type): New type gcc_objc_string_format_type.
1416 (valid_stringptr_type_p): New.
1417 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
19931eea 1418 (check_format_string): Pass expected type, use
1f6616ee 1419 valid_stringptr_type_p (), check that the format string types are
1420 consistent with the format specification.
1421 (decode_format_attr): Warn if NSString is used outside objective-c.
1422 (format_types_orig): Add NSString.
1423 (format_name): New.
1424 (format_flags): New.
1425 (check_format_arg): Handle format strings requiring an external parser.
1426 first_target_format_type: New variable.
1427 (handle_format_attribute): Set up first_target_format_type, pass the
1428 expected format arg string type to check_format_string().
1429 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1430 * stub-objc.c (objc_string_ref_type_p): New.
1431 (objc_check_format_arg): New.
1432
b0d0931f 14332010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1434
19931eea 1435 Fixed using the Objective-C 2.0 dot-syntax with class names.
b0d0931f 1436 * c-common.h (objc_build_class_component_ref): New.
1437 * stub-objc.c (objc_build_class_component_ref): New.
1438
f26877d5 14392010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1440
1441 * c.opt (Wproperty-assign-default): New option.
1442
1ef143b6 14432010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1444
1445 Implemented -fobjc-std=objc1 flag.
1446 * c.opt (fobjc-std=objc1): New option.
1447
8c582e4f 14482010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1449
1450 Implemented format and noreturn attributes for Objective-C methods.
1451 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1452 attribute for Objective-C methods.
1453
8637f1db 14542010-10-31 Jason Merrill <jason@redhat.com>
1455
1456 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1457 EXPR_LOC_OR_HERE.
1458
9d9f5bb3 14592010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1460
1461 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1462 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1463 (objc_add_property_declaration): Removed arguments for copies and
1464 ivar.
1465 (objc_build_getter_call): Renamed to
1466 objc_maybe_build_component_ref.
1467 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1468 (objc_is_property_ref): New.
1469 * c-common.c (c_common_reswords): Removed copies and ivar.
1470 * stub-objc.c (objc_add_property_declaration): Removed arguments
1471 for copies and ivar.
1472 (objc_build_getter_call): Renamed to
1473 objc_maybe_build_component_ref.
1474 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1475 (objc_is_property_ref): New.
19931eea 1476
56f907a0 14772010-10-29 Arnaud Charlet <charlet@adacore.com>
1478 Matthew Gingell <gingell@adacore.com>
1479
1480 * c-ada-spec.c (separate_class_package): New function.
1481 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1482 name of their enclosing package.
1483 (print_ada_declaration): Use separate_class_package.
1484
b5fa273e 14852010-10-27 Jason Merrill <jason@redhat.com>
1486
5290e253 1487 * c-common.c (c_common_reswords): Add __is_literal_type.
1488 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1489
b5fa273e 1490 * c-common.c (check_case_value): Remove special C++ code.
1491
7590f0e5 14922010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1493
1494 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1495 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1496 and RID_LAST_PATTR.
1497 (objc_add_property_declaration): Added additional arguments.
1498 (objc_property_attribute_kind): Removed.
1499 (objc_set_property_attr): Removed.
1500 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1501 copy and nonatomic.
1502 * stub-objc.c (objc_add_property_declaration): Added additional
1503 arguments.
1504 (objc_set_property_attr): Removed.
19931eea 1505
1d894bcf 15062010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1507
1508 * c-common.h (objc_add_property_variable): Renamed to
1509 objc_add_property_declaration. Added location argument.
1510 * stub-objc.c (objc_add_property_variable): Same change.
1511
e23bf1fb 15122010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1513
1514 * c-common.h (objc_maybe_printable_name): New.
1515 * stub-objc.c (objc_maybe_printable_name): New.
1516
93426222 15172010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1518 Andrew Pinski <pinskia@gmail.com>
1519
1520 * c-common.h (c_common_mark_addressable_vec): Declare.
1521 * c-common.c (c_common_mark_addressable_vec): New function.
1522
45b2b110 15232010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1524
1525 * c-common.h (objc_set_method_type): Removed.
1526 (objc_add_method_declaration): Added boolean argument.
1527 (objc_start_method_definition): Same change.
1528 (objc_build_method_signature): Same change.
1529 * stub-objc.c (objc_set_method_type): Removed.
1530 (objc_add_method_declaration): Added boolean argument.
1531 (objc_start_method_definition): Same change.
1532 (objc_build_method_signature): Same change.
1533
64cd9619 15342010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1535
1536 * c-common.h (finish_file): Removed.
1537 (objc_write_global_declarations): New.
1538 * c-opts.c (c_common_parse_file): Do not call finish_file.
1539 * stub-objc.c (objc_write_global_declarations): New.
19931eea 1540
e1f293c0 15412010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1542
1543 Implemented parsing @synthesize and @dynamic for
1544 Objective-C/Objective-C++.
1545 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1546 (objc_add_synthesize_declaration): New.
1547 (objc_add_dynamic_declaration): New.
1548 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1549 * stub-objc.c (objc_add_synthesize_declaration): New.
1550 (objc_add_dynamic_declaration): New.
19931eea 1551
ef97a312 15522010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1553
1554 PR target/46041
1555 * c-cppbuiltin.c (mode_has_fma): Move function here from
1556 builtins.c. Don't use the fma optab, instead just use the
1557 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1558 using -save-temps.
1559
69b07042 15602010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1561
1562 Merge from 'apple/trunk' branch on FSF servers.
ef97a312 1563
69b07042 1564 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1565
19931eea 1566 Radar 4330422
69b07042 1567 * c-common.h (objc_non_volatilized_type): New declaration
1568 * stub-objc.c (objc_non_volatilized_type): New stub.
1569
f15f2e56 15702010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1571
69b07042 1572 Merge from 'apple/trunk' branch on FSF servers.
f15f2e56 1573
1574 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1575
19931eea 1576 Radar 4133425
f15f2e56 1577 * c-common.h (objc_diagnose_private_ivar): New decl.
ef97a312 1578 * stub-objc.c (objc_diagnose_private_ivar): New stub.
f15f2e56 1579
4a8875ed 15802010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1581
1582 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1583 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1584 (objc_ivar_visibility_kind): New enum.
1585 (objc_set_visibility): Adjust prototype to use visibility enum.
ef97a312 1586 * stub-objc.c (objc_set_visibility): Adjust stub to use
4a8875ed 1587 visibility enum.
1588
7e0713b1 15892010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1590
1591 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1592 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1593 has the appropriate fma builtins.
1594 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1595
86c110ac 15962010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1597
7e0713b1 1598 merge from FSF apple 'trunk' branch.
86c110ac 1599 2006 Fariborz Jahanian <fjahanian@apple.com>
7e0713b1 1600
86c110ac 1601 Radars 4436866, 4505126, 4506903, 4517826
1602 * c-common.c (c_common_resword): Define @property and its attributes.
1603 * c-common.h: Define property attribute enum entries.
1604 (OBJC_IS_PATTR_KEYWORD): New.
1605 (objc_property_attribute_kind): New enum.
1606 Declare objc_set_property_attr (), objc_add_property_variable (),
1607 objc_build_getter_call () and objc_build_setter_call ().
1608 * stub-objc.c (objc_set_property_attr): New stub.
1609 (objc_add_property_variable): Likewise.
1610 (objc_build_getter_call): Likewise.
1611 (objc_build_setter_call) Likewise.
7e0713b1 1612
40c8d1dd 16132010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1614
7e0713b1 1615 merge from FSF apple 'trunk' branch.
40c8d1dd 1616 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1617
1618 Radar 3803157 (method attributes)
1619 * c-common.c (handle_deprecated_attribute): Recognize
1620 objc methods as valid declarations.
1621 * c-common.h: Declare objc_method_decl ().
7e0713b1 1622 * stub-objc.c (objc_method_decl): New stub.
40c8d1dd 1623
f3f006ad 16242010-10-08 Joseph Myers <joseph@codesourcery.com>
1625
1626 * c-common.c (parse_optimize_options): Call
1627 decode_cmdline_options_to_array_default_mask before
1628 decode_options. Update arguments to decode_options.
1629 * c-common.h (c_common_init_options_struct): Declare.
1630 * c-opts.c (c_common_init_options_struct): New. Split out from
1631 c_common_init_options.
1632
0a65c3bb 16332010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1634
1635 Implemented fast enumeration for Objective-C.
1636 * c-common.h (objc_finish_foreach_loop): New.
1637 * stub-objc.c (objc_finish_foreach_loop): New.
1638
24ca3b4e 16392010-10-05 Joseph Myers <joseph@codesourcery.com>
1640
1641 * c-common.h (struct diagnostic_context): Don't declare here.
1642 (c_common_initialize_diagnostics): Declare using
1643 diagnostic_context typedef.
1644 * c-opts.c (c_common_handle_option): Pass global_dc to
1645 handle_generated_option.
1646
f83b64ca 16472010-10-04 Joseph Myers <joseph@codesourcery.com>
1648
1649 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1650 handle_generated_option.
1651
2fdec027 16522010-10-03 Ian Lance Taylor <iant@google.com>
1653
1654 * c.opt (-fplan9-extensions): New option.
1655
41acdfa4 16562010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1657
1658 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1659 Remove.
1660 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1661 of duplicating code.
1662
069761fb 16632010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1664
1665 * c-common.c: Add two new entries for @optional
1666 and @required keywords.
1667
1668 merge from FSF 'apple/trunk' branch.
1669 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1670
1671 Radar 4386773
1672 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1673 objective-c keywords.
1674 (objc_set_method_opt): New declaration.
1675 * stub-objc.c (objc_set_method_opt): New stub.
19931eea 1676
2c5d2e39 16772010-09-30 Joseph Myers <joseph@codesourcery.com>
1678
1679 * c-common.c (handle_optimize_attribute): Pass &global_options to
1680 cl_optimization_save and cl_optimization_restore.
1681 * c-opts.c (c_common_handle_option): Pass &global_options to
1682 handle_generated_option.
1683 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1684 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1685 &global_options to cl_optimization_restore.
1686
e5c75ac3 16872010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1688
1689 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1690 Objective-C/Objective-C++ keywords.
1691
3511333e 16922010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
e147d6aa 1693
19931eea 1694 Merge from 'apple/trunk' branch on FSF servers.
1695
e147d6aa 1696 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1697
1698 Radar 4281748
1699 * c-common.h (objc_check_global_decl): New declaration.
1700 * stub-objc.c (objc_check_global_decl): New stub.
1701
5461e683 17022010-09-29 Joseph Myers <joseph@codesourcery.com>
1703
1704 * c.opt: Don't use VarExists.
1705
5ae82d58 17062010-09-29 Joseph Myers <joseph@codesourcery.com>
1707
1708 * c-common.c (c_cpp_error): Update names of diagnostic_context
1709 members.
1710 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1711 cl_optimization members.
1712 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1713 sanitize_cpp_opts, finish_options): Update names of cpp_options
1714 members.
1715
b27e241e 17162010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1717
1718 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1719 (objc_is_reserved_word): Removed.
1720 * c-common.c: Updated comments.
1721 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1722 objc_is_reserved_word.
1723 * stub-objc.c (objc_is_reserved_word): Removed.
1724
03fc2271 17252010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1726
19931eea 1727 * c-common.h (objc_add_method_declaration): Adjust prototype to
03fc2271 1728 include attributes.
1729 (objc_start_method_definition): Likewise.
1730 (objc_build_keyword_decl): Likewise.
1731 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1732 (objc_start_method_definition): Likewise.
1733 (objc_build_keyword_decl): Likewise.
1734
a336eb4b 17352010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1736
1737 * c-common.h (objc_start_class_interface): Adjust prototype.
1738 (objc_start_category_interface): Likewise.
1739 (objc_start_protocol): Likewise.
1740 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1741 (objc_start_class_interface): Likewise.
1742 (objc_start_category_interface): Likewise.
1743
48b14f50 17442010-09-27 Ian Lance Taylor <iant@google.com>
1745
1746 * c-common.c (c_common_attribute_table): Add no_split_stack.
1747 (handle_no_split_stack_attribute): New static function.
1748
4abfc532 17492010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1750
19931eea 1751 Merge from 'apple/trunk' branch on FSF servers.
4abfc532 1752
1753 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1754
19931eea 1755 Radar 4229905
4abfc532 1756 * c-common.h (objc_have_common_type): New declaration.
1757 * stub-objc.c (objc_have_common_type): New stub.
1758
1759 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1760
1761 Radar 4154928
1762 * c-common.h (objc_common_type): New prototype.
19931eea 1763 * stub-objc.c (objc_common_type): New stub.
4abfc532 1764
7bd95dfd 17652010-09-24 Jan Hubicka <jh@suse.cz>
1766
1767 * c-common.c (handle_leaf_attribute): New function.
1768 (struct attribute_spec c_common_att): Add leaf.
1769
5789e05b 17702010-09-22 Joseph Myers <joseph@codesourcery.com>
1771
1772 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1773 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1774 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1775 -include-barrier, -include-directory, -include-directory=,
1776 -include-directory-after, -include-directory-after=,
1777 -include-prefix, -include-prefix=, -include-with-prefix,
1778 -include-with-prefix=, -include-with-prefix-after,
1779 -include-with-prefix-after=, -include-with-prefix-before,
1780 -include-with-prefix-before=, -no-integrated-cpp,
1781 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1782 -output=, -pedantic, -pedantic-errors, -preprocess,
1783 -print-missing-file-dependencies, -trace-includes, -traditional,
1784 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1785 -user-dependencies, -verbose, -write-dependencies,
1786 -write-user-dependencies, no-integrated-cpp, traditional): New.
1787
e6fb54ba 17882010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1789
1790 PR objc/23710
9b60f3b0 1791 * c-common.h (objc_start_method_definition): Return bool instead
1792 of void.
1793 * stub-objc.c (objc_start_method_definition): Return bool instead
1794 of void.
1795
17962010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1797
1798 PR objc/25965
1799 * c-common.h (objc_get_interface_ivars): New declaration.
1800 * stub-objc.c (objc_get_interface_ivars): New stub.
e6fb54ba 1801
e44b0a1f 18022010-09-15 Ian Lance Taylor <iant@google.com>
1803
1804 * c-common.c (parse_optimize_options): Do not capitalize warning
ebd7c4c1 1805 messages. Remove period at end of warning message.
e44b0a1f 1806
85c0a25c 18072010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1808
1809 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1810 (handle_alias_attribute): ... here.
1811 (handle_ifunc_attribute): New.
1812
5ba33bf4 18132010-09-06 Mark Mitchell <mark@codesourcery.com>
1814
1815 * c-common.h (do_warn_double_promotion): Declare.
1816 * c-common.c (do_warn_double_promotion): Define.
1817
c920faa3 18182010-09-05 Mark Mitchell <mark@codesourcery.com>
1819
1820 * c.opt (Wdouble-promotion): New.
1821
9604e070 18222010-09-02 Joseph Myers <joseph@codesourcery.com>
1823
1824 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1825 fvtable-thunks, fxref): Mark no longer supported in help text.
1826
3b0273a1 18272010-09-02 Joseph Myers <joseph@codesourcery.com>
1828
1829 * c.opt (Wimport, fall-virtual, falt-external-templates,
1830 fdefault-inline, fenum-int-equiv, fexternal-templates,
1831 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1832 fname-mangling-version-, fnew-abi, fnonnull-objects,
1833 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1834 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1835 applicable.
1836 (fhandle-exceptions): Mark with Alias and Warn.
1837 * c-opts.c (c_common_handle_option): Don't handle options marked
1838 as ignored.
1839
67089c6b 18402010-09-02 Joseph Myers <joseph@codesourcery.com>
1841
1842 * c.opt (Wcomments, Werror-implicit-function-declaration,
1843 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1844 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1845 aliases.
1846 * c-common.c (option_codes): Use OPT_Wcomment instead of
1847 OPT_Wcomments.
1848 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1849 Don't handle options marked as aliases.
1850
2af087f2 18512010-08-25 Richard Guenther <rguenther@suse.de>
1852
1853 * c-common.c (c_common_get_alias_set): Remove special
1854 handling for pointers.
1855
48148244 18562010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1857
1858 * c-common.c: Use FOR_EACH_VEC_ELT.
1859 * c-gimplify.c: Likewise.
1860 * c-pragma.c: Likewise.
1861
89c69892 18622010-08-16 Joseph Myers <joseph@codesourcery.com>
1863
1864 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1865 RejectDriver.
1866 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1867 RejectDriver.
1868 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1869 instead of OPT_MDX and OPT_MMDX.
1870
e28aa114 18712010-08-16 Joseph Myers <joseph@codesourcery.com>
1872
1873 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1874
99b66d21 18752010-08-12 Joseph Myers <joseph@codesourcery.com>
1876
1877 * c.opt (MD, MMD): Change to MDX and MMDX.
1878 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1879
666f4bf0 18802010-08-11 Joseph Myers <joseph@codesourcery.com>
1881
1882 * c-opts.c (c_common_handle_option): Call handle_generated_option
1883 instead of handle_option.
1884
5ec815f6 18852010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1886
1887 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1888 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1889
d13143cf 18902010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1891
1892 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1893 (pending_redefine_extname): Change type to a VEC.
1894 (add_to_renaming_pragma_list): Update for new type of
1895 pending_redefine_extname.
5ec815f6 1896 (maybe_apply_renaming_pragma): Likewise.
d13143cf 1897
2008c983 18982010-08-04 Arnaud Charlet <charlet@adacore.com>
1899
1900 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1901 visited.
1902 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1903 decide whether a type has already been declared/seen.
1904 Do not go to the original type.
1905 (dump_nested_types): New parameter forward.
1906 Generate forward declaration if needed and mark type as visited.
1907 (print_ada_declaration): Call dump_nested_types if not already done.
1908 Mark types as visited.
1909
9b091a73 19102010-08-03 Joseph Myers <joseph@codesourcery.com>
1911
1912 * c.opt (-print-pch-checksum): Remove option.
1913 * c-opts.c (c_common_handle_option): Don't handle
1914 OPT_print_pch_checksum.
1915
b78351e5 19162010-07-27 Joseph Myers <joseph@codesourcery.com>
1917
1918 * c-common.h (c_common_handle_option): Update prototype and return
1919 value type.
1920 * c-opts.c (c_common_handle_option): Update prototype and return
1921 value type. Update calls to handle_option and
1922 enable_warning_as_error.
1923
34416a90 19242010-07-27 Jakub Jelinek <jakub@redhat.com>
1925
1926 PR c/45079
1927 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1928
fecf9011 19292010-07-27 Joseph Myers <joseph@codesourcery.com>
1930
1931 * c-common.h (c_common_missing_argument): Remove.
1932 * c-opts.c (c_common_missing_argument): Remove.
1933 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1934 idirafter, imacros, include, isysroot, isystem, iquote): Add
1935 MissingArgError.
1936 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1937
e88d34f6 19382010-07-27 Joseph Myers <joseph@codesourcery.com>
1939
1940 * c-common.h (c_common_option_lang_mask,
1941 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1942 New.
1943 (c_common_init_options): Update prototype.
1944 * c-opts.c (c_common_option_lang_mask): New.
1945 (c_common_initialize_diagnostics): Split out of
1946 c_common_init_options.
1947 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1948 New.
1949 (c_common_init_options): Update prototype. Use decoded options in
1950 search for -lang-asm.
1951
1767a056 19522010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1953
1954 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1955 * c-format.c: Likewise.
1956
0b205f4c 19572010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1958
1959 * c-common.h: Include diagnostic-core.h. Error if already
1960 included.
1961 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1962
1c58e3f1 19632010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1964
1965 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1966 Do not include expr.h
1967 (vector_mode_valid_p): Move here.
1968
33cc157c 19692010-06-21 DJ Delorie <dj@redhat.com>
1970
1971 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1972 allow these pragmas anywhere.
1973
19742010-06-14 Jakub Jelinek <jakub@redhat.com>
1975
1976 PR bootstrap/44509
1977 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1978 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1979 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1980 ggc_strdup instead of xstrdup.
1981
19822010-06-10 Jakub Jelinek <jakub@redhat.com>
1983
1984 * c-cppbuiltin.c: Include cpp-id-data.h.
1985 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1986 (lazy_hex_fp_value): New function.
1987 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1988
9b40bfbf 19892010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1990
1991 * c-gimplify.c: Do not include tree-flow.h
1992
202d6e5f 19932010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1994
1995 PR other/44034
1996 * c-common.c: Rename targetm member:
1997 targetm.enum_va_list -> targetm.enum_va_list_p
1998
d3237426 19992010-06-28 Anatoly Sokolov <aesok@post.ru>
2000
2001 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2002
596981c8 20032010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2004
2005 * c-cppbuiltin.c: Do not include except.h.
2006
b9bdfa0b 20072010-06-24 Andi Kleen <ak@linux.intel.com>
2008
19931eea 2009 * c-common.c (warn_for_omitted_condop): New.
2010 * c-common.h (warn_for_omitted_condop): Add prototype.
b9bdfa0b 2011
55ad092d 20122010-06-21 Joseph Myers <joseph@codesourcery.com>
2013
2014 * c.opt (lang-objc): Remove.
2015 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2016
9e7c2572 20172010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2018
2019 * c-opts.c: Include "tm_p.h".
2020
615ef0bb 20212010-06-20 Joseph Myers <joseph@codesourcery.com>
2022
2023 * c-common.c (parse_optimize_options): Update call to
2024 decode_options.
2025
aef48c9a 20262010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2027
2028 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2029 new type of types_used_by_cur_var_decl.
2030
d74003b4 20312010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2032
2033 PR bootstrap/44512
2034 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2035 for C++ standard compliance.
2036
1194d077 20372010-06-16 Jason Merrill <jason@redhat.com>
2038
2039 * c.opt: Add -Wnoexcept.
2040
d473d901 20412010-06-16 Richard Guenther <rguenther@suse.de>
2042
2043 PR c/44555
2044 * c-common.c (c_common_truthvalue_conversion): Remove
2045 premature and wrong optimization concering ADDR_EXPRs.
2046
b62dbfd3 20472010-06-15 Arnaud Charlet <charlet@adacore.com>
2048
2049 * c-ada-spec.c (dump_sloc): Remove column info.
2050 (is_simple_enum): New function.
2051 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2052 enum types when relevant.
2053
200dd99c 20542010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2055
19931eea 2056 * c-common.c (conversion_warning): Warn at expression
200dd99c 2057 location.
2058
abf6a617 20592010-06-10 Joseph Myers <joseph@codesourcery.com>
2060
2061 * c-opts.c (c_common_handle_option): Don't handle
2062 OPT_fshow_column.
2063
ba72912a 20642010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2065
2066 * c-pragma.c (push_alignment): Use typed GC allocation.
2067 (handle_pragma_push_options): Likewise.
2068
2069 * c-common.c (parse_optimize_options): Likewise.
2070
2071 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2072 option.
2073
4aafe913 20742010-06-07 Joseph Myers <joseph@codesourcery.com>
2075
2076 * c-common.c (flag_preprocess_only, 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_signed_bitfields, warn_strict_null_sentinel,
2080 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2081 flag_gen_declaration, flag_no_gnu_keywords,
2082 flag_implement_inlines, flag_implicit_templates,
2083 flag_implicit_inline_templates, flag_optional_diags,
2084 flag_elide_constructors, flag_default_inline, flag_rtti,
2085 flag_conserve_space, flag_access_control, flag_check_new,
2086 flag_new_for_scope, flag_weak, flag_working_directory,
2087 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2088 flag_enforce_eh_specs, flag_threadsafe_statics,
2089 flag_pretty_templates): Remove.
2090 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2091 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2092 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2093 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2094 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2095 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2096 flag_no_gnu_keywords, flag_implement_inlines,
2097 flag_implicit_templates, flag_implicit_inline_templates,
2098 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2099 flag_rtti, flag_conserve_space, flag_access_control,
2100 flag_check_new, flag_new_for_scope, flag_weak,
2101 flag_working_directory, flag_use_cxa_atexit,
2102 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2103 flag_threadsafe_statics, flag_pretty_templates,
2104 warn_strict_null_sentinel): Remove.
2105 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2106 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2107 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2108 fimplicit-inline-templates, fimplicit-templates,
2109 flax-vector-conversions, fms-extensions, fnil-receivers,
2110 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2111 frtti, fshort-double, fshort-enums, fshort-wchar,
2112 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2113 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2114 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2115 gen-decls, undef): Use Var.
2116 (fdefault-inline, foptional-diags): Document as doing nothing.
2117 * c-opts.c (c_common_handle_option): Remove cases for options now
2118 using Var. Mark ignored options as such.
2119
7bedc3a0 21202010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2121
19931eea 2122 * c-common.c: Moved to here from parent directory.
7bedc3a0 2123 * c-common.def: Likewise.
2124 * c-common.h: Likewise.
2125 * c-cppbuiltin.c: Likewise.
2126 * c-dump.c: Likewise.
2127 * c-format.c: Likewise.
2128 * c-format.h : Likewise.
2129 * c-gimplify.c: Likewise.
2130 * c-lex.c: Likewise.
2131 * c-omp.c: Likewise.
2132 * c.opt: Likewise.
2133 * c-opts.c: Likewise.
2134 * c-pch.c: Likewise.
2135 * c-ppoutput.c: Likewise.
2136 * c-pragma.c: Likewise.
2137 * c-pragma.h: Likewise.
2138 * c-pretty-print.c: Likewise.
2139 * c-pretty-print.h: Likewise.
2140 * c-semantics.c: Likewise.
2141 * stub-objc.c: Likewise.
2142
2143 * c-common.c: Include gt-c-family-c-common.h.
2144 * c-pragma.c: Include gt-c-family-c-pragma.h.
2145\f
dd045aee 2146Copyright (C) 2010, 2011 Free Software Foundation, Inc.
7bedc3a0 2147
2148Copying and distribution of this file, with or without modification,
2149are permitted in any medium without royalty provided the copyright
2150notice and this notice are preserved.