]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
re PR rtl-optimization/54739 (FAIL: gcc.dg/lower-subreg-1.c scan-rtl-dump subreg1...
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
6040bb5f
DC
12012-09-25 Dehao Chen <dehao@google.com>
2
3 PR middle-end/54645
4 * c-family/c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
5 map when read in the pch.
6
0b07a57e
AC
72012-09-18 Arnaud Charlet <charlet@adacore.com>
8
9 * c-ada-spec.c: Style fixes.
10
da5182be
TQ
112012-09-18 Thomas Quinot <quinot@adacore.com>
12
13 * c.opt (-fada-spec-parent): Define new command line switch.
14 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
15 is specified, generate binding spec as a child of the specified unit.
16
0ccb505d
PC
172012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
18 Manuel López-Ibáñez <manu@gcc.gnu.org>
19
20 PR c++/53210
21 * c.opt ([Winit-self]): Enabled by -Wall in C++.
22
c583af79
AC
232012-08-23 Arnaud Charlet <charlet@adacore.com>
24
25 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
26 for pointers, and add missing Convention C pragma.
27 (print_ada_struct_decl): Add missing aliased keyword.
28 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
29
1a4049e7
JJ
302012-08-17 Jakub Jelinek <jakub@redhat.com>
31
32 * c-common.c (sizeof_pointer_memaccess_warning): New function.
33 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
34 * c-opts.c (c_common_handle_option): Enable it for -Wall.
35 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
36 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
37
70b5e7dc
RG
382012-08-10 Richard Guenther <rguenther@suse.de>
39
40 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
41
f8923f7e
SB
422012-08-07 Steven Bosscher <steven@gcc.gnu.org>
43
44 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
45 instead of separate pp_newline and pp_flush.
46 (print_c_tree): Likewise.
47
e45abe1f
RH
482012-07-26 Richard Henderson <rth@redhat.com>
49
50 * c-common.c (handle_hot_attribute): Allow labels.
51 (handle_cold_attribute): Likewise.
52
332f1d24
JJ
532012-07-20 Jakub Jelinek <jakub@redhat.com>
54
55 PR c++/28656
56 * c-common.c (check_function_nonnull): Handle multiple nonnull
57 attributes properly.
58
7ee2468b
SB
592012-07-16 Steven Bosscher <steven@gcc.gnu.org>
60
61 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
62 * c-ada-spec.c: Likewise.
63 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
64
ee7b28eb
SB
652012-07-14 Steven Bosscher <steven@gcc.gnu.org>
66
67 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
68 Remove code conditional on it.
69
6bdf3519
SB
702012-07-11 Steven Bosscher <steven@gcc.gnu.org>
71
72 * c-gimplify.c: Do not include basic-block.h.
73 * c-common.c: Do not include linfuncs.h.
74
532aafad
SB
752012-07-08 Steven Bosscher <steven@gcc.gnu.org>
76
77 * c-common.h: Include tree.h.
78
8d0d1915
JM
792012-07-02 Jason Merrill <jason@redhat.com>
80
81 PR c++/53524
82 * c-common.c (get_priority): Call default_conversion.
83
fbc873ad
UB
842012-07-01 Uros Bizjak <ubizjak@gmail.com>
85
86 * c-pch.c (c_common_write_pch): Remove unused variables.
87
d4a10d0a
SB
882012-06-29 Steven Bosscher <steven@gcc.gnu.org>
89
90 * cppspec.c: Moved from gcc/ to here.
91
6f3a2e23
KT
922012-06-27 Kai Tietz <ktietz@redhat.com>
93
94 PR preprocessor/37215
95 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
96
8ca92d04
SB
972012-06-21 Steven Bosscher <steven@gcc.gnu.org>
98
99 * c-common.h (c_common_print_pch_checksum): Remove.
100 * c-pch.c: Do not include output.h.
101 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
102 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
103 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
104 (struct c_pch_header): Remove.
105 (get_ident): Update gpch version.
106 (pch_init): Do not print executable_checksum to asm_out_file.
107 Do not fail if there is no asm_out_file to read back from. Set
108 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
109 (c_common_write_pch): Verify that nothing was written to asm_out_file
110 since pch_init was called. Do not write a c_pch_header, and do not
111 copy from asm_out_file to the PCH.
112 (c_common_read_pch): Do not read a c_pch_header, and do not restore
113 the content of asm_out_file from the PCH.
114 (c_common_print_pch_checksum): Remove.
115 * c-opts.c (c_common_init): Print out executable_checksum directly.
116
70f42967
SB
1172012-06-19 Steven Bosscher <steven@gcc.gnu.org>
118
119 * c-target.def (objc_declare_unresolved_class_reference,
120 objc_declare_class_definition): Add new hooks.
121
a8781821
SB
1222012-06-19 Steven Bosscher <steven@gcc.gnu.org>
123
124 * c-lex.c: Do not include output.h.
125 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
126 Remove uses of ASM_OUTPUT_IDENT.
127
9e1a8dd1
RR
1282012-06-15 Marc Glisse <marc.glisse@inria.fr>
129
130 PR c++/51033
131 * c-common.h (c_build_vec_perm_expr): Move decl here.
132 * c-common.c (c_build_vec_perm_expr): Move definition
133 here.
134
6f07a821
SB
1352012-06-06 Steven Bosscher <steven@gcc.gnu.org>
136
137 * c.opt (fconserve-space): Turn into a no-op.
138
9faeb493 1392012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
140
141 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
142 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
143 both the start and end of the function.
144
a4b7d13c
SB
1452012-06-04 Steven Bosscher <steven@gcc.gnu.org>
146
147 * c-common.c: Do not include output.h.
148 * c-pragma.c: Likewise.
149
c265f413
SA
1502012-06-04 Steven Bosscher <steven@gcc.gnu.org>
151
152 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
153 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
154 (lang_decl_name): Handle namespace decls.
155
be7a421e
SB
1562012-05-31 Steven Bosscher <steven@gcc.gnu.org>
157
158 * c-ada-spec.c: Do not include output.h.
159 * c-semantics.c: Likewise.
160
65de6659
JM
1612012-05-29 Joseph Myers <joseph@codesourcery.com>
162
163 * c-common.c: Fix typo.
164
ca5f4331
MM
1652012-05-29 Michael Matz <matz@suse.de>
166
167 * c-common.h (c_expand_decl): Remove prototype.
168
4f7f7aca
MLI
1692012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
170
171 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
172 * c-opts.c (c_common_handle_option): Remove code handling
173 warn_missing_braces.
174
4a792f9b
PC
1752012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
176
177 PR c++/25137
178 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
179 -Wmissing_braces.
180
650dc14a
DS
1812012-05-22 Dodji Seketeli <dodji@redhat.com>
182
183 PR c++/53322
184 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
185
9b095bf1
MLI
1862012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
187
188 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
189 * c-opts.c (c_common_handle_option): Do not handle explicitly
190 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
191
0b2c4be5
DS
1922012-05-16 Dodji Seketeli <dodji@redhat.com>
193
194 PR preprocessor/7263
195 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
196 to cpp_classify_number. For diagnostics, use the precise location
197 instead of the global input_location.
198
a1bde5af
PC
1992012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
200
d02924ef 201 PR c++/11856
a1bde5af
PC
202 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
203
d1ede5f4
BS
2042012-05-14 Bernd Schmidt <bernds@codesourcery.com>
205
a1bde5af 206 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 207
f2bc201f
MLI
2082012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
209
210 PR 53063
211 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
212 Wreorder): Use LangEnabledBy.
213 * c-opts.c (c_common_handle_option): Do not enable them
214 explicitly. Call lang-specific generated functions.
215 (c_common_post_options): Do not set them here.
216
95744782
MLI
2172012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
218
219 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
220 Wmissing-field-initializers,Wmissing-parameter-type,
221 Wold-style-declaration,Woverride-init): Use EnabledBy.
222 * c-opts.c (c_common_post_options): Do not set here explicitly.
223
7d5a5747
MLI
2242012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
225
226 PR 53063
227 * c-opts.c (c_common_handle_option): Use handle_generated_option
228 to enable sub-options.
229
5a3c9cf2
PC
2302012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
231
232 PR c++/53158
233 * c-common.c (warnings_for_convert_and_check): Use warning_at.
234
3ac8781c
RG
2352012-05-10 Richard Guenther <rguenther@suse.de>
236
237 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
238 adjust commentary about TYPE_IS_SIZETYPE types.
239
1e537948
MLI
2402012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
241
242 PR c++/53261
243 * c-common.c (warn_logical_operator): Check that argument of
244 integer_zerop is not NULL.
245
f2c4a785
MLI
2462012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
247
248 PR c/43772
249 * c-common.c (warn_logical_operator): Do not warn if either side
250 is already true or false.
251
50f305ca
MLI
2522012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
253
254 PR c/51712
255 * c-common.c (expr_original_type): New.
256 (shorten_compare): Do not warn for enumeration types.
257
0c3641b0
MLI
2582012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
259
260 * c.opt (fpermissive): Add Var(flag_permissive).
261
7edaa4d2
MG
2622012-04-30 Marc Glisse <marc.glisse@inria.fr>
263
264 PR c++/51033
265 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
266 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
267
b9c8da34
DS
2682012-04-30 Dodji Seketeli <dodji@redhat.com>
269
270 Add -Wvarargs option
271 * c.opt (Wvarargs): Define new option.
272
e6c69da0
MLI
2732012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
274
275 * c-common.c (check_function_arguments): Replace
276 Wmissing-format-attribute with Wsuggest-attribute=format.
277
90137d8f
MLI
2782012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
279
280 * c.opt (Wsuggest-attribute=format): New. Alias of
281 Wmissing-format-attribute.
282 * c-format.c (decode_format_type): Replace
283 Wmissing-format-attribute with Wsuggest-attribute=format.
284 (check_function_format): Likewise.
285
9faeb493 2862012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
287
288 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
289 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
290 * c.opt: Add Wliteral-suffix.
291
c1771a20
MLI
2922012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
293
294 PR c/44774
295 * c.opt (Wpedantic): New.
296 (pedantic): Alias Wpedantic.
297 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
298 (c_common_post_options): Likewise.
299 (sanitize_cpp_opts): Likewise.
300 * c-lex.c (interpret_float): Likewise.
301 * c-format.c (check_format_types): Likewise.
302 * c-common.c (pointer_int_sum): Likewise.
303 (c_sizeof_or_alignof_type): Likewise.
304 (c_add_case_label): Likewise.
305 (c_do_switch_warnings): Likewise.
306 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
307
04b391c1
JM
3082012-04-15 Jason Merrill <jason@redhat.com>
309
310 PR c++/52818
311 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
312 (C_STD_NAME): Distinguish between C++98 and C++11.
313
ac868f29
EB
3142012-04-11 Eric Botcazou <ebotcazou@adacore.com>
315
316 PR target/52624
317 * c-common.h (uint16_type_node): Rename into...
318 (c_uint16_type_node): ...this.
319 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
320 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
321
fd4116f4
MLI
3222012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
323
324 * c-common.c (warn_if_unused_value): Move definition to here.
325 * c-common.h (warn_if_unused_value): Move declaration to here.
326
573ac65e
WB
3272012-03-23 William Bader <williambader@hotmail.com>
328
329 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
330
552b8185
JM
3312012-03-20 Jason Merrill <jason@redhat.com>
332
333 * c-common.h (enum cxx_dialect): Add cxx1y.
334 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
335 test.
336 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
337 * c-opts.c (c_common_post_options): Likewise.
338 (set_std_cxx1y): New.
339 (c_common_handle_option): Call it.
340 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
341
04398fa8
PC
3422012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
343
344 PR c++/14710
345 * c.opt ([Wuseless-cast]): Add.
346
d2a12ae7
RG
3472012-03-16 Richard Guenther <rguenther@suse.de>
348
349 * c-pretty-print.c (pp_c_initializer_list): Adjust.
350
a12bf402
MLI
3512012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
352
353 PR c++/44783
354 * c.opt (ftemplate-backtrace-limit) Add.
355
5c30094f
RO
3562012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
357
358 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
359 handling.
360 * c-pragma.c (handle_pragma_extern_prefix): Remove.
361 (init_pragma): Don't register extern_prefix.
362
21fa2faf
RG
3632012-03-12 Richard Guenther <rguenther@suse.de>
364
365 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
366 (builtin_type_for_size): Likewise.
367
e3793c6f
JJ
3682012-02-13 Jakub Jelinek <jakub@redhat.com>
369
370 PR c++/52215
371 * c-common.c (sync_resolve_params): Don't decide whether to convert
372 or not based on TYPE_SIZE comparison, convert whenever arg_type
373 is unsigned INTEGER_TYPE.
374
93286335
PC
3752012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
376
377 PR c/52118
378 * c.opt ([Wunused-local-typedefs]): Fix description.
379
7a421706
MS
3802012-01-24 Mike Stump <mikestump@comcast.net>
381
382 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
383 exactly.
384
ba9b1f11
RG
3852012-01-18 Richard Guenther <rguenther@suse.de>
386
387 * c-opts.c (c_common_post_options): Reset LTO flags if
388 we are about to generate a PCH.
389
465406be
PC
3902012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
391
392 PR c++/51777
393 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
394 use pp_unsigned_wide_integer.
395
aee15221
RG
3962012-01-10 Richard Guenther <rguenther@suse.de>
397
398 PR middle-end/51806
399 * c-opts.c (c_common_handle_option): Move -Werror handling
400 to language independent code.
401
5720c0dc
RG
4022012-01-05 Richard Guenther <rguenther@suse.de>
403
404 PR middle-end/51764
405 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
406 from common.opt.
407
73ac190a
PC
4082011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
409
410 PR c++/51316
411 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
412 of array types with an unknown bound.
413
48b0b196
JM
4142011-12-20 Joseph Myers <joseph@codesourcery.com>
415
416 * c-common.c (flag_isoc99): Update comment to refer to C11.
417 (flag_isoc1x): Change to flag_isoc11.
418 * c-common.h (flag_isoc99): Update comment to refer to C11.
419 (flag_isoc1x): Change to flag_isoc11.
420 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
421 C11.
422 * c-opts.c (set_std_c1x): Change to set_std_c11.
423 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
424 Call set_std_c11.
425 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
426 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
427 * c.opt (std=c1x): Change to std=c11. Document as non-draft
428 standard.
429 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
430 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
431 (std=gnu1x): Make alias of std=gnu11.
432
d58d6eb5
JM
4332011-12-19 Jason Merrill <jason@redhat.com>
434
435 PR c++/51228
436 * c-common.c (handle_transparent_union_attribute): Check the first
437 field if the type is complete.
438
b3908fcc
JW
4392011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
440
441 PR libstdc++/51365
442 * c-common.c (RID_IS_FINAL): Add.
443 * c-common.h (RID_IS_FINAL): Add.
444
fea3ca91
IS
4452011-11-30 Iain Sandoe <iains@gcc.gnu.org>
446
447 * c.opt (fgnu-runtime): Provide full description.
448 (fnext-runtime): Likewise.
449 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
450
62bad7cd
AM
4512011-11-28 Andrew MacLeod <amacleod@redhat.com>
452
453 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
454 predefines in one place. Add LOCK_FREE predefines.
455 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
456 new func.
457
c466c4ff
AM
4582011-11-24 Andrew MacLeod <amacleod@redhat.com>
459
460 PR c/51256
9faeb493 461 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 462 conditions
9faeb493
UB
463 (resolve_overloaded_atomic_exchange,
464 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
465 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
466 error_mark_node for error conditions.
9faeb493 467
a5952633
RG
4682011-11-08 Richard Guenther <rguenther@suse.de>
469
470 PR middle-end/51010
471 c-family/
472
0a35513e
AH
4732011-11-07 Richard Henderson <rth@redhat.com>
474 Aldy Hernandez <aldyh@redhat.com>
475 Torvald Riegel <triegel@redhat.com>
476
477 Merged from transactional-memory.
478
479 * c-common.c (handle_tm_wrap_attribute,
480 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
481 (struct c_common_reswords): Added __transaction* keywords.
482 (struct c_common_attribute_table): Added transaction* and tm_regparm
483 attributes.
484 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
485 masks.
486 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
487 find_tm_attribute): Declare.
488
6d87092d
JM
4892011-11-07 Jason Merrill <jason@redhat.com>
490
491 PR c++/35688
492 * c-common.c, c-common.h: Revert yesterday's changes.
493
8e7860a1
JM
4942011-11-06 Jason Merrill <jason@redhat.com>
495
496 PR c++/35688
497 * c-common.c (decl_has_visibility_attr): Split out from...
498 (c_determine_visibility): ...here.
499 * c-common.h: Declare it.
500
d19fa6b5
JM
5012011-11-06 Joseph Myers <joseph@codesourcery.com>
502
503 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
504 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
505 type.
506 (check_user_alignment): New. Split out of
507 handle_aligned_attribute. Disallow integer constants with
508 noninteger types. Conditionally allow zero.
509 (handle_aligned_attribute): Use check_user_alignment.
510 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
511
86951993
AM
5122011-11-06 Andrew MacLeod <amacleod@redhat.com>
513 Richard Henderson <rth@redhat.com>
514
515 Merged from cxx-mem-model.
516
517 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 518 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
519 parameters that are the same type size.
520 (get_atomic_generic_size): New. Find size of generic
521 atomic function parameters and do typechecking.
522 (add_atomic_size_parameter): New. Insert size into parameter list.
523 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
524 either __atomic_exchange_n or external library call.
9faeb493 525 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 526 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 527 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
528 __atomic_load_n or an external library call.
529 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
530 __atomic_store_n or an external library call.
531 (resolve_overloaded_builtin): Handle new __atomic builtins.
532
cf9e9959
EB
5332011-11-04 Eric Botcazou <ebotcazou@adacore.com>
534
535 PR c++/50608
536 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
537 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
538 <INDIRECT_REF>: Return the argument.
539 <ARRAY_REF>: Remove special code for negative offset.
540 Call fold_build_pointer_plus instead of size_binop.
541 (fold_offsetof): Remove STOP_REF argument and adjust.
542 * c-common.h (fold_offsetof_1): Declare.
543 (fold_offsetof): Remove STOP_REF argument.
544
25339f10
JM
5452011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
546
547 PR c++/50810
548 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
549 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
550 Wnarrowing for C++0x and C++98.
551 * c.opt ([Wnarrowing]): Update.
552
89401152
PC
5532011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
554
555 PR c++/44277
556 * c.opt: Add Wzero-as-null-pointer-constant.
557
97e3ad20
JM
5582011-10-31 Jason Merrill <jason@redhat.com>
559
15694fdd
JM
560 * c.opt (-fdeduce-init-list): Off by default.
561
97e3ad20
JM
562 PR c++/50920
563 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
564 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
565 and -Wc++11-compat.
566 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
567
fb9120e3
RAV
5682011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
569
570 PR c++/30066
571 * c.opt (fvisibility-inlines-hidden): Description change.
572
3ce4f9e4
ESR
5732011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
574
575 Implement C++11 user-defined literals.
576 * c-common.c (build_userdef_literal): New.
577 * c-common.def: New tree code.
578 * c-common.h (tree_userdef_literal): New tree struct and accessors.
579 * c-lex.c (interpret_float): Add suffix parm.
580 (c_lex_with_flags): Build literal tokens.
581
5f53c243
PC
5822011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
583
584 PR c++/50841
585 Revert:
586 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
587
588 PR c++/50810
589 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
590 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
591 Wnarrowing for C++0x and C++98.
592 * c.opt ([Wnarrowing]): Update.
593
263734e1
PC
5942011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
595
596 PR c++/50810
597 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
598 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
599 Wnarrowing for C++0x and C++98.
600 * c.opt ([Wnarrowing]): Update.
601
d2e312d7
PC
6022011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
603
604 PR c++/45385
605 * c-common.c (conversion_warning): Remove code looking for
606 artificial operands.
607
d17687f6
DS
6082011-10-18 Dodji Seketeli <dodji@redhat.com>
609
610 PR bootstrap/50760
611 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 612 !NO_IMPLICIT_EXTERN_C.
d17687f6 613
fc8396e9
PC
6142011-10-17 Michael Spertus <mike_spertus@symantec.com>
615
616 * c-common.c (c_common_reswords): Add __bases,
617 __direct_bases.
618 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
619
6202011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
621
622 PR c++/50757
623 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
624
847e697a
TT
6252011-10-15 Tom Tromey <tromey@redhat.com>
626 Dodji Seketeli <dodji@redhat.com>
627
628 * c.opt (fdebug-cpp): New option.
629 * c-opts.c (c_common_handle_option): Handle the option.
630 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
631 output stream in parameter. Factorized from ...
632 (maybe_print_line): ... this. Dump location debug information when
633 -fdebug-cpp is in effect.
634 (print_line_1): New static function. Takes an output stream in
635 parameter. Factorized from ...
636 (print_line): ... here. Dump location information when -fdebug-cpp
637 is in effect.
638 (scan_translation_unit): Dump location information when
639 -fdebug-cpp is in effect.
640
92582b75
TT
6412011-10-15 Tom Tromey <tromey@redhat.com>
642 Dodji Seketeli <dodji@redhat.com>
643
644 * c.opt (ftrack-macro-expansion): New option. Handle it with and
645 without argument.
646 * c-opts.c (c_common_handle_option)<case
647 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
648 cases. Handle -ftrack-macro-expansion with and without argument.
649
46427374
TT
6502011-10-15 Tom Tromey <tromey@redhat.com>
651 Dodji Seketeli <dodji@redhat.com>
652
653 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
654 (print_line, cb_define, do_line_change): Adjust to avoid touching
655 the internals of struct line_map. Use the public API instead.
656 * c-pch.c (c_common_read_pch): Likewise.
657 * c-lex.c (fe_file_change): Likewise.
658
fc8396e9
PC
6592011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
660
661 PR c++/17212
662 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
663
6642011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
665
666 PR c++/33067
667 * c-pretty-print.c (pp_c_floating_constant): Output
668 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
669
e79983f4
MM
6702011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
671
672 * c-common.c (def_builtin_1): Delete old interface with two
673 parallel arrays to hold standard builtin declarations, and replace
674 it with a function based interface that can support creating
675 builtins on the fly in the future. Change all uses, and poison
676 the old names. Make sure 0 is not a legitimate builtin index.
677 * c-omp.c (c_finish_omp_barrier): Ditto.
678 (c_finish_omp_taskwait): Ditto.
679 (c_finish_omp_flush): Ditto.
680
6637388f
TG
6812011-10-11 Tristan Gingold <gingold@adacore.com>
682
683 * c.opt: (fallow-parameterless-variadic-functions): New.
684
3797cb21
DS
6852011-09-08 Dodji Seketeli <dodji@redhat.com>
686
687 PR c++/33255 - Support -Wunused-local-typedefs warning
688 * c-common.h (struct c_language_function::local_typedefs): New
689 field.
9faeb493
UB
690 (record_locally_defined_typedef, maybe_record_typedef_use)
691 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 692 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
693 (maybe_record_typedef_use)
694 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
695 * c.opt: Declare new -Wunused-local-typedefs flag.
696
693ddb1b
EB
6972011-09-06 Eric Botcazou <ebotcazou@adacore.com>
698
699 PR middle-end/50266
700 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
701 computations.
702
830c740f
RG
7032011-09-05 Richard Guenther <rguenther@suse.de>
704
705 * c-common.c (complete_array_type): Use ssize_int (-1) instead
706 of integer_minus_one_node for empty array upper bounds.
707
892a371f
DS
7082011-08-28 Dodji Seketeli <dodji@redhat.com>
709
710 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
711 it's the first time it's being called on this main TU.
712
0e3fdb48
RB
7132011-08-24 Richard Guenther <rguenther@suse.de>
714
715 PR c/49396
716 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
717
7182011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
719
720 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
721 defined in cpp_init_builtins and c_cpp_builtins.
722
d4a83c10
JM
7232011-08-19 Joseph Myers <joseph@codesourcery.com>
724
725 * c-common.c (c_common_reswords): Add __builtin_complex.
726 * c-common.h (RID_BUILTIN_COMPLEX): New.
727
bbceee64
JM
7282011-08-18 Joseph Myers <joseph@codesourcery.com>
729
730 * c-common.c (c_common_reswords): Add _Noreturn.
731 (keyword_is_function_specifier): Handle RID_NORETURN.
732 * c-common.h (RID_NORETURN): New.
733
0e3a99ae
AS
7342011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
735
736 * c-common.c (unsafe_conversion_p): New function. Check if it is
737 unsafe to convert an expression to the type.
738 (conversion_warning): Adjust, use unsafe_conversion_p.
739 * c-common.h (unsafe_conversion_p): New function declaration.
740
20906c66
JJ
7412011-08-02 Jakub Jelinek <jakub@redhat.com>
742
743 * c-common.h (c_finish_omp_atomic): Adjust prototype.
744 (c_finish_omp_taskyield): New prototype.
745 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
746 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
747 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
748 or RHS1 have side-effects, evaluate those too in the right spot,
749 if it is a decl and LHS is also a decl, error out if they
750 aren't the same.
751 (c_finish_omp_taskyield): New function.
752 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
753 * c-pragma.c (omp_pragmas): Add taskyield.
754 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
755 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
756 PRAGMA_OMP_CLAUSE_MERGEABLE.
757
770e5a2e
DS
7582011-07-25 Dodji Seketeli <dodji@redhat.com>
759
760 * c-common.h (set_underlying_type): Remove parm name from
761 declaration.
762
1baae426
RG
7632011-07-25 Romain Geissler <romain.geissler@gmail.com>
764
765 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 766
fcb21722
JM
7672011-07-22 Jason Merrill <jason@redhat.com>
768
76f86d00
JM
769 PR c++/49793
770 * c.opt (Wnarrowing): New.
771
3a636414
JM
772 PR c++/30112
773 * c-common.h: Declare c_linkage_bindings.
774 * c-pragma.c (handle_pragma_redefine_extname): Use it.
775
fcb21722
JM
776 PR c++/49813
777 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
778 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
779 as flag_isoc99 for 'restrict'.
780 (pp_c_specifier_qualifier_list): Likewise for _Complex.
781
02614448
ILT
7822011-07-21 Ian Lance Taylor <iant@google.com>
783
784 PR middle-end/49705
785 * c-common.c (c_disable_warnings): New static function.
786 (c_enable_warnings): New static function.
787 (c_fully_fold_internal): Change local unused_p to bool. Call
788 c_disable_warnings and c_enable_warnings rather than change
789 c_inhibit_evaluation_warnings.
790
34429675
JM
7912011-07-20 Jason Merrill <jason@redhat.com>
792
793 PR c++/6709 (DR 743)
794 PR c++/42603 (DR 950)
795 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
796 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
797 (CPP_DECLTYPE): New.
798 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
799
5d49b6a7
RG
8002011-07-19 Richard Guenther <rguenther@suse.de>
801
802 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
803 * c-omp.c (c_finish_omp_for): Likewise.
804
e84a58ff
EB
8052011-07-12 Eric Botcazou <ebotcazou@adacore.com>
806
807 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
808 body on the next line.
809
329af3c7
JM
8102011-07-08 Jason Merrill <jason@redhat.com>
811
4063e61b
JM
812 PR c++/45437
813 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
814
329af3c7
JM
815 PR c++/49673
816 * c-common.c (c_apply_type_quals_to_decl): Don't check
817 TYPE_NEEDS_CONSTRUCTING.
818
1a072294
RG
8192011-07-06 Richard Guenther <rguenther@suse.de>
820
821 * c-common.c (c_common_nodes_and_builtins):
822 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
823
fce5dddd
RG
8242011-07-05 Richard Guenther <rguenther@suse.de>
825
826 * c-common.c (c_common_nodes_and_builtins): Build all common
827 tree nodes first.
828
45d439ac
JJ
8292011-06-27 Jakub Jelinek <jakub@redhat.com>
830
56300785
JJ
831 * c-common.h (c_tree_chain_next): New static inline function.
832
45d439ac
JJ
833 * c-common.c (check_builtin_function_arguments): Handle
834 BUILT_IN_ASSUME_ALIGNED.
835
e0a8ecf2
AM
8362011-06-21 Andrew MacLeod <amacleod@redhat.com>
837
838 * c-common.c: Add sync_ or SYNC__ to builtin names.
839 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
840
8412011-06-20 Pierre Vittet <piervit@pvittet.com>
842
843 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
844 handler.
845 (gen_pragma_handler): New union.
846 (internal_pragma_handler): New type.
847 (c_register_pragma_with_data)
848 (c_register_pragma_with_expansion_and_data): New functions.
849
850 * c-pragma.c (registered_pragmas, c_register_pragma_1)
851 (c_register_pragma, c_register_pragma_with_expansion)
852 (c_invoke_pragma_handler): Changed to work with
853 internal_pragma_handler.
854 (c_register_pragma_with_data)
855 (c_register_pragma_with_expansion_and_data): New functions.
856
677f3fa8
JM
8572011-06-14 Joseph Myers <joseph@codesourcery.com>
858
859 * c-common.c: Include common/common-target.h.
860 (handle_section_attribute): Use
861 targetm_common.have_named_sections.
862 * c-cppbuiltin.c: Include common/common-target.h.
863 (c_cpp_builtins): Use targetm_common.except_unwind_info.
864
d7fc8c14
RG
8652011-06-10 Richard Guenther <rguenther@suse.de>
866
867 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
868 to print a IDENTIFIER_NODE.
869
10e48e39
RO
8702011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
871 Joseph Myers <joseph@codesourcery.com>
872
873 * c.opt (fbuilding-libgcc): New option.
874 * c-cppbuiltin.c (c_cpp_builtins): Define
875 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
876
6976ae51
JM
8772011-06-07 Jason Merrill <jason@redhat.com>
878
3ff60975
JM
879 * c-common.c (max_tinst_depth): Lower default to 900.
880
6976ae51
JM
881 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
882
009db074
RG
8832011-06-07 Richard Guenther <rguenther@suse.de>
884
885 * c-common.c (c_common_nodes_and_builtins): Do not set
886 size_type_node or call set_sizetype.
887
b4592b92
DS
8882011-06-07 Dodji Seketeli <dodji@redhat.com>
889
890 PR debug/49130
891 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 892 type when using pointer comparison to compare types.
b4592b92 893
014ab419
JW
8942011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
895
896 * c.opt: Add -Wdelete-non-virtual-dtor.
897 * c-opts.c (c_common_handle_option): Include it in -Wall.
898
4f60111f
NF
8992011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
900
901 PR bootstrap/49190
902
903 Revert:
904 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
905
906 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
907 not tree_common.
908
4cc4f2f4
JJ
9092011-05-27 Jakub Jelinek <jakub@redhat.com>
910
911 PR c++/49165
912 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
913 C++ don't call c_common_truthvalue_conversion on void type arms.
914
38e01f9e
NF
9152011-05-27 Nathan Froyd <froydnj@codesourcery.com>
916
917 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
918 (stmt_list_stack): Define.
919 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
920 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
921
92e948a8
NF
9222011-05-26 Nathan Froyd <froydnj@codesourcery.com>
923
924 * c-common.c (warning_candidate_p): Check for BLOCKs.
925
a2fc3e63
NF
9262011-05-26 Nathan Froyd <froydnj@codesourcery.com>
927
928 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
929 not tree_common.
930
0957c029
JJ
9312011-05-25 Jakub Jelinek <jakub@redhat.com>
932
933 * c-common.c (def_fn_type): Remove extra va_end.
934
828fb3ba
JM
9352011-05-23 Jason Merrill <jason@redhat.com>
936
937 PR c++/48106
938 * c-common.c (c_common_get_narrower): New.
939 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
940
dde05067
NF
9412011-05-23 Nathan Froyd <froydnj@codesourcery.com>
942
943 * c-common.h (check_function_arguments): Tweak prototype of
944 check_function_arguments.
945 * c-common.c (check_function_arguments): Likewise. Adjust
946 calls to check_function_nonnull, check_function_format, and
947 check_function_sentinel.
948 (check_function_sentinel): Take a FUNCTION_TYPE rather than
949 separate attributes and typelist arguments. Use
950 FOREACH_FUNCTION_ARGS to iterate over argument types.
951
3c0d13bf
PC
9522011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
953
954 * c-common.c (c_common_reswords): Reorder.
955 * c-common.h (rid): Likewise.
956
8242dd04
NF
9572011-05-10 Nathan Froyd <froydnj@codesourcery.com>
958
959 * c-common.c (def_fn_type): Don't call build_function_type, call
960 build_function_type_array or build_varargs_function_type_array
961 instead.
962 (c_common_nodes_and_builtins): Likewise.
963
3d528853
NF
9642011-05-05 Nathan Froyd <froydnj@codesourcery.com>
965
966 * c-common.c (c_add_case_label): Omit the loc argument to
967 build_case_label.
968 * c-common.h (build_case_label): Remove.
969 * c-semantics.c (build_case_label): Remove.
970
a04a722b
JM
9712011-05-05 Joseph Myers <joseph@codesourcery.com>
972
973 * c-objc.h (objc_start_method_definition): Update prototype.
974 * stub-objc.c (objc_start_method_definition): Add extra parameter.
975
e19a18d4
NF
9762011-05-04 Nathan Froyd <froydnj@codesourcery.com>
977
978 * c-common.c (check_main_parameter_types): Reindent. Don't use
979 TYPE_ARG_TYPES directly.
980 (handle_nonnull_attribute): Likewise.
981 (sync_resolve_params): Likewise.
982 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
983 to check_format_string.
984 (handle_format_attribute): Likewise.
985 (check_format_string): Take a function type to examine instead of
986 a type list. Use a function_arg_iterator to step through argument
987 types.
988
c62c040f
RG
9892011-05-04 Richard Guenther <rguenther@suse.de>
990
991 * c-common.c (fix_string_type): Use size_int for index type bounds.
992 (start_fname_decls): Do not pass NULL to build_int_cst.
993 (c_init_attributes): Likewise.
994 * c-lex.c (c_lex_with_flags): Likewise.
995
c12ff9d8
JM
9962011-04-27 Jason Merrill <jason@redhat.com>
997
998 * c-common.c (make_tree_vector_from_list): New.
999 * c-common.h: Declare it.
1000
304dfbe3
RG
10012011-04-26 Richard Guenther <rguenther@suse.de>
1002
1003 PR preprocessor/48248
1004 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1005 for output size with -P.
1006
3c0d13bf
PC
10072011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1008
1009 * c-common.c (struct c_common_resword): Add __underlying_type.
1010 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1011
04695783
JM
10122011-04-20 Jim Meyering <meyering@redhat.com>
1013
1014 * c-format.c (init_dollar_format_checking): Remove useless
1015 if-before-free.
1016
0dc33c3c
NP
10172011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1018
1019 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 1020 (objc_detect_field_duplicates): New.
0dc33c3c 1021 * stub-objc.c: Likewise.
3c0d13bf 1022
c59633d9
NP
10232011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1024
1025 * stub-objc.c (objc_declare_protocols): Renamed to
1026 objc_declare_protocol.
1027 * c-objc.h: Likewise.
3c0d13bf 1028
32dabdaf
NP
10292011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1030
1031 * stub-objc.c (objc_declare_class): Updated argument name.
1032
81f653d6
NF
10332011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1034
1035 * c-common.h (c_common_init_ts): Declare.
1036 * c-common.c (c_common_init_ts): Define.
1037
eb345401
NP
10382011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1039
1040 * c-objc.h (objc_build_message_expr): Updated prototype.
1041 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 1042
a358e188
MJ
10432011-04-12 Martin Jambor <mjambor@suse.cz>
1044
1045 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1046 of cgraph_node.
1047
e6313a78
RG
10482011-04-11 Richard Guenther <rguenther@suse.de>
1049
1050 * c-common.c (complete_array_type): Build a range type of
1051 proper type.
1052
dcf0c47e
NF
10532011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1054
1055 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1056 (handle_type_generic_attribute): Likewise.
1057
1ee44b26
JM
10582011-04-07 Jason Merrill <jason@redhat.com>
1059
1060 PR c++/48450
1061 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1062 conversion from C++0x scoped enum.
1063
acce4e77
JM
10642011-04-06 Joseph Myers <joseph@codesourcery.com>
1065
1066 * c-target-def.h: New file.
1067 * c-target.def: New file.
1068 * c-target.h: New file.
1069 * c-common.c (targetcm): Don't define here.
1070 * c-common.h (default_handle_c_option): Declare.
1071 * c-format.c: Include c-target.h instead of target.h.
1072 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1073 include tm.h.
1074 (default_handle_c_option): Move from targhooks.c.
1075
e2eefb55
JJ
10762011-03-29 Jakub Jelinek <jakub@redhat.com>
1077
1078 PR preprocessor/48248
1079 * c-ppoutput.c (print): Add src_file field.
1080 (init_pp_output): Initialize it.
1081 (maybe_print_line): Don't optimize by adding up to 8 newlines
1082 if map->to_file and print.src_file are different file.
1083 (print_line): Update print.src_file.
1084
ba78087b
KT
10852011-03-25 Kai Tietz <ktietz@redhat.com>
1086
1087 * c-ada-spec.c (compare_comment): Use filename_cmp
1088 instead of strcmp for filename.
1089
0edf1bb2
JL
10902011-03-25 Jeff Law <law@redhat.com>
1091
1092 * c-family/c-common.c (def_fn_type): Add missing va_end.
1093
c7dc8804
JM
10942011-03-25 Jason Merrill <jason@redhat.com>
1095
1096 * c.opt: Add -std=c++03.
1097
d1d879b1
EB
10982011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1099
1100 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1101
62d784f7
KT
11022011-03-17 Kai Tietz
1103
1104 PR target/12171
5050afdf
KT
1105 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1106 Display allowed attributes for function pointer types.
1107 (pp_c_attributes_display): New function to display
1108 attributes having affects_type_identity flag set to true.
1109 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1110
62d784f7
KT
1111 * c-common.c (c_common_attribute_table):
1112 Add new element.
1113 (c_common_format_attribute_table): Likewise.
1114
82d37118
JM
11152011-03-18 Jason Merrill <jason@redhat.com>
1116
49a000c3
JM
1117 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1118 * c-common.h: Don't declare it here.
1119 * c-common.c: Or define it here.
1120 * c-opts.c (c_common_handle_option): Or set it here.
1121
82d37118
JM
1122 PR c++/35315
1123 * c-common.c (handle_transparent_union_attribute): Don't
1124 make a duplicate type in C++.
1125
17bc631c
JM
11262011-03-15 Jason Merrill <jason@redhat.com>
1127
1128 * c-common.c (max_constexpr_depth): New.
1129 * c-common.h: Declare it.
1130 * c-opts.c (c_common_handle_option): Set it.
1131 * c.opt (fconstexpr-depth): New option.
1132
1b9b91a6
JM
11332011-03-11 Jason Merrill <jason@redhat.com>
1134
f231b5ff
JM
1135 * c-common.c (attribute_takes_identifier_p): Add missing const.
1136
1b9b91a6
JM
1137 PR c++/46803
1138 * c-common.c (attribute_takes_identifier_p): Assume that an
1139 unknown attribute takes an identifier.
1140
a19e4d44
NF
11412011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1142
1143 PR c/47786
1144 * c-common.c (c_type_hash): Call list_length instead of iterating
1145 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1146
982d62f6
JJ
11472011-02-19 Jakub Jelinek <jakub@redhat.com>
1148
1149 PR c/47809
1150 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1151
0a256240
NP
11522011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1153
1154 * c.opt (fobjc-abi-version=) New.
1155 (fobjc-nilcheck): New.
1156
ba9e6dd5
NF
11572011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1158
1159 PR c++/46890
1160 * c-common.h (keyword_is_decl_specifier): Declare.
1161 * c-common.c (keyword_is_decl_specifier): Define.
1162 (keyword_is_function_specifier): New function.
1163
7273813a
JJ
11642011-01-26 Jakub Jelinek <jakub@redhat.com>
1165
1166 PR c/47473
1167 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1168 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1169 REAL_TYPE.
1170
908ef79b
AC
11712011-01-26 Arnaud Charlet <charlet@adacore.com>
1172
1173 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1174
237e9384
JJ
11752011-01-26 Jakub Jelinek <jakub@redhat.com>
1176
1177 PR pch/47430
1178 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1179 after init_c_lex if pch_file is set.
1180
47ea1edf
DK
11812011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1182
d4dba752 1183 PR c++/43601
47ea1edf
DK
1184 * c.opt (-fkeep-inline-dllexport): New switch.
1185
2aa9c6ae
RG
11862011-01-12 Richard Guenther <rguenther@suse.de>
1187
1188 PR middle-end/32511
1189 * c-common.c (handle_weak_attribute): Warn instead of error
1190 on declaring an inline function weak.
1191
7bd11157
TT
11922011-01-05 Tom Tromey <tromey@redhat.com>
1193
1194 * c-common.h (lvalue_error): Update.
1195 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1196 not error.
1197
0e66e494 11982010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 1199
b4f588c4
NP
1200 PR objc/47075
1201 * c-objc.h (objc_finish_message_expr): Added argument to
1202 prototype.
1203
f4da8dce
NF
12042010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1205
1206 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1207 Use prototype_p.
1208
46270f14
NP
12092010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1210
1211 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 1212 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 1213
4816c593
NF
12142010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1215
1216 * c-common.h (readonly_error): Declare.
1217 * c-common.c (readonly_error): Define.
1218
7a6daeb0
NF
12192010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1220
1221 * c-common.h (invalid_indirection_error): Declare.
1222 * c-common.c (invalid_indirection_error): Define.
1223
892f6119
RG
12242010-12-03 Richard Guenther <rguenther@suse.de>
1225
1226 PR c/46745
1227 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1228 (pp_c_unary_expression): Likewise.
1229 (pp_c_expression): Likewise.
1230
6c39e757
NP
12312010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1232
1233 * c-common.h (objc_finish_function): New.
1234 (objc_non_volatilized_type): Removed.
1235 (objc_type_quals_match): Removed.
1236 * stub-objc.c (objc_finish_function): New.
1237 (objc_non_volatilized_type): Removed.
1238 (objc_type_quals_match): Removed.
9faeb493 1239
7c475d11
JM
12402010-11-30 Joseph Myers <joseph@codesourcery.com>
1241
1242 * c-common.h (parse_optimize_options): Declare.
1243 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1244 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1245
71f3e391
JM
12462010-11-29 Joseph Myers <joseph@codesourcery.com>
1247
1248 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1249 GET_ENVIRONMENT.
1250 * c-pch.c (O_BINARY): Don't define here.
1251 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1252
d5fabb58
JM
12532010-11-25 Joseph Myers <joseph@codesourcery.com>
1254
1255 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1256 targetm.except_unwind_info.
1257
299404a1
JM
12582010-11-23 Joseph Myers <joseph@codesourcery.com>
1259
1260 * c-opts.c (c_common_handle_option): Pass location to
1261 set_struct_debug_option.
1262
c98cd5bf
JM
12632010-11-23 Joseph Myers <joseph@codesourcery.com>
1264
1265 * c-common.c (visibility_options): Move from ../opts.c.
1266 * c-common.h (struct visibility_flags, visibility_options):
1267 Declare here.
1268 * c-opts.c (finish_options): Rename to c_finish_options.
1269 (c_common_init): Update call to finish_options.
1270
a9546771
NP
12712010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1272
1273 PR objc/34033
1274 * c-lex.c (lex_string): Check that each string in an Objective-C
1275 string concat sequence starts with either one or zero '@', and
1276 that there are no spurious '@' signs at the end.
1277
24a57808
JM
12782010-11-20 Joseph Myers <joseph@codesourcery.com>
1279
1280 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1281 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1282 HANDLE_PRAGMA_VISIBILITY.
1283 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1284 HANDLE_PRAGMA_VISIBILITY): Don't define.
1285 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1286
a9aa2c3a
NF
12872010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1288
1289 PR c++/16189
1290 PR c++/36888
1291 PR c++/45331
1292 * c-common.h (keyword_begins_type_specifier): Declare.
1293 (keyword_is_storage_class_specifier): Declare.
1294 (keyword_is_type_qualifier): Declare.
1295 * c-common.c (keyword_begins_type_specifier): New function.
1296 (keyword_is_storage_class_specifier): New function.
1297 (keyword_is_type_qualifier): Declare.
1298
5386338c
JM
12992010-11-19 Joseph Myers <joseph@codesourcery.com>
1300
1301 PR c/46547
1302 * c-common.c (in_late_binary_op): Define.
1303 (c_common_truthvalue_conversion): Check in_late_binary_op before
1304 calling c_save_expr.
1305 * c-common.h (in_late_binary_op): Declare.
1306
69ccdddb
JM
13072010-11-19 Joseph Myers <joseph@codesourcery.com>
1308
1309 * c-opts.c (c_common_handle_option): Update calls to
1310 set_struct_debug_option.
1311
6b192a09
NP
13122010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1313
1314 * c-common.h (objc_declare_protocols): Added additional argument.
1315 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 1316
fb52b50a
NF
13172010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1318
1319 PR c/33193
1320 * c-common.h (build_real_imag_expr): Declare.
1321 * c-semantics.c (build_real_imag_expr): Define.
1322
b37421c6
JM
13232010-11-17 Joseph Myers <joseph@codesourcery.com>
1324
1325 * c-opts.c (c_common_parse_file): Take no arguments.
1326 * c-common.h (c_common_parse_file): Update prototype.
1327
07078664
JJ
13282010-11-16 Jakub Jelinek <jakub@redhat.com>
1329
1330 PR c++/46401
1331 * c-common.c (warning_candidate_p): Don't track non-const calls
1332 or STRING_CSTs.
1333
c6a13190
ILT
13342010-11-15 Ian Lance Taylor <iant@google.com>
1335
1336 * c-lex.c (init_c_lex): Set macro debug callbacks if
1337 flag_dump_go_spec is set.
1338
925e8657
NP
13392010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1340
1341 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1342 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1343
bb0a9581
NF
13442010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1345
1346 PR preprocessor/45038
1347 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1348 dialects.
1349
c5fa0890
JM
13502010-11-12 Joseph Myers <joseph@codesourcery.com>
1351
1352 * c-common.h (c_family_lang_mask): Declare.
1353 * c-opts.c (c_family_lang_mask): Make extern.
1354 * c-pragma.c (handle_pragma_diagnostic): Use
1355 control_warning_option.
1356
a4d8c676
JM
13572010-11-12 Joseph Myers <joseph@codesourcery.com>
1358
1359 * c-common.c (parse_optimize_options): Update call to
1360 decode_options.
1361 * c-common.h (c_common_handle_option): Update prototype.
1362 * c-opts.c (c_common_handle_option): Take location_t parameter and
1363 pass it to other functions.
1364
f954bd2c
JM
13652010-11-11 Joseph Myers <joseph@codesourcery.com>
1366
1367 * c-opts.c (warning_as_error_callback): Remove.
1368 (c_common_initialize_diagnostics): Don't call
1369 register_warning_as_error_callback.
1370 (c_common_handle_option): Handle -Werror=normalized= here.
1371
d8a07487
JM
13722010-11-10 Joseph Myers <joseph@codesourcery.com>
1373
1374 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1375 in diagnostic.
1376 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1377 letter.
1378 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1379 Remove trailing '.' from diagnostics.
1380 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1381
d5478783
JM
13822010-11-10 Joseph Myers <joseph@codesourcery.com>
1383
1384 * c-common.c (parse_optimize_options): Pass global_dc to
1385 decode_options.
1386 * c-opts.c (c_common_handle_option): Pass &global_options to
1387 set_Wstrict_aliasing.
1388 * c.opt (v): Don't mark Common or document here.
1389
91ebb981
IS
13902010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1391
1392 PR target/44981
1393 * c-format.c (format_type): New type gcc_objc_string_format_type.
1394 (valid_stringptr_type_p): New.
1395 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 1396 (check_format_string): Pass expected type, use
91ebb981
IS
1397 valid_stringptr_type_p (), check that the format string types are
1398 consistent with the format specification.
1399 (decode_format_attr): Warn if NSString is used outside objective-c.
1400 (format_types_orig): Add NSString.
1401 (format_name): New.
1402 (format_flags): New.
1403 (check_format_arg): Handle format strings requiring an external parser.
1404 first_target_format_type: New variable.
1405 (handle_format_attribute): Set up first_target_format_type, pass the
1406 expected format arg string type to check_format_string().
1407 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1408 * stub-objc.c (objc_string_ref_type_p): New.
1409 (objc_check_format_arg): New.
1410
bede2adc
NP
14112010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1412
9faeb493 1413 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
1414 * c-common.h (objc_build_class_component_ref): New.
1415 * stub-objc.c (objc_build_class_component_ref): New.
1416
9a179d01
NP
14172010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1418
1419 * c.opt (Wproperty-assign-default): New option.
1420
22d8d616
NP
14212010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1422
1423 Implemented -fobjc-std=objc1 flag.
1424 * c.opt (fobjc-std=objc1): New option.
1425
2debdb4f
NP
14262010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1427
1428 Implemented format and noreturn attributes for Objective-C methods.
1429 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1430 attribute for Objective-C methods.
1431
ec52b111
JM
14322010-10-31 Jason Merrill <jason@redhat.com>
1433
1434 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1435 EXPR_LOC_OR_HERE.
1436
46a88c12
NP
14372010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1438
1439 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1440 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1441 (objc_add_property_declaration): Removed arguments for copies and
1442 ivar.
1443 (objc_build_getter_call): Renamed to
1444 objc_maybe_build_component_ref.
1445 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1446 (objc_is_property_ref): New.
1447 * c-common.c (c_common_reswords): Removed copies and ivar.
1448 * stub-objc.c (objc_add_property_declaration): Removed arguments
1449 for copies and ivar.
1450 (objc_build_getter_call): Renamed to
1451 objc_maybe_build_component_ref.
1452 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1453 (objc_is_property_ref): New.
9faeb493 1454
1e4bf85b
AC
14552010-10-29 Arnaud Charlet <charlet@adacore.com>
1456 Matthew Gingell <gingell@adacore.com>
1457
1458 * c-ada-spec.c (separate_class_package): New function.
1459 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1460 name of their enclosing package.
1461 (print_ada_declaration): Use separate_class_package.
1462
81f0bab2
JM
14632010-10-27 Jason Merrill <jason@redhat.com>
1464
2b08f2c5
JM
1465 * c-common.c (c_common_reswords): Add __is_literal_type.
1466 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1467
81f0bab2
JM
1468 * c-common.c (check_case_value): Remove special C++ code.
1469
200290f2
NP
14702010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1471
1472 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1473 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1474 and RID_LAST_PATTR.
1475 (objc_add_property_declaration): Added additional arguments.
1476 (objc_property_attribute_kind): Removed.
1477 (objc_set_property_attr): Removed.
1478 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1479 copy and nonatomic.
1480 * stub-objc.c (objc_add_property_declaration): Added additional
1481 arguments.
1482 (objc_set_property_attr): Removed.
9faeb493 1483
f614132b
NP
14842010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1485
1486 * c-common.h (objc_add_property_variable): Renamed to
1487 objc_add_property_declaration. Added location argument.
1488 * stub-objc.c (objc_add_property_variable): Same change.
1489
b8a18805
NP
14902010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1491
1492 * c-common.h (objc_maybe_printable_name): New.
1493 * stub-objc.c (objc_maybe_printable_name): New.
1494
30cd1c5d
AS
14952010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1496 Andrew Pinski <pinskia@gmail.com>
1497
1498 * c-common.h (c_common_mark_addressable_vec): Declare.
1499 * c-common.c (c_common_mark_addressable_vec): New function.
1500
249a82c4
NP
15012010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1502
1503 * c-common.h (objc_set_method_type): Removed.
1504 (objc_add_method_declaration): Added boolean argument.
1505 (objc_start_method_definition): Same change.
1506 (objc_build_method_signature): Same change.
1507 * stub-objc.c (objc_set_method_type): Removed.
1508 (objc_add_method_declaration): Added boolean argument.
1509 (objc_start_method_definition): Same change.
1510 (objc_build_method_signature): Same change.
1511
977e30bc
NP
15122010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1513
1514 * c-common.h (finish_file): Removed.
1515 (objc_write_global_declarations): New.
1516 * c-opts.c (c_common_parse_file): Do not call finish_file.
1517 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 1518
da57d1b9
NP
15192010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1520
1521 Implemented parsing @synthesize and @dynamic for
1522 Objective-C/Objective-C++.
1523 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1524 (objc_add_synthesize_declaration): New.
1525 (objc_add_dynamic_declaration): New.
1526 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1527 * stub-objc.c (objc_add_synthesize_declaration): New.
1528 (objc_add_dynamic_declaration): New.
9faeb493 1529
0069111f
MM
15302010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1531
1532 PR target/46041
1533 * c-cppbuiltin.c (mode_has_fma): Move function here from
1534 builtins.c. Don't use the fma optab, instead just use the
1535 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1536 using -save-temps.
1537
e426b47b
NP
15382010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1539
1540 Merge from 'apple/trunk' branch on FSF servers.
0069111f 1541
e426b47b
NP
1542 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1543
9faeb493 1544 Radar 4330422
e426b47b
NP
1545 * c-common.h (objc_non_volatilized_type): New declaration
1546 * stub-objc.c (objc_non_volatilized_type): New stub.
1547
90fbfdc3
NP
15482010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1549
e426b47b 1550 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
1551
1552 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1553
9faeb493 1554 Radar 4133425
90fbfdc3 1555 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 1556 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 1557
c37d8c30
IS
15582010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1559
1560 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1561 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1562 (objc_ivar_visibility_kind): New enum.
1563 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 1564 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
1565 visibility enum.
1566
1b1562a5
MM
15672010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1568
1569 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1570 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1571 has the appropriate fma builtins.
1572 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1573
668ea4b1
IS
15742010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1575
1b1562a5 1576 merge from FSF apple 'trunk' branch.
668ea4b1 1577 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 1578
668ea4b1
IS
1579 Radars 4436866, 4505126, 4506903, 4517826
1580 * c-common.c (c_common_resword): Define @property and its attributes.
1581 * c-common.h: Define property attribute enum entries.
1582 (OBJC_IS_PATTR_KEYWORD): New.
1583 (objc_property_attribute_kind): New enum.
1584 Declare objc_set_property_attr (), objc_add_property_variable (),
1585 objc_build_getter_call () and objc_build_setter_call ().
1586 * stub-objc.c (objc_set_property_attr): New stub.
1587 (objc_add_property_variable): Likewise.
1588 (objc_build_getter_call): Likewise.
1589 (objc_build_setter_call) Likewise.
1b1562a5 1590
a1178b30
IS
15912010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1592
1b1562a5 1593 merge from FSF apple 'trunk' branch.
a1178b30
IS
1594 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1595
1596 Radar 3803157 (method attributes)
1597 * c-common.c (handle_deprecated_attribute): Recognize
1598 objc methods as valid declarations.
1599 * c-common.h: Declare objc_method_decl ().
1b1562a5 1600 * stub-objc.c (objc_method_decl): New stub.
a1178b30 1601
a75bfaa6
JM
16022010-10-08 Joseph Myers <joseph@codesourcery.com>
1603
1604 * c-common.c (parse_optimize_options): Call
1605 decode_cmdline_options_to_array_default_mask before
1606 decode_options. Update arguments to decode_options.
1607 * c-common.h (c_common_init_options_struct): Declare.
1608 * c-opts.c (c_common_init_options_struct): New. Split out from
1609 c_common_init_options.
1610
f05b9d93
NP
16112010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1612
1613 Implemented fast enumeration for Objective-C.
1614 * c-common.h (objc_finish_foreach_loop): New.
1615 * stub-objc.c (objc_finish_foreach_loop): New.
1616
1ebe4b4f
JM
16172010-10-05 Joseph Myers <joseph@codesourcery.com>
1618
1619 * c-common.h (struct diagnostic_context): Don't declare here.
1620 (c_common_initialize_diagnostics): Declare using
1621 diagnostic_context typedef.
1622 * c-opts.c (c_common_handle_option): Pass global_dc to
1623 handle_generated_option.
1624
d4d24ba4
JM
16252010-10-04 Joseph Myers <joseph@codesourcery.com>
1626
1627 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1628 handle_generated_option.
1629
478a1c5b
ILT
16302010-10-03 Ian Lance Taylor <iant@google.com>
1631
1632 * c.opt (-fplan9-extensions): New option.
1633
82a1c2fe
FXC
16342010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1635
1636 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1637 Remove.
1638 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1639 of duplicating code.
1640
92902b1b
IS
16412010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1642
1643 * c-common.c: Add two new entries for @optional
1644 and @required keywords.
1645
1646 merge from FSF 'apple/trunk' branch.
1647 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1648
1649 Radar 4386773
1650 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1651 objective-c keywords.
1652 (objc_set_method_opt): New declaration.
1653 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 1654
46625112
JM
16552010-09-30 Joseph Myers <joseph@codesourcery.com>
1656
1657 * c-common.c (handle_optimize_attribute): Pass &global_options to
1658 cl_optimization_save and cl_optimization_restore.
1659 * c-opts.c (c_common_handle_option): Pass &global_options to
1660 handle_generated_option.
1661 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1662 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1663 &global_options to cl_optimization_restore.
1664
49b91f05
NP
16652010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1666
1667 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1668 Objective-C/Objective-C++ keywords.
1669
13ed556f 16702010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 1671
9faeb493
UB
1672 Merge from 'apple/trunk' branch on FSF servers.
1673
a6341d57
NP
1674 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1675
1676 Radar 4281748
1677 * c-common.h (objc_check_global_decl): New declaration.
1678 * stub-objc.c (objc_check_global_decl): New stub.
1679
f0036cca
JM
16802010-09-29 Joseph Myers <joseph@codesourcery.com>
1681
1682 * c.opt: Don't use VarExists.
1683
e3339d0f
JM
16842010-09-29 Joseph Myers <joseph@codesourcery.com>
1685
1686 * c-common.c (c_cpp_error): Update names of diagnostic_context
1687 members.
1688 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1689 cl_optimization members.
1690 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1691 sanitize_cpp_opts, finish_options): Update names of cpp_options
1692 members.
1693
1973201f
NP
16942010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1695
1696 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1697 (objc_is_reserved_word): Removed.
1698 * c-common.c: Updated comments.
1699 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1700 objc_is_reserved_word.
1701 * stub-objc.c (objc_is_reserved_word): Removed.
1702
f7e71da5
IS
17032010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1704
9faeb493 1705 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
1706 include attributes.
1707 (objc_start_method_definition): Likewise.
1708 (objc_build_keyword_decl): Likewise.
1709 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1710 (objc_start_method_definition): Likewise.
1711 (objc_build_keyword_decl): Likewise.
1712
c165dca7
IS
17132010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1714
1715 * c-common.h (objc_start_class_interface): Adjust prototype.
1716 (objc_start_category_interface): Likewise.
1717 (objc_start_protocol): Likewise.
1718 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1719 (objc_start_class_interface): Likewise.
1720 (objc_start_category_interface): Likewise.
1721
7458026b
ILT
17222010-09-27 Ian Lance Taylor <iant@google.com>
1723
1724 * c-common.c (c_common_attribute_table): Add no_split_stack.
1725 (handle_no_split_stack_attribute): New static function.
1726
b581b85b
NP
17272010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1728
9faeb493 1729 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
1730
1731 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1732
9faeb493 1733 Radar 4229905
b581b85b
NP
1734 * c-common.h (objc_have_common_type): New declaration.
1735 * stub-objc.c (objc_have_common_type): New stub.
1736
1737 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1738
1739 Radar 4154928
1740 * c-common.h (objc_common_type): New prototype.
9faeb493 1741 * stub-objc.c (objc_common_type): New stub.
b581b85b 1742
46a4da10
JH
17432010-09-24 Jan Hubicka <jh@suse.cz>
1744
1745 * c-common.c (handle_leaf_attribute): New function.
1746 (struct attribute_spec c_common_att): Add leaf.
1747
e200444e
JM
17482010-09-22 Joseph Myers <joseph@codesourcery.com>
1749
1750 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1751 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1752 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1753 -include-barrier, -include-directory, -include-directory=,
1754 -include-directory-after, -include-directory-after=,
1755 -include-prefix, -include-prefix=, -include-with-prefix,
1756 -include-with-prefix=, -include-with-prefix-after,
1757 -include-with-prefix-after=, -include-with-prefix-before,
1758 -include-with-prefix-before=, -no-integrated-cpp,
1759 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1760 -output=, -pedantic, -pedantic-errors, -preprocess,
1761 -print-missing-file-dependencies, -trace-includes, -traditional,
1762 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1763 -user-dependencies, -verbose, -write-dependencies,
1764 -write-user-dependencies, no-integrated-cpp, traditional): New.
1765
29a80ea6
NP
17662010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1767
1768 PR objc/23710
ac1fc2fc
NP
1769 * c-common.h (objc_start_method_definition): Return bool instead
1770 of void.
1771 * stub-objc.c (objc_start_method_definition): Return bool instead
1772 of void.
1773
17742010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1775
1776 PR objc/25965
1777 * c-common.h (objc_get_interface_ivars): New declaration.
1778 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 1779
de621752
ILT
17802010-09-15 Ian Lance Taylor <iant@google.com>
1781
1782 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 1783 messages. Remove period at end of warning message.
de621752 1784
ba885ec5
NS
17852010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1786
1787 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1788 (handle_alias_attribute): ... here.
1789 (handle_ifunc_attribute): New.
1790
c5ee1358
MM
17912010-09-06 Mark Mitchell <mark@codesourcery.com>
1792
1793 * c-common.h (do_warn_double_promotion): Declare.
1794 * c-common.c (do_warn_double_promotion): Define.
1795
0a0b3574
MM
17962010-09-05 Mark Mitchell <mark@codesourcery.com>
1797
1798 * c.opt (Wdouble-promotion): New.
1799
d1779886
JM
18002010-09-02 Joseph Myers <joseph@codesourcery.com>
1801
1802 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1803 fvtable-thunks, fxref): Mark no longer supported in help text.
1804
2d2bd949
JM
18052010-09-02 Joseph Myers <joseph@codesourcery.com>
1806
1807 * c.opt (Wimport, fall-virtual, falt-external-templates,
1808 fdefault-inline, fenum-int-equiv, fexternal-templates,
1809 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1810 fname-mangling-version-, fnew-abi, fnonnull-objects,
1811 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1812 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1813 applicable.
1814 (fhandle-exceptions): Mark with Alias and Warn.
1815 * c-opts.c (c_common_handle_option): Don't handle options marked
1816 as ignored.
1817
5de8299c
JM
18182010-09-02 Joseph Myers <joseph@codesourcery.com>
1819
1820 * c.opt (Wcomments, Werror-implicit-function-declaration,
1821 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1822 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1823 aliases.
1824 * c-common.c (option_codes): Use OPT_Wcomment instead of
1825 OPT_Wcomments.
1826 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1827 Don't handle options marked as aliases.
1828
0ceb0201
RG
18292010-08-25 Richard Guenther <rguenther@suse.de>
1830
1831 * c-common.c (c_common_get_alias_set): Remove special
1832 handling for pointers.
1833
ac47786e
NF
18342010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1835
1836 * c-common.c: Use FOR_EACH_VEC_ELT.
1837 * c-gimplify.c: Likewise.
1838 * c-pragma.c: Likewise.
1839
c878765b
JM
18402010-08-16 Joseph Myers <joseph@codesourcery.com>
1841
1842 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1843 RejectDriver.
1844 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1845 RejectDriver.
1846 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1847 instead of OPT_MDX and OPT_MMDX.
1848
603349bf
JM
18492010-08-16 Joseph Myers <joseph@codesourcery.com>
1850
1851 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1852
644fa7ac
JM
18532010-08-12 Joseph Myers <joseph@codesourcery.com>
1854
1855 * c.opt (MD, MMD): Change to MDX and MMDX.
1856 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1857
481e1176
JM
18582010-08-11 Joseph Myers <joseph@codesourcery.com>
1859
1860 * c-opts.c (c_common_handle_option): Call handle_generated_option
1861 instead of handle_option.
1862
ac8dc9f7
NF
18632010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1864
1865 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1866 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1867
4f8c876d
NF
18682010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1869
1870 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1871 (pending_redefine_extname): Change type to a VEC.
1872 (add_to_renaming_pragma_list): Update for new type of
1873 pending_redefine_extname.
ac8dc9f7 1874 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 1875
3b0c690e
AC
18762010-08-04 Arnaud Charlet <charlet@adacore.com>
1877
1878 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1879 visited.
1880 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1881 decide whether a type has already been declared/seen.
1882 Do not go to the original type.
1883 (dump_nested_types): New parameter forward.
1884 Generate forward declaration if needed and mark type as visited.
1885 (print_ada_declaration): Call dump_nested_types if not already done.
1886 Mark types as visited.
1887
1890bccc
JM
18882010-08-03 Joseph Myers <joseph@codesourcery.com>
1889
1890 * c.opt (-print-pch-checksum): Remove option.
1891 * c-opts.c (c_common_handle_option): Don't handle
1892 OPT_print_pch_checksum.
1893
5f20c657
JM
18942010-07-27 Joseph Myers <joseph@codesourcery.com>
1895
1896 * c-common.h (c_common_handle_option): Update prototype and return
1897 value type.
1898 * c-opts.c (c_common_handle_option): Update prototype and return
1899 value type. Update calls to handle_option and
1900 enable_warning_as_error.
1901
f551f80c
JJ
19022010-07-27 Jakub Jelinek <jakub@redhat.com>
1903
1904 PR c/45079
1905 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1906
61ff2bdc
JM
19072010-07-27 Joseph Myers <joseph@codesourcery.com>
1908
1909 * c-common.h (c_common_missing_argument): Remove.
1910 * c-opts.c (c_common_missing_argument): Remove.
1911 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1912 idirafter, imacros, include, isysroot, isystem, iquote): Add
1913 MissingArgError.
1914 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1915
7a9bf9a4
JM
19162010-07-27 Joseph Myers <joseph@codesourcery.com>
1917
1918 * c-common.h (c_common_option_lang_mask,
1919 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1920 New.
1921 (c_common_init_options): Update prototype.
1922 * c-opts.c (c_common_option_lang_mask): New.
1923 (c_common_initialize_diagnostics): Split out of
1924 c_common_init_options.
1925 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1926 New.
1927 (c_common_init_options): Update prototype. Use decoded options in
1928 search for -lang-asm.
1929
910ad8de
NF
19302010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1931
1932 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1933 * c-format.c: Likewise.
1934
718f9c0f
MLI
19352010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1936
1937 * c-common.h: Include diagnostic-core.h. Error if already
1938 included.
1939 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1940
4d451982
MLI
19412010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1942
1943 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1944 Do not include expr.h
1945 (vector_mode_valid_p): Move here.
1946
119fe915
SB
19472010-06-21 DJ Delorie <dj@redhat.com>
1948
1949 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1950 allow these pragmas anywhere.
1951
19522010-06-14 Jakub Jelinek <jakub@redhat.com>
1953
1954 PR bootstrap/44509
1955 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1956 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1957 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1958 ggc_strdup instead of xstrdup.
1959
19602010-06-10 Jakub Jelinek <jakub@redhat.com>
1961
1962 * c-cppbuiltin.c: Include cpp-id-data.h.
1963 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1964 (lazy_hex_fp_value): New function.
1965 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1966
6662d794
MLI
19672010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1968
1969 * c-gimplify.c: Do not include tree-flow.h
1970
38f8b050
JR
19712010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1972
1973 PR other/44034
1974 * c-common.c: Rename targetm member:
1975 targetm.enum_va_list -> targetm.enum_va_list_p
1976
9589f23e
AS
19772010-06-28 Anatoly Sokolov <aesok@post.ru>
1978
1979 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1980
3b06d379
SB
19812010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1982
1983 * c-cppbuiltin.c: Do not include except.h.
1984
d166d4c3
AK
19852010-06-24 Andi Kleen <ak@linux.intel.com>
1986
9faeb493
UB
1987 * c-common.c (warn_for_omitted_condop): New.
1988 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 1989
70cb8be6
JM
19902010-06-21 Joseph Myers <joseph@codesourcery.com>
1991
1992 * c.opt (lang-objc): Remove.
1993 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1994
a4c97feb
JR
19952010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1996
1997 * c-opts.c: Include "tm_p.h".
1998
6e2f1956
JM
19992010-06-20 Joseph Myers <joseph@codesourcery.com>
2000
2001 * c-common.c (parse_optimize_options): Update call to
2002 decode_options.
2003
bc87224e
NF
20042010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2005
2006 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2007 new type of types_used_by_cur_var_decl.
2008
b49cf425
JR
20092010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2010
2011 PR bootstrap/44512
2012 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2013 for C++ standard compliance.
2014
59f9c2ed
JM
20152010-06-16 Jason Merrill <jason@redhat.com>
2016
2017 * c.opt: Add -Wnoexcept.
2018
33766b66
RG
20192010-06-16 Richard Guenther <rguenther@suse.de>
2020
2021 PR c/44555
2022 * c-common.c (c_common_truthvalue_conversion): Remove
2023 premature and wrong optimization concering ADDR_EXPRs.
2024
eff7e30c
AC
20252010-06-15 Arnaud Charlet <charlet@adacore.com>
2026
2027 * c-ada-spec.c (dump_sloc): Remove column info.
2028 (is_simple_enum): New function.
2029 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2030 enum types when relevant.
2031
6312e84d
MLI
20322010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2033
9faeb493 2034 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
2035 location.
2036
1cb42611
JM
20372010-06-10 Joseph Myers <joseph@codesourcery.com>
2038
2039 * c-opts.c (c_common_handle_option): Don't handle
2040 OPT_fshow_column.
2041
a9429e29
LB
20422010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2043
2044 * c-pragma.c (push_alignment): Use typed GC allocation.
2045 (handle_pragma_push_options): Likewise.
2046
2047 * c-common.c (parse_optimize_options): Likewise.
2048
2049 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2050 option.
2051
5498f011
JM
20522010-06-07 Joseph Myers <joseph@codesourcery.com>
2053
2054 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2055 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2056 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2057 flag_signed_bitfields, warn_strict_null_sentinel,
2058 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2059 flag_gen_declaration, flag_no_gnu_keywords,
2060 flag_implement_inlines, flag_implicit_templates,
2061 flag_implicit_inline_templates, flag_optional_diags,
2062 flag_elide_constructors, flag_default_inline, flag_rtti,
2063 flag_conserve_space, flag_access_control, flag_check_new,
2064 flag_new_for_scope, flag_weak, flag_working_directory,
2065 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2066 flag_enforce_eh_specs, flag_threadsafe_statics,
2067 flag_pretty_templates): Remove.
2068 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2069 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2070 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2071 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2072 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2073 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2074 flag_no_gnu_keywords, flag_implement_inlines,
2075 flag_implicit_templates, flag_implicit_inline_templates,
2076 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2077 flag_rtti, flag_conserve_space, flag_access_control,
2078 flag_check_new, flag_new_for_scope, flag_weak,
2079 flag_working_directory, flag_use_cxa_atexit,
2080 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2081 flag_threadsafe_statics, flag_pretty_templates,
2082 warn_strict_null_sentinel): Remove.
2083 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2084 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2085 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2086 fimplicit-inline-templates, fimplicit-templates,
2087 flax-vector-conversions, fms-extensions, fnil-receivers,
2088 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2089 frtti, fshort-double, fshort-enums, fshort-wchar,
2090 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2091 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2092 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2093 gen-decls, undef): Use Var.
2094 (fdefault-inline, foptional-diags): Document as doing nothing.
2095 * c-opts.c (c_common_handle_option): Remove cases for options now
2096 using Var. Mark ignored options as such.
2097
39dabefd
SB
20982010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2099
9faeb493 2100 * c-common.c: Moved to here from parent directory.
39dabefd
SB
2101 * c-common.def: Likewise.
2102 * c-common.h: Likewise.
2103 * c-cppbuiltin.c: Likewise.
2104 * c-dump.c: Likewise.
2105 * c-format.c: Likewise.
2106 * c-format.h : Likewise.
2107 * c-gimplify.c: Likewise.
2108 * c-lex.c: Likewise.
2109 * c-omp.c: Likewise.
2110 * c.opt: Likewise.
2111 * c-opts.c: Likewise.
2112 * c-pch.c: Likewise.
2113 * c-ppoutput.c: Likewise.
2114 * c-pragma.c: Likewise.
2115 * c-pragma.h: Likewise.
2116 * c-pretty-print.c: Likewise.
2117 * c-pretty-print.h: Likewise.
2118 * c-semantics.c: Likewise.
2119 * stub-objc.c: Likewise.
2120
2121 * c-common.c: Include gt-c-family-c-common.h.
2122 * c-pragma.c: Include gt-c-family-c-pragma.h.
2123\f
04695783 2124Copyright (C) 2010, 2011 Free Software Foundation, Inc.
39dabefd
SB
2125
2126Copying and distribution of this file, with or without modification,
2127are permitted in any medium without royalty provided the copyright
2128notice and this notice are preserved.