]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
2012-10-11 Daniel Krugler <daniel.kruegler@googlemail.com>
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
1e0cc9e3 12012-10-10 Arnaud Charlet <charlet@adacore.com>
2
3PR ada/54845
4 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
5
b0e7825e 62012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
7
8 PR c++/54194
9 * c-common.c (warn_about_parentheses): Add location_t parameter;
10 use EXPR_LOC_OR_LOC.
11 * c-common.h: Update declaration.
12
41ed701a 132012-10-09 Marc Glisse <marc.glisse@inria.fr>
14
15 PR c++/54427
16 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
17 more operations. Make error messages optional.
18 * c-common.h (enum stv_conv): Moved from c-typeck.c.
19 (scalar_to_vector): Declare.
20
3740094c 212012-10-08 Jason Merrill <jason@redhat.com>
22
23 * c-common.c (c_common_reswords): Add thread_local.
24
ffcdbf9c 252012-10-08 Dodji Seketeli <dodji@redhat.com>
26
27 PR c++/53528 C++11 attribute support
28 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
29 new functions.
30 * c-common.c (check_cxx_fundamental_alignment_constraints): New
31 static function.
32 (handle_aligned_attribute): In choose strictest alignment
33 among many. Use new check_cxx_fundamental_alignment_constraints.
34 (handle_transparent_union_attribute): In c++11 attribute syntax,
35 don't look through typedefs.
36
ef34afc1 372012-10-04 Arnaud Charlet <charlet@adacore.com>
38
39 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
40 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
41 out of dumpfile.h.
42
f1ff4562 432012-09-25 Dehao Chen <dehao@google.com>
44
45 PR middle-end/54645
ef34afc1 46 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
f1ff4562 47 map when read in the pch.
48
735538a1 492012-09-18 Arnaud Charlet <charlet@adacore.com>
50
51 * c-ada-spec.c: Style fixes.
52
9120cdc8 532012-09-18 Thomas Quinot <quinot@adacore.com>
54
55 * c.opt (-fada-spec-parent): Define new command line switch.
56 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
57 is specified, generate binding spec as a child of the specified unit.
58
8eba82c2 592012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
60 Manuel López-Ibáñez <manu@gcc.gnu.org>
61
62 PR c++/53210
63 * c.opt ([Winit-self]): Enabled by -Wall in C++.
64
38682990 652012-08-23 Arnaud Charlet <charlet@adacore.com>
66
67 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
68 for pointers, and add missing Convention C pragma.
69 (print_ada_struct_decl): Add missing aliased keyword.
70 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
71
f003f5dc 722012-08-17 Jakub Jelinek <jakub@redhat.com>
73
74 * c-common.c (sizeof_pointer_memaccess_warning): New function.
75 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
76 * c-opts.c (c_common_handle_option): Enable it for -Wall.
77 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
78 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
79
ec11736b 802012-08-10 Richard Guenther <rguenther@suse.de>
81
82 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
83
5f7f600e 842012-08-07 Steven Bosscher <steven@gcc.gnu.org>
85
86 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
87 instead of separate pp_newline and pp_flush.
88 (print_c_tree): Likewise.
89
758a38ab 902012-07-26 Richard Henderson <rth@redhat.com>
91
92 * c-common.c (handle_hot_attribute): Allow labels.
93 (handle_cold_attribute): Likewise.
94
9ca77b08 952012-07-20 Jakub Jelinek <jakub@redhat.com>
96
97 PR c++/28656
98 * c-common.c (check_function_nonnull): Handle multiple nonnull
99 attributes properly.
100
b9ed1410 1012012-07-16 Steven Bosscher <steven@gcc.gnu.org>
102
103 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
104 * c-ada-spec.c: Likewise.
105 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
106
c2a65b90 1072012-07-14 Steven Bosscher <steven@gcc.gnu.org>
108
109 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
110 Remove code conditional on it.
111
88c5a1d1 1122012-07-11 Steven Bosscher <steven@gcc.gnu.org>
113
114 * c-gimplify.c: Do not include basic-block.h.
115 * c-common.c: Do not include linfuncs.h.
116
4a020a8c 1172012-07-08 Steven Bosscher <steven@gcc.gnu.org>
118
119 * c-common.h: Include tree.h.
120
c28ddc97 1212012-07-02 Jason Merrill <jason@redhat.com>
122
123 PR c++/53524
124 * c-common.c (get_priority): Call default_conversion.
125
405ed67f 1262012-07-01 Uros Bizjak <ubizjak@gmail.com>
127
128 * c-pch.c (c_common_write_pch): Remove unused variables.
129
e53d55e7 1302012-06-29 Steven Bosscher <steven@gcc.gnu.org>
131
132 * cppspec.c: Moved from gcc/ to here.
133
3d9c25ec 1342012-06-27 Kai Tietz <ktietz@redhat.com>
135
136 PR preprocessor/37215
137 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
138
3169c57a 1392012-06-21 Steven Bosscher <steven@gcc.gnu.org>
140
141 * c-common.h (c_common_print_pch_checksum): Remove.
142 * c-pch.c: Do not include output.h.
143 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
144 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
145 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
146 (struct c_pch_header): Remove.
147 (get_ident): Update gpch version.
148 (pch_init): Do not print executable_checksum to asm_out_file.
149 Do not fail if there is no asm_out_file to read back from. Set
150 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
151 (c_common_write_pch): Verify that nothing was written to asm_out_file
152 since pch_init was called. Do not write a c_pch_header, and do not
153 copy from asm_out_file to the PCH.
154 (c_common_read_pch): Do not read a c_pch_header, and do not restore
155 the content of asm_out_file from the PCH.
156 (c_common_print_pch_checksum): Remove.
157 * c-opts.c (c_common_init): Print out executable_checksum directly.
158
ff6624bc 1592012-06-19 Steven Bosscher <steven@gcc.gnu.org>
160
161 * c-target.def (objc_declare_unresolved_class_reference,
162 objc_declare_class_definition): Add new hooks.
163
367b1459 1642012-06-19 Steven Bosscher <steven@gcc.gnu.org>
165
166 * c-lex.c: Do not include output.h.
167 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
168 Remove uses of ASM_OUTPUT_IDENT.
169
bf0cb017 1702012-06-15 Marc Glisse <marc.glisse@inria.fr>
171
172 PR c++/51033
173 * c-common.h (c_build_vec_perm_expr): Move decl here.
174 * c-common.c (c_build_vec_perm_expr): Move definition
175 here.
176
b37a3600 1772012-06-06 Steven Bosscher <steven@gcc.gnu.org>
178
179 * c.opt (fconserve-space): Turn into a no-op.
180
19931eea 1812012-06-04 Sterling Augustine <saugustine@google.com>
5f9e7dd5 182
183 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
184 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
185 both the start and end of the function.
186
dff12c10 1872012-06-04 Steven Bosscher <steven@gcc.gnu.org>
188
189 * c-common.c: Do not include output.h.
190 * c-pragma.c: Likewise.
191
5f9e7dd5 1922012-06-04 Steven Bosscher <steven@gcc.gnu.org>
193
194 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
195 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
196 (lang_decl_name): Handle namespace decls.
197
b5369b7d 1982012-05-31 Steven Bosscher <steven@gcc.gnu.org>
199
200 * c-ada-spec.c: Do not include output.h.
201 * c-semantics.c: Likewise.
202
8032877c 2032012-05-29 Joseph Myers <joseph@codesourcery.com>
204
205 * c-common.c: Fix typo.
206
7843e4bc 2072012-05-29 Michael Matz <matz@suse.de>
208
209 * c-common.h (c_expand_decl): Remove prototype.
210
8cf857d4 2112012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
212
213 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
214 * c-opts.c (c_common_handle_option): Remove code handling
215 warn_missing_braces.
216
8b64dc3c 2172012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
218
219 PR c++/25137
220 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
221 -Wmissing_braces.
222
43cbde16 2232012-05-22 Dodji Seketeli <dodji@redhat.com>
224
225 PR c++/53322
226 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
227
db490cb6 2282012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
229
230 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
231 * c-opts.c (c_common_handle_option): Do not handle explicitly
232 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
233
a60f3e81 2342012-05-16 Dodji Seketeli <dodji@redhat.com>
235
236 PR preprocessor/7263
237 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
238 to cpp_classify_number. For diagnostics, use the precise location
239 instead of the global input_location.
240
82e6ef7c 2412012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
242
cd4797ff 243 PR c++/11856
82e6ef7c 244 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
245
258a168d 2462012-05-14 Bernd Schmidt <bernds@codesourcery.com>
247
82e6ef7c 248 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
258a168d 249
d3b7ee7c 2502012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
251
252 PR 53063
253 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
254 Wreorder): Use LangEnabledBy.
255 * c-opts.c (c_common_handle_option): Do not enable them
256 explicitly. Call lang-specific generated functions.
257 (c_common_post_options): Do not set them here.
258
70059cea 2592012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
260
261 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
262 Wmissing-field-initializers,Wmissing-parameter-type,
263 Wold-style-declaration,Woverride-init): Use EnabledBy.
264 * c-opts.c (c_common_post_options): Do not set here explicitly.
265
fbb6fbd8 2662012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
267
268 PR 53063
269 * c-opts.c (c_common_handle_option): Use handle_generated_option
270 to enable sub-options.
271
61f69bc9 2722012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
273
274 PR c++/53158
275 * c-common.c (warnings_for_convert_and_check): Use warning_at.
276
5a1fe2db 2772012-05-10 Richard Guenther <rguenther@suse.de>
278
279 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
280 adjust commentary about TYPE_IS_SIZETYPE types.
281
d42e7c5a 2822012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
283
284 PR c++/53261
285 * c-common.c (warn_logical_operator): Check that argument of
286 integer_zerop is not NULL.
287
686369e8 2882012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
289
290 PR c/43772
291 * c-common.c (warn_logical_operator): Do not warn if either side
292 is already true or false.
293
03fe1dc2 2942012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
295
296 PR c/51712
297 * c-common.c (expr_original_type): New.
298 (shorten_compare): Do not warn for enumeration types.
299
bba5a206 3002012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
301
302 * c.opt (fpermissive): Add Var(flag_permissive).
303
7059d45d 3042012-04-30 Marc Glisse <marc.glisse@inria.fr>
305
306 PR c++/51033
307 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
308 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
309
7edb1062 3102012-04-30 Dodji Seketeli <dodji@redhat.com>
311
312 Add -Wvarargs option
313 * c.opt (Wvarargs): Define new option.
314
068bea1e 3152012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
316
317 * c-common.c (check_function_arguments): Replace
318 Wmissing-format-attribute with Wsuggest-attribute=format.
319
b86527d8 3202012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
321
322 * c.opt (Wsuggest-attribute=format): New. Alias of
323 Wmissing-format-attribute.
324 * c-format.c (decode_format_type): Replace
325 Wmissing-format-attribute with Wsuggest-attribute=format.
326 (check_function_format): Likewise.
327
19931eea 3282012-04-27 Ollie Wild <aaw@google.com>
76d340ac 329
330 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
331 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
332 * c.opt: Add Wliteral-suffix.
333
29438999 3342012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
335
336 PR c/44774
337 * c.opt (Wpedantic): New.
338 (pedantic): Alias Wpedantic.
339 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
340 (c_common_post_options): Likewise.
341 (sanitize_cpp_opts): Likewise.
342 * c-lex.c (interpret_float): Likewise.
343 * c-format.c (check_format_types): Likewise.
344 * c-common.c (pointer_int_sum): Likewise.
345 (c_sizeof_or_alignof_type): Likewise.
346 (c_add_case_label): Likewise.
347 (c_do_switch_warnings): Likewise.
348 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
349
4f9d6b8b 3502012-04-15 Jason Merrill <jason@redhat.com>
351
352 PR c++/52818
353 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
354 (C_STD_NAME): Distinguish between C++98 and C++11.
355
74bdbe96 3562012-04-11 Eric Botcazou <ebotcazou@adacore.com>
357
358 PR target/52624
359 * c-common.h (uint16_type_node): Rename into...
360 (c_uint16_type_node): ...this.
361 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
362 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
363
3d177e8c 3642012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
365
366 * c-common.c (warn_if_unused_value): Move definition to here.
367 * c-common.h (warn_if_unused_value): Move declaration to here.
368
6a9a958f 3692012-03-23 William Bader <williambader@hotmail.com>
370
371 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
372
543efdbe 3732012-03-20 Jason Merrill <jason@redhat.com>
374
375 * c-common.h (enum cxx_dialect): Add cxx1y.
376 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
377 test.
378 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
379 * c-opts.c (c_common_post_options): Likewise.
380 (set_std_cxx1y): New.
381 (c_common_handle_option): Call it.
382 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
383
62206d34 3842012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
385
386 PR c++/14710
387 * c.opt ([Wuseless-cast]): Add.
388
fadf62f4 3892012-03-16 Richard Guenther <rguenther@suse.de>
390
391 * c-pretty-print.c (pp_c_initializer_list): Adjust.
392
249faa35 3932012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
394
395 PR c++/44783
396 * c.opt (ftemplate-backtrace-limit) Add.
397
126b6848 3982012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
399
400 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
401 handling.
402 * c-pragma.c (handle_pragma_extern_prefix): Remove.
403 (init_pragma): Don't register extern_prefix.
404
a51edb4c 4052012-03-12 Richard Guenther <rguenther@suse.de>
406
407 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
408 (builtin_type_for_size): Likewise.
409
0f6a7cb7 4102012-02-13 Jakub Jelinek <jakub@redhat.com>
411
412 PR c++/52215
413 * c-common.c (sync_resolve_params): Don't decide whether to convert
414 or not based on TYPE_SIZE comparison, convert whenever arg_type
415 is unsigned INTEGER_TYPE.
416
0779e32c 4172012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
418
419 PR c/52118
420 * c.opt ([Wunused-local-typedefs]): Fix description.
421
baec58e1 4222012-01-24 Mike Stump <mikestump@comcast.net>
423
424 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
425 exactly.
426
c779d8cc 4272012-01-18 Richard Guenther <rguenther@suse.de>
428
429 * c-opts.c (c_common_post_options): Reset LTO flags if
430 we are about to generate a PCH.
431
ee917d24 4322012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
433
434 PR c++/51777
435 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
436 use pp_unsigned_wide_integer.
437
90e2341f 4382012-01-10 Richard Guenther <rguenther@suse.de>
439
440 PR middle-end/51806
441 * c-opts.c (c_common_handle_option): Move -Werror handling
442 to language independent code.
443
9ea022ce 4442012-01-05 Richard Guenther <rguenther@suse.de>
445
446 PR middle-end/51764
447 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
448 from common.opt.
449
3df19e1b 4502011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
451
452 PR c++/51316
453 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
454 of array types with an unknown bound.
455
32074525 4562011-12-20 Joseph Myers <joseph@codesourcery.com>
457
458 * c-common.c (flag_isoc99): Update comment to refer to C11.
459 (flag_isoc1x): Change to flag_isoc11.
460 * c-common.h (flag_isoc99): Update comment to refer to C11.
461 (flag_isoc1x): Change to flag_isoc11.
462 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
463 C11.
464 * c-opts.c (set_std_c1x): Change to set_std_c11.
465 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
466 Call set_std_c11.
467 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
468 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
469 * c.opt (std=c1x): Change to std=c11. Document as non-draft
470 standard.
471 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
472 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
473 (std=gnu1x): Make alias of std=gnu11.
474
fca86134 4752011-12-19 Jason Merrill <jason@redhat.com>
476
477 PR c++/51228
478 * c-common.c (handle_transparent_union_attribute): Check the first
479 field if the type is complete.
480
aa4313eb 4812011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
482
483 PR libstdc++/51365
484 * c-common.c (RID_IS_FINAL): Add.
485 * c-common.h (RID_IS_FINAL): Add.
486
3f3d5ad4 4872011-11-30 Iain Sandoe <iains@gcc.gnu.org>
488
489 * c.opt (fgnu-runtime): Provide full description.
490 (fnext-runtime): Likewise.
491 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
492
c4606d19 4932011-11-28 Andrew MacLeod <amacleod@redhat.com>
494
495 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
496 predefines in one place. Add LOCK_FREE predefines.
497 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
498 new func.
499
1d581089 5002011-11-24 Andrew MacLeod <amacleod@redhat.com>
501
502 PR c/51256
19931eea 503 * c-common.c (get_atomic_generic_size): Check for various error
1d581089 504 conditions
19931eea 505 (resolve_overloaded_atomic_exchange,
506 resolve_overloaded_atomic_compare_exchange,
1d581089 507 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
508 error_mark_node for error conditions.
19931eea 509
6aa221fa 5102011-11-08 Richard Guenther <rguenther@suse.de>
511
512 PR middle-end/51010
513 c-family/
514
4c0315d0 5152011-11-07 Richard Henderson <rth@redhat.com>
516 Aldy Hernandez <aldyh@redhat.com>
517 Torvald Riegel <triegel@redhat.com>
518
519 Merged from transactional-memory.
520
521 * c-common.c (handle_tm_wrap_attribute,
522 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
523 (struct c_common_reswords): Added __transaction* keywords.
524 (struct c_common_attribute_table): Added transaction* and tm_regparm
525 attributes.
526 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
527 masks.
528 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
529 find_tm_attribute): Declare.
530
920f5a70 5312011-11-07 Jason Merrill <jason@redhat.com>
532
533 PR c++/35688
534 * c-common.c, c-common.h: Revert yesterday's changes.
535
b4f861b4 5362011-11-06 Jason Merrill <jason@redhat.com>
537
538 PR c++/35688
539 * c-common.c (decl_has_visibility_attr): Split out from...
540 (c_determine_visibility): ...here.
541 * c-common.h: Declare it.
542
83e25171 5432011-11-06 Joseph Myers <joseph@codesourcery.com>
544
545 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
546 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
547 type.
548 (check_user_alignment): New. Split out of
549 handle_aligned_attribute. Disallow integer constants with
550 noninteger types. Conditionally allow zero.
551 (handle_aligned_attribute): Use check_user_alignment.
552 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
553
1cd6e20d 5542011-11-06 Andrew MacLeod <amacleod@redhat.com>
555 Richard Henderson <rth@redhat.com>
556
557 Merged from cxx-mem-model.
558
559 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
19931eea 560 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
1cd6e20d 561 parameters that are the same type size.
562 (get_atomic_generic_size): New. Find size of generic
563 atomic function parameters and do typechecking.
564 (add_atomic_size_parameter): New. Insert size into parameter list.
565 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
566 either __atomic_exchange_n or external library call.
19931eea 567 (resolve_overloaded_atomic_compare_exchange): Restructure
1cd6e20d 568 __atomic_compare_exchange to either _n variant or external library call.
19931eea 569 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
1cd6e20d 570 __atomic_load_n or an external library call.
571 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
572 __atomic_store_n or an external library call.
573 (resolve_overloaded_builtin): Handle new __atomic builtins.
574
7549df0d 5752011-11-04 Eric Botcazou <ebotcazou@adacore.com>
576
577 PR c++/50608
578 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
579 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
580 <INDIRECT_REF>: Return the argument.
581 <ARRAY_REF>: Remove special code for negative offset.
582 Call fold_build_pointer_plus instead of size_binop.
583 (fold_offsetof): Remove STOP_REF argument and adjust.
584 * c-common.h (fold_offsetof_1): Declare.
585 (fold_offsetof): Remove STOP_REF argument.
586
7e783eb3 5872011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
588
589 PR c++/50810
590 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
591 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
592 Wnarrowing for C++0x and C++98.
593 * c.opt ([Wnarrowing]): Update.
594
8fe701f5 5952011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
596
597 PR c++/44277
598 * c.opt: Add Wzero-as-null-pointer-constant.
599
0d84dc2d 6002011-10-31 Jason Merrill <jason@redhat.com>
601
67031f52 602 * c.opt (-fdeduce-init-list): Off by default.
603
0d84dc2d 604 PR c++/50920
605 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
606 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
607 and -Wc++11-compat.
608 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
609
66f24c41 6102011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
611
612 PR c++/30066
613 * c.opt (fvisibility-inlines-hidden): Description change.
614
244db24d 6152011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
616
617 Implement C++11 user-defined literals.
618 * c-common.c (build_userdef_literal): New.
619 * c-common.def: New tree code.
620 * c-common.h (tree_userdef_literal): New tree struct and accessors.
621 * c-lex.c (interpret_float): Add suffix parm.
622 (c_lex_with_flags): Build literal tokens.
623
235be70f 6242011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
625
626 PR c++/50841
627 Revert:
628 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
629
630 PR c++/50810
631 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
632 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
633 Wnarrowing for C++0x and C++98.
634 * c.opt ([Wnarrowing]): Update.
635
4fe0fb1c 6362011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
637
638 PR c++/50810
639 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
640 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
641 Wnarrowing for C++0x and C++98.
642 * c.opt ([Wnarrowing]): Update.
643
5f7504f9 6442011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
645
646 PR c++/45385
647 * c-common.c (conversion_warning): Remove code looking for
648 artificial operands.
649
2a688977 6502011-10-18 Dodji Seketeli <dodji@redhat.com>
651
652 PR bootstrap/50760
653 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
19931eea 654 !NO_IMPLICIT_EXTERN_C.
2a688977 655
326e3391 6562011-10-17 Michael Spertus <mike_spertus@symantec.com>
657
658 * c-common.c (c_common_reswords): Add __bases,
659 __direct_bases.
660 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
661
6622011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
663
664 PR c++/50757
665 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
666
62db153a 6672011-10-15 Tom Tromey <tromey@redhat.com>
668 Dodji Seketeli <dodji@redhat.com>
669
670 * c.opt (fdebug-cpp): New option.
671 * c-opts.c (c_common_handle_option): Handle the option.
672 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
673 output stream in parameter. Factorized from ...
674 (maybe_print_line): ... this. Dump location debug information when
675 -fdebug-cpp is in effect.
676 (print_line_1): New static function. Takes an output stream in
677 parameter. Factorized from ...
678 (print_line): ... here. Dump location information when -fdebug-cpp
679 is in effect.
680 (scan_translation_unit): Dump location information when
681 -fdebug-cpp is in effect.
682
ce70f433 6832011-10-15 Tom Tromey <tromey@redhat.com>
684 Dodji Seketeli <dodji@redhat.com>
685
686 * c.opt (ftrack-macro-expansion): New option. Handle it with and
687 without argument.
688 * c-opts.c (c_common_handle_option)<case
689 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
690 cases. Handle -ftrack-macro-expansion with and without argument.
691
97bfb9ef 6922011-10-15 Tom Tromey <tromey@redhat.com>
693 Dodji Seketeli <dodji@redhat.com>
694
695 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
696 (print_line, cb_define, do_line_change): Adjust to avoid touching
697 the internals of struct line_map. Use the public API instead.
698 * c-pch.c (c_common_read_pch): Likewise.
699 * c-lex.c (fe_file_change): Likewise.
700
326e3391 7012011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
702
703 PR c++/17212
704 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
705
7062011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
707
708 PR c++/33067
709 * c-pretty-print.c (pp_c_floating_constant): Output
710 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
711
b9a16870 7122011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
713
714 * c-common.c (def_builtin_1): Delete old interface with two
715 parallel arrays to hold standard builtin declarations, and replace
716 it with a function based interface that can support creating
717 builtins on the fly in the future. Change all uses, and poison
718 the old names. Make sure 0 is not a legitimate builtin index.
719 * c-omp.c (c_finish_omp_barrier): Ditto.
720 (c_finish_omp_taskwait): Ditto.
721 (c_finish_omp_flush): Ditto.
722
c7964868 7232011-10-11 Tristan Gingold <gingold@adacore.com>
724
725 * c.opt: (fallow-parameterless-variadic-functions): New.
726
a4e3ffad 7272011-09-08 Dodji Seketeli <dodji@redhat.com>
728
729 PR c++/33255 - Support -Wunused-local-typedefs warning
730 * c-common.h (struct c_language_function::local_typedefs): New
731 field.
19931eea 732 (record_locally_defined_typedef, maybe_record_typedef_use)
733 (maybe_warn_unused_local_typedefs): Declare new functions.
a4e3ffad 734 * c-common.c (record_locally_defined_typedef)
19931eea 735 (maybe_record_typedef_use)
736 (maybe_warn_unused_local_typedefs): Define new functions.
a4e3ffad 737 * c.opt: Declare new -Wunused-local-typedefs flag.
738
737a23cc 7392011-09-06 Eric Botcazou <ebotcazou@adacore.com>
740
741 PR middle-end/50266
742 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
743 computations.
744
7542c3b4 7452011-09-05 Richard Guenther <rguenther@suse.de>
746
747 * c-common.c (complete_array_type): Use ssize_int (-1) instead
748 of integer_minus_one_node for empty array upper bounds.
749
1dc92c59 7502011-08-28 Dodji Seketeli <dodji@redhat.com>
751
752 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
753 it's the first time it's being called on this main TU.
754
2bdf2b6e 7552011-08-24 Richard Guenther <rguenther@suse.de>
756
757 PR c/49396
758 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
759
7602011-08-22 Gabriel Charette <gchare@google.com>
6ea2c7a3 761
762 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
763 defined in cpp_init_builtins and c_cpp_builtins.
764
bff4ad11 7652011-08-19 Joseph Myers <joseph@codesourcery.com>
766
767 * c-common.c (c_common_reswords): Add __builtin_complex.
768 * c-common.h (RID_BUILTIN_COMPLEX): New.
769
985c6e3a 7702011-08-18 Joseph Myers <joseph@codesourcery.com>
771
772 * c-common.c (c_common_reswords): Add _Noreturn.
773 (keyword_is_function_specifier): Handle RID_NORETURN.
774 * c-common.h (RID_NORETURN): New.
775
7dfa155b 7762011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
777
778 * c-common.c (unsafe_conversion_p): New function. Check if it is
779 unsafe to convert an expression to the type.
780 (conversion_warning): Adjust, use unsafe_conversion_p.
781 * c-common.h (unsafe_conversion_p): New function declaration.
782
2169f33b 7832011-08-02 Jakub Jelinek <jakub@redhat.com>
784
785 * c-common.h (c_finish_omp_atomic): Adjust prototype.
786 (c_finish_omp_taskyield): New prototype.
787 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
788 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
789 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
790 or RHS1 have side-effects, evaluate those too in the right spot,
791 if it is a decl and LHS is also a decl, error out if they
792 aren't the same.
793 (c_finish_omp_taskyield): New function.
794 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
795 * c-pragma.c (omp_pragmas): Add taskyield.
796 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
797 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
798 PRAGMA_OMP_CLAUSE_MERGEABLE.
799
ab77850e 8002011-07-25 Dodji Seketeli <dodji@redhat.com>
801
802 * c-common.h (set_underlying_type): Remove parm name from
803 declaration.
804
6ee97920 8052011-07-25 Romain Geissler <romain.geissler@gmail.com>
806
807 * c-pretty-print.h: Search c-common.h in c-family.
19931eea 808
dc251364 8092011-07-22 Jason Merrill <jason@redhat.com>
810
1a2a35f0 811 PR c++/49793
812 * c.opt (Wnarrowing): New.
813
27282252 814 PR c++/30112
815 * c-common.h: Declare c_linkage_bindings.
816 * c-pragma.c (handle_pragma_redefine_extname): Use it.
817
dc251364 818 PR c++/49813
819 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
820 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
821 as flag_isoc99 for 'restrict'.
822 (pp_c_specifier_qualifier_list): Likewise for _Complex.
823
fc501191 8242011-07-21 Ian Lance Taylor <iant@google.com>
825
826 PR middle-end/49705
827 * c-common.c (c_disable_warnings): New static function.
828 (c_enable_warnings): New static function.
829 (c_fully_fold_internal): Change local unused_p to bool. Call
830 c_disable_warnings and c_enable_warnings rather than change
831 c_inhibit_evaluation_warnings.
832
07b8f133 8332011-07-20 Jason Merrill <jason@redhat.com>
834
835 PR c++/6709 (DR 743)
836 PR c++/42603 (DR 950)
837 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
838 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
839 (CPP_DECLTYPE): New.
840 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
841
2cc66f2a 8422011-07-19 Richard Guenther <rguenther@suse.de>
843
844 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
845 * c-omp.c (c_finish_omp_for): Likewise.
846
3c802a1e 8472011-07-12 Eric Botcazou <ebotcazou@adacore.com>
848
849 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
850 body on the next line.
851
98a33d9f 8522011-07-08 Jason Merrill <jason@redhat.com>
853
3115bda0 854 PR c++/45437
855 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
856
98a33d9f 857 PR c++/49673
858 * c-common.c (c_apply_type_quals_to_decl): Don't check
859 TYPE_NEEDS_CONSTRUCTING.
860
c38a75b7 8612011-07-06 Richard Guenther <rguenther@suse.de>
862
863 * c-common.c (c_common_nodes_and_builtins):
864 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
865
e593356b 8662011-07-05 Richard Guenther <rguenther@suse.de>
867
868 * c-common.c (c_common_nodes_and_builtins): Build all common
869 tree nodes first.
870
fca0886c 8712011-06-27 Jakub Jelinek <jakub@redhat.com>
872
a68f7a8d 873 * c-common.h (c_tree_chain_next): New static inline function.
874
fca0886c 875 * c-common.c (check_builtin_function_arguments): Handle
876 BUILT_IN_ASSUME_ALIGNED.
877
2797f13a 8782011-06-21 Andrew MacLeod <amacleod@redhat.com>
879
880 * c-common.c: Add sync_ or SYNC__ to builtin names.
881 * c-omp.c: Add sync_ or SYNC__ to builtin names.
9cad95b7 882
8832011-06-20 Pierre Vittet <piervit@pvittet.com>
884
885 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
886 handler.
887 (gen_pragma_handler): New union.
888 (internal_pragma_handler): New type.
889 (c_register_pragma_with_data)
890 (c_register_pragma_with_expansion_and_data): New functions.
891
892 * c-pragma.c (registered_pragmas, c_register_pragma_1)
893 (c_register_pragma, c_register_pragma_with_expansion)
894 (c_invoke_pragma_handler): Changed to work with
895 internal_pragma_handler.
896 (c_register_pragma_with_data)
897 (c_register_pragma_with_expansion_and_data): New functions.
898
218e3e4e 8992011-06-14 Joseph Myers <joseph@codesourcery.com>
900
901 * c-common.c: Include common/common-target.h.
902 (handle_section_attribute): Use
903 targetm_common.have_named_sections.
904 * c-cppbuiltin.c: Include common/common-target.h.
905 (c_cpp_builtins): Use targetm_common.except_unwind_info.
906
41e53ed2 9072011-06-10 Richard Guenther <rguenther@suse.de>
908
909 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
910 to print a IDENTIFIER_NODE.
911
a6f06169 9122011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
913 Joseph Myers <joseph@codesourcery.com>
914
915 * c.opt (fbuilding-libgcc): New option.
916 * c-cppbuiltin.c (c_cpp_builtins): Define
917 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
918
1ea9269b 9192011-06-07 Jason Merrill <jason@redhat.com>
920
8ce59854 921 * c-common.c (max_tinst_depth): Lower default to 900.
922
1ea9269b 923 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
924
1af0124d 9252011-06-07 Richard Guenther <rguenther@suse.de>
926
927 * c-common.c (c_common_nodes_and_builtins): Do not set
928 size_type_node or call set_sizetype.
929
0e9a4c01 9302011-06-07 Dodji Seketeli <dodji@redhat.com>
931
932 PR debug/49130
933 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
19931eea 934 type when using pointer comparison to compare types.
0e9a4c01 935
90b40725 9362011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
937
938 * c.opt: Add -Wdelete-non-virtual-dtor.
939 * c-opts.c (c_common_handle_option): Include it in -Wall.
940
fc9c9e87 9412011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
942
943 PR bootstrap/49190
944
945 Revert:
946 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
947
948 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
949 not tree_common.
950
d0389adc 9512011-05-27 Jakub Jelinek <jakub@redhat.com>
952
953 PR c++/49165
954 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
955 C++ don't call c_common_truthvalue_conversion on void type arms.
956
cacfdc02 9572011-05-27 Nathan Froyd <froydnj@codesourcery.com>
958
959 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
960 (stmt_list_stack): Define.
961 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
962 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
963
027fc6ef 9642011-05-26 Nathan Froyd <froydnj@codesourcery.com>
965
966 * c-common.c (warning_candidate_p): Check for BLOCKs.
967
f21317a1 9682011-05-26 Nathan Froyd <froydnj@codesourcery.com>
969
970 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
971 not tree_common.
972
789e953d 9732011-05-25 Jakub Jelinek <jakub@redhat.com>
974
975 * c-common.c (def_fn_type): Remove extra va_end.
976
7f506bca 9772011-05-23 Jason Merrill <jason@redhat.com>
978
979 PR c++/48106
980 * c-common.c (c_common_get_narrower): New.
981 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
982
774e9d58 9832011-05-23 Nathan Froyd <froydnj@codesourcery.com>
984
985 * c-common.h (check_function_arguments): Tweak prototype of
986 check_function_arguments.
987 * c-common.c (check_function_arguments): Likewise. Adjust
988 calls to check_function_nonnull, check_function_format, and
989 check_function_sentinel.
990 (check_function_sentinel): Take a FUNCTION_TYPE rather than
991 separate attributes and typelist arguments. Use
992 FOREACH_FUNCTION_ARGS to iterate over argument types.
993
23407dc9 9942011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
995
996 * c-common.c (c_common_reswords): Reorder.
997 * c-common.h (rid): Likewise.
998
3a939d12 9992011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1000
1001 * c-common.c (def_fn_type): Don't call build_function_type, call
1002 build_function_type_array or build_varargs_function_type_array
1003 instead.
1004 (c_common_nodes_and_builtins): Likewise.
1005
b6e3dd65 10062011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1007
1008 * c-common.c (c_add_case_label): Omit the loc argument to
1009 build_case_label.
1010 * c-common.h (build_case_label): Remove.
1011 * c-semantics.c (build_case_label): Remove.
1012
4232a958 10132011-05-05 Joseph Myers <joseph@codesourcery.com>
1014
1015 * c-objc.h (objc_start_method_definition): Update prototype.
1016 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1017
d0af78c5 10182011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1019
1020 * c-common.c (check_main_parameter_types): Reindent. Don't use
1021 TYPE_ARG_TYPES directly.
1022 (handle_nonnull_attribute): Likewise.
1023 (sync_resolve_params): Likewise.
1024 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1025 to check_format_string.
1026 (handle_format_attribute): Likewise.
1027 (check_format_string): Take a function type to examine instead of
1028 a type list. Use a function_arg_iterator to step through argument
1029 types.
1030
ceb7b692 10312011-05-04 Richard Guenther <rguenther@suse.de>
1032
1033 * c-common.c (fix_string_type): Use size_int for index type bounds.
1034 (start_fname_decls): Do not pass NULL to build_int_cst.
1035 (c_init_attributes): Likewise.
1036 * c-lex.c (c_lex_with_flags): Likewise.
1037
c66c81be 10382011-04-27 Jason Merrill <jason@redhat.com>
1039
1040 * c-common.c (make_tree_vector_from_list): New.
1041 * c-common.h: Declare it.
1042
16930c72 10432011-04-26 Richard Guenther <rguenther@suse.de>
1044
1045 PR preprocessor/48248
1046 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1047 for output size with -P.
1048
23407dc9 10492011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1050
1051 * c-common.c (struct c_common_resword): Add __underlying_type.
1052 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1053
dd045aee 10542011-04-20 Jim Meyering <meyering@redhat.com>
1055
1056 * c-format.c (init_dollar_format_checking): Remove useless
1057 if-before-free.
1058
394dd737 10592011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1060
1061 * c-objc.h (objc_get_interface_ivars): Removed.
23407dc9 1062 (objc_detect_field_duplicates): New.
394dd737 1063 * stub-objc.c: Likewise.
23407dc9 1064
a758bf7d 10652011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1066
1067 * stub-objc.c (objc_declare_protocols): Renamed to
1068 objc_declare_protocol.
1069 * c-objc.h: Likewise.
23407dc9 1070
29d7200d 10712011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1072
1073 * stub-objc.c (objc_declare_class): Updated argument name.
1074
9b88d08d 10752011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1076
1077 * c-common.h (c_common_init_ts): Declare.
1078 * c-common.c (c_common_init_ts): Define.
1079
4185cf58 10802011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1081
1082 * c-objc.h (objc_build_message_expr): Updated prototype.
1083 * stub-objc.c (objc_build_message_expr): Likewise.
19931eea 1084
5a90471f 10852011-04-12 Martin Jambor <mjambor@suse.cz>
1086
1087 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1088 of cgraph_node.
1089
783bb57e 10902011-04-11 Richard Guenther <rguenther@suse.de>
1091
1092 * c-common.c (complete_array_type): Build a range type of
1093 proper type.
1094
c33080b9 10952011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1096
1097 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1098 (handle_type_generic_attribute): Likewise.
1099
f8913d47 11002011-04-07 Jason Merrill <jason@redhat.com>
1101
1102 PR c++/48450
1103 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1104 conversion from C++0x scoped enum.
1105
c94b1d0e 11062011-04-06 Joseph Myers <joseph@codesourcery.com>
1107
1108 * c-target-def.h: New file.
1109 * c-target.def: New file.
1110 * c-target.h: New file.
1111 * c-common.c (targetcm): Don't define here.
1112 * c-common.h (default_handle_c_option): Declare.
1113 * c-format.c: Include c-target.h instead of target.h.
1114 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1115 include tm.h.
1116 (default_handle_c_option): Move from targhooks.c.
1117
acb10f41 11182011-03-29 Jakub Jelinek <jakub@redhat.com>
1119
1120 PR preprocessor/48248
1121 * c-ppoutput.c (print): Add src_file field.
1122 (init_pp_output): Initialize it.
1123 (maybe_print_line): Don't optimize by adding up to 8 newlines
1124 if map->to_file and print.src_file are different file.
1125 (print_line): Update print.src_file.
1126
82715bcd 11272011-03-25 Kai Tietz <ktietz@redhat.com>
1128
1129 * c-ada-spec.c (compare_comment): Use filename_cmp
1130 instead of strcmp for filename.
1131
451c8e2f 11322011-03-25 Jeff Law <law@redhat.com>
1133
1134 * c-family/c-common.c (def_fn_type): Add missing va_end.
1135
3c47771c 11362011-03-25 Jason Merrill <jason@redhat.com>
1137
1138 * c.opt: Add -std=c++03.
1139
97e6200f 11402011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1141
1142 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1143
ac86af5d 11442011-03-17 Kai Tietz
1145
1146 PR target/12171
ee212425 1147 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1148 Display allowed attributes for function pointer types.
1149 (pp_c_attributes_display): New function to display
1150 attributes having affects_type_identity flag set to true.
1151 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1152
ac86af5d 1153 * c-common.c (c_common_attribute_table):
1154 Add new element.
1155 (c_common_format_attribute_table): Likewise.
1156
914d1151 11572011-03-18 Jason Merrill <jason@redhat.com>
1158
69788bdf 1159 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1160 * c-common.h: Don't declare it here.
1161 * c-common.c: Or define it here.
1162 * c-opts.c (c_common_handle_option): Or set it here.
1163
914d1151 1164 PR c++/35315
1165 * c-common.c (handle_transparent_union_attribute): Don't
1166 make a duplicate type in C++.
1167
54cf6eed 11682011-03-15 Jason Merrill <jason@redhat.com>
1169
1170 * c-common.c (max_constexpr_depth): New.
1171 * c-common.h: Declare it.
1172 * c-opts.c (c_common_handle_option): Set it.
1173 * c.opt (fconstexpr-depth): New option.
1174
02cb1060 11752011-03-11 Jason Merrill <jason@redhat.com>
1176
9bf1c74e 1177 * c-common.c (attribute_takes_identifier_p): Add missing const.
1178
02cb1060 1179 PR c++/46803
1180 * c-common.c (attribute_takes_identifier_p): Assume that an
1181 unknown attribute takes an identifier.
1182
ecf2703d 11832011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1184
1185 PR c/47786
1186 * c-common.c (c_type_hash): Call list_length instead of iterating
1187 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1188
2b19dfe4 11892011-02-19 Jakub Jelinek <jakub@redhat.com>
1190
1191 PR c/47809
1192 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1193
29cf2335 11942011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1195
1196 * c.opt (fobjc-abi-version=) New.
1197 (fobjc-nilcheck): New.
1198
fad3f658 11992011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1200
1201 PR c++/46890
1202 * c-common.h (keyword_is_decl_specifier): Declare.
1203 * c-common.c (keyword_is_decl_specifier): Define.
1204 (keyword_is_function_specifier): New function.
1205
a12319b3 12062011-01-26 Jakub Jelinek <jakub@redhat.com>
1207
1208 PR c/47473
1209 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1210 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1211 REAL_TYPE.
1212
5c128dc8 12132011-01-26 Arnaud Charlet <charlet@adacore.com>
1214
1215 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1216
8d67b0c7 12172011-01-26 Jakub Jelinek <jakub@redhat.com>
1218
1219 PR pch/47430
1220 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1221 after init_c_lex if pch_file is set.
1222
0675168d 12232011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1224
e8911163 1225 PR c++/43601
0675168d 1226 * c.opt (-fkeep-inline-dllexport): New switch.
1227
0725e25c 12282011-01-12 Richard Guenther <rguenther@suse.de>
1229
1230 PR middle-end/32511
1231 * c-common.c (handle_weak_attribute): Warn instead of error
1232 on declaring an inline function weak.
1233
fdd84b77 12342011-01-05 Tom Tromey <tromey@redhat.com>
1235
1236 * c-common.h (lvalue_error): Update.
1237 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1238 not error.
1239
e6e73d14 12402010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
19931eea 1241
d67e8485 1242 PR objc/47075
1243 * c-objc.h (objc_finish_message_expr): Added argument to
1244 prototype.
1245
a36cf284 12462010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1247
1248 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1249 Use prototype_p.
1250
33b3681f 12512010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1252
1253 * c-objc.h (objc_maybe_warn_exceptions): New.
19931eea 1254 * stub-objc.c (objc_maybe_warn_exceptions): New.
33b3681f 1255
a1f90215 12562010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1257
1258 * c-common.h (readonly_error): Declare.
1259 * c-common.c (readonly_error): Define.
1260
b1bbc8e5 12612010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1262
1263 * c-common.h (invalid_indirection_error): Declare.
1264 * c-common.c (invalid_indirection_error): Define.
1265
b0d55af9 12662010-12-03 Richard Guenther <rguenther@suse.de>
1267
1268 PR c/46745
1269 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1270 (pp_c_unary_expression): Likewise.
1271 (pp_c_expression): Likewise.
1272
d7489d8d 12732010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1274
1275 * c-common.h (objc_finish_function): New.
1276 (objc_non_volatilized_type): Removed.
1277 (objc_type_quals_match): Removed.
1278 * stub-objc.c (objc_finish_function): New.
1279 (objc_non_volatilized_type): Removed.
1280 (objc_type_quals_match): Removed.
19931eea 1281
92468061 12822010-11-30 Joseph Myers <joseph@codesourcery.com>
1283
1284 * c-common.h (parse_optimize_options): Declare.
1285 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1286 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1287
967958e4 12882010-11-29 Joseph Myers <joseph@codesourcery.com>
1289
1290 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1291 GET_ENVIRONMENT.
1292 * c-pch.c (O_BINARY): Don't define here.
1293 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1294
b213bf24 12952010-11-25 Joseph Myers <joseph@codesourcery.com>
1296
1297 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1298 targetm.except_unwind_info.
1299
9faf44d6 13002010-11-23 Joseph Myers <joseph@codesourcery.com>
1301
1302 * c-opts.c (c_common_handle_option): Pass location to
1303 set_struct_debug_option.
1304
79396169 13052010-11-23 Joseph Myers <joseph@codesourcery.com>
1306
1307 * c-common.c (visibility_options): Move from ../opts.c.
1308 * c-common.h (struct visibility_flags, visibility_options):
1309 Declare here.
1310 * c-opts.c (finish_options): Rename to c_finish_options.
1311 (c_common_init): Update call to finish_options.
1312
b4aa4123 13132010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1314
1315 PR objc/34033
1316 * c-lex.c (lex_string): Check that each string in an Objective-C
1317 string concat sequence starts with either one or zero '@', and
1318 that there are no spurious '@' signs at the end.
1319
3e0e49f2 13202010-11-20 Joseph Myers <joseph@codesourcery.com>
1321
1322 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1323 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1324 HANDLE_PRAGMA_VISIBILITY.
1325 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1326 HANDLE_PRAGMA_VISIBILITY): Don't define.
1327 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1328
a9ffdd35 13292010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1330
1331 PR c++/16189
1332 PR c++/36888
1333 PR c++/45331
1334 * c-common.h (keyword_begins_type_specifier): Declare.
1335 (keyword_is_storage_class_specifier): Declare.
1336 (keyword_is_type_qualifier): Declare.
1337 * c-common.c (keyword_begins_type_specifier): New function.
1338 (keyword_is_storage_class_specifier): New function.
1339 (keyword_is_type_qualifier): Declare.
1340
93be21c0 13412010-11-19 Joseph Myers <joseph@codesourcery.com>
1342
1343 PR c/46547
1344 * c-common.c (in_late_binary_op): Define.
1345 (c_common_truthvalue_conversion): Check in_late_binary_op before
1346 calling c_save_expr.
1347 * c-common.h (in_late_binary_op): Declare.
1348
d7175aef 13492010-11-19 Joseph Myers <joseph@codesourcery.com>
1350
1351 * c-opts.c (c_common_handle_option): Update calls to
1352 set_struct_debug_option.
1353
c213e196 13542010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1355
1356 * c-common.h (objc_declare_protocols): Added additional argument.
1357 * stub-objc.c (objc_declare_protocol): Same change.
19931eea 1358
0b5fc5d6 13592010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1360
1361 PR c/33193
1362 * c-common.h (build_real_imag_expr): Declare.
1363 * c-semantics.c (build_real_imag_expr): Define.
1364
b8ba44e7 13652010-11-17 Joseph Myers <joseph@codesourcery.com>
1366
1367 * c-opts.c (c_common_parse_file): Take no arguments.
1368 * c-common.h (c_common_parse_file): Update prototype.
1369
6ef8d12f 13702010-11-16 Jakub Jelinek <jakub@redhat.com>
1371
1372 PR c++/46401
1373 * c-common.c (warning_candidate_p): Don't track non-const calls
1374 or STRING_CSTs.
1375
929d2a90 13762010-11-15 Ian Lance Taylor <iant@google.com>
1377
1378 * c-lex.c (init_c_lex): Set macro debug callbacks if
1379 flag_dump_go_spec is set.
1380
e4a7640a 13812010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1382
1383 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1384 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1385
597d2d81 13862010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1387
1388 PR preprocessor/45038
1389 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1390 dialects.
1391
c123f04d 13922010-11-12 Joseph Myers <joseph@codesourcery.com>
1393
1394 * c-common.h (c_family_lang_mask): Declare.
1395 * c-opts.c (c_family_lang_mask): Make extern.
1396 * c-pragma.c (handle_pragma_diagnostic): Use
1397 control_warning_option.
1398
3c6c0e40 13992010-11-12 Joseph Myers <joseph@codesourcery.com>
1400
1401 * c-common.c (parse_optimize_options): Update call to
1402 decode_options.
1403 * c-common.h (c_common_handle_option): Update prototype.
1404 * c-opts.c (c_common_handle_option): Take location_t parameter and
1405 pass it to other functions.
1406
19ec5c9e 14072010-11-11 Joseph Myers <joseph@codesourcery.com>
1408
1409 * c-opts.c (warning_as_error_callback): Remove.
1410 (c_common_initialize_diagnostics): Don't call
1411 register_warning_as_error_callback.
1412 (c_common_handle_option): Handle -Werror=normalized= here.
1413
bf776685 14142010-11-10 Joseph Myers <joseph@codesourcery.com>
1415
1416 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1417 in diagnostic.
1418 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1419 letter.
1420 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1421 Remove trailing '.' from diagnostics.
1422 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1423
6bd9d862 14242010-11-10 Joseph Myers <joseph@codesourcery.com>
1425
1426 * c-common.c (parse_optimize_options): Pass global_dc to
1427 decode_options.
1428 * c-opts.c (c_common_handle_option): Pass &global_options to
1429 set_Wstrict_aliasing.
1430 * c.opt (v): Don't mark Common or document here.
1431
1f6616ee 14322010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1433
1434 PR target/44981
1435 * c-format.c (format_type): New type gcc_objc_string_format_type.
1436 (valid_stringptr_type_p): New.
1437 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
19931eea 1438 (check_format_string): Pass expected type, use
1f6616ee 1439 valid_stringptr_type_p (), check that the format string types are
1440 consistent with the format specification.
1441 (decode_format_attr): Warn if NSString is used outside objective-c.
1442 (format_types_orig): Add NSString.
1443 (format_name): New.
1444 (format_flags): New.
1445 (check_format_arg): Handle format strings requiring an external parser.
1446 first_target_format_type: New variable.
1447 (handle_format_attribute): Set up first_target_format_type, pass the
1448 expected format arg string type to check_format_string().
1449 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1450 * stub-objc.c (objc_string_ref_type_p): New.
1451 (objc_check_format_arg): New.
1452
b0d0931f 14532010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1454
19931eea 1455 Fixed using the Objective-C 2.0 dot-syntax with class names.
b0d0931f 1456 * c-common.h (objc_build_class_component_ref): New.
1457 * stub-objc.c (objc_build_class_component_ref): New.
1458
f26877d5 14592010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1460
1461 * c.opt (Wproperty-assign-default): New option.
1462
1ef143b6 14632010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1464
1465 Implemented -fobjc-std=objc1 flag.
1466 * c.opt (fobjc-std=objc1): New option.
1467
8c582e4f 14682010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1469
1470 Implemented format and noreturn attributes for Objective-C methods.
1471 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1472 attribute for Objective-C methods.
1473
8637f1db 14742010-10-31 Jason Merrill <jason@redhat.com>
1475
1476 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1477 EXPR_LOC_OR_HERE.
1478
9d9f5bb3 14792010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1480
1481 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1482 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1483 (objc_add_property_declaration): Removed arguments for copies and
1484 ivar.
1485 (objc_build_getter_call): Renamed to
1486 objc_maybe_build_component_ref.
1487 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1488 (objc_is_property_ref): New.
1489 * c-common.c (c_common_reswords): Removed copies and ivar.
1490 * stub-objc.c (objc_add_property_declaration): Removed arguments
1491 for copies and ivar.
1492 (objc_build_getter_call): Renamed to
1493 objc_maybe_build_component_ref.
1494 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1495 (objc_is_property_ref): New.
19931eea 1496
56f907a0 14972010-10-29 Arnaud Charlet <charlet@adacore.com>
1498 Matthew Gingell <gingell@adacore.com>
1499
1500 * c-ada-spec.c (separate_class_package): New function.
1501 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1502 name of their enclosing package.
1503 (print_ada_declaration): Use separate_class_package.
1504
b5fa273e 15052010-10-27 Jason Merrill <jason@redhat.com>
1506
5290e253 1507 * c-common.c (c_common_reswords): Add __is_literal_type.
1508 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1509
b5fa273e 1510 * c-common.c (check_case_value): Remove special C++ code.
1511
7590f0e5 15122010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1513
1514 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1515 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1516 and RID_LAST_PATTR.
1517 (objc_add_property_declaration): Added additional arguments.
1518 (objc_property_attribute_kind): Removed.
1519 (objc_set_property_attr): Removed.
1520 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1521 copy and nonatomic.
1522 * stub-objc.c (objc_add_property_declaration): Added additional
1523 arguments.
1524 (objc_set_property_attr): Removed.
19931eea 1525
1d894bcf 15262010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1527
1528 * c-common.h (objc_add_property_variable): Renamed to
1529 objc_add_property_declaration. Added location argument.
1530 * stub-objc.c (objc_add_property_variable): Same change.
1531
e23bf1fb 15322010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1533
1534 * c-common.h (objc_maybe_printable_name): New.
1535 * stub-objc.c (objc_maybe_printable_name): New.
1536
93426222 15372010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1538 Andrew Pinski <pinskia@gmail.com>
1539
1540 * c-common.h (c_common_mark_addressable_vec): Declare.
1541 * c-common.c (c_common_mark_addressable_vec): New function.
1542
45b2b110 15432010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1544
1545 * c-common.h (objc_set_method_type): Removed.
1546 (objc_add_method_declaration): Added boolean argument.
1547 (objc_start_method_definition): Same change.
1548 (objc_build_method_signature): Same change.
1549 * stub-objc.c (objc_set_method_type): Removed.
1550 (objc_add_method_declaration): Added boolean argument.
1551 (objc_start_method_definition): Same change.
1552 (objc_build_method_signature): Same change.
1553
64cd9619 15542010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1555
1556 * c-common.h (finish_file): Removed.
1557 (objc_write_global_declarations): New.
1558 * c-opts.c (c_common_parse_file): Do not call finish_file.
1559 * stub-objc.c (objc_write_global_declarations): New.
19931eea 1560
e1f293c0 15612010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1562
1563 Implemented parsing @synthesize and @dynamic for
1564 Objective-C/Objective-C++.
1565 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1566 (objc_add_synthesize_declaration): New.
1567 (objc_add_dynamic_declaration): New.
1568 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1569 * stub-objc.c (objc_add_synthesize_declaration): New.
1570 (objc_add_dynamic_declaration): New.
19931eea 1571
ef97a312 15722010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1573
1574 PR target/46041
1575 * c-cppbuiltin.c (mode_has_fma): Move function here from
1576 builtins.c. Don't use the fma optab, instead just use the
1577 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1578 using -save-temps.
1579
69b07042 15802010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1581
1582 Merge from 'apple/trunk' branch on FSF servers.
ef97a312 1583
69b07042 1584 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1585
19931eea 1586 Radar 4330422
69b07042 1587 * c-common.h (objc_non_volatilized_type): New declaration
1588 * stub-objc.c (objc_non_volatilized_type): New stub.
1589
f15f2e56 15902010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1591
69b07042 1592 Merge from 'apple/trunk' branch on FSF servers.
f15f2e56 1593
1594 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1595
19931eea 1596 Radar 4133425
f15f2e56 1597 * c-common.h (objc_diagnose_private_ivar): New decl.
ef97a312 1598 * stub-objc.c (objc_diagnose_private_ivar): New stub.
f15f2e56 1599
4a8875ed 16002010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1601
1602 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1603 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1604 (objc_ivar_visibility_kind): New enum.
1605 (objc_set_visibility): Adjust prototype to use visibility enum.
ef97a312 1606 * stub-objc.c (objc_set_visibility): Adjust stub to use
4a8875ed 1607 visibility enum.
1608
7e0713b1 16092010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1610
1611 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1612 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1613 has the appropriate fma builtins.
1614 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1615
86c110ac 16162010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1617
7e0713b1 1618 merge from FSF apple 'trunk' branch.
86c110ac 1619 2006 Fariborz Jahanian <fjahanian@apple.com>
7e0713b1 1620
86c110ac 1621 Radars 4436866, 4505126, 4506903, 4517826
1622 * c-common.c (c_common_resword): Define @property and its attributes.
1623 * c-common.h: Define property attribute enum entries.
1624 (OBJC_IS_PATTR_KEYWORD): New.
1625 (objc_property_attribute_kind): New enum.
1626 Declare objc_set_property_attr (), objc_add_property_variable (),
1627 objc_build_getter_call () and objc_build_setter_call ().
1628 * stub-objc.c (objc_set_property_attr): New stub.
1629 (objc_add_property_variable): Likewise.
1630 (objc_build_getter_call): Likewise.
1631 (objc_build_setter_call) Likewise.
7e0713b1 1632
40c8d1dd 16332010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1634
7e0713b1 1635 merge from FSF apple 'trunk' branch.
40c8d1dd 1636 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1637
1638 Radar 3803157 (method attributes)
1639 * c-common.c (handle_deprecated_attribute): Recognize
1640 objc methods as valid declarations.
1641 * c-common.h: Declare objc_method_decl ().
7e0713b1 1642 * stub-objc.c (objc_method_decl): New stub.
40c8d1dd 1643
f3f006ad 16442010-10-08 Joseph Myers <joseph@codesourcery.com>
1645
1646 * c-common.c (parse_optimize_options): Call
1647 decode_cmdline_options_to_array_default_mask before
1648 decode_options. Update arguments to decode_options.
1649 * c-common.h (c_common_init_options_struct): Declare.
1650 * c-opts.c (c_common_init_options_struct): New. Split out from
1651 c_common_init_options.
1652
0a65c3bb 16532010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1654
1655 Implemented fast enumeration for Objective-C.
1656 * c-common.h (objc_finish_foreach_loop): New.
1657 * stub-objc.c (objc_finish_foreach_loop): New.
1658
24ca3b4e 16592010-10-05 Joseph Myers <joseph@codesourcery.com>
1660
1661 * c-common.h (struct diagnostic_context): Don't declare here.
1662 (c_common_initialize_diagnostics): Declare using
1663 diagnostic_context typedef.
1664 * c-opts.c (c_common_handle_option): Pass global_dc to
1665 handle_generated_option.
1666
f83b64ca 16672010-10-04 Joseph Myers <joseph@codesourcery.com>
1668
1669 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1670 handle_generated_option.
1671
2fdec027 16722010-10-03 Ian Lance Taylor <iant@google.com>
1673
1674 * c.opt (-fplan9-extensions): New option.
1675
41acdfa4 16762010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1677
1678 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1679 Remove.
1680 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1681 of duplicating code.
1682
069761fb 16832010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1684
1685 * c-common.c: Add two new entries for @optional
1686 and @required keywords.
1687
1688 merge from FSF 'apple/trunk' branch.
1689 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1690
1691 Radar 4386773
1692 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1693 objective-c keywords.
1694 (objc_set_method_opt): New declaration.
1695 * stub-objc.c (objc_set_method_opt): New stub.
19931eea 1696
2c5d2e39 16972010-09-30 Joseph Myers <joseph@codesourcery.com>
1698
1699 * c-common.c (handle_optimize_attribute): Pass &global_options to
1700 cl_optimization_save and cl_optimization_restore.
1701 * c-opts.c (c_common_handle_option): Pass &global_options to
1702 handle_generated_option.
1703 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1704 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1705 &global_options to cl_optimization_restore.
1706
e5c75ac3 17072010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1708
1709 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1710 Objective-C/Objective-C++ keywords.
1711
3511333e 17122010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
e147d6aa 1713
19931eea 1714 Merge from 'apple/trunk' branch on FSF servers.
1715
e147d6aa 1716 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1717
1718 Radar 4281748
1719 * c-common.h (objc_check_global_decl): New declaration.
1720 * stub-objc.c (objc_check_global_decl): New stub.
1721
5461e683 17222010-09-29 Joseph Myers <joseph@codesourcery.com>
1723
1724 * c.opt: Don't use VarExists.
1725
5ae82d58 17262010-09-29 Joseph Myers <joseph@codesourcery.com>
1727
1728 * c-common.c (c_cpp_error): Update names of diagnostic_context
1729 members.
1730 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1731 cl_optimization members.
1732 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1733 sanitize_cpp_opts, finish_options): Update names of cpp_options
1734 members.
1735
b27e241e 17362010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1737
1738 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1739 (objc_is_reserved_word): Removed.
1740 * c-common.c: Updated comments.
1741 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1742 objc_is_reserved_word.
1743 * stub-objc.c (objc_is_reserved_word): Removed.
1744
03fc2271 17452010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1746
19931eea 1747 * c-common.h (objc_add_method_declaration): Adjust prototype to
03fc2271 1748 include attributes.
1749 (objc_start_method_definition): Likewise.
1750 (objc_build_keyword_decl): Likewise.
1751 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1752 (objc_start_method_definition): Likewise.
1753 (objc_build_keyword_decl): Likewise.
1754
a336eb4b 17552010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1756
1757 * c-common.h (objc_start_class_interface): Adjust prototype.
1758 (objc_start_category_interface): Likewise.
1759 (objc_start_protocol): Likewise.
1760 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1761 (objc_start_class_interface): Likewise.
1762 (objc_start_category_interface): Likewise.
1763
48b14f50 17642010-09-27 Ian Lance Taylor <iant@google.com>
1765
1766 * c-common.c (c_common_attribute_table): Add no_split_stack.
1767 (handle_no_split_stack_attribute): New static function.
1768
4abfc532 17692010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1770
19931eea 1771 Merge from 'apple/trunk' branch on FSF servers.
4abfc532 1772
1773 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1774
19931eea 1775 Radar 4229905
4abfc532 1776 * c-common.h (objc_have_common_type): New declaration.
1777 * stub-objc.c (objc_have_common_type): New stub.
1778
1779 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1780
1781 Radar 4154928
1782 * c-common.h (objc_common_type): New prototype.
19931eea 1783 * stub-objc.c (objc_common_type): New stub.
4abfc532 1784
7bd95dfd 17852010-09-24 Jan Hubicka <jh@suse.cz>
1786
1787 * c-common.c (handle_leaf_attribute): New function.
1788 (struct attribute_spec c_common_att): Add leaf.
1789
5789e05b 17902010-09-22 Joseph Myers <joseph@codesourcery.com>
1791
1792 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1793 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1794 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1795 -include-barrier, -include-directory, -include-directory=,
1796 -include-directory-after, -include-directory-after=,
1797 -include-prefix, -include-prefix=, -include-with-prefix,
1798 -include-with-prefix=, -include-with-prefix-after,
1799 -include-with-prefix-after=, -include-with-prefix-before,
1800 -include-with-prefix-before=, -no-integrated-cpp,
1801 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1802 -output=, -pedantic, -pedantic-errors, -preprocess,
1803 -print-missing-file-dependencies, -trace-includes, -traditional,
1804 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1805 -user-dependencies, -verbose, -write-dependencies,
1806 -write-user-dependencies, no-integrated-cpp, traditional): New.
1807
e6fb54ba 18082010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1809
1810 PR objc/23710
9b60f3b0 1811 * c-common.h (objc_start_method_definition): Return bool instead
1812 of void.
1813 * stub-objc.c (objc_start_method_definition): Return bool instead
1814 of void.
1815
18162010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1817
1818 PR objc/25965
1819 * c-common.h (objc_get_interface_ivars): New declaration.
1820 * stub-objc.c (objc_get_interface_ivars): New stub.
e6fb54ba 1821
e44b0a1f 18222010-09-15 Ian Lance Taylor <iant@google.com>
1823
1824 * c-common.c (parse_optimize_options): Do not capitalize warning
ebd7c4c1 1825 messages. Remove period at end of warning message.
e44b0a1f 1826
85c0a25c 18272010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1828
1829 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1830 (handle_alias_attribute): ... here.
1831 (handle_ifunc_attribute): New.
1832
5ba33bf4 18332010-09-06 Mark Mitchell <mark@codesourcery.com>
1834
1835 * c-common.h (do_warn_double_promotion): Declare.
1836 * c-common.c (do_warn_double_promotion): Define.
1837
c920faa3 18382010-09-05 Mark Mitchell <mark@codesourcery.com>
1839
1840 * c.opt (Wdouble-promotion): New.
1841
9604e070 18422010-09-02 Joseph Myers <joseph@codesourcery.com>
1843
1844 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1845 fvtable-thunks, fxref): Mark no longer supported in help text.
1846
3b0273a1 18472010-09-02 Joseph Myers <joseph@codesourcery.com>
1848
1849 * c.opt (Wimport, fall-virtual, falt-external-templates,
1850 fdefault-inline, fenum-int-equiv, fexternal-templates,
1851 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1852 fname-mangling-version-, fnew-abi, fnonnull-objects,
1853 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1854 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1855 applicable.
1856 (fhandle-exceptions): Mark with Alias and Warn.
1857 * c-opts.c (c_common_handle_option): Don't handle options marked
1858 as ignored.
1859
67089c6b 18602010-09-02 Joseph Myers <joseph@codesourcery.com>
1861
1862 * c.opt (Wcomments, Werror-implicit-function-declaration,
1863 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1864 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1865 aliases.
1866 * c-common.c (option_codes): Use OPT_Wcomment instead of
1867 OPT_Wcomments.
1868 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1869 Don't handle options marked as aliases.
1870
2af087f2 18712010-08-25 Richard Guenther <rguenther@suse.de>
1872
1873 * c-common.c (c_common_get_alias_set): Remove special
1874 handling for pointers.
1875
48148244 18762010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1877
1878 * c-common.c: Use FOR_EACH_VEC_ELT.
1879 * c-gimplify.c: Likewise.
1880 * c-pragma.c: Likewise.
1881
89c69892 18822010-08-16 Joseph Myers <joseph@codesourcery.com>
1883
1884 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1885 RejectDriver.
1886 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1887 RejectDriver.
1888 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1889 instead of OPT_MDX and OPT_MMDX.
1890
e28aa114 18912010-08-16 Joseph Myers <joseph@codesourcery.com>
1892
1893 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1894
99b66d21 18952010-08-12 Joseph Myers <joseph@codesourcery.com>
1896
1897 * c.opt (MD, MMD): Change to MDX and MMDX.
1898 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1899
666f4bf0 19002010-08-11 Joseph Myers <joseph@codesourcery.com>
1901
1902 * c-opts.c (c_common_handle_option): Call handle_generated_option
1903 instead of handle_option.
1904
5ec815f6 19052010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1906
1907 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1908 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1909
d13143cf 19102010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1911
1912 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1913 (pending_redefine_extname): Change type to a VEC.
1914 (add_to_renaming_pragma_list): Update for new type of
1915 pending_redefine_extname.
5ec815f6 1916 (maybe_apply_renaming_pragma): Likewise.
d13143cf 1917
2008c983 19182010-08-04 Arnaud Charlet <charlet@adacore.com>
1919
1920 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1921 visited.
1922 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1923 decide whether a type has already been declared/seen.
1924 Do not go to the original type.
1925 (dump_nested_types): New parameter forward.
1926 Generate forward declaration if needed and mark type as visited.
1927 (print_ada_declaration): Call dump_nested_types if not already done.
1928 Mark types as visited.
1929
9b091a73 19302010-08-03 Joseph Myers <joseph@codesourcery.com>
1931
1932 * c.opt (-print-pch-checksum): Remove option.
1933 * c-opts.c (c_common_handle_option): Don't handle
1934 OPT_print_pch_checksum.
1935
b78351e5 19362010-07-27 Joseph Myers <joseph@codesourcery.com>
1937
1938 * c-common.h (c_common_handle_option): Update prototype and return
1939 value type.
1940 * c-opts.c (c_common_handle_option): Update prototype and return
1941 value type. Update calls to handle_option and
1942 enable_warning_as_error.
1943
34416a90 19442010-07-27 Jakub Jelinek <jakub@redhat.com>
1945
1946 PR c/45079
1947 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1948
fecf9011 19492010-07-27 Joseph Myers <joseph@codesourcery.com>
1950
1951 * c-common.h (c_common_missing_argument): Remove.
1952 * c-opts.c (c_common_missing_argument): Remove.
1953 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1954 idirafter, imacros, include, isysroot, isystem, iquote): Add
1955 MissingArgError.
1956 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1957
e88d34f6 19582010-07-27 Joseph Myers <joseph@codesourcery.com>
1959
1960 * c-common.h (c_common_option_lang_mask,
1961 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1962 New.
1963 (c_common_init_options): Update prototype.
1964 * c-opts.c (c_common_option_lang_mask): New.
1965 (c_common_initialize_diagnostics): Split out of
1966 c_common_init_options.
1967 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1968 New.
1969 (c_common_init_options): Update prototype. Use decoded options in
1970 search for -lang-asm.
1971
1767a056 19722010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1973
1974 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1975 * c-format.c: Likewise.
1976
0b205f4c 19772010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1978
1979 * c-common.h: Include diagnostic-core.h. Error if already
1980 included.
1981 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1982
1c58e3f1 19832010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1984
1985 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1986 Do not include expr.h
1987 (vector_mode_valid_p): Move here.
1988
33cc157c 19892010-06-21 DJ Delorie <dj@redhat.com>
1990
1991 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1992 allow these pragmas anywhere.
1993
19942010-06-14 Jakub Jelinek <jakub@redhat.com>
1995
1996 PR bootstrap/44509
1997 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1998 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1999 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2000 ggc_strdup instead of xstrdup.
2001
20022010-06-10 Jakub Jelinek <jakub@redhat.com>
2003
2004 * c-cppbuiltin.c: Include cpp-id-data.h.
2005 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2006 (lazy_hex_fp_value): New function.
2007 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2008
9b40bfbf 20092010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2010
2011 * c-gimplify.c: Do not include tree-flow.h
2012
202d6e5f 20132010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2014
2015 PR other/44034
2016 * c-common.c: Rename targetm member:
2017 targetm.enum_va_list -> targetm.enum_va_list_p
2018
d3237426 20192010-06-28 Anatoly Sokolov <aesok@post.ru>
2020
2021 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2022
596981c8 20232010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2024
2025 * c-cppbuiltin.c: Do not include except.h.
2026
b9bdfa0b 20272010-06-24 Andi Kleen <ak@linux.intel.com>
2028
19931eea 2029 * c-common.c (warn_for_omitted_condop): New.
2030 * c-common.h (warn_for_omitted_condop): Add prototype.
b9bdfa0b 2031
55ad092d 20322010-06-21 Joseph Myers <joseph@codesourcery.com>
2033
2034 * c.opt (lang-objc): Remove.
2035 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2036
9e7c2572 20372010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2038
2039 * c-opts.c: Include "tm_p.h".
2040
615ef0bb 20412010-06-20 Joseph Myers <joseph@codesourcery.com>
2042
2043 * c-common.c (parse_optimize_options): Update call to
2044 decode_options.
2045
aef48c9a 20462010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2047
2048 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2049 new type of types_used_by_cur_var_decl.
2050
d74003b4 20512010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2052
2053 PR bootstrap/44512
2054 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2055 for C++ standard compliance.
2056
1194d077 20572010-06-16 Jason Merrill <jason@redhat.com>
2058
2059 * c.opt: Add -Wnoexcept.
2060
d473d901 20612010-06-16 Richard Guenther <rguenther@suse.de>
2062
2063 PR c/44555
2064 * c-common.c (c_common_truthvalue_conversion): Remove
2065 premature and wrong optimization concering ADDR_EXPRs.
2066
b62dbfd3 20672010-06-15 Arnaud Charlet <charlet@adacore.com>
2068
2069 * c-ada-spec.c (dump_sloc): Remove column info.
2070 (is_simple_enum): New function.
2071 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2072 enum types when relevant.
2073
200dd99c 20742010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2075
19931eea 2076 * c-common.c (conversion_warning): Warn at expression
200dd99c 2077 location.
2078
abf6a617 20792010-06-10 Joseph Myers <joseph@codesourcery.com>
2080
2081 * c-opts.c (c_common_handle_option): Don't handle
2082 OPT_fshow_column.
2083
ba72912a 20842010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2085
2086 * c-pragma.c (push_alignment): Use typed GC allocation.
2087 (handle_pragma_push_options): Likewise.
2088
2089 * c-common.c (parse_optimize_options): Likewise.
2090
2091 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2092 option.
2093
4aafe913 20942010-06-07 Joseph Myers <joseph@codesourcery.com>
2095
2096 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2097 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2098 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2099 flag_signed_bitfields, warn_strict_null_sentinel,
2100 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2101 flag_gen_declaration, flag_no_gnu_keywords,
2102 flag_implement_inlines, flag_implicit_templates,
2103 flag_implicit_inline_templates, flag_optional_diags,
2104 flag_elide_constructors, flag_default_inline, flag_rtti,
2105 flag_conserve_space, flag_access_control, flag_check_new,
2106 flag_new_for_scope, flag_weak, flag_working_directory,
2107 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2108 flag_enforce_eh_specs, flag_threadsafe_statics,
2109 flag_pretty_templates): Remove.
2110 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2111 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2112 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2113 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2114 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2115 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2116 flag_no_gnu_keywords, flag_implement_inlines,
2117 flag_implicit_templates, flag_implicit_inline_templates,
2118 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2119 flag_rtti, flag_conserve_space, flag_access_control,
2120 flag_check_new, flag_new_for_scope, flag_weak,
2121 flag_working_directory, flag_use_cxa_atexit,
2122 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2123 flag_threadsafe_statics, flag_pretty_templates,
2124 warn_strict_null_sentinel): Remove.
2125 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2126 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2127 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2128 fimplicit-inline-templates, fimplicit-templates,
2129 flax-vector-conversions, fms-extensions, fnil-receivers,
2130 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2131 frtti, fshort-double, fshort-enums, fshort-wchar,
2132 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2133 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2134 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2135 gen-decls, undef): Use Var.
2136 (fdefault-inline, foptional-diags): Document as doing nothing.
2137 * c-opts.c (c_common_handle_option): Remove cases for options now
2138 using Var. Mark ignored options as such.
2139
7bedc3a0 21402010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2141
19931eea 2142 * c-common.c: Moved to here from parent directory.
7bedc3a0 2143 * c-common.def: Likewise.
2144 * c-common.h: Likewise.
2145 * c-cppbuiltin.c: Likewise.
2146 * c-dump.c: Likewise.
2147 * c-format.c: Likewise.
2148 * c-format.h : Likewise.
2149 * c-gimplify.c: Likewise.
2150 * c-lex.c: Likewise.
2151 * c-omp.c: Likewise.
2152 * c.opt: Likewise.
2153 * c-opts.c: Likewise.
2154 * c-pch.c: Likewise.
2155 * c-ppoutput.c: Likewise.
2156 * c-pragma.c: Likewise.
2157 * c-pragma.h: Likewise.
2158 * c-pretty-print.c: Likewise.
2159 * c-pretty-print.h: Likewise.
2160 * c-semantics.c: Likewise.
2161 * stub-objc.c: Likewise.
2162
2163 * c-common.c: Include gt-c-family-c-common.h.
2164 * c-pragma.c: Include gt-c-family-c-pragma.h.
2165\f
dd045aee 2166Copyright (C) 2010, 2011 Free Software Foundation, Inc.
7bedc3a0 2167
2168Copying and distribution of this file, with or without modification,
2169are permitted in any medium without royalty provided the copyright
2170notice and this notice are preserved.