]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
Implemented Cilk Plus Array Notation for C Compiler.
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
36536d79
BI
12013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2
3 * c-common.c (c_define_builtins): When cilkplus is enabled, the
4 function array_notation_init_builtins is called.
5 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
6 * c-common.def (ARRAY_NOTATION_REF): New tree.
7 * c-common.h (build_array_notation_expr): New function declaration.
8 (build_array_notation_ref): Likewise.
9 (extract_sec_implicit_index_arg): New extern declaration.
10 (is_sec_implicit_index_fn): Likewise.
11 (ARRAY_NOTATION_CHECK): New define.
12 (ARRAY_NOTATION_ARRAY): Likewise.
13 (ARRAY_NOTATION_START): Likewise.
14 (ARRAY_NOTATION_LENGTH): Likewise.
15 (ARRAY_NOTATION_STRIDE): Likewise.
16 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
17 ARRAY_NOTATION_REF.
18 (pp_c_expression): Likewise.
19 * c.opt (flag_enable_cilkplus): New flag.
20 * array-notation-common.c: New file.
21
f7716d57
JJ
222013-05-14 Jakub Jelinek <jakub@redhat.com>
23
24 PR c++/57274
25 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
26
a5e0cd1d
MG
272013-05-10 Marc Glisse <marc.glisse@inria.fr>
28
29 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
30 vectors.
31
f6bc1c4a
HS
322013-05-07 Han Shen <shenhan@google.com>
33
34 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
35
3f12f6e9
SKS
362013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
37
38 * c-common.c (check_user_alignment): Emit error for negative values.
39
61949153
PC
402013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
41
42 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
43
e93e18e9
PC
442013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
45
46 * c-cppbuiltin.c (c_cpp_builtins): Do not define
47 __GXX_EXPERIMENTAL_CXX1Y__.
48
44d90fe1
PC
492013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
50 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
51
52 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
53 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
54 to simply use OPT_Wpointer_arith.
55 (c_sizeof_or_alignof_type): Likewise.
56
13f39b2e
PC
572013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
58
59 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
60
4b84d650
JJ
612013-04-12 Jakub Jelinek <jakub@redhat.com>
62
63 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
64 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
65 specifiers.
66
fb037b5d
SB
672013-04-07 Steven Bosscher <steven@gcc.gnu.org>
68
69 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
70
4e856798
PC
712013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
72
73 * c-common.c (pointer_int_sum): Remove dead code.
74
4b1baac8
RS
752013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
76
77 PR middle-end/56524
78 * c-common.c (handle_optimize_attribute): Don't call
79 save_optabs_if_changed.
80
0b50e654
JJ
812013-03-05 Jakub Jelinek <jakub@redhat.com>
82
83 PR middle-end/56461
84 * c-pch.c (pch_init): Free target_validity at the end.
85
48c41403
JJ
862013-03-04 Jakub Jelinek <jakub@redhat.com>
87
88 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
89
e664c61c
KS
902013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
91 Jakub Jelinek <jakub@redhat.com>
92
93 PR sanitizer/56454
94 * c-common.c (handle_no_sanitize_address_attribute): New function.
95 (c_common_attribute_table): Add no_sanitize_address attribute.
96 (handle_no_address_safety_analysis_attribute): Add
97 no_sanitize_address attribute, not no_address_safety_analysis
98 attribute.
99
a475fd3d 1002013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
101
102 PR target/52555
103 * c-common.c (handle_optimize_attribute): Call
104 save_optabs_if_changed.
105
f6007d99
JJ
1062013-02-18 Jakub Jelinek <jakub@redhat.com>
107 Steven Bosscher <steven@gcc.gnu.org>
108
109 PR pch/54117
110 * c-opts.c (c_common_post_options): If debug info is enabled
111 and non-dwarf*, refuse to load PCH files and when writing PCH
112 file warn.
113
cf35e2b1
JJ
1142013-02-05 Jakub Jelinek <jakub@redhat.com>
115
116 PR middle-end/56167
117 * c-common.c (handle_error_attribute): Fix condition.
118
32887460
JJ
1192013-01-30 Jakub Jelinek <jakub@redhat.com>
120
121 PR c++/55742
122 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
123
5af057d8
JM
1242013-01-18 Jason Merrill <jason@redhat.com>
125
126 PR target/54908
127 * c.opt (-fextern-tls-init): New.
128 * c-opts.c (c_common_post_options): Handle it.
129
cc83c823
JJ
1302013-01-09 Jakub Jelinek <jakub@redhat.com>
131
132 PR c/48418
133 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
134 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
135 and is either negative or bigger or equal to type precision
136 of the first operand.
137
a859517f
MP
1382012-12-03 Marek Polacek <polacek@redhat.com>
139
140 PR c/55570
141 * c-common.c (check_user_alignment): Swap order of tests,
142 check TREE_CODE first.
143
2d7aa578
ESR
1442012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
145
146 PR c++/52654
147 * c-common.h (overflow_type): New enum.
148 (build_userdef_literal): Add overflow_type argument.
149 (tree_userdef_literal): Add overflow_type.
150 (USERDEF_LITERAL_OVERFLOW): New access macro.
151 * c-common.c (build_userdef_literal): Add overflow_type
152 argument.
153 * c-lex.c (c_lex_with_flags): Add overflow_type to
154 build_userdef_literal calls.
155 (interpret_integer, interpret_float): Add overflow_type argument.
156
cc3c4f62
RB
1572012-11-28 Richard Biener <rguenther@suse.de>
158
159 PR c/35634
160 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
161 here and use a type with proper overflow behavior for types that would
162 need to be promoted for the arithmetic.
163
77bc5132
JJ
1642012-11-23 Jakub Jelinek <jakub@redhat.com>
165
166 PR sanitizer/55435
167 * c-common.c (handle_no_address_safety_analysis_attribute): New
168 function.
169 (c_common_attribute_table): Add no_address_safety_analysis.
170
5dc99c46
SB
1712012-11-16 Simon Baldwin <simonb@google.com>
172
173 * c.opt: Add f[no-]canonical-system-headers.
174 * c-opts.c (c_common_handle_option): Handle
175 OPT_fcanonical_system_headers.
176
a4a0016d
ESR
1772012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
178
179 PR c++/54413
180 * c-opts.c (c_common_handle_option): Set new flags.
181 * c.opt: Describe new flags.
182
7dbb85a7
JM
1832012-11-09 Jason Merrill <jason@redhat.com>
184
185 * c.opt (Wabi-tag): New.
186
ad7bac31
AK
1872012-11-09 Andi Kleen <ak@linux.intel.com>
188
189 PR 55139
190 * c-common.c (get_atomic_generic_size): Mask with
191 MEMMODEL_MASK
192
7332899a
MLI
1932012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
194
195 PR c/53063
196 * c.opt (Wformat): Make it Alias Wformat=1.
197 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
198 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
199 LangEnabledBy.
200 (Wformat=): RejectNegative. Use LangEnabledBy.
201 (Wnonnull): Use LangEnabledBy.
202 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
203 * c-format.c (set_Wformat): Delete.
204 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
205 (maybe_read_dollar_number): Likewise.
206 (avoid_dollar_number): Likewise.
207 (finish_dollar_format_checking): Likewise.
208 (check_format_info): Likewise.
209 (check_format_info_main): Likewise.
210 (check_format_types): Likewise.
211 (format_type_warning): Likewise.
212 * c-common.c (int): Likewise.
213 (check_function_sentinel): Likewise.
214 * c-common.h (warn_format,set_Wformat): Do not declare here.
215
34a180a6
MLI
2162012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
217
218 PR c/53063
219 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
220 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
221 Use LangEnabledBy.
222 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
223 common.opt.
224 (Wvariadic-macros): Init(1).
225 * c-opts.c (c_common_handle_option): Do not handle them
226 explicitly.
227 (c_common_post_options): Likewise.
228 (sanitize_cpp_opts): warn_unused_macros is now
229 cpp_warn_unused_macros.
230 (push_command_line_include): Likewise.
231 * c-common.c (warn_unknown_pragmas): Do not define.
232 * c-common.h (warn_unknown_pragmas): Do not declare.
233
3f46d6a5
MLI
2342012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
235
236 PR c/51294
237 * c-common.c (conversion_warning): Handle conditional expressions.
238
880661a4
JW
2392012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
240
241 PR c++/54930
242 * c.opt (Wreturn_local_addr): Define new option.
243
4514a96b
JM
2442012-10-25 Jason Merrill <jason@redhat.com>
245
f14edc1a
JM
246 * c.opt (Wvirtual-move-assign): New.
247
4514a96b
JM
248 * c.opt (Winherited-variadic-ctor): New.
249
93100c6b
MG
2502012-10-25 Marc Glisse <marc.glisse@inria.fr>
251
252 PR c++/54427
253 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
254
1efcb8c6
JM
2552012-10-23 Joseph Myers <joseph@codesourcery.com>
256
257 * c-common.h (pch_cpp_save_state): Declare.
258 * c-target.def (c_preinclude): New hook.
259 * c-opts.c (done_preinclude): New.
260 (push_command_line_include): Handle default preincluded header.
261 (cb_file_change): Call pch_cpp_save_state when calling
262 push_command_line_include.
263 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
264 (pch_cpp_save_state): New.
265 (pch_init): Call pch_cpp_save_state conditionally, instead of
266 calling cpp_save_state.
267
4a0ae68e
MLI
2682012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
269
270 PR c/53063
271 PR c/40989
272 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
273 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
274 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
275 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
276 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
277 * c-opts.c (c_common_handle_option): Remove explicit handling from
278 here.
279 (c_common_post_options): Likewise.
280
67e4210b
EB
2812012-10-18 Eric Botcazou <ebotcazou@adacore.com>
282
283 * c-ada-spec.c (LOCATION_COL): Delete.
284 (compare_location): New function.
285 (compare_node): Use it.
286 (compare_comment): Likewise.
287
65d4f2cd
MLI
2882012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
289
290 PR c/53063
291 PR c/40989
292 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
293 * c-opts.c (c_common_handle_option): Do not set them here. Add
294 comment.
295 (c_common_post_options): Likewise.
296
909881cb
EB
2972012-10-16 Eric Botcazou <ebotcazou@adacore.com>
298
299 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
300 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
301 Remove POINTER_TYPE handling, add large unsigned handling and use
302 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
303
3a785c97
JJ
3042012-10-12 Jakub Jelinek <jakub@redhat.com>
305
306 PR c/54381
307 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
308 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
309 locs and array of 3 trees instead of just single loc and single
310 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
311 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
312 For *cmp* builtins that take two sources strings report warnings
313 about first and second source, not about destination and source.
314
5e54f81d
MG
3152012-10-12 Marc Glisse <marc.glisse@inria.fr>
316
317 PR c++/53055
318 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
319
f5b02f1e
EB
3202012-10-11 Eric Botcazou <ebotcazou@adacore.com>
321
322 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
323 declaring something coming from another file.
324
b46dbc6c
AC
3252012-10-10 Arnaud Charlet <charlet@adacore.com>
326
f5b02f1e 327 PR ada/54845
b46dbc6c
AC
328 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
329
5d9de0d0
PC
3302012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
331
332 PR c++/54194
333 * c-common.c (warn_about_parentheses): Add location_t parameter;
334 use EXPR_LOC_OR_LOC.
335 * c-common.h: Update declaration.
336
a212e43f
MG
3372012-10-09 Marc Glisse <marc.glisse@inria.fr>
338
339 PR c++/54427
340 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
341 more operations. Make error messages optional.
342 * c-common.h (enum stv_conv): Moved from c-typeck.c.
343 (scalar_to_vector): Declare.
344
b1db7f91
JM
3452012-10-08 Jason Merrill <jason@redhat.com>
346
347 * c-common.c (c_common_reswords): Add thread_local.
348
e28d52cf
DS
3492012-10-08 Dodji Seketeli <dodji@redhat.com>
350
351 PR c++/53528 C++11 attribute support
352 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
353 new functions.
354 * c-common.c (check_cxx_fundamental_alignment_constraints): New
355 static function.
356 (handle_aligned_attribute): In choose strictest alignment
357 among many. Use new check_cxx_fundamental_alignment_constraints.
358 (handle_transparent_union_attribute): In c++11 attribute syntax,
359 don't look through typedefs.
360
3b78de56
AC
3612012-10-04 Arnaud Charlet <charlet@adacore.com>
362
363 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
364 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
365 out of dumpfile.h.
366
6040bb5f
DC
3672012-09-25 Dehao Chen <dehao@google.com>
368
369 PR middle-end/54645
3b78de56 370 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
371 map when read in the pch.
372
0b07a57e
AC
3732012-09-18 Arnaud Charlet <charlet@adacore.com>
374
375 * c-ada-spec.c: Style fixes.
376
da5182be
TQ
3772012-09-18 Thomas Quinot <quinot@adacore.com>
378
379 * c.opt (-fada-spec-parent): Define new command line switch.
380 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
381 is specified, generate binding spec as a child of the specified unit.
382
0ccb505d
PC
3832012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
384 Manuel López-Ibáñez <manu@gcc.gnu.org>
385
386 PR c++/53210
387 * c.opt ([Winit-self]): Enabled by -Wall in C++.
388
c583af79
AC
3892012-08-23 Arnaud Charlet <charlet@adacore.com>
390
391 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
392 for pointers, and add missing Convention C pragma.
393 (print_ada_struct_decl): Add missing aliased keyword.
394 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
395
1a4049e7
JJ
3962012-08-17 Jakub Jelinek <jakub@redhat.com>
397
398 * c-common.c (sizeof_pointer_memaccess_warning): New function.
399 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
400 * c-opts.c (c_common_handle_option): Enable it for -Wall.
401 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
402 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
403
70b5e7dc
RG
4042012-08-10 Richard Guenther <rguenther@suse.de>
405
406 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
407
f8923f7e
SB
4082012-08-07 Steven Bosscher <steven@gcc.gnu.org>
409
410 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
411 instead of separate pp_newline and pp_flush.
412 (print_c_tree): Likewise.
413
e45abe1f
RH
4142012-07-26 Richard Henderson <rth@redhat.com>
415
416 * c-common.c (handle_hot_attribute): Allow labels.
417 (handle_cold_attribute): Likewise.
418
332f1d24
JJ
4192012-07-20 Jakub Jelinek <jakub@redhat.com>
420
421 PR c++/28656
422 * c-common.c (check_function_nonnull): Handle multiple nonnull
423 attributes properly.
424
7ee2468b
SB
4252012-07-16 Steven Bosscher <steven@gcc.gnu.org>
426
427 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
428 * c-ada-spec.c: Likewise.
429 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
430
ee7b28eb
SB
4312012-07-14 Steven Bosscher <steven@gcc.gnu.org>
432
433 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
434 Remove code conditional on it.
435
6bdf3519
SB
4362012-07-11 Steven Bosscher <steven@gcc.gnu.org>
437
438 * c-gimplify.c: Do not include basic-block.h.
439 * c-common.c: Do not include linfuncs.h.
440
532aafad
SB
4412012-07-08 Steven Bosscher <steven@gcc.gnu.org>
442
443 * c-common.h: Include tree.h.
444
8d0d1915
JM
4452012-07-02 Jason Merrill <jason@redhat.com>
446
447 PR c++/53524
448 * c-common.c (get_priority): Call default_conversion.
449
fbc873ad
UB
4502012-07-01 Uros Bizjak <ubizjak@gmail.com>
451
452 * c-pch.c (c_common_write_pch): Remove unused variables.
453
d4a10d0a
SB
4542012-06-29 Steven Bosscher <steven@gcc.gnu.org>
455
456 * cppspec.c: Moved from gcc/ to here.
457
6f3a2e23
KT
4582012-06-27 Kai Tietz <ktietz@redhat.com>
459
460 PR preprocessor/37215
461 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
462
8ca92d04
SB
4632012-06-21 Steven Bosscher <steven@gcc.gnu.org>
464
465 * c-common.h (c_common_print_pch_checksum): Remove.
466 * c-pch.c: Do not include output.h.
467 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
468 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
469 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
470 (struct c_pch_header): Remove.
471 (get_ident): Update gpch version.
472 (pch_init): Do not print executable_checksum to asm_out_file.
473 Do not fail if there is no asm_out_file to read back from. Set
474 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
475 (c_common_write_pch): Verify that nothing was written to asm_out_file
476 since pch_init was called. Do not write a c_pch_header, and do not
477 copy from asm_out_file to the PCH.
478 (c_common_read_pch): Do not read a c_pch_header, and do not restore
479 the content of asm_out_file from the PCH.
480 (c_common_print_pch_checksum): Remove.
481 * c-opts.c (c_common_init): Print out executable_checksum directly.
482
70f42967
SB
4832012-06-19 Steven Bosscher <steven@gcc.gnu.org>
484
485 * c-target.def (objc_declare_unresolved_class_reference,
486 objc_declare_class_definition): Add new hooks.
487
a8781821
SB
4882012-06-19 Steven Bosscher <steven@gcc.gnu.org>
489
490 * c-lex.c: Do not include output.h.
491 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
492 Remove uses of ASM_OUTPUT_IDENT.
493
9e1a8dd1
RR
4942012-06-15 Marc Glisse <marc.glisse@inria.fr>
495
496 PR c++/51033
497 * c-common.h (c_build_vec_perm_expr): Move decl here.
498 * c-common.c (c_build_vec_perm_expr): Move definition
499 here.
500
6f07a821
SB
5012012-06-06 Steven Bosscher <steven@gcc.gnu.org>
502
503 * c.opt (fconserve-space): Turn into a no-op.
504
9faeb493 5052012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
506
507 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
508 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
509 both the start and end of the function.
510
a4b7d13c
SB
5112012-06-04 Steven Bosscher <steven@gcc.gnu.org>
512
513 * c-common.c: Do not include output.h.
514 * c-pragma.c: Likewise.
515
c265f413
SA
5162012-06-04 Steven Bosscher <steven@gcc.gnu.org>
517
518 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
519 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
520 (lang_decl_name): Handle namespace decls.
521
be7a421e
SB
5222012-05-31 Steven Bosscher <steven@gcc.gnu.org>
523
524 * c-ada-spec.c: Do not include output.h.
525 * c-semantics.c: Likewise.
526
65de6659
JM
5272012-05-29 Joseph Myers <joseph@codesourcery.com>
528
529 * c-common.c: Fix typo.
530
ca5f4331
MM
5312012-05-29 Michael Matz <matz@suse.de>
532
533 * c-common.h (c_expand_decl): Remove prototype.
534
4f7f7aca
MLI
5352012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
536
537 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
538 * c-opts.c (c_common_handle_option): Remove code handling
539 warn_missing_braces.
540
4a792f9b
PC
5412012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
542
543 PR c++/25137
544 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
545 -Wmissing_braces.
546
650dc14a
DS
5472012-05-22 Dodji Seketeli <dodji@redhat.com>
548
549 PR c++/53322
550 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
551
9b095bf1
MLI
5522012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
553
554 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
555 * c-opts.c (c_common_handle_option): Do not handle explicitly
556 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
557
0b2c4be5
DS
5582012-05-16 Dodji Seketeli <dodji@redhat.com>
559
560 PR preprocessor/7263
561 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
562 to cpp_classify_number. For diagnostics, use the precise location
563 instead of the global input_location.
564
a1bde5af
PC
5652012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
566
d02924ef 567 PR c++/11856
a1bde5af
PC
568 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
569
d1ede5f4
BS
5702012-05-14 Bernd Schmidt <bernds@codesourcery.com>
571
a1bde5af 572 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 573
f2bc201f
MLI
5742012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
575
576 PR 53063
577 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
578 Wreorder): Use LangEnabledBy.
579 * c-opts.c (c_common_handle_option): Do not enable them
580 explicitly. Call lang-specific generated functions.
581 (c_common_post_options): Do not set them here.
582
95744782
MLI
5832012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
584
585 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
586 Wmissing-field-initializers,Wmissing-parameter-type,
587 Wold-style-declaration,Woverride-init): Use EnabledBy.
588 * c-opts.c (c_common_post_options): Do not set here explicitly.
589
7d5a5747
MLI
5902012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
591
592 PR 53063
593 * c-opts.c (c_common_handle_option): Use handle_generated_option
594 to enable sub-options.
595
5a3c9cf2
PC
5962012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
597
598 PR c++/53158
599 * c-common.c (warnings_for_convert_and_check): Use warning_at.
600
3ac8781c
RG
6012012-05-10 Richard Guenther <rguenther@suse.de>
602
603 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
604 adjust commentary about TYPE_IS_SIZETYPE types.
605
1e537948
MLI
6062012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
607
608 PR c++/53261
609 * c-common.c (warn_logical_operator): Check that argument of
610 integer_zerop is not NULL.
611
f2c4a785
MLI
6122012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
613
614 PR c/43772
615 * c-common.c (warn_logical_operator): Do not warn if either side
616 is already true or false.
617
50f305ca
MLI
6182012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
619
620 PR c/51712
621 * c-common.c (expr_original_type): New.
622 (shorten_compare): Do not warn for enumeration types.
623
0c3641b0
MLI
6242012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
625
626 * c.opt (fpermissive): Add Var(flag_permissive).
627
7edaa4d2
MG
6282012-04-30 Marc Glisse <marc.glisse@inria.fr>
629
630 PR c++/51033
631 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
632 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
633
b9c8da34
DS
6342012-04-30 Dodji Seketeli <dodji@redhat.com>
635
636 Add -Wvarargs option
637 * c.opt (Wvarargs): Define new option.
638
e6c69da0
MLI
6392012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
640
641 * c-common.c (check_function_arguments): Replace
642 Wmissing-format-attribute with Wsuggest-attribute=format.
643
90137d8f
MLI
6442012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
645
646 * c.opt (Wsuggest-attribute=format): New. Alias of
647 Wmissing-format-attribute.
648 * c-format.c (decode_format_type): Replace
649 Wmissing-format-attribute with Wsuggest-attribute=format.
650 (check_function_format): Likewise.
651
9faeb493 6522012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
653
654 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
655 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
656 * c.opt: Add Wliteral-suffix.
657
c1771a20
MLI
6582012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
659
660 PR c/44774
661 * c.opt (Wpedantic): New.
662 (pedantic): Alias Wpedantic.
663 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
664 (c_common_post_options): Likewise.
665 (sanitize_cpp_opts): Likewise.
666 * c-lex.c (interpret_float): Likewise.
667 * c-format.c (check_format_types): Likewise.
668 * c-common.c (pointer_int_sum): Likewise.
669 (c_sizeof_or_alignof_type): Likewise.
670 (c_add_case_label): Likewise.
671 (c_do_switch_warnings): Likewise.
672 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
673
04b391c1
JM
6742012-04-15 Jason Merrill <jason@redhat.com>
675
676 PR c++/52818
677 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
678 (C_STD_NAME): Distinguish between C++98 and C++11.
679
ac868f29
EB
6802012-04-11 Eric Botcazou <ebotcazou@adacore.com>
681
682 PR target/52624
683 * c-common.h (uint16_type_node): Rename into...
684 (c_uint16_type_node): ...this.
685 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
686 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
687
fd4116f4
MLI
6882012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
689
690 * c-common.c (warn_if_unused_value): Move definition to here.
691 * c-common.h (warn_if_unused_value): Move declaration to here.
692
573ac65e
WB
6932012-03-23 William Bader <williambader@hotmail.com>
694
695 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
696
552b8185
JM
6972012-03-20 Jason Merrill <jason@redhat.com>
698
699 * c-common.h (enum cxx_dialect): Add cxx1y.
700 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
701 test.
702 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
703 * c-opts.c (c_common_post_options): Likewise.
704 (set_std_cxx1y): New.
705 (c_common_handle_option): Call it.
706 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
707
04398fa8
PC
7082012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
709
710 PR c++/14710
711 * c.opt ([Wuseless-cast]): Add.
712
d2a12ae7
RG
7132012-03-16 Richard Guenther <rguenther@suse.de>
714
715 * c-pretty-print.c (pp_c_initializer_list): Adjust.
716
a12bf402
MLI
7172012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
718
719 PR c++/44783
720 * c.opt (ftemplate-backtrace-limit) Add.
721
5c30094f
RO
7222012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
723
724 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
725 handling.
726 * c-pragma.c (handle_pragma_extern_prefix): Remove.
727 (init_pragma): Don't register extern_prefix.
728
21fa2faf
RG
7292012-03-12 Richard Guenther <rguenther@suse.de>
730
731 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
732 (builtin_type_for_size): Likewise.
733
e3793c6f
JJ
7342012-02-13 Jakub Jelinek <jakub@redhat.com>
735
736 PR c++/52215
737 * c-common.c (sync_resolve_params): Don't decide whether to convert
738 or not based on TYPE_SIZE comparison, convert whenever arg_type
739 is unsigned INTEGER_TYPE.
740
93286335
PC
7412012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
742
743 PR c/52118
744 * c.opt ([Wunused-local-typedefs]): Fix description.
745
7a421706
MS
7462012-01-24 Mike Stump <mikestump@comcast.net>
747
748 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
749 exactly.
750
ba9b1f11
RG
7512012-01-18 Richard Guenther <rguenther@suse.de>
752
753 * c-opts.c (c_common_post_options): Reset LTO flags if
754 we are about to generate a PCH.
755
465406be
PC
7562012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
757
758 PR c++/51777
759 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
760 use pp_unsigned_wide_integer.
761
aee15221
RG
7622012-01-10 Richard Guenther <rguenther@suse.de>
763
764 PR middle-end/51806
765 * c-opts.c (c_common_handle_option): Move -Werror handling
766 to language independent code.
767
5720c0dc
RG
7682012-01-05 Richard Guenther <rguenther@suse.de>
769
770 PR middle-end/51764
771 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
772 from common.opt.
773
73ac190a
PC
7742011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
775
776 PR c++/51316
777 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
778 of array types with an unknown bound.
779
48b0b196
JM
7802011-12-20 Joseph Myers <joseph@codesourcery.com>
781
782 * c-common.c (flag_isoc99): Update comment to refer to C11.
783 (flag_isoc1x): Change to flag_isoc11.
784 * c-common.h (flag_isoc99): Update comment to refer to C11.
785 (flag_isoc1x): Change to flag_isoc11.
786 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
787 C11.
788 * c-opts.c (set_std_c1x): Change to set_std_c11.
789 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
790 Call set_std_c11.
791 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
792 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
793 * c.opt (std=c1x): Change to std=c11. Document as non-draft
794 standard.
795 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
796 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
797 (std=gnu1x): Make alias of std=gnu11.
798
d58d6eb5
JM
7992011-12-19 Jason Merrill <jason@redhat.com>
800
801 PR c++/51228
802 * c-common.c (handle_transparent_union_attribute): Check the first
803 field if the type is complete.
804
b3908fcc
JW
8052011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
806
807 PR libstdc++/51365
808 * c-common.c (RID_IS_FINAL): Add.
809 * c-common.h (RID_IS_FINAL): Add.
810
fea3ca91
IS
8112011-11-30 Iain Sandoe <iains@gcc.gnu.org>
812
813 * c.opt (fgnu-runtime): Provide full description.
814 (fnext-runtime): Likewise.
815 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
816
62bad7cd
AM
8172011-11-28 Andrew MacLeod <amacleod@redhat.com>
818
819 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
820 predefines in one place. Add LOCK_FREE predefines.
821 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
822 new func.
823
c466c4ff
AM
8242011-11-24 Andrew MacLeod <amacleod@redhat.com>
825
826 PR c/51256
9faeb493 827 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 828 conditions
9faeb493
UB
829 (resolve_overloaded_atomic_exchange,
830 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
831 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
832 error_mark_node for error conditions.
9faeb493 833
a5952633
RG
8342011-11-08 Richard Guenther <rguenther@suse.de>
835
836 PR middle-end/51010
837 c-family/
838
0a35513e
AH
8392011-11-07 Richard Henderson <rth@redhat.com>
840 Aldy Hernandez <aldyh@redhat.com>
841 Torvald Riegel <triegel@redhat.com>
842
843 Merged from transactional-memory.
844
845 * c-common.c (handle_tm_wrap_attribute,
846 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
847 (struct c_common_reswords): Added __transaction* keywords.
848 (struct c_common_attribute_table): Added transaction* and tm_regparm
849 attributes.
850 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
851 masks.
852 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
853 find_tm_attribute): Declare.
854
6d87092d
JM
8552011-11-07 Jason Merrill <jason@redhat.com>
856
857 PR c++/35688
858 * c-common.c, c-common.h: Revert yesterday's changes.
859
8e7860a1
JM
8602011-11-06 Jason Merrill <jason@redhat.com>
861
862 PR c++/35688
863 * c-common.c (decl_has_visibility_attr): Split out from...
864 (c_determine_visibility): ...here.
865 * c-common.h: Declare it.
866
d19fa6b5
JM
8672011-11-06 Joseph Myers <joseph@codesourcery.com>
868
869 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
870 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
871 type.
872 (check_user_alignment): New. Split out of
873 handle_aligned_attribute. Disallow integer constants with
874 noninteger types. Conditionally allow zero.
875 (handle_aligned_attribute): Use check_user_alignment.
876 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
877
86951993
AM
8782011-11-06 Andrew MacLeod <amacleod@redhat.com>
879 Richard Henderson <rth@redhat.com>
880
881 Merged from cxx-mem-model.
882
883 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 884 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
885 parameters that are the same type size.
886 (get_atomic_generic_size): New. Find size of generic
887 atomic function parameters and do typechecking.
888 (add_atomic_size_parameter): New. Insert size into parameter list.
889 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
890 either __atomic_exchange_n or external library call.
9faeb493 891 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 892 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 893 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
894 __atomic_load_n or an external library call.
895 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
896 __atomic_store_n or an external library call.
897 (resolve_overloaded_builtin): Handle new __atomic builtins.
898
cf9e9959
EB
8992011-11-04 Eric Botcazou <ebotcazou@adacore.com>
900
901 PR c++/50608
902 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
903 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
904 <INDIRECT_REF>: Return the argument.
905 <ARRAY_REF>: Remove special code for negative offset.
906 Call fold_build_pointer_plus instead of size_binop.
907 (fold_offsetof): Remove STOP_REF argument and adjust.
908 * c-common.h (fold_offsetof_1): Declare.
909 (fold_offsetof): Remove STOP_REF argument.
910
25339f10
JM
9112011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
912
913 PR c++/50810
914 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
915 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
916 Wnarrowing for C++0x and C++98.
917 * c.opt ([Wnarrowing]): Update.
918
89401152
PC
9192011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
920
921 PR c++/44277
922 * c.opt: Add Wzero-as-null-pointer-constant.
923
97e3ad20
JM
9242011-10-31 Jason Merrill <jason@redhat.com>
925
15694fdd
JM
926 * c.opt (-fdeduce-init-list): Off by default.
927
97e3ad20
JM
928 PR c++/50920
929 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
930 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
931 and -Wc++11-compat.
932 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
933
fb9120e3
RAV
9342011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
935
936 PR c++/30066
937 * c.opt (fvisibility-inlines-hidden): Description change.
938
3ce4f9e4
ESR
9392011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
940
941 Implement C++11 user-defined literals.
942 * c-common.c (build_userdef_literal): New.
943 * c-common.def: New tree code.
944 * c-common.h (tree_userdef_literal): New tree struct and accessors.
945 * c-lex.c (interpret_float): Add suffix parm.
946 (c_lex_with_flags): Build literal tokens.
947
5f53c243
PC
9482011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
949
950 PR c++/50841
951 Revert:
952 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
953
954 PR c++/50810
955 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
956 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
957 Wnarrowing for C++0x and C++98.
958 * c.opt ([Wnarrowing]): Update.
959
263734e1
PC
9602011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
961
962 PR c++/50810
963 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
964 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
965 Wnarrowing for C++0x and C++98.
966 * c.opt ([Wnarrowing]): Update.
967
d2e312d7
PC
9682011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
969
970 PR c++/45385
971 * c-common.c (conversion_warning): Remove code looking for
972 artificial operands.
973
d17687f6
DS
9742011-10-18 Dodji Seketeli <dodji@redhat.com>
975
976 PR bootstrap/50760
977 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 978 !NO_IMPLICIT_EXTERN_C.
d17687f6 979
fc8396e9
PC
9802011-10-17 Michael Spertus <mike_spertus@symantec.com>
981
982 * c-common.c (c_common_reswords): Add __bases,
983 __direct_bases.
984 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
985
9862011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
987
988 PR c++/50757
989 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
990
847e697a
TT
9912011-10-15 Tom Tromey <tromey@redhat.com>
992 Dodji Seketeli <dodji@redhat.com>
993
994 * c.opt (fdebug-cpp): New option.
995 * c-opts.c (c_common_handle_option): Handle the option.
996 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
997 output stream in parameter. Factorized from ...
998 (maybe_print_line): ... this. Dump location debug information when
999 -fdebug-cpp is in effect.
1000 (print_line_1): New static function. Takes an output stream in
1001 parameter. Factorized from ...
1002 (print_line): ... here. Dump location information when -fdebug-cpp
1003 is in effect.
1004 (scan_translation_unit): Dump location information when
1005 -fdebug-cpp is in effect.
1006
92582b75
TT
10072011-10-15 Tom Tromey <tromey@redhat.com>
1008 Dodji Seketeli <dodji@redhat.com>
1009
1010 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1011 without argument.
1012 * c-opts.c (c_common_handle_option)<case
1013 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1014 cases. Handle -ftrack-macro-expansion with and without argument.
1015
46427374
TT
10162011-10-15 Tom Tromey <tromey@redhat.com>
1017 Dodji Seketeli <dodji@redhat.com>
1018
1019 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1020 (print_line, cb_define, do_line_change): Adjust to avoid touching
1021 the internals of struct line_map. Use the public API instead.
1022 * c-pch.c (c_common_read_pch): Likewise.
1023 * c-lex.c (fe_file_change): Likewise.
1024
fc8396e9
PC
10252011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1026
1027 PR c++/17212
1028 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1029
10302011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1031
1032 PR c++/33067
1033 * c-pretty-print.c (pp_c_floating_constant): Output
1034 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1035
e79983f4
MM
10362011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1037
1038 * c-common.c (def_builtin_1): Delete old interface with two
1039 parallel arrays to hold standard builtin declarations, and replace
1040 it with a function based interface that can support creating
1041 builtins on the fly in the future. Change all uses, and poison
1042 the old names. Make sure 0 is not a legitimate builtin index.
1043 * c-omp.c (c_finish_omp_barrier): Ditto.
1044 (c_finish_omp_taskwait): Ditto.
1045 (c_finish_omp_flush): Ditto.
1046
6637388f
TG
10472011-10-11 Tristan Gingold <gingold@adacore.com>
1048
1049 * c.opt: (fallow-parameterless-variadic-functions): New.
1050
3797cb21
DS
10512011-09-08 Dodji Seketeli <dodji@redhat.com>
1052
1053 PR c++/33255 - Support -Wunused-local-typedefs warning
1054 * c-common.h (struct c_language_function::local_typedefs): New
1055 field.
9faeb493
UB
1056 (record_locally_defined_typedef, maybe_record_typedef_use)
1057 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 1058 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
1059 (maybe_record_typedef_use)
1060 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
1061 * c.opt: Declare new -Wunused-local-typedefs flag.
1062
693ddb1b
EB
10632011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1064
1065 PR middle-end/50266
1066 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1067 computations.
1068
830c740f
RG
10692011-09-05 Richard Guenther <rguenther@suse.de>
1070
1071 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1072 of integer_minus_one_node for empty array upper bounds.
1073
892a371f
DS
10742011-08-28 Dodji Seketeli <dodji@redhat.com>
1075
1076 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1077 it's the first time it's being called on this main TU.
1078
0e3fdb48
RB
10792011-08-24 Richard Guenther <rguenther@suse.de>
1080
1081 PR c/49396
1082 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1083
10842011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
1085
1086 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1087 defined in cpp_init_builtins and c_cpp_builtins.
1088
d4a83c10
JM
10892011-08-19 Joseph Myers <joseph@codesourcery.com>
1090
1091 * c-common.c (c_common_reswords): Add __builtin_complex.
1092 * c-common.h (RID_BUILTIN_COMPLEX): New.
1093
bbceee64
JM
10942011-08-18 Joseph Myers <joseph@codesourcery.com>
1095
1096 * c-common.c (c_common_reswords): Add _Noreturn.
1097 (keyword_is_function_specifier): Handle RID_NORETURN.
1098 * c-common.h (RID_NORETURN): New.
1099
0e3a99ae
AS
11002011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1101
1102 * c-common.c (unsafe_conversion_p): New function. Check if it is
1103 unsafe to convert an expression to the type.
1104 (conversion_warning): Adjust, use unsafe_conversion_p.
1105 * c-common.h (unsafe_conversion_p): New function declaration.
1106
20906c66
JJ
11072011-08-02 Jakub Jelinek <jakub@redhat.com>
1108
1109 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1110 (c_finish_omp_taskyield): New prototype.
1111 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1112 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1113 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1114 or RHS1 have side-effects, evaluate those too in the right spot,
1115 if it is a decl and LHS is also a decl, error out if they
1116 aren't the same.
1117 (c_finish_omp_taskyield): New function.
1118 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1119 * c-pragma.c (omp_pragmas): Add taskyield.
1120 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1121 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1122 PRAGMA_OMP_CLAUSE_MERGEABLE.
1123
770e5a2e
DS
11242011-07-25 Dodji Seketeli <dodji@redhat.com>
1125
1126 * c-common.h (set_underlying_type): Remove parm name from
1127 declaration.
1128
1baae426
RG
11292011-07-25 Romain Geissler <romain.geissler@gmail.com>
1130
1131 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 1132
fcb21722
JM
11332011-07-22 Jason Merrill <jason@redhat.com>
1134
76f86d00
JM
1135 PR c++/49793
1136 * c.opt (Wnarrowing): New.
1137
3a636414
JM
1138 PR c++/30112
1139 * c-common.h: Declare c_linkage_bindings.
1140 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1141
fcb21722
JM
1142 PR c++/49813
1143 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1144 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1145 as flag_isoc99 for 'restrict'.
1146 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1147
02614448
ILT
11482011-07-21 Ian Lance Taylor <iant@google.com>
1149
1150 PR middle-end/49705
1151 * c-common.c (c_disable_warnings): New static function.
1152 (c_enable_warnings): New static function.
1153 (c_fully_fold_internal): Change local unused_p to bool. Call
1154 c_disable_warnings and c_enable_warnings rather than change
1155 c_inhibit_evaluation_warnings.
1156
34429675
JM
11572011-07-20 Jason Merrill <jason@redhat.com>
1158
1159 PR c++/6709 (DR 743)
1160 PR c++/42603 (DR 950)
1161 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1162 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1163 (CPP_DECLTYPE): New.
1164 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1165
5d49b6a7
RG
11662011-07-19 Richard Guenther <rguenther@suse.de>
1167
1168 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1169 * c-omp.c (c_finish_omp_for): Likewise.
1170
e84a58ff
EB
11712011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1172
1173 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1174 body on the next line.
1175
329af3c7
JM
11762011-07-08 Jason Merrill <jason@redhat.com>
1177
4063e61b
JM
1178 PR c++/45437
1179 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1180
329af3c7
JM
1181 PR c++/49673
1182 * c-common.c (c_apply_type_quals_to_decl): Don't check
1183 TYPE_NEEDS_CONSTRUCTING.
1184
1a072294
RG
11852011-07-06 Richard Guenther <rguenther@suse.de>
1186
1187 * c-common.c (c_common_nodes_and_builtins):
1188 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1189
fce5dddd
RG
11902011-07-05 Richard Guenther <rguenther@suse.de>
1191
1192 * c-common.c (c_common_nodes_and_builtins): Build all common
1193 tree nodes first.
1194
45d439ac
JJ
11952011-06-27 Jakub Jelinek <jakub@redhat.com>
1196
56300785
JJ
1197 * c-common.h (c_tree_chain_next): New static inline function.
1198
45d439ac
JJ
1199 * c-common.c (check_builtin_function_arguments): Handle
1200 BUILT_IN_ASSUME_ALIGNED.
1201
e0a8ecf2
AM
12022011-06-21 Andrew MacLeod <amacleod@redhat.com>
1203
1204 * c-common.c: Add sync_ or SYNC__ to builtin names.
1205 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
1206
12072011-06-20 Pierre Vittet <piervit@pvittet.com>
1208
1209 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1210 handler.
1211 (gen_pragma_handler): New union.
1212 (internal_pragma_handler): New type.
1213 (c_register_pragma_with_data)
1214 (c_register_pragma_with_expansion_and_data): New functions.
1215
1216 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1217 (c_register_pragma, c_register_pragma_with_expansion)
1218 (c_invoke_pragma_handler): Changed to work with
1219 internal_pragma_handler.
1220 (c_register_pragma_with_data)
1221 (c_register_pragma_with_expansion_and_data): New functions.
1222
677f3fa8
JM
12232011-06-14 Joseph Myers <joseph@codesourcery.com>
1224
1225 * c-common.c: Include common/common-target.h.
1226 (handle_section_attribute): Use
1227 targetm_common.have_named_sections.
1228 * c-cppbuiltin.c: Include common/common-target.h.
1229 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1230
d7fc8c14
RG
12312011-06-10 Richard Guenther <rguenther@suse.de>
1232
1233 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1234 to print a IDENTIFIER_NODE.
1235
10e48e39
RO
12362011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1237 Joseph Myers <joseph@codesourcery.com>
1238
1239 * c.opt (fbuilding-libgcc): New option.
1240 * c-cppbuiltin.c (c_cpp_builtins): Define
1241 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1242
6976ae51
JM
12432011-06-07 Jason Merrill <jason@redhat.com>
1244
3ff60975
JM
1245 * c-common.c (max_tinst_depth): Lower default to 900.
1246
6976ae51
JM
1247 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1248
009db074
RG
12492011-06-07 Richard Guenther <rguenther@suse.de>
1250
1251 * c-common.c (c_common_nodes_and_builtins): Do not set
1252 size_type_node or call set_sizetype.
1253
b4592b92
DS
12542011-06-07 Dodji Seketeli <dodji@redhat.com>
1255
1256 PR debug/49130
1257 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 1258 type when using pointer comparison to compare types.
b4592b92 1259
014ab419
JW
12602011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1261
1262 * c.opt: Add -Wdelete-non-virtual-dtor.
1263 * c-opts.c (c_common_handle_option): Include it in -Wall.
1264
4f60111f
NF
12652011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1266
1267 PR bootstrap/49190
1268
1269 Revert:
1270 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1271
1272 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1273 not tree_common.
1274
4cc4f2f4
JJ
12752011-05-27 Jakub Jelinek <jakub@redhat.com>
1276
1277 PR c++/49165
1278 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1279 C++ don't call c_common_truthvalue_conversion on void type arms.
1280
38e01f9e
NF
12812011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1282
1283 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1284 (stmt_list_stack): Define.
1285 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1286 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1287
92e948a8
NF
12882011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1289
1290 * c-common.c (warning_candidate_p): Check for BLOCKs.
1291
a2fc3e63
NF
12922011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1293
1294 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1295 not tree_common.
1296
0957c029
JJ
12972011-05-25 Jakub Jelinek <jakub@redhat.com>
1298
1299 * c-common.c (def_fn_type): Remove extra va_end.
1300
828fb3ba
JM
13012011-05-23 Jason Merrill <jason@redhat.com>
1302
1303 PR c++/48106
1304 * c-common.c (c_common_get_narrower): New.
1305 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1306
dde05067
NF
13072011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1308
1309 * c-common.h (check_function_arguments): Tweak prototype of
1310 check_function_arguments.
1311 * c-common.c (check_function_arguments): Likewise. Adjust
1312 calls to check_function_nonnull, check_function_format, and
1313 check_function_sentinel.
1314 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1315 separate attributes and typelist arguments. Use
1316 FOREACH_FUNCTION_ARGS to iterate over argument types.
1317
3c0d13bf
PC
13182011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1319
1320 * c-common.c (c_common_reswords): Reorder.
1321 * c-common.h (rid): Likewise.
1322
8242dd04
NF
13232011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1324
1325 * c-common.c (def_fn_type): Don't call build_function_type, call
1326 build_function_type_array or build_varargs_function_type_array
1327 instead.
1328 (c_common_nodes_and_builtins): Likewise.
1329
3d528853
NF
13302011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1331
1332 * c-common.c (c_add_case_label): Omit the loc argument to
1333 build_case_label.
1334 * c-common.h (build_case_label): Remove.
1335 * c-semantics.c (build_case_label): Remove.
1336
a04a722b
JM
13372011-05-05 Joseph Myers <joseph@codesourcery.com>
1338
1339 * c-objc.h (objc_start_method_definition): Update prototype.
1340 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1341
e19a18d4
NF
13422011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1343
1344 * c-common.c (check_main_parameter_types): Reindent. Don't use
1345 TYPE_ARG_TYPES directly.
1346 (handle_nonnull_attribute): Likewise.
1347 (sync_resolve_params): Likewise.
1348 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1349 to check_format_string.
1350 (handle_format_attribute): Likewise.
1351 (check_format_string): Take a function type to examine instead of
1352 a type list. Use a function_arg_iterator to step through argument
1353 types.
1354
c62c040f
RG
13552011-05-04 Richard Guenther <rguenther@suse.de>
1356
1357 * c-common.c (fix_string_type): Use size_int for index type bounds.
1358 (start_fname_decls): Do not pass NULL to build_int_cst.
1359 (c_init_attributes): Likewise.
1360 * c-lex.c (c_lex_with_flags): Likewise.
1361
c12ff9d8
JM
13622011-04-27 Jason Merrill <jason@redhat.com>
1363
1364 * c-common.c (make_tree_vector_from_list): New.
1365 * c-common.h: Declare it.
1366
304dfbe3
RG
13672011-04-26 Richard Guenther <rguenther@suse.de>
1368
1369 PR preprocessor/48248
1370 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1371 for output size with -P.
1372
3c0d13bf
PC
13732011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1374
1375 * c-common.c (struct c_common_resword): Add __underlying_type.
1376 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1377
04695783
JM
13782011-04-20 Jim Meyering <meyering@redhat.com>
1379
1380 * c-format.c (init_dollar_format_checking): Remove useless
1381 if-before-free.
1382
0dc33c3c
NP
13832011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1384
1385 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 1386 (objc_detect_field_duplicates): New.
0dc33c3c 1387 * stub-objc.c: Likewise.
3c0d13bf 1388
c59633d9
NP
13892011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1390
1391 * stub-objc.c (objc_declare_protocols): Renamed to
1392 objc_declare_protocol.
1393 * c-objc.h: Likewise.
3c0d13bf 1394
32dabdaf
NP
13952011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1396
1397 * stub-objc.c (objc_declare_class): Updated argument name.
1398
81f653d6
NF
13992011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1400
1401 * c-common.h (c_common_init_ts): Declare.
1402 * c-common.c (c_common_init_ts): Define.
1403
eb345401
NP
14042011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1405
1406 * c-objc.h (objc_build_message_expr): Updated prototype.
1407 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 1408
a358e188
MJ
14092011-04-12 Martin Jambor <mjambor@suse.cz>
1410
1411 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1412 of cgraph_node.
1413
e6313a78
RG
14142011-04-11 Richard Guenther <rguenther@suse.de>
1415
1416 * c-common.c (complete_array_type): Build a range type of
1417 proper type.
1418
dcf0c47e
NF
14192011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1420
1421 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1422 (handle_type_generic_attribute): Likewise.
1423
1ee44b26
JM
14242011-04-07 Jason Merrill <jason@redhat.com>
1425
1426 PR c++/48450
1427 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1428 conversion from C++0x scoped enum.
1429
acce4e77
JM
14302011-04-06 Joseph Myers <joseph@codesourcery.com>
1431
1432 * c-target-def.h: New file.
1433 * c-target.def: New file.
1434 * c-target.h: New file.
1435 * c-common.c (targetcm): Don't define here.
1436 * c-common.h (default_handle_c_option): Declare.
1437 * c-format.c: Include c-target.h instead of target.h.
1438 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1439 include tm.h.
1440 (default_handle_c_option): Move from targhooks.c.
1441
e2eefb55
JJ
14422011-03-29 Jakub Jelinek <jakub@redhat.com>
1443
1444 PR preprocessor/48248
1445 * c-ppoutput.c (print): Add src_file field.
1446 (init_pp_output): Initialize it.
1447 (maybe_print_line): Don't optimize by adding up to 8 newlines
1448 if map->to_file and print.src_file are different file.
1449 (print_line): Update print.src_file.
1450
ba78087b
KT
14512011-03-25 Kai Tietz <ktietz@redhat.com>
1452
1453 * c-ada-spec.c (compare_comment): Use filename_cmp
1454 instead of strcmp for filename.
1455
0edf1bb2
JL
14562011-03-25 Jeff Law <law@redhat.com>
1457
1458 * c-family/c-common.c (def_fn_type): Add missing va_end.
1459
c7dc8804
JM
14602011-03-25 Jason Merrill <jason@redhat.com>
1461
1462 * c.opt: Add -std=c++03.
1463
d1d879b1
EB
14642011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1465
1466 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1467
62d784f7
KT
14682011-03-17 Kai Tietz
1469
1470 PR target/12171
5050afdf
KT
1471 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1472 Display allowed attributes for function pointer types.
1473 (pp_c_attributes_display): New function to display
1474 attributes having affects_type_identity flag set to true.
1475 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1476
62d784f7
KT
1477 * c-common.c (c_common_attribute_table):
1478 Add new element.
1479 (c_common_format_attribute_table): Likewise.
1480
82d37118
JM
14812011-03-18 Jason Merrill <jason@redhat.com>
1482
49a000c3
JM
1483 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1484 * c-common.h: Don't declare it here.
1485 * c-common.c: Or define it here.
1486 * c-opts.c (c_common_handle_option): Or set it here.
1487
82d37118
JM
1488 PR c++/35315
1489 * c-common.c (handle_transparent_union_attribute): Don't
1490 make a duplicate type in C++.
1491
17bc631c
JM
14922011-03-15 Jason Merrill <jason@redhat.com>
1493
1494 * c-common.c (max_constexpr_depth): New.
1495 * c-common.h: Declare it.
1496 * c-opts.c (c_common_handle_option): Set it.
1497 * c.opt (fconstexpr-depth): New option.
1498
1b9b91a6
JM
14992011-03-11 Jason Merrill <jason@redhat.com>
1500
f231b5ff
JM
1501 * c-common.c (attribute_takes_identifier_p): Add missing const.
1502
1b9b91a6
JM
1503 PR c++/46803
1504 * c-common.c (attribute_takes_identifier_p): Assume that an
1505 unknown attribute takes an identifier.
1506
a19e4d44
NF
15072011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1508
1509 PR c/47786
1510 * c-common.c (c_type_hash): Call list_length instead of iterating
1511 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1512
982d62f6
JJ
15132011-02-19 Jakub Jelinek <jakub@redhat.com>
1514
1515 PR c/47809
1516 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1517
0a256240
NP
15182011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1519
1520 * c.opt (fobjc-abi-version=) New.
1521 (fobjc-nilcheck): New.
1522
ba9e6dd5
NF
15232011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1524
1525 PR c++/46890
1526 * c-common.h (keyword_is_decl_specifier): Declare.
1527 * c-common.c (keyword_is_decl_specifier): Define.
1528 (keyword_is_function_specifier): New function.
1529
7273813a
JJ
15302011-01-26 Jakub Jelinek <jakub@redhat.com>
1531
1532 PR c/47473
1533 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1534 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1535 REAL_TYPE.
1536
908ef79b
AC
15372011-01-26 Arnaud Charlet <charlet@adacore.com>
1538
1539 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1540
237e9384
JJ
15412011-01-26 Jakub Jelinek <jakub@redhat.com>
1542
1543 PR pch/47430
1544 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1545 after init_c_lex if pch_file is set.
1546
47ea1edf
DK
15472011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1548
d4dba752 1549 PR c++/43601
47ea1edf
DK
1550 * c.opt (-fkeep-inline-dllexport): New switch.
1551
2aa9c6ae
RG
15522011-01-12 Richard Guenther <rguenther@suse.de>
1553
1554 PR middle-end/32511
1555 * c-common.c (handle_weak_attribute): Warn instead of error
1556 on declaring an inline function weak.
1557
7bd11157
TT
15582011-01-05 Tom Tromey <tromey@redhat.com>
1559
1560 * c-common.h (lvalue_error): Update.
1561 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1562 not error.
1563
0e66e494 15642010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 1565
b4f588c4
NP
1566 PR objc/47075
1567 * c-objc.h (objc_finish_message_expr): Added argument to
1568 prototype.
1569
f4da8dce
NF
15702010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1571
1572 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1573 Use prototype_p.
1574
46270f14
NP
15752010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1576
1577 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 1578 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 1579
4816c593
NF
15802010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1581
1582 * c-common.h (readonly_error): Declare.
1583 * c-common.c (readonly_error): Define.
1584
7a6daeb0
NF
15852010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1586
1587 * c-common.h (invalid_indirection_error): Declare.
1588 * c-common.c (invalid_indirection_error): Define.
1589
892f6119
RG
15902010-12-03 Richard Guenther <rguenther@suse.de>
1591
1592 PR c/46745
1593 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1594 (pp_c_unary_expression): Likewise.
1595 (pp_c_expression): Likewise.
1596
6c39e757
NP
15972010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1598
1599 * c-common.h (objc_finish_function): New.
1600 (objc_non_volatilized_type): Removed.
1601 (objc_type_quals_match): Removed.
1602 * stub-objc.c (objc_finish_function): New.
1603 (objc_non_volatilized_type): Removed.
1604 (objc_type_quals_match): Removed.
9faeb493 1605
7c475d11
JM
16062010-11-30 Joseph Myers <joseph@codesourcery.com>
1607
1608 * c-common.h (parse_optimize_options): Declare.
1609 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1610 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1611
71f3e391
JM
16122010-11-29 Joseph Myers <joseph@codesourcery.com>
1613
1614 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1615 GET_ENVIRONMENT.
1616 * c-pch.c (O_BINARY): Don't define here.
1617 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1618
d5fabb58
JM
16192010-11-25 Joseph Myers <joseph@codesourcery.com>
1620
1621 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1622 targetm.except_unwind_info.
1623
299404a1
JM
16242010-11-23 Joseph Myers <joseph@codesourcery.com>
1625
1626 * c-opts.c (c_common_handle_option): Pass location to
1627 set_struct_debug_option.
1628
c98cd5bf
JM
16292010-11-23 Joseph Myers <joseph@codesourcery.com>
1630
1631 * c-common.c (visibility_options): Move from ../opts.c.
1632 * c-common.h (struct visibility_flags, visibility_options):
1633 Declare here.
1634 * c-opts.c (finish_options): Rename to c_finish_options.
1635 (c_common_init): Update call to finish_options.
1636
a9546771
NP
16372010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1638
1639 PR objc/34033
1640 * c-lex.c (lex_string): Check that each string in an Objective-C
1641 string concat sequence starts with either one or zero '@', and
1642 that there are no spurious '@' signs at the end.
1643
24a57808
JM
16442010-11-20 Joseph Myers <joseph@codesourcery.com>
1645
1646 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1647 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1648 HANDLE_PRAGMA_VISIBILITY.
1649 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1650 HANDLE_PRAGMA_VISIBILITY): Don't define.
1651 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1652
a9aa2c3a
NF
16532010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1654
1655 PR c++/16189
1656 PR c++/36888
1657 PR c++/45331
1658 * c-common.h (keyword_begins_type_specifier): Declare.
1659 (keyword_is_storage_class_specifier): Declare.
1660 (keyword_is_type_qualifier): Declare.
1661 * c-common.c (keyword_begins_type_specifier): New function.
1662 (keyword_is_storage_class_specifier): New function.
1663 (keyword_is_type_qualifier): Declare.
1664
5386338c
JM
16652010-11-19 Joseph Myers <joseph@codesourcery.com>
1666
1667 PR c/46547
1668 * c-common.c (in_late_binary_op): Define.
1669 (c_common_truthvalue_conversion): Check in_late_binary_op before
1670 calling c_save_expr.
1671 * c-common.h (in_late_binary_op): Declare.
1672
69ccdddb
JM
16732010-11-19 Joseph Myers <joseph@codesourcery.com>
1674
1675 * c-opts.c (c_common_handle_option): Update calls to
1676 set_struct_debug_option.
1677
6b192a09
NP
16782010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1679
1680 * c-common.h (objc_declare_protocols): Added additional argument.
1681 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 1682
fb52b50a
NF
16832010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1684
1685 PR c/33193
1686 * c-common.h (build_real_imag_expr): Declare.
1687 * c-semantics.c (build_real_imag_expr): Define.
1688
b37421c6
JM
16892010-11-17 Joseph Myers <joseph@codesourcery.com>
1690
1691 * c-opts.c (c_common_parse_file): Take no arguments.
1692 * c-common.h (c_common_parse_file): Update prototype.
1693
07078664
JJ
16942010-11-16 Jakub Jelinek <jakub@redhat.com>
1695
1696 PR c++/46401
1697 * c-common.c (warning_candidate_p): Don't track non-const calls
1698 or STRING_CSTs.
1699
c6a13190
ILT
17002010-11-15 Ian Lance Taylor <iant@google.com>
1701
1702 * c-lex.c (init_c_lex): Set macro debug callbacks if
1703 flag_dump_go_spec is set.
1704
925e8657
NP
17052010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1706
1707 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1708 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1709
bb0a9581
NF
17102010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1711
1712 PR preprocessor/45038
1713 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1714 dialects.
1715
c5fa0890
JM
17162010-11-12 Joseph Myers <joseph@codesourcery.com>
1717
1718 * c-common.h (c_family_lang_mask): Declare.
1719 * c-opts.c (c_family_lang_mask): Make extern.
1720 * c-pragma.c (handle_pragma_diagnostic): Use
1721 control_warning_option.
1722
a4d8c676
JM
17232010-11-12 Joseph Myers <joseph@codesourcery.com>
1724
1725 * c-common.c (parse_optimize_options): Update call to
1726 decode_options.
1727 * c-common.h (c_common_handle_option): Update prototype.
1728 * c-opts.c (c_common_handle_option): Take location_t parameter and
1729 pass it to other functions.
1730
f954bd2c
JM
17312010-11-11 Joseph Myers <joseph@codesourcery.com>
1732
1733 * c-opts.c (warning_as_error_callback): Remove.
1734 (c_common_initialize_diagnostics): Don't call
1735 register_warning_as_error_callback.
1736 (c_common_handle_option): Handle -Werror=normalized= here.
1737
d8a07487
JM
17382010-11-10 Joseph Myers <joseph@codesourcery.com>
1739
1740 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1741 in diagnostic.
1742 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1743 letter.
1744 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1745 Remove trailing '.' from diagnostics.
1746 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1747
d5478783
JM
17482010-11-10 Joseph Myers <joseph@codesourcery.com>
1749
1750 * c-common.c (parse_optimize_options): Pass global_dc to
1751 decode_options.
1752 * c-opts.c (c_common_handle_option): Pass &global_options to
1753 set_Wstrict_aliasing.
1754 * c.opt (v): Don't mark Common or document here.
1755
91ebb981
IS
17562010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1757
1758 PR target/44981
1759 * c-format.c (format_type): New type gcc_objc_string_format_type.
1760 (valid_stringptr_type_p): New.
1761 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 1762 (check_format_string): Pass expected type, use
91ebb981
IS
1763 valid_stringptr_type_p (), check that the format string types are
1764 consistent with the format specification.
1765 (decode_format_attr): Warn if NSString is used outside objective-c.
1766 (format_types_orig): Add NSString.
1767 (format_name): New.
1768 (format_flags): New.
1769 (check_format_arg): Handle format strings requiring an external parser.
1770 first_target_format_type: New variable.
1771 (handle_format_attribute): Set up first_target_format_type, pass the
1772 expected format arg string type to check_format_string().
1773 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1774 * stub-objc.c (objc_string_ref_type_p): New.
1775 (objc_check_format_arg): New.
1776
bede2adc
NP
17772010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1778
9faeb493 1779 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
1780 * c-common.h (objc_build_class_component_ref): New.
1781 * stub-objc.c (objc_build_class_component_ref): New.
1782
9a179d01
NP
17832010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1784
1785 * c.opt (Wproperty-assign-default): New option.
1786
22d8d616
NP
17872010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1788
1789 Implemented -fobjc-std=objc1 flag.
1790 * c.opt (fobjc-std=objc1): New option.
1791
2debdb4f
NP
17922010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1793
1794 Implemented format and noreturn attributes for Objective-C methods.
1795 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1796 attribute for Objective-C methods.
1797
ec52b111
JM
17982010-10-31 Jason Merrill <jason@redhat.com>
1799
1800 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1801 EXPR_LOC_OR_HERE.
1802
46a88c12
NP
18032010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1804
1805 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1806 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1807 (objc_add_property_declaration): Removed arguments for copies and
1808 ivar.
1809 (objc_build_getter_call): Renamed to
1810 objc_maybe_build_component_ref.
1811 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1812 (objc_is_property_ref): New.
1813 * c-common.c (c_common_reswords): Removed copies and ivar.
1814 * stub-objc.c (objc_add_property_declaration): Removed arguments
1815 for copies and ivar.
1816 (objc_build_getter_call): Renamed to
1817 objc_maybe_build_component_ref.
1818 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1819 (objc_is_property_ref): New.
9faeb493 1820
1e4bf85b
AC
18212010-10-29 Arnaud Charlet <charlet@adacore.com>
1822 Matthew Gingell <gingell@adacore.com>
1823
1824 * c-ada-spec.c (separate_class_package): New function.
1825 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1826 name of their enclosing package.
1827 (print_ada_declaration): Use separate_class_package.
1828
81f0bab2
JM
18292010-10-27 Jason Merrill <jason@redhat.com>
1830
2b08f2c5
JM
1831 * c-common.c (c_common_reswords): Add __is_literal_type.
1832 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1833
81f0bab2
JM
1834 * c-common.c (check_case_value): Remove special C++ code.
1835
200290f2
NP
18362010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1837
1838 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1839 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1840 and RID_LAST_PATTR.
1841 (objc_add_property_declaration): Added additional arguments.
1842 (objc_property_attribute_kind): Removed.
1843 (objc_set_property_attr): Removed.
1844 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1845 copy and nonatomic.
1846 * stub-objc.c (objc_add_property_declaration): Added additional
1847 arguments.
1848 (objc_set_property_attr): Removed.
9faeb493 1849
f614132b
NP
18502010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1851
1852 * c-common.h (objc_add_property_variable): Renamed to
1853 objc_add_property_declaration. Added location argument.
1854 * stub-objc.c (objc_add_property_variable): Same change.
1855
b8a18805
NP
18562010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1857
1858 * c-common.h (objc_maybe_printable_name): New.
1859 * stub-objc.c (objc_maybe_printable_name): New.
1860
30cd1c5d
AS
18612010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1862 Andrew Pinski <pinskia@gmail.com>
1863
1864 * c-common.h (c_common_mark_addressable_vec): Declare.
1865 * c-common.c (c_common_mark_addressable_vec): New function.
1866
249a82c4
NP
18672010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1868
1869 * c-common.h (objc_set_method_type): Removed.
1870 (objc_add_method_declaration): Added boolean argument.
1871 (objc_start_method_definition): Same change.
1872 (objc_build_method_signature): Same change.
1873 * stub-objc.c (objc_set_method_type): Removed.
1874 (objc_add_method_declaration): Added boolean argument.
1875 (objc_start_method_definition): Same change.
1876 (objc_build_method_signature): Same change.
1877
977e30bc
NP
18782010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1879
1880 * c-common.h (finish_file): Removed.
1881 (objc_write_global_declarations): New.
1882 * c-opts.c (c_common_parse_file): Do not call finish_file.
1883 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 1884
da57d1b9
NP
18852010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1886
1887 Implemented parsing @synthesize and @dynamic for
1888 Objective-C/Objective-C++.
1889 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1890 (objc_add_synthesize_declaration): New.
1891 (objc_add_dynamic_declaration): New.
1892 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1893 * stub-objc.c (objc_add_synthesize_declaration): New.
1894 (objc_add_dynamic_declaration): New.
9faeb493 1895
0069111f
MM
18962010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1897
1898 PR target/46041
1899 * c-cppbuiltin.c (mode_has_fma): Move function here from
1900 builtins.c. Don't use the fma optab, instead just use the
1901 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1902 using -save-temps.
1903
e426b47b
NP
19042010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1905
1906 Merge from 'apple/trunk' branch on FSF servers.
0069111f 1907
e426b47b
NP
1908 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1909
9faeb493 1910 Radar 4330422
e426b47b
NP
1911 * c-common.h (objc_non_volatilized_type): New declaration
1912 * stub-objc.c (objc_non_volatilized_type): New stub.
1913
90fbfdc3
NP
19142010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1915
e426b47b 1916 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
1917
1918 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1919
9faeb493 1920 Radar 4133425
90fbfdc3 1921 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 1922 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 1923
c37d8c30
IS
19242010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1925
1926 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1927 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1928 (objc_ivar_visibility_kind): New enum.
1929 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 1930 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
1931 visibility enum.
1932
1b1562a5
MM
19332010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1934
1935 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1936 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1937 has the appropriate fma builtins.
1938 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1939
668ea4b1
IS
19402010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1941
1b1562a5 1942 merge from FSF apple 'trunk' branch.
668ea4b1 1943 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 1944
668ea4b1
IS
1945 Radars 4436866, 4505126, 4506903, 4517826
1946 * c-common.c (c_common_resword): Define @property and its attributes.
1947 * c-common.h: Define property attribute enum entries.
1948 (OBJC_IS_PATTR_KEYWORD): New.
1949 (objc_property_attribute_kind): New enum.
1950 Declare objc_set_property_attr (), objc_add_property_variable (),
1951 objc_build_getter_call () and objc_build_setter_call ().
1952 * stub-objc.c (objc_set_property_attr): New stub.
1953 (objc_add_property_variable): Likewise.
1954 (objc_build_getter_call): Likewise.
1955 (objc_build_setter_call) Likewise.
1b1562a5 1956
a1178b30
IS
19572010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1958
1b1562a5 1959 merge from FSF apple 'trunk' branch.
a1178b30
IS
1960 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1961
1962 Radar 3803157 (method attributes)
1963 * c-common.c (handle_deprecated_attribute): Recognize
1964 objc methods as valid declarations.
1965 * c-common.h: Declare objc_method_decl ().
1b1562a5 1966 * stub-objc.c (objc_method_decl): New stub.
a1178b30 1967
a75bfaa6
JM
19682010-10-08 Joseph Myers <joseph@codesourcery.com>
1969
1970 * c-common.c (parse_optimize_options): Call
1971 decode_cmdline_options_to_array_default_mask before
1972 decode_options. Update arguments to decode_options.
1973 * c-common.h (c_common_init_options_struct): Declare.
1974 * c-opts.c (c_common_init_options_struct): New. Split out from
1975 c_common_init_options.
1976
f05b9d93
NP
19772010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1978
1979 Implemented fast enumeration for Objective-C.
1980 * c-common.h (objc_finish_foreach_loop): New.
1981 * stub-objc.c (objc_finish_foreach_loop): New.
1982
1ebe4b4f
JM
19832010-10-05 Joseph Myers <joseph@codesourcery.com>
1984
1985 * c-common.h (struct diagnostic_context): Don't declare here.
1986 (c_common_initialize_diagnostics): Declare using
1987 diagnostic_context typedef.
1988 * c-opts.c (c_common_handle_option): Pass global_dc to
1989 handle_generated_option.
1990
d4d24ba4
JM
19912010-10-04 Joseph Myers <joseph@codesourcery.com>
1992
1993 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1994 handle_generated_option.
1995
478a1c5b
ILT
19962010-10-03 Ian Lance Taylor <iant@google.com>
1997
1998 * c.opt (-fplan9-extensions): New option.
1999
82a1c2fe
FXC
20002010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2001
2002 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2003 Remove.
2004 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2005 of duplicating code.
2006
92902b1b
IS
20072010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2008
2009 * c-common.c: Add two new entries for @optional
2010 and @required keywords.
2011
2012 merge from FSF 'apple/trunk' branch.
2013 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2014
2015 Radar 4386773
2016 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2017 objective-c keywords.
2018 (objc_set_method_opt): New declaration.
2019 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 2020
46625112
JM
20212010-09-30 Joseph Myers <joseph@codesourcery.com>
2022
2023 * c-common.c (handle_optimize_attribute): Pass &global_options to
2024 cl_optimization_save and cl_optimization_restore.
2025 * c-opts.c (c_common_handle_option): Pass &global_options to
2026 handle_generated_option.
2027 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2028 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2029 &global_options to cl_optimization_restore.
2030
49b91f05
NP
20312010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2032
2033 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2034 Objective-C/Objective-C++ keywords.
2035
13ed556f 20362010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 2037
9faeb493
UB
2038 Merge from 'apple/trunk' branch on FSF servers.
2039
a6341d57
NP
2040 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2041
2042 Radar 4281748
2043 * c-common.h (objc_check_global_decl): New declaration.
2044 * stub-objc.c (objc_check_global_decl): New stub.
2045
f0036cca
JM
20462010-09-29 Joseph Myers <joseph@codesourcery.com>
2047
2048 * c.opt: Don't use VarExists.
2049
e3339d0f
JM
20502010-09-29 Joseph Myers <joseph@codesourcery.com>
2051
2052 * c-common.c (c_cpp_error): Update names of diagnostic_context
2053 members.
2054 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2055 cl_optimization members.
2056 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2057 sanitize_cpp_opts, finish_options): Update names of cpp_options
2058 members.
2059
1973201f
NP
20602010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2061
2062 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2063 (objc_is_reserved_word): Removed.
2064 * c-common.c: Updated comments.
2065 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2066 objc_is_reserved_word.
2067 * stub-objc.c (objc_is_reserved_word): Removed.
2068
f7e71da5
IS
20692010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2070
9faeb493 2071 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
2072 include attributes.
2073 (objc_start_method_definition): Likewise.
2074 (objc_build_keyword_decl): Likewise.
2075 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2076 (objc_start_method_definition): Likewise.
2077 (objc_build_keyword_decl): Likewise.
2078
c165dca7
IS
20792010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2080
2081 * c-common.h (objc_start_class_interface): Adjust prototype.
2082 (objc_start_category_interface): Likewise.
2083 (objc_start_protocol): Likewise.
2084 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2085 (objc_start_class_interface): Likewise.
2086 (objc_start_category_interface): Likewise.
2087
7458026b
ILT
20882010-09-27 Ian Lance Taylor <iant@google.com>
2089
2090 * c-common.c (c_common_attribute_table): Add no_split_stack.
2091 (handle_no_split_stack_attribute): New static function.
2092
b581b85b
NP
20932010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2094
9faeb493 2095 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
2096
2097 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2098
9faeb493 2099 Radar 4229905
b581b85b
NP
2100 * c-common.h (objc_have_common_type): New declaration.
2101 * stub-objc.c (objc_have_common_type): New stub.
2102
2103 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2104
2105 Radar 4154928
2106 * c-common.h (objc_common_type): New prototype.
9faeb493 2107 * stub-objc.c (objc_common_type): New stub.
b581b85b 2108
46a4da10
JH
21092010-09-24 Jan Hubicka <jh@suse.cz>
2110
2111 * c-common.c (handle_leaf_attribute): New function.
2112 (struct attribute_spec c_common_att): Add leaf.
2113
e200444e
JM
21142010-09-22 Joseph Myers <joseph@codesourcery.com>
2115
2116 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2117 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2118 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2119 -include-barrier, -include-directory, -include-directory=,
2120 -include-directory-after, -include-directory-after=,
2121 -include-prefix, -include-prefix=, -include-with-prefix,
2122 -include-with-prefix=, -include-with-prefix-after,
2123 -include-with-prefix-after=, -include-with-prefix-before,
2124 -include-with-prefix-before=, -no-integrated-cpp,
2125 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2126 -output=, -pedantic, -pedantic-errors, -preprocess,
2127 -print-missing-file-dependencies, -trace-includes, -traditional,
2128 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2129 -user-dependencies, -verbose, -write-dependencies,
2130 -write-user-dependencies, no-integrated-cpp, traditional): New.
2131
29a80ea6
NP
21322010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2133
2134 PR objc/23710
ac1fc2fc
NP
2135 * c-common.h (objc_start_method_definition): Return bool instead
2136 of void.
2137 * stub-objc.c (objc_start_method_definition): Return bool instead
2138 of void.
2139
21402010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2141
2142 PR objc/25965
2143 * c-common.h (objc_get_interface_ivars): New declaration.
2144 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 2145
de621752
ILT
21462010-09-15 Ian Lance Taylor <iant@google.com>
2147
2148 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 2149 messages. Remove period at end of warning message.
de621752 2150
ba885ec5
NS
21512010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2152
2153 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2154 (handle_alias_attribute): ... here.
2155 (handle_ifunc_attribute): New.
2156
c5ee1358
MM
21572010-09-06 Mark Mitchell <mark@codesourcery.com>
2158
2159 * c-common.h (do_warn_double_promotion): Declare.
2160 * c-common.c (do_warn_double_promotion): Define.
2161
0a0b3574
MM
21622010-09-05 Mark Mitchell <mark@codesourcery.com>
2163
2164 * c.opt (Wdouble-promotion): New.
2165
d1779886
JM
21662010-09-02 Joseph Myers <joseph@codesourcery.com>
2167
2168 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2169 fvtable-thunks, fxref): Mark no longer supported in help text.
2170
2d2bd949
JM
21712010-09-02 Joseph Myers <joseph@codesourcery.com>
2172
2173 * c.opt (Wimport, fall-virtual, falt-external-templates,
2174 fdefault-inline, fenum-int-equiv, fexternal-templates,
2175 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2176 fname-mangling-version-, fnew-abi, fnonnull-objects,
2177 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2178 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2179 applicable.
2180 (fhandle-exceptions): Mark with Alias and Warn.
2181 * c-opts.c (c_common_handle_option): Don't handle options marked
2182 as ignored.
2183
5de8299c
JM
21842010-09-02 Joseph Myers <joseph@codesourcery.com>
2185
2186 * c.opt (Wcomments, Werror-implicit-function-declaration,
2187 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2188 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2189 aliases.
2190 * c-common.c (option_codes): Use OPT_Wcomment instead of
2191 OPT_Wcomments.
2192 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2193 Don't handle options marked as aliases.
2194
0ceb0201
RG
21952010-08-25 Richard Guenther <rguenther@suse.de>
2196
2197 * c-common.c (c_common_get_alias_set): Remove special
2198 handling for pointers.
2199
ac47786e
NF
22002010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2201
2202 * c-common.c: Use FOR_EACH_VEC_ELT.
2203 * c-gimplify.c: Likewise.
2204 * c-pragma.c: Likewise.
2205
c878765b
JM
22062010-08-16 Joseph Myers <joseph@codesourcery.com>
2207
2208 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2209 RejectDriver.
2210 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2211 RejectDriver.
2212 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2213 instead of OPT_MDX and OPT_MMDX.
2214
603349bf
JM
22152010-08-16 Joseph Myers <joseph@codesourcery.com>
2216
2217 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2218
644fa7ac
JM
22192010-08-12 Joseph Myers <joseph@codesourcery.com>
2220
2221 * c.opt (MD, MMD): Change to MDX and MMDX.
2222 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2223
481e1176
JM
22242010-08-11 Joseph Myers <joseph@codesourcery.com>
2225
2226 * c-opts.c (c_common_handle_option): Call handle_generated_option
2227 instead of handle_option.
2228
ac8dc9f7
NF
22292010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2230
2231 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2232 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2233
4f8c876d
NF
22342010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2235
2236 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2237 (pending_redefine_extname): Change type to a VEC.
2238 (add_to_renaming_pragma_list): Update for new type of
2239 pending_redefine_extname.
ac8dc9f7 2240 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 2241
3b0c690e
AC
22422010-08-04 Arnaud Charlet <charlet@adacore.com>
2243
2244 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2245 visited.
2246 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2247 decide whether a type has already been declared/seen.
2248 Do not go to the original type.
2249 (dump_nested_types): New parameter forward.
2250 Generate forward declaration if needed and mark type as visited.
2251 (print_ada_declaration): Call dump_nested_types if not already done.
2252 Mark types as visited.
2253
1890bccc
JM
22542010-08-03 Joseph Myers <joseph@codesourcery.com>
2255
2256 * c.opt (-print-pch-checksum): Remove option.
2257 * c-opts.c (c_common_handle_option): Don't handle
2258 OPT_print_pch_checksum.
2259
5f20c657
JM
22602010-07-27 Joseph Myers <joseph@codesourcery.com>
2261
2262 * c-common.h (c_common_handle_option): Update prototype and return
2263 value type.
2264 * c-opts.c (c_common_handle_option): Update prototype and return
2265 value type. Update calls to handle_option and
2266 enable_warning_as_error.
2267
f551f80c
JJ
22682010-07-27 Jakub Jelinek <jakub@redhat.com>
2269
2270 PR c/45079
2271 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2272
61ff2bdc
JM
22732010-07-27 Joseph Myers <joseph@codesourcery.com>
2274
2275 * c-common.h (c_common_missing_argument): Remove.
2276 * c-opts.c (c_common_missing_argument): Remove.
2277 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2278 idirafter, imacros, include, isysroot, isystem, iquote): Add
2279 MissingArgError.
2280 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2281
7a9bf9a4
JM
22822010-07-27 Joseph Myers <joseph@codesourcery.com>
2283
2284 * c-common.h (c_common_option_lang_mask,
2285 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2286 New.
2287 (c_common_init_options): Update prototype.
2288 * c-opts.c (c_common_option_lang_mask): New.
2289 (c_common_initialize_diagnostics): Split out of
2290 c_common_init_options.
2291 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2292 New.
2293 (c_common_init_options): Update prototype. Use decoded options in
2294 search for -lang-asm.
2295
910ad8de
NF
22962010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2297
2298 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2299 * c-format.c: Likewise.
2300
718f9c0f
MLI
23012010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2302
2303 * c-common.h: Include diagnostic-core.h. Error if already
2304 included.
2305 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2306
4d451982
MLI
23072010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2308
2309 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2310 Do not include expr.h
2311 (vector_mode_valid_p): Move here.
2312
119fe915
SB
23132010-06-21 DJ Delorie <dj@redhat.com>
2314
2315 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2316 allow these pragmas anywhere.
2317
23182010-06-14 Jakub Jelinek <jakub@redhat.com>
2319
2320 PR bootstrap/44509
2321 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2322 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2323 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2324 ggc_strdup instead of xstrdup.
2325
23262010-06-10 Jakub Jelinek <jakub@redhat.com>
2327
2328 * c-cppbuiltin.c: Include cpp-id-data.h.
2329 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2330 (lazy_hex_fp_value): New function.
2331 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2332
6662d794
MLI
23332010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2334
2335 * c-gimplify.c: Do not include tree-flow.h
2336
38f8b050
JR
23372010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2338
2339 PR other/44034
2340 * c-common.c: Rename targetm member:
2341 targetm.enum_va_list -> targetm.enum_va_list_p
2342
9589f23e
AS
23432010-06-28 Anatoly Sokolov <aesok@post.ru>
2344
2345 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2346
3b06d379
SB
23472010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2348
2349 * c-cppbuiltin.c: Do not include except.h.
2350
d166d4c3
AK
23512010-06-24 Andi Kleen <ak@linux.intel.com>
2352
9faeb493
UB
2353 * c-common.c (warn_for_omitted_condop): New.
2354 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 2355
70cb8be6
JM
23562010-06-21 Joseph Myers <joseph@codesourcery.com>
2357
2358 * c.opt (lang-objc): Remove.
2359 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2360
a4c97feb
JR
23612010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2362
2363 * c-opts.c: Include "tm_p.h".
2364
6e2f1956
JM
23652010-06-20 Joseph Myers <joseph@codesourcery.com>
2366
2367 * c-common.c (parse_optimize_options): Update call to
2368 decode_options.
2369
bc87224e
NF
23702010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2371
2372 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2373 new type of types_used_by_cur_var_decl.
2374
b49cf425
JR
23752010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2376
2377 PR bootstrap/44512
2378 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2379 for C++ standard compliance.
2380
59f9c2ed
JM
23812010-06-16 Jason Merrill <jason@redhat.com>
2382
2383 * c.opt: Add -Wnoexcept.
2384
33766b66
RG
23852010-06-16 Richard Guenther <rguenther@suse.de>
2386
2387 PR c/44555
2388 * c-common.c (c_common_truthvalue_conversion): Remove
2389 premature and wrong optimization concering ADDR_EXPRs.
2390
eff7e30c
AC
23912010-06-15 Arnaud Charlet <charlet@adacore.com>
2392
2393 * c-ada-spec.c (dump_sloc): Remove column info.
2394 (is_simple_enum): New function.
2395 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2396 enum types when relevant.
2397
6312e84d
MLI
23982010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2399
9faeb493 2400 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
2401 location.
2402
1cb42611
JM
24032010-06-10 Joseph Myers <joseph@codesourcery.com>
2404
2405 * c-opts.c (c_common_handle_option): Don't handle
2406 OPT_fshow_column.
2407
a9429e29
LB
24082010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2409
2410 * c-pragma.c (push_alignment): Use typed GC allocation.
2411 (handle_pragma_push_options): Likewise.
2412
2413 * c-common.c (parse_optimize_options): Likewise.
2414
2415 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2416 option.
2417
5498f011
JM
24182010-06-07 Joseph Myers <joseph@codesourcery.com>
2419
2420 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2421 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2422 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2423 flag_signed_bitfields, warn_strict_null_sentinel,
2424 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2425 flag_gen_declaration, flag_no_gnu_keywords,
2426 flag_implement_inlines, flag_implicit_templates,
2427 flag_implicit_inline_templates, flag_optional_diags,
2428 flag_elide_constructors, flag_default_inline, flag_rtti,
2429 flag_conserve_space, flag_access_control, flag_check_new,
2430 flag_new_for_scope, flag_weak, flag_working_directory,
2431 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2432 flag_enforce_eh_specs, flag_threadsafe_statics,
2433 flag_pretty_templates): Remove.
2434 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2435 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2436 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2437 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2438 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2439 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2440 flag_no_gnu_keywords, flag_implement_inlines,
2441 flag_implicit_templates, flag_implicit_inline_templates,
2442 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2443 flag_rtti, flag_conserve_space, flag_access_control,
2444 flag_check_new, flag_new_for_scope, flag_weak,
2445 flag_working_directory, flag_use_cxa_atexit,
2446 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2447 flag_threadsafe_statics, flag_pretty_templates,
2448 warn_strict_null_sentinel): Remove.
2449 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2450 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2451 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2452 fimplicit-inline-templates, fimplicit-templates,
2453 flax-vector-conversions, fms-extensions, fnil-receivers,
2454 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2455 frtti, fshort-double, fshort-enums, fshort-wchar,
2456 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2457 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2458 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2459 gen-decls, undef): Use Var.
2460 (fdefault-inline, foptional-diags): Document as doing nothing.
2461 * c-opts.c (c_common_handle_option): Remove cases for options now
2462 using Var. Mark ignored options as such.
2463
39dabefd
SB
24642010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2465
9faeb493 2466 * c-common.c: Moved to here from parent directory.
39dabefd
SB
2467 * c-common.def: Likewise.
2468 * c-common.h: Likewise.
2469 * c-cppbuiltin.c: Likewise.
2470 * c-dump.c: Likewise.
2471 * c-format.c: Likewise.
2472 * c-format.h : Likewise.
2473 * c-gimplify.c: Likewise.
2474 * c-lex.c: Likewise.
2475 * c-omp.c: Likewise.
2476 * c.opt: Likewise.
2477 * c-opts.c: Likewise.
2478 * c-pch.c: Likewise.
2479 * c-ppoutput.c: Likewise.
2480 * c-pragma.c: Likewise.
2481 * c-pragma.h: Likewise.
2482 * c-pretty-print.c: Likewise.
2483 * c-pretty-print.h: Likewise.
2484 * c-semantics.c: Likewise.
2485 * stub-objc.c: Likewise.
2486
2487 * c-common.c: Include gt-c-family-c-common.h.
2488 * c-pragma.c: Include gt-c-family-c-pragma.h.
2489\f
d1e082c2 2490Copyright (C) 2010-2013 Free Software Foundation, Inc.
39dabefd
SB
2491
2492Copying and distribution of this file, with or without modification,
2493are permitted in any medium without royalty provided the copyright
2494notice and this notice are preserved.
This page took 1.027585 seconds and 5 git commands to generate.