]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
PR bootstrap/53459 - unused local typedef when building on altivec
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
8b64dc3c 12012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2
3 PR c++/25137
4 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
5 -Wmissing_braces.
6
43cbde16 72012-05-22 Dodji Seketeli <dodji@redhat.com>
8
9 PR c++/53322
10 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
11
db490cb6 122012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
13
14 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
15 * c-opts.c (c_common_handle_option): Do not handle explicitly
16 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
17
a60f3e81 182012-05-16 Dodji Seketeli <dodji@redhat.com>
19
20 PR preprocessor/7263
21 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
22 to cpp_classify_number. For diagnostics, use the precise location
23 instead of the global input_location.
24
82e6ef7c 252012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
26
cd4797ff 27 PR c++/11856
82e6ef7c 28 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
29
258a168d 302012-05-14 Bernd Schmidt <bernds@codesourcery.com>
31
82e6ef7c 32 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
258a168d 33
d3b7ee7c 342012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
35
36 PR 53063
37 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
38 Wreorder): Use LangEnabledBy.
39 * c-opts.c (c_common_handle_option): Do not enable them
40 explicitly. Call lang-specific generated functions.
41 (c_common_post_options): Do not set them here.
42
70059cea 432012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
44
45 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
46 Wmissing-field-initializers,Wmissing-parameter-type,
47 Wold-style-declaration,Woverride-init): Use EnabledBy.
48 * c-opts.c (c_common_post_options): Do not set here explicitly.
49
fbb6fbd8 502012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
51
52 PR 53063
53 * c-opts.c (c_common_handle_option): Use handle_generated_option
54 to enable sub-options.
55
61f69bc9 562012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
57
58 PR c++/53158
59 * c-common.c (warnings_for_convert_and_check): Use warning_at.
60
5a1fe2db 612012-05-10 Richard Guenther <rguenther@suse.de>
62
63 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
64 adjust commentary about TYPE_IS_SIZETYPE types.
65
d42e7c5a 662012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
67
68 PR c++/53261
69 * c-common.c (warn_logical_operator): Check that argument of
70 integer_zerop is not NULL.
71
686369e8 722012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
73
74 PR c/43772
75 * c-common.c (warn_logical_operator): Do not warn if either side
76 is already true or false.
77
03fe1dc2 782012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
79
80 PR c/51712
81 * c-common.c (expr_original_type): New.
82 (shorten_compare): Do not warn for enumeration types.
83
bba5a206 842012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
85
86 * c.opt (fpermissive): Add Var(flag_permissive).
87
7059d45d 882012-04-30 Marc Glisse <marc.glisse@inria.fr>
89
90 PR c++/51033
91 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
92 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
93
7edb1062 942012-04-30 Dodji Seketeli <dodji@redhat.com>
95
96 Add -Wvarargs option
97 * c.opt (Wvarargs): Define new option.
98
068bea1e 992012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
100
101 * c-common.c (check_function_arguments): Replace
102 Wmissing-format-attribute with Wsuggest-attribute=format.
103
b86527d8 1042012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
105
106 * c.opt (Wsuggest-attribute=format): New. Alias of
107 Wmissing-format-attribute.
108 * c-format.c (decode_format_type): Replace
109 Wmissing-format-attribute with Wsuggest-attribute=format.
110 (check_function_format): Likewise.
111
76d340ac 1122012-04-27 Ollie Wild <aaw@google.com>
113
114 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
115 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
116 * c.opt: Add Wliteral-suffix.
117
29438999 1182012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
119
120 PR c/44774
121 * c.opt (Wpedantic): New.
122 (pedantic): Alias Wpedantic.
123 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
124 (c_common_post_options): Likewise.
125 (sanitize_cpp_opts): Likewise.
126 * c-lex.c (interpret_float): Likewise.
127 * c-format.c (check_format_types): Likewise.
128 * c-common.c (pointer_int_sum): Likewise.
129 (c_sizeof_or_alignof_type): Likewise.
130 (c_add_case_label): Likewise.
131 (c_do_switch_warnings): Likewise.
132 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
133
4f9d6b8b 1342012-04-15 Jason Merrill <jason@redhat.com>
135
136 PR c++/52818
137 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
138 (C_STD_NAME): Distinguish between C++98 and C++11.
139
74bdbe96 1402012-04-11 Eric Botcazou <ebotcazou@adacore.com>
141
142 PR target/52624
143 * c-common.h (uint16_type_node): Rename into...
144 (c_uint16_type_node): ...this.
145 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
146 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
147
3d177e8c 1482012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
149
150 * c-common.c (warn_if_unused_value): Move definition to here.
151 * c-common.h (warn_if_unused_value): Move declaration to here.
152
6a9a958f 1532012-03-23 William Bader <williambader@hotmail.com>
154
155 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
156
543efdbe 1572012-03-20 Jason Merrill <jason@redhat.com>
158
159 * c-common.h (enum cxx_dialect): Add cxx1y.
160 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
161 test.
162 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
163 * c-opts.c (c_common_post_options): Likewise.
164 (set_std_cxx1y): New.
165 (c_common_handle_option): Call it.
166 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
167
62206d34 1682012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
169
170 PR c++/14710
171 * c.opt ([Wuseless-cast]): Add.
172
fadf62f4 1732012-03-16 Richard Guenther <rguenther@suse.de>
174
175 * c-pretty-print.c (pp_c_initializer_list): Adjust.
176
249faa35 1772012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
178
179 PR c++/44783
180 * c.opt (ftemplate-backtrace-limit) Add.
181
126b6848 1822012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
183
184 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
185 handling.
186 * c-pragma.c (handle_pragma_extern_prefix): Remove.
187 (init_pragma): Don't register extern_prefix.
188
a51edb4c 1892012-03-12 Richard Guenther <rguenther@suse.de>
190
191 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
192 (builtin_type_for_size): Likewise.
193
0f6a7cb7 1942012-02-13 Jakub Jelinek <jakub@redhat.com>
195
196 PR c++/52215
197 * c-common.c (sync_resolve_params): Don't decide whether to convert
198 or not based on TYPE_SIZE comparison, convert whenever arg_type
199 is unsigned INTEGER_TYPE.
200
0779e32c 2012012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
202
203 PR c/52118
204 * c.opt ([Wunused-local-typedefs]): Fix description.
205
baec58e1 2062012-01-24 Mike Stump <mikestump@comcast.net>
207
208 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
209 exactly.
210
c779d8cc 2112012-01-18 Richard Guenther <rguenther@suse.de>
212
213 * c-opts.c (c_common_post_options): Reset LTO flags if
214 we are about to generate a PCH.
215
ee917d24 2162012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
217
218 PR c++/51777
219 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
220 use pp_unsigned_wide_integer.
221
90e2341f 2222012-01-10 Richard Guenther <rguenther@suse.de>
223
224 PR middle-end/51806
225 * c-opts.c (c_common_handle_option): Move -Werror handling
226 to language independent code.
227
9ea022ce 2282012-01-05 Richard Guenther <rguenther@suse.de>
229
230 PR middle-end/51764
231 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
232 from common.opt.
233
3df19e1b 2342011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
235
236 PR c++/51316
237 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
238 of array types with an unknown bound.
239
32074525 2402011-12-20 Joseph Myers <joseph@codesourcery.com>
241
242 * c-common.c (flag_isoc99): Update comment to refer to C11.
243 (flag_isoc1x): Change to flag_isoc11.
244 * c-common.h (flag_isoc99): Update comment to refer to C11.
245 (flag_isoc1x): Change to flag_isoc11.
246 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
247 C11.
248 * c-opts.c (set_std_c1x): Change to set_std_c11.
249 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
250 Call set_std_c11.
251 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
252 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
253 * c.opt (std=c1x): Change to std=c11. Document as non-draft
254 standard.
255 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
256 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
257 (std=gnu1x): Make alias of std=gnu11.
258
fca86134 2592011-12-19 Jason Merrill <jason@redhat.com>
260
261 PR c++/51228
262 * c-common.c (handle_transparent_union_attribute): Check the first
263 field if the type is complete.
264
aa4313eb 2652011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
266
267 PR libstdc++/51365
268 * c-common.c (RID_IS_FINAL): Add.
269 * c-common.h (RID_IS_FINAL): Add.
270
3f3d5ad4 2712011-11-30 Iain Sandoe <iains@gcc.gnu.org>
272
273 * c.opt (fgnu-runtime): Provide full description.
274 (fnext-runtime): Likewise.
275 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
276
c4606d19 2772011-11-28 Andrew MacLeod <amacleod@redhat.com>
278
279 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
280 predefines in one place. Add LOCK_FREE predefines.
281 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
282 new func.
283
1d581089 2842011-11-24 Andrew MacLeod <amacleod@redhat.com>
285
286 PR c/51256
287 * c-common.c (get_atomic_generic_size): Check for various error
288 conditions
289 (resolve_overloaded_atomic_exchange,
290 resolve_overloaded_atomic_compare_exchange,
291 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
292 error_mark_node for error conditions.
293
6aa221fa 2942011-11-08 Richard Guenther <rguenther@suse.de>
295
296 PR middle-end/51010
297 c-family/
298
4c0315d0 2992011-11-07 Richard Henderson <rth@redhat.com>
300 Aldy Hernandez <aldyh@redhat.com>
301 Torvald Riegel <triegel@redhat.com>
302
303 Merged from transactional-memory.
304
305 * c-common.c (handle_tm_wrap_attribute,
306 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
307 (struct c_common_reswords): Added __transaction* keywords.
308 (struct c_common_attribute_table): Added transaction* and tm_regparm
309 attributes.
310 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
311 masks.
312 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
313 find_tm_attribute): Declare.
314
920f5a70 3152011-11-07 Jason Merrill <jason@redhat.com>
316
317 PR c++/35688
318 * c-common.c, c-common.h: Revert yesterday's changes.
319
b4f861b4 3202011-11-06 Jason Merrill <jason@redhat.com>
321
322 PR c++/35688
323 * c-common.c (decl_has_visibility_attr): Split out from...
324 (c_determine_visibility): ...here.
325 * c-common.h: Declare it.
326
83e25171 3272011-11-06 Joseph Myers <joseph@codesourcery.com>
328
329 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
330 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
331 type.
332 (check_user_alignment): New. Split out of
333 handle_aligned_attribute. Disallow integer constants with
334 noninteger types. Conditionally allow zero.
335 (handle_aligned_attribute): Use check_user_alignment.
336 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
337
1cd6e20d 3382011-11-06 Andrew MacLeod <amacleod@redhat.com>
339 Richard Henderson <rth@redhat.com>
340
341 Merged from cxx-mem-model.
342
343 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
344 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
345 parameters that are the same type size.
346 (get_atomic_generic_size): New. Find size of generic
347 atomic function parameters and do typechecking.
348 (add_atomic_size_parameter): New. Insert size into parameter list.
349 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
350 either __atomic_exchange_n or external library call.
351 (resolve_overloaded_atomic_compare_exchange): Restructure
352 __atomic_compare_exchange to either _n variant or external library call.
353 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
354 __atomic_load_n or an external library call.
355 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
356 __atomic_store_n or an external library call.
357 (resolve_overloaded_builtin): Handle new __atomic builtins.
358
7549df0d 3592011-11-04 Eric Botcazou <ebotcazou@adacore.com>
360
361 PR c++/50608
362 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
363 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
364 <INDIRECT_REF>: Return the argument.
365 <ARRAY_REF>: Remove special code for negative offset.
366 Call fold_build_pointer_plus instead of size_binop.
367 (fold_offsetof): Remove STOP_REF argument and adjust.
368 * c-common.h (fold_offsetof_1): Declare.
369 (fold_offsetof): Remove STOP_REF argument.
370
7e783eb3 3712011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
372
373 PR c++/50810
374 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
375 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
376 Wnarrowing for C++0x and C++98.
377 * c.opt ([Wnarrowing]): Update.
378
8fe701f5 3792011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
380
381 PR c++/44277
382 * c.opt: Add Wzero-as-null-pointer-constant.
383
0d84dc2d 3842011-10-31 Jason Merrill <jason@redhat.com>
385
67031f52 386 * c.opt (-fdeduce-init-list): Off by default.
387
0d84dc2d 388 PR c++/50920
389 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
390 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
391 and -Wc++11-compat.
392 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
393
66f24c41 3942011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
395
396 PR c++/30066
397 * c.opt (fvisibility-inlines-hidden): Description change.
398
244db24d 3992011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
400
401 Implement C++11 user-defined literals.
402 * c-common.c (build_userdef_literal): New.
403 * c-common.def: New tree code.
404 * c-common.h (tree_userdef_literal): New tree struct and accessors.
405 * c-lex.c (interpret_float): Add suffix parm.
406 (c_lex_with_flags): Build literal tokens.
407
235be70f 4082011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
409
410 PR c++/50841
411 Revert:
412 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
413
414 PR c++/50810
415 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
416 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
417 Wnarrowing for C++0x and C++98.
418 * c.opt ([Wnarrowing]): Update.
419
4fe0fb1c 4202011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
421
422 PR c++/50810
423 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
424 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
425 Wnarrowing for C++0x and C++98.
426 * c.opt ([Wnarrowing]): Update.
427
5f7504f9 4282011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
429
430 PR c++/45385
431 * c-common.c (conversion_warning): Remove code looking for
432 artificial operands.
433
2a688977 4342011-10-18 Dodji Seketeli <dodji@redhat.com>
435
436 PR bootstrap/50760
437 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
438 !NO_IMPLICIT_EXTERN_C.
439
326e3391 4402011-10-17 Michael Spertus <mike_spertus@symantec.com>
441
442 * c-common.c (c_common_reswords): Add __bases,
443 __direct_bases.
444 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
445
4462011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
447
448 PR c++/50757
449 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
450
62db153a 4512011-10-15 Tom Tromey <tromey@redhat.com>
452 Dodji Seketeli <dodji@redhat.com>
453
454 * c.opt (fdebug-cpp): New option.
455 * c-opts.c (c_common_handle_option): Handle the option.
456 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
457 output stream in parameter. Factorized from ...
458 (maybe_print_line): ... this. Dump location debug information when
459 -fdebug-cpp is in effect.
460 (print_line_1): New static function. Takes an output stream in
461 parameter. Factorized from ...
462 (print_line): ... here. Dump location information when -fdebug-cpp
463 is in effect.
464 (scan_translation_unit): Dump location information when
465 -fdebug-cpp is in effect.
466
ce70f433 4672011-10-15 Tom Tromey <tromey@redhat.com>
468 Dodji Seketeli <dodji@redhat.com>
469
470 * c.opt (ftrack-macro-expansion): New option. Handle it with and
471 without argument.
472 * c-opts.c (c_common_handle_option)<case
473 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
474 cases. Handle -ftrack-macro-expansion with and without argument.
475
97bfb9ef 4762011-10-15 Tom Tromey <tromey@redhat.com>
477 Dodji Seketeli <dodji@redhat.com>
478
479 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
480 (print_line, cb_define, do_line_change): Adjust to avoid touching
481 the internals of struct line_map. Use the public API instead.
482 * c-pch.c (c_common_read_pch): Likewise.
483 * c-lex.c (fe_file_change): Likewise.
484
326e3391 4852011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
486
487 PR c++/17212
488 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
489
4902011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
491
492 PR c++/33067
493 * c-pretty-print.c (pp_c_floating_constant): Output
494 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
495
b9a16870 4962011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
497
498 * c-common.c (def_builtin_1): Delete old interface with two
499 parallel arrays to hold standard builtin declarations, and replace
500 it with a function based interface that can support creating
501 builtins on the fly in the future. Change all uses, and poison
502 the old names. Make sure 0 is not a legitimate builtin index.
503 * c-omp.c (c_finish_omp_barrier): Ditto.
504 (c_finish_omp_taskwait): Ditto.
505 (c_finish_omp_flush): Ditto.
506
c7964868 5072011-10-11 Tristan Gingold <gingold@adacore.com>
508
509 * c.opt: (fallow-parameterless-variadic-functions): New.
510
a4e3ffad 5112011-09-08 Dodji Seketeli <dodji@redhat.com>
512
513 PR c++/33255 - Support -Wunused-local-typedefs warning
514 * c-common.h (struct c_language_function::local_typedefs): New
515 field.
516 (record_locally_defined_typedef, maybe_record_typedef_use)
517 (maybe_warn_unused_local_typedefs): Declare new functions.
518 * c-common.c (record_locally_defined_typedef)
519 (maybe_record_typedef_use)
520 (maybe_warn_unused_local_typedefs): Define new functions.
521 * c.opt: Declare new -Wunused-local-typedefs flag.
522
737a23cc 5232011-09-06 Eric Botcazou <ebotcazou@adacore.com>
524
525 PR middle-end/50266
526 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
527 computations.
528
7542c3b4 5292011-09-05 Richard Guenther <rguenther@suse.de>
530
531 * c-common.c (complete_array_type): Use ssize_int (-1) instead
532 of integer_minus_one_node for empty array upper bounds.
533
1dc92c59 5342011-08-28 Dodji Seketeli <dodji@redhat.com>
535
536 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
537 it's the first time it's being called on this main TU.
538
2bdf2b6e 5392011-08-24 Richard Guenther <rguenther@suse.de>
540
541 PR c/49396
542 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
543
5442011-08-22 Gabriel Charette <gchare@google.com>
6ea2c7a3 545
546 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
547 defined in cpp_init_builtins and c_cpp_builtins.
548
bff4ad11 5492011-08-19 Joseph Myers <joseph@codesourcery.com>
550
551 * c-common.c (c_common_reswords): Add __builtin_complex.
552 * c-common.h (RID_BUILTIN_COMPLEX): New.
553
985c6e3a 5542011-08-18 Joseph Myers <joseph@codesourcery.com>
555
556 * c-common.c (c_common_reswords): Add _Noreturn.
557 (keyword_is_function_specifier): Handle RID_NORETURN.
558 * c-common.h (RID_NORETURN): New.
559
7dfa155b 5602011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
561
562 * c-common.c (unsafe_conversion_p): New function. Check if it is
563 unsafe to convert an expression to the type.
564 (conversion_warning): Adjust, use unsafe_conversion_p.
565 * c-common.h (unsafe_conversion_p): New function declaration.
566
2169f33b 5672011-08-02 Jakub Jelinek <jakub@redhat.com>
568
569 * c-common.h (c_finish_omp_atomic): Adjust prototype.
570 (c_finish_omp_taskyield): New prototype.
571 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
572 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
573 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
574 or RHS1 have side-effects, evaluate those too in the right spot,
575 if it is a decl and LHS is also a decl, error out if they
576 aren't the same.
577 (c_finish_omp_taskyield): New function.
578 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
579 * c-pragma.c (omp_pragmas): Add taskyield.
580 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
581 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
582 PRAGMA_OMP_CLAUSE_MERGEABLE.
583
ab77850e 5842011-07-25 Dodji Seketeli <dodji@redhat.com>
585
586 * c-common.h (set_underlying_type): Remove parm name from
587 declaration.
588
6ee97920 5892011-07-25 Romain Geissler <romain.geissler@gmail.com>
590
591 * c-pretty-print.h: Search c-common.h in c-family.
592
dc251364 5932011-07-22 Jason Merrill <jason@redhat.com>
594
1a2a35f0 595 PR c++/49793
596 * c.opt (Wnarrowing): New.
597
27282252 598 PR c++/30112
599 * c-common.h: Declare c_linkage_bindings.
600 * c-pragma.c (handle_pragma_redefine_extname): Use it.
601
dc251364 602 PR c++/49813
603 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
604 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
605 as flag_isoc99 for 'restrict'.
606 (pp_c_specifier_qualifier_list): Likewise for _Complex.
607
fc501191 6082011-07-21 Ian Lance Taylor <iant@google.com>
609
610 PR middle-end/49705
611 * c-common.c (c_disable_warnings): New static function.
612 (c_enable_warnings): New static function.
613 (c_fully_fold_internal): Change local unused_p to bool. Call
614 c_disable_warnings and c_enable_warnings rather than change
615 c_inhibit_evaluation_warnings.
616
07b8f133 6172011-07-20 Jason Merrill <jason@redhat.com>
618
619 PR c++/6709 (DR 743)
620 PR c++/42603 (DR 950)
621 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
622 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
623 (CPP_DECLTYPE): New.
624 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
625
2cc66f2a 6262011-07-19 Richard Guenther <rguenther@suse.de>
627
628 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
629 * c-omp.c (c_finish_omp_for): Likewise.
630
3c802a1e 6312011-07-12 Eric Botcazou <ebotcazou@adacore.com>
632
633 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
634 body on the next line.
635
98a33d9f 6362011-07-08 Jason Merrill <jason@redhat.com>
637
3115bda0 638 PR c++/45437
639 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
640
98a33d9f 641 PR c++/49673
642 * c-common.c (c_apply_type_quals_to_decl): Don't check
643 TYPE_NEEDS_CONSTRUCTING.
644
c38a75b7 6452011-07-06 Richard Guenther <rguenther@suse.de>
646
647 * c-common.c (c_common_nodes_and_builtins):
648 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
649
e593356b 6502011-07-05 Richard Guenther <rguenther@suse.de>
651
652 * c-common.c (c_common_nodes_and_builtins): Build all common
653 tree nodes first.
654
fca0886c 6552011-06-27 Jakub Jelinek <jakub@redhat.com>
656
a68f7a8d 657 * c-common.h (c_tree_chain_next): New static inline function.
658
fca0886c 659 * c-common.c (check_builtin_function_arguments): Handle
660 BUILT_IN_ASSUME_ALIGNED.
661
2797f13a 6622011-06-21 Andrew MacLeod <amacleod@redhat.com>
663
664 * c-common.c: Add sync_ or SYNC__ to builtin names.
665 * c-omp.c: Add sync_ or SYNC__ to builtin names.
9cad95b7 666
6672011-06-20 Pierre Vittet <piervit@pvittet.com>
668
669 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
670 handler.
671 (gen_pragma_handler): New union.
672 (internal_pragma_handler): New type.
673 (c_register_pragma_with_data)
674 (c_register_pragma_with_expansion_and_data): New functions.
675
676 * c-pragma.c (registered_pragmas, c_register_pragma_1)
677 (c_register_pragma, c_register_pragma_with_expansion)
678 (c_invoke_pragma_handler): Changed to work with
679 internal_pragma_handler.
680 (c_register_pragma_with_data)
681 (c_register_pragma_with_expansion_and_data): New functions.
682
218e3e4e 6832011-06-14 Joseph Myers <joseph@codesourcery.com>
684
685 * c-common.c: Include common/common-target.h.
686 (handle_section_attribute): Use
687 targetm_common.have_named_sections.
688 * c-cppbuiltin.c: Include common/common-target.h.
689 (c_cpp_builtins): Use targetm_common.except_unwind_info.
690
41e53ed2 6912011-06-10 Richard Guenther <rguenther@suse.de>
692
693 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
694 to print a IDENTIFIER_NODE.
695
a6f06169 6962011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
697 Joseph Myers <joseph@codesourcery.com>
698
699 * c.opt (fbuilding-libgcc): New option.
700 * c-cppbuiltin.c (c_cpp_builtins): Define
701 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
702
1ea9269b 7032011-06-07 Jason Merrill <jason@redhat.com>
704
8ce59854 705 * c-common.c (max_tinst_depth): Lower default to 900.
706
1ea9269b 707 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
708
1af0124d 7092011-06-07 Richard Guenther <rguenther@suse.de>
710
711 * c-common.c (c_common_nodes_and_builtins): Do not set
712 size_type_node or call set_sizetype.
713
0e9a4c01 7142011-06-07 Dodji Seketeli <dodji@redhat.com>
715
716 PR debug/49130
717 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
718 type when using pointer comparison to compare types.
719
90b40725 7202011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
721
722 * c.opt: Add -Wdelete-non-virtual-dtor.
723 * c-opts.c (c_common_handle_option): Include it in -Wall.
724
fc9c9e87 7252011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
726
727 PR bootstrap/49190
728
729 Revert:
730 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
731
732 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
733 not tree_common.
734
d0389adc 7352011-05-27 Jakub Jelinek <jakub@redhat.com>
736
737 PR c++/49165
738 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
739 C++ don't call c_common_truthvalue_conversion on void type arms.
740
cacfdc02 7412011-05-27 Nathan Froyd <froydnj@codesourcery.com>
742
743 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
744 (stmt_list_stack): Define.
745 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
746 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
747
027fc6ef 7482011-05-26 Nathan Froyd <froydnj@codesourcery.com>
749
750 * c-common.c (warning_candidate_p): Check for BLOCKs.
751
f21317a1 7522011-05-26 Nathan Froyd <froydnj@codesourcery.com>
753
754 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
755 not tree_common.
756
789e953d 7572011-05-25 Jakub Jelinek <jakub@redhat.com>
758
759 * c-common.c (def_fn_type): Remove extra va_end.
760
7f506bca 7612011-05-23 Jason Merrill <jason@redhat.com>
762
763 PR c++/48106
764 * c-common.c (c_common_get_narrower): New.
765 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
766
774e9d58 7672011-05-23 Nathan Froyd <froydnj@codesourcery.com>
768
769 * c-common.h (check_function_arguments): Tweak prototype of
770 check_function_arguments.
771 * c-common.c (check_function_arguments): Likewise. Adjust
772 calls to check_function_nonnull, check_function_format, and
773 check_function_sentinel.
774 (check_function_sentinel): Take a FUNCTION_TYPE rather than
775 separate attributes and typelist arguments. Use
776 FOREACH_FUNCTION_ARGS to iterate over argument types.
777
23407dc9 7782011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
779
780 * c-common.c (c_common_reswords): Reorder.
781 * c-common.h (rid): Likewise.
782
3a939d12 7832011-05-10 Nathan Froyd <froydnj@codesourcery.com>
784
785 * c-common.c (def_fn_type): Don't call build_function_type, call
786 build_function_type_array or build_varargs_function_type_array
787 instead.
788 (c_common_nodes_and_builtins): Likewise.
789
b6e3dd65 7902011-05-05 Nathan Froyd <froydnj@codesourcery.com>
791
792 * c-common.c (c_add_case_label): Omit the loc argument to
793 build_case_label.
794 * c-common.h (build_case_label): Remove.
795 * c-semantics.c (build_case_label): Remove.
796
4232a958 7972011-05-05 Joseph Myers <joseph@codesourcery.com>
798
799 * c-objc.h (objc_start_method_definition): Update prototype.
800 * stub-objc.c (objc_start_method_definition): Add extra parameter.
801
d0af78c5 8022011-05-04 Nathan Froyd <froydnj@codesourcery.com>
803
804 * c-common.c (check_main_parameter_types): Reindent. Don't use
805 TYPE_ARG_TYPES directly.
806 (handle_nonnull_attribute): Likewise.
807 (sync_resolve_params): Likewise.
808 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
809 to check_format_string.
810 (handle_format_attribute): Likewise.
811 (check_format_string): Take a function type to examine instead of
812 a type list. Use a function_arg_iterator to step through argument
813 types.
814
ceb7b692 8152011-05-04 Richard Guenther <rguenther@suse.de>
816
817 * c-common.c (fix_string_type): Use size_int for index type bounds.
818 (start_fname_decls): Do not pass NULL to build_int_cst.
819 (c_init_attributes): Likewise.
820 * c-lex.c (c_lex_with_flags): Likewise.
821
c66c81be 8222011-04-27 Jason Merrill <jason@redhat.com>
823
824 * c-common.c (make_tree_vector_from_list): New.
825 * c-common.h: Declare it.
826
16930c72 8272011-04-26 Richard Guenther <rguenther@suse.de>
828
829 PR preprocessor/48248
830 * c-ppoutput.c (maybe_print_line): Always optimize newlines
831 for output size with -P.
832
23407dc9 8332011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
834
835 * c-common.c (struct c_common_resword): Add __underlying_type.
836 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
837
dd045aee 8382011-04-20 Jim Meyering <meyering@redhat.com>
839
840 * c-format.c (init_dollar_format_checking): Remove useless
841 if-before-free.
842
394dd737 8432011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
844
845 * c-objc.h (objc_get_interface_ivars): Removed.
23407dc9 846 (objc_detect_field_duplicates): New.
394dd737 847 * stub-objc.c: Likewise.
23407dc9 848
a758bf7d 8492011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
850
851 * stub-objc.c (objc_declare_protocols): Renamed to
852 objc_declare_protocol.
853 * c-objc.h: Likewise.
23407dc9 854
29d7200d 8552011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
856
857 * stub-objc.c (objc_declare_class): Updated argument name.
858
9b88d08d 8592011-04-12 Nathan Froyd <froydnj@codesourcery.com>
860
861 * c-common.h (c_common_init_ts): Declare.
862 * c-common.c (c_common_init_ts): Define.
863
4185cf58 8642011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
865
866 * c-objc.h (objc_build_message_expr): Updated prototype.
867 * stub-objc.c (objc_build_message_expr): Likewise.
868
5a90471f 8692011-04-12 Martin Jambor <mjambor@suse.cz>
870
871 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
872 of cgraph_node.
873
783bb57e 8742011-04-11 Richard Guenther <rguenther@suse.de>
875
876 * c-common.c (complete_array_type): Build a range type of
877 proper type.
878
c33080b9 8792011-04-08 Nathan Froyd <froydnj@codesourcery.com>
880
881 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
882 (handle_type_generic_attribute): Likewise.
883
f8913d47 8842011-04-07 Jason Merrill <jason@redhat.com>
885
886 PR c++/48450
887 * c-common.c (c_common_truthvalue_conversion): Don't ignore
888 conversion from C++0x scoped enum.
889
c94b1d0e 8902011-04-06 Joseph Myers <joseph@codesourcery.com>
891
892 * c-target-def.h: New file.
893 * c-target.def: New file.
894 * c-target.h: New file.
895 * c-common.c (targetcm): Don't define here.
896 * c-common.h (default_handle_c_option): Declare.
897 * c-format.c: Include c-target.h instead of target.h.
898 * c-opts.c: Include c-target.h instead of target.h. Explicitly
899 include tm.h.
900 (default_handle_c_option): Move from targhooks.c.
901
acb10f41 9022011-03-29 Jakub Jelinek <jakub@redhat.com>
903
904 PR preprocessor/48248
905 * c-ppoutput.c (print): Add src_file field.
906 (init_pp_output): Initialize it.
907 (maybe_print_line): Don't optimize by adding up to 8 newlines
908 if map->to_file and print.src_file are different file.
909 (print_line): Update print.src_file.
910
82715bcd 9112011-03-25 Kai Tietz <ktietz@redhat.com>
912
913 * c-ada-spec.c (compare_comment): Use filename_cmp
914 instead of strcmp for filename.
915
451c8e2f 9162011-03-25 Jeff Law <law@redhat.com>
917
918 * c-family/c-common.c (def_fn_type): Add missing va_end.
919
3c47771c 9202011-03-25 Jason Merrill <jason@redhat.com>
921
922 * c.opt: Add -std=c++03.
923
97e6200f 9242011-03-22 Eric Botcazou <ebotcazou@adacore.com>
925
926 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
927
ac86af5d 9282011-03-17 Kai Tietz
929
930 PR target/12171
ee212425 931 * c-pretty-print.c (pp_c_specifier_qualifier_list):
932 Display allowed attributes for function pointer types.
933 (pp_c_attributes_display): New function to display
934 attributes having affects_type_identity flag set to true.
935 * c-pretty-print.h (pp_c_attributes_display): New prototype.
936
ac86af5d 937 * c-common.c (c_common_attribute_table):
938 Add new element.
939 (c_common_format_attribute_table): Likewise.
940
914d1151 9412011-03-18 Jason Merrill <jason@redhat.com>
942
69788bdf 943 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
944 * c-common.h: Don't declare it here.
945 * c-common.c: Or define it here.
946 * c-opts.c (c_common_handle_option): Or set it here.
947
914d1151 948 PR c++/35315
949 * c-common.c (handle_transparent_union_attribute): Don't
950 make a duplicate type in C++.
951
54cf6eed 9522011-03-15 Jason Merrill <jason@redhat.com>
953
954 * c-common.c (max_constexpr_depth): New.
955 * c-common.h: Declare it.
956 * c-opts.c (c_common_handle_option): Set it.
957 * c.opt (fconstexpr-depth): New option.
958
02cb1060 9592011-03-11 Jason Merrill <jason@redhat.com>
960
9bf1c74e 961 * c-common.c (attribute_takes_identifier_p): Add missing const.
962
02cb1060 963 PR c++/46803
964 * c-common.c (attribute_takes_identifier_p): Assume that an
965 unknown attribute takes an identifier.
966
ecf2703d 9672011-03-07 Nathan Froyd <froydnj@codesourcery.com>
968
969 PR c/47786
970 * c-common.c (c_type_hash): Call list_length instead of iterating
971 through DECL_CHAIN. Rename 'i' to 'n_elements'.
972
2b19dfe4 9732011-02-19 Jakub Jelinek <jakub@redhat.com>
974
975 PR c/47809
976 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
977
29cf2335 9782011-02-17 Iain Sandoe <iains@gcc.gnu.org>
979
980 * c.opt (fobjc-abi-version=) New.
981 (fobjc-nilcheck): New.
982
fad3f658 9832011-02-03 Nathan Froyd <froydnj@codesourcery.com>
984
985 PR c++/46890
986 * c-common.h (keyword_is_decl_specifier): Declare.
987 * c-common.c (keyword_is_decl_specifier): Define.
988 (keyword_is_function_specifier): New function.
989
a12319b3 9902011-01-26 Jakub Jelinek <jakub@redhat.com>
991
992 PR c/47473
993 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
994 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
995 REAL_TYPE.
996
5c128dc8 9972011-01-26 Arnaud Charlet <charlet@adacore.com>
998
999 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1000
8d67b0c7 10012011-01-26 Jakub Jelinek <jakub@redhat.com>
1002
1003 PR pch/47430
1004 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1005 after init_c_lex if pch_file is set.
1006
0675168d 10072011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1008
e8911163 1009 PR c++/43601
0675168d 1010 * c.opt (-fkeep-inline-dllexport): New switch.
1011
0725e25c 10122011-01-12 Richard Guenther <rguenther@suse.de>
1013
1014 PR middle-end/32511
1015 * c-common.c (handle_weak_attribute): Warn instead of error
1016 on declaring an inline function weak.
1017
fdd84b77 10182011-01-05 Tom Tromey <tromey@redhat.com>
1019
1020 * c-common.h (lvalue_error): Update.
1021 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1022 not error.
1023
e6e73d14 10242010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
1025
d67e8485 1026 PR objc/47075
1027 * c-objc.h (objc_finish_message_expr): Added argument to
1028 prototype.
1029
a36cf284 10302010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1031
1032 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1033 Use prototype_p.
1034
33b3681f 10352010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1036
1037 * c-objc.h (objc_maybe_warn_exceptions): New.
1038 * stub-objc.c (objc_maybe_warn_exceptions): New.
1039
a1f90215 10402010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1041
1042 * c-common.h (readonly_error): Declare.
1043 * c-common.c (readonly_error): Define.
1044
b1bbc8e5 10452010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1046
1047 * c-common.h (invalid_indirection_error): Declare.
1048 * c-common.c (invalid_indirection_error): Define.
1049
b0d55af9 10502010-12-03 Richard Guenther <rguenther@suse.de>
1051
1052 PR c/46745
1053 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1054 (pp_c_unary_expression): Likewise.
1055 (pp_c_expression): Likewise.
1056
d7489d8d 10572010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1058
1059 * c-common.h (objc_finish_function): New.
1060 (objc_non_volatilized_type): Removed.
1061 (objc_type_quals_match): Removed.
1062 * stub-objc.c (objc_finish_function): New.
1063 (objc_non_volatilized_type): Removed.
1064 (objc_type_quals_match): Removed.
1065
92468061 10662010-11-30 Joseph Myers <joseph@codesourcery.com>
1067
1068 * c-common.h (parse_optimize_options): Declare.
1069 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1070 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1071
967958e4 10722010-11-29 Joseph Myers <joseph@codesourcery.com>
1073
1074 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1075 GET_ENVIRONMENT.
1076 * c-pch.c (O_BINARY): Don't define here.
1077 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1078
b213bf24 10792010-11-25 Joseph Myers <joseph@codesourcery.com>
1080
1081 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1082 targetm.except_unwind_info.
1083
9faf44d6 10842010-11-23 Joseph Myers <joseph@codesourcery.com>
1085
1086 * c-opts.c (c_common_handle_option): Pass location to
1087 set_struct_debug_option.
1088
79396169 10892010-11-23 Joseph Myers <joseph@codesourcery.com>
1090
1091 * c-common.c (visibility_options): Move from ../opts.c.
1092 * c-common.h (struct visibility_flags, visibility_options):
1093 Declare here.
1094 * c-opts.c (finish_options): Rename to c_finish_options.
1095 (c_common_init): Update call to finish_options.
1096
b4aa4123 10972010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1098
1099 PR objc/34033
1100 * c-lex.c (lex_string): Check that each string in an Objective-C
1101 string concat sequence starts with either one or zero '@', and
1102 that there are no spurious '@' signs at the end.
1103
3e0e49f2 11042010-11-20 Joseph Myers <joseph@codesourcery.com>
1105
1106 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1107 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1108 HANDLE_PRAGMA_VISIBILITY.
1109 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1110 HANDLE_PRAGMA_VISIBILITY): Don't define.
1111 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1112
a9ffdd35 11132010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1114
1115 PR c++/16189
1116 PR c++/36888
1117 PR c++/45331
1118 * c-common.h (keyword_begins_type_specifier): Declare.
1119 (keyword_is_storage_class_specifier): Declare.
1120 (keyword_is_type_qualifier): Declare.
1121 * c-common.c (keyword_begins_type_specifier): New function.
1122 (keyword_is_storage_class_specifier): New function.
1123 (keyword_is_type_qualifier): Declare.
1124
93be21c0 11252010-11-19 Joseph Myers <joseph@codesourcery.com>
1126
1127 PR c/46547
1128 * c-common.c (in_late_binary_op): Define.
1129 (c_common_truthvalue_conversion): Check in_late_binary_op before
1130 calling c_save_expr.
1131 * c-common.h (in_late_binary_op): Declare.
1132
d7175aef 11332010-11-19 Joseph Myers <joseph@codesourcery.com>
1134
1135 * c-opts.c (c_common_handle_option): Update calls to
1136 set_struct_debug_option.
1137
c213e196 11382010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1139
1140 * c-common.h (objc_declare_protocols): Added additional argument.
1141 * stub-objc.c (objc_declare_protocol): Same change.
1142
0b5fc5d6 11432010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1144
1145 PR c/33193
1146 * c-common.h (build_real_imag_expr): Declare.
1147 * c-semantics.c (build_real_imag_expr): Define.
1148
b8ba44e7 11492010-11-17 Joseph Myers <joseph@codesourcery.com>
1150
1151 * c-opts.c (c_common_parse_file): Take no arguments.
1152 * c-common.h (c_common_parse_file): Update prototype.
1153
6ef8d12f 11542010-11-16 Jakub Jelinek <jakub@redhat.com>
1155
1156 PR c++/46401
1157 * c-common.c (warning_candidate_p): Don't track non-const calls
1158 or STRING_CSTs.
1159
929d2a90 11602010-11-15 Ian Lance Taylor <iant@google.com>
1161
1162 * c-lex.c (init_c_lex): Set macro debug callbacks if
1163 flag_dump_go_spec is set.
1164
e4a7640a 11652010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1166
1167 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1168 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1169
597d2d81 11702010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1171
1172 PR preprocessor/45038
1173 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1174 dialects.
1175
c123f04d 11762010-11-12 Joseph Myers <joseph@codesourcery.com>
1177
1178 * c-common.h (c_family_lang_mask): Declare.
1179 * c-opts.c (c_family_lang_mask): Make extern.
1180 * c-pragma.c (handle_pragma_diagnostic): Use
1181 control_warning_option.
1182
3c6c0e40 11832010-11-12 Joseph Myers <joseph@codesourcery.com>
1184
1185 * c-common.c (parse_optimize_options): Update call to
1186 decode_options.
1187 * c-common.h (c_common_handle_option): Update prototype.
1188 * c-opts.c (c_common_handle_option): Take location_t parameter and
1189 pass it to other functions.
1190
19ec5c9e 11912010-11-11 Joseph Myers <joseph@codesourcery.com>
1192
1193 * c-opts.c (warning_as_error_callback): Remove.
1194 (c_common_initialize_diagnostics): Don't call
1195 register_warning_as_error_callback.
1196 (c_common_handle_option): Handle -Werror=normalized= here.
1197
bf776685 11982010-11-10 Joseph Myers <joseph@codesourcery.com>
1199
1200 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1201 in diagnostic.
1202 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1203 letter.
1204 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1205 Remove trailing '.' from diagnostics.
1206 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1207
6bd9d862 12082010-11-10 Joseph Myers <joseph@codesourcery.com>
1209
1210 * c-common.c (parse_optimize_options): Pass global_dc to
1211 decode_options.
1212 * c-opts.c (c_common_handle_option): Pass &global_options to
1213 set_Wstrict_aliasing.
1214 * c.opt (v): Don't mark Common or document here.
1215
1f6616ee 12162010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1217
1218 PR target/44981
1219 * c-format.c (format_type): New type gcc_objc_string_format_type.
1220 (valid_stringptr_type_p): New.
1221 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1222 (check_format_string): Pass expected type, use
1223 valid_stringptr_type_p (), check that the format string types are
1224 consistent with the format specification.
1225 (decode_format_attr): Warn if NSString is used outside objective-c.
1226 (format_types_orig): Add NSString.
1227 (format_name): New.
1228 (format_flags): New.
1229 (check_format_arg): Handle format strings requiring an external parser.
1230 first_target_format_type: New variable.
1231 (handle_format_attribute): Set up first_target_format_type, pass the
1232 expected format arg string type to check_format_string().
1233 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1234 * stub-objc.c (objc_string_ref_type_p): New.
1235 (objc_check_format_arg): New.
1236
b0d0931f 12372010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1238
1239 Fixed using the Objective-C 2.0 dot-syntax with class names.
1240 * c-common.h (objc_build_class_component_ref): New.
1241 * stub-objc.c (objc_build_class_component_ref): New.
1242
f26877d5 12432010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1244
1245 * c.opt (Wproperty-assign-default): New option.
1246
1ef143b6 12472010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1248
1249 Implemented -fobjc-std=objc1 flag.
1250 * c.opt (fobjc-std=objc1): New option.
1251
8c582e4f 12522010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1253
1254 Implemented format and noreturn attributes for Objective-C methods.
1255 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1256 attribute for Objective-C methods.
1257
8637f1db 12582010-10-31 Jason Merrill <jason@redhat.com>
1259
1260 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1261 EXPR_LOC_OR_HERE.
1262
9d9f5bb3 12632010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1264
1265 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1266 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1267 (objc_add_property_declaration): Removed arguments for copies and
1268 ivar.
1269 (objc_build_getter_call): Renamed to
1270 objc_maybe_build_component_ref.
1271 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1272 (objc_is_property_ref): New.
1273 * c-common.c (c_common_reswords): Removed copies and ivar.
1274 * stub-objc.c (objc_add_property_declaration): Removed arguments
1275 for copies and ivar.
1276 (objc_build_getter_call): Renamed to
1277 objc_maybe_build_component_ref.
1278 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1279 (objc_is_property_ref): New.
1280
56f907a0 12812010-10-29 Arnaud Charlet <charlet@adacore.com>
1282 Matthew Gingell <gingell@adacore.com>
1283
1284 * c-ada-spec.c (separate_class_package): New function.
1285 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1286 name of their enclosing package.
1287 (print_ada_declaration): Use separate_class_package.
1288
b5fa273e 12892010-10-27 Jason Merrill <jason@redhat.com>
1290
5290e253 1291 * c-common.c (c_common_reswords): Add __is_literal_type.
1292 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1293
b5fa273e 1294 * c-common.c (check_case_value): Remove special C++ code.
1295
7590f0e5 12962010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1297
1298 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1299 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1300 and RID_LAST_PATTR.
1301 (objc_add_property_declaration): Added additional arguments.
1302 (objc_property_attribute_kind): Removed.
1303 (objc_set_property_attr): Removed.
1304 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1305 copy and nonatomic.
1306 * stub-objc.c (objc_add_property_declaration): Added additional
1307 arguments.
1308 (objc_set_property_attr): Removed.
1309
1d894bcf 13102010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1311
1312 * c-common.h (objc_add_property_variable): Renamed to
1313 objc_add_property_declaration. Added location argument.
1314 * stub-objc.c (objc_add_property_variable): Same change.
1315
e23bf1fb 13162010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1317
1318 * c-common.h (objc_maybe_printable_name): New.
1319 * stub-objc.c (objc_maybe_printable_name): New.
1320
93426222 13212010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1322 Andrew Pinski <pinskia@gmail.com>
1323
1324 * c-common.h (c_common_mark_addressable_vec): Declare.
1325 * c-common.c (c_common_mark_addressable_vec): New function.
1326
45b2b110 13272010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1328
1329 * c-common.h (objc_set_method_type): Removed.
1330 (objc_add_method_declaration): Added boolean argument.
1331 (objc_start_method_definition): Same change.
1332 (objc_build_method_signature): Same change.
1333 * stub-objc.c (objc_set_method_type): Removed.
1334 (objc_add_method_declaration): Added boolean argument.
1335 (objc_start_method_definition): Same change.
1336 (objc_build_method_signature): Same change.
1337
64cd9619 13382010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1339
1340 * c-common.h (finish_file): Removed.
1341 (objc_write_global_declarations): New.
1342 * c-opts.c (c_common_parse_file): Do not call finish_file.
1343 * stub-objc.c (objc_write_global_declarations): New.
1344
e1f293c0 13452010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1346
1347 Implemented parsing @synthesize and @dynamic for
1348 Objective-C/Objective-C++.
1349 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1350 (objc_add_synthesize_declaration): New.
1351 (objc_add_dynamic_declaration): New.
1352 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1353 * stub-objc.c (objc_add_synthesize_declaration): New.
1354 (objc_add_dynamic_declaration): New.
1355
ef97a312 13562010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1357
1358 PR target/46041
1359 * c-cppbuiltin.c (mode_has_fma): Move function here from
1360 builtins.c. Don't use the fma optab, instead just use the
1361 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1362 using -save-temps.
1363
69b07042 13642010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1365
1366 Merge from 'apple/trunk' branch on FSF servers.
ef97a312 1367
69b07042 1368 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1369
1370 Radar 4330422
1371 * c-common.h (objc_non_volatilized_type): New declaration
1372 * stub-objc.c (objc_non_volatilized_type): New stub.
1373
f15f2e56 13742010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1375
69b07042 1376 Merge from 'apple/trunk' branch on FSF servers.
f15f2e56 1377
1378 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1379
1380 Radar 4133425
1381 * c-common.h (objc_diagnose_private_ivar): New decl.
ef97a312 1382 * stub-objc.c (objc_diagnose_private_ivar): New stub.
f15f2e56 1383
4a8875ed 13842010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1385
1386 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1387 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1388 (objc_ivar_visibility_kind): New enum.
1389 (objc_set_visibility): Adjust prototype to use visibility enum.
ef97a312 1390 * stub-objc.c (objc_set_visibility): Adjust stub to use
4a8875ed 1391 visibility enum.
1392
7e0713b1 13932010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1394
1395 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1396 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1397 has the appropriate fma builtins.
1398 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1399
86c110ac 14002010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1401
7e0713b1 1402 merge from FSF apple 'trunk' branch.
86c110ac 1403 2006 Fariborz Jahanian <fjahanian@apple.com>
7e0713b1 1404
86c110ac 1405 Radars 4436866, 4505126, 4506903, 4517826
1406 * c-common.c (c_common_resword): Define @property and its attributes.
1407 * c-common.h: Define property attribute enum entries.
1408 (OBJC_IS_PATTR_KEYWORD): New.
1409 (objc_property_attribute_kind): New enum.
1410 Declare objc_set_property_attr (), objc_add_property_variable (),
1411 objc_build_getter_call () and objc_build_setter_call ().
1412 * stub-objc.c (objc_set_property_attr): New stub.
1413 (objc_add_property_variable): Likewise.
1414 (objc_build_getter_call): Likewise.
1415 (objc_build_setter_call) Likewise.
7e0713b1 1416
40c8d1dd 14172010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1418
7e0713b1 1419 merge from FSF apple 'trunk' branch.
40c8d1dd 1420 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1421
1422 Radar 3803157 (method attributes)
1423 * c-common.c (handle_deprecated_attribute): Recognize
1424 objc methods as valid declarations.
1425 * c-common.h: Declare objc_method_decl ().
7e0713b1 1426 * stub-objc.c (objc_method_decl): New stub.
40c8d1dd 1427
f3f006ad 14282010-10-08 Joseph Myers <joseph@codesourcery.com>
1429
1430 * c-common.c (parse_optimize_options): Call
1431 decode_cmdline_options_to_array_default_mask before
1432 decode_options. Update arguments to decode_options.
1433 * c-common.h (c_common_init_options_struct): Declare.
1434 * c-opts.c (c_common_init_options_struct): New. Split out from
1435 c_common_init_options.
1436
0a65c3bb 14372010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1438
1439 Implemented fast enumeration for Objective-C.
1440 * c-common.h (objc_finish_foreach_loop): New.
1441 * stub-objc.c (objc_finish_foreach_loop): New.
1442
24ca3b4e 14432010-10-05 Joseph Myers <joseph@codesourcery.com>
1444
1445 * c-common.h (struct diagnostic_context): Don't declare here.
1446 (c_common_initialize_diagnostics): Declare using
1447 diagnostic_context typedef.
1448 * c-opts.c (c_common_handle_option): Pass global_dc to
1449 handle_generated_option.
1450
f83b64ca 14512010-10-04 Joseph Myers <joseph@codesourcery.com>
1452
1453 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1454 handle_generated_option.
1455
2fdec027 14562010-10-03 Ian Lance Taylor <iant@google.com>
1457
1458 * c.opt (-fplan9-extensions): New option.
1459
41acdfa4 14602010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1461
1462 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1463 Remove.
1464 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1465 of duplicating code.
1466
069761fb 14672010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1468
1469 * c-common.c: Add two new entries for @optional
1470 and @required keywords.
1471
1472 merge from FSF 'apple/trunk' branch.
1473 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1474
1475 Radar 4386773
1476 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1477 objective-c keywords.
1478 (objc_set_method_opt): New declaration.
1479 * stub-objc.c (objc_set_method_opt): New stub.
1480
2c5d2e39 14812010-09-30 Joseph Myers <joseph@codesourcery.com>
1482
1483 * c-common.c (handle_optimize_attribute): Pass &global_options to
1484 cl_optimization_save and cl_optimization_restore.
1485 * c-opts.c (c_common_handle_option): Pass &global_options to
1486 handle_generated_option.
1487 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1488 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1489 &global_options to cl_optimization_restore.
1490
e5c75ac3 14912010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1492
1493 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1494 Objective-C/Objective-C++ keywords.
1495
3511333e 14962010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
e147d6aa 1497
1498 Merge from 'apple/trunk' branch on FSF servers.
1499
1500 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1501
1502 Radar 4281748
1503 * c-common.h (objc_check_global_decl): New declaration.
1504 * stub-objc.c (objc_check_global_decl): New stub.
1505
5461e683 15062010-09-29 Joseph Myers <joseph@codesourcery.com>
1507
1508 * c.opt: Don't use VarExists.
1509
5ae82d58 15102010-09-29 Joseph Myers <joseph@codesourcery.com>
1511
1512 * c-common.c (c_cpp_error): Update names of diagnostic_context
1513 members.
1514 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1515 cl_optimization members.
1516 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1517 sanitize_cpp_opts, finish_options): Update names of cpp_options
1518 members.
1519
b27e241e 15202010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1521
1522 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1523 (objc_is_reserved_word): Removed.
1524 * c-common.c: Updated comments.
1525 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1526 objc_is_reserved_word.
1527 * stub-objc.c (objc_is_reserved_word): Removed.
1528
03fc2271 15292010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1530
1531 * c-common.h (objc_add_method_declaration): Adjust prototype to
1532 include attributes.
1533 (objc_start_method_definition): Likewise.
1534 (objc_build_keyword_decl): Likewise.
1535 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1536 (objc_start_method_definition): Likewise.
1537 (objc_build_keyword_decl): Likewise.
1538
a336eb4b 15392010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1540
1541 * c-common.h (objc_start_class_interface): Adjust prototype.
1542 (objc_start_category_interface): Likewise.
1543 (objc_start_protocol): Likewise.
1544 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1545 (objc_start_class_interface): Likewise.
1546 (objc_start_category_interface): Likewise.
1547
48b14f50 15482010-09-27 Ian Lance Taylor <iant@google.com>
1549
1550 * c-common.c (c_common_attribute_table): Add no_split_stack.
1551 (handle_no_split_stack_attribute): New static function.
1552
4abfc532 15532010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1554
1555 Merge from 'apple/trunk' branch on FSF servers.
1556
1557 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1558
1559 Radar 4229905
1560 * c-common.h (objc_have_common_type): New declaration.
1561 * stub-objc.c (objc_have_common_type): New stub.
1562
1563 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1564
1565 Radar 4154928
1566 * c-common.h (objc_common_type): New prototype.
1567 * stub-objc.c (objc_common_type): New stub.
1568
7bd95dfd 15692010-09-24 Jan Hubicka <jh@suse.cz>
1570
1571 * c-common.c (handle_leaf_attribute): New function.
1572 (struct attribute_spec c_common_att): Add leaf.
1573
5789e05b 15742010-09-22 Joseph Myers <joseph@codesourcery.com>
1575
1576 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1577 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1578 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1579 -include-barrier, -include-directory, -include-directory=,
1580 -include-directory-after, -include-directory-after=,
1581 -include-prefix, -include-prefix=, -include-with-prefix,
1582 -include-with-prefix=, -include-with-prefix-after,
1583 -include-with-prefix-after=, -include-with-prefix-before,
1584 -include-with-prefix-before=, -no-integrated-cpp,
1585 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1586 -output=, -pedantic, -pedantic-errors, -preprocess,
1587 -print-missing-file-dependencies, -trace-includes, -traditional,
1588 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1589 -user-dependencies, -verbose, -write-dependencies,
1590 -write-user-dependencies, no-integrated-cpp, traditional): New.
1591
e6fb54ba 15922010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1593
1594 PR objc/23710
9b60f3b0 1595 * c-common.h (objc_start_method_definition): Return bool instead
1596 of void.
1597 * stub-objc.c (objc_start_method_definition): Return bool instead
1598 of void.
1599
16002010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1601
1602 PR objc/25965
1603 * c-common.h (objc_get_interface_ivars): New declaration.
1604 * stub-objc.c (objc_get_interface_ivars): New stub.
e6fb54ba 1605
e44b0a1f 16062010-09-15 Ian Lance Taylor <iant@google.com>
1607
1608 * c-common.c (parse_optimize_options): Do not capitalize warning
ebd7c4c1 1609 messages. Remove period at end of warning message.
e44b0a1f 1610
85c0a25c 16112010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1612
1613 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1614 (handle_alias_attribute): ... here.
1615 (handle_ifunc_attribute): New.
1616
5ba33bf4 16172010-09-06 Mark Mitchell <mark@codesourcery.com>
1618
1619 * c-common.h (do_warn_double_promotion): Declare.
1620 * c-common.c (do_warn_double_promotion): Define.
1621
c920faa3 16222010-09-05 Mark Mitchell <mark@codesourcery.com>
1623
1624 * c.opt (Wdouble-promotion): New.
1625
9604e070 16262010-09-02 Joseph Myers <joseph@codesourcery.com>
1627
1628 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1629 fvtable-thunks, fxref): Mark no longer supported in help text.
1630
3b0273a1 16312010-09-02 Joseph Myers <joseph@codesourcery.com>
1632
1633 * c.opt (Wimport, fall-virtual, falt-external-templates,
1634 fdefault-inline, fenum-int-equiv, fexternal-templates,
1635 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1636 fname-mangling-version-, fnew-abi, fnonnull-objects,
1637 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1638 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1639 applicable.
1640 (fhandle-exceptions): Mark with Alias and Warn.
1641 * c-opts.c (c_common_handle_option): Don't handle options marked
1642 as ignored.
1643
67089c6b 16442010-09-02 Joseph Myers <joseph@codesourcery.com>
1645
1646 * c.opt (Wcomments, Werror-implicit-function-declaration,
1647 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1648 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1649 aliases.
1650 * c-common.c (option_codes): Use OPT_Wcomment instead of
1651 OPT_Wcomments.
1652 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1653 Don't handle options marked as aliases.
1654
2af087f2 16552010-08-25 Richard Guenther <rguenther@suse.de>
1656
1657 * c-common.c (c_common_get_alias_set): Remove special
1658 handling for pointers.
1659
48148244 16602010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1661
1662 * c-common.c: Use FOR_EACH_VEC_ELT.
1663 * c-gimplify.c: Likewise.
1664 * c-pragma.c: Likewise.
1665
89c69892 16662010-08-16 Joseph Myers <joseph@codesourcery.com>
1667
1668 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1669 RejectDriver.
1670 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1671 RejectDriver.
1672 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1673 instead of OPT_MDX and OPT_MMDX.
1674
e28aa114 16752010-08-16 Joseph Myers <joseph@codesourcery.com>
1676
1677 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1678
99b66d21 16792010-08-12 Joseph Myers <joseph@codesourcery.com>
1680
1681 * c.opt (MD, MMD): Change to MDX and MMDX.
1682 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1683
666f4bf0 16842010-08-11 Joseph Myers <joseph@codesourcery.com>
1685
1686 * c-opts.c (c_common_handle_option): Call handle_generated_option
1687 instead of handle_option.
1688
5ec815f6 16892010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1690
1691 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1692 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1693
d13143cf 16942010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1695
1696 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1697 (pending_redefine_extname): Change type to a VEC.
1698 (add_to_renaming_pragma_list): Update for new type of
1699 pending_redefine_extname.
5ec815f6 1700 (maybe_apply_renaming_pragma): Likewise.
d13143cf 1701
2008c983 17022010-08-04 Arnaud Charlet <charlet@adacore.com>
1703
1704 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1705 visited.
1706 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1707 decide whether a type has already been declared/seen.
1708 Do not go to the original type.
1709 (dump_nested_types): New parameter forward.
1710 Generate forward declaration if needed and mark type as visited.
1711 (print_ada_declaration): Call dump_nested_types if not already done.
1712 Mark types as visited.
1713
9b091a73 17142010-08-03 Joseph Myers <joseph@codesourcery.com>
1715
1716 * c.opt (-print-pch-checksum): Remove option.
1717 * c-opts.c (c_common_handle_option): Don't handle
1718 OPT_print_pch_checksum.
1719
b78351e5 17202010-07-27 Joseph Myers <joseph@codesourcery.com>
1721
1722 * c-common.h (c_common_handle_option): Update prototype and return
1723 value type.
1724 * c-opts.c (c_common_handle_option): Update prototype and return
1725 value type. Update calls to handle_option and
1726 enable_warning_as_error.
1727
34416a90 17282010-07-27 Jakub Jelinek <jakub@redhat.com>
1729
1730 PR c/45079
1731 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1732
fecf9011 17332010-07-27 Joseph Myers <joseph@codesourcery.com>
1734
1735 * c-common.h (c_common_missing_argument): Remove.
1736 * c-opts.c (c_common_missing_argument): Remove.
1737 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1738 idirafter, imacros, include, isysroot, isystem, iquote): Add
1739 MissingArgError.
1740 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1741
e88d34f6 17422010-07-27 Joseph Myers <joseph@codesourcery.com>
1743
1744 * c-common.h (c_common_option_lang_mask,
1745 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1746 New.
1747 (c_common_init_options): Update prototype.
1748 * c-opts.c (c_common_option_lang_mask): New.
1749 (c_common_initialize_diagnostics): Split out of
1750 c_common_init_options.
1751 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1752 New.
1753 (c_common_init_options): Update prototype. Use decoded options in
1754 search for -lang-asm.
1755
1767a056 17562010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1757
1758 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1759 * c-format.c: Likewise.
1760
0b205f4c 17612010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1762
1763 * c-common.h: Include diagnostic-core.h. Error if already
1764 included.
1765 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1766
1c58e3f1 17672010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1768
1769 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1770 Do not include expr.h
1771 (vector_mode_valid_p): Move here.
1772
33cc157c 17732010-06-21 DJ Delorie <dj@redhat.com>
1774
1775 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1776 allow these pragmas anywhere.
1777
17782010-06-14 Jakub Jelinek <jakub@redhat.com>
1779
1780 PR bootstrap/44509
1781 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1782 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1783 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1784 ggc_strdup instead of xstrdup.
1785
17862010-06-10 Jakub Jelinek <jakub@redhat.com>
1787
1788 * c-cppbuiltin.c: Include cpp-id-data.h.
1789 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1790 (lazy_hex_fp_value): New function.
1791 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1792
9b40bfbf 17932010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1794
1795 * c-gimplify.c: Do not include tree-flow.h
1796
202d6e5f 17972010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1798
1799 PR other/44034
1800 * c-common.c: Rename targetm member:
1801 targetm.enum_va_list -> targetm.enum_va_list_p
1802
d3237426 18032010-06-28 Anatoly Sokolov <aesok@post.ru>
1804
1805 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1806
596981c8 18072010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1808
1809 * c-cppbuiltin.c: Do not include except.h.
1810
b9bdfa0b 18112010-06-24 Andi Kleen <ak@linux.intel.com>
1812
1813 * c-common.c (warn_for_omitted_condop): New.
1814 * c-common.h (warn_for_omitted_condop): Add prototype.
1815
55ad092d 18162010-06-21 Joseph Myers <joseph@codesourcery.com>
1817
1818 * c.opt (lang-objc): Remove.
1819 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1820
9e7c2572 18212010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1822
1823 * c-opts.c: Include "tm_p.h".
1824
615ef0bb 18252010-06-20 Joseph Myers <joseph@codesourcery.com>
1826
1827 * c-common.c (parse_optimize_options): Update call to
1828 decode_options.
1829
aef48c9a 18302010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1831
1832 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1833 new type of types_used_by_cur_var_decl.
1834
d74003b4 18352010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1836
1837 PR bootstrap/44512
1838 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1839 for C++ standard compliance.
1840
1194d077 18412010-06-16 Jason Merrill <jason@redhat.com>
1842
1843 * c.opt: Add -Wnoexcept.
1844
d473d901 18452010-06-16 Richard Guenther <rguenther@suse.de>
1846
1847 PR c/44555
1848 * c-common.c (c_common_truthvalue_conversion): Remove
1849 premature and wrong optimization concering ADDR_EXPRs.
1850
b62dbfd3 18512010-06-15 Arnaud Charlet <charlet@adacore.com>
1852
1853 * c-ada-spec.c (dump_sloc): Remove column info.
1854 (is_simple_enum): New function.
1855 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1856 enum types when relevant.
1857
200dd99c 18582010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1859
1860 * c-common.c (conversion_warning): Warn at expression
1861 location.
1862
abf6a617 18632010-06-10 Joseph Myers <joseph@codesourcery.com>
1864
1865 * c-opts.c (c_common_handle_option): Don't handle
1866 OPT_fshow_column.
1867
ba72912a 18682010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1869
1870 * c-pragma.c (push_alignment): Use typed GC allocation.
1871 (handle_pragma_push_options): Likewise.
1872
1873 * c-common.c (parse_optimize_options): Likewise.
1874
1875 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1876 option.
1877
4aafe913 18782010-06-07 Joseph Myers <joseph@codesourcery.com>
1879
1880 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1881 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1882 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1883 flag_signed_bitfields, warn_strict_null_sentinel,
1884 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1885 flag_gen_declaration, flag_no_gnu_keywords,
1886 flag_implement_inlines, flag_implicit_templates,
1887 flag_implicit_inline_templates, flag_optional_diags,
1888 flag_elide_constructors, flag_default_inline, flag_rtti,
1889 flag_conserve_space, flag_access_control, flag_check_new,
1890 flag_new_for_scope, flag_weak, flag_working_directory,
1891 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1892 flag_enforce_eh_specs, flag_threadsafe_statics,
1893 flag_pretty_templates): Remove.
1894 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1895 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1896 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1897 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1898 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1899 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1900 flag_no_gnu_keywords, flag_implement_inlines,
1901 flag_implicit_templates, flag_implicit_inline_templates,
1902 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1903 flag_rtti, flag_conserve_space, flag_access_control,
1904 flag_check_new, flag_new_for_scope, flag_weak,
1905 flag_working_directory, flag_use_cxa_atexit,
1906 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1907 flag_threadsafe_statics, flag_pretty_templates,
1908 warn_strict_null_sentinel): Remove.
1909 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1910 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1911 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1912 fimplicit-inline-templates, fimplicit-templates,
1913 flax-vector-conversions, fms-extensions, fnil-receivers,
1914 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1915 frtti, fshort-double, fshort-enums, fshort-wchar,
1916 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1917 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1918 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1919 gen-decls, undef): Use Var.
1920 (fdefault-inline, foptional-diags): Document as doing nothing.
1921 * c-opts.c (c_common_handle_option): Remove cases for options now
1922 using Var. Mark ignored options as such.
1923
7bedc3a0 19242010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1925
1926 * c-common.c: Moved to here from parent directory.
1927 * c-common.def: Likewise.
1928 * c-common.h: Likewise.
1929 * c-cppbuiltin.c: Likewise.
1930 * c-dump.c: Likewise.
1931 * c-format.c: Likewise.
1932 * c-format.h : Likewise.
1933 * c-gimplify.c: Likewise.
1934 * c-lex.c: Likewise.
1935 * c-omp.c: Likewise.
1936 * c.opt: Likewise.
1937 * c-opts.c: Likewise.
1938 * c-pch.c: Likewise.
1939 * c-ppoutput.c: Likewise.
1940 * c-pragma.c: Likewise.
1941 * c-pragma.h: Likewise.
1942 * c-pretty-print.c: Likewise.
1943 * c-pretty-print.h: Likewise.
1944 * c-semantics.c: Likewise.
1945 * stub-objc.c: Likewise.
1946
1947 * c-common.c: Include gt-c-family-c-common.h.
1948 * c-pragma.c: Include gt-c-family-c-pragma.h.
1949\f
dd045aee 1950Copyright (C) 2010, 2011 Free Software Foundation, Inc.
7bedc3a0 1951
1952Copying and distribution of this file, with or without modification,
1953are permitted in any medium without royalty provided the copyright
1954notice and this notice are preserved.