]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
c-decl.c (c_push_function_context): Always create a new language function.
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
ca5f4331
MM
12012-05-29 Michael Matz <matz@suse.de>
2
3 * c-common.h (c_expand_decl): Remove prototype.
4
4f7f7aca
MLI
52012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
6
7 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
8 * c-opts.c (c_common_handle_option): Remove code handling
9 warn_missing_braces.
10
4a792f9b
PC
112012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
12
13 PR c++/25137
14 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
15 -Wmissing_braces.
16
650dc14a
DS
172012-05-22 Dodji Seketeli <dodji@redhat.com>
18
19 PR c++/53322
20 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
21
9b095bf1
MLI
222012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
23
24 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
25 * c-opts.c (c_common_handle_option): Do not handle explicitly
26 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
27
0b2c4be5
DS
282012-05-16 Dodji Seketeli <dodji@redhat.com>
29
30 PR preprocessor/7263
31 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
32 to cpp_classify_number. For diagnostics, use the precise location
33 instead of the global input_location.
34
a1bde5af
PC
352012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
36
d02924ef 37 PR c++/11856
a1bde5af
PC
38 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
39
d1ede5f4
BS
402012-05-14 Bernd Schmidt <bernds@codesourcery.com>
41
a1bde5af 42 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 43
f2bc201f
MLI
442012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
45
46 PR 53063
47 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
48 Wreorder): Use LangEnabledBy.
49 * c-opts.c (c_common_handle_option): Do not enable them
50 explicitly. Call lang-specific generated functions.
51 (c_common_post_options): Do not set them here.
52
95744782
MLI
532012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
54
55 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
56 Wmissing-field-initializers,Wmissing-parameter-type,
57 Wold-style-declaration,Woverride-init): Use EnabledBy.
58 * c-opts.c (c_common_post_options): Do not set here explicitly.
59
7d5a5747
MLI
602012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
61
62 PR 53063
63 * c-opts.c (c_common_handle_option): Use handle_generated_option
64 to enable sub-options.
65
5a3c9cf2
PC
662012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
67
68 PR c++/53158
69 * c-common.c (warnings_for_convert_and_check): Use warning_at.
70
3ac8781c
RG
712012-05-10 Richard Guenther <rguenther@suse.de>
72
73 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
74 adjust commentary about TYPE_IS_SIZETYPE types.
75
1e537948
MLI
762012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
77
78 PR c++/53261
79 * c-common.c (warn_logical_operator): Check that argument of
80 integer_zerop is not NULL.
81
f2c4a785
MLI
822012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
83
84 PR c/43772
85 * c-common.c (warn_logical_operator): Do not warn if either side
86 is already true or false.
87
50f305ca
MLI
882012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
89
90 PR c/51712
91 * c-common.c (expr_original_type): New.
92 (shorten_compare): Do not warn for enumeration types.
93
0c3641b0
MLI
942012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
95
96 * c.opt (fpermissive): Add Var(flag_permissive).
97
7edaa4d2
MG
982012-04-30 Marc Glisse <marc.glisse@inria.fr>
99
100 PR c++/51033
101 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
102 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
103
b9c8da34
DS
1042012-04-30 Dodji Seketeli <dodji@redhat.com>
105
106 Add -Wvarargs option
107 * c.opt (Wvarargs): Define new option.
108
e6c69da0
MLI
1092012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
110
111 * c-common.c (check_function_arguments): Replace
112 Wmissing-format-attribute with Wsuggest-attribute=format.
113
90137d8f
MLI
1142012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
115
116 * c.opt (Wsuggest-attribute=format): New. Alias of
117 Wmissing-format-attribute.
118 * c-format.c (decode_format_type): Replace
119 Wmissing-format-attribute with Wsuggest-attribute=format.
120 (check_function_format): Likewise.
121
7f5f5f98
OW
1222012-04-27 Ollie Wild <aaw@google.com>
123
124 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
125 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
126 * c.opt: Add Wliteral-suffix.
127
c1771a20
MLI
1282012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
129
130 PR c/44774
131 * c.opt (Wpedantic): New.
132 (pedantic): Alias Wpedantic.
133 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
134 (c_common_post_options): Likewise.
135 (sanitize_cpp_opts): Likewise.
136 * c-lex.c (interpret_float): Likewise.
137 * c-format.c (check_format_types): Likewise.
138 * c-common.c (pointer_int_sum): Likewise.
139 (c_sizeof_or_alignof_type): Likewise.
140 (c_add_case_label): Likewise.
141 (c_do_switch_warnings): Likewise.
142 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
143
04b391c1
JM
1442012-04-15 Jason Merrill <jason@redhat.com>
145
146 PR c++/52818
147 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
148 (C_STD_NAME): Distinguish between C++98 and C++11.
149
ac868f29
EB
1502012-04-11 Eric Botcazou <ebotcazou@adacore.com>
151
152 PR target/52624
153 * c-common.h (uint16_type_node): Rename into...
154 (c_uint16_type_node): ...this.
155 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
156 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
157
fd4116f4
MLI
1582012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
159
160 * c-common.c (warn_if_unused_value): Move definition to here.
161 * c-common.h (warn_if_unused_value): Move declaration to here.
162
573ac65e
WB
1632012-03-23 William Bader <williambader@hotmail.com>
164
165 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
166
552b8185
JM
1672012-03-20 Jason Merrill <jason@redhat.com>
168
169 * c-common.h (enum cxx_dialect): Add cxx1y.
170 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
171 test.
172 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
173 * c-opts.c (c_common_post_options): Likewise.
174 (set_std_cxx1y): New.
175 (c_common_handle_option): Call it.
176 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
177
04398fa8
PC
1782012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
179
180 PR c++/14710
181 * c.opt ([Wuseless-cast]): Add.
182
d2a12ae7
RG
1832012-03-16 Richard Guenther <rguenther@suse.de>
184
185 * c-pretty-print.c (pp_c_initializer_list): Adjust.
186
a12bf402
MLI
1872012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
188
189 PR c++/44783
190 * c.opt (ftemplate-backtrace-limit) Add.
191
5c30094f
RO
1922012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
193
194 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
195 handling.
196 * c-pragma.c (handle_pragma_extern_prefix): Remove.
197 (init_pragma): Don't register extern_prefix.
198
21fa2faf
RG
1992012-03-12 Richard Guenther <rguenther@suse.de>
200
201 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
202 (builtin_type_for_size): Likewise.
203
e3793c6f
JJ
2042012-02-13 Jakub Jelinek <jakub@redhat.com>
205
206 PR c++/52215
207 * c-common.c (sync_resolve_params): Don't decide whether to convert
208 or not based on TYPE_SIZE comparison, convert whenever arg_type
209 is unsigned INTEGER_TYPE.
210
93286335
PC
2112012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
212
213 PR c/52118
214 * c.opt ([Wunused-local-typedefs]): Fix description.
215
7a421706
MS
2162012-01-24 Mike Stump <mikestump@comcast.net>
217
218 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
219 exactly.
220
ba9b1f11
RG
2212012-01-18 Richard Guenther <rguenther@suse.de>
222
223 * c-opts.c (c_common_post_options): Reset LTO flags if
224 we are about to generate a PCH.
225
465406be
PC
2262012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
227
228 PR c++/51777
229 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
230 use pp_unsigned_wide_integer.
231
aee15221
RG
2322012-01-10 Richard Guenther <rguenther@suse.de>
233
234 PR middle-end/51806
235 * c-opts.c (c_common_handle_option): Move -Werror handling
236 to language independent code.
237
5720c0dc
RG
2382012-01-05 Richard Guenther <rguenther@suse.de>
239
240 PR middle-end/51764
241 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
242 from common.opt.
243
73ac190a
PC
2442011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
245
246 PR c++/51316
247 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
248 of array types with an unknown bound.
249
48b0b196
JM
2502011-12-20 Joseph Myers <joseph@codesourcery.com>
251
252 * c-common.c (flag_isoc99): Update comment to refer to C11.
253 (flag_isoc1x): Change to flag_isoc11.
254 * c-common.h (flag_isoc99): Update comment to refer to C11.
255 (flag_isoc1x): Change to flag_isoc11.
256 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
257 C11.
258 * c-opts.c (set_std_c1x): Change to set_std_c11.
259 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
260 Call set_std_c11.
261 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
262 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
263 * c.opt (std=c1x): Change to std=c11. Document as non-draft
264 standard.
265 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
266 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
267 (std=gnu1x): Make alias of std=gnu11.
268
d58d6eb5
JM
2692011-12-19 Jason Merrill <jason@redhat.com>
270
271 PR c++/51228
272 * c-common.c (handle_transparent_union_attribute): Check the first
273 field if the type is complete.
274
b3908fcc
JW
2752011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
276
277 PR libstdc++/51365
278 * c-common.c (RID_IS_FINAL): Add.
279 * c-common.h (RID_IS_FINAL): Add.
280
fea3ca91
IS
2812011-11-30 Iain Sandoe <iains@gcc.gnu.org>
282
283 * c.opt (fgnu-runtime): Provide full description.
284 (fnext-runtime): Likewise.
285 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
286
62bad7cd
AM
2872011-11-28 Andrew MacLeod <amacleod@redhat.com>
288
289 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
290 predefines in one place. Add LOCK_FREE predefines.
291 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
292 new func.
293
c466c4ff
AM
2942011-11-24 Andrew MacLeod <amacleod@redhat.com>
295
296 PR c/51256
297 * c-common.c (get_atomic_generic_size): Check for various error
298 conditions
299 (resolve_overloaded_atomic_exchange,
300 resolve_overloaded_atomic_compare_exchange,
301 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
302 error_mark_node for error conditions.
303
a5952633
RG
3042011-11-08 Richard Guenther <rguenther@suse.de>
305
306 PR middle-end/51010
307 c-family/
308
0a35513e
AH
3092011-11-07 Richard Henderson <rth@redhat.com>
310 Aldy Hernandez <aldyh@redhat.com>
311 Torvald Riegel <triegel@redhat.com>
312
313 Merged from transactional-memory.
314
315 * c-common.c (handle_tm_wrap_attribute,
316 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
317 (struct c_common_reswords): Added __transaction* keywords.
318 (struct c_common_attribute_table): Added transaction* and tm_regparm
319 attributes.
320 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
321 masks.
322 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
323 find_tm_attribute): Declare.
324
6d87092d
JM
3252011-11-07 Jason Merrill <jason@redhat.com>
326
327 PR c++/35688
328 * c-common.c, c-common.h: Revert yesterday's changes.
329
8e7860a1
JM
3302011-11-06 Jason Merrill <jason@redhat.com>
331
332 PR c++/35688
333 * c-common.c (decl_has_visibility_attr): Split out from...
334 (c_determine_visibility): ...here.
335 * c-common.h: Declare it.
336
d19fa6b5
JM
3372011-11-06 Joseph Myers <joseph@codesourcery.com>
338
339 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
340 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
341 type.
342 (check_user_alignment): New. Split out of
343 handle_aligned_attribute. Disallow integer constants with
344 noninteger types. Conditionally allow zero.
345 (handle_aligned_attribute): Use check_user_alignment.
346 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
347
86951993
AM
3482011-11-06 Andrew MacLeod <amacleod@redhat.com>
349 Richard Henderson <rth@redhat.com>
350
351 Merged from cxx-mem-model.
352
353 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
354 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
355 parameters that are the same type size.
356 (get_atomic_generic_size): New. Find size of generic
357 atomic function parameters and do typechecking.
358 (add_atomic_size_parameter): New. Insert size into parameter list.
359 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
360 either __atomic_exchange_n or external library call.
361 (resolve_overloaded_atomic_compare_exchange): Restructure
362 __atomic_compare_exchange to either _n variant or external library call.
363 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
364 __atomic_load_n or an external library call.
365 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
366 __atomic_store_n or an external library call.
367 (resolve_overloaded_builtin): Handle new __atomic builtins.
368
cf9e9959
EB
3692011-11-04 Eric Botcazou <ebotcazou@adacore.com>
370
371 PR c++/50608
372 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
373 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
374 <INDIRECT_REF>: Return the argument.
375 <ARRAY_REF>: Remove special code for negative offset.
376 Call fold_build_pointer_plus instead of size_binop.
377 (fold_offsetof): Remove STOP_REF argument and adjust.
378 * c-common.h (fold_offsetof_1): Declare.
379 (fold_offsetof): Remove STOP_REF argument.
380
25339f10
JM
3812011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
382
383 PR c++/50810
384 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
385 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
386 Wnarrowing for C++0x and C++98.
387 * c.opt ([Wnarrowing]): Update.
388
89401152
PC
3892011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
390
391 PR c++/44277
392 * c.opt: Add Wzero-as-null-pointer-constant.
393
97e3ad20
JM
3942011-10-31 Jason Merrill <jason@redhat.com>
395
15694fdd
JM
396 * c.opt (-fdeduce-init-list): Off by default.
397
97e3ad20
JM
398 PR c++/50920
399 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
400 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
401 and -Wc++11-compat.
402 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
403
fb9120e3
RAV
4042011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
405
406 PR c++/30066
407 * c.opt (fvisibility-inlines-hidden): Description change.
408
3ce4f9e4
ESR
4092011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
410
411 Implement C++11 user-defined literals.
412 * c-common.c (build_userdef_literal): New.
413 * c-common.def: New tree code.
414 * c-common.h (tree_userdef_literal): New tree struct and accessors.
415 * c-lex.c (interpret_float): Add suffix parm.
416 (c_lex_with_flags): Build literal tokens.
417
5f53c243
PC
4182011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
419
420 PR c++/50841
421 Revert:
422 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
423
424 PR c++/50810
425 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
426 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
427 Wnarrowing for C++0x and C++98.
428 * c.opt ([Wnarrowing]): Update.
429
263734e1
PC
4302011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
431
432 PR c++/50810
433 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
434 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
435 Wnarrowing for C++0x and C++98.
436 * c.opt ([Wnarrowing]): Update.
437
d2e312d7
PC
4382011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
439
440 PR c++/45385
441 * c-common.c (conversion_warning): Remove code looking for
442 artificial operands.
443
d17687f6
DS
4442011-10-18 Dodji Seketeli <dodji@redhat.com>
445
446 PR bootstrap/50760
447 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
448 !NO_IMPLICIT_EXTERN_C.
449
fc8396e9
PC
4502011-10-17 Michael Spertus <mike_spertus@symantec.com>
451
452 * c-common.c (c_common_reswords): Add __bases,
453 __direct_bases.
454 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
455
4562011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
457
458 PR c++/50757
459 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
460
847e697a
TT
4612011-10-15 Tom Tromey <tromey@redhat.com>
462 Dodji Seketeli <dodji@redhat.com>
463
464 * c.opt (fdebug-cpp): New option.
465 * c-opts.c (c_common_handle_option): Handle the option.
466 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
467 output stream in parameter. Factorized from ...
468 (maybe_print_line): ... this. Dump location debug information when
469 -fdebug-cpp is in effect.
470 (print_line_1): New static function. Takes an output stream in
471 parameter. Factorized from ...
472 (print_line): ... here. Dump location information when -fdebug-cpp
473 is in effect.
474 (scan_translation_unit): Dump location information when
475 -fdebug-cpp is in effect.
476
92582b75
TT
4772011-10-15 Tom Tromey <tromey@redhat.com>
478 Dodji Seketeli <dodji@redhat.com>
479
480 * c.opt (ftrack-macro-expansion): New option. Handle it with and
481 without argument.
482 * c-opts.c (c_common_handle_option)<case
483 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
484 cases. Handle -ftrack-macro-expansion with and without argument.
485
46427374
TT
4862011-10-15 Tom Tromey <tromey@redhat.com>
487 Dodji Seketeli <dodji@redhat.com>
488
489 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
490 (print_line, cb_define, do_line_change): Adjust to avoid touching
491 the internals of struct line_map. Use the public API instead.
492 * c-pch.c (c_common_read_pch): Likewise.
493 * c-lex.c (fe_file_change): Likewise.
494
fc8396e9
PC
4952011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
496
497 PR c++/17212
498 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
499
5002011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
501
502 PR c++/33067
503 * c-pretty-print.c (pp_c_floating_constant): Output
504 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
505
e79983f4
MM
5062011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
507
508 * c-common.c (def_builtin_1): Delete old interface with two
509 parallel arrays to hold standard builtin declarations, and replace
510 it with a function based interface that can support creating
511 builtins on the fly in the future. Change all uses, and poison
512 the old names. Make sure 0 is not a legitimate builtin index.
513 * c-omp.c (c_finish_omp_barrier): Ditto.
514 (c_finish_omp_taskwait): Ditto.
515 (c_finish_omp_flush): Ditto.
516
6637388f
TG
5172011-10-11 Tristan Gingold <gingold@adacore.com>
518
519 * c.opt: (fallow-parameterless-variadic-functions): New.
520
3797cb21
DS
5212011-09-08 Dodji Seketeli <dodji@redhat.com>
522
523 PR c++/33255 - Support -Wunused-local-typedefs warning
524 * c-common.h (struct c_language_function::local_typedefs): New
525 field.
526 (record_locally_defined_typedef, maybe_record_typedef_use)
527 (maybe_warn_unused_local_typedefs): Declare new functions.
528 * c-common.c (record_locally_defined_typedef)
529 (maybe_record_typedef_use)
530 (maybe_warn_unused_local_typedefs): Define new functions.
531 * c.opt: Declare new -Wunused-local-typedefs flag.
532
693ddb1b
EB
5332011-09-06 Eric Botcazou <ebotcazou@adacore.com>
534
535 PR middle-end/50266
536 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
537 computations.
538
830c740f
RG
5392011-09-05 Richard Guenther <rguenther@suse.de>
540
541 * c-common.c (complete_array_type): Use ssize_int (-1) instead
542 of integer_minus_one_node for empty array upper bounds.
543
892a371f
DS
5442011-08-28 Dodji Seketeli <dodji@redhat.com>
545
546 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
547 it's the first time it's being called on this main TU.
548
0e3fdb48
RB
5492011-08-24 Richard Guenther <rguenther@suse.de>
550
551 PR c/49396
552 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
553
5542011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
555
556 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
557 defined in cpp_init_builtins and c_cpp_builtins.
558
d4a83c10
JM
5592011-08-19 Joseph Myers <joseph@codesourcery.com>
560
561 * c-common.c (c_common_reswords): Add __builtin_complex.
562 * c-common.h (RID_BUILTIN_COMPLEX): New.
563
bbceee64
JM
5642011-08-18 Joseph Myers <joseph@codesourcery.com>
565
566 * c-common.c (c_common_reswords): Add _Noreturn.
567 (keyword_is_function_specifier): Handle RID_NORETURN.
568 * c-common.h (RID_NORETURN): New.
569
0e3a99ae
AS
5702011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
571
572 * c-common.c (unsafe_conversion_p): New function. Check if it is
573 unsafe to convert an expression to the type.
574 (conversion_warning): Adjust, use unsafe_conversion_p.
575 * c-common.h (unsafe_conversion_p): New function declaration.
576
20906c66
JJ
5772011-08-02 Jakub Jelinek <jakub@redhat.com>
578
579 * c-common.h (c_finish_omp_atomic): Adjust prototype.
580 (c_finish_omp_taskyield): New prototype.
581 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
582 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
583 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
584 or RHS1 have side-effects, evaluate those too in the right spot,
585 if it is a decl and LHS is also a decl, error out if they
586 aren't the same.
587 (c_finish_omp_taskyield): New function.
588 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
589 * c-pragma.c (omp_pragmas): Add taskyield.
590 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
591 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
592 PRAGMA_OMP_CLAUSE_MERGEABLE.
593
770e5a2e
DS
5942011-07-25 Dodji Seketeli <dodji@redhat.com>
595
596 * c-common.h (set_underlying_type): Remove parm name from
597 declaration.
598
1baae426
RG
5992011-07-25 Romain Geissler <romain.geissler@gmail.com>
600
601 * c-pretty-print.h: Search c-common.h in c-family.
602
fcb21722
JM
6032011-07-22 Jason Merrill <jason@redhat.com>
604
76f86d00
JM
605 PR c++/49793
606 * c.opt (Wnarrowing): New.
607
3a636414
JM
608 PR c++/30112
609 * c-common.h: Declare c_linkage_bindings.
610 * c-pragma.c (handle_pragma_redefine_extname): Use it.
611
fcb21722
JM
612 PR c++/49813
613 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
614 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
615 as flag_isoc99 for 'restrict'.
616 (pp_c_specifier_qualifier_list): Likewise for _Complex.
617
02614448
ILT
6182011-07-21 Ian Lance Taylor <iant@google.com>
619
620 PR middle-end/49705
621 * c-common.c (c_disable_warnings): New static function.
622 (c_enable_warnings): New static function.
623 (c_fully_fold_internal): Change local unused_p to bool. Call
624 c_disable_warnings and c_enable_warnings rather than change
625 c_inhibit_evaluation_warnings.
626
34429675
JM
6272011-07-20 Jason Merrill <jason@redhat.com>
628
629 PR c++/6709 (DR 743)
630 PR c++/42603 (DR 950)
631 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
632 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
633 (CPP_DECLTYPE): New.
634 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
635
5d49b6a7
RG
6362011-07-19 Richard Guenther <rguenther@suse.de>
637
638 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
639 * c-omp.c (c_finish_omp_for): Likewise.
640
e84a58ff
EB
6412011-07-12 Eric Botcazou <ebotcazou@adacore.com>
642
643 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
644 body on the next line.
645
329af3c7
JM
6462011-07-08 Jason Merrill <jason@redhat.com>
647
4063e61b
JM
648 PR c++/45437
649 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
650
329af3c7
JM
651 PR c++/49673
652 * c-common.c (c_apply_type_quals_to_decl): Don't check
653 TYPE_NEEDS_CONSTRUCTING.
654
1a072294
RG
6552011-07-06 Richard Guenther <rguenther@suse.de>
656
657 * c-common.c (c_common_nodes_and_builtins):
658 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
659
fce5dddd
RG
6602011-07-05 Richard Guenther <rguenther@suse.de>
661
662 * c-common.c (c_common_nodes_and_builtins): Build all common
663 tree nodes first.
664
45d439ac
JJ
6652011-06-27 Jakub Jelinek <jakub@redhat.com>
666
56300785
JJ
667 * c-common.h (c_tree_chain_next): New static inline function.
668
45d439ac
JJ
669 * c-common.c (check_builtin_function_arguments): Handle
670 BUILT_IN_ASSUME_ALIGNED.
671
e0a8ecf2
AM
6722011-06-21 Andrew MacLeod <amacleod@redhat.com>
673
674 * c-common.c: Add sync_ or SYNC__ to builtin names.
675 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
676
6772011-06-20 Pierre Vittet <piervit@pvittet.com>
678
679 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
680 handler.
681 (gen_pragma_handler): New union.
682 (internal_pragma_handler): New type.
683 (c_register_pragma_with_data)
684 (c_register_pragma_with_expansion_and_data): New functions.
685
686 * c-pragma.c (registered_pragmas, c_register_pragma_1)
687 (c_register_pragma, c_register_pragma_with_expansion)
688 (c_invoke_pragma_handler): Changed to work with
689 internal_pragma_handler.
690 (c_register_pragma_with_data)
691 (c_register_pragma_with_expansion_and_data): New functions.
692
677f3fa8
JM
6932011-06-14 Joseph Myers <joseph@codesourcery.com>
694
695 * c-common.c: Include common/common-target.h.
696 (handle_section_attribute): Use
697 targetm_common.have_named_sections.
698 * c-cppbuiltin.c: Include common/common-target.h.
699 (c_cpp_builtins): Use targetm_common.except_unwind_info.
700
d7fc8c14
RG
7012011-06-10 Richard Guenther <rguenther@suse.de>
702
703 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
704 to print a IDENTIFIER_NODE.
705
10e48e39
RO
7062011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
707 Joseph Myers <joseph@codesourcery.com>
708
709 * c.opt (fbuilding-libgcc): New option.
710 * c-cppbuiltin.c (c_cpp_builtins): Define
711 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
712
6976ae51
JM
7132011-06-07 Jason Merrill <jason@redhat.com>
714
3ff60975
JM
715 * c-common.c (max_tinst_depth): Lower default to 900.
716
6976ae51
JM
717 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
718
009db074
RG
7192011-06-07 Richard Guenther <rguenther@suse.de>
720
721 * c-common.c (c_common_nodes_and_builtins): Do not set
722 size_type_node or call set_sizetype.
723
b4592b92
DS
7242011-06-07 Dodji Seketeli <dodji@redhat.com>
725
726 PR debug/49130
727 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
728 type when using pointer comparison to compare types.
729
014ab419
JW
7302011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
731
732 * c.opt: Add -Wdelete-non-virtual-dtor.
733 * c-opts.c (c_common_handle_option): Include it in -Wall.
734
4f60111f
NF
7352011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
736
737 PR bootstrap/49190
738
739 Revert:
740 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
741
742 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
743 not tree_common.
744
4cc4f2f4
JJ
7452011-05-27 Jakub Jelinek <jakub@redhat.com>
746
747 PR c++/49165
748 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
749 C++ don't call c_common_truthvalue_conversion on void type arms.
750
38e01f9e
NF
7512011-05-27 Nathan Froyd <froydnj@codesourcery.com>
752
753 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
754 (stmt_list_stack): Define.
755 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
756 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
757
92e948a8
NF
7582011-05-26 Nathan Froyd <froydnj@codesourcery.com>
759
760 * c-common.c (warning_candidate_p): Check for BLOCKs.
761
a2fc3e63
NF
7622011-05-26 Nathan Froyd <froydnj@codesourcery.com>
763
764 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
765 not tree_common.
766
0957c029
JJ
7672011-05-25 Jakub Jelinek <jakub@redhat.com>
768
769 * c-common.c (def_fn_type): Remove extra va_end.
770
828fb3ba
JM
7712011-05-23 Jason Merrill <jason@redhat.com>
772
773 PR c++/48106
774 * c-common.c (c_common_get_narrower): New.
775 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
776
dde05067
NF
7772011-05-23 Nathan Froyd <froydnj@codesourcery.com>
778
779 * c-common.h (check_function_arguments): Tweak prototype of
780 check_function_arguments.
781 * c-common.c (check_function_arguments): Likewise. Adjust
782 calls to check_function_nonnull, check_function_format, and
783 check_function_sentinel.
784 (check_function_sentinel): Take a FUNCTION_TYPE rather than
785 separate attributes and typelist arguments. Use
786 FOREACH_FUNCTION_ARGS to iterate over argument types.
787
3c0d13bf
PC
7882011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
789
790 * c-common.c (c_common_reswords): Reorder.
791 * c-common.h (rid): Likewise.
792
8242dd04
NF
7932011-05-10 Nathan Froyd <froydnj@codesourcery.com>
794
795 * c-common.c (def_fn_type): Don't call build_function_type, call
796 build_function_type_array or build_varargs_function_type_array
797 instead.
798 (c_common_nodes_and_builtins): Likewise.
799
3d528853
NF
8002011-05-05 Nathan Froyd <froydnj@codesourcery.com>
801
802 * c-common.c (c_add_case_label): Omit the loc argument to
803 build_case_label.
804 * c-common.h (build_case_label): Remove.
805 * c-semantics.c (build_case_label): Remove.
806
a04a722b
JM
8072011-05-05 Joseph Myers <joseph@codesourcery.com>
808
809 * c-objc.h (objc_start_method_definition): Update prototype.
810 * stub-objc.c (objc_start_method_definition): Add extra parameter.
811
e19a18d4
NF
8122011-05-04 Nathan Froyd <froydnj@codesourcery.com>
813
814 * c-common.c (check_main_parameter_types): Reindent. Don't use
815 TYPE_ARG_TYPES directly.
816 (handle_nonnull_attribute): Likewise.
817 (sync_resolve_params): Likewise.
818 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
819 to check_format_string.
820 (handle_format_attribute): Likewise.
821 (check_format_string): Take a function type to examine instead of
822 a type list. Use a function_arg_iterator to step through argument
823 types.
824
c62c040f
RG
8252011-05-04 Richard Guenther <rguenther@suse.de>
826
827 * c-common.c (fix_string_type): Use size_int for index type bounds.
828 (start_fname_decls): Do not pass NULL to build_int_cst.
829 (c_init_attributes): Likewise.
830 * c-lex.c (c_lex_with_flags): Likewise.
831
c12ff9d8
JM
8322011-04-27 Jason Merrill <jason@redhat.com>
833
834 * c-common.c (make_tree_vector_from_list): New.
835 * c-common.h: Declare it.
836
304dfbe3
RG
8372011-04-26 Richard Guenther <rguenther@suse.de>
838
839 PR preprocessor/48248
840 * c-ppoutput.c (maybe_print_line): Always optimize newlines
841 for output size with -P.
842
3c0d13bf
PC
8432011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
844
845 * c-common.c (struct c_common_resword): Add __underlying_type.
846 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
847
04695783
JM
8482011-04-20 Jim Meyering <meyering@redhat.com>
849
850 * c-format.c (init_dollar_format_checking): Remove useless
851 if-before-free.
852
0dc33c3c
NP
8532011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
854
855 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 856 (objc_detect_field_duplicates): New.
0dc33c3c 857 * stub-objc.c: Likewise.
3c0d13bf 858
c59633d9
NP
8592011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
860
861 * stub-objc.c (objc_declare_protocols): Renamed to
862 objc_declare_protocol.
863 * c-objc.h: Likewise.
3c0d13bf 864
32dabdaf
NP
8652011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
866
867 * stub-objc.c (objc_declare_class): Updated argument name.
868
81f653d6
NF
8692011-04-12 Nathan Froyd <froydnj@codesourcery.com>
870
871 * c-common.h (c_common_init_ts): Declare.
872 * c-common.c (c_common_init_ts): Define.
873
eb345401
NP
8742011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
875
876 * c-objc.h (objc_build_message_expr): Updated prototype.
877 * stub-objc.c (objc_build_message_expr): Likewise.
878
a358e188
MJ
8792011-04-12 Martin Jambor <mjambor@suse.cz>
880
881 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
882 of cgraph_node.
883
e6313a78
RG
8842011-04-11 Richard Guenther <rguenther@suse.de>
885
886 * c-common.c (complete_array_type): Build a range type of
887 proper type.
888
dcf0c47e
NF
8892011-04-08 Nathan Froyd <froydnj@codesourcery.com>
890
891 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
892 (handle_type_generic_attribute): Likewise.
893
1ee44b26
JM
8942011-04-07 Jason Merrill <jason@redhat.com>
895
896 PR c++/48450
897 * c-common.c (c_common_truthvalue_conversion): Don't ignore
898 conversion from C++0x scoped enum.
899
acce4e77
JM
9002011-04-06 Joseph Myers <joseph@codesourcery.com>
901
902 * c-target-def.h: New file.
903 * c-target.def: New file.
904 * c-target.h: New file.
905 * c-common.c (targetcm): Don't define here.
906 * c-common.h (default_handle_c_option): Declare.
907 * c-format.c: Include c-target.h instead of target.h.
908 * c-opts.c: Include c-target.h instead of target.h. Explicitly
909 include tm.h.
910 (default_handle_c_option): Move from targhooks.c.
911
e2eefb55
JJ
9122011-03-29 Jakub Jelinek <jakub@redhat.com>
913
914 PR preprocessor/48248
915 * c-ppoutput.c (print): Add src_file field.
916 (init_pp_output): Initialize it.
917 (maybe_print_line): Don't optimize by adding up to 8 newlines
918 if map->to_file and print.src_file are different file.
919 (print_line): Update print.src_file.
920
ba78087b
KT
9212011-03-25 Kai Tietz <ktietz@redhat.com>
922
923 * c-ada-spec.c (compare_comment): Use filename_cmp
924 instead of strcmp for filename.
925
0edf1bb2
JL
9262011-03-25 Jeff Law <law@redhat.com>
927
928 * c-family/c-common.c (def_fn_type): Add missing va_end.
929
c7dc8804
JM
9302011-03-25 Jason Merrill <jason@redhat.com>
931
932 * c.opt: Add -std=c++03.
933
d1d879b1
EB
9342011-03-22 Eric Botcazou <ebotcazou@adacore.com>
935
936 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
937
62d784f7
KT
9382011-03-17 Kai Tietz
939
940 PR target/12171
5050afdf
KT
941 * c-pretty-print.c (pp_c_specifier_qualifier_list):
942 Display allowed attributes for function pointer types.
943 (pp_c_attributes_display): New function to display
944 attributes having affects_type_identity flag set to true.
945 * c-pretty-print.h (pp_c_attributes_display): New prototype.
946
62d784f7
KT
947 * c-common.c (c_common_attribute_table):
948 Add new element.
949 (c_common_format_attribute_table): Likewise.
950
82d37118
JM
9512011-03-18 Jason Merrill <jason@redhat.com>
952
49a000c3
JM
953 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
954 * c-common.h: Don't declare it here.
955 * c-common.c: Or define it here.
956 * c-opts.c (c_common_handle_option): Or set it here.
957
82d37118
JM
958 PR c++/35315
959 * c-common.c (handle_transparent_union_attribute): Don't
960 make a duplicate type in C++.
961
17bc631c
JM
9622011-03-15 Jason Merrill <jason@redhat.com>
963
964 * c-common.c (max_constexpr_depth): New.
965 * c-common.h: Declare it.
966 * c-opts.c (c_common_handle_option): Set it.
967 * c.opt (fconstexpr-depth): New option.
968
1b9b91a6
JM
9692011-03-11 Jason Merrill <jason@redhat.com>
970
f231b5ff
JM
971 * c-common.c (attribute_takes_identifier_p): Add missing const.
972
1b9b91a6
JM
973 PR c++/46803
974 * c-common.c (attribute_takes_identifier_p): Assume that an
975 unknown attribute takes an identifier.
976
a19e4d44
NF
9772011-03-07 Nathan Froyd <froydnj@codesourcery.com>
978
979 PR c/47786
980 * c-common.c (c_type_hash): Call list_length instead of iterating
981 through DECL_CHAIN. Rename 'i' to 'n_elements'.
982
982d62f6
JJ
9832011-02-19 Jakub Jelinek <jakub@redhat.com>
984
985 PR c/47809
986 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
987
0a256240
NP
9882011-02-17 Iain Sandoe <iains@gcc.gnu.org>
989
990 * c.opt (fobjc-abi-version=) New.
991 (fobjc-nilcheck): New.
992
ba9e6dd5
NF
9932011-02-03 Nathan Froyd <froydnj@codesourcery.com>
994
995 PR c++/46890
996 * c-common.h (keyword_is_decl_specifier): Declare.
997 * c-common.c (keyword_is_decl_specifier): Define.
998 (keyword_is_function_specifier): New function.
999
7273813a
JJ
10002011-01-26 Jakub Jelinek <jakub@redhat.com>
1001
1002 PR c/47473
1003 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1004 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1005 REAL_TYPE.
1006
908ef79b
AC
10072011-01-26 Arnaud Charlet <charlet@adacore.com>
1008
1009 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1010
237e9384
JJ
10112011-01-26 Jakub Jelinek <jakub@redhat.com>
1012
1013 PR pch/47430
1014 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1015 after init_c_lex if pch_file is set.
1016
47ea1edf
DK
10172011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1018
d4dba752 1019 PR c++/43601
47ea1edf
DK
1020 * c.opt (-fkeep-inline-dllexport): New switch.
1021
2aa9c6ae
RG
10222011-01-12 Richard Guenther <rguenther@suse.de>
1023
1024 PR middle-end/32511
1025 * c-common.c (handle_weak_attribute): Warn instead of error
1026 on declaring an inline function weak.
1027
7bd11157
TT
10282011-01-05 Tom Tromey <tromey@redhat.com>
1029
1030 * c-common.h (lvalue_error): Update.
1031 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1032 not error.
1033
0e66e494
NP
10342010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
1035
b4f588c4
NP
1036 PR objc/47075
1037 * c-objc.h (objc_finish_message_expr): Added argument to
1038 prototype.
1039
f4da8dce
NF
10402010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1041
1042 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1043 Use prototype_p.
1044
46270f14
NP
10452010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1046
1047 * c-objc.h (objc_maybe_warn_exceptions): New.
1048 * stub-objc.c (objc_maybe_warn_exceptions): New.
1049
4816c593
NF
10502010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1051
1052 * c-common.h (readonly_error): Declare.
1053 * c-common.c (readonly_error): Define.
1054
7a6daeb0
NF
10552010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1056
1057 * c-common.h (invalid_indirection_error): Declare.
1058 * c-common.c (invalid_indirection_error): Define.
1059
892f6119
RG
10602010-12-03 Richard Guenther <rguenther@suse.de>
1061
1062 PR c/46745
1063 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1064 (pp_c_unary_expression): Likewise.
1065 (pp_c_expression): Likewise.
1066
6c39e757
NP
10672010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1068
1069 * c-common.h (objc_finish_function): New.
1070 (objc_non_volatilized_type): Removed.
1071 (objc_type_quals_match): Removed.
1072 * stub-objc.c (objc_finish_function): New.
1073 (objc_non_volatilized_type): Removed.
1074 (objc_type_quals_match): Removed.
1075
7c475d11
JM
10762010-11-30 Joseph Myers <joseph@codesourcery.com>
1077
1078 * c-common.h (parse_optimize_options): Declare.
1079 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1080 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1081
71f3e391
JM
10822010-11-29 Joseph Myers <joseph@codesourcery.com>
1083
1084 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1085 GET_ENVIRONMENT.
1086 * c-pch.c (O_BINARY): Don't define here.
1087 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1088
d5fabb58
JM
10892010-11-25 Joseph Myers <joseph@codesourcery.com>
1090
1091 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1092 targetm.except_unwind_info.
1093
299404a1
JM
10942010-11-23 Joseph Myers <joseph@codesourcery.com>
1095
1096 * c-opts.c (c_common_handle_option): Pass location to
1097 set_struct_debug_option.
1098
c98cd5bf
JM
10992010-11-23 Joseph Myers <joseph@codesourcery.com>
1100
1101 * c-common.c (visibility_options): Move from ../opts.c.
1102 * c-common.h (struct visibility_flags, visibility_options):
1103 Declare here.
1104 * c-opts.c (finish_options): Rename to c_finish_options.
1105 (c_common_init): Update call to finish_options.
1106
a9546771
NP
11072010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1108
1109 PR objc/34033
1110 * c-lex.c (lex_string): Check that each string in an Objective-C
1111 string concat sequence starts with either one or zero '@', and
1112 that there are no spurious '@' signs at the end.
1113
24a57808
JM
11142010-11-20 Joseph Myers <joseph@codesourcery.com>
1115
1116 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1117 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1118 HANDLE_PRAGMA_VISIBILITY.
1119 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1120 HANDLE_PRAGMA_VISIBILITY): Don't define.
1121 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1122
a9aa2c3a
NF
11232010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1124
1125 PR c++/16189
1126 PR c++/36888
1127 PR c++/45331
1128 * c-common.h (keyword_begins_type_specifier): Declare.
1129 (keyword_is_storage_class_specifier): Declare.
1130 (keyword_is_type_qualifier): Declare.
1131 * c-common.c (keyword_begins_type_specifier): New function.
1132 (keyword_is_storage_class_specifier): New function.
1133 (keyword_is_type_qualifier): Declare.
1134
5386338c
JM
11352010-11-19 Joseph Myers <joseph@codesourcery.com>
1136
1137 PR c/46547
1138 * c-common.c (in_late_binary_op): Define.
1139 (c_common_truthvalue_conversion): Check in_late_binary_op before
1140 calling c_save_expr.
1141 * c-common.h (in_late_binary_op): Declare.
1142
69ccdddb
JM
11432010-11-19 Joseph Myers <joseph@codesourcery.com>
1144
1145 * c-opts.c (c_common_handle_option): Update calls to
1146 set_struct_debug_option.
1147
6b192a09
NP
11482010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1149
1150 * c-common.h (objc_declare_protocols): Added additional argument.
1151 * stub-objc.c (objc_declare_protocol): Same change.
1152
fb52b50a
NF
11532010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1154
1155 PR c/33193
1156 * c-common.h (build_real_imag_expr): Declare.
1157 * c-semantics.c (build_real_imag_expr): Define.
1158
b37421c6
JM
11592010-11-17 Joseph Myers <joseph@codesourcery.com>
1160
1161 * c-opts.c (c_common_parse_file): Take no arguments.
1162 * c-common.h (c_common_parse_file): Update prototype.
1163
07078664
JJ
11642010-11-16 Jakub Jelinek <jakub@redhat.com>
1165
1166 PR c++/46401
1167 * c-common.c (warning_candidate_p): Don't track non-const calls
1168 or STRING_CSTs.
1169
c6a13190
ILT
11702010-11-15 Ian Lance Taylor <iant@google.com>
1171
1172 * c-lex.c (init_c_lex): Set macro debug callbacks if
1173 flag_dump_go_spec is set.
1174
925e8657
NP
11752010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1176
1177 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1178 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1179
bb0a9581
NF
11802010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1181
1182 PR preprocessor/45038
1183 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1184 dialects.
1185
c5fa0890
JM
11862010-11-12 Joseph Myers <joseph@codesourcery.com>
1187
1188 * c-common.h (c_family_lang_mask): Declare.
1189 * c-opts.c (c_family_lang_mask): Make extern.
1190 * c-pragma.c (handle_pragma_diagnostic): Use
1191 control_warning_option.
1192
a4d8c676
JM
11932010-11-12 Joseph Myers <joseph@codesourcery.com>
1194
1195 * c-common.c (parse_optimize_options): Update call to
1196 decode_options.
1197 * c-common.h (c_common_handle_option): Update prototype.
1198 * c-opts.c (c_common_handle_option): Take location_t parameter and
1199 pass it to other functions.
1200
f954bd2c
JM
12012010-11-11 Joseph Myers <joseph@codesourcery.com>
1202
1203 * c-opts.c (warning_as_error_callback): Remove.
1204 (c_common_initialize_diagnostics): Don't call
1205 register_warning_as_error_callback.
1206 (c_common_handle_option): Handle -Werror=normalized= here.
1207
d8a07487
JM
12082010-11-10 Joseph Myers <joseph@codesourcery.com>
1209
1210 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1211 in diagnostic.
1212 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1213 letter.
1214 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1215 Remove trailing '.' from diagnostics.
1216 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1217
d5478783
JM
12182010-11-10 Joseph Myers <joseph@codesourcery.com>
1219
1220 * c-common.c (parse_optimize_options): Pass global_dc to
1221 decode_options.
1222 * c-opts.c (c_common_handle_option): Pass &global_options to
1223 set_Wstrict_aliasing.
1224 * c.opt (v): Don't mark Common or document here.
1225
91ebb981
IS
12262010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1227
1228 PR target/44981
1229 * c-format.c (format_type): New type gcc_objc_string_format_type.
1230 (valid_stringptr_type_p): New.
1231 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1232 (check_format_string): Pass expected type, use
1233 valid_stringptr_type_p (), check that the format string types are
1234 consistent with the format specification.
1235 (decode_format_attr): Warn if NSString is used outside objective-c.
1236 (format_types_orig): Add NSString.
1237 (format_name): New.
1238 (format_flags): New.
1239 (check_format_arg): Handle format strings requiring an external parser.
1240 first_target_format_type: New variable.
1241 (handle_format_attribute): Set up first_target_format_type, pass the
1242 expected format arg string type to check_format_string().
1243 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1244 * stub-objc.c (objc_string_ref_type_p): New.
1245 (objc_check_format_arg): New.
1246
bede2adc
NP
12472010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1248
1249 Fixed using the Objective-C 2.0 dot-syntax with class names.
1250 * c-common.h (objc_build_class_component_ref): New.
1251 * stub-objc.c (objc_build_class_component_ref): New.
1252
9a179d01
NP
12532010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1254
1255 * c.opt (Wproperty-assign-default): New option.
1256
22d8d616
NP
12572010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1258
1259 Implemented -fobjc-std=objc1 flag.
1260 * c.opt (fobjc-std=objc1): New option.
1261
2debdb4f
NP
12622010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1263
1264 Implemented format and noreturn attributes for Objective-C methods.
1265 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1266 attribute for Objective-C methods.
1267
ec52b111
JM
12682010-10-31 Jason Merrill <jason@redhat.com>
1269
1270 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1271 EXPR_LOC_OR_HERE.
1272
46a88c12
NP
12732010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1274
1275 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1276 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1277 (objc_add_property_declaration): Removed arguments for copies and
1278 ivar.
1279 (objc_build_getter_call): Renamed to
1280 objc_maybe_build_component_ref.
1281 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1282 (objc_is_property_ref): New.
1283 * c-common.c (c_common_reswords): Removed copies and ivar.
1284 * stub-objc.c (objc_add_property_declaration): Removed arguments
1285 for copies and ivar.
1286 (objc_build_getter_call): Renamed to
1287 objc_maybe_build_component_ref.
1288 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1289 (objc_is_property_ref): New.
1290
1e4bf85b
AC
12912010-10-29 Arnaud Charlet <charlet@adacore.com>
1292 Matthew Gingell <gingell@adacore.com>
1293
1294 * c-ada-spec.c (separate_class_package): New function.
1295 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1296 name of their enclosing package.
1297 (print_ada_declaration): Use separate_class_package.
1298
81f0bab2
JM
12992010-10-27 Jason Merrill <jason@redhat.com>
1300
2b08f2c5
JM
1301 * c-common.c (c_common_reswords): Add __is_literal_type.
1302 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1303
81f0bab2
JM
1304 * c-common.c (check_case_value): Remove special C++ code.
1305
200290f2
NP
13062010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1307
1308 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1309 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1310 and RID_LAST_PATTR.
1311 (objc_add_property_declaration): Added additional arguments.
1312 (objc_property_attribute_kind): Removed.
1313 (objc_set_property_attr): Removed.
1314 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1315 copy and nonatomic.
1316 * stub-objc.c (objc_add_property_declaration): Added additional
1317 arguments.
1318 (objc_set_property_attr): Removed.
1319
f614132b
NP
13202010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1321
1322 * c-common.h (objc_add_property_variable): Renamed to
1323 objc_add_property_declaration. Added location argument.
1324 * stub-objc.c (objc_add_property_variable): Same change.
1325
b8a18805
NP
13262010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1327
1328 * c-common.h (objc_maybe_printable_name): New.
1329 * stub-objc.c (objc_maybe_printable_name): New.
1330
30cd1c5d
AS
13312010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1332 Andrew Pinski <pinskia@gmail.com>
1333
1334 * c-common.h (c_common_mark_addressable_vec): Declare.
1335 * c-common.c (c_common_mark_addressable_vec): New function.
1336
249a82c4
NP
13372010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1338
1339 * c-common.h (objc_set_method_type): Removed.
1340 (objc_add_method_declaration): Added boolean argument.
1341 (objc_start_method_definition): Same change.
1342 (objc_build_method_signature): Same change.
1343 * stub-objc.c (objc_set_method_type): Removed.
1344 (objc_add_method_declaration): Added boolean argument.
1345 (objc_start_method_definition): Same change.
1346 (objc_build_method_signature): Same change.
1347
977e30bc
NP
13482010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1349
1350 * c-common.h (finish_file): Removed.
1351 (objc_write_global_declarations): New.
1352 * c-opts.c (c_common_parse_file): Do not call finish_file.
1353 * stub-objc.c (objc_write_global_declarations): New.
1354
da57d1b9
NP
13552010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1356
1357 Implemented parsing @synthesize and @dynamic for
1358 Objective-C/Objective-C++.
1359 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1360 (objc_add_synthesize_declaration): New.
1361 (objc_add_dynamic_declaration): New.
1362 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1363 * stub-objc.c (objc_add_synthesize_declaration): New.
1364 (objc_add_dynamic_declaration): New.
1365
0069111f
MM
13662010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1367
1368 PR target/46041
1369 * c-cppbuiltin.c (mode_has_fma): Move function here from
1370 builtins.c. Don't use the fma optab, instead just use the
1371 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1372 using -save-temps.
1373
e426b47b
NP
13742010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1375
1376 Merge from 'apple/trunk' branch on FSF servers.
0069111f 1377
e426b47b
NP
1378 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1379
1380 Radar 4330422
1381 * c-common.h (objc_non_volatilized_type): New declaration
1382 * stub-objc.c (objc_non_volatilized_type): New stub.
1383
90fbfdc3
NP
13842010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1385
e426b47b 1386 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
1387
1388 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1389
1390 Radar 4133425
1391 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 1392 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 1393
c37d8c30
IS
13942010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1395
1396 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1397 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1398 (objc_ivar_visibility_kind): New enum.
1399 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 1400 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
1401 visibility enum.
1402
1b1562a5
MM
14032010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1404
1405 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1406 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1407 has the appropriate fma builtins.
1408 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1409
668ea4b1
IS
14102010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1411
1b1562a5 1412 merge from FSF apple 'trunk' branch.
668ea4b1 1413 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 1414
668ea4b1
IS
1415 Radars 4436866, 4505126, 4506903, 4517826
1416 * c-common.c (c_common_resword): Define @property and its attributes.
1417 * c-common.h: Define property attribute enum entries.
1418 (OBJC_IS_PATTR_KEYWORD): New.
1419 (objc_property_attribute_kind): New enum.
1420 Declare objc_set_property_attr (), objc_add_property_variable (),
1421 objc_build_getter_call () and objc_build_setter_call ().
1422 * stub-objc.c (objc_set_property_attr): New stub.
1423 (objc_add_property_variable): Likewise.
1424 (objc_build_getter_call): Likewise.
1425 (objc_build_setter_call) Likewise.
1b1562a5 1426
a1178b30
IS
14272010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1428
1b1562a5 1429 merge from FSF apple 'trunk' branch.
a1178b30
IS
1430 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1431
1432 Radar 3803157 (method attributes)
1433 * c-common.c (handle_deprecated_attribute): Recognize
1434 objc methods as valid declarations.
1435 * c-common.h: Declare objc_method_decl ().
1b1562a5 1436 * stub-objc.c (objc_method_decl): New stub.
a1178b30 1437
a75bfaa6
JM
14382010-10-08 Joseph Myers <joseph@codesourcery.com>
1439
1440 * c-common.c (parse_optimize_options): Call
1441 decode_cmdline_options_to_array_default_mask before
1442 decode_options. Update arguments to decode_options.
1443 * c-common.h (c_common_init_options_struct): Declare.
1444 * c-opts.c (c_common_init_options_struct): New. Split out from
1445 c_common_init_options.
1446
f05b9d93
NP
14472010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1448
1449 Implemented fast enumeration for Objective-C.
1450 * c-common.h (objc_finish_foreach_loop): New.
1451 * stub-objc.c (objc_finish_foreach_loop): New.
1452
1ebe4b4f
JM
14532010-10-05 Joseph Myers <joseph@codesourcery.com>
1454
1455 * c-common.h (struct diagnostic_context): Don't declare here.
1456 (c_common_initialize_diagnostics): Declare using
1457 diagnostic_context typedef.
1458 * c-opts.c (c_common_handle_option): Pass global_dc to
1459 handle_generated_option.
1460
d4d24ba4
JM
14612010-10-04 Joseph Myers <joseph@codesourcery.com>
1462
1463 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1464 handle_generated_option.
1465
478a1c5b
ILT
14662010-10-03 Ian Lance Taylor <iant@google.com>
1467
1468 * c.opt (-fplan9-extensions): New option.
1469
82a1c2fe
FXC
14702010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1471
1472 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1473 Remove.
1474 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1475 of duplicating code.
1476
92902b1b
IS
14772010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1478
1479 * c-common.c: Add two new entries for @optional
1480 and @required keywords.
1481
1482 merge from FSF 'apple/trunk' branch.
1483 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1484
1485 Radar 4386773
1486 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1487 objective-c keywords.
1488 (objc_set_method_opt): New declaration.
1489 * stub-objc.c (objc_set_method_opt): New stub.
1490
46625112
JM
14912010-09-30 Joseph Myers <joseph@codesourcery.com>
1492
1493 * c-common.c (handle_optimize_attribute): Pass &global_options to
1494 cl_optimization_save and cl_optimization_restore.
1495 * c-opts.c (c_common_handle_option): Pass &global_options to
1496 handle_generated_option.
1497 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1498 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1499 &global_options to cl_optimization_restore.
1500
49b91f05
NP
15012010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1502
1503 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1504 Objective-C/Objective-C++ keywords.
1505
13ed556f 15062010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57
NP
1507
1508 Merge from 'apple/trunk' branch on FSF servers.
1509
1510 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1511
1512 Radar 4281748
1513 * c-common.h (objc_check_global_decl): New declaration.
1514 * stub-objc.c (objc_check_global_decl): New stub.
1515
f0036cca
JM
15162010-09-29 Joseph Myers <joseph@codesourcery.com>
1517
1518 * c.opt: Don't use VarExists.
1519
e3339d0f
JM
15202010-09-29 Joseph Myers <joseph@codesourcery.com>
1521
1522 * c-common.c (c_cpp_error): Update names of diagnostic_context
1523 members.
1524 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1525 cl_optimization members.
1526 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1527 sanitize_cpp_opts, finish_options): Update names of cpp_options
1528 members.
1529
1973201f
NP
15302010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1531
1532 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1533 (objc_is_reserved_word): Removed.
1534 * c-common.c: Updated comments.
1535 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1536 objc_is_reserved_word.
1537 * stub-objc.c (objc_is_reserved_word): Removed.
1538
f7e71da5
IS
15392010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1540
1541 * c-common.h (objc_add_method_declaration): Adjust prototype to
1542 include attributes.
1543 (objc_start_method_definition): Likewise.
1544 (objc_build_keyword_decl): Likewise.
1545 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1546 (objc_start_method_definition): Likewise.
1547 (objc_build_keyword_decl): Likewise.
1548
c165dca7
IS
15492010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1550
1551 * c-common.h (objc_start_class_interface): Adjust prototype.
1552 (objc_start_category_interface): Likewise.
1553 (objc_start_protocol): Likewise.
1554 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1555 (objc_start_class_interface): Likewise.
1556 (objc_start_category_interface): Likewise.
1557
7458026b
ILT
15582010-09-27 Ian Lance Taylor <iant@google.com>
1559
1560 * c-common.c (c_common_attribute_table): Add no_split_stack.
1561 (handle_no_split_stack_attribute): New static function.
1562
b581b85b
NP
15632010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1564
1565 Merge from 'apple/trunk' branch on FSF servers.
1566
1567 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1568
1569 Radar 4229905
1570 * c-common.h (objc_have_common_type): New declaration.
1571 * stub-objc.c (objc_have_common_type): New stub.
1572
1573 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1574
1575 Radar 4154928
1576 * c-common.h (objc_common_type): New prototype.
1577 * stub-objc.c (objc_common_type): New stub.
1578
46a4da10
JH
15792010-09-24 Jan Hubicka <jh@suse.cz>
1580
1581 * c-common.c (handle_leaf_attribute): New function.
1582 (struct attribute_spec c_common_att): Add leaf.
1583
e200444e
JM
15842010-09-22 Joseph Myers <joseph@codesourcery.com>
1585
1586 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1587 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1588 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1589 -include-barrier, -include-directory, -include-directory=,
1590 -include-directory-after, -include-directory-after=,
1591 -include-prefix, -include-prefix=, -include-with-prefix,
1592 -include-with-prefix=, -include-with-prefix-after,
1593 -include-with-prefix-after=, -include-with-prefix-before,
1594 -include-with-prefix-before=, -no-integrated-cpp,
1595 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1596 -output=, -pedantic, -pedantic-errors, -preprocess,
1597 -print-missing-file-dependencies, -trace-includes, -traditional,
1598 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1599 -user-dependencies, -verbose, -write-dependencies,
1600 -write-user-dependencies, no-integrated-cpp, traditional): New.
1601
29a80ea6
NP
16022010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1603
1604 PR objc/23710
ac1fc2fc
NP
1605 * c-common.h (objc_start_method_definition): Return bool instead
1606 of void.
1607 * stub-objc.c (objc_start_method_definition): Return bool instead
1608 of void.
1609
16102010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1611
1612 PR objc/25965
1613 * c-common.h (objc_get_interface_ivars): New declaration.
1614 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 1615
de621752
ILT
16162010-09-15 Ian Lance Taylor <iant@google.com>
1617
1618 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 1619 messages. Remove period at end of warning message.
de621752 1620
ba885ec5
NS
16212010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1622
1623 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1624 (handle_alias_attribute): ... here.
1625 (handle_ifunc_attribute): New.
1626
c5ee1358
MM
16272010-09-06 Mark Mitchell <mark@codesourcery.com>
1628
1629 * c-common.h (do_warn_double_promotion): Declare.
1630 * c-common.c (do_warn_double_promotion): Define.
1631
0a0b3574
MM
16322010-09-05 Mark Mitchell <mark@codesourcery.com>
1633
1634 * c.opt (Wdouble-promotion): New.
1635
d1779886
JM
16362010-09-02 Joseph Myers <joseph@codesourcery.com>
1637
1638 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1639 fvtable-thunks, fxref): Mark no longer supported in help text.
1640
2d2bd949
JM
16412010-09-02 Joseph Myers <joseph@codesourcery.com>
1642
1643 * c.opt (Wimport, fall-virtual, falt-external-templates,
1644 fdefault-inline, fenum-int-equiv, fexternal-templates,
1645 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1646 fname-mangling-version-, fnew-abi, fnonnull-objects,
1647 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1648 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1649 applicable.
1650 (fhandle-exceptions): Mark with Alias and Warn.
1651 * c-opts.c (c_common_handle_option): Don't handle options marked
1652 as ignored.
1653
5de8299c
JM
16542010-09-02 Joseph Myers <joseph@codesourcery.com>
1655
1656 * c.opt (Wcomments, Werror-implicit-function-declaration,
1657 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1658 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1659 aliases.
1660 * c-common.c (option_codes): Use OPT_Wcomment instead of
1661 OPT_Wcomments.
1662 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1663 Don't handle options marked as aliases.
1664
0ceb0201
RG
16652010-08-25 Richard Guenther <rguenther@suse.de>
1666
1667 * c-common.c (c_common_get_alias_set): Remove special
1668 handling for pointers.
1669
ac47786e
NF
16702010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1671
1672 * c-common.c: Use FOR_EACH_VEC_ELT.
1673 * c-gimplify.c: Likewise.
1674 * c-pragma.c: Likewise.
1675
c878765b
JM
16762010-08-16 Joseph Myers <joseph@codesourcery.com>
1677
1678 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1679 RejectDriver.
1680 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1681 RejectDriver.
1682 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1683 instead of OPT_MDX and OPT_MMDX.
1684
603349bf
JM
16852010-08-16 Joseph Myers <joseph@codesourcery.com>
1686
1687 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1688
644fa7ac
JM
16892010-08-12 Joseph Myers <joseph@codesourcery.com>
1690
1691 * c.opt (MD, MMD): Change to MDX and MMDX.
1692 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1693
481e1176
JM
16942010-08-11 Joseph Myers <joseph@codesourcery.com>
1695
1696 * c-opts.c (c_common_handle_option): Call handle_generated_option
1697 instead of handle_option.
1698
ac8dc9f7
NF
16992010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1700
1701 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1702 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1703
4f8c876d
NF
17042010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1705
1706 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1707 (pending_redefine_extname): Change type to a VEC.
1708 (add_to_renaming_pragma_list): Update for new type of
1709 pending_redefine_extname.
ac8dc9f7 1710 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 1711
3b0c690e
AC
17122010-08-04 Arnaud Charlet <charlet@adacore.com>
1713
1714 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1715 visited.
1716 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1717 decide whether a type has already been declared/seen.
1718 Do not go to the original type.
1719 (dump_nested_types): New parameter forward.
1720 Generate forward declaration if needed and mark type as visited.
1721 (print_ada_declaration): Call dump_nested_types if not already done.
1722 Mark types as visited.
1723
1890bccc
JM
17242010-08-03 Joseph Myers <joseph@codesourcery.com>
1725
1726 * c.opt (-print-pch-checksum): Remove option.
1727 * c-opts.c (c_common_handle_option): Don't handle
1728 OPT_print_pch_checksum.
1729
5f20c657
JM
17302010-07-27 Joseph Myers <joseph@codesourcery.com>
1731
1732 * c-common.h (c_common_handle_option): Update prototype and return
1733 value type.
1734 * c-opts.c (c_common_handle_option): Update prototype and return
1735 value type. Update calls to handle_option and
1736 enable_warning_as_error.
1737
f551f80c
JJ
17382010-07-27 Jakub Jelinek <jakub@redhat.com>
1739
1740 PR c/45079
1741 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1742
61ff2bdc
JM
17432010-07-27 Joseph Myers <joseph@codesourcery.com>
1744
1745 * c-common.h (c_common_missing_argument): Remove.
1746 * c-opts.c (c_common_missing_argument): Remove.
1747 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1748 idirafter, imacros, include, isysroot, isystem, iquote): Add
1749 MissingArgError.
1750 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1751
7a9bf9a4
JM
17522010-07-27 Joseph Myers <joseph@codesourcery.com>
1753
1754 * c-common.h (c_common_option_lang_mask,
1755 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1756 New.
1757 (c_common_init_options): Update prototype.
1758 * c-opts.c (c_common_option_lang_mask): New.
1759 (c_common_initialize_diagnostics): Split out of
1760 c_common_init_options.
1761 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1762 New.
1763 (c_common_init_options): Update prototype. Use decoded options in
1764 search for -lang-asm.
1765
910ad8de
NF
17662010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1767
1768 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1769 * c-format.c: Likewise.
1770
718f9c0f
MLI
17712010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1772
1773 * c-common.h: Include diagnostic-core.h. Error if already
1774 included.
1775 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1776
4d451982
MLI
17772010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1778
1779 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1780 Do not include expr.h
1781 (vector_mode_valid_p): Move here.
1782
119fe915
SB
17832010-06-21 DJ Delorie <dj@redhat.com>
1784
1785 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1786 allow these pragmas anywhere.
1787
17882010-06-14 Jakub Jelinek <jakub@redhat.com>
1789
1790 PR bootstrap/44509
1791 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1792 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1793 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1794 ggc_strdup instead of xstrdup.
1795
17962010-06-10 Jakub Jelinek <jakub@redhat.com>
1797
1798 * c-cppbuiltin.c: Include cpp-id-data.h.
1799 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1800 (lazy_hex_fp_value): New function.
1801 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1802
6662d794
MLI
18032010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1804
1805 * c-gimplify.c: Do not include tree-flow.h
1806
38f8b050
JR
18072010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1808
1809 PR other/44034
1810 * c-common.c: Rename targetm member:
1811 targetm.enum_va_list -> targetm.enum_va_list_p
1812
9589f23e
AS
18132010-06-28 Anatoly Sokolov <aesok@post.ru>
1814
1815 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1816
3b06d379
SB
18172010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1818
1819 * c-cppbuiltin.c: Do not include except.h.
1820
d166d4c3
AK
18212010-06-24 Andi Kleen <ak@linux.intel.com>
1822
1823 * c-common.c (warn_for_omitted_condop): New.
1824 * c-common.h (warn_for_omitted_condop): Add prototype.
1825
70cb8be6
JM
18262010-06-21 Joseph Myers <joseph@codesourcery.com>
1827
1828 * c.opt (lang-objc): Remove.
1829 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1830
a4c97feb
JR
18312010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1832
1833 * c-opts.c: Include "tm_p.h".
1834
6e2f1956
JM
18352010-06-20 Joseph Myers <joseph@codesourcery.com>
1836
1837 * c-common.c (parse_optimize_options): Update call to
1838 decode_options.
1839
bc87224e
NF
18402010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1841
1842 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1843 new type of types_used_by_cur_var_decl.
1844
b49cf425
JR
18452010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1846
1847 PR bootstrap/44512
1848 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1849 for C++ standard compliance.
1850
59f9c2ed
JM
18512010-06-16 Jason Merrill <jason@redhat.com>
1852
1853 * c.opt: Add -Wnoexcept.
1854
33766b66
RG
18552010-06-16 Richard Guenther <rguenther@suse.de>
1856
1857 PR c/44555
1858 * c-common.c (c_common_truthvalue_conversion): Remove
1859 premature and wrong optimization concering ADDR_EXPRs.
1860
eff7e30c
AC
18612010-06-15 Arnaud Charlet <charlet@adacore.com>
1862
1863 * c-ada-spec.c (dump_sloc): Remove column info.
1864 (is_simple_enum): New function.
1865 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1866 enum types when relevant.
1867
6312e84d
MLI
18682010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1869
1870 * c-common.c (conversion_warning): Warn at expression
1871 location.
1872
1cb42611
JM
18732010-06-10 Joseph Myers <joseph@codesourcery.com>
1874
1875 * c-opts.c (c_common_handle_option): Don't handle
1876 OPT_fshow_column.
1877
a9429e29
LB
18782010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1879
1880 * c-pragma.c (push_alignment): Use typed GC allocation.
1881 (handle_pragma_push_options): Likewise.
1882
1883 * c-common.c (parse_optimize_options): Likewise.
1884
1885 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1886 option.
1887
5498f011
JM
18882010-06-07 Joseph Myers <joseph@codesourcery.com>
1889
1890 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1891 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1892 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1893 flag_signed_bitfields, warn_strict_null_sentinel,
1894 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1895 flag_gen_declaration, flag_no_gnu_keywords,
1896 flag_implement_inlines, flag_implicit_templates,
1897 flag_implicit_inline_templates, flag_optional_diags,
1898 flag_elide_constructors, flag_default_inline, flag_rtti,
1899 flag_conserve_space, flag_access_control, flag_check_new,
1900 flag_new_for_scope, flag_weak, flag_working_directory,
1901 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1902 flag_enforce_eh_specs, flag_threadsafe_statics,
1903 flag_pretty_templates): Remove.
1904 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1905 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1906 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1907 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1908 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1909 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1910 flag_no_gnu_keywords, flag_implement_inlines,
1911 flag_implicit_templates, flag_implicit_inline_templates,
1912 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1913 flag_rtti, flag_conserve_space, flag_access_control,
1914 flag_check_new, flag_new_for_scope, flag_weak,
1915 flag_working_directory, flag_use_cxa_atexit,
1916 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1917 flag_threadsafe_statics, flag_pretty_templates,
1918 warn_strict_null_sentinel): Remove.
1919 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1920 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1921 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1922 fimplicit-inline-templates, fimplicit-templates,
1923 flax-vector-conversions, fms-extensions, fnil-receivers,
1924 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1925 frtti, fshort-double, fshort-enums, fshort-wchar,
1926 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1927 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1928 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1929 gen-decls, undef): Use Var.
1930 (fdefault-inline, foptional-diags): Document as doing nothing.
1931 * c-opts.c (c_common_handle_option): Remove cases for options now
1932 using Var. Mark ignored options as such.
1933
39dabefd
SB
19342010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1935
1936 * c-common.c: Moved to here from parent directory.
1937 * c-common.def: Likewise.
1938 * c-common.h: Likewise.
1939 * c-cppbuiltin.c: Likewise.
1940 * c-dump.c: Likewise.
1941 * c-format.c: Likewise.
1942 * c-format.h : Likewise.
1943 * c-gimplify.c: Likewise.
1944 * c-lex.c: Likewise.
1945 * c-omp.c: Likewise.
1946 * c.opt: Likewise.
1947 * c-opts.c: Likewise.
1948 * c-pch.c: Likewise.
1949 * c-ppoutput.c: Likewise.
1950 * c-pragma.c: Likewise.
1951 * c-pragma.h: Likewise.
1952 * c-pretty-print.c: Likewise.
1953 * c-pretty-print.h: Likewise.
1954 * c-semantics.c: Likewise.
1955 * stub-objc.c: Likewise.
1956
1957 * c-common.c: Include gt-c-family-c-common.h.
1958 * c-pragma.c: Include gt-c-family-c-pragma.h.
1959\f
04695783 1960Copyright (C) 2010, 2011 Free Software Foundation, Inc.
39dabefd
SB
1961
1962Copying and distribution of this file, with or without modification,
1963are permitted in any medium without royalty provided the copyright
1964notice and this notice are preserved.
This page took 0.783209 seconds and 5 git commands to generate.