]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
re PR target/56347 (FAIL: gfortran.dg/integer_exponentiation_2.f90 -O2 execution...
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
cf35e2b1
JJ
12013-02-05 Jakub Jelinek <jakub@redhat.com>
2
3 PR middle-end/56167
4 * c-common.c (handle_error_attribute): Fix condition.
5
32887460
JJ
62013-01-30 Jakub Jelinek <jakub@redhat.com>
7
8 PR c++/55742
9 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
10
5af057d8
JM
112013-01-18 Jason Merrill <jason@redhat.com>
12
13 PR target/54908
14 * c.opt (-fextern-tls-init): New.
15 * c-opts.c (c_common_post_options): Handle it.
16
cc83c823
JJ
172013-01-09 Jakub Jelinek <jakub@redhat.com>
18
19 PR c/48418
20 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
21 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
22 and is either negative or bigger or equal to type precision
23 of the first operand.
24
a859517f
MP
252012-12-03 Marek Polacek <polacek@redhat.com>
26
27 PR c/55570
28 * c-common.c (check_user_alignment): Swap order of tests,
29 check TREE_CODE first.
30
2d7aa578
ESR
312012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
32
33 PR c++/52654
34 * c-common.h (overflow_type): New enum.
35 (build_userdef_literal): Add overflow_type argument.
36 (tree_userdef_literal): Add overflow_type.
37 (USERDEF_LITERAL_OVERFLOW): New access macro.
38 * c-common.c (build_userdef_literal): Add overflow_type
39 argument.
40 * c-lex.c (c_lex_with_flags): Add overflow_type to
41 build_userdef_literal calls.
42 (interpret_integer, interpret_float): Add overflow_type argument.
43
cc3c4f62
RB
442012-11-28 Richard Biener <rguenther@suse.de>
45
46 PR c/35634
47 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
48 here and use a type with proper overflow behavior for types that would
49 need to be promoted for the arithmetic.
50
77bc5132
JJ
512012-11-23 Jakub Jelinek <jakub@redhat.com>
52
53 PR sanitizer/55435
54 * c-common.c (handle_no_address_safety_analysis_attribute): New
55 function.
56 (c_common_attribute_table): Add no_address_safety_analysis.
57
5dc99c46
SB
582012-11-16 Simon Baldwin <simonb@google.com>
59
60 * c.opt: Add f[no-]canonical-system-headers.
61 * c-opts.c (c_common_handle_option): Handle
62 OPT_fcanonical_system_headers.
63
a4a0016d
ESR
642012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
65
66 PR c++/54413
67 * c-opts.c (c_common_handle_option): Set new flags.
68 * c.opt: Describe new flags.
69
7dbb85a7
JM
702012-11-09 Jason Merrill <jason@redhat.com>
71
72 * c.opt (Wabi-tag): New.
73
ad7bac31
AK
742012-11-09 Andi Kleen <ak@linux.intel.com>
75
76 PR 55139
77 * c-common.c (get_atomic_generic_size): Mask with
78 MEMMODEL_MASK
79
7332899a
MLI
802012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
81
82 PR c/53063
83 * c.opt (Wformat): Make it Alias Wformat=1.
84 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
85 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
86 LangEnabledBy.
87 (Wformat=): RejectNegative. Use LangEnabledBy.
88 (Wnonnull): Use LangEnabledBy.
89 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
90 * c-format.c (set_Wformat): Delete.
91 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
92 (maybe_read_dollar_number): Likewise.
93 (avoid_dollar_number): Likewise.
94 (finish_dollar_format_checking): Likewise.
95 (check_format_info): Likewise.
96 (check_format_info_main): Likewise.
97 (check_format_types): Likewise.
98 (format_type_warning): Likewise.
99 * c-common.c (int): Likewise.
100 (check_function_sentinel): Likewise.
101 * c-common.h (warn_format,set_Wformat): Do not declare here.
102
34a180a6
MLI
1032012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
104
105 PR c/53063
106 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
107 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
108 Use LangEnabledBy.
109 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
110 common.opt.
111 (Wvariadic-macros): Init(1).
112 * c-opts.c (c_common_handle_option): Do not handle them
113 explicitly.
114 (c_common_post_options): Likewise.
115 (sanitize_cpp_opts): warn_unused_macros is now
116 cpp_warn_unused_macros.
117 (push_command_line_include): Likewise.
118 * c-common.c (warn_unknown_pragmas): Do not define.
119 * c-common.h (warn_unknown_pragmas): Do not declare.
120
3f46d6a5
MLI
1212012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
122
123 PR c/51294
124 * c-common.c (conversion_warning): Handle conditional expressions.
125
880661a4
JW
1262012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
127
128 PR c++/54930
129 * c.opt (Wreturn_local_addr): Define new option.
130
4514a96b
JM
1312012-10-25 Jason Merrill <jason@redhat.com>
132
f14edc1a
JM
133 * c.opt (Wvirtual-move-assign): New.
134
4514a96b
JM
135 * c.opt (Winherited-variadic-ctor): New.
136
93100c6b
MG
1372012-10-25 Marc Glisse <marc.glisse@inria.fr>
138
139 PR c++/54427
140 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
141
1efcb8c6
JM
1422012-10-23 Joseph Myers <joseph@codesourcery.com>
143
144 * c-common.h (pch_cpp_save_state): Declare.
145 * c-target.def (c_preinclude): New hook.
146 * c-opts.c (done_preinclude): New.
147 (push_command_line_include): Handle default preincluded header.
148 (cb_file_change): Call pch_cpp_save_state when calling
149 push_command_line_include.
150 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
151 (pch_cpp_save_state): New.
152 (pch_init): Call pch_cpp_save_state conditionally, instead of
153 calling cpp_save_state.
154
4a0ae68e
MLI
1552012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
156
157 PR c/53063
158 PR c/40989
159 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
160 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
161 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
162 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
163 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
164 * c-opts.c (c_common_handle_option): Remove explicit handling from
165 here.
166 (c_common_post_options): Likewise.
167
67e4210b
EB
1682012-10-18 Eric Botcazou <ebotcazou@adacore.com>
169
170 * c-ada-spec.c (LOCATION_COL): Delete.
171 (compare_location): New function.
172 (compare_node): Use it.
173 (compare_comment): Likewise.
174
65d4f2cd
MLI
1752012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
176
177 PR c/53063
178 PR c/40989
179 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
180 * c-opts.c (c_common_handle_option): Do not set them here. Add
181 comment.
182 (c_common_post_options): Likewise.
183
909881cb
EB
1842012-10-16 Eric Botcazou <ebotcazou@adacore.com>
185
186 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
187 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
188 Remove POINTER_TYPE handling, add large unsigned handling and use
189 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
190
3a785c97
JJ
1912012-10-12 Jakub Jelinek <jakub@redhat.com>
192
193 PR c/54381
194 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
195 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
196 locs and array of 3 trees instead of just single loc and single
197 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
198 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
199 For *cmp* builtins that take two sources strings report warnings
200 about first and second source, not about destination and source.
201
5e54f81d
MG
2022012-10-12 Marc Glisse <marc.glisse@inria.fr>
203
204 PR c++/53055
205 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
206
f5b02f1e
EB
2072012-10-11 Eric Botcazou <ebotcazou@adacore.com>
208
209 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
210 declaring something coming from another file.
211
b46dbc6c
AC
2122012-10-10 Arnaud Charlet <charlet@adacore.com>
213
f5b02f1e 214 PR ada/54845
b46dbc6c
AC
215 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
216
5d9de0d0
PC
2172012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
218
219 PR c++/54194
220 * c-common.c (warn_about_parentheses): Add location_t parameter;
221 use EXPR_LOC_OR_LOC.
222 * c-common.h: Update declaration.
223
a212e43f
MG
2242012-10-09 Marc Glisse <marc.glisse@inria.fr>
225
226 PR c++/54427
227 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
228 more operations. Make error messages optional.
229 * c-common.h (enum stv_conv): Moved from c-typeck.c.
230 (scalar_to_vector): Declare.
231
b1db7f91
JM
2322012-10-08 Jason Merrill <jason@redhat.com>
233
234 * c-common.c (c_common_reswords): Add thread_local.
235
e28d52cf
DS
2362012-10-08 Dodji Seketeli <dodji@redhat.com>
237
238 PR c++/53528 C++11 attribute support
239 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
240 new functions.
241 * c-common.c (check_cxx_fundamental_alignment_constraints): New
242 static function.
243 (handle_aligned_attribute): In choose strictest alignment
244 among many. Use new check_cxx_fundamental_alignment_constraints.
245 (handle_transparent_union_attribute): In c++11 attribute syntax,
246 don't look through typedefs.
247
3b78de56
AC
2482012-10-04 Arnaud Charlet <charlet@adacore.com>
249
250 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
251 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
252 out of dumpfile.h.
253
6040bb5f
DC
2542012-09-25 Dehao Chen <dehao@google.com>
255
256 PR middle-end/54645
3b78de56 257 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
258 map when read in the pch.
259
0b07a57e
AC
2602012-09-18 Arnaud Charlet <charlet@adacore.com>
261
262 * c-ada-spec.c: Style fixes.
263
da5182be
TQ
2642012-09-18 Thomas Quinot <quinot@adacore.com>
265
266 * c.opt (-fada-spec-parent): Define new command line switch.
267 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
268 is specified, generate binding spec as a child of the specified unit.
269
0ccb505d
PC
2702012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
271 Manuel López-Ibáñez <manu@gcc.gnu.org>
272
273 PR c++/53210
274 * c.opt ([Winit-self]): Enabled by -Wall in C++.
275
c583af79
AC
2762012-08-23 Arnaud Charlet <charlet@adacore.com>
277
278 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
279 for pointers, and add missing Convention C pragma.
280 (print_ada_struct_decl): Add missing aliased keyword.
281 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
282
1a4049e7
JJ
2832012-08-17 Jakub Jelinek <jakub@redhat.com>
284
285 * c-common.c (sizeof_pointer_memaccess_warning): New function.
286 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
287 * c-opts.c (c_common_handle_option): Enable it for -Wall.
288 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
289 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
290
70b5e7dc
RG
2912012-08-10 Richard Guenther <rguenther@suse.de>
292
293 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
294
f8923f7e
SB
2952012-08-07 Steven Bosscher <steven@gcc.gnu.org>
296
297 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
298 instead of separate pp_newline and pp_flush.
299 (print_c_tree): Likewise.
300
e45abe1f
RH
3012012-07-26 Richard Henderson <rth@redhat.com>
302
303 * c-common.c (handle_hot_attribute): Allow labels.
304 (handle_cold_attribute): Likewise.
305
332f1d24
JJ
3062012-07-20 Jakub Jelinek <jakub@redhat.com>
307
308 PR c++/28656
309 * c-common.c (check_function_nonnull): Handle multiple nonnull
310 attributes properly.
311
7ee2468b
SB
3122012-07-16 Steven Bosscher <steven@gcc.gnu.org>
313
314 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
315 * c-ada-spec.c: Likewise.
316 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
317
ee7b28eb
SB
3182012-07-14 Steven Bosscher <steven@gcc.gnu.org>
319
320 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
321 Remove code conditional on it.
322
6bdf3519
SB
3232012-07-11 Steven Bosscher <steven@gcc.gnu.org>
324
325 * c-gimplify.c: Do not include basic-block.h.
326 * c-common.c: Do not include linfuncs.h.
327
532aafad
SB
3282012-07-08 Steven Bosscher <steven@gcc.gnu.org>
329
330 * c-common.h: Include tree.h.
331
8d0d1915
JM
3322012-07-02 Jason Merrill <jason@redhat.com>
333
334 PR c++/53524
335 * c-common.c (get_priority): Call default_conversion.
336
fbc873ad
UB
3372012-07-01 Uros Bizjak <ubizjak@gmail.com>
338
339 * c-pch.c (c_common_write_pch): Remove unused variables.
340
d4a10d0a
SB
3412012-06-29 Steven Bosscher <steven@gcc.gnu.org>
342
343 * cppspec.c: Moved from gcc/ to here.
344
6f3a2e23
KT
3452012-06-27 Kai Tietz <ktietz@redhat.com>
346
347 PR preprocessor/37215
348 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
349
8ca92d04
SB
3502012-06-21 Steven Bosscher <steven@gcc.gnu.org>
351
352 * c-common.h (c_common_print_pch_checksum): Remove.
353 * c-pch.c: Do not include output.h.
354 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
355 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
356 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
357 (struct c_pch_header): Remove.
358 (get_ident): Update gpch version.
359 (pch_init): Do not print executable_checksum to asm_out_file.
360 Do not fail if there is no asm_out_file to read back from. Set
361 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
362 (c_common_write_pch): Verify that nothing was written to asm_out_file
363 since pch_init was called. Do not write a c_pch_header, and do not
364 copy from asm_out_file to the PCH.
365 (c_common_read_pch): Do not read a c_pch_header, and do not restore
366 the content of asm_out_file from the PCH.
367 (c_common_print_pch_checksum): Remove.
368 * c-opts.c (c_common_init): Print out executable_checksum directly.
369
70f42967
SB
3702012-06-19 Steven Bosscher <steven@gcc.gnu.org>
371
372 * c-target.def (objc_declare_unresolved_class_reference,
373 objc_declare_class_definition): Add new hooks.
374
a8781821
SB
3752012-06-19 Steven Bosscher <steven@gcc.gnu.org>
376
377 * c-lex.c: Do not include output.h.
378 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
379 Remove uses of ASM_OUTPUT_IDENT.
380
9e1a8dd1
RR
3812012-06-15 Marc Glisse <marc.glisse@inria.fr>
382
383 PR c++/51033
384 * c-common.h (c_build_vec_perm_expr): Move decl here.
385 * c-common.c (c_build_vec_perm_expr): Move definition
386 here.
387
6f07a821
SB
3882012-06-06 Steven Bosscher <steven@gcc.gnu.org>
389
390 * c.opt (fconserve-space): Turn into a no-op.
391
9faeb493 3922012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
393
394 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
395 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
396 both the start and end of the function.
397
a4b7d13c
SB
3982012-06-04 Steven Bosscher <steven@gcc.gnu.org>
399
400 * c-common.c: Do not include output.h.
401 * c-pragma.c: Likewise.
402
c265f413
SA
4032012-06-04 Steven Bosscher <steven@gcc.gnu.org>
404
405 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
406 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
407 (lang_decl_name): Handle namespace decls.
408
be7a421e
SB
4092012-05-31 Steven Bosscher <steven@gcc.gnu.org>
410
411 * c-ada-spec.c: Do not include output.h.
412 * c-semantics.c: Likewise.
413
65de6659
JM
4142012-05-29 Joseph Myers <joseph@codesourcery.com>
415
416 * c-common.c: Fix typo.
417
ca5f4331
MM
4182012-05-29 Michael Matz <matz@suse.de>
419
420 * c-common.h (c_expand_decl): Remove prototype.
421
4f7f7aca
MLI
4222012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
423
424 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
425 * c-opts.c (c_common_handle_option): Remove code handling
426 warn_missing_braces.
427
4a792f9b
PC
4282012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
429
430 PR c++/25137
431 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
432 -Wmissing_braces.
433
650dc14a
DS
4342012-05-22 Dodji Seketeli <dodji@redhat.com>
435
436 PR c++/53322
437 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
438
9b095bf1
MLI
4392012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
440
441 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
442 * c-opts.c (c_common_handle_option): Do not handle explicitly
443 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
444
0b2c4be5
DS
4452012-05-16 Dodji Seketeli <dodji@redhat.com>
446
447 PR preprocessor/7263
448 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
449 to cpp_classify_number. For diagnostics, use the precise location
450 instead of the global input_location.
451
a1bde5af
PC
4522012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
453
d02924ef 454 PR c++/11856
a1bde5af
PC
455 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
456
d1ede5f4
BS
4572012-05-14 Bernd Schmidt <bernds@codesourcery.com>
458
a1bde5af 459 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 460
f2bc201f
MLI
4612012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
462
463 PR 53063
464 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
465 Wreorder): Use LangEnabledBy.
466 * c-opts.c (c_common_handle_option): Do not enable them
467 explicitly. Call lang-specific generated functions.
468 (c_common_post_options): Do not set them here.
469
95744782
MLI
4702012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
471
472 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
473 Wmissing-field-initializers,Wmissing-parameter-type,
474 Wold-style-declaration,Woverride-init): Use EnabledBy.
475 * c-opts.c (c_common_post_options): Do not set here explicitly.
476
7d5a5747
MLI
4772012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
478
479 PR 53063
480 * c-opts.c (c_common_handle_option): Use handle_generated_option
481 to enable sub-options.
482
5a3c9cf2
PC
4832012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
484
485 PR c++/53158
486 * c-common.c (warnings_for_convert_and_check): Use warning_at.
487
3ac8781c
RG
4882012-05-10 Richard Guenther <rguenther@suse.de>
489
490 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
491 adjust commentary about TYPE_IS_SIZETYPE types.
492
1e537948
MLI
4932012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
494
495 PR c++/53261
496 * c-common.c (warn_logical_operator): Check that argument of
497 integer_zerop is not NULL.
498
f2c4a785
MLI
4992012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
500
501 PR c/43772
502 * c-common.c (warn_logical_operator): Do not warn if either side
503 is already true or false.
504
50f305ca
MLI
5052012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
506
507 PR c/51712
508 * c-common.c (expr_original_type): New.
509 (shorten_compare): Do not warn for enumeration types.
510
0c3641b0
MLI
5112012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
512
513 * c.opt (fpermissive): Add Var(flag_permissive).
514
7edaa4d2
MG
5152012-04-30 Marc Glisse <marc.glisse@inria.fr>
516
517 PR c++/51033
518 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
519 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
520
b9c8da34
DS
5212012-04-30 Dodji Seketeli <dodji@redhat.com>
522
523 Add -Wvarargs option
524 * c.opt (Wvarargs): Define new option.
525
e6c69da0
MLI
5262012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
527
528 * c-common.c (check_function_arguments): Replace
529 Wmissing-format-attribute with Wsuggest-attribute=format.
530
90137d8f
MLI
5312012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
532
533 * c.opt (Wsuggest-attribute=format): New. Alias of
534 Wmissing-format-attribute.
535 * c-format.c (decode_format_type): Replace
536 Wmissing-format-attribute with Wsuggest-attribute=format.
537 (check_function_format): Likewise.
538
9faeb493 5392012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
540
541 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
542 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
543 * c.opt: Add Wliteral-suffix.
544
c1771a20
MLI
5452012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
546
547 PR c/44774
548 * c.opt (Wpedantic): New.
549 (pedantic): Alias Wpedantic.
550 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
551 (c_common_post_options): Likewise.
552 (sanitize_cpp_opts): Likewise.
553 * c-lex.c (interpret_float): Likewise.
554 * c-format.c (check_format_types): Likewise.
555 * c-common.c (pointer_int_sum): Likewise.
556 (c_sizeof_or_alignof_type): Likewise.
557 (c_add_case_label): Likewise.
558 (c_do_switch_warnings): Likewise.
559 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
560
04b391c1
JM
5612012-04-15 Jason Merrill <jason@redhat.com>
562
563 PR c++/52818
564 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
565 (C_STD_NAME): Distinguish between C++98 and C++11.
566
ac868f29
EB
5672012-04-11 Eric Botcazou <ebotcazou@adacore.com>
568
569 PR target/52624
570 * c-common.h (uint16_type_node): Rename into...
571 (c_uint16_type_node): ...this.
572 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
573 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
574
fd4116f4
MLI
5752012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
576
577 * c-common.c (warn_if_unused_value): Move definition to here.
578 * c-common.h (warn_if_unused_value): Move declaration to here.
579
573ac65e
WB
5802012-03-23 William Bader <williambader@hotmail.com>
581
582 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
583
552b8185
JM
5842012-03-20 Jason Merrill <jason@redhat.com>
585
586 * c-common.h (enum cxx_dialect): Add cxx1y.
587 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
588 test.
589 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
590 * c-opts.c (c_common_post_options): Likewise.
591 (set_std_cxx1y): New.
592 (c_common_handle_option): Call it.
593 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
594
04398fa8
PC
5952012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
596
597 PR c++/14710
598 * c.opt ([Wuseless-cast]): Add.
599
d2a12ae7
RG
6002012-03-16 Richard Guenther <rguenther@suse.de>
601
602 * c-pretty-print.c (pp_c_initializer_list): Adjust.
603
a12bf402
MLI
6042012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
605
606 PR c++/44783
607 * c.opt (ftemplate-backtrace-limit) Add.
608
5c30094f
RO
6092012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
610
611 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
612 handling.
613 * c-pragma.c (handle_pragma_extern_prefix): Remove.
614 (init_pragma): Don't register extern_prefix.
615
21fa2faf
RG
6162012-03-12 Richard Guenther <rguenther@suse.de>
617
618 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
619 (builtin_type_for_size): Likewise.
620
e3793c6f
JJ
6212012-02-13 Jakub Jelinek <jakub@redhat.com>
622
623 PR c++/52215
624 * c-common.c (sync_resolve_params): Don't decide whether to convert
625 or not based on TYPE_SIZE comparison, convert whenever arg_type
626 is unsigned INTEGER_TYPE.
627
93286335
PC
6282012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
629
630 PR c/52118
631 * c.opt ([Wunused-local-typedefs]): Fix description.
632
7a421706
MS
6332012-01-24 Mike Stump <mikestump@comcast.net>
634
635 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
636 exactly.
637
ba9b1f11
RG
6382012-01-18 Richard Guenther <rguenther@suse.de>
639
640 * c-opts.c (c_common_post_options): Reset LTO flags if
641 we are about to generate a PCH.
642
465406be
PC
6432012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
644
645 PR c++/51777
646 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
647 use pp_unsigned_wide_integer.
648
aee15221
RG
6492012-01-10 Richard Guenther <rguenther@suse.de>
650
651 PR middle-end/51806
652 * c-opts.c (c_common_handle_option): Move -Werror handling
653 to language independent code.
654
5720c0dc
RG
6552012-01-05 Richard Guenther <rguenther@suse.de>
656
657 PR middle-end/51764
658 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
659 from common.opt.
660
73ac190a
PC
6612011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
662
663 PR c++/51316
664 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
665 of array types with an unknown bound.
666
48b0b196
JM
6672011-12-20 Joseph Myers <joseph@codesourcery.com>
668
669 * c-common.c (flag_isoc99): Update comment to refer to C11.
670 (flag_isoc1x): Change to flag_isoc11.
671 * c-common.h (flag_isoc99): Update comment to refer to C11.
672 (flag_isoc1x): Change to flag_isoc11.
673 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
674 C11.
675 * c-opts.c (set_std_c1x): Change to set_std_c11.
676 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
677 Call set_std_c11.
678 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
679 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
680 * c.opt (std=c1x): Change to std=c11. Document as non-draft
681 standard.
682 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
683 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
684 (std=gnu1x): Make alias of std=gnu11.
685
d58d6eb5
JM
6862011-12-19 Jason Merrill <jason@redhat.com>
687
688 PR c++/51228
689 * c-common.c (handle_transparent_union_attribute): Check the first
690 field if the type is complete.
691
b3908fcc
JW
6922011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
693
694 PR libstdc++/51365
695 * c-common.c (RID_IS_FINAL): Add.
696 * c-common.h (RID_IS_FINAL): Add.
697
fea3ca91
IS
6982011-11-30 Iain Sandoe <iains@gcc.gnu.org>
699
700 * c.opt (fgnu-runtime): Provide full description.
701 (fnext-runtime): Likewise.
702 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
703
62bad7cd
AM
7042011-11-28 Andrew MacLeod <amacleod@redhat.com>
705
706 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
707 predefines in one place. Add LOCK_FREE predefines.
708 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
709 new func.
710
c466c4ff
AM
7112011-11-24 Andrew MacLeod <amacleod@redhat.com>
712
713 PR c/51256
9faeb493 714 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 715 conditions
9faeb493
UB
716 (resolve_overloaded_atomic_exchange,
717 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
718 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
719 error_mark_node for error conditions.
9faeb493 720
a5952633
RG
7212011-11-08 Richard Guenther <rguenther@suse.de>
722
723 PR middle-end/51010
724 c-family/
725
0a35513e
AH
7262011-11-07 Richard Henderson <rth@redhat.com>
727 Aldy Hernandez <aldyh@redhat.com>
728 Torvald Riegel <triegel@redhat.com>
729
730 Merged from transactional-memory.
731
732 * c-common.c (handle_tm_wrap_attribute,
733 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
734 (struct c_common_reswords): Added __transaction* keywords.
735 (struct c_common_attribute_table): Added transaction* and tm_regparm
736 attributes.
737 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
738 masks.
739 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
740 find_tm_attribute): Declare.
741
6d87092d
JM
7422011-11-07 Jason Merrill <jason@redhat.com>
743
744 PR c++/35688
745 * c-common.c, c-common.h: Revert yesterday's changes.
746
8e7860a1
JM
7472011-11-06 Jason Merrill <jason@redhat.com>
748
749 PR c++/35688
750 * c-common.c (decl_has_visibility_attr): Split out from...
751 (c_determine_visibility): ...here.
752 * c-common.h: Declare it.
753
d19fa6b5
JM
7542011-11-06 Joseph Myers <joseph@codesourcery.com>
755
756 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
757 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
758 type.
759 (check_user_alignment): New. Split out of
760 handle_aligned_attribute. Disallow integer constants with
761 noninteger types. Conditionally allow zero.
762 (handle_aligned_attribute): Use check_user_alignment.
763 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
764
86951993
AM
7652011-11-06 Andrew MacLeod <amacleod@redhat.com>
766 Richard Henderson <rth@redhat.com>
767
768 Merged from cxx-mem-model.
769
770 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 771 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
772 parameters that are the same type size.
773 (get_atomic_generic_size): New. Find size of generic
774 atomic function parameters and do typechecking.
775 (add_atomic_size_parameter): New. Insert size into parameter list.
776 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
777 either __atomic_exchange_n or external library call.
9faeb493 778 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 779 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 780 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
781 __atomic_load_n or an external library call.
782 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
783 __atomic_store_n or an external library call.
784 (resolve_overloaded_builtin): Handle new __atomic builtins.
785
cf9e9959
EB
7862011-11-04 Eric Botcazou <ebotcazou@adacore.com>
787
788 PR c++/50608
789 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
790 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
791 <INDIRECT_REF>: Return the argument.
792 <ARRAY_REF>: Remove special code for negative offset.
793 Call fold_build_pointer_plus instead of size_binop.
794 (fold_offsetof): Remove STOP_REF argument and adjust.
795 * c-common.h (fold_offsetof_1): Declare.
796 (fold_offsetof): Remove STOP_REF argument.
797
25339f10
JM
7982011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
799
800 PR c++/50810
801 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
802 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
803 Wnarrowing for C++0x and C++98.
804 * c.opt ([Wnarrowing]): Update.
805
89401152
PC
8062011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
807
808 PR c++/44277
809 * c.opt: Add Wzero-as-null-pointer-constant.
810
97e3ad20
JM
8112011-10-31 Jason Merrill <jason@redhat.com>
812
15694fdd
JM
813 * c.opt (-fdeduce-init-list): Off by default.
814
97e3ad20
JM
815 PR c++/50920
816 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
817 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
818 and -Wc++11-compat.
819 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
820
fb9120e3
RAV
8212011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
822
823 PR c++/30066
824 * c.opt (fvisibility-inlines-hidden): Description change.
825
3ce4f9e4
ESR
8262011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
827
828 Implement C++11 user-defined literals.
829 * c-common.c (build_userdef_literal): New.
830 * c-common.def: New tree code.
831 * c-common.h (tree_userdef_literal): New tree struct and accessors.
832 * c-lex.c (interpret_float): Add suffix parm.
833 (c_lex_with_flags): Build literal tokens.
834
5f53c243
PC
8352011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
836
837 PR c++/50841
838 Revert:
839 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
840
841 PR c++/50810
842 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
843 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
844 Wnarrowing for C++0x and C++98.
845 * c.opt ([Wnarrowing]): Update.
846
263734e1
PC
8472011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
848
849 PR c++/50810
850 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
851 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
852 Wnarrowing for C++0x and C++98.
853 * c.opt ([Wnarrowing]): Update.
854
d2e312d7
PC
8552011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
856
857 PR c++/45385
858 * c-common.c (conversion_warning): Remove code looking for
859 artificial operands.
860
d17687f6
DS
8612011-10-18 Dodji Seketeli <dodji@redhat.com>
862
863 PR bootstrap/50760
864 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 865 !NO_IMPLICIT_EXTERN_C.
d17687f6 866
fc8396e9
PC
8672011-10-17 Michael Spertus <mike_spertus@symantec.com>
868
869 * c-common.c (c_common_reswords): Add __bases,
870 __direct_bases.
871 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
872
8732011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
874
875 PR c++/50757
876 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
877
847e697a
TT
8782011-10-15 Tom Tromey <tromey@redhat.com>
879 Dodji Seketeli <dodji@redhat.com>
880
881 * c.opt (fdebug-cpp): New option.
882 * c-opts.c (c_common_handle_option): Handle the option.
883 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
884 output stream in parameter. Factorized from ...
885 (maybe_print_line): ... this. Dump location debug information when
886 -fdebug-cpp is in effect.
887 (print_line_1): New static function. Takes an output stream in
888 parameter. Factorized from ...
889 (print_line): ... here. Dump location information when -fdebug-cpp
890 is in effect.
891 (scan_translation_unit): Dump location information when
892 -fdebug-cpp is in effect.
893
92582b75
TT
8942011-10-15 Tom Tromey <tromey@redhat.com>
895 Dodji Seketeli <dodji@redhat.com>
896
897 * c.opt (ftrack-macro-expansion): New option. Handle it with and
898 without argument.
899 * c-opts.c (c_common_handle_option)<case
900 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
901 cases. Handle -ftrack-macro-expansion with and without argument.
902
46427374
TT
9032011-10-15 Tom Tromey <tromey@redhat.com>
904 Dodji Seketeli <dodji@redhat.com>
905
906 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
907 (print_line, cb_define, do_line_change): Adjust to avoid touching
908 the internals of struct line_map. Use the public API instead.
909 * c-pch.c (c_common_read_pch): Likewise.
910 * c-lex.c (fe_file_change): Likewise.
911
fc8396e9
PC
9122011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
913
914 PR c++/17212
915 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
916
9172011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
918
919 PR c++/33067
920 * c-pretty-print.c (pp_c_floating_constant): Output
921 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
922
e79983f4
MM
9232011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
924
925 * c-common.c (def_builtin_1): Delete old interface with two
926 parallel arrays to hold standard builtin declarations, and replace
927 it with a function based interface that can support creating
928 builtins on the fly in the future. Change all uses, and poison
929 the old names. Make sure 0 is not a legitimate builtin index.
930 * c-omp.c (c_finish_omp_barrier): Ditto.
931 (c_finish_omp_taskwait): Ditto.
932 (c_finish_omp_flush): Ditto.
933
6637388f
TG
9342011-10-11 Tristan Gingold <gingold@adacore.com>
935
936 * c.opt: (fallow-parameterless-variadic-functions): New.
937
3797cb21
DS
9382011-09-08 Dodji Seketeli <dodji@redhat.com>
939
940 PR c++/33255 - Support -Wunused-local-typedefs warning
941 * c-common.h (struct c_language_function::local_typedefs): New
942 field.
9faeb493
UB
943 (record_locally_defined_typedef, maybe_record_typedef_use)
944 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 945 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
946 (maybe_record_typedef_use)
947 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
948 * c.opt: Declare new -Wunused-local-typedefs flag.
949
693ddb1b
EB
9502011-09-06 Eric Botcazou <ebotcazou@adacore.com>
951
952 PR middle-end/50266
953 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
954 computations.
955
830c740f
RG
9562011-09-05 Richard Guenther <rguenther@suse.de>
957
958 * c-common.c (complete_array_type): Use ssize_int (-1) instead
959 of integer_minus_one_node for empty array upper bounds.
960
892a371f
DS
9612011-08-28 Dodji Seketeli <dodji@redhat.com>
962
963 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
964 it's the first time it's being called on this main TU.
965
0e3fdb48
RB
9662011-08-24 Richard Guenther <rguenther@suse.de>
967
968 PR c/49396
969 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
970
9712011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
972
973 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
974 defined in cpp_init_builtins and c_cpp_builtins.
975
d4a83c10
JM
9762011-08-19 Joseph Myers <joseph@codesourcery.com>
977
978 * c-common.c (c_common_reswords): Add __builtin_complex.
979 * c-common.h (RID_BUILTIN_COMPLEX): New.
980
bbceee64
JM
9812011-08-18 Joseph Myers <joseph@codesourcery.com>
982
983 * c-common.c (c_common_reswords): Add _Noreturn.
984 (keyword_is_function_specifier): Handle RID_NORETURN.
985 * c-common.h (RID_NORETURN): New.
986
0e3a99ae
AS
9872011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
988
989 * c-common.c (unsafe_conversion_p): New function. Check if it is
990 unsafe to convert an expression to the type.
991 (conversion_warning): Adjust, use unsafe_conversion_p.
992 * c-common.h (unsafe_conversion_p): New function declaration.
993
20906c66
JJ
9942011-08-02 Jakub Jelinek <jakub@redhat.com>
995
996 * c-common.h (c_finish_omp_atomic): Adjust prototype.
997 (c_finish_omp_taskyield): New prototype.
998 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
999 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1000 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1001 or RHS1 have side-effects, evaluate those too in the right spot,
1002 if it is a decl and LHS is also a decl, error out if they
1003 aren't the same.
1004 (c_finish_omp_taskyield): New function.
1005 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1006 * c-pragma.c (omp_pragmas): Add taskyield.
1007 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1008 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1009 PRAGMA_OMP_CLAUSE_MERGEABLE.
1010
770e5a2e
DS
10112011-07-25 Dodji Seketeli <dodji@redhat.com>
1012
1013 * c-common.h (set_underlying_type): Remove parm name from
1014 declaration.
1015
1baae426
RG
10162011-07-25 Romain Geissler <romain.geissler@gmail.com>
1017
1018 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 1019
fcb21722
JM
10202011-07-22 Jason Merrill <jason@redhat.com>
1021
76f86d00
JM
1022 PR c++/49793
1023 * c.opt (Wnarrowing): New.
1024
3a636414
JM
1025 PR c++/30112
1026 * c-common.h: Declare c_linkage_bindings.
1027 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1028
fcb21722
JM
1029 PR c++/49813
1030 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1031 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1032 as flag_isoc99 for 'restrict'.
1033 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1034
02614448
ILT
10352011-07-21 Ian Lance Taylor <iant@google.com>
1036
1037 PR middle-end/49705
1038 * c-common.c (c_disable_warnings): New static function.
1039 (c_enable_warnings): New static function.
1040 (c_fully_fold_internal): Change local unused_p to bool. Call
1041 c_disable_warnings and c_enable_warnings rather than change
1042 c_inhibit_evaluation_warnings.
1043
34429675
JM
10442011-07-20 Jason Merrill <jason@redhat.com>
1045
1046 PR c++/6709 (DR 743)
1047 PR c++/42603 (DR 950)
1048 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1049 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1050 (CPP_DECLTYPE): New.
1051 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1052
5d49b6a7
RG
10532011-07-19 Richard Guenther <rguenther@suse.de>
1054
1055 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1056 * c-omp.c (c_finish_omp_for): Likewise.
1057
e84a58ff
EB
10582011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1059
1060 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1061 body on the next line.
1062
329af3c7
JM
10632011-07-08 Jason Merrill <jason@redhat.com>
1064
4063e61b
JM
1065 PR c++/45437
1066 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1067
329af3c7
JM
1068 PR c++/49673
1069 * c-common.c (c_apply_type_quals_to_decl): Don't check
1070 TYPE_NEEDS_CONSTRUCTING.
1071
1a072294
RG
10722011-07-06 Richard Guenther <rguenther@suse.de>
1073
1074 * c-common.c (c_common_nodes_and_builtins):
1075 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1076
fce5dddd
RG
10772011-07-05 Richard Guenther <rguenther@suse.de>
1078
1079 * c-common.c (c_common_nodes_and_builtins): Build all common
1080 tree nodes first.
1081
45d439ac
JJ
10822011-06-27 Jakub Jelinek <jakub@redhat.com>
1083
56300785
JJ
1084 * c-common.h (c_tree_chain_next): New static inline function.
1085
45d439ac
JJ
1086 * c-common.c (check_builtin_function_arguments): Handle
1087 BUILT_IN_ASSUME_ALIGNED.
1088
e0a8ecf2
AM
10892011-06-21 Andrew MacLeod <amacleod@redhat.com>
1090
1091 * c-common.c: Add sync_ or SYNC__ to builtin names.
1092 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
1093
10942011-06-20 Pierre Vittet <piervit@pvittet.com>
1095
1096 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1097 handler.
1098 (gen_pragma_handler): New union.
1099 (internal_pragma_handler): New type.
1100 (c_register_pragma_with_data)
1101 (c_register_pragma_with_expansion_and_data): New functions.
1102
1103 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1104 (c_register_pragma, c_register_pragma_with_expansion)
1105 (c_invoke_pragma_handler): Changed to work with
1106 internal_pragma_handler.
1107 (c_register_pragma_with_data)
1108 (c_register_pragma_with_expansion_and_data): New functions.
1109
677f3fa8
JM
11102011-06-14 Joseph Myers <joseph@codesourcery.com>
1111
1112 * c-common.c: Include common/common-target.h.
1113 (handle_section_attribute): Use
1114 targetm_common.have_named_sections.
1115 * c-cppbuiltin.c: Include common/common-target.h.
1116 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1117
d7fc8c14
RG
11182011-06-10 Richard Guenther <rguenther@suse.de>
1119
1120 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1121 to print a IDENTIFIER_NODE.
1122
10e48e39
RO
11232011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1124 Joseph Myers <joseph@codesourcery.com>
1125
1126 * c.opt (fbuilding-libgcc): New option.
1127 * c-cppbuiltin.c (c_cpp_builtins): Define
1128 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1129
6976ae51
JM
11302011-06-07 Jason Merrill <jason@redhat.com>
1131
3ff60975
JM
1132 * c-common.c (max_tinst_depth): Lower default to 900.
1133
6976ae51
JM
1134 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1135
009db074
RG
11362011-06-07 Richard Guenther <rguenther@suse.de>
1137
1138 * c-common.c (c_common_nodes_and_builtins): Do not set
1139 size_type_node or call set_sizetype.
1140
b4592b92
DS
11412011-06-07 Dodji Seketeli <dodji@redhat.com>
1142
1143 PR debug/49130
1144 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 1145 type when using pointer comparison to compare types.
b4592b92 1146
014ab419
JW
11472011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1148
1149 * c.opt: Add -Wdelete-non-virtual-dtor.
1150 * c-opts.c (c_common_handle_option): Include it in -Wall.
1151
4f60111f
NF
11522011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1153
1154 PR bootstrap/49190
1155
1156 Revert:
1157 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1158
1159 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1160 not tree_common.
1161
4cc4f2f4
JJ
11622011-05-27 Jakub Jelinek <jakub@redhat.com>
1163
1164 PR c++/49165
1165 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1166 C++ don't call c_common_truthvalue_conversion on void type arms.
1167
38e01f9e
NF
11682011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1169
1170 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1171 (stmt_list_stack): Define.
1172 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1173 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1174
92e948a8
NF
11752011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1176
1177 * c-common.c (warning_candidate_p): Check for BLOCKs.
1178
a2fc3e63
NF
11792011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1180
1181 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1182 not tree_common.
1183
0957c029
JJ
11842011-05-25 Jakub Jelinek <jakub@redhat.com>
1185
1186 * c-common.c (def_fn_type): Remove extra va_end.
1187
828fb3ba
JM
11882011-05-23 Jason Merrill <jason@redhat.com>
1189
1190 PR c++/48106
1191 * c-common.c (c_common_get_narrower): New.
1192 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1193
dde05067
NF
11942011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1195
1196 * c-common.h (check_function_arguments): Tweak prototype of
1197 check_function_arguments.
1198 * c-common.c (check_function_arguments): Likewise. Adjust
1199 calls to check_function_nonnull, check_function_format, and
1200 check_function_sentinel.
1201 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1202 separate attributes and typelist arguments. Use
1203 FOREACH_FUNCTION_ARGS to iterate over argument types.
1204
3c0d13bf
PC
12052011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1206
1207 * c-common.c (c_common_reswords): Reorder.
1208 * c-common.h (rid): Likewise.
1209
8242dd04
NF
12102011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1211
1212 * c-common.c (def_fn_type): Don't call build_function_type, call
1213 build_function_type_array or build_varargs_function_type_array
1214 instead.
1215 (c_common_nodes_and_builtins): Likewise.
1216
3d528853
NF
12172011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1218
1219 * c-common.c (c_add_case_label): Omit the loc argument to
1220 build_case_label.
1221 * c-common.h (build_case_label): Remove.
1222 * c-semantics.c (build_case_label): Remove.
1223
a04a722b
JM
12242011-05-05 Joseph Myers <joseph@codesourcery.com>
1225
1226 * c-objc.h (objc_start_method_definition): Update prototype.
1227 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1228
e19a18d4
NF
12292011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1230
1231 * c-common.c (check_main_parameter_types): Reindent. Don't use
1232 TYPE_ARG_TYPES directly.
1233 (handle_nonnull_attribute): Likewise.
1234 (sync_resolve_params): Likewise.
1235 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1236 to check_format_string.
1237 (handle_format_attribute): Likewise.
1238 (check_format_string): Take a function type to examine instead of
1239 a type list. Use a function_arg_iterator to step through argument
1240 types.
1241
c62c040f
RG
12422011-05-04 Richard Guenther <rguenther@suse.de>
1243
1244 * c-common.c (fix_string_type): Use size_int for index type bounds.
1245 (start_fname_decls): Do not pass NULL to build_int_cst.
1246 (c_init_attributes): Likewise.
1247 * c-lex.c (c_lex_with_flags): Likewise.
1248
c12ff9d8
JM
12492011-04-27 Jason Merrill <jason@redhat.com>
1250
1251 * c-common.c (make_tree_vector_from_list): New.
1252 * c-common.h: Declare it.
1253
304dfbe3
RG
12542011-04-26 Richard Guenther <rguenther@suse.de>
1255
1256 PR preprocessor/48248
1257 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1258 for output size with -P.
1259
3c0d13bf
PC
12602011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1261
1262 * c-common.c (struct c_common_resword): Add __underlying_type.
1263 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1264
04695783
JM
12652011-04-20 Jim Meyering <meyering@redhat.com>
1266
1267 * c-format.c (init_dollar_format_checking): Remove useless
1268 if-before-free.
1269
0dc33c3c
NP
12702011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1271
1272 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 1273 (objc_detect_field_duplicates): New.
0dc33c3c 1274 * stub-objc.c: Likewise.
3c0d13bf 1275
c59633d9
NP
12762011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1277
1278 * stub-objc.c (objc_declare_protocols): Renamed to
1279 objc_declare_protocol.
1280 * c-objc.h: Likewise.
3c0d13bf 1281
32dabdaf
NP
12822011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1283
1284 * stub-objc.c (objc_declare_class): Updated argument name.
1285
81f653d6
NF
12862011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1287
1288 * c-common.h (c_common_init_ts): Declare.
1289 * c-common.c (c_common_init_ts): Define.
1290
eb345401
NP
12912011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1292
1293 * c-objc.h (objc_build_message_expr): Updated prototype.
1294 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 1295
a358e188
MJ
12962011-04-12 Martin Jambor <mjambor@suse.cz>
1297
1298 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1299 of cgraph_node.
1300
e6313a78
RG
13012011-04-11 Richard Guenther <rguenther@suse.de>
1302
1303 * c-common.c (complete_array_type): Build a range type of
1304 proper type.
1305
dcf0c47e
NF
13062011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1307
1308 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1309 (handle_type_generic_attribute): Likewise.
1310
1ee44b26
JM
13112011-04-07 Jason Merrill <jason@redhat.com>
1312
1313 PR c++/48450
1314 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1315 conversion from C++0x scoped enum.
1316
acce4e77
JM
13172011-04-06 Joseph Myers <joseph@codesourcery.com>
1318
1319 * c-target-def.h: New file.
1320 * c-target.def: New file.
1321 * c-target.h: New file.
1322 * c-common.c (targetcm): Don't define here.
1323 * c-common.h (default_handle_c_option): Declare.
1324 * c-format.c: Include c-target.h instead of target.h.
1325 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1326 include tm.h.
1327 (default_handle_c_option): Move from targhooks.c.
1328
e2eefb55
JJ
13292011-03-29 Jakub Jelinek <jakub@redhat.com>
1330
1331 PR preprocessor/48248
1332 * c-ppoutput.c (print): Add src_file field.
1333 (init_pp_output): Initialize it.
1334 (maybe_print_line): Don't optimize by adding up to 8 newlines
1335 if map->to_file and print.src_file are different file.
1336 (print_line): Update print.src_file.
1337
ba78087b
KT
13382011-03-25 Kai Tietz <ktietz@redhat.com>
1339
1340 * c-ada-spec.c (compare_comment): Use filename_cmp
1341 instead of strcmp for filename.
1342
0edf1bb2
JL
13432011-03-25 Jeff Law <law@redhat.com>
1344
1345 * c-family/c-common.c (def_fn_type): Add missing va_end.
1346
c7dc8804
JM
13472011-03-25 Jason Merrill <jason@redhat.com>
1348
1349 * c.opt: Add -std=c++03.
1350
d1d879b1
EB
13512011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1352
1353 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1354
62d784f7
KT
13552011-03-17 Kai Tietz
1356
1357 PR target/12171
5050afdf
KT
1358 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1359 Display allowed attributes for function pointer types.
1360 (pp_c_attributes_display): New function to display
1361 attributes having affects_type_identity flag set to true.
1362 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1363
62d784f7
KT
1364 * c-common.c (c_common_attribute_table):
1365 Add new element.
1366 (c_common_format_attribute_table): Likewise.
1367
82d37118
JM
13682011-03-18 Jason Merrill <jason@redhat.com>
1369
49a000c3
JM
1370 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1371 * c-common.h: Don't declare it here.
1372 * c-common.c: Or define it here.
1373 * c-opts.c (c_common_handle_option): Or set it here.
1374
82d37118
JM
1375 PR c++/35315
1376 * c-common.c (handle_transparent_union_attribute): Don't
1377 make a duplicate type in C++.
1378
17bc631c
JM
13792011-03-15 Jason Merrill <jason@redhat.com>
1380
1381 * c-common.c (max_constexpr_depth): New.
1382 * c-common.h: Declare it.
1383 * c-opts.c (c_common_handle_option): Set it.
1384 * c.opt (fconstexpr-depth): New option.
1385
1b9b91a6
JM
13862011-03-11 Jason Merrill <jason@redhat.com>
1387
f231b5ff
JM
1388 * c-common.c (attribute_takes_identifier_p): Add missing const.
1389
1b9b91a6
JM
1390 PR c++/46803
1391 * c-common.c (attribute_takes_identifier_p): Assume that an
1392 unknown attribute takes an identifier.
1393
a19e4d44
NF
13942011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1395
1396 PR c/47786
1397 * c-common.c (c_type_hash): Call list_length instead of iterating
1398 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1399
982d62f6
JJ
14002011-02-19 Jakub Jelinek <jakub@redhat.com>
1401
1402 PR c/47809
1403 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1404
0a256240
NP
14052011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1406
1407 * c.opt (fobjc-abi-version=) New.
1408 (fobjc-nilcheck): New.
1409
ba9e6dd5
NF
14102011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1411
1412 PR c++/46890
1413 * c-common.h (keyword_is_decl_specifier): Declare.
1414 * c-common.c (keyword_is_decl_specifier): Define.
1415 (keyword_is_function_specifier): New function.
1416
7273813a
JJ
14172011-01-26 Jakub Jelinek <jakub@redhat.com>
1418
1419 PR c/47473
1420 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1421 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1422 REAL_TYPE.
1423
908ef79b
AC
14242011-01-26 Arnaud Charlet <charlet@adacore.com>
1425
1426 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1427
237e9384
JJ
14282011-01-26 Jakub Jelinek <jakub@redhat.com>
1429
1430 PR pch/47430
1431 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1432 after init_c_lex if pch_file is set.
1433
47ea1edf
DK
14342011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1435
d4dba752 1436 PR c++/43601
47ea1edf
DK
1437 * c.opt (-fkeep-inline-dllexport): New switch.
1438
2aa9c6ae
RG
14392011-01-12 Richard Guenther <rguenther@suse.de>
1440
1441 PR middle-end/32511
1442 * c-common.c (handle_weak_attribute): Warn instead of error
1443 on declaring an inline function weak.
1444
7bd11157
TT
14452011-01-05 Tom Tromey <tromey@redhat.com>
1446
1447 * c-common.h (lvalue_error): Update.
1448 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1449 not error.
1450
0e66e494 14512010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 1452
b4f588c4
NP
1453 PR objc/47075
1454 * c-objc.h (objc_finish_message_expr): Added argument to
1455 prototype.
1456
f4da8dce
NF
14572010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1458
1459 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1460 Use prototype_p.
1461
46270f14
NP
14622010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1463
1464 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 1465 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 1466
4816c593
NF
14672010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1468
1469 * c-common.h (readonly_error): Declare.
1470 * c-common.c (readonly_error): Define.
1471
7a6daeb0
NF
14722010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1473
1474 * c-common.h (invalid_indirection_error): Declare.
1475 * c-common.c (invalid_indirection_error): Define.
1476
892f6119
RG
14772010-12-03 Richard Guenther <rguenther@suse.de>
1478
1479 PR c/46745
1480 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1481 (pp_c_unary_expression): Likewise.
1482 (pp_c_expression): Likewise.
1483
6c39e757
NP
14842010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1485
1486 * c-common.h (objc_finish_function): New.
1487 (objc_non_volatilized_type): Removed.
1488 (objc_type_quals_match): Removed.
1489 * stub-objc.c (objc_finish_function): New.
1490 (objc_non_volatilized_type): Removed.
1491 (objc_type_quals_match): Removed.
9faeb493 1492
7c475d11
JM
14932010-11-30 Joseph Myers <joseph@codesourcery.com>
1494
1495 * c-common.h (parse_optimize_options): Declare.
1496 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1497 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1498
71f3e391
JM
14992010-11-29 Joseph Myers <joseph@codesourcery.com>
1500
1501 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1502 GET_ENVIRONMENT.
1503 * c-pch.c (O_BINARY): Don't define here.
1504 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1505
d5fabb58
JM
15062010-11-25 Joseph Myers <joseph@codesourcery.com>
1507
1508 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1509 targetm.except_unwind_info.
1510
299404a1
JM
15112010-11-23 Joseph Myers <joseph@codesourcery.com>
1512
1513 * c-opts.c (c_common_handle_option): Pass location to
1514 set_struct_debug_option.
1515
c98cd5bf
JM
15162010-11-23 Joseph Myers <joseph@codesourcery.com>
1517
1518 * c-common.c (visibility_options): Move from ../opts.c.
1519 * c-common.h (struct visibility_flags, visibility_options):
1520 Declare here.
1521 * c-opts.c (finish_options): Rename to c_finish_options.
1522 (c_common_init): Update call to finish_options.
1523
a9546771
NP
15242010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1525
1526 PR objc/34033
1527 * c-lex.c (lex_string): Check that each string in an Objective-C
1528 string concat sequence starts with either one or zero '@', and
1529 that there are no spurious '@' signs at the end.
1530
24a57808
JM
15312010-11-20 Joseph Myers <joseph@codesourcery.com>
1532
1533 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1534 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1535 HANDLE_PRAGMA_VISIBILITY.
1536 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1537 HANDLE_PRAGMA_VISIBILITY): Don't define.
1538 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1539
a9aa2c3a
NF
15402010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1541
1542 PR c++/16189
1543 PR c++/36888
1544 PR c++/45331
1545 * c-common.h (keyword_begins_type_specifier): Declare.
1546 (keyword_is_storage_class_specifier): Declare.
1547 (keyword_is_type_qualifier): Declare.
1548 * c-common.c (keyword_begins_type_specifier): New function.
1549 (keyword_is_storage_class_specifier): New function.
1550 (keyword_is_type_qualifier): Declare.
1551
5386338c
JM
15522010-11-19 Joseph Myers <joseph@codesourcery.com>
1553
1554 PR c/46547
1555 * c-common.c (in_late_binary_op): Define.
1556 (c_common_truthvalue_conversion): Check in_late_binary_op before
1557 calling c_save_expr.
1558 * c-common.h (in_late_binary_op): Declare.
1559
69ccdddb
JM
15602010-11-19 Joseph Myers <joseph@codesourcery.com>
1561
1562 * c-opts.c (c_common_handle_option): Update calls to
1563 set_struct_debug_option.
1564
6b192a09
NP
15652010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1566
1567 * c-common.h (objc_declare_protocols): Added additional argument.
1568 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 1569
fb52b50a
NF
15702010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1571
1572 PR c/33193
1573 * c-common.h (build_real_imag_expr): Declare.
1574 * c-semantics.c (build_real_imag_expr): Define.
1575
b37421c6
JM
15762010-11-17 Joseph Myers <joseph@codesourcery.com>
1577
1578 * c-opts.c (c_common_parse_file): Take no arguments.
1579 * c-common.h (c_common_parse_file): Update prototype.
1580
07078664
JJ
15812010-11-16 Jakub Jelinek <jakub@redhat.com>
1582
1583 PR c++/46401
1584 * c-common.c (warning_candidate_p): Don't track non-const calls
1585 or STRING_CSTs.
1586
c6a13190
ILT
15872010-11-15 Ian Lance Taylor <iant@google.com>
1588
1589 * c-lex.c (init_c_lex): Set macro debug callbacks if
1590 flag_dump_go_spec is set.
1591
925e8657
NP
15922010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1593
1594 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1595 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1596
bb0a9581
NF
15972010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1598
1599 PR preprocessor/45038
1600 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1601 dialects.
1602
c5fa0890
JM
16032010-11-12 Joseph Myers <joseph@codesourcery.com>
1604
1605 * c-common.h (c_family_lang_mask): Declare.
1606 * c-opts.c (c_family_lang_mask): Make extern.
1607 * c-pragma.c (handle_pragma_diagnostic): Use
1608 control_warning_option.
1609
a4d8c676
JM
16102010-11-12 Joseph Myers <joseph@codesourcery.com>
1611
1612 * c-common.c (parse_optimize_options): Update call to
1613 decode_options.
1614 * c-common.h (c_common_handle_option): Update prototype.
1615 * c-opts.c (c_common_handle_option): Take location_t parameter and
1616 pass it to other functions.
1617
f954bd2c
JM
16182010-11-11 Joseph Myers <joseph@codesourcery.com>
1619
1620 * c-opts.c (warning_as_error_callback): Remove.
1621 (c_common_initialize_diagnostics): Don't call
1622 register_warning_as_error_callback.
1623 (c_common_handle_option): Handle -Werror=normalized= here.
1624
d8a07487
JM
16252010-11-10 Joseph Myers <joseph@codesourcery.com>
1626
1627 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1628 in diagnostic.
1629 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1630 letter.
1631 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1632 Remove trailing '.' from diagnostics.
1633 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1634
d5478783
JM
16352010-11-10 Joseph Myers <joseph@codesourcery.com>
1636
1637 * c-common.c (parse_optimize_options): Pass global_dc to
1638 decode_options.
1639 * c-opts.c (c_common_handle_option): Pass &global_options to
1640 set_Wstrict_aliasing.
1641 * c.opt (v): Don't mark Common or document here.
1642
91ebb981
IS
16432010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1644
1645 PR target/44981
1646 * c-format.c (format_type): New type gcc_objc_string_format_type.
1647 (valid_stringptr_type_p): New.
1648 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 1649 (check_format_string): Pass expected type, use
91ebb981
IS
1650 valid_stringptr_type_p (), check that the format string types are
1651 consistent with the format specification.
1652 (decode_format_attr): Warn if NSString is used outside objective-c.
1653 (format_types_orig): Add NSString.
1654 (format_name): New.
1655 (format_flags): New.
1656 (check_format_arg): Handle format strings requiring an external parser.
1657 first_target_format_type: New variable.
1658 (handle_format_attribute): Set up first_target_format_type, pass the
1659 expected format arg string type to check_format_string().
1660 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1661 * stub-objc.c (objc_string_ref_type_p): New.
1662 (objc_check_format_arg): New.
1663
bede2adc
NP
16642010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1665
9faeb493 1666 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
1667 * c-common.h (objc_build_class_component_ref): New.
1668 * stub-objc.c (objc_build_class_component_ref): New.
1669
9a179d01
NP
16702010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1671
1672 * c.opt (Wproperty-assign-default): New option.
1673
22d8d616
NP
16742010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1675
1676 Implemented -fobjc-std=objc1 flag.
1677 * c.opt (fobjc-std=objc1): New option.
1678
2debdb4f
NP
16792010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1680
1681 Implemented format and noreturn attributes for Objective-C methods.
1682 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1683 attribute for Objective-C methods.
1684
ec52b111
JM
16852010-10-31 Jason Merrill <jason@redhat.com>
1686
1687 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1688 EXPR_LOC_OR_HERE.
1689
46a88c12
NP
16902010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1691
1692 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1693 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1694 (objc_add_property_declaration): Removed arguments for copies and
1695 ivar.
1696 (objc_build_getter_call): Renamed to
1697 objc_maybe_build_component_ref.
1698 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1699 (objc_is_property_ref): New.
1700 * c-common.c (c_common_reswords): Removed copies and ivar.
1701 * stub-objc.c (objc_add_property_declaration): Removed arguments
1702 for copies and ivar.
1703 (objc_build_getter_call): Renamed to
1704 objc_maybe_build_component_ref.
1705 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1706 (objc_is_property_ref): New.
9faeb493 1707
1e4bf85b
AC
17082010-10-29 Arnaud Charlet <charlet@adacore.com>
1709 Matthew Gingell <gingell@adacore.com>
1710
1711 * c-ada-spec.c (separate_class_package): New function.
1712 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1713 name of their enclosing package.
1714 (print_ada_declaration): Use separate_class_package.
1715
81f0bab2
JM
17162010-10-27 Jason Merrill <jason@redhat.com>
1717
2b08f2c5
JM
1718 * c-common.c (c_common_reswords): Add __is_literal_type.
1719 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1720
81f0bab2
JM
1721 * c-common.c (check_case_value): Remove special C++ code.
1722
200290f2
NP
17232010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1724
1725 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1726 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1727 and RID_LAST_PATTR.
1728 (objc_add_property_declaration): Added additional arguments.
1729 (objc_property_attribute_kind): Removed.
1730 (objc_set_property_attr): Removed.
1731 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1732 copy and nonatomic.
1733 * stub-objc.c (objc_add_property_declaration): Added additional
1734 arguments.
1735 (objc_set_property_attr): Removed.
9faeb493 1736
f614132b
NP
17372010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1738
1739 * c-common.h (objc_add_property_variable): Renamed to
1740 objc_add_property_declaration. Added location argument.
1741 * stub-objc.c (objc_add_property_variable): Same change.
1742
b8a18805
NP
17432010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1744
1745 * c-common.h (objc_maybe_printable_name): New.
1746 * stub-objc.c (objc_maybe_printable_name): New.
1747
30cd1c5d
AS
17482010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1749 Andrew Pinski <pinskia@gmail.com>
1750
1751 * c-common.h (c_common_mark_addressable_vec): Declare.
1752 * c-common.c (c_common_mark_addressable_vec): New function.
1753
249a82c4
NP
17542010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1755
1756 * c-common.h (objc_set_method_type): Removed.
1757 (objc_add_method_declaration): Added boolean argument.
1758 (objc_start_method_definition): Same change.
1759 (objc_build_method_signature): Same change.
1760 * stub-objc.c (objc_set_method_type): Removed.
1761 (objc_add_method_declaration): Added boolean argument.
1762 (objc_start_method_definition): Same change.
1763 (objc_build_method_signature): Same change.
1764
977e30bc
NP
17652010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1766
1767 * c-common.h (finish_file): Removed.
1768 (objc_write_global_declarations): New.
1769 * c-opts.c (c_common_parse_file): Do not call finish_file.
1770 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 1771
da57d1b9
NP
17722010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1773
1774 Implemented parsing @synthesize and @dynamic for
1775 Objective-C/Objective-C++.
1776 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1777 (objc_add_synthesize_declaration): New.
1778 (objc_add_dynamic_declaration): New.
1779 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1780 * stub-objc.c (objc_add_synthesize_declaration): New.
1781 (objc_add_dynamic_declaration): New.
9faeb493 1782
0069111f
MM
17832010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1784
1785 PR target/46041
1786 * c-cppbuiltin.c (mode_has_fma): Move function here from
1787 builtins.c. Don't use the fma optab, instead just use the
1788 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1789 using -save-temps.
1790
e426b47b
NP
17912010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1792
1793 Merge from 'apple/trunk' branch on FSF servers.
0069111f 1794
e426b47b
NP
1795 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1796
9faeb493 1797 Radar 4330422
e426b47b
NP
1798 * c-common.h (objc_non_volatilized_type): New declaration
1799 * stub-objc.c (objc_non_volatilized_type): New stub.
1800
90fbfdc3
NP
18012010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1802
e426b47b 1803 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
1804
1805 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1806
9faeb493 1807 Radar 4133425
90fbfdc3 1808 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 1809 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 1810
c37d8c30
IS
18112010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1812
1813 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1814 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1815 (objc_ivar_visibility_kind): New enum.
1816 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 1817 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
1818 visibility enum.
1819
1b1562a5
MM
18202010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1821
1822 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1823 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1824 has the appropriate fma builtins.
1825 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1826
668ea4b1
IS
18272010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1828
1b1562a5 1829 merge from FSF apple 'trunk' branch.
668ea4b1 1830 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 1831
668ea4b1
IS
1832 Radars 4436866, 4505126, 4506903, 4517826
1833 * c-common.c (c_common_resword): Define @property and its attributes.
1834 * c-common.h: Define property attribute enum entries.
1835 (OBJC_IS_PATTR_KEYWORD): New.
1836 (objc_property_attribute_kind): New enum.
1837 Declare objc_set_property_attr (), objc_add_property_variable (),
1838 objc_build_getter_call () and objc_build_setter_call ().
1839 * stub-objc.c (objc_set_property_attr): New stub.
1840 (objc_add_property_variable): Likewise.
1841 (objc_build_getter_call): Likewise.
1842 (objc_build_setter_call) Likewise.
1b1562a5 1843
a1178b30
IS
18442010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1845
1b1562a5 1846 merge from FSF apple 'trunk' branch.
a1178b30
IS
1847 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1848
1849 Radar 3803157 (method attributes)
1850 * c-common.c (handle_deprecated_attribute): Recognize
1851 objc methods as valid declarations.
1852 * c-common.h: Declare objc_method_decl ().
1b1562a5 1853 * stub-objc.c (objc_method_decl): New stub.
a1178b30 1854
a75bfaa6
JM
18552010-10-08 Joseph Myers <joseph@codesourcery.com>
1856
1857 * c-common.c (parse_optimize_options): Call
1858 decode_cmdline_options_to_array_default_mask before
1859 decode_options. Update arguments to decode_options.
1860 * c-common.h (c_common_init_options_struct): Declare.
1861 * c-opts.c (c_common_init_options_struct): New. Split out from
1862 c_common_init_options.
1863
f05b9d93
NP
18642010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1865
1866 Implemented fast enumeration for Objective-C.
1867 * c-common.h (objc_finish_foreach_loop): New.
1868 * stub-objc.c (objc_finish_foreach_loop): New.
1869
1ebe4b4f
JM
18702010-10-05 Joseph Myers <joseph@codesourcery.com>
1871
1872 * c-common.h (struct diagnostic_context): Don't declare here.
1873 (c_common_initialize_diagnostics): Declare using
1874 diagnostic_context typedef.
1875 * c-opts.c (c_common_handle_option): Pass global_dc to
1876 handle_generated_option.
1877
d4d24ba4
JM
18782010-10-04 Joseph Myers <joseph@codesourcery.com>
1879
1880 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1881 handle_generated_option.
1882
478a1c5b
ILT
18832010-10-03 Ian Lance Taylor <iant@google.com>
1884
1885 * c.opt (-fplan9-extensions): New option.
1886
82a1c2fe
FXC
18872010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1888
1889 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1890 Remove.
1891 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1892 of duplicating code.
1893
92902b1b
IS
18942010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1895
1896 * c-common.c: Add two new entries for @optional
1897 and @required keywords.
1898
1899 merge from FSF 'apple/trunk' branch.
1900 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1901
1902 Radar 4386773
1903 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1904 objective-c keywords.
1905 (objc_set_method_opt): New declaration.
1906 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 1907
46625112
JM
19082010-09-30 Joseph Myers <joseph@codesourcery.com>
1909
1910 * c-common.c (handle_optimize_attribute): Pass &global_options to
1911 cl_optimization_save and cl_optimization_restore.
1912 * c-opts.c (c_common_handle_option): Pass &global_options to
1913 handle_generated_option.
1914 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1915 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1916 &global_options to cl_optimization_restore.
1917
49b91f05
NP
19182010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1919
1920 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1921 Objective-C/Objective-C++ keywords.
1922
13ed556f 19232010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 1924
9faeb493
UB
1925 Merge from 'apple/trunk' branch on FSF servers.
1926
a6341d57
NP
1927 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1928
1929 Radar 4281748
1930 * c-common.h (objc_check_global_decl): New declaration.
1931 * stub-objc.c (objc_check_global_decl): New stub.
1932
f0036cca
JM
19332010-09-29 Joseph Myers <joseph@codesourcery.com>
1934
1935 * c.opt: Don't use VarExists.
1936
e3339d0f
JM
19372010-09-29 Joseph Myers <joseph@codesourcery.com>
1938
1939 * c-common.c (c_cpp_error): Update names of diagnostic_context
1940 members.
1941 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1942 cl_optimization members.
1943 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1944 sanitize_cpp_opts, finish_options): Update names of cpp_options
1945 members.
1946
1973201f
NP
19472010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1948
1949 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1950 (objc_is_reserved_word): Removed.
1951 * c-common.c: Updated comments.
1952 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1953 objc_is_reserved_word.
1954 * stub-objc.c (objc_is_reserved_word): Removed.
1955
f7e71da5
IS
19562010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1957
9faeb493 1958 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
1959 include attributes.
1960 (objc_start_method_definition): Likewise.
1961 (objc_build_keyword_decl): Likewise.
1962 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1963 (objc_start_method_definition): Likewise.
1964 (objc_build_keyword_decl): Likewise.
1965
c165dca7
IS
19662010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1967
1968 * c-common.h (objc_start_class_interface): Adjust prototype.
1969 (objc_start_category_interface): Likewise.
1970 (objc_start_protocol): Likewise.
1971 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1972 (objc_start_class_interface): Likewise.
1973 (objc_start_category_interface): Likewise.
1974
7458026b
ILT
19752010-09-27 Ian Lance Taylor <iant@google.com>
1976
1977 * c-common.c (c_common_attribute_table): Add no_split_stack.
1978 (handle_no_split_stack_attribute): New static function.
1979
b581b85b
NP
19802010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1981
9faeb493 1982 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
1983
1984 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1985
9faeb493 1986 Radar 4229905
b581b85b
NP
1987 * c-common.h (objc_have_common_type): New declaration.
1988 * stub-objc.c (objc_have_common_type): New stub.
1989
1990 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1991
1992 Radar 4154928
1993 * c-common.h (objc_common_type): New prototype.
9faeb493 1994 * stub-objc.c (objc_common_type): New stub.
b581b85b 1995
46a4da10
JH
19962010-09-24 Jan Hubicka <jh@suse.cz>
1997
1998 * c-common.c (handle_leaf_attribute): New function.
1999 (struct attribute_spec c_common_att): Add leaf.
2000
e200444e
JM
20012010-09-22 Joseph Myers <joseph@codesourcery.com>
2002
2003 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2004 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2005 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2006 -include-barrier, -include-directory, -include-directory=,
2007 -include-directory-after, -include-directory-after=,
2008 -include-prefix, -include-prefix=, -include-with-prefix,
2009 -include-with-prefix=, -include-with-prefix-after,
2010 -include-with-prefix-after=, -include-with-prefix-before,
2011 -include-with-prefix-before=, -no-integrated-cpp,
2012 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2013 -output=, -pedantic, -pedantic-errors, -preprocess,
2014 -print-missing-file-dependencies, -trace-includes, -traditional,
2015 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2016 -user-dependencies, -verbose, -write-dependencies,
2017 -write-user-dependencies, no-integrated-cpp, traditional): New.
2018
29a80ea6
NP
20192010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2020
2021 PR objc/23710
ac1fc2fc
NP
2022 * c-common.h (objc_start_method_definition): Return bool instead
2023 of void.
2024 * stub-objc.c (objc_start_method_definition): Return bool instead
2025 of void.
2026
20272010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2028
2029 PR objc/25965
2030 * c-common.h (objc_get_interface_ivars): New declaration.
2031 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 2032
de621752
ILT
20332010-09-15 Ian Lance Taylor <iant@google.com>
2034
2035 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 2036 messages. Remove period at end of warning message.
de621752 2037
ba885ec5
NS
20382010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2039
2040 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2041 (handle_alias_attribute): ... here.
2042 (handle_ifunc_attribute): New.
2043
c5ee1358
MM
20442010-09-06 Mark Mitchell <mark@codesourcery.com>
2045
2046 * c-common.h (do_warn_double_promotion): Declare.
2047 * c-common.c (do_warn_double_promotion): Define.
2048
0a0b3574
MM
20492010-09-05 Mark Mitchell <mark@codesourcery.com>
2050
2051 * c.opt (Wdouble-promotion): New.
2052
d1779886
JM
20532010-09-02 Joseph Myers <joseph@codesourcery.com>
2054
2055 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2056 fvtable-thunks, fxref): Mark no longer supported in help text.
2057
2d2bd949
JM
20582010-09-02 Joseph Myers <joseph@codesourcery.com>
2059
2060 * c.opt (Wimport, fall-virtual, falt-external-templates,
2061 fdefault-inline, fenum-int-equiv, fexternal-templates,
2062 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2063 fname-mangling-version-, fnew-abi, fnonnull-objects,
2064 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2065 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2066 applicable.
2067 (fhandle-exceptions): Mark with Alias and Warn.
2068 * c-opts.c (c_common_handle_option): Don't handle options marked
2069 as ignored.
2070
5de8299c
JM
20712010-09-02 Joseph Myers <joseph@codesourcery.com>
2072
2073 * c.opt (Wcomments, Werror-implicit-function-declaration,
2074 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2075 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2076 aliases.
2077 * c-common.c (option_codes): Use OPT_Wcomment instead of
2078 OPT_Wcomments.
2079 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2080 Don't handle options marked as aliases.
2081
0ceb0201
RG
20822010-08-25 Richard Guenther <rguenther@suse.de>
2083
2084 * c-common.c (c_common_get_alias_set): Remove special
2085 handling for pointers.
2086
ac47786e
NF
20872010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2088
2089 * c-common.c: Use FOR_EACH_VEC_ELT.
2090 * c-gimplify.c: Likewise.
2091 * c-pragma.c: Likewise.
2092
c878765b
JM
20932010-08-16 Joseph Myers <joseph@codesourcery.com>
2094
2095 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2096 RejectDriver.
2097 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2098 RejectDriver.
2099 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2100 instead of OPT_MDX and OPT_MMDX.
2101
603349bf
JM
21022010-08-16 Joseph Myers <joseph@codesourcery.com>
2103
2104 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2105
644fa7ac
JM
21062010-08-12 Joseph Myers <joseph@codesourcery.com>
2107
2108 * c.opt (MD, MMD): Change to MDX and MMDX.
2109 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2110
481e1176
JM
21112010-08-11 Joseph Myers <joseph@codesourcery.com>
2112
2113 * c-opts.c (c_common_handle_option): Call handle_generated_option
2114 instead of handle_option.
2115
ac8dc9f7
NF
21162010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2117
2118 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2119 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2120
4f8c876d
NF
21212010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2122
2123 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2124 (pending_redefine_extname): Change type to a VEC.
2125 (add_to_renaming_pragma_list): Update for new type of
2126 pending_redefine_extname.
ac8dc9f7 2127 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 2128
3b0c690e
AC
21292010-08-04 Arnaud Charlet <charlet@adacore.com>
2130
2131 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2132 visited.
2133 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2134 decide whether a type has already been declared/seen.
2135 Do not go to the original type.
2136 (dump_nested_types): New parameter forward.
2137 Generate forward declaration if needed and mark type as visited.
2138 (print_ada_declaration): Call dump_nested_types if not already done.
2139 Mark types as visited.
2140
1890bccc
JM
21412010-08-03 Joseph Myers <joseph@codesourcery.com>
2142
2143 * c.opt (-print-pch-checksum): Remove option.
2144 * c-opts.c (c_common_handle_option): Don't handle
2145 OPT_print_pch_checksum.
2146
5f20c657
JM
21472010-07-27 Joseph Myers <joseph@codesourcery.com>
2148
2149 * c-common.h (c_common_handle_option): Update prototype and return
2150 value type.
2151 * c-opts.c (c_common_handle_option): Update prototype and return
2152 value type. Update calls to handle_option and
2153 enable_warning_as_error.
2154
f551f80c
JJ
21552010-07-27 Jakub Jelinek <jakub@redhat.com>
2156
2157 PR c/45079
2158 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2159
61ff2bdc
JM
21602010-07-27 Joseph Myers <joseph@codesourcery.com>
2161
2162 * c-common.h (c_common_missing_argument): Remove.
2163 * c-opts.c (c_common_missing_argument): Remove.
2164 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2165 idirafter, imacros, include, isysroot, isystem, iquote): Add
2166 MissingArgError.
2167 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2168
7a9bf9a4
JM
21692010-07-27 Joseph Myers <joseph@codesourcery.com>
2170
2171 * c-common.h (c_common_option_lang_mask,
2172 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2173 New.
2174 (c_common_init_options): Update prototype.
2175 * c-opts.c (c_common_option_lang_mask): New.
2176 (c_common_initialize_diagnostics): Split out of
2177 c_common_init_options.
2178 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2179 New.
2180 (c_common_init_options): Update prototype. Use decoded options in
2181 search for -lang-asm.
2182
910ad8de
NF
21832010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2184
2185 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2186 * c-format.c: Likewise.
2187
718f9c0f
MLI
21882010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2189
2190 * c-common.h: Include diagnostic-core.h. Error if already
2191 included.
2192 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2193
4d451982
MLI
21942010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2195
2196 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2197 Do not include expr.h
2198 (vector_mode_valid_p): Move here.
2199
119fe915
SB
22002010-06-21 DJ Delorie <dj@redhat.com>
2201
2202 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2203 allow these pragmas anywhere.
2204
22052010-06-14 Jakub Jelinek <jakub@redhat.com>
2206
2207 PR bootstrap/44509
2208 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2209 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2210 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2211 ggc_strdup instead of xstrdup.
2212
22132010-06-10 Jakub Jelinek <jakub@redhat.com>
2214
2215 * c-cppbuiltin.c: Include cpp-id-data.h.
2216 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2217 (lazy_hex_fp_value): New function.
2218 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2219
6662d794
MLI
22202010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2221
2222 * c-gimplify.c: Do not include tree-flow.h
2223
38f8b050
JR
22242010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2225
2226 PR other/44034
2227 * c-common.c: Rename targetm member:
2228 targetm.enum_va_list -> targetm.enum_va_list_p
2229
9589f23e
AS
22302010-06-28 Anatoly Sokolov <aesok@post.ru>
2231
2232 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2233
3b06d379
SB
22342010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2235
2236 * c-cppbuiltin.c: Do not include except.h.
2237
d166d4c3
AK
22382010-06-24 Andi Kleen <ak@linux.intel.com>
2239
9faeb493
UB
2240 * c-common.c (warn_for_omitted_condop): New.
2241 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 2242
70cb8be6
JM
22432010-06-21 Joseph Myers <joseph@codesourcery.com>
2244
2245 * c.opt (lang-objc): Remove.
2246 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2247
a4c97feb
JR
22482010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2249
2250 * c-opts.c: Include "tm_p.h".
2251
6e2f1956
JM
22522010-06-20 Joseph Myers <joseph@codesourcery.com>
2253
2254 * c-common.c (parse_optimize_options): Update call to
2255 decode_options.
2256
bc87224e
NF
22572010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2258
2259 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2260 new type of types_used_by_cur_var_decl.
2261
b49cf425
JR
22622010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2263
2264 PR bootstrap/44512
2265 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2266 for C++ standard compliance.
2267
59f9c2ed
JM
22682010-06-16 Jason Merrill <jason@redhat.com>
2269
2270 * c.opt: Add -Wnoexcept.
2271
33766b66
RG
22722010-06-16 Richard Guenther <rguenther@suse.de>
2273
2274 PR c/44555
2275 * c-common.c (c_common_truthvalue_conversion): Remove
2276 premature and wrong optimization concering ADDR_EXPRs.
2277
eff7e30c
AC
22782010-06-15 Arnaud Charlet <charlet@adacore.com>
2279
2280 * c-ada-spec.c (dump_sloc): Remove column info.
2281 (is_simple_enum): New function.
2282 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2283 enum types when relevant.
2284
6312e84d
MLI
22852010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2286
9faeb493 2287 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
2288 location.
2289
1cb42611
JM
22902010-06-10 Joseph Myers <joseph@codesourcery.com>
2291
2292 * c-opts.c (c_common_handle_option): Don't handle
2293 OPT_fshow_column.
2294
a9429e29
LB
22952010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2296
2297 * c-pragma.c (push_alignment): Use typed GC allocation.
2298 (handle_pragma_push_options): Likewise.
2299
2300 * c-common.c (parse_optimize_options): Likewise.
2301
2302 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2303 option.
2304
5498f011
JM
23052010-06-07 Joseph Myers <joseph@codesourcery.com>
2306
2307 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2308 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2309 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2310 flag_signed_bitfields, warn_strict_null_sentinel,
2311 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2312 flag_gen_declaration, flag_no_gnu_keywords,
2313 flag_implement_inlines, flag_implicit_templates,
2314 flag_implicit_inline_templates, flag_optional_diags,
2315 flag_elide_constructors, flag_default_inline, flag_rtti,
2316 flag_conserve_space, flag_access_control, flag_check_new,
2317 flag_new_for_scope, flag_weak, flag_working_directory,
2318 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2319 flag_enforce_eh_specs, flag_threadsafe_statics,
2320 flag_pretty_templates): Remove.
2321 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2322 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2323 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2324 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2325 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2326 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2327 flag_no_gnu_keywords, flag_implement_inlines,
2328 flag_implicit_templates, flag_implicit_inline_templates,
2329 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2330 flag_rtti, flag_conserve_space, flag_access_control,
2331 flag_check_new, flag_new_for_scope, flag_weak,
2332 flag_working_directory, flag_use_cxa_atexit,
2333 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2334 flag_threadsafe_statics, flag_pretty_templates,
2335 warn_strict_null_sentinel): Remove.
2336 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2337 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2338 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2339 fimplicit-inline-templates, fimplicit-templates,
2340 flax-vector-conversions, fms-extensions, fnil-receivers,
2341 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2342 frtti, fshort-double, fshort-enums, fshort-wchar,
2343 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2344 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2345 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2346 gen-decls, undef): Use Var.
2347 (fdefault-inline, foptional-diags): Document as doing nothing.
2348 * c-opts.c (c_common_handle_option): Remove cases for options now
2349 using Var. Mark ignored options as such.
2350
39dabefd
SB
23512010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2352
9faeb493 2353 * c-common.c: Moved to here from parent directory.
39dabefd
SB
2354 * c-common.def: Likewise.
2355 * c-common.h: Likewise.
2356 * c-cppbuiltin.c: Likewise.
2357 * c-dump.c: Likewise.
2358 * c-format.c: Likewise.
2359 * c-format.h : Likewise.
2360 * c-gimplify.c: Likewise.
2361 * c-lex.c: Likewise.
2362 * c-omp.c: Likewise.
2363 * c.opt: Likewise.
2364 * c-opts.c: Likewise.
2365 * c-pch.c: Likewise.
2366 * c-ppoutput.c: Likewise.
2367 * c-pragma.c: Likewise.
2368 * c-pragma.h: Likewise.
2369 * c-pretty-print.c: Likewise.
2370 * c-pretty-print.h: Likewise.
2371 * c-semantics.c: Likewise.
2372 * stub-objc.c: Likewise.
2373
2374 * c-common.c: Include gt-c-family-c-common.h.
2375 * c-pragma.c: Include gt-c-family-c-pragma.h.
2376\f
d1e082c2 2377Copyright (C) 2010-2013 Free Software Foundation, Inc.
39dabefd
SB
2378
2379Copying and distribution of this file, with or without modification,
2380are permitted in any medium without royalty provided the copyright
2381notice and this notice are preserved.