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