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