]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
sh.c (sh_can_use_simple_return_p): Enable with -freorder-blocks-and-partition.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
7332899a
MLI
12012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2
3 PR c/53063
4 * c.opt (Wformat): Make it Alias Wformat=1.
5 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
6 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
7 LangEnabledBy.
8 (Wformat=): RejectNegative. Use LangEnabledBy.
9 (Wnonnull): Use LangEnabledBy.
10 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
11 * c-format.c (set_Wformat): Delete.
12 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
13 (maybe_read_dollar_number): Likewise.
14 (avoid_dollar_number): Likewise.
15 (finish_dollar_format_checking): Likewise.
16 (check_format_info): Likewise.
17 (check_format_info_main): Likewise.
18 (check_format_types): Likewise.
19 (format_type_warning): Likewise.
20 * c-common.c (int): Likewise.
21 (check_function_sentinel): Likewise.
22 * c-common.h (warn_format,set_Wformat): Do not declare here.
23
34a180a6
MLI
242012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
25
26 PR c/53063
27 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
28 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
29 Use LangEnabledBy.
30 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
31 common.opt.
32 (Wvariadic-macros): Init(1).
33 * c-opts.c (c_common_handle_option): Do not handle them
34 explicitly.
35 (c_common_post_options): Likewise.
36 (sanitize_cpp_opts): warn_unused_macros is now
37 cpp_warn_unused_macros.
38 (push_command_line_include): Likewise.
39 * c-common.c (warn_unknown_pragmas): Do not define.
40 * c-common.h (warn_unknown_pragmas): Do not declare.
41
3f46d6a5
MLI
422012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
43
44 PR c/51294
45 * c-common.c (conversion_warning): Handle conditional expressions.
46
880661a4
JW
472012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
48
49 PR c++/54930
50 * c.opt (Wreturn_local_addr): Define new option.
51
4514a96b
JM
522012-10-25 Jason Merrill <jason@redhat.com>
53
f14edc1a
JM
54 * c.opt (Wvirtual-move-assign): New.
55
4514a96b
JM
56 * c.opt (Winherited-variadic-ctor): New.
57
93100c6b
MG
582012-10-25 Marc Glisse <marc.glisse@inria.fr>
59
60 PR c++/54427
61 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
62
1efcb8c6
JM
632012-10-23 Joseph Myers <joseph@codesourcery.com>
64
65 * c-common.h (pch_cpp_save_state): Declare.
66 * c-target.def (c_preinclude): New hook.
67 * c-opts.c (done_preinclude): New.
68 (push_command_line_include): Handle default preincluded header.
69 (cb_file_change): Call pch_cpp_save_state when calling
70 push_command_line_include.
71 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
72 (pch_cpp_save_state): New.
73 (pch_init): Call pch_cpp_save_state conditionally, instead of
74 calling cpp_save_state.
75
4a0ae68e
MLI
762012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
77
78 PR c/53063
79 PR c/40989
80 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
81 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
82 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
83 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
84 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
85 * c-opts.c (c_common_handle_option): Remove explicit handling from
86 here.
87 (c_common_post_options): Likewise.
88
67e4210b
EB
892012-10-18 Eric Botcazou <ebotcazou@adacore.com>
90
91 * c-ada-spec.c (LOCATION_COL): Delete.
92 (compare_location): New function.
93 (compare_node): Use it.
94 (compare_comment): Likewise.
95
65d4f2cd
MLI
962012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
97
98 PR c/53063
99 PR c/40989
100 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
101 * c-opts.c (c_common_handle_option): Do not set them here. Add
102 comment.
103 (c_common_post_options): Likewise.
104
909881cb
EB
1052012-10-16 Eric Botcazou <ebotcazou@adacore.com>
106
107 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
108 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
109 Remove POINTER_TYPE handling, add large unsigned handling and use
110 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
111
3a785c97
JJ
1122012-10-12 Jakub Jelinek <jakub@redhat.com>
113
114 PR c/54381
115 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
116 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
117 locs and array of 3 trees instead of just single loc and single
118 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
119 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
120 For *cmp* builtins that take two sources strings report warnings
121 about first and second source, not about destination and source.
122
5e54f81d
MG
1232012-10-12 Marc Glisse <marc.glisse@inria.fr>
124
125 PR c++/53055
126 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
127
f5b02f1e
EB
1282012-10-11 Eric Botcazou <ebotcazou@adacore.com>
129
130 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
131 declaring something coming from another file.
132
b46dbc6c
AC
1332012-10-10 Arnaud Charlet <charlet@adacore.com>
134
f5b02f1e 135 PR ada/54845
b46dbc6c
AC
136 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
137
5d9de0d0
PC
1382012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
139
140 PR c++/54194
141 * c-common.c (warn_about_parentheses): Add location_t parameter;
142 use EXPR_LOC_OR_LOC.
143 * c-common.h: Update declaration.
144
a212e43f
MG
1452012-10-09 Marc Glisse <marc.glisse@inria.fr>
146
147 PR c++/54427
148 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
149 more operations. Make error messages optional.
150 * c-common.h (enum stv_conv): Moved from c-typeck.c.
151 (scalar_to_vector): Declare.
152
b1db7f91
JM
1532012-10-08 Jason Merrill <jason@redhat.com>
154
155 * c-common.c (c_common_reswords): Add thread_local.
156
e28d52cf
DS
1572012-10-08 Dodji Seketeli <dodji@redhat.com>
158
159 PR c++/53528 C++11 attribute support
160 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
161 new functions.
162 * c-common.c (check_cxx_fundamental_alignment_constraints): New
163 static function.
164 (handle_aligned_attribute): In choose strictest alignment
165 among many. Use new check_cxx_fundamental_alignment_constraints.
166 (handle_transparent_union_attribute): In c++11 attribute syntax,
167 don't look through typedefs.
168
3b78de56
AC
1692012-10-04 Arnaud Charlet <charlet@adacore.com>
170
171 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
172 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
173 out of dumpfile.h.
174
6040bb5f
DC
1752012-09-25 Dehao Chen <dehao@google.com>
176
177 PR middle-end/54645
3b78de56 178 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
179 map when read in the pch.
180
0b07a57e
AC
1812012-09-18 Arnaud Charlet <charlet@adacore.com>
182
183 * c-ada-spec.c: Style fixes.
184
da5182be
TQ
1852012-09-18 Thomas Quinot <quinot@adacore.com>
186
187 * c.opt (-fada-spec-parent): Define new command line switch.
188 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
189 is specified, generate binding spec as a child of the specified unit.
190
0ccb505d
PC
1912012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
192 Manuel López-Ibáñez <manu@gcc.gnu.org>
193
194 PR c++/53210
195 * c.opt ([Winit-self]): Enabled by -Wall in C++.
196
c583af79
AC
1972012-08-23 Arnaud Charlet <charlet@adacore.com>
198
199 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
200 for pointers, and add missing Convention C pragma.
201 (print_ada_struct_decl): Add missing aliased keyword.
202 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
203
1a4049e7
JJ
2042012-08-17 Jakub Jelinek <jakub@redhat.com>
205
206 * c-common.c (sizeof_pointer_memaccess_warning): New function.
207 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
208 * c-opts.c (c_common_handle_option): Enable it for -Wall.
209 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
210 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
211
70b5e7dc
RG
2122012-08-10 Richard Guenther <rguenther@suse.de>
213
214 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
215
f8923f7e
SB
2162012-08-07 Steven Bosscher <steven@gcc.gnu.org>
217
218 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
219 instead of separate pp_newline and pp_flush.
220 (print_c_tree): Likewise.
221
e45abe1f
RH
2222012-07-26 Richard Henderson <rth@redhat.com>
223
224 * c-common.c (handle_hot_attribute): Allow labels.
225 (handle_cold_attribute): Likewise.
226
332f1d24
JJ
2272012-07-20 Jakub Jelinek <jakub@redhat.com>
228
229 PR c++/28656
230 * c-common.c (check_function_nonnull): Handle multiple nonnull
231 attributes properly.
232
7ee2468b
SB
2332012-07-16 Steven Bosscher <steven@gcc.gnu.org>
234
235 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
236 * c-ada-spec.c: Likewise.
237 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
238
ee7b28eb
SB
2392012-07-14 Steven Bosscher <steven@gcc.gnu.org>
240
241 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
242 Remove code conditional on it.
243
6bdf3519
SB
2442012-07-11 Steven Bosscher <steven@gcc.gnu.org>
245
246 * c-gimplify.c: Do not include basic-block.h.
247 * c-common.c: Do not include linfuncs.h.
248
532aafad
SB
2492012-07-08 Steven Bosscher <steven@gcc.gnu.org>
250
251 * c-common.h: Include tree.h.
252
8d0d1915
JM
2532012-07-02 Jason Merrill <jason@redhat.com>
254
255 PR c++/53524
256 * c-common.c (get_priority): Call default_conversion.
257
fbc873ad
UB
2582012-07-01 Uros Bizjak <ubizjak@gmail.com>
259
260 * c-pch.c (c_common_write_pch): Remove unused variables.
261
d4a10d0a
SB
2622012-06-29 Steven Bosscher <steven@gcc.gnu.org>
263
264 * cppspec.c: Moved from gcc/ to here.
265
6f3a2e23
KT
2662012-06-27 Kai Tietz <ktietz@redhat.com>
267
268 PR preprocessor/37215
269 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
270
8ca92d04
SB
2712012-06-21 Steven Bosscher <steven@gcc.gnu.org>
272
273 * c-common.h (c_common_print_pch_checksum): Remove.
274 * c-pch.c: Do not include output.h.
275 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
276 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
277 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
278 (struct c_pch_header): Remove.
279 (get_ident): Update gpch version.
280 (pch_init): Do not print executable_checksum to asm_out_file.
281 Do not fail if there is no asm_out_file to read back from. Set
282 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
283 (c_common_write_pch): Verify that nothing was written to asm_out_file
284 since pch_init was called. Do not write a c_pch_header, and do not
285 copy from asm_out_file to the PCH.
286 (c_common_read_pch): Do not read a c_pch_header, and do not restore
287 the content of asm_out_file from the PCH.
288 (c_common_print_pch_checksum): Remove.
289 * c-opts.c (c_common_init): Print out executable_checksum directly.
290
70f42967
SB
2912012-06-19 Steven Bosscher <steven@gcc.gnu.org>
292
293 * c-target.def (objc_declare_unresolved_class_reference,
294 objc_declare_class_definition): Add new hooks.
295
a8781821
SB
2962012-06-19 Steven Bosscher <steven@gcc.gnu.org>
297
298 * c-lex.c: Do not include output.h.
299 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
300 Remove uses of ASM_OUTPUT_IDENT.
301
9e1a8dd1
RR
3022012-06-15 Marc Glisse <marc.glisse@inria.fr>
303
304 PR c++/51033
305 * c-common.h (c_build_vec_perm_expr): Move decl here.
306 * c-common.c (c_build_vec_perm_expr): Move definition
307 here.
308
6f07a821
SB
3092012-06-06 Steven Bosscher <steven@gcc.gnu.org>
310
311 * c.opt (fconserve-space): Turn into a no-op.
312
9faeb493 3132012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
314
315 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
316 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
317 both the start and end of the function.
318
a4b7d13c
SB
3192012-06-04 Steven Bosscher <steven@gcc.gnu.org>
320
321 * c-common.c: Do not include output.h.
322 * c-pragma.c: Likewise.
323
c265f413
SA
3242012-06-04 Steven Bosscher <steven@gcc.gnu.org>
325
326 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
327 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
328 (lang_decl_name): Handle namespace decls.
329
be7a421e
SB
3302012-05-31 Steven Bosscher <steven@gcc.gnu.org>
331
332 * c-ada-spec.c: Do not include output.h.
333 * c-semantics.c: Likewise.
334
65de6659
JM
3352012-05-29 Joseph Myers <joseph@codesourcery.com>
336
337 * c-common.c: Fix typo.
338
ca5f4331
MM
3392012-05-29 Michael Matz <matz@suse.de>
340
341 * c-common.h (c_expand_decl): Remove prototype.
342
4f7f7aca
MLI
3432012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
344
345 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
346 * c-opts.c (c_common_handle_option): Remove code handling
347 warn_missing_braces.
348
4a792f9b
PC
3492012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
350
351 PR c++/25137
352 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
353 -Wmissing_braces.
354
650dc14a
DS
3552012-05-22 Dodji Seketeli <dodji@redhat.com>
356
357 PR c++/53322
358 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
359
9b095bf1
MLI
3602012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
361
362 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
363 * c-opts.c (c_common_handle_option): Do not handle explicitly
364 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
365
0b2c4be5
DS
3662012-05-16 Dodji Seketeli <dodji@redhat.com>
367
368 PR preprocessor/7263
369 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
370 to cpp_classify_number. For diagnostics, use the precise location
371 instead of the global input_location.
372
a1bde5af
PC
3732012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
374
d02924ef 375 PR c++/11856
a1bde5af
PC
376 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
377
d1ede5f4
BS
3782012-05-14 Bernd Schmidt <bernds@codesourcery.com>
379
a1bde5af 380 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 381
f2bc201f
MLI
3822012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
383
384 PR 53063
385 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
386 Wreorder): Use LangEnabledBy.
387 * c-opts.c (c_common_handle_option): Do not enable them
388 explicitly. Call lang-specific generated functions.
389 (c_common_post_options): Do not set them here.
390
95744782
MLI
3912012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
392
393 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
394 Wmissing-field-initializers,Wmissing-parameter-type,
395 Wold-style-declaration,Woverride-init): Use EnabledBy.
396 * c-opts.c (c_common_post_options): Do not set here explicitly.
397
7d5a5747
MLI
3982012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
399
400 PR 53063
401 * c-opts.c (c_common_handle_option): Use handle_generated_option
402 to enable sub-options.
403
5a3c9cf2
PC
4042012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
405
406 PR c++/53158
407 * c-common.c (warnings_for_convert_and_check): Use warning_at.
408
3ac8781c
RG
4092012-05-10 Richard Guenther <rguenther@suse.de>
410
411 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
412 adjust commentary about TYPE_IS_SIZETYPE types.
413
1e537948
MLI
4142012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
415
416 PR c++/53261
417 * c-common.c (warn_logical_operator): Check that argument of
418 integer_zerop is not NULL.
419
f2c4a785
MLI
4202012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
421
422 PR c/43772
423 * c-common.c (warn_logical_operator): Do not warn if either side
424 is already true or false.
425
50f305ca
MLI
4262012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
427
428 PR c/51712
429 * c-common.c (expr_original_type): New.
430 (shorten_compare): Do not warn for enumeration types.
431
0c3641b0
MLI
4322012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
433
434 * c.opt (fpermissive): Add Var(flag_permissive).
435
7edaa4d2
MG
4362012-04-30 Marc Glisse <marc.glisse@inria.fr>
437
438 PR c++/51033
439 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
440 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
441
b9c8da34
DS
4422012-04-30 Dodji Seketeli <dodji@redhat.com>
443
444 Add -Wvarargs option
445 * c.opt (Wvarargs): Define new option.
446
e6c69da0
MLI
4472012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
448
449 * c-common.c (check_function_arguments): Replace
450 Wmissing-format-attribute with Wsuggest-attribute=format.
451
90137d8f
MLI
4522012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
453
454 * c.opt (Wsuggest-attribute=format): New. Alias of
455 Wmissing-format-attribute.
456 * c-format.c (decode_format_type): Replace
457 Wmissing-format-attribute with Wsuggest-attribute=format.
458 (check_function_format): Likewise.
459
9faeb493 4602012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
461
462 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
463 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
464 * c.opt: Add Wliteral-suffix.
465
c1771a20
MLI
4662012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
467
468 PR c/44774
469 * c.opt (Wpedantic): New.
470 (pedantic): Alias Wpedantic.
471 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
472 (c_common_post_options): Likewise.
473 (sanitize_cpp_opts): Likewise.
474 * c-lex.c (interpret_float): Likewise.
475 * c-format.c (check_format_types): Likewise.
476 * c-common.c (pointer_int_sum): Likewise.
477 (c_sizeof_or_alignof_type): Likewise.
478 (c_add_case_label): Likewise.
479 (c_do_switch_warnings): Likewise.
480 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
481
04b391c1
JM
4822012-04-15 Jason Merrill <jason@redhat.com>
483
484 PR c++/52818
485 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
486 (C_STD_NAME): Distinguish between C++98 and C++11.
487
ac868f29
EB
4882012-04-11 Eric Botcazou <ebotcazou@adacore.com>
489
490 PR target/52624
491 * c-common.h (uint16_type_node): Rename into...
492 (c_uint16_type_node): ...this.
493 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
494 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
495
fd4116f4
MLI
4962012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
497
498 * c-common.c (warn_if_unused_value): Move definition to here.
499 * c-common.h (warn_if_unused_value): Move declaration to here.
500
573ac65e
WB
5012012-03-23 William Bader <williambader@hotmail.com>
502
503 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
504
552b8185
JM
5052012-03-20 Jason Merrill <jason@redhat.com>
506
507 * c-common.h (enum cxx_dialect): Add cxx1y.
508 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
509 test.
510 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
511 * c-opts.c (c_common_post_options): Likewise.
512 (set_std_cxx1y): New.
513 (c_common_handle_option): Call it.
514 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
515
04398fa8
PC
5162012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
517
518 PR c++/14710
519 * c.opt ([Wuseless-cast]): Add.
520
d2a12ae7
RG
5212012-03-16 Richard Guenther <rguenther@suse.de>
522
523 * c-pretty-print.c (pp_c_initializer_list): Adjust.
524
a12bf402
MLI
5252012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
526
527 PR c++/44783
528 * c.opt (ftemplate-backtrace-limit) Add.
529
5c30094f
RO
5302012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
531
532 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
533 handling.
534 * c-pragma.c (handle_pragma_extern_prefix): Remove.
535 (init_pragma): Don't register extern_prefix.
536
21fa2faf
RG
5372012-03-12 Richard Guenther <rguenther@suse.de>
538
539 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
540 (builtin_type_for_size): Likewise.
541
e3793c6f
JJ
5422012-02-13 Jakub Jelinek <jakub@redhat.com>
543
544 PR c++/52215
545 * c-common.c (sync_resolve_params): Don't decide whether to convert
546 or not based on TYPE_SIZE comparison, convert whenever arg_type
547 is unsigned INTEGER_TYPE.
548
93286335
PC
5492012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
550
551 PR c/52118
552 * c.opt ([Wunused-local-typedefs]): Fix description.
553
7a421706
MS
5542012-01-24 Mike Stump <mikestump@comcast.net>
555
556 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
557 exactly.
558
ba9b1f11
RG
5592012-01-18 Richard Guenther <rguenther@suse.de>
560
561 * c-opts.c (c_common_post_options): Reset LTO flags if
562 we are about to generate a PCH.
563
465406be
PC
5642012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
565
566 PR c++/51777
567 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
568 use pp_unsigned_wide_integer.
569
aee15221
RG
5702012-01-10 Richard Guenther <rguenther@suse.de>
571
572 PR middle-end/51806
573 * c-opts.c (c_common_handle_option): Move -Werror handling
574 to language independent code.
575
5720c0dc
RG
5762012-01-05 Richard Guenther <rguenther@suse.de>
577
578 PR middle-end/51764
579 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
580 from common.opt.
581
73ac190a
PC
5822011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
583
584 PR c++/51316
585 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
586 of array types with an unknown bound.
587
48b0b196
JM
5882011-12-20 Joseph Myers <joseph@codesourcery.com>
589
590 * c-common.c (flag_isoc99): Update comment to refer to C11.
591 (flag_isoc1x): Change to flag_isoc11.
592 * c-common.h (flag_isoc99): Update comment to refer to C11.
593 (flag_isoc1x): Change to flag_isoc11.
594 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
595 C11.
596 * c-opts.c (set_std_c1x): Change to set_std_c11.
597 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
598 Call set_std_c11.
599 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
600 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
601 * c.opt (std=c1x): Change to std=c11. Document as non-draft
602 standard.
603 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
604 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
605 (std=gnu1x): Make alias of std=gnu11.
606
d58d6eb5
JM
6072011-12-19 Jason Merrill <jason@redhat.com>
608
609 PR c++/51228
610 * c-common.c (handle_transparent_union_attribute): Check the first
611 field if the type is complete.
612
b3908fcc
JW
6132011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
614
615 PR libstdc++/51365
616 * c-common.c (RID_IS_FINAL): Add.
617 * c-common.h (RID_IS_FINAL): Add.
618
fea3ca91
IS
6192011-11-30 Iain Sandoe <iains@gcc.gnu.org>
620
621 * c.opt (fgnu-runtime): Provide full description.
622 (fnext-runtime): Likewise.
623 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
624
62bad7cd
AM
6252011-11-28 Andrew MacLeod <amacleod@redhat.com>
626
627 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
628 predefines in one place. Add LOCK_FREE predefines.
629 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
630 new func.
631
c466c4ff
AM
6322011-11-24 Andrew MacLeod <amacleod@redhat.com>
633
634 PR c/51256
9faeb493 635 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 636 conditions
9faeb493
UB
637 (resolve_overloaded_atomic_exchange,
638 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
639 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
640 error_mark_node for error conditions.
9faeb493 641
a5952633
RG
6422011-11-08 Richard Guenther <rguenther@suse.de>
643
644 PR middle-end/51010
645 c-family/
646
0a35513e
AH
6472011-11-07 Richard Henderson <rth@redhat.com>
648 Aldy Hernandez <aldyh@redhat.com>
649 Torvald Riegel <triegel@redhat.com>
650
651 Merged from transactional-memory.
652
653 * c-common.c (handle_tm_wrap_attribute,
654 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
655 (struct c_common_reswords): Added __transaction* keywords.
656 (struct c_common_attribute_table): Added transaction* and tm_regparm
657 attributes.
658 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
659 masks.
660 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
661 find_tm_attribute): Declare.
662
6d87092d
JM
6632011-11-07 Jason Merrill <jason@redhat.com>
664
665 PR c++/35688
666 * c-common.c, c-common.h: Revert yesterday's changes.
667
8e7860a1
JM
6682011-11-06 Jason Merrill <jason@redhat.com>
669
670 PR c++/35688
671 * c-common.c (decl_has_visibility_attr): Split out from...
672 (c_determine_visibility): ...here.
673 * c-common.h: Declare it.
674
d19fa6b5
JM
6752011-11-06 Joseph Myers <joseph@codesourcery.com>
676
677 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
678 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
679 type.
680 (check_user_alignment): New. Split out of
681 handle_aligned_attribute. Disallow integer constants with
682 noninteger types. Conditionally allow zero.
683 (handle_aligned_attribute): Use check_user_alignment.
684 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
685
86951993
AM
6862011-11-06 Andrew MacLeod <amacleod@redhat.com>
687 Richard Henderson <rth@redhat.com>
688
689 Merged from cxx-mem-model.
690
691 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 692 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
693 parameters that are the same type size.
694 (get_atomic_generic_size): New. Find size of generic
695 atomic function parameters and do typechecking.
696 (add_atomic_size_parameter): New. Insert size into parameter list.
697 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
698 either __atomic_exchange_n or external library call.
9faeb493 699 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 700 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 701 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
702 __atomic_load_n or an external library call.
703 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
704 __atomic_store_n or an external library call.
705 (resolve_overloaded_builtin): Handle new __atomic builtins.
706
cf9e9959
EB
7072011-11-04 Eric Botcazou <ebotcazou@adacore.com>
708
709 PR c++/50608
710 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
711 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
712 <INDIRECT_REF>: Return the argument.
713 <ARRAY_REF>: Remove special code for negative offset.
714 Call fold_build_pointer_plus instead of size_binop.
715 (fold_offsetof): Remove STOP_REF argument and adjust.
716 * c-common.h (fold_offsetof_1): Declare.
717 (fold_offsetof): Remove STOP_REF argument.
718
25339f10
JM
7192011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
720
721 PR c++/50810
722 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
723 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
724 Wnarrowing for C++0x and C++98.
725 * c.opt ([Wnarrowing]): Update.
726
89401152
PC
7272011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
728
729 PR c++/44277
730 * c.opt: Add Wzero-as-null-pointer-constant.
731
97e3ad20
JM
7322011-10-31 Jason Merrill <jason@redhat.com>
733
15694fdd
JM
734 * c.opt (-fdeduce-init-list): Off by default.
735
97e3ad20
JM
736 PR c++/50920
737 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
738 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
739 and -Wc++11-compat.
740 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
741
fb9120e3
RAV
7422011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
743
744 PR c++/30066
745 * c.opt (fvisibility-inlines-hidden): Description change.
746
3ce4f9e4
ESR
7472011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
748
749 Implement C++11 user-defined literals.
750 * c-common.c (build_userdef_literal): New.
751 * c-common.def: New tree code.
752 * c-common.h (tree_userdef_literal): New tree struct and accessors.
753 * c-lex.c (interpret_float): Add suffix parm.
754 (c_lex_with_flags): Build literal tokens.
755
5f53c243
PC
7562011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
757
758 PR c++/50841
759 Revert:
760 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
761
762 PR c++/50810
763 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
764 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
765 Wnarrowing for C++0x and C++98.
766 * c.opt ([Wnarrowing]): Update.
767
263734e1
PC
7682011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
769
770 PR c++/50810
771 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
772 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
773 Wnarrowing for C++0x and C++98.
774 * c.opt ([Wnarrowing]): Update.
775
d2e312d7
PC
7762011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
777
778 PR c++/45385
779 * c-common.c (conversion_warning): Remove code looking for
780 artificial operands.
781
d17687f6
DS
7822011-10-18 Dodji Seketeli <dodji@redhat.com>
783
784 PR bootstrap/50760
785 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 786 !NO_IMPLICIT_EXTERN_C.
d17687f6 787
fc8396e9
PC
7882011-10-17 Michael Spertus <mike_spertus@symantec.com>
789
790 * c-common.c (c_common_reswords): Add __bases,
791 __direct_bases.
792 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
793
7942011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
795
796 PR c++/50757
797 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
798
847e697a
TT
7992011-10-15 Tom Tromey <tromey@redhat.com>
800 Dodji Seketeli <dodji@redhat.com>
801
802 * c.opt (fdebug-cpp): New option.
803 * c-opts.c (c_common_handle_option): Handle the option.
804 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
805 output stream in parameter. Factorized from ...
806 (maybe_print_line): ... this. Dump location debug information when
807 -fdebug-cpp is in effect.
808 (print_line_1): New static function. Takes an output stream in
809 parameter. Factorized from ...
810 (print_line): ... here. Dump location information when -fdebug-cpp
811 is in effect.
812 (scan_translation_unit): Dump location information when
813 -fdebug-cpp is in effect.
814
92582b75
TT
8152011-10-15 Tom Tromey <tromey@redhat.com>
816 Dodji Seketeli <dodji@redhat.com>
817
818 * c.opt (ftrack-macro-expansion): New option. Handle it with and
819 without argument.
820 * c-opts.c (c_common_handle_option)<case
821 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
822 cases. Handle -ftrack-macro-expansion with and without argument.
823
46427374
TT
8242011-10-15 Tom Tromey <tromey@redhat.com>
825 Dodji Seketeli <dodji@redhat.com>
826
827 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
828 (print_line, cb_define, do_line_change): Adjust to avoid touching
829 the internals of struct line_map. Use the public API instead.
830 * c-pch.c (c_common_read_pch): Likewise.
831 * c-lex.c (fe_file_change): Likewise.
832
fc8396e9
PC
8332011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
834
835 PR c++/17212
836 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
837
8382011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
839
840 PR c++/33067
841 * c-pretty-print.c (pp_c_floating_constant): Output
842 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
843
e79983f4
MM
8442011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
845
846 * c-common.c (def_builtin_1): Delete old interface with two
847 parallel arrays to hold standard builtin declarations, and replace
848 it with a function based interface that can support creating
849 builtins on the fly in the future. Change all uses, and poison
850 the old names. Make sure 0 is not a legitimate builtin index.
851 * c-omp.c (c_finish_omp_barrier): Ditto.
852 (c_finish_omp_taskwait): Ditto.
853 (c_finish_omp_flush): Ditto.
854
6637388f
TG
8552011-10-11 Tristan Gingold <gingold@adacore.com>
856
857 * c.opt: (fallow-parameterless-variadic-functions): New.
858
3797cb21
DS
8592011-09-08 Dodji Seketeli <dodji@redhat.com>
860
861 PR c++/33255 - Support -Wunused-local-typedefs warning
862 * c-common.h (struct c_language_function::local_typedefs): New
863 field.
9faeb493
UB
864 (record_locally_defined_typedef, maybe_record_typedef_use)
865 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 866 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
867 (maybe_record_typedef_use)
868 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
869 * c.opt: Declare new -Wunused-local-typedefs flag.
870
693ddb1b
EB
8712011-09-06 Eric Botcazou <ebotcazou@adacore.com>
872
873 PR middle-end/50266
874 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
875 computations.
876
830c740f
RG
8772011-09-05 Richard Guenther <rguenther@suse.de>
878
879 * c-common.c (complete_array_type): Use ssize_int (-1) instead
880 of integer_minus_one_node for empty array upper bounds.
881
892a371f
DS
8822011-08-28 Dodji Seketeli <dodji@redhat.com>
883
884 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
885 it's the first time it's being called on this main TU.
886
0e3fdb48
RB
8872011-08-24 Richard Guenther <rguenther@suse.de>
888
889 PR c/49396
890 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
891
8922011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
893
894 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
895 defined in cpp_init_builtins and c_cpp_builtins.
896
d4a83c10
JM
8972011-08-19 Joseph Myers <joseph@codesourcery.com>
898
899 * c-common.c (c_common_reswords): Add __builtin_complex.
900 * c-common.h (RID_BUILTIN_COMPLEX): New.
901
bbceee64
JM
9022011-08-18 Joseph Myers <joseph@codesourcery.com>
903
904 * c-common.c (c_common_reswords): Add _Noreturn.
905 (keyword_is_function_specifier): Handle RID_NORETURN.
906 * c-common.h (RID_NORETURN): New.
907
0e3a99ae
AS
9082011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
909
910 * c-common.c (unsafe_conversion_p): New function. Check if it is
911 unsafe to convert an expression to the type.
912 (conversion_warning): Adjust, use unsafe_conversion_p.
913 * c-common.h (unsafe_conversion_p): New function declaration.
914
20906c66
JJ
9152011-08-02 Jakub Jelinek <jakub@redhat.com>
916
917 * c-common.h (c_finish_omp_atomic): Adjust prototype.
918 (c_finish_omp_taskyield): New prototype.
919 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
920 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
921 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
922 or RHS1 have side-effects, evaluate those too in the right spot,
923 if it is a decl and LHS is also a decl, error out if they
924 aren't the same.
925 (c_finish_omp_taskyield): New function.
926 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
927 * c-pragma.c (omp_pragmas): Add taskyield.
928 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
929 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
930 PRAGMA_OMP_CLAUSE_MERGEABLE.
931
770e5a2e
DS
9322011-07-25 Dodji Seketeli <dodji@redhat.com>
933
934 * c-common.h (set_underlying_type): Remove parm name from
935 declaration.
936
1baae426
RG
9372011-07-25 Romain Geissler <romain.geissler@gmail.com>
938
939 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 940
fcb21722
JM
9412011-07-22 Jason Merrill <jason@redhat.com>
942
76f86d00
JM
943 PR c++/49793
944 * c.opt (Wnarrowing): New.
945
3a636414
JM
946 PR c++/30112
947 * c-common.h: Declare c_linkage_bindings.
948 * c-pragma.c (handle_pragma_redefine_extname): Use it.
949
fcb21722
JM
950 PR c++/49813
951 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
952 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
953 as flag_isoc99 for 'restrict'.
954 (pp_c_specifier_qualifier_list): Likewise for _Complex.
955
02614448
ILT
9562011-07-21 Ian Lance Taylor <iant@google.com>
957
958 PR middle-end/49705
959 * c-common.c (c_disable_warnings): New static function.
960 (c_enable_warnings): New static function.
961 (c_fully_fold_internal): Change local unused_p to bool. Call
962 c_disable_warnings and c_enable_warnings rather than change
963 c_inhibit_evaluation_warnings.
964
34429675
JM
9652011-07-20 Jason Merrill <jason@redhat.com>
966
967 PR c++/6709 (DR 743)
968 PR c++/42603 (DR 950)
969 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
970 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
971 (CPP_DECLTYPE): New.
972 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
973
5d49b6a7
RG
9742011-07-19 Richard Guenther <rguenther@suse.de>
975
976 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
977 * c-omp.c (c_finish_omp_for): Likewise.
978
e84a58ff
EB
9792011-07-12 Eric Botcazou <ebotcazou@adacore.com>
980
981 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
982 body on the next line.
983
329af3c7
JM
9842011-07-08 Jason Merrill <jason@redhat.com>
985
4063e61b
JM
986 PR c++/45437
987 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
988
329af3c7
JM
989 PR c++/49673
990 * c-common.c (c_apply_type_quals_to_decl): Don't check
991 TYPE_NEEDS_CONSTRUCTING.
992
1a072294
RG
9932011-07-06 Richard Guenther <rguenther@suse.de>
994
995 * c-common.c (c_common_nodes_and_builtins):
996 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
997
fce5dddd
RG
9982011-07-05 Richard Guenther <rguenther@suse.de>
999
1000 * c-common.c (c_common_nodes_and_builtins): Build all common
1001 tree nodes first.
1002
45d439ac
JJ
10032011-06-27 Jakub Jelinek <jakub@redhat.com>
1004
56300785
JJ
1005 * c-common.h (c_tree_chain_next): New static inline function.
1006
45d439ac
JJ
1007 * c-common.c (check_builtin_function_arguments): Handle
1008 BUILT_IN_ASSUME_ALIGNED.
1009
e0a8ecf2
AM
10102011-06-21 Andrew MacLeod <amacleod@redhat.com>
1011
1012 * c-common.c: Add sync_ or SYNC__ to builtin names.
1013 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
1014
10152011-06-20 Pierre Vittet <piervit@pvittet.com>
1016
1017 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1018 handler.
1019 (gen_pragma_handler): New union.
1020 (internal_pragma_handler): New type.
1021 (c_register_pragma_with_data)
1022 (c_register_pragma_with_expansion_and_data): New functions.
1023
1024 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1025 (c_register_pragma, c_register_pragma_with_expansion)
1026 (c_invoke_pragma_handler): Changed to work with
1027 internal_pragma_handler.
1028 (c_register_pragma_with_data)
1029 (c_register_pragma_with_expansion_and_data): New functions.
1030
677f3fa8
JM
10312011-06-14 Joseph Myers <joseph@codesourcery.com>
1032
1033 * c-common.c: Include common/common-target.h.
1034 (handle_section_attribute): Use
1035 targetm_common.have_named_sections.
1036 * c-cppbuiltin.c: Include common/common-target.h.
1037 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1038
d7fc8c14
RG
10392011-06-10 Richard Guenther <rguenther@suse.de>
1040
1041 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1042 to print a IDENTIFIER_NODE.
1043
10e48e39
RO
10442011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1045 Joseph Myers <joseph@codesourcery.com>
1046
1047 * c.opt (fbuilding-libgcc): New option.
1048 * c-cppbuiltin.c (c_cpp_builtins): Define
1049 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1050
6976ae51
JM
10512011-06-07 Jason Merrill <jason@redhat.com>
1052
3ff60975
JM
1053 * c-common.c (max_tinst_depth): Lower default to 900.
1054
6976ae51
JM
1055 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1056
009db074
RG
10572011-06-07 Richard Guenther <rguenther@suse.de>
1058
1059 * c-common.c (c_common_nodes_and_builtins): Do not set
1060 size_type_node or call set_sizetype.
1061
b4592b92
DS
10622011-06-07 Dodji Seketeli <dodji@redhat.com>
1063
1064 PR debug/49130
1065 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 1066 type when using pointer comparison to compare types.
b4592b92 1067
014ab419
JW
10682011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1069
1070 * c.opt: Add -Wdelete-non-virtual-dtor.
1071 * c-opts.c (c_common_handle_option): Include it in -Wall.
1072
4f60111f
NF
10732011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1074
1075 PR bootstrap/49190
1076
1077 Revert:
1078 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1079
1080 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1081 not tree_common.
1082
4cc4f2f4
JJ
10832011-05-27 Jakub Jelinek <jakub@redhat.com>
1084
1085 PR c++/49165
1086 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1087 C++ don't call c_common_truthvalue_conversion on void type arms.
1088
38e01f9e
NF
10892011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1090
1091 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1092 (stmt_list_stack): Define.
1093 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1094 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1095
92e948a8
NF
10962011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1097
1098 * c-common.c (warning_candidate_p): Check for BLOCKs.
1099
a2fc3e63
NF
11002011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1101
1102 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1103 not tree_common.
1104
0957c029
JJ
11052011-05-25 Jakub Jelinek <jakub@redhat.com>
1106
1107 * c-common.c (def_fn_type): Remove extra va_end.
1108
828fb3ba
JM
11092011-05-23 Jason Merrill <jason@redhat.com>
1110
1111 PR c++/48106
1112 * c-common.c (c_common_get_narrower): New.
1113 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1114
dde05067
NF
11152011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1116
1117 * c-common.h (check_function_arguments): Tweak prototype of
1118 check_function_arguments.
1119 * c-common.c (check_function_arguments): Likewise. Adjust
1120 calls to check_function_nonnull, check_function_format, and
1121 check_function_sentinel.
1122 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1123 separate attributes and typelist arguments. Use
1124 FOREACH_FUNCTION_ARGS to iterate over argument types.
1125
3c0d13bf
PC
11262011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1127
1128 * c-common.c (c_common_reswords): Reorder.
1129 * c-common.h (rid): Likewise.
1130
8242dd04
NF
11312011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1132
1133 * c-common.c (def_fn_type): Don't call build_function_type, call
1134 build_function_type_array or build_varargs_function_type_array
1135 instead.
1136 (c_common_nodes_and_builtins): Likewise.
1137
3d528853
NF
11382011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1139
1140 * c-common.c (c_add_case_label): Omit the loc argument to
1141 build_case_label.
1142 * c-common.h (build_case_label): Remove.
1143 * c-semantics.c (build_case_label): Remove.
1144
a04a722b
JM
11452011-05-05 Joseph Myers <joseph@codesourcery.com>
1146
1147 * c-objc.h (objc_start_method_definition): Update prototype.
1148 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1149
e19a18d4
NF
11502011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1151
1152 * c-common.c (check_main_parameter_types): Reindent. Don't use
1153 TYPE_ARG_TYPES directly.
1154 (handle_nonnull_attribute): Likewise.
1155 (sync_resolve_params): Likewise.
1156 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1157 to check_format_string.
1158 (handle_format_attribute): Likewise.
1159 (check_format_string): Take a function type to examine instead of
1160 a type list. Use a function_arg_iterator to step through argument
1161 types.
1162
c62c040f
RG
11632011-05-04 Richard Guenther <rguenther@suse.de>
1164
1165 * c-common.c (fix_string_type): Use size_int for index type bounds.
1166 (start_fname_decls): Do not pass NULL to build_int_cst.
1167 (c_init_attributes): Likewise.
1168 * c-lex.c (c_lex_with_flags): Likewise.
1169
c12ff9d8
JM
11702011-04-27 Jason Merrill <jason@redhat.com>
1171
1172 * c-common.c (make_tree_vector_from_list): New.
1173 * c-common.h: Declare it.
1174
304dfbe3
RG
11752011-04-26 Richard Guenther <rguenther@suse.de>
1176
1177 PR preprocessor/48248
1178 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1179 for output size with -P.
1180
3c0d13bf
PC
11812011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1182
1183 * c-common.c (struct c_common_resword): Add __underlying_type.
1184 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1185
04695783
JM
11862011-04-20 Jim Meyering <meyering@redhat.com>
1187
1188 * c-format.c (init_dollar_format_checking): Remove useless
1189 if-before-free.
1190
0dc33c3c
NP
11912011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1192
1193 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 1194 (objc_detect_field_duplicates): New.
0dc33c3c 1195 * stub-objc.c: Likewise.
3c0d13bf 1196
c59633d9
NP
11972011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1198
1199 * stub-objc.c (objc_declare_protocols): Renamed to
1200 objc_declare_protocol.
1201 * c-objc.h: Likewise.
3c0d13bf 1202
32dabdaf
NP
12032011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1204
1205 * stub-objc.c (objc_declare_class): Updated argument name.
1206
81f653d6
NF
12072011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1208
1209 * c-common.h (c_common_init_ts): Declare.
1210 * c-common.c (c_common_init_ts): Define.
1211
eb345401
NP
12122011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1213
1214 * c-objc.h (objc_build_message_expr): Updated prototype.
1215 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 1216
a358e188
MJ
12172011-04-12 Martin Jambor <mjambor@suse.cz>
1218
1219 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1220 of cgraph_node.
1221
e6313a78
RG
12222011-04-11 Richard Guenther <rguenther@suse.de>
1223
1224 * c-common.c (complete_array_type): Build a range type of
1225 proper type.
1226
dcf0c47e
NF
12272011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1228
1229 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1230 (handle_type_generic_attribute): Likewise.
1231
1ee44b26
JM
12322011-04-07 Jason Merrill <jason@redhat.com>
1233
1234 PR c++/48450
1235 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1236 conversion from C++0x scoped enum.
1237
acce4e77
JM
12382011-04-06 Joseph Myers <joseph@codesourcery.com>
1239
1240 * c-target-def.h: New file.
1241 * c-target.def: New file.
1242 * c-target.h: New file.
1243 * c-common.c (targetcm): Don't define here.
1244 * c-common.h (default_handle_c_option): Declare.
1245 * c-format.c: Include c-target.h instead of target.h.
1246 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1247 include tm.h.
1248 (default_handle_c_option): Move from targhooks.c.
1249
e2eefb55
JJ
12502011-03-29 Jakub Jelinek <jakub@redhat.com>
1251
1252 PR preprocessor/48248
1253 * c-ppoutput.c (print): Add src_file field.
1254 (init_pp_output): Initialize it.
1255 (maybe_print_line): Don't optimize by adding up to 8 newlines
1256 if map->to_file and print.src_file are different file.
1257 (print_line): Update print.src_file.
1258
ba78087b
KT
12592011-03-25 Kai Tietz <ktietz@redhat.com>
1260
1261 * c-ada-spec.c (compare_comment): Use filename_cmp
1262 instead of strcmp for filename.
1263
0edf1bb2
JL
12642011-03-25 Jeff Law <law@redhat.com>
1265
1266 * c-family/c-common.c (def_fn_type): Add missing va_end.
1267
c7dc8804
JM
12682011-03-25 Jason Merrill <jason@redhat.com>
1269
1270 * c.opt: Add -std=c++03.
1271
d1d879b1
EB
12722011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1273
1274 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1275
62d784f7
KT
12762011-03-17 Kai Tietz
1277
1278 PR target/12171
5050afdf
KT
1279 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1280 Display allowed attributes for function pointer types.
1281 (pp_c_attributes_display): New function to display
1282 attributes having affects_type_identity flag set to true.
1283 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1284
62d784f7
KT
1285 * c-common.c (c_common_attribute_table):
1286 Add new element.
1287 (c_common_format_attribute_table): Likewise.
1288
82d37118
JM
12892011-03-18 Jason Merrill <jason@redhat.com>
1290
49a000c3
JM
1291 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1292 * c-common.h: Don't declare it here.
1293 * c-common.c: Or define it here.
1294 * c-opts.c (c_common_handle_option): Or set it here.
1295
82d37118
JM
1296 PR c++/35315
1297 * c-common.c (handle_transparent_union_attribute): Don't
1298 make a duplicate type in C++.
1299
17bc631c
JM
13002011-03-15 Jason Merrill <jason@redhat.com>
1301
1302 * c-common.c (max_constexpr_depth): New.
1303 * c-common.h: Declare it.
1304 * c-opts.c (c_common_handle_option): Set it.
1305 * c.opt (fconstexpr-depth): New option.
1306
1b9b91a6
JM
13072011-03-11 Jason Merrill <jason@redhat.com>
1308
f231b5ff
JM
1309 * c-common.c (attribute_takes_identifier_p): Add missing const.
1310
1b9b91a6
JM
1311 PR c++/46803
1312 * c-common.c (attribute_takes_identifier_p): Assume that an
1313 unknown attribute takes an identifier.
1314
a19e4d44
NF
13152011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1316
1317 PR c/47786
1318 * c-common.c (c_type_hash): Call list_length instead of iterating
1319 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1320
982d62f6
JJ
13212011-02-19 Jakub Jelinek <jakub@redhat.com>
1322
1323 PR c/47809
1324 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1325
0a256240
NP
13262011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1327
1328 * c.opt (fobjc-abi-version=) New.
1329 (fobjc-nilcheck): New.
1330
ba9e6dd5
NF
13312011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1332
1333 PR c++/46890
1334 * c-common.h (keyword_is_decl_specifier): Declare.
1335 * c-common.c (keyword_is_decl_specifier): Define.
1336 (keyword_is_function_specifier): New function.
1337
7273813a
JJ
13382011-01-26 Jakub Jelinek <jakub@redhat.com>
1339
1340 PR c/47473
1341 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1342 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1343 REAL_TYPE.
1344
908ef79b
AC
13452011-01-26 Arnaud Charlet <charlet@adacore.com>
1346
1347 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1348
237e9384
JJ
13492011-01-26 Jakub Jelinek <jakub@redhat.com>
1350
1351 PR pch/47430
1352 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1353 after init_c_lex if pch_file is set.
1354
47ea1edf
DK
13552011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1356
d4dba752 1357 PR c++/43601
47ea1edf
DK
1358 * c.opt (-fkeep-inline-dllexport): New switch.
1359
2aa9c6ae
RG
13602011-01-12 Richard Guenther <rguenther@suse.de>
1361
1362 PR middle-end/32511
1363 * c-common.c (handle_weak_attribute): Warn instead of error
1364 on declaring an inline function weak.
1365
7bd11157
TT
13662011-01-05 Tom Tromey <tromey@redhat.com>
1367
1368 * c-common.h (lvalue_error): Update.
1369 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1370 not error.
1371
0e66e494 13722010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 1373
b4f588c4
NP
1374 PR objc/47075
1375 * c-objc.h (objc_finish_message_expr): Added argument to
1376 prototype.
1377
f4da8dce
NF
13782010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1379
1380 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1381 Use prototype_p.
1382
46270f14
NP
13832010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1384
1385 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 1386 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 1387
4816c593
NF
13882010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1389
1390 * c-common.h (readonly_error): Declare.
1391 * c-common.c (readonly_error): Define.
1392
7a6daeb0
NF
13932010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1394
1395 * c-common.h (invalid_indirection_error): Declare.
1396 * c-common.c (invalid_indirection_error): Define.
1397
892f6119
RG
13982010-12-03 Richard Guenther <rguenther@suse.de>
1399
1400 PR c/46745
1401 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1402 (pp_c_unary_expression): Likewise.
1403 (pp_c_expression): Likewise.
1404
6c39e757
NP
14052010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1406
1407 * c-common.h (objc_finish_function): New.
1408 (objc_non_volatilized_type): Removed.
1409 (objc_type_quals_match): Removed.
1410 * stub-objc.c (objc_finish_function): New.
1411 (objc_non_volatilized_type): Removed.
1412 (objc_type_quals_match): Removed.
9faeb493 1413
7c475d11
JM
14142010-11-30 Joseph Myers <joseph@codesourcery.com>
1415
1416 * c-common.h (parse_optimize_options): Declare.
1417 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1418 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1419
71f3e391
JM
14202010-11-29 Joseph Myers <joseph@codesourcery.com>
1421
1422 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1423 GET_ENVIRONMENT.
1424 * c-pch.c (O_BINARY): Don't define here.
1425 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1426
d5fabb58
JM
14272010-11-25 Joseph Myers <joseph@codesourcery.com>
1428
1429 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1430 targetm.except_unwind_info.
1431
299404a1
JM
14322010-11-23 Joseph Myers <joseph@codesourcery.com>
1433
1434 * c-opts.c (c_common_handle_option): Pass location to
1435 set_struct_debug_option.
1436
c98cd5bf
JM
14372010-11-23 Joseph Myers <joseph@codesourcery.com>
1438
1439 * c-common.c (visibility_options): Move from ../opts.c.
1440 * c-common.h (struct visibility_flags, visibility_options):
1441 Declare here.
1442 * c-opts.c (finish_options): Rename to c_finish_options.
1443 (c_common_init): Update call to finish_options.
1444
a9546771
NP
14452010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1446
1447 PR objc/34033
1448 * c-lex.c (lex_string): Check that each string in an Objective-C
1449 string concat sequence starts with either one or zero '@', and
1450 that there are no spurious '@' signs at the end.
1451
24a57808
JM
14522010-11-20 Joseph Myers <joseph@codesourcery.com>
1453
1454 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1455 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1456 HANDLE_PRAGMA_VISIBILITY.
1457 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1458 HANDLE_PRAGMA_VISIBILITY): Don't define.
1459 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1460
a9aa2c3a
NF
14612010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1462
1463 PR c++/16189
1464 PR c++/36888
1465 PR c++/45331
1466 * c-common.h (keyword_begins_type_specifier): Declare.
1467 (keyword_is_storage_class_specifier): Declare.
1468 (keyword_is_type_qualifier): Declare.
1469 * c-common.c (keyword_begins_type_specifier): New function.
1470 (keyword_is_storage_class_specifier): New function.
1471 (keyword_is_type_qualifier): Declare.
1472
5386338c
JM
14732010-11-19 Joseph Myers <joseph@codesourcery.com>
1474
1475 PR c/46547
1476 * c-common.c (in_late_binary_op): Define.
1477 (c_common_truthvalue_conversion): Check in_late_binary_op before
1478 calling c_save_expr.
1479 * c-common.h (in_late_binary_op): Declare.
1480
69ccdddb
JM
14812010-11-19 Joseph Myers <joseph@codesourcery.com>
1482
1483 * c-opts.c (c_common_handle_option): Update calls to
1484 set_struct_debug_option.
1485
6b192a09
NP
14862010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1487
1488 * c-common.h (objc_declare_protocols): Added additional argument.
1489 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 1490
fb52b50a
NF
14912010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1492
1493 PR c/33193
1494 * c-common.h (build_real_imag_expr): Declare.
1495 * c-semantics.c (build_real_imag_expr): Define.
1496
b37421c6
JM
14972010-11-17 Joseph Myers <joseph@codesourcery.com>
1498
1499 * c-opts.c (c_common_parse_file): Take no arguments.
1500 * c-common.h (c_common_parse_file): Update prototype.
1501
07078664
JJ
15022010-11-16 Jakub Jelinek <jakub@redhat.com>
1503
1504 PR c++/46401
1505 * c-common.c (warning_candidate_p): Don't track non-const calls
1506 or STRING_CSTs.
1507
c6a13190
ILT
15082010-11-15 Ian Lance Taylor <iant@google.com>
1509
1510 * c-lex.c (init_c_lex): Set macro debug callbacks if
1511 flag_dump_go_spec is set.
1512
925e8657
NP
15132010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1514
1515 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1516 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1517
bb0a9581
NF
15182010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1519
1520 PR preprocessor/45038
1521 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1522 dialects.
1523
c5fa0890
JM
15242010-11-12 Joseph Myers <joseph@codesourcery.com>
1525
1526 * c-common.h (c_family_lang_mask): Declare.
1527 * c-opts.c (c_family_lang_mask): Make extern.
1528 * c-pragma.c (handle_pragma_diagnostic): Use
1529 control_warning_option.
1530
a4d8c676
JM
15312010-11-12 Joseph Myers <joseph@codesourcery.com>
1532
1533 * c-common.c (parse_optimize_options): Update call to
1534 decode_options.
1535 * c-common.h (c_common_handle_option): Update prototype.
1536 * c-opts.c (c_common_handle_option): Take location_t parameter and
1537 pass it to other functions.
1538
f954bd2c
JM
15392010-11-11 Joseph Myers <joseph@codesourcery.com>
1540
1541 * c-opts.c (warning_as_error_callback): Remove.
1542 (c_common_initialize_diagnostics): Don't call
1543 register_warning_as_error_callback.
1544 (c_common_handle_option): Handle -Werror=normalized= here.
1545
d8a07487
JM
15462010-11-10 Joseph Myers <joseph@codesourcery.com>
1547
1548 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1549 in diagnostic.
1550 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1551 letter.
1552 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1553 Remove trailing '.' from diagnostics.
1554 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1555
d5478783
JM
15562010-11-10 Joseph Myers <joseph@codesourcery.com>
1557
1558 * c-common.c (parse_optimize_options): Pass global_dc to
1559 decode_options.
1560 * c-opts.c (c_common_handle_option): Pass &global_options to
1561 set_Wstrict_aliasing.
1562 * c.opt (v): Don't mark Common or document here.
1563
91ebb981
IS
15642010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1565
1566 PR target/44981
1567 * c-format.c (format_type): New type gcc_objc_string_format_type.
1568 (valid_stringptr_type_p): New.
1569 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 1570 (check_format_string): Pass expected type, use
91ebb981
IS
1571 valid_stringptr_type_p (), check that the format string types are
1572 consistent with the format specification.
1573 (decode_format_attr): Warn if NSString is used outside objective-c.
1574 (format_types_orig): Add NSString.
1575 (format_name): New.
1576 (format_flags): New.
1577 (check_format_arg): Handle format strings requiring an external parser.
1578 first_target_format_type: New variable.
1579 (handle_format_attribute): Set up first_target_format_type, pass the
1580 expected format arg string type to check_format_string().
1581 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1582 * stub-objc.c (objc_string_ref_type_p): New.
1583 (objc_check_format_arg): New.
1584
bede2adc
NP
15852010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1586
9faeb493 1587 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
1588 * c-common.h (objc_build_class_component_ref): New.
1589 * stub-objc.c (objc_build_class_component_ref): New.
1590
9a179d01
NP
15912010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1592
1593 * c.opt (Wproperty-assign-default): New option.
1594
22d8d616
NP
15952010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1596
1597 Implemented -fobjc-std=objc1 flag.
1598 * c.opt (fobjc-std=objc1): New option.
1599
2debdb4f
NP
16002010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1601
1602 Implemented format and noreturn attributes for Objective-C methods.
1603 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1604 attribute for Objective-C methods.
1605
ec52b111
JM
16062010-10-31 Jason Merrill <jason@redhat.com>
1607
1608 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1609 EXPR_LOC_OR_HERE.
1610
46a88c12
NP
16112010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1612
1613 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1614 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1615 (objc_add_property_declaration): Removed arguments for copies and
1616 ivar.
1617 (objc_build_getter_call): Renamed to
1618 objc_maybe_build_component_ref.
1619 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1620 (objc_is_property_ref): New.
1621 * c-common.c (c_common_reswords): Removed copies and ivar.
1622 * stub-objc.c (objc_add_property_declaration): Removed arguments
1623 for copies and ivar.
1624 (objc_build_getter_call): Renamed to
1625 objc_maybe_build_component_ref.
1626 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1627 (objc_is_property_ref): New.
9faeb493 1628
1e4bf85b
AC
16292010-10-29 Arnaud Charlet <charlet@adacore.com>
1630 Matthew Gingell <gingell@adacore.com>
1631
1632 * c-ada-spec.c (separate_class_package): New function.
1633 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1634 name of their enclosing package.
1635 (print_ada_declaration): Use separate_class_package.
1636
81f0bab2
JM
16372010-10-27 Jason Merrill <jason@redhat.com>
1638
2b08f2c5
JM
1639 * c-common.c (c_common_reswords): Add __is_literal_type.
1640 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1641
81f0bab2
JM
1642 * c-common.c (check_case_value): Remove special C++ code.
1643
200290f2
NP
16442010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1645
1646 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1647 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1648 and RID_LAST_PATTR.
1649 (objc_add_property_declaration): Added additional arguments.
1650 (objc_property_attribute_kind): Removed.
1651 (objc_set_property_attr): Removed.
1652 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1653 copy and nonatomic.
1654 * stub-objc.c (objc_add_property_declaration): Added additional
1655 arguments.
1656 (objc_set_property_attr): Removed.
9faeb493 1657
f614132b
NP
16582010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1659
1660 * c-common.h (objc_add_property_variable): Renamed to
1661 objc_add_property_declaration. Added location argument.
1662 * stub-objc.c (objc_add_property_variable): Same change.
1663
b8a18805
NP
16642010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1665
1666 * c-common.h (objc_maybe_printable_name): New.
1667 * stub-objc.c (objc_maybe_printable_name): New.
1668
30cd1c5d
AS
16692010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1670 Andrew Pinski <pinskia@gmail.com>
1671
1672 * c-common.h (c_common_mark_addressable_vec): Declare.
1673 * c-common.c (c_common_mark_addressable_vec): New function.
1674
249a82c4
NP
16752010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1676
1677 * c-common.h (objc_set_method_type): Removed.
1678 (objc_add_method_declaration): Added boolean argument.
1679 (objc_start_method_definition): Same change.
1680 (objc_build_method_signature): Same change.
1681 * stub-objc.c (objc_set_method_type): Removed.
1682 (objc_add_method_declaration): Added boolean argument.
1683 (objc_start_method_definition): Same change.
1684 (objc_build_method_signature): Same change.
1685
977e30bc
NP
16862010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1687
1688 * c-common.h (finish_file): Removed.
1689 (objc_write_global_declarations): New.
1690 * c-opts.c (c_common_parse_file): Do not call finish_file.
1691 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 1692
da57d1b9
NP
16932010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1694
1695 Implemented parsing @synthesize and @dynamic for
1696 Objective-C/Objective-C++.
1697 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1698 (objc_add_synthesize_declaration): New.
1699 (objc_add_dynamic_declaration): New.
1700 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1701 * stub-objc.c (objc_add_synthesize_declaration): New.
1702 (objc_add_dynamic_declaration): New.
9faeb493 1703
0069111f
MM
17042010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1705
1706 PR target/46041
1707 * c-cppbuiltin.c (mode_has_fma): Move function here from
1708 builtins.c. Don't use the fma optab, instead just use the
1709 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1710 using -save-temps.
1711
e426b47b
NP
17122010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1713
1714 Merge from 'apple/trunk' branch on FSF servers.
0069111f 1715
e426b47b
NP
1716 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1717
9faeb493 1718 Radar 4330422
e426b47b
NP
1719 * c-common.h (objc_non_volatilized_type): New declaration
1720 * stub-objc.c (objc_non_volatilized_type): New stub.
1721
90fbfdc3
NP
17222010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1723
e426b47b 1724 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
1725
1726 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1727
9faeb493 1728 Radar 4133425
90fbfdc3 1729 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 1730 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 1731
c37d8c30
IS
17322010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1733
1734 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1735 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1736 (objc_ivar_visibility_kind): New enum.
1737 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 1738 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
1739 visibility enum.
1740
1b1562a5
MM
17412010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1742
1743 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1744 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1745 has the appropriate fma builtins.
1746 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1747
668ea4b1
IS
17482010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1749
1b1562a5 1750 merge from FSF apple 'trunk' branch.
668ea4b1 1751 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 1752
668ea4b1
IS
1753 Radars 4436866, 4505126, 4506903, 4517826
1754 * c-common.c (c_common_resword): Define @property and its attributes.
1755 * c-common.h: Define property attribute enum entries.
1756 (OBJC_IS_PATTR_KEYWORD): New.
1757 (objc_property_attribute_kind): New enum.
1758 Declare objc_set_property_attr (), objc_add_property_variable (),
1759 objc_build_getter_call () and objc_build_setter_call ().
1760 * stub-objc.c (objc_set_property_attr): New stub.
1761 (objc_add_property_variable): Likewise.
1762 (objc_build_getter_call): Likewise.
1763 (objc_build_setter_call) Likewise.
1b1562a5 1764
a1178b30
IS
17652010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1766
1b1562a5 1767 merge from FSF apple 'trunk' branch.
a1178b30
IS
1768 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1769
1770 Radar 3803157 (method attributes)
1771 * c-common.c (handle_deprecated_attribute): Recognize
1772 objc methods as valid declarations.
1773 * c-common.h: Declare objc_method_decl ().
1b1562a5 1774 * stub-objc.c (objc_method_decl): New stub.
a1178b30 1775
a75bfaa6
JM
17762010-10-08 Joseph Myers <joseph@codesourcery.com>
1777
1778 * c-common.c (parse_optimize_options): Call
1779 decode_cmdline_options_to_array_default_mask before
1780 decode_options. Update arguments to decode_options.
1781 * c-common.h (c_common_init_options_struct): Declare.
1782 * c-opts.c (c_common_init_options_struct): New. Split out from
1783 c_common_init_options.
1784
f05b9d93
NP
17852010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1786
1787 Implemented fast enumeration for Objective-C.
1788 * c-common.h (objc_finish_foreach_loop): New.
1789 * stub-objc.c (objc_finish_foreach_loop): New.
1790
1ebe4b4f
JM
17912010-10-05 Joseph Myers <joseph@codesourcery.com>
1792
1793 * c-common.h (struct diagnostic_context): Don't declare here.
1794 (c_common_initialize_diagnostics): Declare using
1795 diagnostic_context typedef.
1796 * c-opts.c (c_common_handle_option): Pass global_dc to
1797 handle_generated_option.
1798
d4d24ba4
JM
17992010-10-04 Joseph Myers <joseph@codesourcery.com>
1800
1801 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1802 handle_generated_option.
1803
478a1c5b
ILT
18042010-10-03 Ian Lance Taylor <iant@google.com>
1805
1806 * c.opt (-fplan9-extensions): New option.
1807
82a1c2fe
FXC
18082010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1809
1810 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1811 Remove.
1812 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1813 of duplicating code.
1814
92902b1b
IS
18152010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1816
1817 * c-common.c: Add two new entries for @optional
1818 and @required keywords.
1819
1820 merge from FSF 'apple/trunk' branch.
1821 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1822
1823 Radar 4386773
1824 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1825 objective-c keywords.
1826 (objc_set_method_opt): New declaration.
1827 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 1828
46625112
JM
18292010-09-30 Joseph Myers <joseph@codesourcery.com>
1830
1831 * c-common.c (handle_optimize_attribute): Pass &global_options to
1832 cl_optimization_save and cl_optimization_restore.
1833 * c-opts.c (c_common_handle_option): Pass &global_options to
1834 handle_generated_option.
1835 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1836 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1837 &global_options to cl_optimization_restore.
1838
49b91f05
NP
18392010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1840
1841 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1842 Objective-C/Objective-C++ keywords.
1843
13ed556f 18442010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 1845
9faeb493
UB
1846 Merge from 'apple/trunk' branch on FSF servers.
1847
a6341d57
NP
1848 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1849
1850 Radar 4281748
1851 * c-common.h (objc_check_global_decl): New declaration.
1852 * stub-objc.c (objc_check_global_decl): New stub.
1853
f0036cca
JM
18542010-09-29 Joseph Myers <joseph@codesourcery.com>
1855
1856 * c.opt: Don't use VarExists.
1857
e3339d0f
JM
18582010-09-29 Joseph Myers <joseph@codesourcery.com>
1859
1860 * c-common.c (c_cpp_error): Update names of diagnostic_context
1861 members.
1862 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1863 cl_optimization members.
1864 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1865 sanitize_cpp_opts, finish_options): Update names of cpp_options
1866 members.
1867
1973201f
NP
18682010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1869
1870 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1871 (objc_is_reserved_word): Removed.
1872 * c-common.c: Updated comments.
1873 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1874 objc_is_reserved_word.
1875 * stub-objc.c (objc_is_reserved_word): Removed.
1876
f7e71da5
IS
18772010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1878
9faeb493 1879 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
1880 include attributes.
1881 (objc_start_method_definition): Likewise.
1882 (objc_build_keyword_decl): Likewise.
1883 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1884 (objc_start_method_definition): Likewise.
1885 (objc_build_keyword_decl): Likewise.
1886
c165dca7
IS
18872010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1888
1889 * c-common.h (objc_start_class_interface): Adjust prototype.
1890 (objc_start_category_interface): Likewise.
1891 (objc_start_protocol): Likewise.
1892 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1893 (objc_start_class_interface): Likewise.
1894 (objc_start_category_interface): Likewise.
1895
7458026b
ILT
18962010-09-27 Ian Lance Taylor <iant@google.com>
1897
1898 * c-common.c (c_common_attribute_table): Add no_split_stack.
1899 (handle_no_split_stack_attribute): New static function.
1900
b581b85b
NP
19012010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1902
9faeb493 1903 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
1904
1905 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1906
9faeb493 1907 Radar 4229905
b581b85b
NP
1908 * c-common.h (objc_have_common_type): New declaration.
1909 * stub-objc.c (objc_have_common_type): New stub.
1910
1911 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1912
1913 Radar 4154928
1914 * c-common.h (objc_common_type): New prototype.
9faeb493 1915 * stub-objc.c (objc_common_type): New stub.
b581b85b 1916
46a4da10
JH
19172010-09-24 Jan Hubicka <jh@suse.cz>
1918
1919 * c-common.c (handle_leaf_attribute): New function.
1920 (struct attribute_spec c_common_att): Add leaf.
1921
e200444e
JM
19222010-09-22 Joseph Myers <joseph@codesourcery.com>
1923
1924 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1925 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1926 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1927 -include-barrier, -include-directory, -include-directory=,
1928 -include-directory-after, -include-directory-after=,
1929 -include-prefix, -include-prefix=, -include-with-prefix,
1930 -include-with-prefix=, -include-with-prefix-after,
1931 -include-with-prefix-after=, -include-with-prefix-before,
1932 -include-with-prefix-before=, -no-integrated-cpp,
1933 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1934 -output=, -pedantic, -pedantic-errors, -preprocess,
1935 -print-missing-file-dependencies, -trace-includes, -traditional,
1936 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1937 -user-dependencies, -verbose, -write-dependencies,
1938 -write-user-dependencies, no-integrated-cpp, traditional): New.
1939
29a80ea6
NP
19402010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1941
1942 PR objc/23710
ac1fc2fc
NP
1943 * c-common.h (objc_start_method_definition): Return bool instead
1944 of void.
1945 * stub-objc.c (objc_start_method_definition): Return bool instead
1946 of void.
1947
19482010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1949
1950 PR objc/25965
1951 * c-common.h (objc_get_interface_ivars): New declaration.
1952 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 1953
de621752
ILT
19542010-09-15 Ian Lance Taylor <iant@google.com>
1955
1956 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 1957 messages. Remove period at end of warning message.
de621752 1958
ba885ec5
NS
19592010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1960
1961 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1962 (handle_alias_attribute): ... here.
1963 (handle_ifunc_attribute): New.
1964
c5ee1358
MM
19652010-09-06 Mark Mitchell <mark@codesourcery.com>
1966
1967 * c-common.h (do_warn_double_promotion): Declare.
1968 * c-common.c (do_warn_double_promotion): Define.
1969
0a0b3574
MM
19702010-09-05 Mark Mitchell <mark@codesourcery.com>
1971
1972 * c.opt (Wdouble-promotion): New.
1973
d1779886
JM
19742010-09-02 Joseph Myers <joseph@codesourcery.com>
1975
1976 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1977 fvtable-thunks, fxref): Mark no longer supported in help text.
1978
2d2bd949
JM
19792010-09-02 Joseph Myers <joseph@codesourcery.com>
1980
1981 * c.opt (Wimport, fall-virtual, falt-external-templates,
1982 fdefault-inline, fenum-int-equiv, fexternal-templates,
1983 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1984 fname-mangling-version-, fnew-abi, fnonnull-objects,
1985 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1986 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1987 applicable.
1988 (fhandle-exceptions): Mark with Alias and Warn.
1989 * c-opts.c (c_common_handle_option): Don't handle options marked
1990 as ignored.
1991
5de8299c
JM
19922010-09-02 Joseph Myers <joseph@codesourcery.com>
1993
1994 * c.opt (Wcomments, Werror-implicit-function-declaration,
1995 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1996 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1997 aliases.
1998 * c-common.c (option_codes): Use OPT_Wcomment instead of
1999 OPT_Wcomments.
2000 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2001 Don't handle options marked as aliases.
2002
0ceb0201
RG
20032010-08-25 Richard Guenther <rguenther@suse.de>
2004
2005 * c-common.c (c_common_get_alias_set): Remove special
2006 handling for pointers.
2007
ac47786e
NF
20082010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2009
2010 * c-common.c: Use FOR_EACH_VEC_ELT.
2011 * c-gimplify.c: Likewise.
2012 * c-pragma.c: Likewise.
2013
c878765b
JM
20142010-08-16 Joseph Myers <joseph@codesourcery.com>
2015
2016 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2017 RejectDriver.
2018 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2019 RejectDriver.
2020 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2021 instead of OPT_MDX and OPT_MMDX.
2022
603349bf
JM
20232010-08-16 Joseph Myers <joseph@codesourcery.com>
2024
2025 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2026
644fa7ac
JM
20272010-08-12 Joseph Myers <joseph@codesourcery.com>
2028
2029 * c.opt (MD, MMD): Change to MDX and MMDX.
2030 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2031
481e1176
JM
20322010-08-11 Joseph Myers <joseph@codesourcery.com>
2033
2034 * c-opts.c (c_common_handle_option): Call handle_generated_option
2035 instead of handle_option.
2036
ac8dc9f7
NF
20372010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2038
2039 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2040 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2041
4f8c876d
NF
20422010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2043
2044 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2045 (pending_redefine_extname): Change type to a VEC.
2046 (add_to_renaming_pragma_list): Update for new type of
2047 pending_redefine_extname.
ac8dc9f7 2048 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 2049
3b0c690e
AC
20502010-08-04 Arnaud Charlet <charlet@adacore.com>
2051
2052 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2053 visited.
2054 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2055 decide whether a type has already been declared/seen.
2056 Do not go to the original type.
2057 (dump_nested_types): New parameter forward.
2058 Generate forward declaration if needed and mark type as visited.
2059 (print_ada_declaration): Call dump_nested_types if not already done.
2060 Mark types as visited.
2061
1890bccc
JM
20622010-08-03 Joseph Myers <joseph@codesourcery.com>
2063
2064 * c.opt (-print-pch-checksum): Remove option.
2065 * c-opts.c (c_common_handle_option): Don't handle
2066 OPT_print_pch_checksum.
2067
5f20c657
JM
20682010-07-27 Joseph Myers <joseph@codesourcery.com>
2069
2070 * c-common.h (c_common_handle_option): Update prototype and return
2071 value type.
2072 * c-opts.c (c_common_handle_option): Update prototype and return
2073 value type. Update calls to handle_option and
2074 enable_warning_as_error.
2075
f551f80c
JJ
20762010-07-27 Jakub Jelinek <jakub@redhat.com>
2077
2078 PR c/45079
2079 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2080
61ff2bdc
JM
20812010-07-27 Joseph Myers <joseph@codesourcery.com>
2082
2083 * c-common.h (c_common_missing_argument): Remove.
2084 * c-opts.c (c_common_missing_argument): Remove.
2085 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2086 idirafter, imacros, include, isysroot, isystem, iquote): Add
2087 MissingArgError.
2088 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2089
7a9bf9a4
JM
20902010-07-27 Joseph Myers <joseph@codesourcery.com>
2091
2092 * c-common.h (c_common_option_lang_mask,
2093 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2094 New.
2095 (c_common_init_options): Update prototype.
2096 * c-opts.c (c_common_option_lang_mask): New.
2097 (c_common_initialize_diagnostics): Split out of
2098 c_common_init_options.
2099 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2100 New.
2101 (c_common_init_options): Update prototype. Use decoded options in
2102 search for -lang-asm.
2103
910ad8de
NF
21042010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2105
2106 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2107 * c-format.c: Likewise.
2108
718f9c0f
MLI
21092010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2110
2111 * c-common.h: Include diagnostic-core.h. Error if already
2112 included.
2113 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2114
4d451982
MLI
21152010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2116
2117 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2118 Do not include expr.h
2119 (vector_mode_valid_p): Move here.
2120
119fe915
SB
21212010-06-21 DJ Delorie <dj@redhat.com>
2122
2123 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2124 allow these pragmas anywhere.
2125
21262010-06-14 Jakub Jelinek <jakub@redhat.com>
2127
2128 PR bootstrap/44509
2129 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2130 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2131 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2132 ggc_strdup instead of xstrdup.
2133
21342010-06-10 Jakub Jelinek <jakub@redhat.com>
2135
2136 * c-cppbuiltin.c: Include cpp-id-data.h.
2137 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2138 (lazy_hex_fp_value): New function.
2139 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2140
6662d794
MLI
21412010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2142
2143 * c-gimplify.c: Do not include tree-flow.h
2144
38f8b050
JR
21452010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2146
2147 PR other/44034
2148 * c-common.c: Rename targetm member:
2149 targetm.enum_va_list -> targetm.enum_va_list_p
2150
9589f23e
AS
21512010-06-28 Anatoly Sokolov <aesok@post.ru>
2152
2153 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2154
3b06d379
SB
21552010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2156
2157 * c-cppbuiltin.c: Do not include except.h.
2158
d166d4c3
AK
21592010-06-24 Andi Kleen <ak@linux.intel.com>
2160
9faeb493
UB
2161 * c-common.c (warn_for_omitted_condop): New.
2162 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 2163
70cb8be6
JM
21642010-06-21 Joseph Myers <joseph@codesourcery.com>
2165
2166 * c.opt (lang-objc): Remove.
2167 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2168
a4c97feb
JR
21692010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2170
2171 * c-opts.c: Include "tm_p.h".
2172
6e2f1956
JM
21732010-06-20 Joseph Myers <joseph@codesourcery.com>
2174
2175 * c-common.c (parse_optimize_options): Update call to
2176 decode_options.
2177
bc87224e
NF
21782010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2179
2180 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2181 new type of types_used_by_cur_var_decl.
2182
b49cf425
JR
21832010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2184
2185 PR bootstrap/44512
2186 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2187 for C++ standard compliance.
2188
59f9c2ed
JM
21892010-06-16 Jason Merrill <jason@redhat.com>
2190
2191 * c.opt: Add -Wnoexcept.
2192
33766b66
RG
21932010-06-16 Richard Guenther <rguenther@suse.de>
2194
2195 PR c/44555
2196 * c-common.c (c_common_truthvalue_conversion): Remove
2197 premature and wrong optimization concering ADDR_EXPRs.
2198
eff7e30c
AC
21992010-06-15 Arnaud Charlet <charlet@adacore.com>
2200
2201 * c-ada-spec.c (dump_sloc): Remove column info.
2202 (is_simple_enum): New function.
2203 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2204 enum types when relevant.
2205
6312e84d
MLI
22062010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2207
9faeb493 2208 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
2209 location.
2210
1cb42611
JM
22112010-06-10 Joseph Myers <joseph@codesourcery.com>
2212
2213 * c-opts.c (c_common_handle_option): Don't handle
2214 OPT_fshow_column.
2215
a9429e29
LB
22162010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2217
2218 * c-pragma.c (push_alignment): Use typed GC allocation.
2219 (handle_pragma_push_options): Likewise.
2220
2221 * c-common.c (parse_optimize_options): Likewise.
2222
2223 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2224 option.
2225
5498f011
JM
22262010-06-07 Joseph Myers <joseph@codesourcery.com>
2227
2228 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2229 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2230 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2231 flag_signed_bitfields, warn_strict_null_sentinel,
2232 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2233 flag_gen_declaration, flag_no_gnu_keywords,
2234 flag_implement_inlines, flag_implicit_templates,
2235 flag_implicit_inline_templates, flag_optional_diags,
2236 flag_elide_constructors, flag_default_inline, flag_rtti,
2237 flag_conserve_space, flag_access_control, flag_check_new,
2238 flag_new_for_scope, flag_weak, flag_working_directory,
2239 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2240 flag_enforce_eh_specs, flag_threadsafe_statics,
2241 flag_pretty_templates): Remove.
2242 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2243 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2244 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2245 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2246 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2247 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2248 flag_no_gnu_keywords, flag_implement_inlines,
2249 flag_implicit_templates, flag_implicit_inline_templates,
2250 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2251 flag_rtti, flag_conserve_space, flag_access_control,
2252 flag_check_new, flag_new_for_scope, flag_weak,
2253 flag_working_directory, flag_use_cxa_atexit,
2254 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2255 flag_threadsafe_statics, flag_pretty_templates,
2256 warn_strict_null_sentinel): Remove.
2257 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2258 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2259 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2260 fimplicit-inline-templates, fimplicit-templates,
2261 flax-vector-conversions, fms-extensions, fnil-receivers,
2262 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2263 frtti, fshort-double, fshort-enums, fshort-wchar,
2264 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2265 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2266 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2267 gen-decls, undef): Use Var.
2268 (fdefault-inline, foptional-diags): Document as doing nothing.
2269 * c-opts.c (c_common_handle_option): Remove cases for options now
2270 using Var. Mark ignored options as such.
2271
39dabefd
SB
22722010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2273
9faeb493 2274 * c-common.c: Moved to here from parent directory.
39dabefd
SB
2275 * c-common.def: Likewise.
2276 * c-common.h: Likewise.
2277 * c-cppbuiltin.c: Likewise.
2278 * c-dump.c: Likewise.
2279 * c-format.c: Likewise.
2280 * c-format.h : Likewise.
2281 * c-gimplify.c: Likewise.
2282 * c-lex.c: Likewise.
2283 * c-omp.c: Likewise.
2284 * c.opt: Likewise.
2285 * c-opts.c: Likewise.
2286 * c-pch.c: Likewise.
2287 * c-ppoutput.c: Likewise.
2288 * c-pragma.c: Likewise.
2289 * c-pragma.h: Likewise.
2290 * c-pretty-print.c: Likewise.
2291 * c-pretty-print.h: Likewise.
2292 * c-semantics.c: Likewise.
2293 * stub-objc.c: Likewise.
2294
2295 * c-common.c: Include gt-c-family-c-common.h.
2296 * c-pragma.c: Include gt-c-family-c-pragma.h.
2297\f
04695783 2298Copyright (C) 2010, 2011 Free Software Foundation, Inc.
39dabefd
SB
2299
2300Copying and distribution of this file, with or without modification,
2301are permitted in any medium without royalty provided the copyright
2302notice and this notice are preserved.