]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
functional (_Mem_fn): Constrain function call operators to avoid ambiguities.
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
77bc5132
JJ
12012-11-23 Jakub Jelinek <jakub@redhat.com>
2
3 PR sanitizer/55435
4 * c-common.c (handle_no_address_safety_analysis_attribute): New
5 function.
6 (c_common_attribute_table): Add no_address_safety_analysis.
7
5dc99c46
SB
82012-11-16 Simon Baldwin <simonb@google.com>
9
10 * c.opt: Add f[no-]canonical-system-headers.
11 * c-opts.c (c_common_handle_option): Handle
12 OPT_fcanonical_system_headers.
13
a4a0016d
ESR
142012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
15
16 PR c++/54413
17 * c-opts.c (c_common_handle_option): Set new flags.
18 * c.opt: Describe new flags.
19
7dbb85a7
JM
202012-11-09 Jason Merrill <jason@redhat.com>
21
22 * c.opt (Wabi-tag): New.
23
ad7bac31
AK
242012-11-09 Andi Kleen <ak@linux.intel.com>
25
26 PR 55139
27 * c-common.c (get_atomic_generic_size): Mask with
28 MEMMODEL_MASK
29
7332899a
MLI
302012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
31
32 PR c/53063
33 * c.opt (Wformat): Make it Alias Wformat=1.
34 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
35 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
36 LangEnabledBy.
37 (Wformat=): RejectNegative. Use LangEnabledBy.
38 (Wnonnull): Use LangEnabledBy.
39 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
40 * c-format.c (set_Wformat): Delete.
41 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
42 (maybe_read_dollar_number): Likewise.
43 (avoid_dollar_number): Likewise.
44 (finish_dollar_format_checking): Likewise.
45 (check_format_info): Likewise.
46 (check_format_info_main): Likewise.
47 (check_format_types): Likewise.
48 (format_type_warning): Likewise.
49 * c-common.c (int): Likewise.
50 (check_function_sentinel): Likewise.
51 * c-common.h (warn_format,set_Wformat): Do not declare here.
52
34a180a6
MLI
532012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
54
55 PR c/53063
56 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
57 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
58 Use LangEnabledBy.
59 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
60 common.opt.
61 (Wvariadic-macros): Init(1).
62 * c-opts.c (c_common_handle_option): Do not handle them
63 explicitly.
64 (c_common_post_options): Likewise.
65 (sanitize_cpp_opts): warn_unused_macros is now
66 cpp_warn_unused_macros.
67 (push_command_line_include): Likewise.
68 * c-common.c (warn_unknown_pragmas): Do not define.
69 * c-common.h (warn_unknown_pragmas): Do not declare.
70
3f46d6a5
MLI
712012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
72
73 PR c/51294
74 * c-common.c (conversion_warning): Handle conditional expressions.
75
880661a4
JW
762012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
77
78 PR c++/54930
79 * c.opt (Wreturn_local_addr): Define new option.
80
4514a96b
JM
812012-10-25 Jason Merrill <jason@redhat.com>
82
f14edc1a
JM
83 * c.opt (Wvirtual-move-assign): New.
84
4514a96b
JM
85 * c.opt (Winherited-variadic-ctor): New.
86
93100c6b
MG
872012-10-25 Marc Glisse <marc.glisse@inria.fr>
88
89 PR c++/54427
90 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
91
1efcb8c6
JM
922012-10-23 Joseph Myers <joseph@codesourcery.com>
93
94 * c-common.h (pch_cpp_save_state): Declare.
95 * c-target.def (c_preinclude): New hook.
96 * c-opts.c (done_preinclude): New.
97 (push_command_line_include): Handle default preincluded header.
98 (cb_file_change): Call pch_cpp_save_state when calling
99 push_command_line_include.
100 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
101 (pch_cpp_save_state): New.
102 (pch_init): Call pch_cpp_save_state conditionally, instead of
103 calling cpp_save_state.
104
4a0ae68e
MLI
1052012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
106
107 PR c/53063
108 PR c/40989
109 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
110 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
111 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
112 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
113 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
114 * c-opts.c (c_common_handle_option): Remove explicit handling from
115 here.
116 (c_common_post_options): Likewise.
117
67e4210b
EB
1182012-10-18 Eric Botcazou <ebotcazou@adacore.com>
119
120 * c-ada-spec.c (LOCATION_COL): Delete.
121 (compare_location): New function.
122 (compare_node): Use it.
123 (compare_comment): Likewise.
124
65d4f2cd
MLI
1252012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
126
127 PR c/53063
128 PR c/40989
129 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
130 * c-opts.c (c_common_handle_option): Do not set them here. Add
131 comment.
132 (c_common_post_options): Likewise.
133
909881cb
EB
1342012-10-16 Eric Botcazou <ebotcazou@adacore.com>
135
136 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
137 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
138 Remove POINTER_TYPE handling, add large unsigned handling and use
139 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
140
3a785c97
JJ
1412012-10-12 Jakub Jelinek <jakub@redhat.com>
142
143 PR c/54381
144 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
145 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
146 locs and array of 3 trees instead of just single loc and single
147 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
148 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
149 For *cmp* builtins that take two sources strings report warnings
150 about first and second source, not about destination and source.
151
5e54f81d
MG
1522012-10-12 Marc Glisse <marc.glisse@inria.fr>
153
154 PR c++/53055
155 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
156
f5b02f1e
EB
1572012-10-11 Eric Botcazou <ebotcazou@adacore.com>
158
159 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
160 declaring something coming from another file.
161
b46dbc6c
AC
1622012-10-10 Arnaud Charlet <charlet@adacore.com>
163
f5b02f1e 164 PR ada/54845
b46dbc6c
AC
165 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
166
5d9de0d0
PC
1672012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
168
169 PR c++/54194
170 * c-common.c (warn_about_parentheses): Add location_t parameter;
171 use EXPR_LOC_OR_LOC.
172 * c-common.h: Update declaration.
173
a212e43f
MG
1742012-10-09 Marc Glisse <marc.glisse@inria.fr>
175
176 PR c++/54427
177 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
178 more operations. Make error messages optional.
179 * c-common.h (enum stv_conv): Moved from c-typeck.c.
180 (scalar_to_vector): Declare.
181
b1db7f91
JM
1822012-10-08 Jason Merrill <jason@redhat.com>
183
184 * c-common.c (c_common_reswords): Add thread_local.
185
e28d52cf
DS
1862012-10-08 Dodji Seketeli <dodji@redhat.com>
187
188 PR c++/53528 C++11 attribute support
189 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
190 new functions.
191 * c-common.c (check_cxx_fundamental_alignment_constraints): New
192 static function.
193 (handle_aligned_attribute): In choose strictest alignment
194 among many. Use new check_cxx_fundamental_alignment_constraints.
195 (handle_transparent_union_attribute): In c++11 attribute syntax,
196 don't look through typedefs.
197
3b78de56
AC
1982012-10-04 Arnaud Charlet <charlet@adacore.com>
199
200 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
201 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
202 out of dumpfile.h.
203
6040bb5f
DC
2042012-09-25 Dehao Chen <dehao@google.com>
205
206 PR middle-end/54645
3b78de56 207 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
208 map when read in the pch.
209
0b07a57e
AC
2102012-09-18 Arnaud Charlet <charlet@adacore.com>
211
212 * c-ada-spec.c: Style fixes.
213
da5182be
TQ
2142012-09-18 Thomas Quinot <quinot@adacore.com>
215
216 * c.opt (-fada-spec-parent): Define new command line switch.
217 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
218 is specified, generate binding spec as a child of the specified unit.
219
0ccb505d
PC
2202012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
221 Manuel López-Ibáñez <manu@gcc.gnu.org>
222
223 PR c++/53210
224 * c.opt ([Winit-self]): Enabled by -Wall in C++.
225
c583af79
AC
2262012-08-23 Arnaud Charlet <charlet@adacore.com>
227
228 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
229 for pointers, and add missing Convention C pragma.
230 (print_ada_struct_decl): Add missing aliased keyword.
231 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
232
1a4049e7
JJ
2332012-08-17 Jakub Jelinek <jakub@redhat.com>
234
235 * c-common.c (sizeof_pointer_memaccess_warning): New function.
236 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
237 * c-opts.c (c_common_handle_option): Enable it for -Wall.
238 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
239 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
240
70b5e7dc
RG
2412012-08-10 Richard Guenther <rguenther@suse.de>
242
243 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
244
f8923f7e
SB
2452012-08-07 Steven Bosscher <steven@gcc.gnu.org>
246
247 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
248 instead of separate pp_newline and pp_flush.
249 (print_c_tree): Likewise.
250
e45abe1f
RH
2512012-07-26 Richard Henderson <rth@redhat.com>
252
253 * c-common.c (handle_hot_attribute): Allow labels.
254 (handle_cold_attribute): Likewise.
255
332f1d24
JJ
2562012-07-20 Jakub Jelinek <jakub@redhat.com>
257
258 PR c++/28656
259 * c-common.c (check_function_nonnull): Handle multiple nonnull
260 attributes properly.
261
7ee2468b
SB
2622012-07-16 Steven Bosscher <steven@gcc.gnu.org>
263
264 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
265 * c-ada-spec.c: Likewise.
266 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
267
ee7b28eb
SB
2682012-07-14 Steven Bosscher <steven@gcc.gnu.org>
269
270 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
271 Remove code conditional on it.
272
6bdf3519
SB
2732012-07-11 Steven Bosscher <steven@gcc.gnu.org>
274
275 * c-gimplify.c: Do not include basic-block.h.
276 * c-common.c: Do not include linfuncs.h.
277
532aafad
SB
2782012-07-08 Steven Bosscher <steven@gcc.gnu.org>
279
280 * c-common.h: Include tree.h.
281
8d0d1915
JM
2822012-07-02 Jason Merrill <jason@redhat.com>
283
284 PR c++/53524
285 * c-common.c (get_priority): Call default_conversion.
286
fbc873ad
UB
2872012-07-01 Uros Bizjak <ubizjak@gmail.com>
288
289 * c-pch.c (c_common_write_pch): Remove unused variables.
290
d4a10d0a
SB
2912012-06-29 Steven Bosscher <steven@gcc.gnu.org>
292
293 * cppspec.c: Moved from gcc/ to here.
294
6f3a2e23
KT
2952012-06-27 Kai Tietz <ktietz@redhat.com>
296
297 PR preprocessor/37215
298 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
299
8ca92d04
SB
3002012-06-21 Steven Bosscher <steven@gcc.gnu.org>
301
302 * c-common.h (c_common_print_pch_checksum): Remove.
303 * c-pch.c: Do not include output.h.
304 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
305 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
306 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
307 (struct c_pch_header): Remove.
308 (get_ident): Update gpch version.
309 (pch_init): Do not print executable_checksum to asm_out_file.
310 Do not fail if there is no asm_out_file to read back from. Set
311 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
312 (c_common_write_pch): Verify that nothing was written to asm_out_file
313 since pch_init was called. Do not write a c_pch_header, and do not
314 copy from asm_out_file to the PCH.
315 (c_common_read_pch): Do not read a c_pch_header, and do not restore
316 the content of asm_out_file from the PCH.
317 (c_common_print_pch_checksum): Remove.
318 * c-opts.c (c_common_init): Print out executable_checksum directly.
319
70f42967
SB
3202012-06-19 Steven Bosscher <steven@gcc.gnu.org>
321
322 * c-target.def (objc_declare_unresolved_class_reference,
323 objc_declare_class_definition): Add new hooks.
324
a8781821
SB
3252012-06-19 Steven Bosscher <steven@gcc.gnu.org>
326
327 * c-lex.c: Do not include output.h.
328 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
329 Remove uses of ASM_OUTPUT_IDENT.
330
9e1a8dd1
RR
3312012-06-15 Marc Glisse <marc.glisse@inria.fr>
332
333 PR c++/51033
334 * c-common.h (c_build_vec_perm_expr): Move decl here.
335 * c-common.c (c_build_vec_perm_expr): Move definition
336 here.
337
6f07a821
SB
3382012-06-06 Steven Bosscher <steven@gcc.gnu.org>
339
340 * c.opt (fconserve-space): Turn into a no-op.
341
9faeb493 3422012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
343
344 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
345 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
346 both the start and end of the function.
347
a4b7d13c
SB
3482012-06-04 Steven Bosscher <steven@gcc.gnu.org>
349
350 * c-common.c: Do not include output.h.
351 * c-pragma.c: Likewise.
352
c265f413
SA
3532012-06-04 Steven Bosscher <steven@gcc.gnu.org>
354
355 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
356 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
357 (lang_decl_name): Handle namespace decls.
358
be7a421e
SB
3592012-05-31 Steven Bosscher <steven@gcc.gnu.org>
360
361 * c-ada-spec.c: Do not include output.h.
362 * c-semantics.c: Likewise.
363
65de6659
JM
3642012-05-29 Joseph Myers <joseph@codesourcery.com>
365
366 * c-common.c: Fix typo.
367
ca5f4331
MM
3682012-05-29 Michael Matz <matz@suse.de>
369
370 * c-common.h (c_expand_decl): Remove prototype.
371
4f7f7aca
MLI
3722012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
373
374 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
375 * c-opts.c (c_common_handle_option): Remove code handling
376 warn_missing_braces.
377
4a792f9b
PC
3782012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
379
380 PR c++/25137
381 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
382 -Wmissing_braces.
383
650dc14a
DS
3842012-05-22 Dodji Seketeli <dodji@redhat.com>
385
386 PR c++/53322
387 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
388
9b095bf1
MLI
3892012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
390
391 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
392 * c-opts.c (c_common_handle_option): Do not handle explicitly
393 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
394
0b2c4be5
DS
3952012-05-16 Dodji Seketeli <dodji@redhat.com>
396
397 PR preprocessor/7263
398 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
399 to cpp_classify_number. For diagnostics, use the precise location
400 instead of the global input_location.
401
a1bde5af
PC
4022012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
403
d02924ef 404 PR c++/11856
a1bde5af
PC
405 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
406
d1ede5f4
BS
4072012-05-14 Bernd Schmidt <bernds@codesourcery.com>
408
a1bde5af 409 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 410
f2bc201f
MLI
4112012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
412
413 PR 53063
414 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
415 Wreorder): Use LangEnabledBy.
416 * c-opts.c (c_common_handle_option): Do not enable them
417 explicitly. Call lang-specific generated functions.
418 (c_common_post_options): Do not set them here.
419
95744782
MLI
4202012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
421
422 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
423 Wmissing-field-initializers,Wmissing-parameter-type,
424 Wold-style-declaration,Woverride-init): Use EnabledBy.
425 * c-opts.c (c_common_post_options): Do not set here explicitly.
426
7d5a5747
MLI
4272012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
428
429 PR 53063
430 * c-opts.c (c_common_handle_option): Use handle_generated_option
431 to enable sub-options.
432
5a3c9cf2
PC
4332012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
434
435 PR c++/53158
436 * c-common.c (warnings_for_convert_and_check): Use warning_at.
437
3ac8781c
RG
4382012-05-10 Richard Guenther <rguenther@suse.de>
439
440 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
441 adjust commentary about TYPE_IS_SIZETYPE types.
442
1e537948
MLI
4432012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
444
445 PR c++/53261
446 * c-common.c (warn_logical_operator): Check that argument of
447 integer_zerop is not NULL.
448
f2c4a785
MLI
4492012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
450
451 PR c/43772
452 * c-common.c (warn_logical_operator): Do not warn if either side
453 is already true or false.
454
50f305ca
MLI
4552012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
456
457 PR c/51712
458 * c-common.c (expr_original_type): New.
459 (shorten_compare): Do not warn for enumeration types.
460
0c3641b0
MLI
4612012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
462
463 * c.opt (fpermissive): Add Var(flag_permissive).
464
7edaa4d2
MG
4652012-04-30 Marc Glisse <marc.glisse@inria.fr>
466
467 PR c++/51033
468 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
469 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
470
b9c8da34
DS
4712012-04-30 Dodji Seketeli <dodji@redhat.com>
472
473 Add -Wvarargs option
474 * c.opt (Wvarargs): Define new option.
475
e6c69da0
MLI
4762012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
477
478 * c-common.c (check_function_arguments): Replace
479 Wmissing-format-attribute with Wsuggest-attribute=format.
480
90137d8f
MLI
4812012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
482
483 * c.opt (Wsuggest-attribute=format): New. Alias of
484 Wmissing-format-attribute.
485 * c-format.c (decode_format_type): Replace
486 Wmissing-format-attribute with Wsuggest-attribute=format.
487 (check_function_format): Likewise.
488
9faeb493 4892012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
490
491 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
492 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
493 * c.opt: Add Wliteral-suffix.
494
c1771a20
MLI
4952012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
496
497 PR c/44774
498 * c.opt (Wpedantic): New.
499 (pedantic): Alias Wpedantic.
500 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
501 (c_common_post_options): Likewise.
502 (sanitize_cpp_opts): Likewise.
503 * c-lex.c (interpret_float): Likewise.
504 * c-format.c (check_format_types): Likewise.
505 * c-common.c (pointer_int_sum): Likewise.
506 (c_sizeof_or_alignof_type): Likewise.
507 (c_add_case_label): Likewise.
508 (c_do_switch_warnings): Likewise.
509 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
510
04b391c1
JM
5112012-04-15 Jason Merrill <jason@redhat.com>
512
513 PR c++/52818
514 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
515 (C_STD_NAME): Distinguish between C++98 and C++11.
516
ac868f29
EB
5172012-04-11 Eric Botcazou <ebotcazou@adacore.com>
518
519 PR target/52624
520 * c-common.h (uint16_type_node): Rename into...
521 (c_uint16_type_node): ...this.
522 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
523 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
524
fd4116f4
MLI
5252012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
526
527 * c-common.c (warn_if_unused_value): Move definition to here.
528 * c-common.h (warn_if_unused_value): Move declaration to here.
529
573ac65e
WB
5302012-03-23 William Bader <williambader@hotmail.com>
531
532 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
533
552b8185
JM
5342012-03-20 Jason Merrill <jason@redhat.com>
535
536 * c-common.h (enum cxx_dialect): Add cxx1y.
537 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
538 test.
539 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
540 * c-opts.c (c_common_post_options): Likewise.
541 (set_std_cxx1y): New.
542 (c_common_handle_option): Call it.
543 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
544
04398fa8
PC
5452012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
546
547 PR c++/14710
548 * c.opt ([Wuseless-cast]): Add.
549
d2a12ae7
RG
5502012-03-16 Richard Guenther <rguenther@suse.de>
551
552 * c-pretty-print.c (pp_c_initializer_list): Adjust.
553
a12bf402
MLI
5542012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
555
556 PR c++/44783
557 * c.opt (ftemplate-backtrace-limit) Add.
558
5c30094f
RO
5592012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
560
561 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
562 handling.
563 * c-pragma.c (handle_pragma_extern_prefix): Remove.
564 (init_pragma): Don't register extern_prefix.
565
21fa2faf
RG
5662012-03-12 Richard Guenther <rguenther@suse.de>
567
568 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
569 (builtin_type_for_size): Likewise.
570
e3793c6f
JJ
5712012-02-13 Jakub Jelinek <jakub@redhat.com>
572
573 PR c++/52215
574 * c-common.c (sync_resolve_params): Don't decide whether to convert
575 or not based on TYPE_SIZE comparison, convert whenever arg_type
576 is unsigned INTEGER_TYPE.
577
93286335
PC
5782012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
579
580 PR c/52118
581 * c.opt ([Wunused-local-typedefs]): Fix description.
582
7a421706
MS
5832012-01-24 Mike Stump <mikestump@comcast.net>
584
585 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
586 exactly.
587
ba9b1f11
RG
5882012-01-18 Richard Guenther <rguenther@suse.de>
589
590 * c-opts.c (c_common_post_options): Reset LTO flags if
591 we are about to generate a PCH.
592
465406be
PC
5932012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
594
595 PR c++/51777
596 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
597 use pp_unsigned_wide_integer.
598
aee15221
RG
5992012-01-10 Richard Guenther <rguenther@suse.de>
600
601 PR middle-end/51806
602 * c-opts.c (c_common_handle_option): Move -Werror handling
603 to language independent code.
604
5720c0dc
RG
6052012-01-05 Richard Guenther <rguenther@suse.de>
606
607 PR middle-end/51764
608 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
609 from common.opt.
610
73ac190a
PC
6112011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
612
613 PR c++/51316
614 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
615 of array types with an unknown bound.
616
48b0b196
JM
6172011-12-20 Joseph Myers <joseph@codesourcery.com>
618
619 * c-common.c (flag_isoc99): Update comment to refer to C11.
620 (flag_isoc1x): Change to flag_isoc11.
621 * c-common.h (flag_isoc99): Update comment to refer to C11.
622 (flag_isoc1x): Change to flag_isoc11.
623 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
624 C11.
625 * c-opts.c (set_std_c1x): Change to set_std_c11.
626 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
627 Call set_std_c11.
628 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
629 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
630 * c.opt (std=c1x): Change to std=c11. Document as non-draft
631 standard.
632 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
633 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
634 (std=gnu1x): Make alias of std=gnu11.
635
d58d6eb5
JM
6362011-12-19 Jason Merrill <jason@redhat.com>
637
638 PR c++/51228
639 * c-common.c (handle_transparent_union_attribute): Check the first
640 field if the type is complete.
641
b3908fcc
JW
6422011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
643
644 PR libstdc++/51365
645 * c-common.c (RID_IS_FINAL): Add.
646 * c-common.h (RID_IS_FINAL): Add.
647
fea3ca91
IS
6482011-11-30 Iain Sandoe <iains@gcc.gnu.org>
649
650 * c.opt (fgnu-runtime): Provide full description.
651 (fnext-runtime): Likewise.
652 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
653
62bad7cd
AM
6542011-11-28 Andrew MacLeod <amacleod@redhat.com>
655
656 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
657 predefines in one place. Add LOCK_FREE predefines.
658 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
659 new func.
660
c466c4ff
AM
6612011-11-24 Andrew MacLeod <amacleod@redhat.com>
662
663 PR c/51256
9faeb493 664 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 665 conditions
9faeb493
UB
666 (resolve_overloaded_atomic_exchange,
667 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
668 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
669 error_mark_node for error conditions.
9faeb493 670
a5952633
RG
6712011-11-08 Richard Guenther <rguenther@suse.de>
672
673 PR middle-end/51010
674 c-family/
675
0a35513e
AH
6762011-11-07 Richard Henderson <rth@redhat.com>
677 Aldy Hernandez <aldyh@redhat.com>
678 Torvald Riegel <triegel@redhat.com>
679
680 Merged from transactional-memory.
681
682 * c-common.c (handle_tm_wrap_attribute,
683 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
684 (struct c_common_reswords): Added __transaction* keywords.
685 (struct c_common_attribute_table): Added transaction* and tm_regparm
686 attributes.
687 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
688 masks.
689 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
690 find_tm_attribute): Declare.
691
6d87092d
JM
6922011-11-07 Jason Merrill <jason@redhat.com>
693
694 PR c++/35688
695 * c-common.c, c-common.h: Revert yesterday's changes.
696
8e7860a1
JM
6972011-11-06 Jason Merrill <jason@redhat.com>
698
699 PR c++/35688
700 * c-common.c (decl_has_visibility_attr): Split out from...
701 (c_determine_visibility): ...here.
702 * c-common.h: Declare it.
703
d19fa6b5
JM
7042011-11-06 Joseph Myers <joseph@codesourcery.com>
705
706 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
707 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
708 type.
709 (check_user_alignment): New. Split out of
710 handle_aligned_attribute. Disallow integer constants with
711 noninteger types. Conditionally allow zero.
712 (handle_aligned_attribute): Use check_user_alignment.
713 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
714
86951993
AM
7152011-11-06 Andrew MacLeod <amacleod@redhat.com>
716 Richard Henderson <rth@redhat.com>
717
718 Merged from cxx-mem-model.
719
720 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 721 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
722 parameters that are the same type size.
723 (get_atomic_generic_size): New. Find size of generic
724 atomic function parameters and do typechecking.
725 (add_atomic_size_parameter): New. Insert size into parameter list.
726 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
727 either __atomic_exchange_n or external library call.
9faeb493 728 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 729 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 730 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
731 __atomic_load_n or an external library call.
732 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
733 __atomic_store_n or an external library call.
734 (resolve_overloaded_builtin): Handle new __atomic builtins.
735
cf9e9959
EB
7362011-11-04 Eric Botcazou <ebotcazou@adacore.com>
737
738 PR c++/50608
739 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
740 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
741 <INDIRECT_REF>: Return the argument.
742 <ARRAY_REF>: Remove special code for negative offset.
743 Call fold_build_pointer_plus instead of size_binop.
744 (fold_offsetof): Remove STOP_REF argument and adjust.
745 * c-common.h (fold_offsetof_1): Declare.
746 (fold_offsetof): Remove STOP_REF argument.
747
25339f10
JM
7482011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
749
750 PR c++/50810
751 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
752 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
753 Wnarrowing for C++0x and C++98.
754 * c.opt ([Wnarrowing]): Update.
755
89401152
PC
7562011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
757
758 PR c++/44277
759 * c.opt: Add Wzero-as-null-pointer-constant.
760
97e3ad20
JM
7612011-10-31 Jason Merrill <jason@redhat.com>
762
15694fdd
JM
763 * c.opt (-fdeduce-init-list): Off by default.
764
97e3ad20
JM
765 PR c++/50920
766 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
767 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
768 and -Wc++11-compat.
769 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
770
fb9120e3
RAV
7712011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
772
773 PR c++/30066
774 * c.opt (fvisibility-inlines-hidden): Description change.
775
3ce4f9e4
ESR
7762011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
777
778 Implement C++11 user-defined literals.
779 * c-common.c (build_userdef_literal): New.
780 * c-common.def: New tree code.
781 * c-common.h (tree_userdef_literal): New tree struct and accessors.
782 * c-lex.c (interpret_float): Add suffix parm.
783 (c_lex_with_flags): Build literal tokens.
784
5f53c243
PC
7852011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
786
787 PR c++/50841
788 Revert:
789 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
790
791 PR c++/50810
792 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
793 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
794 Wnarrowing for C++0x and C++98.
795 * c.opt ([Wnarrowing]): Update.
796
263734e1
PC
7972011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
798
799 PR c++/50810
800 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
801 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
802 Wnarrowing for C++0x and C++98.
803 * c.opt ([Wnarrowing]): Update.
804
d2e312d7
PC
8052011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
806
807 PR c++/45385
808 * c-common.c (conversion_warning): Remove code looking for
809 artificial operands.
810
d17687f6
DS
8112011-10-18 Dodji Seketeli <dodji@redhat.com>
812
813 PR bootstrap/50760
814 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 815 !NO_IMPLICIT_EXTERN_C.
d17687f6 816
fc8396e9
PC
8172011-10-17 Michael Spertus <mike_spertus@symantec.com>
818
819 * c-common.c (c_common_reswords): Add __bases,
820 __direct_bases.
821 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
822
8232011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
824
825 PR c++/50757
826 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
827
847e697a
TT
8282011-10-15 Tom Tromey <tromey@redhat.com>
829 Dodji Seketeli <dodji@redhat.com>
830
831 * c.opt (fdebug-cpp): New option.
832 * c-opts.c (c_common_handle_option): Handle the option.
833 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
834 output stream in parameter. Factorized from ...
835 (maybe_print_line): ... this. Dump location debug information when
836 -fdebug-cpp is in effect.
837 (print_line_1): New static function. Takes an output stream in
838 parameter. Factorized from ...
839 (print_line): ... here. Dump location information when -fdebug-cpp
840 is in effect.
841 (scan_translation_unit): Dump location information when
842 -fdebug-cpp is in effect.
843
92582b75
TT
8442011-10-15 Tom Tromey <tromey@redhat.com>
845 Dodji Seketeli <dodji@redhat.com>
846
847 * c.opt (ftrack-macro-expansion): New option. Handle it with and
848 without argument.
849 * c-opts.c (c_common_handle_option)<case
850 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
851 cases. Handle -ftrack-macro-expansion with and without argument.
852
46427374
TT
8532011-10-15 Tom Tromey <tromey@redhat.com>
854 Dodji Seketeli <dodji@redhat.com>
855
856 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
857 (print_line, cb_define, do_line_change): Adjust to avoid touching
858 the internals of struct line_map. Use the public API instead.
859 * c-pch.c (c_common_read_pch): Likewise.
860 * c-lex.c (fe_file_change): Likewise.
861
fc8396e9
PC
8622011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
863
864 PR c++/17212
865 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
866
8672011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
868
869 PR c++/33067
870 * c-pretty-print.c (pp_c_floating_constant): Output
871 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
872
e79983f4
MM
8732011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
874
875 * c-common.c (def_builtin_1): Delete old interface with two
876 parallel arrays to hold standard builtin declarations, and replace
877 it with a function based interface that can support creating
878 builtins on the fly in the future. Change all uses, and poison
879 the old names. Make sure 0 is not a legitimate builtin index.
880 * c-omp.c (c_finish_omp_barrier): Ditto.
881 (c_finish_omp_taskwait): Ditto.
882 (c_finish_omp_flush): Ditto.
883
6637388f
TG
8842011-10-11 Tristan Gingold <gingold@adacore.com>
885
886 * c.opt: (fallow-parameterless-variadic-functions): New.
887
3797cb21
DS
8882011-09-08 Dodji Seketeli <dodji@redhat.com>
889
890 PR c++/33255 - Support -Wunused-local-typedefs warning
891 * c-common.h (struct c_language_function::local_typedefs): New
892 field.
9faeb493
UB
893 (record_locally_defined_typedef, maybe_record_typedef_use)
894 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 895 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
896 (maybe_record_typedef_use)
897 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
898 * c.opt: Declare new -Wunused-local-typedefs flag.
899
693ddb1b
EB
9002011-09-06 Eric Botcazou <ebotcazou@adacore.com>
901
902 PR middle-end/50266
903 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
904 computations.
905
830c740f
RG
9062011-09-05 Richard Guenther <rguenther@suse.de>
907
908 * c-common.c (complete_array_type): Use ssize_int (-1) instead
909 of integer_minus_one_node for empty array upper bounds.
910
892a371f
DS
9112011-08-28 Dodji Seketeli <dodji@redhat.com>
912
913 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
914 it's the first time it's being called on this main TU.
915
0e3fdb48
RB
9162011-08-24 Richard Guenther <rguenther@suse.de>
917
918 PR c/49396
919 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
920
9212011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
922
923 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
924 defined in cpp_init_builtins and c_cpp_builtins.
925
d4a83c10
JM
9262011-08-19 Joseph Myers <joseph@codesourcery.com>
927
928 * c-common.c (c_common_reswords): Add __builtin_complex.
929 * c-common.h (RID_BUILTIN_COMPLEX): New.
930
bbceee64
JM
9312011-08-18 Joseph Myers <joseph@codesourcery.com>
932
933 * c-common.c (c_common_reswords): Add _Noreturn.
934 (keyword_is_function_specifier): Handle RID_NORETURN.
935 * c-common.h (RID_NORETURN): New.
936
0e3a99ae
AS
9372011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
938
939 * c-common.c (unsafe_conversion_p): New function. Check if it is
940 unsafe to convert an expression to the type.
941 (conversion_warning): Adjust, use unsafe_conversion_p.
942 * c-common.h (unsafe_conversion_p): New function declaration.
943
20906c66
JJ
9442011-08-02 Jakub Jelinek <jakub@redhat.com>
945
946 * c-common.h (c_finish_omp_atomic): Adjust prototype.
947 (c_finish_omp_taskyield): New prototype.
948 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
949 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
950 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
951 or RHS1 have side-effects, evaluate those too in the right spot,
952 if it is a decl and LHS is also a decl, error out if they
953 aren't the same.
954 (c_finish_omp_taskyield): New function.
955 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
956 * c-pragma.c (omp_pragmas): Add taskyield.
957 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
958 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
959 PRAGMA_OMP_CLAUSE_MERGEABLE.
960
770e5a2e
DS
9612011-07-25 Dodji Seketeli <dodji@redhat.com>
962
963 * c-common.h (set_underlying_type): Remove parm name from
964 declaration.
965
1baae426
RG
9662011-07-25 Romain Geissler <romain.geissler@gmail.com>
967
968 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 969
fcb21722
JM
9702011-07-22 Jason Merrill <jason@redhat.com>
971
76f86d00
JM
972 PR c++/49793
973 * c.opt (Wnarrowing): New.
974
3a636414
JM
975 PR c++/30112
976 * c-common.h: Declare c_linkage_bindings.
977 * c-pragma.c (handle_pragma_redefine_extname): Use it.
978
fcb21722
JM
979 PR c++/49813
980 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
981 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
982 as flag_isoc99 for 'restrict'.
983 (pp_c_specifier_qualifier_list): Likewise for _Complex.
984
02614448
ILT
9852011-07-21 Ian Lance Taylor <iant@google.com>
986
987 PR middle-end/49705
988 * c-common.c (c_disable_warnings): New static function.
989 (c_enable_warnings): New static function.
990 (c_fully_fold_internal): Change local unused_p to bool. Call
991 c_disable_warnings and c_enable_warnings rather than change
992 c_inhibit_evaluation_warnings.
993
34429675
JM
9942011-07-20 Jason Merrill <jason@redhat.com>
995
996 PR c++/6709 (DR 743)
997 PR c++/42603 (DR 950)
998 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
999 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1000 (CPP_DECLTYPE): New.
1001 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1002
5d49b6a7
RG
10032011-07-19 Richard Guenther <rguenther@suse.de>
1004
1005 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1006 * c-omp.c (c_finish_omp_for): Likewise.
1007
e84a58ff
EB
10082011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1009
1010 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1011 body on the next line.
1012
329af3c7
JM
10132011-07-08 Jason Merrill <jason@redhat.com>
1014
4063e61b
JM
1015 PR c++/45437
1016 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1017
329af3c7
JM
1018 PR c++/49673
1019 * c-common.c (c_apply_type_quals_to_decl): Don't check
1020 TYPE_NEEDS_CONSTRUCTING.
1021
1a072294
RG
10222011-07-06 Richard Guenther <rguenther@suse.de>
1023
1024 * c-common.c (c_common_nodes_and_builtins):
1025 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1026
fce5dddd
RG
10272011-07-05 Richard Guenther <rguenther@suse.de>
1028
1029 * c-common.c (c_common_nodes_and_builtins): Build all common
1030 tree nodes first.
1031
45d439ac
JJ
10322011-06-27 Jakub Jelinek <jakub@redhat.com>
1033
56300785
JJ
1034 * c-common.h (c_tree_chain_next): New static inline function.
1035
45d439ac
JJ
1036 * c-common.c (check_builtin_function_arguments): Handle
1037 BUILT_IN_ASSUME_ALIGNED.
1038
e0a8ecf2
AM
10392011-06-21 Andrew MacLeod <amacleod@redhat.com>
1040
1041 * c-common.c: Add sync_ or SYNC__ to builtin names.
1042 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
1043
10442011-06-20 Pierre Vittet <piervit@pvittet.com>
1045
1046 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1047 handler.
1048 (gen_pragma_handler): New union.
1049 (internal_pragma_handler): New type.
1050 (c_register_pragma_with_data)
1051 (c_register_pragma_with_expansion_and_data): New functions.
1052
1053 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1054 (c_register_pragma, c_register_pragma_with_expansion)
1055 (c_invoke_pragma_handler): Changed to work with
1056 internal_pragma_handler.
1057 (c_register_pragma_with_data)
1058 (c_register_pragma_with_expansion_and_data): New functions.
1059
677f3fa8
JM
10602011-06-14 Joseph Myers <joseph@codesourcery.com>
1061
1062 * c-common.c: Include common/common-target.h.
1063 (handle_section_attribute): Use
1064 targetm_common.have_named_sections.
1065 * c-cppbuiltin.c: Include common/common-target.h.
1066 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1067
d7fc8c14
RG
10682011-06-10 Richard Guenther <rguenther@suse.de>
1069
1070 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1071 to print a IDENTIFIER_NODE.
1072
10e48e39
RO
10732011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1074 Joseph Myers <joseph@codesourcery.com>
1075
1076 * c.opt (fbuilding-libgcc): New option.
1077 * c-cppbuiltin.c (c_cpp_builtins): Define
1078 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1079
6976ae51
JM
10802011-06-07 Jason Merrill <jason@redhat.com>
1081
3ff60975
JM
1082 * c-common.c (max_tinst_depth): Lower default to 900.
1083
6976ae51
JM
1084 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1085
009db074
RG
10862011-06-07 Richard Guenther <rguenther@suse.de>
1087
1088 * c-common.c (c_common_nodes_and_builtins): Do not set
1089 size_type_node or call set_sizetype.
1090
b4592b92
DS
10912011-06-07 Dodji Seketeli <dodji@redhat.com>
1092
1093 PR debug/49130
1094 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 1095 type when using pointer comparison to compare types.
b4592b92 1096
014ab419
JW
10972011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1098
1099 * c.opt: Add -Wdelete-non-virtual-dtor.
1100 * c-opts.c (c_common_handle_option): Include it in -Wall.
1101
4f60111f
NF
11022011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1103
1104 PR bootstrap/49190
1105
1106 Revert:
1107 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1108
1109 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1110 not tree_common.
1111
4cc4f2f4
JJ
11122011-05-27 Jakub Jelinek <jakub@redhat.com>
1113
1114 PR c++/49165
1115 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1116 C++ don't call c_common_truthvalue_conversion on void type arms.
1117
38e01f9e
NF
11182011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1119
1120 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1121 (stmt_list_stack): Define.
1122 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1123 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1124
92e948a8
NF
11252011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1126
1127 * c-common.c (warning_candidate_p): Check for BLOCKs.
1128
a2fc3e63
NF
11292011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1130
1131 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1132 not tree_common.
1133
0957c029
JJ
11342011-05-25 Jakub Jelinek <jakub@redhat.com>
1135
1136 * c-common.c (def_fn_type): Remove extra va_end.
1137
828fb3ba
JM
11382011-05-23 Jason Merrill <jason@redhat.com>
1139
1140 PR c++/48106
1141 * c-common.c (c_common_get_narrower): New.
1142 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1143
dde05067
NF
11442011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1145
1146 * c-common.h (check_function_arguments): Tweak prototype of
1147 check_function_arguments.
1148 * c-common.c (check_function_arguments): Likewise. Adjust
1149 calls to check_function_nonnull, check_function_format, and
1150 check_function_sentinel.
1151 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1152 separate attributes and typelist arguments. Use
1153 FOREACH_FUNCTION_ARGS to iterate over argument types.
1154
3c0d13bf
PC
11552011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1156
1157 * c-common.c (c_common_reswords): Reorder.
1158 * c-common.h (rid): Likewise.
1159
8242dd04
NF
11602011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1161
1162 * c-common.c (def_fn_type): Don't call build_function_type, call
1163 build_function_type_array or build_varargs_function_type_array
1164 instead.
1165 (c_common_nodes_and_builtins): Likewise.
1166
3d528853
NF
11672011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1168
1169 * c-common.c (c_add_case_label): Omit the loc argument to
1170 build_case_label.
1171 * c-common.h (build_case_label): Remove.
1172 * c-semantics.c (build_case_label): Remove.
1173
a04a722b
JM
11742011-05-05 Joseph Myers <joseph@codesourcery.com>
1175
1176 * c-objc.h (objc_start_method_definition): Update prototype.
1177 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1178
e19a18d4
NF
11792011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1180
1181 * c-common.c (check_main_parameter_types): Reindent. Don't use
1182 TYPE_ARG_TYPES directly.
1183 (handle_nonnull_attribute): Likewise.
1184 (sync_resolve_params): Likewise.
1185 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1186 to check_format_string.
1187 (handle_format_attribute): Likewise.
1188 (check_format_string): Take a function type to examine instead of
1189 a type list. Use a function_arg_iterator to step through argument
1190 types.
1191
c62c040f
RG
11922011-05-04 Richard Guenther <rguenther@suse.de>
1193
1194 * c-common.c (fix_string_type): Use size_int for index type bounds.
1195 (start_fname_decls): Do not pass NULL to build_int_cst.
1196 (c_init_attributes): Likewise.
1197 * c-lex.c (c_lex_with_flags): Likewise.
1198
c12ff9d8
JM
11992011-04-27 Jason Merrill <jason@redhat.com>
1200
1201 * c-common.c (make_tree_vector_from_list): New.
1202 * c-common.h: Declare it.
1203
304dfbe3
RG
12042011-04-26 Richard Guenther <rguenther@suse.de>
1205
1206 PR preprocessor/48248
1207 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1208 for output size with -P.
1209
3c0d13bf
PC
12102011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1211
1212 * c-common.c (struct c_common_resword): Add __underlying_type.
1213 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1214
04695783
JM
12152011-04-20 Jim Meyering <meyering@redhat.com>
1216
1217 * c-format.c (init_dollar_format_checking): Remove useless
1218 if-before-free.
1219
0dc33c3c
NP
12202011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1221
1222 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 1223 (objc_detect_field_duplicates): New.
0dc33c3c 1224 * stub-objc.c: Likewise.
3c0d13bf 1225
c59633d9
NP
12262011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1227
1228 * stub-objc.c (objc_declare_protocols): Renamed to
1229 objc_declare_protocol.
1230 * c-objc.h: Likewise.
3c0d13bf 1231
32dabdaf
NP
12322011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1233
1234 * stub-objc.c (objc_declare_class): Updated argument name.
1235
81f653d6
NF
12362011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1237
1238 * c-common.h (c_common_init_ts): Declare.
1239 * c-common.c (c_common_init_ts): Define.
1240
eb345401
NP
12412011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1242
1243 * c-objc.h (objc_build_message_expr): Updated prototype.
1244 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 1245
a358e188
MJ
12462011-04-12 Martin Jambor <mjambor@suse.cz>
1247
1248 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1249 of cgraph_node.
1250
e6313a78
RG
12512011-04-11 Richard Guenther <rguenther@suse.de>
1252
1253 * c-common.c (complete_array_type): Build a range type of
1254 proper type.
1255
dcf0c47e
NF
12562011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1257
1258 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1259 (handle_type_generic_attribute): Likewise.
1260
1ee44b26
JM
12612011-04-07 Jason Merrill <jason@redhat.com>
1262
1263 PR c++/48450
1264 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1265 conversion from C++0x scoped enum.
1266
acce4e77
JM
12672011-04-06 Joseph Myers <joseph@codesourcery.com>
1268
1269 * c-target-def.h: New file.
1270 * c-target.def: New file.
1271 * c-target.h: New file.
1272 * c-common.c (targetcm): Don't define here.
1273 * c-common.h (default_handle_c_option): Declare.
1274 * c-format.c: Include c-target.h instead of target.h.
1275 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1276 include tm.h.
1277 (default_handle_c_option): Move from targhooks.c.
1278
e2eefb55
JJ
12792011-03-29 Jakub Jelinek <jakub@redhat.com>
1280
1281 PR preprocessor/48248
1282 * c-ppoutput.c (print): Add src_file field.
1283 (init_pp_output): Initialize it.
1284 (maybe_print_line): Don't optimize by adding up to 8 newlines
1285 if map->to_file and print.src_file are different file.
1286 (print_line): Update print.src_file.
1287
ba78087b
KT
12882011-03-25 Kai Tietz <ktietz@redhat.com>
1289
1290 * c-ada-spec.c (compare_comment): Use filename_cmp
1291 instead of strcmp for filename.
1292
0edf1bb2
JL
12932011-03-25 Jeff Law <law@redhat.com>
1294
1295 * c-family/c-common.c (def_fn_type): Add missing va_end.
1296
c7dc8804
JM
12972011-03-25 Jason Merrill <jason@redhat.com>
1298
1299 * c.opt: Add -std=c++03.
1300
d1d879b1
EB
13012011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1302
1303 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1304
62d784f7
KT
13052011-03-17 Kai Tietz
1306
1307 PR target/12171
5050afdf
KT
1308 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1309 Display allowed attributes for function pointer types.
1310 (pp_c_attributes_display): New function to display
1311 attributes having affects_type_identity flag set to true.
1312 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1313
62d784f7
KT
1314 * c-common.c (c_common_attribute_table):
1315 Add new element.
1316 (c_common_format_attribute_table): Likewise.
1317
82d37118
JM
13182011-03-18 Jason Merrill <jason@redhat.com>
1319
49a000c3
JM
1320 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1321 * c-common.h: Don't declare it here.
1322 * c-common.c: Or define it here.
1323 * c-opts.c (c_common_handle_option): Or set it here.
1324
82d37118
JM
1325 PR c++/35315
1326 * c-common.c (handle_transparent_union_attribute): Don't
1327 make a duplicate type in C++.
1328
17bc631c
JM
13292011-03-15 Jason Merrill <jason@redhat.com>
1330
1331 * c-common.c (max_constexpr_depth): New.
1332 * c-common.h: Declare it.
1333 * c-opts.c (c_common_handle_option): Set it.
1334 * c.opt (fconstexpr-depth): New option.
1335
1b9b91a6
JM
13362011-03-11 Jason Merrill <jason@redhat.com>
1337
f231b5ff
JM
1338 * c-common.c (attribute_takes_identifier_p): Add missing const.
1339
1b9b91a6
JM
1340 PR c++/46803
1341 * c-common.c (attribute_takes_identifier_p): Assume that an
1342 unknown attribute takes an identifier.
1343
a19e4d44
NF
13442011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1345
1346 PR c/47786
1347 * c-common.c (c_type_hash): Call list_length instead of iterating
1348 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1349
982d62f6
JJ
13502011-02-19 Jakub Jelinek <jakub@redhat.com>
1351
1352 PR c/47809
1353 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1354
0a256240
NP
13552011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1356
1357 * c.opt (fobjc-abi-version=) New.
1358 (fobjc-nilcheck): New.
1359
ba9e6dd5
NF
13602011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1361
1362 PR c++/46890
1363 * c-common.h (keyword_is_decl_specifier): Declare.
1364 * c-common.c (keyword_is_decl_specifier): Define.
1365 (keyword_is_function_specifier): New function.
1366
7273813a
JJ
13672011-01-26 Jakub Jelinek <jakub@redhat.com>
1368
1369 PR c/47473
1370 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1371 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1372 REAL_TYPE.
1373
908ef79b
AC
13742011-01-26 Arnaud Charlet <charlet@adacore.com>
1375
1376 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1377
237e9384
JJ
13782011-01-26 Jakub Jelinek <jakub@redhat.com>
1379
1380 PR pch/47430
1381 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1382 after init_c_lex if pch_file is set.
1383
47ea1edf
DK
13842011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1385
d4dba752 1386 PR c++/43601
47ea1edf
DK
1387 * c.opt (-fkeep-inline-dllexport): New switch.
1388
2aa9c6ae
RG
13892011-01-12 Richard Guenther <rguenther@suse.de>
1390
1391 PR middle-end/32511
1392 * c-common.c (handle_weak_attribute): Warn instead of error
1393 on declaring an inline function weak.
1394
7bd11157
TT
13952011-01-05 Tom Tromey <tromey@redhat.com>
1396
1397 * c-common.h (lvalue_error): Update.
1398 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1399 not error.
1400
0e66e494 14012010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 1402
b4f588c4
NP
1403 PR objc/47075
1404 * c-objc.h (objc_finish_message_expr): Added argument to
1405 prototype.
1406
f4da8dce
NF
14072010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1408
1409 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1410 Use prototype_p.
1411
46270f14
NP
14122010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1413
1414 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 1415 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 1416
4816c593
NF
14172010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1418
1419 * c-common.h (readonly_error): Declare.
1420 * c-common.c (readonly_error): Define.
1421
7a6daeb0
NF
14222010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1423
1424 * c-common.h (invalid_indirection_error): Declare.
1425 * c-common.c (invalid_indirection_error): Define.
1426
892f6119
RG
14272010-12-03 Richard Guenther <rguenther@suse.de>
1428
1429 PR c/46745
1430 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1431 (pp_c_unary_expression): Likewise.
1432 (pp_c_expression): Likewise.
1433
6c39e757
NP
14342010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1435
1436 * c-common.h (objc_finish_function): New.
1437 (objc_non_volatilized_type): Removed.
1438 (objc_type_quals_match): Removed.
1439 * stub-objc.c (objc_finish_function): New.
1440 (objc_non_volatilized_type): Removed.
1441 (objc_type_quals_match): Removed.
9faeb493 1442
7c475d11
JM
14432010-11-30 Joseph Myers <joseph@codesourcery.com>
1444
1445 * c-common.h (parse_optimize_options): Declare.
1446 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1447 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1448
71f3e391
JM
14492010-11-29 Joseph Myers <joseph@codesourcery.com>
1450
1451 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1452 GET_ENVIRONMENT.
1453 * c-pch.c (O_BINARY): Don't define here.
1454 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1455
d5fabb58
JM
14562010-11-25 Joseph Myers <joseph@codesourcery.com>
1457
1458 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1459 targetm.except_unwind_info.
1460
299404a1
JM
14612010-11-23 Joseph Myers <joseph@codesourcery.com>
1462
1463 * c-opts.c (c_common_handle_option): Pass location to
1464 set_struct_debug_option.
1465
c98cd5bf
JM
14662010-11-23 Joseph Myers <joseph@codesourcery.com>
1467
1468 * c-common.c (visibility_options): Move from ../opts.c.
1469 * c-common.h (struct visibility_flags, visibility_options):
1470 Declare here.
1471 * c-opts.c (finish_options): Rename to c_finish_options.
1472 (c_common_init): Update call to finish_options.
1473
a9546771
NP
14742010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1475
1476 PR objc/34033
1477 * c-lex.c (lex_string): Check that each string in an Objective-C
1478 string concat sequence starts with either one or zero '@', and
1479 that there are no spurious '@' signs at the end.
1480
24a57808
JM
14812010-11-20 Joseph Myers <joseph@codesourcery.com>
1482
1483 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1484 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1485 HANDLE_PRAGMA_VISIBILITY.
1486 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1487 HANDLE_PRAGMA_VISIBILITY): Don't define.
1488 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1489
a9aa2c3a
NF
14902010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1491
1492 PR c++/16189
1493 PR c++/36888
1494 PR c++/45331
1495 * c-common.h (keyword_begins_type_specifier): Declare.
1496 (keyword_is_storage_class_specifier): Declare.
1497 (keyword_is_type_qualifier): Declare.
1498 * c-common.c (keyword_begins_type_specifier): New function.
1499 (keyword_is_storage_class_specifier): New function.
1500 (keyword_is_type_qualifier): Declare.
1501
5386338c
JM
15022010-11-19 Joseph Myers <joseph@codesourcery.com>
1503
1504 PR c/46547
1505 * c-common.c (in_late_binary_op): Define.
1506 (c_common_truthvalue_conversion): Check in_late_binary_op before
1507 calling c_save_expr.
1508 * c-common.h (in_late_binary_op): Declare.
1509
69ccdddb
JM
15102010-11-19 Joseph Myers <joseph@codesourcery.com>
1511
1512 * c-opts.c (c_common_handle_option): Update calls to
1513 set_struct_debug_option.
1514
6b192a09
NP
15152010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1516
1517 * c-common.h (objc_declare_protocols): Added additional argument.
1518 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 1519
fb52b50a
NF
15202010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1521
1522 PR c/33193
1523 * c-common.h (build_real_imag_expr): Declare.
1524 * c-semantics.c (build_real_imag_expr): Define.
1525
b37421c6
JM
15262010-11-17 Joseph Myers <joseph@codesourcery.com>
1527
1528 * c-opts.c (c_common_parse_file): Take no arguments.
1529 * c-common.h (c_common_parse_file): Update prototype.
1530
07078664
JJ
15312010-11-16 Jakub Jelinek <jakub@redhat.com>
1532
1533 PR c++/46401
1534 * c-common.c (warning_candidate_p): Don't track non-const calls
1535 or STRING_CSTs.
1536
c6a13190
ILT
15372010-11-15 Ian Lance Taylor <iant@google.com>
1538
1539 * c-lex.c (init_c_lex): Set macro debug callbacks if
1540 flag_dump_go_spec is set.
1541
925e8657
NP
15422010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1543
1544 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1545 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1546
bb0a9581
NF
15472010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1548
1549 PR preprocessor/45038
1550 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1551 dialects.
1552
c5fa0890
JM
15532010-11-12 Joseph Myers <joseph@codesourcery.com>
1554
1555 * c-common.h (c_family_lang_mask): Declare.
1556 * c-opts.c (c_family_lang_mask): Make extern.
1557 * c-pragma.c (handle_pragma_diagnostic): Use
1558 control_warning_option.
1559
a4d8c676
JM
15602010-11-12 Joseph Myers <joseph@codesourcery.com>
1561
1562 * c-common.c (parse_optimize_options): Update call to
1563 decode_options.
1564 * c-common.h (c_common_handle_option): Update prototype.
1565 * c-opts.c (c_common_handle_option): Take location_t parameter and
1566 pass it to other functions.
1567
f954bd2c
JM
15682010-11-11 Joseph Myers <joseph@codesourcery.com>
1569
1570 * c-opts.c (warning_as_error_callback): Remove.
1571 (c_common_initialize_diagnostics): Don't call
1572 register_warning_as_error_callback.
1573 (c_common_handle_option): Handle -Werror=normalized= here.
1574
d8a07487
JM
15752010-11-10 Joseph Myers <joseph@codesourcery.com>
1576
1577 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1578 in diagnostic.
1579 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1580 letter.
1581 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1582 Remove trailing '.' from diagnostics.
1583 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1584
d5478783
JM
15852010-11-10 Joseph Myers <joseph@codesourcery.com>
1586
1587 * c-common.c (parse_optimize_options): Pass global_dc to
1588 decode_options.
1589 * c-opts.c (c_common_handle_option): Pass &global_options to
1590 set_Wstrict_aliasing.
1591 * c.opt (v): Don't mark Common or document here.
1592
91ebb981
IS
15932010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1594
1595 PR target/44981
1596 * c-format.c (format_type): New type gcc_objc_string_format_type.
1597 (valid_stringptr_type_p): New.
1598 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 1599 (check_format_string): Pass expected type, use
91ebb981
IS
1600 valid_stringptr_type_p (), check that the format string types are
1601 consistent with the format specification.
1602 (decode_format_attr): Warn if NSString is used outside objective-c.
1603 (format_types_orig): Add NSString.
1604 (format_name): New.
1605 (format_flags): New.
1606 (check_format_arg): Handle format strings requiring an external parser.
1607 first_target_format_type: New variable.
1608 (handle_format_attribute): Set up first_target_format_type, pass the
1609 expected format arg string type to check_format_string().
1610 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1611 * stub-objc.c (objc_string_ref_type_p): New.
1612 (objc_check_format_arg): New.
1613
bede2adc
NP
16142010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1615
9faeb493 1616 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
1617 * c-common.h (objc_build_class_component_ref): New.
1618 * stub-objc.c (objc_build_class_component_ref): New.
1619
9a179d01
NP
16202010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1621
1622 * c.opt (Wproperty-assign-default): New option.
1623
22d8d616
NP
16242010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1625
1626 Implemented -fobjc-std=objc1 flag.
1627 * c.opt (fobjc-std=objc1): New option.
1628
2debdb4f
NP
16292010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1630
1631 Implemented format and noreturn attributes for Objective-C methods.
1632 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1633 attribute for Objective-C methods.
1634
ec52b111
JM
16352010-10-31 Jason Merrill <jason@redhat.com>
1636
1637 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1638 EXPR_LOC_OR_HERE.
1639
46a88c12
NP
16402010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1641
1642 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1643 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1644 (objc_add_property_declaration): Removed arguments for copies and
1645 ivar.
1646 (objc_build_getter_call): Renamed to
1647 objc_maybe_build_component_ref.
1648 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1649 (objc_is_property_ref): New.
1650 * c-common.c (c_common_reswords): Removed copies and ivar.
1651 * stub-objc.c (objc_add_property_declaration): Removed arguments
1652 for copies and ivar.
1653 (objc_build_getter_call): Renamed to
1654 objc_maybe_build_component_ref.
1655 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1656 (objc_is_property_ref): New.
9faeb493 1657
1e4bf85b
AC
16582010-10-29 Arnaud Charlet <charlet@adacore.com>
1659 Matthew Gingell <gingell@adacore.com>
1660
1661 * c-ada-spec.c (separate_class_package): New function.
1662 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1663 name of their enclosing package.
1664 (print_ada_declaration): Use separate_class_package.
1665
81f0bab2
JM
16662010-10-27 Jason Merrill <jason@redhat.com>
1667
2b08f2c5
JM
1668 * c-common.c (c_common_reswords): Add __is_literal_type.
1669 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1670
81f0bab2
JM
1671 * c-common.c (check_case_value): Remove special C++ code.
1672
200290f2
NP
16732010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1674
1675 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1676 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1677 and RID_LAST_PATTR.
1678 (objc_add_property_declaration): Added additional arguments.
1679 (objc_property_attribute_kind): Removed.
1680 (objc_set_property_attr): Removed.
1681 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1682 copy and nonatomic.
1683 * stub-objc.c (objc_add_property_declaration): Added additional
1684 arguments.
1685 (objc_set_property_attr): Removed.
9faeb493 1686
f614132b
NP
16872010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1688
1689 * c-common.h (objc_add_property_variable): Renamed to
1690 objc_add_property_declaration. Added location argument.
1691 * stub-objc.c (objc_add_property_variable): Same change.
1692
b8a18805
NP
16932010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1694
1695 * c-common.h (objc_maybe_printable_name): New.
1696 * stub-objc.c (objc_maybe_printable_name): New.
1697
30cd1c5d
AS
16982010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1699 Andrew Pinski <pinskia@gmail.com>
1700
1701 * c-common.h (c_common_mark_addressable_vec): Declare.
1702 * c-common.c (c_common_mark_addressable_vec): New function.
1703
249a82c4
NP
17042010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1705
1706 * c-common.h (objc_set_method_type): Removed.
1707 (objc_add_method_declaration): Added boolean argument.
1708 (objc_start_method_definition): Same change.
1709 (objc_build_method_signature): Same change.
1710 * stub-objc.c (objc_set_method_type): Removed.
1711 (objc_add_method_declaration): Added boolean argument.
1712 (objc_start_method_definition): Same change.
1713 (objc_build_method_signature): Same change.
1714
977e30bc
NP
17152010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1716
1717 * c-common.h (finish_file): Removed.
1718 (objc_write_global_declarations): New.
1719 * c-opts.c (c_common_parse_file): Do not call finish_file.
1720 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 1721
da57d1b9
NP
17222010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1723
1724 Implemented parsing @synthesize and @dynamic for
1725 Objective-C/Objective-C++.
1726 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1727 (objc_add_synthesize_declaration): New.
1728 (objc_add_dynamic_declaration): New.
1729 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1730 * stub-objc.c (objc_add_synthesize_declaration): New.
1731 (objc_add_dynamic_declaration): New.
9faeb493 1732
0069111f
MM
17332010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1734
1735 PR target/46041
1736 * c-cppbuiltin.c (mode_has_fma): Move function here from
1737 builtins.c. Don't use the fma optab, instead just use the
1738 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1739 using -save-temps.
1740
e426b47b
NP
17412010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1742
1743 Merge from 'apple/trunk' branch on FSF servers.
0069111f 1744
e426b47b
NP
1745 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1746
9faeb493 1747 Radar 4330422
e426b47b
NP
1748 * c-common.h (objc_non_volatilized_type): New declaration
1749 * stub-objc.c (objc_non_volatilized_type): New stub.
1750
90fbfdc3
NP
17512010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1752
e426b47b 1753 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
1754
1755 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1756
9faeb493 1757 Radar 4133425
90fbfdc3 1758 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 1759 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 1760
c37d8c30
IS
17612010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1762
1763 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1764 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1765 (objc_ivar_visibility_kind): New enum.
1766 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 1767 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
1768 visibility enum.
1769
1b1562a5
MM
17702010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1771
1772 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1773 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1774 has the appropriate fma builtins.
1775 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1776
668ea4b1
IS
17772010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1778
1b1562a5 1779 merge from FSF apple 'trunk' branch.
668ea4b1 1780 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 1781
668ea4b1
IS
1782 Radars 4436866, 4505126, 4506903, 4517826
1783 * c-common.c (c_common_resword): Define @property and its attributes.
1784 * c-common.h: Define property attribute enum entries.
1785 (OBJC_IS_PATTR_KEYWORD): New.
1786 (objc_property_attribute_kind): New enum.
1787 Declare objc_set_property_attr (), objc_add_property_variable (),
1788 objc_build_getter_call () and objc_build_setter_call ().
1789 * stub-objc.c (objc_set_property_attr): New stub.
1790 (objc_add_property_variable): Likewise.
1791 (objc_build_getter_call): Likewise.
1792 (objc_build_setter_call) Likewise.
1b1562a5 1793
a1178b30
IS
17942010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1795
1b1562a5 1796 merge from FSF apple 'trunk' branch.
a1178b30
IS
1797 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1798
1799 Radar 3803157 (method attributes)
1800 * c-common.c (handle_deprecated_attribute): Recognize
1801 objc methods as valid declarations.
1802 * c-common.h: Declare objc_method_decl ().
1b1562a5 1803 * stub-objc.c (objc_method_decl): New stub.
a1178b30 1804
a75bfaa6
JM
18052010-10-08 Joseph Myers <joseph@codesourcery.com>
1806
1807 * c-common.c (parse_optimize_options): Call
1808 decode_cmdline_options_to_array_default_mask before
1809 decode_options. Update arguments to decode_options.
1810 * c-common.h (c_common_init_options_struct): Declare.
1811 * c-opts.c (c_common_init_options_struct): New. Split out from
1812 c_common_init_options.
1813
f05b9d93
NP
18142010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1815
1816 Implemented fast enumeration for Objective-C.
1817 * c-common.h (objc_finish_foreach_loop): New.
1818 * stub-objc.c (objc_finish_foreach_loop): New.
1819
1ebe4b4f
JM
18202010-10-05 Joseph Myers <joseph@codesourcery.com>
1821
1822 * c-common.h (struct diagnostic_context): Don't declare here.
1823 (c_common_initialize_diagnostics): Declare using
1824 diagnostic_context typedef.
1825 * c-opts.c (c_common_handle_option): Pass global_dc to
1826 handle_generated_option.
1827
d4d24ba4
JM
18282010-10-04 Joseph Myers <joseph@codesourcery.com>
1829
1830 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1831 handle_generated_option.
1832
478a1c5b
ILT
18332010-10-03 Ian Lance Taylor <iant@google.com>
1834
1835 * c.opt (-fplan9-extensions): New option.
1836
82a1c2fe
FXC
18372010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1838
1839 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1840 Remove.
1841 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1842 of duplicating code.
1843
92902b1b
IS
18442010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1845
1846 * c-common.c: Add two new entries for @optional
1847 and @required keywords.
1848
1849 merge from FSF 'apple/trunk' branch.
1850 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1851
1852 Radar 4386773
1853 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1854 objective-c keywords.
1855 (objc_set_method_opt): New declaration.
1856 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 1857
46625112
JM
18582010-09-30 Joseph Myers <joseph@codesourcery.com>
1859
1860 * c-common.c (handle_optimize_attribute): Pass &global_options to
1861 cl_optimization_save and cl_optimization_restore.
1862 * c-opts.c (c_common_handle_option): Pass &global_options to
1863 handle_generated_option.
1864 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1865 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1866 &global_options to cl_optimization_restore.
1867
49b91f05
NP
18682010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1869
1870 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1871 Objective-C/Objective-C++ keywords.
1872
13ed556f 18732010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 1874
9faeb493
UB
1875 Merge from 'apple/trunk' branch on FSF servers.
1876
a6341d57
NP
1877 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1878
1879 Radar 4281748
1880 * c-common.h (objc_check_global_decl): New declaration.
1881 * stub-objc.c (objc_check_global_decl): New stub.
1882
f0036cca
JM
18832010-09-29 Joseph Myers <joseph@codesourcery.com>
1884
1885 * c.opt: Don't use VarExists.
1886
e3339d0f
JM
18872010-09-29 Joseph Myers <joseph@codesourcery.com>
1888
1889 * c-common.c (c_cpp_error): Update names of diagnostic_context
1890 members.
1891 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1892 cl_optimization members.
1893 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1894 sanitize_cpp_opts, finish_options): Update names of cpp_options
1895 members.
1896
1973201f
NP
18972010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1898
1899 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1900 (objc_is_reserved_word): Removed.
1901 * c-common.c: Updated comments.
1902 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1903 objc_is_reserved_word.
1904 * stub-objc.c (objc_is_reserved_word): Removed.
1905
f7e71da5
IS
19062010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1907
9faeb493 1908 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
1909 include attributes.
1910 (objc_start_method_definition): Likewise.
1911 (objc_build_keyword_decl): Likewise.
1912 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1913 (objc_start_method_definition): Likewise.
1914 (objc_build_keyword_decl): Likewise.
1915
c165dca7
IS
19162010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1917
1918 * c-common.h (objc_start_class_interface): Adjust prototype.
1919 (objc_start_category_interface): Likewise.
1920 (objc_start_protocol): Likewise.
1921 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1922 (objc_start_class_interface): Likewise.
1923 (objc_start_category_interface): Likewise.
1924
7458026b
ILT
19252010-09-27 Ian Lance Taylor <iant@google.com>
1926
1927 * c-common.c (c_common_attribute_table): Add no_split_stack.
1928 (handle_no_split_stack_attribute): New static function.
1929
b581b85b
NP
19302010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1931
9faeb493 1932 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
1933
1934 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1935
9faeb493 1936 Radar 4229905
b581b85b
NP
1937 * c-common.h (objc_have_common_type): New declaration.
1938 * stub-objc.c (objc_have_common_type): New stub.
1939
1940 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1941
1942 Radar 4154928
1943 * c-common.h (objc_common_type): New prototype.
9faeb493 1944 * stub-objc.c (objc_common_type): New stub.
b581b85b 1945
46a4da10
JH
19462010-09-24 Jan Hubicka <jh@suse.cz>
1947
1948 * c-common.c (handle_leaf_attribute): New function.
1949 (struct attribute_spec c_common_att): Add leaf.
1950
e200444e
JM
19512010-09-22 Joseph Myers <joseph@codesourcery.com>
1952
1953 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1954 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1955 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1956 -include-barrier, -include-directory, -include-directory=,
1957 -include-directory-after, -include-directory-after=,
1958 -include-prefix, -include-prefix=, -include-with-prefix,
1959 -include-with-prefix=, -include-with-prefix-after,
1960 -include-with-prefix-after=, -include-with-prefix-before,
1961 -include-with-prefix-before=, -no-integrated-cpp,
1962 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1963 -output=, -pedantic, -pedantic-errors, -preprocess,
1964 -print-missing-file-dependencies, -trace-includes, -traditional,
1965 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1966 -user-dependencies, -verbose, -write-dependencies,
1967 -write-user-dependencies, no-integrated-cpp, traditional): New.
1968
29a80ea6
NP
19692010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1970
1971 PR objc/23710
ac1fc2fc
NP
1972 * c-common.h (objc_start_method_definition): Return bool instead
1973 of void.
1974 * stub-objc.c (objc_start_method_definition): Return bool instead
1975 of void.
1976
19772010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1978
1979 PR objc/25965
1980 * c-common.h (objc_get_interface_ivars): New declaration.
1981 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 1982
de621752
ILT
19832010-09-15 Ian Lance Taylor <iant@google.com>
1984
1985 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 1986 messages. Remove period at end of warning message.
de621752 1987
ba885ec5
NS
19882010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1989
1990 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1991 (handle_alias_attribute): ... here.
1992 (handle_ifunc_attribute): New.
1993
c5ee1358
MM
19942010-09-06 Mark Mitchell <mark@codesourcery.com>
1995
1996 * c-common.h (do_warn_double_promotion): Declare.
1997 * c-common.c (do_warn_double_promotion): Define.
1998
0a0b3574
MM
19992010-09-05 Mark Mitchell <mark@codesourcery.com>
2000
2001 * c.opt (Wdouble-promotion): New.
2002
d1779886
JM
20032010-09-02 Joseph Myers <joseph@codesourcery.com>
2004
2005 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2006 fvtable-thunks, fxref): Mark no longer supported in help text.
2007
2d2bd949
JM
20082010-09-02 Joseph Myers <joseph@codesourcery.com>
2009
2010 * c.opt (Wimport, fall-virtual, falt-external-templates,
2011 fdefault-inline, fenum-int-equiv, fexternal-templates,
2012 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2013 fname-mangling-version-, fnew-abi, fnonnull-objects,
2014 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2015 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2016 applicable.
2017 (fhandle-exceptions): Mark with Alias and Warn.
2018 * c-opts.c (c_common_handle_option): Don't handle options marked
2019 as ignored.
2020
5de8299c
JM
20212010-09-02 Joseph Myers <joseph@codesourcery.com>
2022
2023 * c.opt (Wcomments, Werror-implicit-function-declaration,
2024 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2025 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2026 aliases.
2027 * c-common.c (option_codes): Use OPT_Wcomment instead of
2028 OPT_Wcomments.
2029 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2030 Don't handle options marked as aliases.
2031
0ceb0201
RG
20322010-08-25 Richard Guenther <rguenther@suse.de>
2033
2034 * c-common.c (c_common_get_alias_set): Remove special
2035 handling for pointers.
2036
ac47786e
NF
20372010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2038
2039 * c-common.c: Use FOR_EACH_VEC_ELT.
2040 * c-gimplify.c: Likewise.
2041 * c-pragma.c: Likewise.
2042
c878765b
JM
20432010-08-16 Joseph Myers <joseph@codesourcery.com>
2044
2045 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2046 RejectDriver.
2047 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2048 RejectDriver.
2049 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2050 instead of OPT_MDX and OPT_MMDX.
2051
603349bf
JM
20522010-08-16 Joseph Myers <joseph@codesourcery.com>
2053
2054 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2055
644fa7ac
JM
20562010-08-12 Joseph Myers <joseph@codesourcery.com>
2057
2058 * c.opt (MD, MMD): Change to MDX and MMDX.
2059 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2060
481e1176
JM
20612010-08-11 Joseph Myers <joseph@codesourcery.com>
2062
2063 * c-opts.c (c_common_handle_option): Call handle_generated_option
2064 instead of handle_option.
2065
ac8dc9f7
NF
20662010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2067
2068 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2069 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2070
4f8c876d
NF
20712010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2072
2073 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2074 (pending_redefine_extname): Change type to a VEC.
2075 (add_to_renaming_pragma_list): Update for new type of
2076 pending_redefine_extname.
ac8dc9f7 2077 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 2078
3b0c690e
AC
20792010-08-04 Arnaud Charlet <charlet@adacore.com>
2080
2081 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2082 visited.
2083 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2084 decide whether a type has already been declared/seen.
2085 Do not go to the original type.
2086 (dump_nested_types): New parameter forward.
2087 Generate forward declaration if needed and mark type as visited.
2088 (print_ada_declaration): Call dump_nested_types if not already done.
2089 Mark types as visited.
2090
1890bccc
JM
20912010-08-03 Joseph Myers <joseph@codesourcery.com>
2092
2093 * c.opt (-print-pch-checksum): Remove option.
2094 * c-opts.c (c_common_handle_option): Don't handle
2095 OPT_print_pch_checksum.
2096
5f20c657
JM
20972010-07-27 Joseph Myers <joseph@codesourcery.com>
2098
2099 * c-common.h (c_common_handle_option): Update prototype and return
2100 value type.
2101 * c-opts.c (c_common_handle_option): Update prototype and return
2102 value type. Update calls to handle_option and
2103 enable_warning_as_error.
2104
f551f80c
JJ
21052010-07-27 Jakub Jelinek <jakub@redhat.com>
2106
2107 PR c/45079
2108 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2109
61ff2bdc
JM
21102010-07-27 Joseph Myers <joseph@codesourcery.com>
2111
2112 * c-common.h (c_common_missing_argument): Remove.
2113 * c-opts.c (c_common_missing_argument): Remove.
2114 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2115 idirafter, imacros, include, isysroot, isystem, iquote): Add
2116 MissingArgError.
2117 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2118
7a9bf9a4
JM
21192010-07-27 Joseph Myers <joseph@codesourcery.com>
2120
2121 * c-common.h (c_common_option_lang_mask,
2122 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2123 New.
2124 (c_common_init_options): Update prototype.
2125 * c-opts.c (c_common_option_lang_mask): New.
2126 (c_common_initialize_diagnostics): Split out of
2127 c_common_init_options.
2128 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2129 New.
2130 (c_common_init_options): Update prototype. Use decoded options in
2131 search for -lang-asm.
2132
910ad8de
NF
21332010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2134
2135 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2136 * c-format.c: Likewise.
2137
718f9c0f
MLI
21382010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2139
2140 * c-common.h: Include diagnostic-core.h. Error if already
2141 included.
2142 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2143
4d451982
MLI
21442010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2145
2146 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2147 Do not include expr.h
2148 (vector_mode_valid_p): Move here.
2149
119fe915
SB
21502010-06-21 DJ Delorie <dj@redhat.com>
2151
2152 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2153 allow these pragmas anywhere.
2154
21552010-06-14 Jakub Jelinek <jakub@redhat.com>
2156
2157 PR bootstrap/44509
2158 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2159 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2160 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2161 ggc_strdup instead of xstrdup.
2162
21632010-06-10 Jakub Jelinek <jakub@redhat.com>
2164
2165 * c-cppbuiltin.c: Include cpp-id-data.h.
2166 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2167 (lazy_hex_fp_value): New function.
2168 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2169
6662d794
MLI
21702010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2171
2172 * c-gimplify.c: Do not include tree-flow.h
2173
38f8b050
JR
21742010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2175
2176 PR other/44034
2177 * c-common.c: Rename targetm member:
2178 targetm.enum_va_list -> targetm.enum_va_list_p
2179
9589f23e
AS
21802010-06-28 Anatoly Sokolov <aesok@post.ru>
2181
2182 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2183
3b06d379
SB
21842010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2185
2186 * c-cppbuiltin.c: Do not include except.h.
2187
d166d4c3
AK
21882010-06-24 Andi Kleen <ak@linux.intel.com>
2189
9faeb493
UB
2190 * c-common.c (warn_for_omitted_condop): New.
2191 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 2192
70cb8be6
JM
21932010-06-21 Joseph Myers <joseph@codesourcery.com>
2194
2195 * c.opt (lang-objc): Remove.
2196 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2197
a4c97feb
JR
21982010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2199
2200 * c-opts.c: Include "tm_p.h".
2201
6e2f1956
JM
22022010-06-20 Joseph Myers <joseph@codesourcery.com>
2203
2204 * c-common.c (parse_optimize_options): Update call to
2205 decode_options.
2206
bc87224e
NF
22072010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2208
2209 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2210 new type of types_used_by_cur_var_decl.
2211
b49cf425
JR
22122010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2213
2214 PR bootstrap/44512
2215 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2216 for C++ standard compliance.
2217
59f9c2ed
JM
22182010-06-16 Jason Merrill <jason@redhat.com>
2219
2220 * c.opt: Add -Wnoexcept.
2221
33766b66
RG
22222010-06-16 Richard Guenther <rguenther@suse.de>
2223
2224 PR c/44555
2225 * c-common.c (c_common_truthvalue_conversion): Remove
2226 premature and wrong optimization concering ADDR_EXPRs.
2227
eff7e30c
AC
22282010-06-15 Arnaud Charlet <charlet@adacore.com>
2229
2230 * c-ada-spec.c (dump_sloc): Remove column info.
2231 (is_simple_enum): New function.
2232 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2233 enum types when relevant.
2234
6312e84d
MLI
22352010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2236
9faeb493 2237 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
2238 location.
2239
1cb42611
JM
22402010-06-10 Joseph Myers <joseph@codesourcery.com>
2241
2242 * c-opts.c (c_common_handle_option): Don't handle
2243 OPT_fshow_column.
2244
a9429e29
LB
22452010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2246
2247 * c-pragma.c (push_alignment): Use typed GC allocation.
2248 (handle_pragma_push_options): Likewise.
2249
2250 * c-common.c (parse_optimize_options): Likewise.
2251
2252 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2253 option.
2254
5498f011
JM
22552010-06-07 Joseph Myers <joseph@codesourcery.com>
2256
2257 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2258 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2259 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2260 flag_signed_bitfields, warn_strict_null_sentinel,
2261 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2262 flag_gen_declaration, flag_no_gnu_keywords,
2263 flag_implement_inlines, flag_implicit_templates,
2264 flag_implicit_inline_templates, flag_optional_diags,
2265 flag_elide_constructors, flag_default_inline, flag_rtti,
2266 flag_conserve_space, flag_access_control, flag_check_new,
2267 flag_new_for_scope, flag_weak, flag_working_directory,
2268 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2269 flag_enforce_eh_specs, flag_threadsafe_statics,
2270 flag_pretty_templates): Remove.
2271 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2272 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2273 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2274 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2275 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2276 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2277 flag_no_gnu_keywords, flag_implement_inlines,
2278 flag_implicit_templates, flag_implicit_inline_templates,
2279 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2280 flag_rtti, flag_conserve_space, flag_access_control,
2281 flag_check_new, flag_new_for_scope, flag_weak,
2282 flag_working_directory, flag_use_cxa_atexit,
2283 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2284 flag_threadsafe_statics, flag_pretty_templates,
2285 warn_strict_null_sentinel): Remove.
2286 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2287 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2288 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2289 fimplicit-inline-templates, fimplicit-templates,
2290 flax-vector-conversions, fms-extensions, fnil-receivers,
2291 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2292 frtti, fshort-double, fshort-enums, fshort-wchar,
2293 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2294 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2295 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2296 gen-decls, undef): Use Var.
2297 (fdefault-inline, foptional-diags): Document as doing nothing.
2298 * c-opts.c (c_common_handle_option): Remove cases for options now
2299 using Var. Mark ignored options as such.
2300
39dabefd
SB
23012010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2302
9faeb493 2303 * c-common.c: Moved to here from parent directory.
39dabefd
SB
2304 * c-common.def: Likewise.
2305 * c-common.h: Likewise.
2306 * c-cppbuiltin.c: Likewise.
2307 * c-dump.c: Likewise.
2308 * c-format.c: Likewise.
2309 * c-format.h : Likewise.
2310 * c-gimplify.c: Likewise.
2311 * c-lex.c: Likewise.
2312 * c-omp.c: Likewise.
2313 * c.opt: Likewise.
2314 * c-opts.c: Likewise.
2315 * c-pch.c: Likewise.
2316 * c-ppoutput.c: Likewise.
2317 * c-pragma.c: Likewise.
2318 * c-pragma.h: Likewise.
2319 * c-pretty-print.c: Likewise.
2320 * c-pretty-print.h: Likewise.
2321 * c-semantics.c: Likewise.
2322 * stub-objc.c: Likewise.
2323
2324 * c-common.c: Include gt-c-family-c-common.h.
2325 * c-pragma.c: Include gt-c-family-c-pragma.h.
2326\f
04695783 2327Copyright (C) 2010, 2011 Free Software Foundation, Inc.
39dabefd
SB
2328
2329Copying and distribution of this file, with or without modification,
2330are permitted in any medium without royalty provided the copyright
2331notice and this notice are preserved.
This page took 0.933405 seconds and 5 git commands to generate.