]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
[MOXIE] Hookize GO_IF_LEGITIMATE_ADDRESS
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
a03c9bf1
JM
12015-07-01 Jason Merrill <jason@redhat.com>
2
36a85135
JM
3 * c-common.h (D_CXX11): Rename from D_CXX0X.
4 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
5 * c-common.c: Adjust.
6
e7fa68d5
JM
7 * c-opts.c (c_common_post_options): Default to C++14.
8
a03c9bf1
JM
9 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
10
fe95b036
ESR
112015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
12
13 Implement N4197 - Adding u8 character literals
a64be36b
EB
14 * c-family/c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
15 CPP_CHAR.
16 * c-family/c-common.c (c_parse_error): Print CPP_UTF8CHAR and
17 CPP_UTF8CHAR_USERDEF tokens.
18 * c-family/c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
19 and CPP_UTF8CHAR tokens.
20 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 21
da2e71c9
MLI
222015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
23
24 PR fortran/66605
25 * c-common.c (do_warn_unused_parameter): Move here.
26 * c-common.h (do_warn_unused_parameter): Declare.
27
b155cfd9
MP
282015-06-29 Marek Polacek <polacek@redhat.com>
29
30 PR c/66322
31 * c-common.c (check_case_bounds): Add bool * parameter. Set
32 OUTSIDE_RANGE_P.
33 (c_add_case_label): Add bool * parameter. Pass it down to
34 check_case_bounds.
35 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
36 warning here.
37 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
38 declarations.
39
31521951
MP
402015-06-27 Marek Polacek <polacek@redhat.com>
41
42 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
43 or VECTOR_INTEGER_TYPE_P throughout.
44 * c-gimplify.c: Likewise.
45
22d03525
MP
462015-06-26 Marek Polacek <polacek@redhat.com>
47
48 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
49 * c-common.c (c_fully_fold_internal): Likewise.
50 (c_alignof_expr): Likewise.
51 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
52 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
53 * cilk.c (create_parm_list): Likewise.
54
af05e6e5
MP
552015-06-26 Marek Polacek <polacek@redhat.com>
56
57 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
58
f0889939
AM
592015-06-25 Andrew MacLeod <amacleod@redhat.com>
60
61 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
62 * c-gimplify.c: Likewise.
63 * c-pragma.c: Likewise.
64 * c-ubsan.c: Likewise.
65 * cilk.c: Likewise.
66
ca752f39
RS
672015-06-25 Richard Sandiford <richard.sandiford@arm.com>
68
69 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
70 ggc_hasher.
71
16a16ec7
AM
722015-06-25 Andrew MacLeod <amacleod@redhat.com>
73
74 * cilk.c: Move calls.h after tm.h in the include chain.
75
0ae9bd27
MP
762015-06-25 Marek Polacek <polacek@redhat.com>
77
78 * array-notation-common.c: Use VAR_P throughout.
79 * c-ada-spec.c: Likewise.
80 * c-common.c: Likewise.
81 * c-format.c: Likewise.
82 * c-gimplify.c: Likewise.
83 * c-omp.c: Likewise.
84 * c-pragma.c: Likewise.
85 * c-pretty-print.c: Likewise.
86 * cilk.c: Likewise.
87
62f9079a
MP
882015-06-25 Marek Polacek <polacek@redhat.com>
89
90 * cilk.c (extract_free_variables): Use is_global_var.
91
0fa16060
RS
922015-06-23 Richard Sandiford <richard.sandiford@arm.com>
93
94 * c-common.c: Don't include target-def.h.
95
a68ae2e1
MP
962015-06-23 Marek Polacek <polacek@redhat.com>
97
98 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
99 when comparing INTEGER_CSTs.
100
c6a2f2d9
PMR
1012015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
102
103 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
104 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
105 (dump_ada_template): Skip partially specialized types.
106
6b4db501
MM
1072015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
108
109 * c-common.c (scalar_to_vector): Use std::swap instead of manually
110 swapping.
111
abb226c9
AM
1122015-06-17 Andrew MacLeod <amacleod@redhat.com>
113
114 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
115 * c-ada-spec.c: Likewise.
116 * c-cilkplus.c: Likewise.
117 * c-common.c: Likewise.
118 * c-common.h: Likewise.
119 * c-cppbuiltin.c: Likewise.
120 * c-dump.c: Likewise.
121 * c-format.c: Likewise.
122 * c-gimplify.c: Likewise.
123 * c-indentation.c: Likewise.
124 * c-lex.c: Likewise.
125 * c-omp.c: Likewise.
126 * c-opts.c: Likewise.
127 * c-pch.c: Likewise.
128 * c-ppoutput.c: Likewise.
129 * c-pragma.c: Likewise.
130 * c-pretty-print.c: Likewise.
131 * c-semantics.c: Likewise.
132 * c-ubsan.c: Likewise.
133 * cilk.c: Likewise.
134 * stub-objc.c: Likewise.
135
076fecad
PP
1362015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
137
138 PR c++/65168
139 * c-common.c (c_common_truthvalue_conversion): Warn when
140 converting an address of a reference to a truth value.
141
13fdf2e2
AM
1422015-06-08 Andrew MacLeod <amacleod@redhat.com>
143
144 * array-notation-common.c : Adjust include files.
145 * c-ada-spec.c : Likewise.
146 * c-cilkplus.c : Likewise.
147 * c-common.c : Likewise.
148 * c-common.h : Likewise.
149 * c-cppbuiltin.c : Likewise.
150 * c-dump.c : Likewise.
151 * c-format.c : Likewise.
152 * c-gimplify.c : Likewise.
153 * c-indentation.c : Likewise.
154 * c-lex.c : Likewise.
155 * c-omp.c : Likewise.
156 * c-opts.c : Likewise.
157 * c-pch.c : Likewise.
158 * c-ppoutput.c : Likewise.
159 * c-pragma.c : Likewise.
160 * c-pretty-print.c : Likewise.
161 * c-semantics.c : Likewise.
162 * c-ubsan.c : Likewise.
163 * cilk.c : Likewise.
164 * stub-objc.c : Likewise.
165
a1661b90
MP
1662015-06-08 Marek Polacek <polacek@redhat.com>
167
168 PR c/66415
169 * c-format.c (location_from_offset): Return LOC if LINE is null.
170
d7438551
AH
1712015-06-05 Aldy Hernandez <aldyh@redhat.com>
172
173 * c-common.h (c_parse_final_cleanups): New prototype.
174 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
175
ecb9f223
AM
1762015-06-04 Andrew MacLeod <amacleod@redhat.com>
177
178 * array-notation-common.c: Adjust includes for restructured coretypes.h.
179 * c-ada-spec.c: Likewise.
180 * c-cilkplus.c: Likewise.
181 * c-common.c: Likewise.
182 * c-common.h: Likewise.
183 * c-cppbuiltin.c: Likewise.
184 * c-dump.c: Likewise.
185 * c-format.c: Likewise.
186 * c-gimplify.c: Likewise.
187 * c-indentation.c: Likewise.
188 * c-lex.c: Likewise.
189 * c-omp.c: Likewise.
190 * c-opts.c: Likewise.
191 * c-pch.c: Likewise.
192 * c-ppoutput.c: Likewise.
193 * c-pragma.c: Likewise.
194 * c-pretty-print.c: Likewise.
195 * c-semantics.c: Likewise.
196 * c-ubsan.c: Likewise.
197 * cilk.c: Likewise.
198 * stub-objc.c: Likewise.
199
6ac48155
DM
2002015-06-02 David Malcolm <dmalcolm@redhat.com>
201
202 PR c/66220:
203 * c-indentation.c (should_warn_for_misleading_indentation): Use
204 expand_location rather than expand_location_to_spelling_point.
205 Don't warn if the guarding statement is more indented than the
206 next/body stmts.
207
773ce42e
DM
2082015-06-02 David Malcolm <dmalcolm@redhat.com>
209
210 * c-indentation.c (warn_for_misleading_indentation): Bail out
211 immediately if -Wmisleading-indentation isn't enabled.
212
4fef8379
ML
2132015-06-01 Martin Liska <mliska@suse.cz>
214
215 * c-format.c (check_format_arg):Use new type-based pool allocator.
216 (check_format_info_main) Likewise.
217
1edfb384
EB
2182015-05-31 Eric Botcazou <ebotcazou@adacore.com>
219
220 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
221 (has_nontrivial_methods): Likewise.
222
9677ef52
MP
2232015-05-25 Marek Polacek <polacek@redhat.com>
224
225 * c-ubsan.c (ubsan_instrument_shift): Use type0.
226
fd5c817a
MP
2272015-05-22 Marek Polacek <polacek@redhat.com>
228
229 PR c/47043
230 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
231
a2f45fe6 2322015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
233
234 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
235 STACK_GROWS_DOWNWARD.
236
a2f45fe6 2372015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
238
239 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
240 STACK_GROWS_DOWNWARD rather than if it is defined.
241
0fee2ac2
MLI
2422015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
243
244 PR c/52952
245 * c-format.c (location_column_from_byte_offset): New.
246 (location_from_offset): New.
247 (struct format_wanted_type): Add offset_loc field.
248 (check_format_info): Move handling of location for extra arguments
249 closer to the point of warning.
250 (check_format_info_main): Pass the result of location_from_offset
251 to warning_at.
252 (format_type_warning): Pass the result of location_from_offset
253 to warning_at.
254
cf4ef6f7
MP
2552015-05-20 Marek Polacek <polacek@redhat.com>
256
257 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
258
3a65ee74
MP
2592015-05-20 Marek Polacek <polacek@redhat.com>
260
261 * c-ada-spec.c (dump_sloc): Use DECL_P.
262
21b634ae
MP
2632015-05-20 Marek Polacek <polacek@redhat.com>
264
265 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
266 * c-common.c: Likewise.
267
0e50b624
DM
2682015-05-19 David Malcolm <dmalcolm@redhat.com>
269
270 * c-common.h (fe_file_change): Strengthen param from
271 const line_map * to const line_map_ordinary *.
272 (pp_file_change): Likewise.
273 * c-lex.c (fe_file_change): Likewise.
274 (cb_define): Use linemap_check_ordinary when invoking
275 SOURCE_LINE.
276 (cb_undef): Likewise.
277 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
278 invoking cb_file_change.
279 (c_finish_options): Likewise.
280 (push_command_line_include): Likewise.
281 (cb_file_change): Strengthen param "new_map" from
282 const line_map * to const line_map_ordinary *.
283 * c-ppoutput.c (cb_define): Likewise for local "map".
284 (pp_file_change): Likewise for param "map" and local "from".
285
fab27f52
MM
2862015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
287
288 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
289
2fe1d762
TV
2902015-05-18 Tom de Vries <tom@codesourcery.com>
291
292 * c-common.c (build_va_arg_1): New function.
293 (build_va_arg): Add address operator to va_list operand if necessary.
294
7a37fa90
MM
2952015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
296
297 PR c/48956
298 * c-common.c (int_safely_convertible_to_real_p): Define.
299 (unsafe_conversion_p): Check conversions involving complex types.
300 (conversion_warning): Add new warning message for conversions which
301 discard imaginary component.
302 * c-common.h: (enum conversion_safety): Add new enumerator for such
303 conversions.
304
3aa3c9fc
MP
3052015-05-14 Marek Polacek <polacek@redhat.com>
306
307 PR c/66066
308 PR c/66127
309 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
310 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
311 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
312 use it. If FOR_INT_CONST, require that all evaluated operands be
313 INTEGER_CSTs.
314
c3388e62
DM
3152015-05-12 David Malcolm <dmalcolm@redhat.com>
316
317 * c-common.h (warn_for_misleading_indentation): New prototype.
318 * c-indentation.c: New file.
319 * c.opt (Wmisleading-indentation): New option.
320
c7b38fd5
TV
3212015-05-12 Tom de Vries <tom@codesourcery.com>
322
323 PR tree-optimization/66010
324 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
325
381bf11e
JM
3262015-05-09 Jason Merrill <jason@redhat.com>
327
edff0c06
JM
328 * c-opts.c (c_common_post_options): Also clear
329 cpp_opts->cpp_warn_cxx11_compat.
330
129211bc
JM
331 * c-common.h (enum cxx_dialect): Add cxx_unset.
332 * c-common.c (cxx_dialect): Initialize to cxx_unset.
333 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
334
381bf11e
JM
335 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
336 (std=gnu++0x): Mark as Undocumented.
337 (std=gnu++1y): Add deprecated message.
338
fe191308
JM
3392015-05-08 Jason Merrill <jason@redhat.com>
340
765189ff
JM
341 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
342 * c-opts.c: Adjust.
343
fe191308
JM
344 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
345
755e528f
MP
3462015-05-08 Marek Polacek <polacek@redhat.com>
347
348 PR c/64918
349 * c.opt (Woverride-init-side-effects): New option.
350
0173bd2a
MP
3512015-05-07 Marek Polacek <polacek@redhat.com>
352
353 PR c/65179
354 * c-common.c (c_fully_fold_internal): Warn when left shifting a
355 negative value.
356 * c.opt (Wshift-negative-value): New option.
357 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
358 when -Wextra and C99/C++11 mode.
359
e0f0d3b9
MP
3602015-05-07 Marek Polacek <polacek@redhat.com>
361 Martin Uecker <uecker@eecs.berkeley.edu>
362
363 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
364 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
365
8243e2a9
JM
3662015-05-05 Jason Merrill <jason@redhat.com>
367
368 * c.opt (Wterminate): New.
369
577cd070
MP
3702015-04-30 Marek Polacek <polacek@redhat.com>
371
372 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
373 require that the non-constant be of a boolean type.
374
0373796b
JT
3752015-04-29 Josh Triplett <josh@joshtriplett.org>
376
e0f0d3b9
MP
377 * c-common.c (handle_section_attribute): Refactor to reduce
378 nesting and distinguish between error cases.
0373796b 379
716c0ba6
MP
3802015-04-29 Marek Polacek <polacek@redhat.com>
381
382 PR c/64610
383 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
384 with 0/1.
385
8848828b
JJ
3862015-04-29 Jakub Jelinek <jakub@redhat.com>
387
388 * c-common.h (omp_clause_mask): Unconditionally define as a class.
389 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
390 HOST_BITS_PER_WIDE_INT.
391
ecd0e562
TV
3922015-04-28 Tom de Vries <tom@codesourcery.com>
393
394 PR tree-optimization/65887
395 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
396
2a877204 3972015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 398 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
399
400 * c-ada-spec.c (in_function): Delete.
401 (dump_generic_ada_node): Do not change in_function and remove the
402 redundant code dealing with it.
403 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
404 (print_ada_methods): Output the static member functions in a nested
405 package after the regular methods as well as associated renamings.
406
4853031e
MP
4072015-04-24 Marek Polacek <polacek@redhat.com>
408
409 PR c/65830
410 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
411 and OPT_Wshift_count_overflow.
412
8c2b7f79
MP
413 PR c/63357
414 * c-common.c (warn_logical_operator): Warn if the operands have the
415 same expressions.
416
b8787813
MP
4172015-04-24 Marek Polacek <polacek@redhat.com>
418
419 PR c/61534
420 * c-common.c (warn_logical_operator): Bail if either operand comes
421 from a macro expansion.
422
8fba1830
BRF
4232015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
424
425 PR target/55143
426 * c-common.c (c_default_pointer_mode): Add definition.
427 * c-common.h (c_default_pointer_mode): Add declaration.
428
17958621
JJ
4292015-03-11 Jakub Jelinek <jakub@redhat.com>
430
431 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
432 on record_builtin_type argument.
433
7ccb1a11
JJ
4342015-03-10 Jakub Jelinek <jakub@redhat.com>
435
436 PR c/65120
437 * c-common.c (warn_logical_not_parentheses): Don't warn for
438 !x == 0 or !x != 0.
439
04fd785e
MP
4402015-03-07 Marek Polacek <polacek@redhat.com>
441
442 PR sanitizer/65280
443 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
444 before trying to figure out whether we have a flexible array member.
445
a4e26206
EB
4462015-03-06 Eric Botcazou <ebotcazou@adacore.com>
447 Jonathan Wakely <jwakely.gcc@gmail.com>
448
449 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
450
0d2489f4
EB
4512015-03-05 Eric Botcazou <ebotcazou@adacore.com>
452
453 PR ada/65319
454 * c-ada-spec.c (print_destructor): Remove obsolete code.
455
83ed54d7
EB
4562015-03-01 Eric Botcazou <ebotcazou@adacore.com>
457
458 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
459 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
460 DECL_TEMPLATE_RESULT emulations.
461 (dump_ada_template)): Add guard for TYPE_METHODS.
462
7631f0e2
MP
4632015-02-27 Marek Polacek <polacek@redhat.com>
464
465 PR c/65040
466 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
467
d1783ae5
KT
4682015-02-27 Kai Tietz <ktietz@redhat.com>
469
470 PR c/35330
471 * c-pragma.c (handle_pragma_weak): Do not try to create
472 weak/alias of declarations not being function, or variable
473 declarations.
474
56a9f6bc
TS
4752015-02-24 Thomas Schwinge <thomas@codesourcery.com>
476
477 PR libgomp/64625
478 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
479 Remove macros.
480 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
481
3d5cb23d
MP
4822015-02-16 Marek Polacek <polacek@redhat.com>
483
484 PR c/65066
485 * c-format.c (check_format_types): Handle null param.
486
fa008882
MP
4872015-02-13 Marek Polacek <polacek@redhat.com>
488
489 PR c/65040
490 * c-format.c (check_format_types): Don't warn about different
491 signedness if the original value is in the range of WANTED_TYPE.
492
785f21af
JM
4932015-02-12 Jason Merrill <jason@redhat.com>
494
495 PR c++/64956
496 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
497 to the current highest version.
498 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
499
4886ec8e
JJ
5002015-02-04 Jakub Jelinek <jakub@redhat.com>
501
502 PR c/64824
503 PR c/64868
504 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
505 instead of RDIV_EXPR. Use build_binary_op instead of
506 build2_loc.
507
40fecdd6
JM
5082015-01-30 Joseph Myers <joseph@codesourcery.com>
509
510 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
511 to pass input_location as first argument.
512
a0c88d06
TV
5132015-01-23 Tom de Vries <tom@codesourcery.com>
514
515 PR libgomp/64672
516 * c.opt (fopenacc): Mark as LTO option.
517
1506ae0e
TV
5182015-01-23 Tom de Vries <tom@codesourcery.com>
519
520 PR libgomp/64707
521 * c.opt (fopenmp): Mark as LTO option.
522
31be63ab
JJ
5232015-01-21 Jakub Jelinek <jakub@redhat.com>
524
525 PR c/63307
526 * cilk.c (fill_decls_vec): Only put decls into vector v.
527 (compare_decls): Fix up formatting.
528
5292015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
530
531 PR c/63307
532 * cilk.c: Include vec.h.
533 (struct cilk_decls): New structure.
534 (wrapper_parm_cb): Split this function to...
535 (fill_decls_vec): ...this...
536 (create_parm_list): ...and this.
537 (compare_decls): New function.
538 (for_local_cb): Remove.
539 (wrapper_local_cb): Ditto.
540 (build_wrapper_type): For now first traverse and fill vector of
541 declarations then sort it and then deal with sorted vector.
542 (cilk_outline): Ditto.
543 (declare_one_free_variable): Ditto.
544
6875457f
JM
5452015-01-21 Jason Merrill <jason@redhat.com>
546
547 PR c++/64629
548 * c-format.c (check_format_arg): Call decl_constant_value.
549
185c9e56
ML
5502015-01-19 Martin Liska <mliska@suse.cz>
551
552 * c-common.c (handle_noicf_attribute): New function.
553
41dbbb37
TS
5542015-01-15 Thomas Schwinge <thomas@codesourcery.com>
555 Bernd Schmidt <bernds@codesourcery.com>
556 James Norris <jnorris@codesourcery.com>
557 Cesar Philippidis <cesar@codesourcery.com>
558 Ilmir Usmanov <i.usmanov@samsung.com>
559 Jakub Jelinek <jakub@redhat.com>
560
561 * c.opt (fopenacc): New option.
562 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
563 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
564 New macros.
565 * c-common.h (c_finish_oacc_wait): New prototype.
566 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
567 (c_finish_oacc_wait): New function.
568 * c-pragma.c (oacc_pragmas): New variable.
569 (c_pp_lookup_pragma, init_pragma): Handle it.
570 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
571 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
572 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
573 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
574 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
575 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
576 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
577 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
578 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
579 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
580 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
581 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
582 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
583 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
584 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
585 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
586 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
587 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
588 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
589 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
590 PRAGMA_OACC_CLAUSE_WORKER.
591
5434dc07
MD
5922015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
593
594 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
595 for the new option fstack-protector_explicit.
596 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
597 (handle_stack_protect_attribute): New function.
598
de1b5c17
MU
5992015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
600
601 * c.opt: New option -Warray-bounds=.
602
adfac8df
JJ
6032015-01-09 Michael Collison <michael.collison@linaro.org>
604
605 * array-notation-common.c: Include hash-set.h, machmode.h,
606 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
607 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
608 * c-ada-spec.c: Ditto.
609 * c-cilkplus.c: Ditto.
610 * c-common.c: Include input.h due to flattening of tree.h.
611 Define macro GCC_C_COMMON_C.
612 * c-common.h: Flatten tree.h header files into c-common.h.
613 Remove include of tree-core.h.
614 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
615 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
616 fold-const.h, wide-int.h, and inchash.h due to
617 flattening of tree.h.
618 * c-dump.c: Ditto.
619 * c-format.c: Flatten tree.h header files into c-common.h.
620 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
621 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
622 fold-const.h, wide-int.h, and inchash.h due to
623 flattening of tree.h.
624 * c-dump.c: Include hash-set.h, machmode.h,
625 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
626 fold-const.h, wide-int.h, and inchash.h due to
627 flattening of tree.h.
628 * c-format.c: Include hash-set.h, machmode.h,
629 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
630 fold-const.h, wide-int.h, inchash.h and real.h due to
631 flattening of tree.h.
632 * c-gimplify.c: Include hash-set.h, machmode.h,
633 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
634 fold-const.h, wide-int.h, and inchash.h due to
635 flattening of tree.h.
636 * cilk.c: Ditto.
637 * c-lex.c: Ditto.
638 * c-omp.c: Ditto.
639 * c-opts.c: Ditto.
640 * c-pch.c: Ditto.
641 * c-ppoutput.c: Ditto.
642 * c-pragma.c: Ditto.
643 * c-pretty-print.c: Ditto.
644 * c-semantics.c: Ditto.
645 * c-ubsan.c: Ditto.
646 * stub-objc.c: Ditto.
647
f5481fc4
JM
6482015-01-08 Jason Merrill <jason@redhat.com>
649
650 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
651 do_ubsan_in_current_function.
652 (ubsan_maybe_instrument_reference_or_call): Likewise.
653 * c-ubsan.h: Declare it.
654
de35aa66
MS
6552015-01-08 Mike Stump <mikestump@comcast.net>
656
657 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
658
4a9a42ab
MP
6592015-01-07 Marek Polacek <polacek@redhat.com>
660
661 PR c/64440
662 * c-common.c (c_fully_fold_internal): Warn for division and modulo
663 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
664
2f42e5de
TS
6652015-01-05 Trevor Saunders <tsaunders@mozilla.com>
666
667 PR c++/31397
668 * c.opt (Wsuggest-override): New option.
669
5624e564
JJ
6702015-01-05 Jakub Jelinek <jakub@redhat.com>
671
672 Update copyright years.
673
5bd012f8
MP
6742015-01-05 Marek Polacek <polacek@redhat.com>
675
676 PR c/64423
677 * c-common.c (warn_array_subscript_with_type_char): Add location_t
678 parameter. Use it.
679 * c-common.h (warn_array_subscript_with_type_char): Update
680 declaration.
681
a7fa8d18
ESR
6822014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
683
684 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
685 Control macro with flag_sized_deallocation.
686
768952be
MU
6872014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
688
689 * c.opt (Wdiscarded-array-qualifiers): New option.
690
1f8d3e84
JJ
6912014-12-19 Jakub Jelinek <jakub@redhat.com>
692
693 PR preprocessor/63831
694 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
695 and __has_cpp_attribute here.
696 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
697 c_common_has_attribute.
698 * c-common.h (c_common_has_attribute): New prototype.
699 * c-lex.c (init_c_lex): Set cb->has_attribute to
700 c_common_has_attribute instead of cb_has_attribute.
701 (get_token_no_padding): New function.
702 (cb_has_attribute): Renamed to ...
703 (c_common_has_attribute): ... this. No longer static. Use
704 get_token_no_padding, require ()s, don't build TREE_LIST
705 unnecessarily, fix up formatting, adjust diagnostics, call
706 init_attributes.
707
20b06add
JM
7082014-12-15 Jason Merrill <jason@redhat.com>
709
710 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
711 (-Wsized-deallocation): New.
712 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
713 to on in C++14 and up.
714
94a073b2
JM
7152014-12-11 Jason Merrill <jason@redhat.com>
716
acaa5911
JM
717 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
718
94a073b2
JM
719 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
720 we aren't complaining about VLAs.
721
7fb66c15
MP
7222014-12-06 Marek Polacek <polacek@redhat.com>
723
724 PR tree-optimization/64183
725 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
726 shift-expression if it is integer_type_node. Use types_compatible_p.
727
b731b390
JJ
7282014-11-29 Jakub Jelinek <jakub@redhat.com>
729
730 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
731 last argument from create_tmp_var_raw and create_tmp_var calls.
732 * cilk.c (gimplify_cilk_spawn): Likewise.
733 * c-omp.c (c_finish_omp_atomic): Likewise.
734
6a4da643
MP
7352014-11-28 Marek Polacek <polacek@redhat.com>
736
737 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
738 instead of unsigned_type_node.
739
541e35a6
MP
7402014-11-28 Marek Polacek <polacek@redhat.com>
741
742 PR c/63862
743 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
744 to op1_utype.
745 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
746 expression to unsigned_type_node.
747
dcc97066
MW
7482014-11-20 Mark Wielaard <mjw@redhat.com>
749
750 PR debug/38757
751 * c-opts.c (set_std_c89): Set lang_hooks.name.
752 (set_std_c99): Likewise.
753 (set_std_c11): Likewise.
754 (set_std_cxx98): Likewise.
755 (set_std_cxx11): Likewise.
756 (set_std_cxx14): Likewise.
757 (set_std_cxx1z): Likewise.
758
aa7da51a
JJ
7592014-11-21 Jakub Jelinek <jakub@redhat.com>
760
761 PR target/63764
762 * c-common.h (convert_vector_to_pointer_for_subscript): Change
763 return type to bool.
009a3480 764 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
765 (convert_vector_to_pointer_for_subscript): Change return type to
766 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
767 and copy it into a TARGET_EXPR and use that instead of *vecp
768 directly.
769
538dd0b7
DM
7702014-11-19 David Malcolm <dmalcolm@redhat.com>
771
772 Merger of git branch "gimple-classes-v2-option-3".
773 * ChangeLog.gimple-classes: New.
774 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
775 from being just a vec<gimple> to a vec<gbind *>.
776
c39a5e99
JJ
7772014-11-18 Jakub Jelinek <jakub@redhat.com>
778
779 PR sanitizer/63813
780 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
781 argument to ptype, set type to TREE_TYPE (ptype). Don't call
782 get_pointer_alignment for non-pointers. Use ptype, or if it is
783 reference type, corresponding pointer type, as type of kind
784 argument.
785 (ubsan_maybe_instrument_reference,
786 ubsan_maybe_instrument_member_call): Adjust callers.
787
8537a4a9
MP
7882014-11-15 Marek Polacek <polacek@redhat.com>
789
790 PR middle-end/63884
791 * array-notation-common.c (is_sec_implicit_index_fn): Return false
792 for NULL fndecl.
793 (extract_array_notation_exprs): Return for NULL node.
794
2079956a
JM
7952014-11-12 Joseph Myers <joseph@codesourcery.com>
796
797 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
798 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
799
1304953e
JJ
8002014-11-12 Jakub Jelinek <jakub@redhat.com>
801
802 PR c/59708
803 * c-common.c (check_builtin_function_arguments): Handle
804 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
805
e5e44252
AK
8062014-11-10 Andi Kleen <ak@linux.intel.com>
807
808 PR c/60804
809 * c-common.h (check_no_cilk): Declare.
810 * cilk.c (get_error_location): New function.
811 (check_no_cilk): Dito.
812
e64b984d
AK
8132014-11-10 Andi Kleen <ak@linux.intel.com>
814
815 * cilk.c (recognize_spawn): Use expression location
816 for error message.
817
13c21655
PC
8182014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
819
820 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
821
42fd12b1
ESR
8222014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
823
824 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
825 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
826 (__cpp_range_based_for, __cpp_initializer_lists,
827 __cpp_delegating_constructors, __cpp_nsdmi,
828 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
829 for C++11; (__cpp_attribute_deprecated): Remove in favor of
830 __has_cpp_attribute.
831 * c-lex.c (cb_has_attribute): New callback CPP function;
832 (init_c_lex): Set has_attribute callback.
833
6f450181
RB
8342014-11-04 Richard Biener <rguenther@suse.de>
835
836 * c-common.c (shorten_compare): Do not shorten mixed
837 DFP and non-DFP compares.
838
26f0e1d6
ESR
8392014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
840
841 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
842 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
843 Commentary and rearrangement of tests.
844 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
845 Commentary and rearrangement of tests.
846 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
847 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
848
ef4bddc2
RS
8492014-10-29 Richard Sandiford <richard.sandiford@arm.com>
850
851 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
852 enum from machine_mode.
853
c582198b
AM
8542014-10-28 Andrew MacLeod <amacleod@redhat.com>
855
adfac8df
JJ
856 * c-common.c: Adjust include files.
857 * c-gimplify.c: Ditto.
858 * cilk.c: Ditto.
859 * c-pragma.c: Ditto.
860 * c-ubsan.c: Ditto.
c582198b 861
60393bbc
AM
8622014-10-27 Andrew MacLeod <amacleod@redhat.com>
863
864 * c-gimplify.c: Adjust include files.
865
d723bb7c
MLI
8662014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
867
868 PR c++/53061
869 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
870 c_common_initialize_diagnostics.
871 * c-common.h: Likewise.
872
90f3520e
MP
8732014-10-24 Marek Polacek <polacek@redhat.com>
874
875 PR c/56980
876 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
877 print "struct"/"union"/"enum" for typedefed names.
878
59d7607a
MP
8792014-10-23 Marek Polacek <polacek@redhat.com>
880
881 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
882 in unsigned type.
883
d95a2703
JJ
8842014-10-22 Jakub Jelinek <jakub@redhat.com>
885 Yury Gribov <y.gribov@samsung.com>
886
887 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
888 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
889 instead of flag_sanitize_recover as bool flag.
890
8e6ef852
KY
8912014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
892
893 * cilk.c: Revert previous change.
894
948cf550
IZ
8952014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
896
897 PR c/63307
898 * cilk.c: Include vec.h.
899 (struct cilk_decls): New structure.
900 (wrapper_parm_cb): Split this function to...
901 (fill_decls_vec): ...this...
902 (create_parm_list): ...and this.
903 (compare_decls): New function.
904 (for_local_cb): Remove.
905 (wrapper_local_cb): Ditto.
906 (build_wrapper_type): For now first traverse and fill vector of
907 declarations then sort it and then deal with sorted vector.
908 (cilk_outline): Ditto.
909 (declare_one_free_variable): Ditto.
910
92574c7c
MP
9112014-10-17 Marek Polacek <polacek@redhat.com>
912
913 * c-opts.c (c_common_post_options): Set warn_implicit_int.
914 * c.opt (Wimplicit-int): Initialize to -1.
915
83685514
AM
9162014-10-16 Andrew MacLeod <amacleod@redhat.com>
917
918 * c-pragma.c: Adjust include files.
919 * c-semantics.c: Likewise.
920
5b8300ea
DD
9212014-10-16 DJ Delorie <dj@redhat.com>
922
923 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
924 multiples of bytes.
925
5f83e90b
JM
9262014-10-14 Jason Merrill <jason@redhat.com>
927
928 PR c++/63455
929 * c-common.h (CPP_PREPARSED_EXPR): New.
930 (N_CP_TTYPES): Adjust.
931
d73326ca
MP
9322014-10-15 Marek Polacek <polacek@redhat.com>
933
934 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
935
78a7c317
DD
9362014-10-14 DJ Delorie <dj@redhat.com>
937
938 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
939 types, not just __int128.
940 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
941 types, not just __int128.
942 (cpp_atomic_builtins): Round pointer sizes up.
943 (type_suffix): Use type precision, not specific types.
944 * c-common.c (c_common_reswords): Remove __int128 special case.
945 (c_common_type_for_size): Check for all __intN types, not just
946 __int128.
947 (c_common_type_for_mode): Likewise.
948 (c_common_signed_or_unsigned_type): Likewise.
949 (c_build_bitfield_integer_type): Likewise.
950 (c_common_nodes_and_builtins): Likewise.
951 (keyword_begins_type_specifier): Likewise.
952 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
953 __intN variants.
954
2a22f99c
TS
9552014-10-12 Trevor Saunders <tsaunders@mozilla.com>
956
957 * c-common.c: Use hash_table instead of hashtab.
958
2a8ef767
ESR
9592014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
960
adfac8df 961 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
962 C++11 section.
963
3c9aabbd
MG
9642014-10-03 Marc Glisse <marc.glisse@inria.fr>
965
966 PR c++/54427
967 PR c++/57198
968 PR c++/58845
969 * c-common.c (warn_logical_operator): Punt for vectors.
970
a15f7cb8
ESR
9712014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
972
973 Implement SD-6: SG10 Feature Test Recommendations
974 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
975 macros and the __has_header macro.
976
8d0cf15e
JM
9772014-09-30 Jason Merrill <jason@redhat.com>
978
dd5d5481
JM
979 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
980 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
981 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
982
b752325e
JM
983 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
984 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
985
8d0cf15e
JM
986 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
987 * c-common.c (c_common_reswords): Remove __is_convertible_to.
988
083e891e
MP
9892014-09-24 Marek Polacek <polacek@redhat.com>
990
991 PR c/61405
992 PR c/53874
993 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
994
7861b648
AK
9952014-09-23 Andi Kleen <ak@linux.intel.com>
996
997 * c-common.c (handle_no_reorder_attribute): New function.
998 (c_common_attribute_table): Add no_reorder attribute.
999
9a79452d
JM
10002014-09-22 Joseph Myers <joseph@codesourcery.com>
1001
1002 * c-cppbuiltin.c (c_cpp_builtins): Define
1003 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
1004 modes.
1005
dd69f047
JM
10062014-09-18 Joseph Myers <joseph@codesourcery.com>
1007
1008 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
1009 for supported floating-point modes.
1010
737a4826
MLI
10112014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1012
1013 * c.opt (Wpsabi): Use LangEnabledBy.
1014 * c-opts.c (c_common_handle_option): Do not handle here.
1015
8cc4b7a2
JM
10162014-09-12 Joseph Myers <joseph@codesourcery.com>
1017
1018 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
1019 macros for floating-point modes.
1020
179b5a55
MG
10212014-09-11 Marc Glisse <marc.glisse@inria.fr>
1022
1023 PR target/58757
1024 * c-cppbuiltin.c (builtin_define_float_constants): Correct
1025 __*_DENORM_MIN__ without denormals.
1026
570a11fe
JJ
10272014-09-10 Jakub Jelinek <jakub@redhat.com>
1028
1029 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1030 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1031 ubsan_create_data callers.
1032 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
1033 index is constant or BIT_AND_EXPR with constant mask and is
1034 small enough for the bound.
1035 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
1036 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
1037
b559c810
MLI
10382014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1039
1040 * c.opt: Add CppReason to various flags.
1041 (Wdate-time): Re-sort.
1042 * c-common.c: Include c-common.h earlier.
1043 (struct reason_option_codes_t): Delete.
1044 (c_option_controlling_cpp_error): Prefix global type and struct
1045 with cpp_.
1046
1ef33fd4
MLI
10472014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1048
1049 * c.opt (Wnormalized): New.
1050 (Wnormalized=): Use Enum and Reject Negative.
1051 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
1052
66bb34c0
JM
10532014-09-08 Joseph Myers <joseph@codesourcery.com>
1054
1055 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
1056 digits of floating-point modes if -fbuilding-libgcc.
1057
53d68b9f
JM
10582014-09-05 Joseph Myers <joseph@codesourcery.com>
1059
1060 * c-cppbuiltin.c (c_cpp_builtins): Also define
1061 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
1062 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
1063 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
1064 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
1065 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
1066 __LIBGCC_STACK_GROWS_DOWNWARD__,
1067 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
1068 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
1069 __LIBGCC_DWARF_FRAME_REGISTERS__,
1070 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
1071 __LIBGCC_STACK_POINTER_REGNUM__ and
1072 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
1073 (builtin_define_with_value): Handle backslash-escaping in string
1074 macro values.
1075
f65586dc
RB
10762014-09-05 Richard Biener <rguenther@suse.de>
1077
1078 PR middle-end/63148
1079 * c-format.c (check_format_arg): Properly handle
1080 effectively signed POINTER_PLUS_EXPR offset.
1081
2b71f4a4
MLI
10822014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1083
1084 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
1085 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
1086 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
1087 and Init.
1088 * c-opts.c (c_common_handle_option): Do not handle here.
1089 (sanitize_cpp_opts): Likewise.
1090 * c-common.c (struct reason_option_codes_t): Handle
1091 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
1092
d2e4feca
MP
10932014-09-03 Marek Polacek <polacek@redhat.com>
1094
1095 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
1096
9a771876
JJ
10972014-09-02 Jakub Jelinek <jakub@redhat.com>
1098 Balaji V. Iyer <balaji.v.iyer@intel.com>
1099 Igor Zamyatin <igor.zamyatin@intel.com>
1100
1101 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
1102 * c-common.c (c_common_reswords): Added _Cilk_for.
1103 * c-common.h (enum rid): Added RID_CILK_FOR.
1104 (cilk_for_number_of_iterations): Add declaration.
1105 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
1106 CILK_FOR.
1107 * c-pragma.c (init_pragma): Register "grainsize" pragma.
1108 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
1109
81b5d104
MLI
11102014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1111
1112 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
1113 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
1114 Wundef): Use CPP, Var and Init.
1115 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
1116
b753b37b
MLI
11172014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1118
1119 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
1120 * c-opts.c (c_common_handle_option): Do not handle here.
1121
028aee17
JM
11222014-08-25 Jason Merrill <jason@redhat.com>
1123
1124 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
1125 -std=c++14 and -std=gnu++14, rather than the reverse.
1126 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
1127 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
1128 * c-common.h (cxx_dialect): Remove cxx1y.
1129
e4276ba5
ESR
11302014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
1131
1132 * c-common.h (enum cxx_dialect): Add cxx14.
1133 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
1134 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
1135 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
1136
a545cacd
JM
11372014-08-22 Jason Merrill <jason@redhat.com>
1138
1139 * c.opt (std=gnu++17): Fix alias.
1140
59ea0364
MP
11412014-08-22 Marek Polacek <polacek@redhat.com>
1142
1143 PR c++/62199
1144 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
1145 check for vector types. Drop LHS argument.
1146 * c-common.h (warn_logical_not_parentheses): Adjust.
1147
596e808c
MLI
11482014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1149
1150 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
1151 (Wmultichar): Likewise.
1152 (Wdate-time): Use C-family languages instead of Common. Use CPP
1153 and Var.
1154 * c-opts.c (c_common_handle_option): Do not handle the above
1155 options here.
1156 (sanitize_cpp_opts): Likewise.
1157
18767f65
MLI
11582014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1159
1160 PR fortran/44054
1161 * c-opts.c: Include tree-diagnostics.h.
1162 (c_diagnostic_finalizer): New.
1163 (c_common_initialize_diagnostics): Use it.
1164
b4413594
MLI
11652014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1166
1167 PR preprocessor/51303
1168 * c-common.c (struct reason_option_codes_t option_codes):
1169 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
1170
43f9a13c
MLI
11712014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1172
1173 PR c/60975
1174 PR c/53063
1175 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
1176 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
1177 (c_common_post_options): Call init_global_opts_from_cpp.
1178 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
1179
04159acf
MP
11802014-08-19 Marek Polacek <polacek@redhat.com>
1181
1182 PR c++/62153
1183 * c-common.c (maybe_warn_bool_compare): New function.
1184 * c-common.h (maybe_warn_bool_compare): Declare.
1185 * c.opt (Wbool-compare): New option.
1186
35aff4fb
MP
11872014-08-19 Marek Polacek <polacek@redhat.com>
1188
1189 * c.opt (Wc99-c11-compat): New option.
1190
177cce46
MP
11912014-08-19 Marek Polacek <polacek@redhat.com>
1192
1193 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
1194 to warn_c90_c99_compat.
1195 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
1196 to -1.
1197
6ae9194f
MLI
11982014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1199 Steven Bosscher <steven@gcc.gnu.org>
1200
1201 PR c/52952
1202 * c-format.c: Add extra_arg_loc and format_string_loc to struct
1203 format_check_results.
1204 (check_function_format): Use true and add comment for boolean
1205 argument.
1206 (finish_dollar_format_checking): Use explicit location when warning.
1207 (check_format_info): Likewise.
1208 (check_format_arg): Set extra_arg_loc and format_string_loc.
1209 (check_format_info_main): Use explicit location when warning.
1210 (check_format_types): Pass explicit location.
1211 (format_type_warning): Likewise.
1212
8e54f6d3
MLI
12132014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1214
1215 PR fortran/44054
1216 * c-format.c: Handle Fortran flags.
1217
cd4e76fc
IZ
12182014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
1219
1220 PR other/61962
1221 * array-notation-common.c (find_rank): Added handling for other
1222 types of references.
1223
f3bede71
MP
12242014-08-10 Marek Polacek <polacek@redhat.com>
1225
1226 PR c/51849
1227 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
1228 * c.opt (Wc90-c99-compat): Add option.
1229
9f25a338
TS
12302014-08-07 Trevor Saunders <tsaunders@mozilla.com>
1231
1232 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1233
62e4eb35
MP
12342014-08-03 Marek Polacek <polacek@redhat.com>
1235
1236 * c-common.c (check_case_value): Add location_t parameter. Use it.
1237 (c_add_case_label): Pass loc to check_case_value.
1238
b787e7a2
TS
12392014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1240
1241 * cilk.c: Use hash_map instead of pointer_map.
1242
6e2830c3
TS
12432014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1244
1245 * c-gimplify.c: Use hash_set instead of pointer_set.
1246
a7ee52fb
IZ
12472014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
1248
1249 PR middle-end/61455
1250 * array-notation-common.c (extract_array_notation_exprs): Handling
1251 of DECL_EXPR added.
1252
944fa280
JJ
12532014-08-01 Jakub Jelinek <jakub@redhat.com>
1254
1255 * c-common.h (min_align_of_type): Removed prototype.
1256 * c-common.c (min_align_of_type): Removed.
1257 * c-ubsan.h (ubsan_maybe_instrument_reference,
1258 ubsan_maybe_instrument_member_call): New prototypes.
1259 * c-ubsan.c: Include stor-layout.h and builtins.h.
1260 (ubsan_maybe_instrument_reference_or_call,
1261 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1262 functions.
1263
b4dfdc11
MG
12642014-07-31 Marc Glisse <marc.glisse@inria.fr>
1265
1266 PR c++/60517
1267 * c.opt (-Wreturn-local-addr): Move to common.opt.
1268
a41844e5
JM
12692014-07-30 Jason Merrill <jason@redhat.com>
1270
1271 PR c++/61659
1272 PR c++/61687
1273 Revert:
1274 * c.opt (-fuse-all-virtuals): New.
1275
976d5a22
TT
12762014-07-30 Tom Tromey <tromey@redhat.com>
1277
1278 PR c/59855
1279 * c.opt (Wdesignated-init): New option.
1280 * c-common.c (c_common_attribute_table): Add "designated_init".
1281 (handle_designated_init): New function.
1282
cdc94aca
MP
12832014-07-24 Marek Polacek <polacek@redhat.com>
1284
1285 PR c/57653
1286 * c-opts.c (c_finish_options): If -imacros is in effect, return.
1287
f41373b6
DS
12882014-07-16 Dodji Seketeli <dodji@redhat.com>
1289
1290 PR preprocessor/60723 - missing system-ness marks for macro tokens
1291 * c-ppoutput.c (struct print::prev_was_system_token): New data
1292 member.
1293 (init_pp_output): Initialize it.
1294 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1295 (do_line_change): Return a flag saying if a line marker was
1296 emitted or not.
1297 (scan_translation_unit): Detect if the system-ness of the token we
1298 are about to emit is different from the one of the previously
1299 emitted token. If so, emit a line marker. Avoid emitting useless
1300 adjacent line markers. Avoid emitting line markers for tokens
1301 originating from the expansion of built-in macros.
1302 (scan_translation_unit_directives_only): Adjust.
1303
4d661eaa
MP
13042014-07-15 Marek Polacek <polacek@redhat.com>
1305
1306 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1307 TYPE_MAX_VALUE is NULL.
1308
b108f48f
JJ
13092014-07-14 Jakub Jelinek <jakub@redhat.com>
1310
1311 PR middle-end/61294
1312 * c.opt (Wmemset-transposed-args): New warning.
1313
c0221884
JM
13142014-07-10 Jason Merrill <jason@redhat.com>
1315
1316 PR c++/61659
1317 PR c++/61687
1318 * c.opt (-fuse-all-virtuals): New.
1319
63dfbb95
RB
13202014-07-09 Richard Biener <rguenther@suse.de>
1321
1322 PR c-family/61741
1323 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1324 using unsigned arithmetic if overflow does not wrap instead of
1325 if overflow is undefined.
1326
773ec47f
MP
13272014-07-06 Marek Polacek <polacek@redhat.com>
1328
1329 PR c/6940
1330 * c.opt (Wsizeof-array-argument): New option.
1331
00a7ba58
JJ
13322014-07-03 Jakub Jelinek <jakub@redhat.com>
1333
1334 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
1335 comments->count <= 1, as comments->entries might be NULL.
1336
52ec0ea3
MP
13372014-07-01 Marek Polacek <polacek@redhat.com>
1338
1339 * c.opt (Wint-conversion): New option.
1340
d5c3d343
MP
13412014-07-01 Marek Polacek <polacek@redhat.com>
1342
1343 PR c/58286
1344 * c.opt (Wincompatible-pointer-types): New option.
1345
6e7ceb17
PC
13462014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1347
1348 PR c++/51400
1349 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1350 Do not discard TYPE_QUALS of type.
1351
da73100b
JM
13522014-06-26 Jason Merrill <jason@redhat.com>
1353
1354 * c-common.h (enum cxx_dialect): Add cxx1z.
1355 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1356 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1357
08eedf75
TJ
13582014-06-26 Teresa Johnson <tejohnson@google.com>
1359
1360 * c-common.h (get_dump_info): Declare.
1361 * c-gimplify.c (c_genericize): Use saved dump files.
1362 * c-opts.c (c_common_parse_file): Begin and end dumps
1363 once around parsing invocation.
1364 (get_dump_info): New function.
1365
7b56b2f8
MP
13662014-06-23 Marek Polacek <polacek@redhat.com>
1367 Andrew MacLeod <amacleod@redhat.com>
1368
1369 PR c/61553
1370 * c-common.c (get_atomic_generic_size): Don't segfault if the
1371 type doesn't have a size.
1372
0e37a2f3
MP
13732014-06-20 Marek Polacek <polacek@redhat.com>
1374
1375 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1376 (ubsan_walk_array_refs_r): New function.
1377 (c_genericize): Instrument array bounds.
1378 * c-ubsan.c: Include "internal-fn.h".
1379 (ubsan_instrument_division): Mark instrumented arrays as having
1380 side effects. Adjust ubsan_type_descriptor call.
1381 (ubsan_instrument_shift): Likewise.
1382 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1383 (ubsan_instrument_bounds): New function.
1384 (ubsan_array_ref_instrumented_p): New function.
1385 (ubsan_maybe_instrument_array_ref): New function.
1386 * c-ubsan.h (ubsan_instrument_bounds): Declare.
1387 (ubsan_array_ref_instrumented_p): Declare.
1388 (ubsan_maybe_instrument_array_ref): Declare.
1389
13902014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
1391
1392 PR lto/61123
1393 * c.opt (fshort-enums): Add to LTO.
1394 * c.opt (fshort-wchar): Likewise.
1395
5c3d09f7
MP
13962014-06-16 Marek Polacek <polacek@redhat.com>
1397
1398 PR c/60439
1399 * c.opt (Wswitch-bool): Add Var.
1400
9cf32741
JJ
14012014-06-12 Jakub Jelinek <jakub@redhat.com>
1402
1403 PR middle-end/61486
1404 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1405 #pragma omp target teams or
1406 #pragma omp {,target }teams distribute simd.
1407
62984918
JM
14082014-06-12 Jason Merrill <jason@redhat.com>
1409
1410 * c.opt (Wabi=, fabi-compat-version): New.
1411 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1412 (c_common_post_options): Handle flag_abi_compat_version default.
1413 Disallow -fabi-compat-version=1.
1414 * c-common.h (abi_version_crosses): New.
1415
f961457f
JH
14162014-06-11 Jan Hubicka <hubicka@ucw.cz>
1417
adfac8df 1418 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
1419 section names that are no longer trees.
1420
92d28cbb
JJ
14212014-06-10 Jakub Jelinek <jakub@redhat.com>
1422
1423 PR fortran/60928
1424 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1425 (omp_pragmas): ... back here.
1426
742938c9
MP
14272014-06-05 Marek Polacek <polacek@redhat.com>
1428
1429 PR c/49706
1430 * c-common.c (warn_logical_not_parentheses): New function.
1431 * c-common.h (warn_logical_not_parentheses): Declare.
1432 * c.opt (Wlogical-not-parentheses): New option.
1433
9d548dfb
MP
14342014-06-04 Marek Polacek <polacek@redhat.com>
1435
1436 PR c/30020
1437 * c-common.c (check_case_bounds): Add location parameter.
1438 Use it.
1439 (c_add_case_label): Pass loc to check_case_bounds.
1440
fedfecef
MP
14412014-06-03 Marek Polacek <polacek@redhat.com>
1442
1443 PR c/60439
1444 * c.opt (Wswitch-bool): New option.
1445
f6a7cffc
TS
14462014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1447
040d18b6
TS
1448 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1449 Remove prototypes.
1450 (record_types_used_by_current_var_decl): Move prototype to where
1451 it belongs.
1452
f6a7cffc
TS
1453 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1454 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1455 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1456
632f2871
RS
14572014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1458
1459 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1460 * c-common.c (c_common_nodes_and_builtins): Don't initialize
1461 void_zero_node.
1462 * c-pretty-print.c (pp_c_void_constant): New function.
1463 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1464 (c_pretty_printer::expression): Handle VOID_CST.
1465 * cilk.c (extract_free_variables): Likewise.
1466 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1467 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1468
766090c2
TS
14692014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1470
1471 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1472 * c-pragma.c (push_alignment): Adjust.
1473 (handle_pragma_push_options): Likewise.
1474
661a0813
MP
14752014-05-09 Marek Polacek <polacek@redhat.com>
1476
1477 PR c/50459
1478 * c-common.c (check_user_alignment): Return -1 if alignment is error
1479 node.
1480 (handle_aligned_attribute): Don't call default_conversion on
1481 FUNCTION_DECLs.
1482 (handle_vector_size_attribute): Likewise.
1483 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1484 (handle_sentinel_attribute): Call default_conversion and allow even
1485 integral types as an argument.
1486
2793eeab
MP
14872014-05-08 Marek Polacek <polacek@redhat.com>
1488
1489 PR c/61053
1490 * c-common.c (min_align_of_type): New function factored out from...
1491 (c_sizeof_or_alignof_type): ...here.
1492 * c-common.h (min_align_of_type): Declare.
1493
f827930a
MP
14942014-05-08 Marek Polacek <polacek@redhat.com>
1495
1496 PR c/61077
1497 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1498 parameter type of main.
1499
ca49b74e
DD
15002014-05-07 DJ Delorie <dj@redhat.com>
1501
1502 * c-cppbuiltin.c (print_bits_of_hex): New.
1503 (builtin_define_type_minmax): Print values using hex so as not to
1504 require a pre-computed list of string values.
1505
1d60af08
KZ
15062014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1507 Mike Stump <mikestump@comcast.net>
1508 Richard Sandiford <rdsandiford@googlemail.com>
1509
1510 * c-ada-spec.c: Include wide-int.h.
1511 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1512 (dump_generic_ada_node): Use wide-int interfaces.
1513 * c-common.c: Include wide-int-print.h.
1514 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1515 (pointer_int_sum): Use wide-int interfaces.
1516 (c_common_nodes_and_builtins): Use make_int_cst.
1517 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1518 (handle_alloc_size_attribute): Use wide-int interfaces.
1519 (get_nonnull_operand): Likewise.
1520 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1521 * c-lex.c: Include wide-int.h.
1522 (narrowest_unsigned_type): Take a widest_int rather than two
1523 HOST_WIDE_INTs.
1524 (narrowest_signed_type): Likewise.
1525 (interpret_integer): Update accordingly. Use wide-int interfaces.
1526 (lex_charconst): Use wide-int interfaces.
1527 * c-pretty-print.c: Include wide-int.h.
1528 (pp_c_integer_constant): Use wide-int interfaces.
1529 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1530 INT_CST_LT_UNSIGNED.
1531
b15458be
RB
15322014-05-06 Richard Biener <rguenther@suse.de>
1533
1534 * c-opts.c (c_common_post_options): For -freestanding,
1535 -fno-hosted and -fno-builtin disable pattern recognition
1536 if not enabled explicitely.
1537
6577374e
MP
15382014-05-02 Marek Polacek <polacek@redhat.com>
1539
1540 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1541
d00887e8
MP
15422014-05-01 Marek Polacek <polacek@redhat.com>
1543
1544 PR c/43245
1545 * c.opt (Wdiscarded-qualifiers): Add.
1546
f8ed5150
MP
15472014-04-30 Marek Polacek <polacek@redhat.com>
1548
1549 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
1550 INT_MIN / -1 sanitization only for integer types.
1551
45484dcf
MP
15522014-04-25 Marek Polacek <polacek@redhat.com>
1553
1554 PR c/18079
1555 * c-common.c (handle_noinline_attribute): Warn if the attribute
1556 conflicts with always_inline attribute.
1557 (handle_always_inline_attribute): Warn if the attribute conflicts
1558 with noinline attribute.
1559
38e514c0
MP
15602014-04-25 Marek Polacek <polacek@redhat.com>
1561
1562 PR c/60156
1563 * c-common.c (check_main_parameter_types): Warn about variadic main.
1564
44875f92
MS
15652014-04-24 Mike Stump <mikestump@comcast.net>
1566
1567 * c.opt (Wshadow-ivar): Default to on.
1568
dcaaa5a0
DP
15692014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1570
1571 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1572
c07d7c02
MP
15732014-04-23 Marek Polacek <polacek@redhat.com>
1574
1575 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1576
1c33c9b7
JJ
15772014-04-22 Jakub Jelinek <jakub@redhat.com>
1578
1579 PR sanitizer/60275
1580 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1581 if flag_sanitize_undefined_trap_on_error.
1582 (ubsan_instrument_division, ubsan_instrument_shift,
1583 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1584 if !flag_sanitize_recover.
1585
793c625f
MG
15862014-04-22 Marc Glisse <marc.glisse@inria.fr>
1587
1588 PR libstdc++/43622
1589 * c-common.c (registered_builtin_types): Make non-static.
1590 * c-common.h (registered_builtin_types): Declare.
1591
b0f1bf36
RB
15922014-04-14 Richard Biener <rguenther@suse.de>
1593 Marc Glisse <marc.glisse@inria.fr>
1594
1595 PR c/60819
1596 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1597 apply may-alias the scalar pointer type when applicable.
1598
3b07fa4a
IZ
15992014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1600
1601 PR middle-end/60467
1602 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1603 as possible argument for Cilk_spawn.
1604
cbbd2b1c
TB
16052014-04-11 Tobias Burnus <burnus@net-b.de>
1606
1607 PR c/60194
1608 * c.opt (Wformat-signedness): Add
1609 * c-format.c(check_format_types): Use it.
1610
6415bd5d
JM
16112014-04-11 Jason Merrill <jason@redhat.com>
1612
1613 PR c++/57926
1614 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1615 default_conversion for an array argument.
1616
6525783a
MP
16172014-04-08 Marek Polacek <polacek@redhat.com>
1618
1619 PR sanitizer/60745
1620 * c-ubsan.c: Include asan.h.
1621 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1622
880a467b
NS
16232014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1624
1625 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1626
7b59ff2d
MP
16272014-04-02 Marek Polacek <polacek@redhat.com>
1628
1629 * c-common.h (c_expand_expr): Remove declaration.
1630
8edbfaa6
JJ
16312014-03-28 Jakub Jelinek <jakub@redhat.com>
1632
1633 PR c++/60689
1634 * c-common.c (add_atomic_size_parameter): When creating new
1635 params vector, push the size argument first.
1636
07d72e1d
JJ
16372014-03-26 Jakub Jelinek <jakub@redhat.com>
1638
1639 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1640 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1641 ubsan_create_data callers.
1642
b35e0fa0
JJ
16432014-03-22 Jakub Jelinek <jakub@redhat.com>
1644
1645 PR debug/60603
1646 * c-opts.c (c_finish_options): Restore cb_file_change call to
1647 <built-in>.
1648
39a1ebb3
JJ
16492014-03-13 Jakub Jelinek <jakub@redhat.com>
1650
1651 PR middle-end/36282
1652 * c-pragma.c (apply_pragma_weak): Only look at
1653 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1654 DECL_ASSEMBLER_NAME_SET_P (decl).
1655 (maybe_apply_pending_pragma_weaks): Exit early if
1656 vec_safe_is_empty (pending_weaks) rather than only when
1657 !pending_weaks.
1658 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
1659 set assembler name back to NULL afterwards.
1660
a07f6ed2
JM
16612014-03-11 Jason Merrill <jason@redhat.com>
1662
1663 * c.opt: Add -std=gnu++14.
1664
75b107f5
IB
16652014-03-11 Ian Bolton <ian.bolton@arm.com>
1666
1667 * c-opts.c (c_common_post_options): Don't override
1668 -ffp-contract=fast if unsafe-math-optimizations is on.
1669
f42c637e
PM
16702014-03-08 Paulo Matos <paulo@matos-sorge.com>
1671
1672 * c.opt: Enable LTO FE for fshort-double.
1673
70e24808
JM
16742014-03-07 Jason Merrill <jason@redhat.com>
1675
1676 * c.opt: Add -std=c++14.
1677
3af9c5e9
MP
16782014-03-06 Marek Polacek <polacek@redhat.com>
1679
1680 PR c/60197
1681 * cilk.c (contains_cilk_spawn_stmt): New function.
1682 (contains_cilk_spawn_stmt_walker): Likewise.
1683 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1684 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1685
b3bdf019
JJ
16862014-03-03 Jakub Jelinek <jakub@redhat.com>
1687
1688 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1689 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1690 even when flag_preprocess_only.
1691
ca7e759d
JM
16922014-02-26 Jason Merrill <jason@redhat.com>
1693
1694 PR c++/59231
1695 PR c++/11586
1696 * c-common.c (shorten_compare): Don't check
1697 c_inhibit_evaluation_warnings.
1698
28e41874
JJ
16992014-02-19 Jakub Jelinek <jakub@redhat.com>
1700
cca615af
JJ
1701 PR c/37743
1702 * c-common.c (c_common_nodes_and_builtins): When initializing
1703 c_uint{16,32,64}_type_node, also set corresponding
1704 uint{16,32,64}_type_node to the same value.
1705
28e41874
JJ
1706 PR c++/60267
1707 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1708 for PRAGMA_IVDEP if flag_preprocess_only.
1709
c2bf53a1
JJ
17102014-02-12 Jakub Jelinek <jakub@redhat.com>
1711
1712 PR c/60101
1713 * c-common.c (merge_tlist): If copy is true, call new_tlist,
1714 if false, add ADD itself, rather than vice versa.
1715 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1716 copy. For SAVE_EXPR, only call merge_tlist once.
1717
8fcbce72
JJ
17182014-02-08 Jakub Jelinek <jakub@redhat.com>
1719
1720 PR middle-end/60092
1721 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1722 and tree_to_uhwi.
1723 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1724 functions.
1725 (c_common_attribute_table): Add alloc_align and assume_aligned
1726 attributes.
1727
0a756a3f
MP
17282014-02-06 Marek Polacek <polacek@redhat.com>
1729
1730 PR c/60087
1731 * c-common.c (warn_for_sign_compare): Call warning_at with location
1732 instead of warning.
1733
7ec4847a
MP
17342014-02-05 Marek Polacek <polacek@redhat.com>
1735
1736 PR c/53123
1737 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1738 statement.
1739
66f20604
MP
17402014-02-04 Marek Polacek <polacek@redhat.com>
1741
1742 PR c/60036
1743 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1744 SAVE_EXPR.
1745
5d77fb19
MG
17462014-02-03 Marc Glisse <marc.glisse@inria.fr>
1747
1748 PR c++/53017
1749 PR c++/59211
1750 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1751 handle_vector_size_attribute, handle_nonnull_attribute): Call
1752 default_conversion on the attribute argument.
1753 (handle_nonnull_attribute): Increment the argument number.
1754
81e5eca8
MP
17552014-01-31 Marek Polacek <polacek@redhat.com>
1756
1757 PR c/59963
1758 * c-common.c (add_atomic_size_parameter): Pass vNULL to
1759 build_function_call_vec.
1760 (resolve_overloaded_builtin): Likewise.
1761 * c-common.h (build_function_call_vec): Adjust declaration.
1762
68fca595
MP
17632014-01-30 Marek Polacek <polacek@redhat.com>
1764
1765 PR c/59940
1766 * c-common.h (unsafe_conversion_p): Adjust declaration.
1767 (warnings_for_convert_and_check): Likewise.
1768 (convert_and_check): Likewise.
1769 * c-common.c (unsafe_conversion_p): Add location parameter. Call
1770 expansion_point_location_if_in_system_header on it.
1771 (warnings_for_convert_and_check): Add location parameter. Call
1772 expansion_point_location_if_in_system_header on it. Use it.
1773 (convert_and_check): Add location parameter. Use it.
1774 (conversion_warning): Likewise.
1775 (c_add_case_label): Adjust convert_and_check calls.
1776 (scalar_to_vector): Adjust unsafe_conversion_p calls.
1777
b72271b9
BI
17782014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1779
1780 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1781 flag_cilkplus.
1782 * c-pragma.c (init_pragma): Likewise.
1783 * c.opt: Likewise.
1784
393e8e8b
MP
17852014-01-23 Marek Polacek <polacek@redhat.com>
1786
1787 PR c/59846
1788 * c-common.c (shorten_compare): Add location_t parameter.
1789 * c-common.h (shorten_binary_op): Adjust declaration.
1790
f04dda30
MP
17912014-01-23 Marek Polacek <polacek@redhat.com>
1792
1793 PR c/58346
1794 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1795 * c-common.h: Declare it.
1796
621955cb
EB
17972014-01-20 Eric Botcazou <ebotcazou@adacore.com>
1798
1799 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1800 * c-ada-spec.c (dump_ads): Likewise.
1801 (cpp_check): Likewise.
1802 (dump_ada_specs): Likewise.
1803
18042014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
1805
1806 PR c++/49718
1807 * c-common.c (handle_no_instrument_function_attribute): Allow
1808 no_instrument_function attribute in class member
1809 definition/declaration.
1810
241f845a
JJ
18112014-01-15 Jakub Jelinek <jakub@redhat.com>
1812
1813 PR c/58943
1814 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1815 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
1816 being COMPOUND_EXPR.
1817 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1818 operand a SAVE_EXPR and second MODIFY_EXPR.
1819
e83b8e2e
JJ
18202014-01-09 Jakub Jelinek <jakub@redhat.com>
1821
1822 PR target/58115
1823 * c-pch.c (c_common_write_pch): Call
1824 prepare_target_option_nodes_for_pch.
1825
23a5b65a
RS
18262014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1827
1828 Update copyright years
1829
f9030485
RS
18302014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1831
1832 * array-notation-common.c, c-cilkplus.c: Use the standard form for
1833 the copyright notice.
1834
f2aa696b
EB
18352013-12-28 Eric Botcazou <ebotcazou@adacore.com>
1836
1837 * c-ada-spec.c (print_constructor): New function.
1838 (print_destructor): Retrieve the origin of the destructor.
1839 (print_ada_declaration): Revamp handling of constructors/destructors.
1840
1f26ac87
JM
18412013-12-23 Stuart Hastings <stuart@apple.com>
1842 Bill Maddox <maddox@google.com>
1843 Jason Merrill <jason@redhat.com>
1844
1845 * c.opt: Add -fdeclone-ctor-dtor.
1846 * c-opts.c (c_common_post_options): Default to on iff -Os.
1847
41958c28
BI
18482013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1849
1850 * c-common.c (c_common_attribute_table): Added "cilk simd function"
1851 attribute.
1852 * c-pragma.h (enum pragma_cilk_clause): Remove.
1853 (enum pragma_omp_clause): Added the following fields:
1854 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1855 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1856 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1857 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1858 PRAGMA_CILK_CLAUSE_UNIFORM.
1859
1860
12893402
BI
18612013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1862
1863 * cilk.c (cilk_outline): Made this function non-static.
1864 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1865 (create_cilk_wrapper): Added a new parameter: a function pointer.
1866 (c_install_body_w_frame_cleanup): Remove
1867 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1868 * c-common.h (cilk_outline): New prototype.
1869 (gimplify_cilk_spawn): Removed two parameters.
1870 (cilk_install_body_with_frame_cleanup): New prototype.
1871 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1872 CILK_SPAWN_STMT case.
1873
085b42ed
BS
18742013-12-11 Bernd Schmidt <bernds@codesourcery.com>
1875
2ce064c3
BS
1876 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1877
085b42ed
BS
1878 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1879 (int_array_type_node): Remove.
1880 * c-common.c (c_common_nodes_and_builtins): Don't build it.
1881
9e36c9ed
MP
18822013-12-05 Marek Polacek <polacek@redhat.com>
1883
1884 PR c/52023
1885 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1886 [ADJUST_FIELD_ALIGN].
1887
296674db
JM
18882013-12-04 Joseph Myers <joseph@codesourcery.com>
1889
1890 PR c/52023
1891 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1892 and check field alignment if set.
1893 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1894 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1895
31e071ae
MP
18962013-12-04 Jakub Jelinek <jakub@redhat.com>
1897 Marek Polacek <polacek@redhat.com>
1898
1899 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1900 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1901
d7947e19
L
19022013-11-29 H.J. Lu <hongjiu.lu@intel.com>
1903
1904 PR c/59309
1905 * cilk.c (gimplify_cilk_spawn): Properly handle function without
1906 arguments.
1907
fad7652e
JJ
19082013-11-29 Jakub Jelinek <jakub@redhat.com>
1909
1910 PR c/59280
1911 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1912 goto invalid. If it is error_mark_node, don't issue further
1913 diagnostics.
1914
8b5e1202
SO
19152013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1916
1917 * c.opt (Wopenmp-simd): New.
1918
0a508bb6
JJ
19192013-11-22 Jakub Jelinek <jakub@redhat.com>
1920
1921 * c-ubsan.h (ubsan_instrument_return): New prototype.
1922 * c-ubsan.c (ubsan_instrument_return): New function.
1923
2fb9a547
AM
19242013-11-22 Andrew MacLeod <amacleod@redhat.com>
1925
1926 * c-common.c: Add required include files from gimple.h.
1927 * c-gimplify.c: Likewise
1928 * cilk.c: Likewise
1929
8400e75e
DM
19302013-11-22 David Malcolm <dmalcolm@redhat.com>
1931
1932 * c-common.c (unsafe_conversion_p): Remove use of
1933 EXPR_LOC_OR_HERE macro.
1934 (conversion_warning): Likewise.
1935 (warnings_for_convert_and_check): Likewise.
1936 (warn_for_collisions_1): Likewise.
1937 (shorten_compare): Likewise, and remove use of in_system_header
1938 macro, using the location from the former.
1939 * c-lex.c (dump_one_header): Remove use of input_filename macro.
1940 (cb_def_pragma): Remove use of in_system_header macro.
1941 (lex_string): Likewise.
1942 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1943
eb1ce453
KZ
19442013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1945 Mike Stump <mikestump@comcast.net>
1946 Richard Sandiford <rdsandiford@googlemail.com>
1947
1948 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1949 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1950 tree_fits_shwi_p or tree_fits_uhwi_p.
1951 (dump_generic_ada_node): Likewise.
1952 * c-format.c (check_format_arg): Likewise.
1953 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1954
6b3b8c27
KZ
19552013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1956
1957 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1958
49b0aa18
JC
19592013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
1960
1961 PR c/53001
1962 * c-common.c (unsafe_conversion_p): Make this function
1963 return an enumeration with more detail.
1964 (conversion_warning): Use the new return type of
1965 unsafe_conversion_p to separately warn either about conversions
1966 that lower floating point number precision or about the other
1967 kinds of conversions.
1968 * c-common.h (enum conversion_safety): New enumeration.
1969 (unsafe_conversion_p): switching return type to
1970 conversion_safety enumeration.
1971 * c.opt: Adding new warning -Wfloat-conversion and
1972 enabling it with -Wconversion.
1973
b826515a
BS
19742013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
1975
1976 * c-opts.c: Include plugin.h.
1977 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1978
b9a55b13
MP
19792013-11-19 Marek Polacek <polacek@redhat.com>
1980
1981 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1982 call.
1983 (ubsan_instrument_shift): Likewise.
1984 (ubsan_instrument_vla): Likewise.
1985
7d362f6c
RS
19862013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1987
1988 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1989 cast to unsigned type.
1990
386b1f1f
RS
19912013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1992
1993 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1994 tree_low_cst.
1995 (complete_array_type): Update comment to refer to tree_to_[su]hwi
1996 rather than tree_low_cst.
1997
ae7e9ddd
RS
19982013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1999
2000 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
2001 tree_to_uhwi throughout.
2002
9439e9a1
RS
20032013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2004
2005 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
2006 tree_low_cst (..., 0) with tree_to_shwi throughout.
2007
cc269bb6
RS
20082013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2009
2010 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
2011 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
2012
9541ffee
RS
20132013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2014
2015 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
2016 host_integerp (..., 0) with tree_fits_shwi_p throughout.
2017
c02065fc
AH
20182013-11-15 Aldy Hernandez <aldyh@redhat.com>
2019
2020 * c-cilkplus.c: New file.
2021 * c-common.c (readonly_error): Add location argument.
2022 * c-common.h (readonly_error): Same.
2023 (c_finish_cilk_clauses): Protoize.
2024 (c_check_cilk_loop): Same.
2025 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
2026 Do not fail on error_mark_node.
2027 Abstract increment canonicalization to here...
2028 (c_omp_for_incr_canonicalize_ptr): New.
2029 c-pragma.c (init_pragma): Register "simd" pragma.
2030 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
2031 (enum pragma_cilk_clause): New.
2032
9cc65f15
RS
20332013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2034
2035 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
2036 wchar_type and host_integerp checks.
2037
18f429e2
AM
20382013-11-14 Andrew MacLeod <amacleod@redhat.com>
2039
2040 * c-common.c: Likewise.
2041 * c-gimplify.c: Likewise.
2042 * cilk.c: Likewise.
2043
d8a2d370
DN
20442013-11-14 Diego Novillo <dnovillo@google.com>
2045
2046 * c-common.c: Include fold-const.h.
2047 Include stor-layout.h.
2048 Include calls.h.
2049 Include stringpool.h.
2050 Include attribs.h.
2051 Include varasm.h.
2052 Include trans-mem.h.
2053 * c-cppbuiltin.c: Include stor-layout.h.
2054 Include stringpool.h.
2055 * c-format.c: Include stringpool.h.
2056 * c-lex.c: Include stringpool.h.
2057 Include stor-layout.h.
2058 * c-pragma.c: Include stringpool.h.
2059 Include attribs.h.
2060 Include varasm.h.
2061 Include gcc-symtab.h.
2062 * c-pretty-print.c: Include stor-layout.h.
2063 Include attribs.h.
2064 * cilk.c: Include stringpool.h.
2065 Include calls.h.
2066
38b7bc7f
JM
20672013-11-13 Joseph Myers <joseph@codesourcery.com>
2068
2069 * c-common.h (enum rid): Add RID_AUTO_TYPE.
2070 * c-common.c (c_common_reswords): Add __auto_type.
2071 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
2072
45b0be94
AM
20732013-11-12 Andrew MacLeod <amacleod@redhat.com>
2074
18f429e2
AM
2075 * c-common.c: Include gimplify.h.
2076 * c-gimplify.c: Likewise.
2077 * cilk.c: Likewise.
2078 * c-omp.c: Include gimple-expr.h instead of gimple.h.
2079 * c-ubsan.c: Don't include gimple.h.
45b0be94 2080
582d9b50
JM
20812013-11-12 Joseph Myers <joseph@codesourcery.com>
2082
2083 * c-common.c (c_common_reswords): Add _Thread_local.
2084
6b28e197
JM
20852013-11-09 Joseph Myers <joseph@codesourcery.com>
2086
2087 * c-common.c (atomic_size_supported_p): New function.
2088 (resolve_overloaded_atomic_exchange)
2089 (resolve_overloaded_atomic_compare_exchange)
2090 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
2091 Use it instead of comparing size with a local list of sizes.
2092
267bac10
JM
20932013-11-07 Andrew MacLeod <amacleod@redhat.com>
2094 Joseph Myers <joseph@codesourcery.com>
2095
2096 * c-common.h (enum rid): Add RID_ATOMIC.
2097 * c-common.c (c_common_reswords): Add _Atomic.
2098 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
2099 (keyword_is_type_qualifier): Accept RID_ATOMIC.
2100 * c-format.c (check_format_types): Check for extra _Atomic
2101 qualifiers in format argument.
2102 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
2103 (pp_c_type_qualifier_list): Mention _Atomic in comment.
2104
5157b91e
TB
21052013-11-06 Tobias Burnus <burnus@net-b.de>
2106
2107 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
2108
6dbe0958
JM
21092013-11-06 Joseph Myers <joseph@codesourcery.com>
2110
2111 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
2112 standards modes.
2113 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
2114 to mean lack of IEEE 754 support.
2115
e8ff5196
TB
21162013-11-05 Tobias Burnus <burnus@net-b.de>
2117
2118 * c.opt (-Wdate-time): New option
2119 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
2120
254a0760
JM
21212013-11-05 Joseph Myers <joseph@codesourcery.com>
2122
2123 * c-cppbuiltin.c (cpp_iec_559_value): Test
2124 flag_excess_precision_cmdline not flag_excess_precision.
2125
6d7f7e0a
TB
21262013-11-05 Tobias Burnus <burnus@net-b.de>
2127
2128 * c.opt (fopenmp-simd): New option.
2129 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
2130 (omp_pragmas): ... this new struct.
2131 (c_pp_lookup_pragma): Also walk omp_pragmas.
2132 (init_pragma): Init pragmas for -fopenmp-simd.
2133
55a7f02f
MP
21342013-11-04 Marek Polacek <polacek@redhat.com>
2135
2136 PR c++/58979
2137 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
2138
9193fb05
JM
21392013-11-04 Joseph Myers <joseph@codesourcery.com>
2140
2141 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
2142 New functions.
2143 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
2144
94159ecf
EB
21452013-11-04 Eric Botcazou <ebotcazou@adacore.com>
2146
2147 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
2148 (dump_ada_specs): Adjust prototype of second callback.
2149 * c-ada-spec.c (cpp_check): New global variable.
2150 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
2151 (print_generic_ada_decl): Likewise.
2152 (has_static_fields): Change return type to bool and add guard.
2153 (has_nontrivial_methods): New predicate.
2154 (is_tagged_type): Change return type to bool.
2155 (separate_class_package): Call has_nontrivial_methods.
2156 (pp_ada_tree_identifier): Minor tweaks.
2157 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
2158 (dump_ada_array_domains): Likewise.
2159 (dump_ada_array_type): Likewise.
2160 (dump_template_types): Remove cpp_check parameter and do not pass it to
2161 dump_generic_ada_node.
2162 (dump_ada_template): Likewise.
2163 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
2164 recursively.
2165 (print_ada_methods): Change return type to integer. Remove cpp_check
2166 parameter and do not pass it down.
2167 (dump_nested_types): Remove cpp_check parameter and do not pass it to
2168 dump_generic_ada_node.
2169 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
2170 accessing methods.
2171 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
2172 down. Use has_nontrivial_methods to recognize C++ classes. Use return
2173 value of print_ada_methods.
2174 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
2175 Set cpp_check to it before invoking dump_ada_nodes.
2176 (dump_ada_specs): Likewise.
2177
b906f4ca
MP
21782013-11-03 Marek Polacek <polacek@redhat.com>
2179
2180 * c-ubsan.c: Don't include hash-table.h.
2181 (ubsan_instrument_vla): New function.
2182 * c-ubsan.h: Declare it.
2183
5e20cdc9
DM
21842013-10-31 David Malcolm <dmalcolm@redhat.com>
2185
2186 Automated part of renaming of symtab_node_base to symtab_node.
2187
2188 Patch autogenerated by rename_symtab.py from
2189 https://github.com/davidmalcolm/gcc-refactoring-scripts
2190 revision 58bb219cc090b2f4516a9297d868c245495ee622
2191
2192 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
2193 symtab_node_base to symtab_node.
2194
7057e645
ESR
21952013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
2196
2197 Implement C++14 digit separators.
2198 * c-lex.c (interpret_float): Remove digit separators from scratch string
2199 before building real literal.
2200
193ea7bc
JJ
22012013-10-30 Jakub Jelinek <jakub@redhat.com>
2202
2203 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
2204
939b37da
BI
22052013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
2206
2207 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
2208 fields.
2209 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
2210 enabled.
2211 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
2212 (insert_cilk_frame): New prototype.
2213 (cilk_init_builtins): Likewise.
2214 (gimplify_cilk_spawn): Likewise.
2215 (c_cilk_install_body_w_frame_cleanup): Likewise.
2216 (cilk_detect_spawn_and_unwrap): Likewise.
2217 (cilk_set_spawn_marker): Likewise.
2218 (build_cilk_sync): Likewise.
2219 (build_cilk_spawn): Likewise.
2220 * cilk.c: New file.
2221
67348ccc
DM
22222013-10-29 David Malcolm <dmalcolm@redhat.com>
2223
2224 Patch autogenerated by refactor_symtab.py from
2225 https://github.com/davidmalcolm/gcc-refactoring-scripts
2226 revision 58bb219cc090b2f4516a9297d868c245495ee622
2227
2228 * c-gimplify.c (c_genericize): Update for conversion of symtab types
2229 to a true class hierarchy.
2230 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2231
d570872d
RS
22322013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
2233
2234 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2235
98906124
JL
22362013-10-26 Jeff Law <law@redhat.com>
2237
adfac8df
JJ
2238 * c-common.c (c_define_builtins): Remove mudflap support.
2239 * c.opt: Ignore and warn for mudflap options.
98906124 2240
d73749df 22412013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
2242
2243 PR other/33426
2244 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2245 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2246
3f04b1bb
JM
22472013-10-23 Jason Merrill <jason@redhat.com>
2248
2249 * c-format.c (gcc_cxxdiag_char_table): Add %X.
2250
acf0174b
JJ
22512013-10-11 Jakub Jelinek <jakub@redhat.com>
2252
acd15a28
JJ
2253 * c-common.h (omp_clause_mask::operator !=): New method.
2254 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2255 instead of if (mask & something) tests everywhere.
2256
acf0174b
JJ
2257 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2258 201307 instead of 201107.
2259 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2260 (c_common_attribute_table): Add "omp declare target" and
2261 "omp declare simd" attributes.
2262 (handle_omp_declare_target_attribute,
2263 handle_omp_declare_simd_attribute): New functions.
2264 * c-omp.c: Include c-pragma.h.
2265 (c_finish_omp_taskgroup): New function.
2266 (c_finish_omp_atomic): Add swapped argument, if true,
2267 build the operation first with rhs, lhs arguments and use NOP_EXPR
2268 build_modify_expr.
2269 (c_finish_omp_for): Add code argument, pass it down to make_code.
2270 (c_omp_split_clauses): New function.
2271 (c_split_parallel_clauses): Removed.
2272 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2273 c_omp_declare_simd_clauses_to_decls): New functions.
2274 * c-common.h (omp_clause_mask): New type.
2275 (OMP_CLAUSE_MASK_1): Define.
2276 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2277 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2278 omp_clause_mask::operator |, omp_clause_mask::operator &,
2279 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2280 omp_clause_mask::operator ==): New methods.
2281 (enum c_omp_clause_split): New.
2282 (c_finish_omp_taskgroup): New prototype.
2283 (c_finish_omp_atomic): Add swapped argument.
2284 (c_finish_omp_for): Add code argument.
2285 (c_omp_split_clauses): New prototype.
2286 (c_split_parallel_clauses): Removed.
2287 (c_omp_declare_simd_clauses_to_numbers,
2288 c_omp_declare_simd_clauses_to_decls): New prototypes.
2289 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2290 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2291 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2292 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2293 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2294 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2295 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2296 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2297 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2298 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2299 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2300 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2301 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2302 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2303 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2304 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2305 PRAGMA_OMP_CLAUSE_UNIFORM.
2306
826cacfe
MG
23072013-10-09 Marc Glisse <marc.glisse@inria.fr>
2308
2309 PR tree-optimization/20318
2310 * c-common.c (handle_returns_nonnull_attribute): New function.
2311 (c_common_attribute_table): Add returns_nonnull.
2312
2284b034
MG
23132013-10-03 Marc Glisse <marc.glisse@inria.fr>
2314
2315 PR c++/19476
2316 * c.opt (fcheck-new): Move to common.opt.
2317
b56e9788
MP
23182013-09-25 Marek Polacek <polacek@redhat.com>
2319 Jakub Jelinek <jakub@redhat.com>
2320
2321 PR sanitizer/58413
2322 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2323 an expression if we can prove it is correct.
2324 (ubsan_instrument_division): Likewise. Remove unnecessary
2325 check.
2326
ce6923c5
MP
23272013-09-18 Marek Polacek <polacek@redhat.com>
2328
2329 PR sanitizer/58411
2330 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2331 Declare it.
2332 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2333
fb5610fb
IS
23342013-09-14 Iain Sandoe <iain@codesourcery.com>
2335
2336 PR target/48094
2337 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2338 fobjc-gc, freplace-objc-classes): Accept for LTO.
2339
88b0e79e
JC
23402013-09-13 Jacek Caban <jacek@codeweavers.com>
2341
2342 * c-target.def: New hook
2343
c9b0866a
PC
23442013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2345
2346 PR c++/43452
2347 * c.opt (Wdelete-incomplete): Add.
2348
0af94e6f
JR
23492013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2350
2351 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2352 (vector_types_compatible_elements_p): New function.
2353 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2354 declaration.
2355 (vector_types_compatible_elements_p): Declare.
2356
7c26172c
GDR
23572013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2358
2359 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2360 a virtual member function.
2361 (pp_simple_type_specifier): Remove.
2362 (pp_c_type_specifier): Likewise.
2363 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2364 Rename from pp_c_type_specifier. Adjust.
2365 (c_pretty_printer::c_pretty_printer): Do not assign to
2366 simple_type_specifier.
2367
20059c8b
GDR
23682013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2369
2370 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2371 member function.
2372 (c_pretty_printer::storage_class_specifier): Likewise.
2373 (c_pretty_printer::initializer): Likewise.
2374 (pp_declaration): Remove.
2375 (pp_declaration_specifiers): Likewise.
2376 (pp_abstract_declarator): Likewise.
2377 (pp_declarator): Likewise.
2378 (pp_type_id): Likewise.
2379 (pp_statement): Likewise.
2380 (pp_constant): Likewise.
2381 (pp_id_expression): Likewise.
2382 (pp_primary_expression): Likewise.
2383 (pp_unary_expression): Likewise.
2384 (pp_multiplicative_expression): Likewise.
2385 (pp_conditional_expression): Likewise.
2386 (pp_assignment_expression): Likewise.
2387 (pp_expression): Likewise.
2388 (pp_c_type_id): Likewise.
2389 (pp_c_storage_class_specifier): Likewise.
2390 * c-pretty-print.c (pp_c_type_cast): Tidy.
2391 (pp_c_pointer): Likewise.
2392 (pp_c_type_specifier): Likewise.
2393 (pp_c_parameter_type_list): Likewise.
2394 (pp_c_function_definition): Likewise.
2395 (pp_c_init_declarator): Likewise.
2396 (pp_c_initializer_list): Likewise.
2397 (pp_c_constructor_elts): Likewise.
2398 (c_pretty_printer::direct_abstract_declarator): Likewise.
2399 (c_pretty_printer::declaration_specifiers): Likewise.
2400 (c_pretty_printer::primary_expression): Likewise.
2401 (c_pretty_printer::postfix_expression): Likewise.
2402 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2403 (c_pretty_printer::storage_class_specifier): Rename from
2404 pp_c_storage_class_specifier.
2405 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2406 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2407 storage_class_specifier, initializer, offset_list, flags.
2408
de5a5fa1
MP
24092013-08-30 Marek Polacek <polacek@redhat.com>
2410
2411 * c-ubsan.c: New file.
2412 * c-ubsan.h: New file.
2413
8f0e4d72
GDR
24142013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2415
2416 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2417 member function.
2418 (c_pretty_printer::declaration_specifiers): Likewise.
2419 (c_pretty_printer::declarator): Likewise.
2420 (c_pretty_printer::abstract_declarator): Likewise.
2421 (c_pretty_printer::direct_abstract_declarator): Likewise.
2422 (c_pretty_printer::direct_declarator): Likewise.
2423 (c_pretty_printer::function_specifier): Likewise.
2424 (pp_declaration): Adjust.
2425 (pp_declaration_specifiers): Likewise.
2426 (pp_abstract_declarator): Likewise.
2427 (pp_direct_declarator): Likewise.
2428 (pp_function_specifier): Likewise.
2429 (pp_direct_abstract_declarator): Remove as unused.
2430 (pp_c_declaration): Remove.
2431 (pp_c_declaration_specifiers): Likewise.
2432 (pp_c_declarator): Likewise.
2433 (pp_c_direct_declarator): Likewise.
2434 (pp_c_function_specifier): Likewise.
2435 (pp_c_direct_abstract_declarator): Likewise.
2436 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2437 from pp_c_abstract_declarator. Adjust.
2438 (c_pretty_printer::direct_abstract_declarator): Rename from
2439 pp_c_direct_abstract_declarator. Adjust.
2440 (c_pretty_printer::function_specifier): Rename from
2441 pp_c_function_specifier. Adjust.
2442 (c_pretty_printer::declaration_specifiers): Rename from
2443 pp_c_declaration_specifiers. Adjust.
2444 (c_pretty_printer::direct_declarator): Rename from
2445 pp_c_direct_declarator. Adjust.
2446 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
2447 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
2448 (c_pretty_printer::c_pretty_printer): Do not assign to
2449 declaration, declaration_specifiers, declarator,
2450 direct_declarator, direct_abstract_declarator, function_specifier.
2451
00d34d3a
GDR
24522013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
2453
2454 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2455 virtual member function.
2456 (c_pretty_printer::multiplicative_expression): Likewise.
2457 (c_pretty_printer::conditional_expression): Likewise.
2458 (c_pretty_printer::assignment_expression): Likewise.
2459 (c_pretty_printer::expression): Likewise.
2460 (pp_unary_expression): Adjust.
2461 (pp_multiplicative_expression): Likewise.
2462 (pp_assignment_expression): Likewise.
2463 (pp_conditional_expression): Likewise.
2464 (pp_expression): Likewise.
2465 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2466 from pp_c_unary_expression. Adjust.
2467 (c_pretty_printer::multiplicative_expression): Rename from
2468 pp_c_multiplicative_expression. Adjust.
2469 (c_pretty_printer::conditional_expression): Rename from
2470 pp_c_conditional_expression. Adjust.
2471 (c_pretty_printer::assignment_expression): Rename from
2472 pp_c_assignment_expression. Adjust.
2473 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
2474 (c_pretty_printer::c_pretty_printer): Do not assign to
2475 unary_expression, multiplicative_expression,
2476 conditional_expression, expression.
2477
fb22178f
GDR
24782013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2479
2480 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2481 virtual member function.
2482 (pp_postfix_expression): Adjust.
2483 (pp_c_postfix_expression): Remove.
2484 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2485 from pp_c_postfix_expression. Adjust.
2486 (c_pretty_printer::c_pretty_printer): Do not assign to
2487 postfix_expression.
2488
7ecc2600
GDR
24892013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2490
2491 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2492 virtua member function.
2493 (pp_primary_expression): Adjust.
2494 (pp_c_primary_expression): Remove.
2495 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2496 from pp_c_primary_expression. Adjust.
2497 (pp_c_initializer_list): Use pp_primary_expression.
2498 (c_pretty_printer::c_pretty_printer): Do not assign to
2499 primary_expression.
2500
0691175f
GDR
25012013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2502
2503 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2504 * c-pretty-print.c (M_): Remove.
2505 (c_pretty_printer::translate_string): Define.
2506 (pp_c_type_specifier): Use it.
2507 (pp_c_primary_expression): Likewise.
2508 (pp_c_expression): Likewise.
2509
66dfe4c4
GDR
25102013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2511
2512 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2513 virtual function.
2514 (pp_c_id_expression): Remove.
2515 (pp_id_expression): Adjust.
2516 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2517 pp_c_id_expression. Adjust.
2518 (pp_c_postfix_expression): Use pp_id_expression.
2519 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2520
ca43e9d5
GDR
25212013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2522
2523 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2524 member function.
2525 (pp_constant): Adjust.
2526 (pp_c_constant): Remove.
2527 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2528 pp_c_constant. Adjust.
2529 (pp_c_constant)
2530 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2531 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2532
da6ca2b5
GDR
25332013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2534
2535 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2536 (c_pretty_printer::c_pretty_printer): Declare.
2537 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2538 c_pretty_printer_init. Adjust.
2539 (print_c_tree): Do not call c_pretty_printer_init.
2540 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2541
65a372f4
AC
25422013-08-09 Arnaud Charlet <charlet@adacore.com>
2543
2544 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2545
fd9b0f32
PC
25462013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
2547
2548 PR c++/58080
2549 * c-common.c (pointer_int_sum): Add bool parameter.
2550 * c-common.h (pointer_int_sum): Adjust declaration.
2551
e0aec1e9
GDR
25522013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2553
2554 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2555 c_pretty_printer variable.
2556
b066401f
GDR
25572013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2558
2559 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2560 (pp_base): Remove.
2561 (pp_c_base): Likewise. Adjust users.
2562 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2563 (pp_c_whitespace): Do not call pp_base.
2564 (pp_c_left_paren): Likewise.
2565 (pp_c_right_paren): Likewise.
2566 (pp_c_left_brace): Likewise.
2567 (pp_c_right_brace): Likewise.
2568 (pp_c_left_bracket): Likewise.
2569 (pp_c_right_bracket): Likewise.
2570 (pp_c_dot): Likewise.
2571 (pp_c_ampersand): Likewise.
2572 (pp_c_star): Likewise.
2573 (pp_c_arrow): Likewise.
2574 (pp_c_semicolon): Likewise.
2575 (pp_c_complement): Likewise.
2576 (pp_c_exclamation): Likewise.
2577 (pp_c_direct_declarator): Likewise.
2578 (pp_c_ws_string): Likewise.
2579 (pp_c_identifier): Likewise.
2580 (pp_c_statement): Likewise.
2581 (print_c_tree): Likewise.
2582
65e5a578
ESR
25832013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2584
2585 PR c++/58072
2586 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2587 provide useful error strings.
2588
137a1a27
GDR
25892013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2590
2591 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2592 printer functions instead of pp_string or operators and punctuators.
2593 (dump_generic_ada_node): Likewise.
2594 * c-pretty-print.c (pp_c_type_specifier): Likewise.
2595 (pp_c_relational_expression): Likewise.
2596 (pp_c_logical_or_expression): Likewise.
2597
07838b13
GDR
25982013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2599
2600 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2601 functions instead of pp_character.
2602 (pp_ada_tree_identifier): Likewise.
2603 (dump_ada_double_name): Likewise.
2604 (dump_ada_function_declaration): Likewise.
2605 (dump_ada_array_domains): Likewise.
2606 (dump_template_types): Likewise.
2607 (dump_generic_ada_node): Likewise.
2608 (print_ada_declaration): Likewise.
2609 (print_ada_struct_decl): Likewise.
2610 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2611
433cc7b0
TT
26122013-07-23 Tom Tromey <tromey@redhat.com>
2613
2614 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2615 * c-common.c (c_common_reswords): Add _Generic.
2616
688010ba
OB
26172013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
2618
2619 * c-common.c: Fix typos.
2620 * c-common.h: Likewise.
2621
2a99e5e6
LL
26222013-07-13 Lubos Lunak <l.lunak@suse.cz>
2623
2624 PR c++/55203
2625 * c-common.c (c_common_attribute_table): Add warn_unused.
2626 (handle_warn_unused_attribute): New.
2627
c26302d5
JJ
26282013-07-10 Jakub Jelinek <jakub@redhat.com>
2629
2630 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2631 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2632
dfeadaa0
PC
26332013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
2634
2635 PR c++/57869
2636 * c.opt: Add Wconditionally-supported.
2637
6a2fa4b2
GS
26382013-07-08 Graham Stott <graham.stott@btinternet.com>
2639
adfac8df 2640 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
2641 unused variables l_length and l_node.
2642
ecdbd01a 26432013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
2644
2645 PR c/57821
2646 * c-common.c (complete_array_type): Delay folding first index
2647 like other indices. When folding, check for index overflow.
2648
bedc293e
MG
26492013-06-27 Marc Glisse <marc.glisse@inria.fr>
2650
2651 PR c++/57509
2652 * c-common.h (c_build_vec_perm_expr): New complain argument.
2653 * c-common.c (c_build_vec_perm_expr): Likewise.
2654 Use save_expr also in C++.
2655
604b2bfc
GDR
26562013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2657
2658 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2659 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2660 * c-opts.c (c_common_post_options): Likewise.
2661
dfeadaa0 26622013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
2663
2664 * array-notation-common.c (length_mismatch_in_expr): Changed the
2665 parameter type's from a dynamic array to a vec_tree. Also removed
2666 the size parameters.
2667 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2668 the change above.
2669
2ce86d2e
BI
26702013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2671
2672 * c-common.h (struct cilkplus_an_parts): New structure.
2673 (struct cilkplus_an_loop_parts): Likewise.
2674 (cilkplus_extract_an_triplets): New prototype.
2675 (fix_sec_implicit_args): Likewise.
2676 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2677 (fix_sec_implicit_args): Likewise.
604b2bfc 2678
07a6825b
BI
26792013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2680
2681 * array-notation-common.c (find_inv_trees): Removed an unwanted
2682 typecasting.
2683 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2684 enum rid to enum tree_code.
2685
08346abd
JH
26862013-06-11 Jan Hubicka <jh@suse.cz>
2687
2688 * c-common.c (handle_alias_ifunc_attribute): Do not set
2689 DECL_EXTERNAL for weakref variables.
2690 * c-pragma.c (handle_pragma_weak): Make sure aliases
2691 are not declared as external.
2692
d60f1706
BI
26932013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2694
2695 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2696 function from c/c-array-notation.c.
2697 (is_cilkplus_reduce_builtin): Likewise.
2698 (find_rank): Likewise.
2699 (extract_array_notation_exprs): Likewise.
2700 (replace_array_notations): Likewise.
2701 (find_inv_trees): Likewise.
2702 (replace_inv_trees): Likewise.
2703 (contains_array_notation_expr): Likewise.
2704 (find_correct_array_notation_type): Likewise.
2705 * c-common.h (struct inv_list): Moved this struct from the file
2706 c/c-array-notation.c and added a new field called additional tcodes.
2707 (length_mismatch_in_expr_p): New prototype.
2708 (is_cilkplus_reduce_builtin): Likewise.
2709 (find_rank): Likewise.
2710 (extract_array_notation_exprs): Likewise.
2711 (replace_array_notation): Likewise.
2712 (find_inv_trees): Likewise.
2713 (replace_inv_trees): Likewise.
2714 (find_correct_array_notation_type): Likewise.
dfeadaa0 2715
36536d79
BI
27162013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2717
2718 * c-common.c (c_define_builtins): When cilkplus is enabled, the
2719 function array_notation_init_builtins is called.
2720 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2721 * c-common.def (ARRAY_NOTATION_REF): New tree.
2722 * c-common.h (build_array_notation_expr): New function declaration.
2723 (build_array_notation_ref): Likewise.
2724 (extract_sec_implicit_index_arg): New extern declaration.
2725 (is_sec_implicit_index_fn): Likewise.
2726 (ARRAY_NOTATION_CHECK): New define.
2727 (ARRAY_NOTATION_ARRAY): Likewise.
2728 (ARRAY_NOTATION_START): Likewise.
2729 (ARRAY_NOTATION_LENGTH): Likewise.
2730 (ARRAY_NOTATION_STRIDE): Likewise.
2731 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2732 ARRAY_NOTATION_REF.
2733 (pp_c_expression): Likewise.
2734 * c.opt (flag_enable_cilkplus): New flag.
2735 * array-notation-common.c: New file.
2736
f7716d57
JJ
27372013-05-14 Jakub Jelinek <jakub@redhat.com>
2738
2739 PR c++/57274
2740 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2741
a5e0cd1d
MG
27422013-05-10 Marc Glisse <marc.glisse@inria.fr>
2743
2744 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2745 vectors.
2746
f6bc1c4a
HS
27472013-05-07 Han Shen <shenhan@google.com>
2748
2749 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2750
3f12f6e9
SKS
27512013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2752
2753 * c-common.c (check_user_alignment): Emit error for negative values.
2754
61949153
PC
27552013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2756
2757 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2758
e93e18e9
PC
27592013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2760
2761 * c-cppbuiltin.c (c_cpp_builtins): Do not define
2762 __GXX_EXPERIMENTAL_CXX1Y__.
2763
44d90fe1
PC
27642013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2765 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2766
2767 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2768 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2769 to simply use OPT_Wpointer_arith.
2770 (c_sizeof_or_alignof_type): Likewise.
2771
13f39b2e
PC
27722013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2773
2774 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2775
4b84d650
JJ
27762013-04-12 Jakub Jelinek <jakub@redhat.com>
2777
2778 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2779 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2780 specifiers.
2781
fb037b5d
SB
27822013-04-07 Steven Bosscher <steven@gcc.gnu.org>
2783
2784 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2785
4e856798
PC
27862013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
2787
2788 * c-common.c (pointer_int_sum): Remove dead code.
2789
4b1baac8
RS
27902013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2791
2792 PR middle-end/56524
2793 * c-common.c (handle_optimize_attribute): Don't call
2794 save_optabs_if_changed.
2795
0b50e654
JJ
27962013-03-05 Jakub Jelinek <jakub@redhat.com>
2797
2798 PR middle-end/56461
2799 * c-pch.c (pch_init): Free target_validity at the end.
2800
48c41403
JJ
28012013-03-04 Jakub Jelinek <jakub@redhat.com>
2802
2803 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2804
e664c61c
KS
28052013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2806 Jakub Jelinek <jakub@redhat.com>
2807
2808 PR sanitizer/56454
2809 * c-common.c (handle_no_sanitize_address_attribute): New function.
2810 (c_common_attribute_table): Add no_sanitize_address attribute.
2811 (handle_no_address_safety_analysis_attribute): Add
2812 no_sanitize_address attribute, not no_address_safety_analysis
2813 attribute.
2814
a475fd3d 28152013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
2816
2817 PR target/52555
2818 * c-common.c (handle_optimize_attribute): Call
2819 save_optabs_if_changed.
2820
f6007d99
JJ
28212013-02-18 Jakub Jelinek <jakub@redhat.com>
2822 Steven Bosscher <steven@gcc.gnu.org>
2823
2824 PR pch/54117
2825 * c-opts.c (c_common_post_options): If debug info is enabled
2826 and non-dwarf*, refuse to load PCH files and when writing PCH
2827 file warn.
2828
cf35e2b1
JJ
28292013-02-05 Jakub Jelinek <jakub@redhat.com>
2830
2831 PR middle-end/56167
2832 * c-common.c (handle_error_attribute): Fix condition.
2833
32887460
JJ
28342013-01-30 Jakub Jelinek <jakub@redhat.com>
2835
2836 PR c++/55742
2837 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2838
5af057d8
JM
28392013-01-18 Jason Merrill <jason@redhat.com>
2840
2841 PR target/54908
2842 * c.opt (-fextern-tls-init): New.
2843 * c-opts.c (c_common_post_options): Handle it.
2844
cc83c823
JJ
28452013-01-09 Jakub Jelinek <jakub@redhat.com>
2846
2847 PR c/48418
2848 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2849 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2850 and is either negative or bigger or equal to type precision
2851 of the first operand.
2852
a859517f
MP
28532012-12-03 Marek Polacek <polacek@redhat.com>
2854
2855 PR c/55570
2856 * c-common.c (check_user_alignment): Swap order of tests,
2857 check TREE_CODE first.
2858
2d7aa578
ESR
28592012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
2860
2861 PR c++/52654
2862 * c-common.h (overflow_type): New enum.
2863 (build_userdef_literal): Add overflow_type argument.
2864 (tree_userdef_literal): Add overflow_type.
2865 (USERDEF_LITERAL_OVERFLOW): New access macro.
2866 * c-common.c (build_userdef_literal): Add overflow_type
2867 argument.
2868 * c-lex.c (c_lex_with_flags): Add overflow_type to
2869 build_userdef_literal calls.
2870 (interpret_integer, interpret_float): Add overflow_type argument.
2871
cc3c4f62
RB
28722012-11-28 Richard Biener <rguenther@suse.de>
2873
2874 PR c/35634
2875 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2876 here and use a type with proper overflow behavior for types that would
2877 need to be promoted for the arithmetic.
2878
77bc5132
JJ
28792012-11-23 Jakub Jelinek <jakub@redhat.com>
2880
2881 PR sanitizer/55435
2882 * c-common.c (handle_no_address_safety_analysis_attribute): New
2883 function.
2884 (c_common_attribute_table): Add no_address_safety_analysis.
2885
5dc99c46
SB
28862012-11-16 Simon Baldwin <simonb@google.com>
2887
2888 * c.opt: Add f[no-]canonical-system-headers.
2889 * c-opts.c (c_common_handle_option): Handle
2890 OPT_fcanonical_system_headers.
2891
a4a0016d
ESR
28922012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
2893
2894 PR c++/54413
2895 * c-opts.c (c_common_handle_option): Set new flags.
2896 * c.opt: Describe new flags.
2897
7dbb85a7
JM
28982012-11-09 Jason Merrill <jason@redhat.com>
2899
2900 * c.opt (Wabi-tag): New.
2901
ad7bac31
AK
29022012-11-09 Andi Kleen <ak@linux.intel.com>
2903
2904 PR 55139
2905 * c-common.c (get_atomic_generic_size): Mask with
2906 MEMMODEL_MASK
2907
7332899a
MLI
29082012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2909
2910 PR c/53063
2911 * c.opt (Wformat): Make it Alias Wformat=1.
2912 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2913 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2914 LangEnabledBy.
2915 (Wformat=): RejectNegative. Use LangEnabledBy.
2916 (Wnonnull): Use LangEnabledBy.
2917 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2918 * c-format.c (set_Wformat): Delete.
2919 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2920 (maybe_read_dollar_number): Likewise.
2921 (avoid_dollar_number): Likewise.
2922 (finish_dollar_format_checking): Likewise.
2923 (check_format_info): Likewise.
2924 (check_format_info_main): Likewise.
2925 (check_format_types): Likewise.
2926 (format_type_warning): Likewise.
2927 * c-common.c (int): Likewise.
2928 (check_function_sentinel): Likewise.
2929 * c-common.h (warn_format,set_Wformat): Do not declare here.
2930
34a180a6
MLI
29312012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2932
2933 PR c/53063
2934 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2935 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2936 Use LangEnabledBy.
2937 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2938 common.opt.
2939 (Wvariadic-macros): Init(1).
2940 * c-opts.c (c_common_handle_option): Do not handle them
2941 explicitly.
2942 (c_common_post_options): Likewise.
2943 (sanitize_cpp_opts): warn_unused_macros is now
2944 cpp_warn_unused_macros.
2945 (push_command_line_include): Likewise.
2946 * c-common.c (warn_unknown_pragmas): Do not define.
2947 * c-common.h (warn_unknown_pragmas): Do not declare.
2948
3f46d6a5
MLI
29492012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2950
2951 PR c/51294
2952 * c-common.c (conversion_warning): Handle conditional expressions.
2953
880661a4
JW
29542012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2955
2956 PR c++/54930
2957 * c.opt (Wreturn_local_addr): Define new option.
2958
4514a96b
JM
29592012-10-25 Jason Merrill <jason@redhat.com>
2960
f14edc1a
JM
2961 * c.opt (Wvirtual-move-assign): New.
2962
4514a96b
JM
2963 * c.opt (Winherited-variadic-ctor): New.
2964
93100c6b
MG
29652012-10-25 Marc Glisse <marc.glisse@inria.fr>
2966
2967 PR c++/54427
2968 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2969
1efcb8c6
JM
29702012-10-23 Joseph Myers <joseph@codesourcery.com>
2971
2972 * c-common.h (pch_cpp_save_state): Declare.
2973 * c-target.def (c_preinclude): New hook.
2974 * c-opts.c (done_preinclude): New.
2975 (push_command_line_include): Handle default preincluded header.
2976 (cb_file_change): Call pch_cpp_save_state when calling
2977 push_command_line_include.
2978 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2979 (pch_cpp_save_state): New.
2980 (pch_init): Call pch_cpp_save_state conditionally, instead of
2981 calling cpp_save_state.
2982
4a0ae68e
MLI
29832012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2984
2985 PR c/53063
2986 PR c/40989
2987 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2988 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2989 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2990 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2991 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2992 * c-opts.c (c_common_handle_option): Remove explicit handling from
2993 here.
2994 (c_common_post_options): Likewise.
2995
67e4210b
EB
29962012-10-18 Eric Botcazou <ebotcazou@adacore.com>
2997
2998 * c-ada-spec.c (LOCATION_COL): Delete.
2999 (compare_location): New function.
3000 (compare_node): Use it.
3001 (compare_comment): Likewise.
3002
65d4f2cd
MLI
30032012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3004
3005 PR c/53063
3006 PR c/40989
3007 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
3008 * c-opts.c (c_common_handle_option): Do not set them here. Add
3009 comment.
3010 (c_common_post_options): Likewise.
3011
909881cb
EB
30122012-10-16 Eric Botcazou <ebotcazou@adacore.com>
3013
3014 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
3015 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
3016 Remove POINTER_TYPE handling, add large unsigned handling and use
3017 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
3018
3a785c97
JJ
30192012-10-12 Jakub Jelinek <jakub@redhat.com>
3020
3021 PR c/54381
3022 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
3023 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
3024 locs and array of 3 trees instead of just single loc and single
3025 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
3026 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
3027 For *cmp* builtins that take two sources strings report warnings
3028 about first and second source, not about destination and source.
3029
5e54f81d
MG
30302012-10-12 Marc Glisse <marc.glisse@inria.fr>
3031
3032 PR c++/53055
3033 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
3034
f5b02f1e
EB
30352012-10-11 Eric Botcazou <ebotcazou@adacore.com>
3036
3037 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
3038 declaring something coming from another file.
3039
b46dbc6c
AC
30402012-10-10 Arnaud Charlet <charlet@adacore.com>
3041
f5b02f1e 3042 PR ada/54845
b46dbc6c
AC
3043 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
3044
5d9de0d0
PC
30452012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
3046
3047 PR c++/54194
3048 * c-common.c (warn_about_parentheses): Add location_t parameter;
3049 use EXPR_LOC_OR_LOC.
3050 * c-common.h: Update declaration.
3051
a212e43f
MG
30522012-10-09 Marc Glisse <marc.glisse@inria.fr>
3053
3054 PR c++/54427
3055 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
3056 more operations. Make error messages optional.
3057 * c-common.h (enum stv_conv): Moved from c-typeck.c.
3058 (scalar_to_vector): Declare.
3059
b1db7f91
JM
30602012-10-08 Jason Merrill <jason@redhat.com>
3061
3062 * c-common.c (c_common_reswords): Add thread_local.
3063
e28d52cf
DS
30642012-10-08 Dodji Seketeli <dodji@redhat.com>
3065
3066 PR c++/53528 C++11 attribute support
3067 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
3068 new functions.
3069 * c-common.c (check_cxx_fundamental_alignment_constraints): New
3070 static function.
3071 (handle_aligned_attribute): In choose strictest alignment
3072 among many. Use new check_cxx_fundamental_alignment_constraints.
3073 (handle_transparent_union_attribute): In c++11 attribute syntax,
3074 don't look through typedefs.
3075
3b78de56
AC
30762012-10-04 Arnaud Charlet <charlet@adacore.com>
3077
3078 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
3079 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
3080 out of dumpfile.h.
3081
6040bb5f
DC
30822012-09-25 Dehao Chen <dehao@google.com>
3083
3084 PR middle-end/54645
3b78de56 3085 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
3086 map when read in the pch.
3087
0b07a57e
AC
30882012-09-18 Arnaud Charlet <charlet@adacore.com>
3089
3090 * c-ada-spec.c: Style fixes.
3091
da5182be
TQ
30922012-09-18 Thomas Quinot <quinot@adacore.com>
3093
3094 * c.opt (-fada-spec-parent): Define new command line switch.
3095 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
3096 is specified, generate binding spec as a child of the specified unit.
3097
0ccb505d
PC
30982012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
3099 Manuel López-Ibáñez <manu@gcc.gnu.org>
3100
3101 PR c++/53210
3102 * c.opt ([Winit-self]): Enabled by -Wall in C++.
3103
c583af79
AC
31042012-08-23 Arnaud Charlet <charlet@adacore.com>
3105
3106 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
3107 for pointers, and add missing Convention C pragma.
3108 (print_ada_struct_decl): Add missing aliased keyword.
3109 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
3110
1a4049e7
JJ
31112012-08-17 Jakub Jelinek <jakub@redhat.com>
3112
3113 * c-common.c (sizeof_pointer_memaccess_warning): New function.
3114 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
3115 * c-opts.c (c_common_handle_option): Enable it for -Wall.
3116 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
3117 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
3118
70b5e7dc
RG
31192012-08-10 Richard Guenther <rguenther@suse.de>
3120
3121 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
3122
f8923f7e
SB
31232012-08-07 Steven Bosscher <steven@gcc.gnu.org>
3124
3125 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
3126 instead of separate pp_newline and pp_flush.
3127 (print_c_tree): Likewise.
3128
e45abe1f
RH
31292012-07-26 Richard Henderson <rth@redhat.com>
3130
3131 * c-common.c (handle_hot_attribute): Allow labels.
3132 (handle_cold_attribute): Likewise.
3133
332f1d24
JJ
31342012-07-20 Jakub Jelinek <jakub@redhat.com>
3135
3136 PR c++/28656
3137 * c-common.c (check_function_nonnull): Handle multiple nonnull
3138 attributes properly.
3139
7ee2468b
SB
31402012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3141
3142 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
3143 * c-ada-spec.c: Likewise.
3144 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
3145
ee7b28eb
SB
31462012-07-14 Steven Bosscher <steven@gcc.gnu.org>
3147
3148 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
3149 Remove code conditional on it.
3150
6bdf3519
SB
31512012-07-11 Steven Bosscher <steven@gcc.gnu.org>
3152
3153 * c-gimplify.c: Do not include basic-block.h.
3154 * c-common.c: Do not include linfuncs.h.
3155
532aafad
SB
31562012-07-08 Steven Bosscher <steven@gcc.gnu.org>
3157
3158 * c-common.h: Include tree.h.
3159
8d0d1915
JM
31602012-07-02 Jason Merrill <jason@redhat.com>
3161
3162 PR c++/53524
3163 * c-common.c (get_priority): Call default_conversion.
3164
fbc873ad
UB
31652012-07-01 Uros Bizjak <ubizjak@gmail.com>
3166
3167 * c-pch.c (c_common_write_pch): Remove unused variables.
3168
d4a10d0a
SB
31692012-06-29 Steven Bosscher <steven@gcc.gnu.org>
3170
3171 * cppspec.c: Moved from gcc/ to here.
3172
6f3a2e23
KT
31732012-06-27 Kai Tietz <ktietz@redhat.com>
3174
3175 PR preprocessor/37215
3176 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
3177
8ca92d04
SB
31782012-06-21 Steven Bosscher <steven@gcc.gnu.org>
3179
3180 * c-common.h (c_common_print_pch_checksum): Remove.
3181 * c-pch.c: Do not include output.h.
3182 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
3183 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
3184 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
3185 (struct c_pch_header): Remove.
3186 (get_ident): Update gpch version.
3187 (pch_init): Do not print executable_checksum to asm_out_file.
3188 Do not fail if there is no asm_out_file to read back from. Set
3189 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
3190 (c_common_write_pch): Verify that nothing was written to asm_out_file
3191 since pch_init was called. Do not write a c_pch_header, and do not
3192 copy from asm_out_file to the PCH.
3193 (c_common_read_pch): Do not read a c_pch_header, and do not restore
3194 the content of asm_out_file from the PCH.
3195 (c_common_print_pch_checksum): Remove.
3196 * c-opts.c (c_common_init): Print out executable_checksum directly.
3197
70f42967
SB
31982012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3199
3200 * c-target.def (objc_declare_unresolved_class_reference,
3201 objc_declare_class_definition): Add new hooks.
3202
a8781821
SB
32032012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3204
3205 * c-lex.c: Do not include output.h.
3206 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
3207 Remove uses of ASM_OUTPUT_IDENT.
3208
9e1a8dd1
RR
32092012-06-15 Marc Glisse <marc.glisse@inria.fr>
3210
3211 PR c++/51033
3212 * c-common.h (c_build_vec_perm_expr): Move decl here.
3213 * c-common.c (c_build_vec_perm_expr): Move definition
3214 here.
3215
6f07a821
SB
32162012-06-06 Steven Bosscher <steven@gcc.gnu.org>
3217
3218 * c.opt (fconserve-space): Turn into a no-op.
3219
9faeb493 32202012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
3221
3222 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
3223 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
3224 both the start and end of the function.
3225
a4b7d13c
SB
32262012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3227
3228 * c-common.c: Do not include output.h.
3229 * c-pragma.c: Likewise.
3230
c265f413
SA
32312012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3232
3233 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3234 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3235 (lang_decl_name): Handle namespace decls.
3236
be7a421e
SB
32372012-05-31 Steven Bosscher <steven@gcc.gnu.org>
3238
3239 * c-ada-spec.c: Do not include output.h.
3240 * c-semantics.c: Likewise.
3241
65de6659
JM
32422012-05-29 Joseph Myers <joseph@codesourcery.com>
3243
3244 * c-common.c: Fix typo.
3245
ca5f4331
MM
32462012-05-29 Michael Matz <matz@suse.de>
3247
3248 * c-common.h (c_expand_decl): Remove prototype.
3249
4f7f7aca
MLI
32502012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3251
3252 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3253 * c-opts.c (c_common_handle_option): Remove code handling
3254 warn_missing_braces.
3255
4a792f9b
PC
32562012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
3257
3258 PR c++/25137
3259 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3260 -Wmissing_braces.
3261
650dc14a
DS
32622012-05-22 Dodji Seketeli <dodji@redhat.com>
3263
3264 PR c++/53322
3265 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3266
9b095bf1
MLI
32672012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3268
3269 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3270 * c-opts.c (c_common_handle_option): Do not handle explicitly
3271 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3272
0b2c4be5
DS
32732012-05-16 Dodji Seketeli <dodji@redhat.com>
3274
3275 PR preprocessor/7263
3276 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
3277 to cpp_classify_number. For diagnostics, use the precise location
3278 instead of the global input_location.
3279
a1bde5af
PC
32802012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3281
d02924ef 3282 PR c++/11856
a1bde5af
PC
3283 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3284
d1ede5f4
BS
32852012-05-14 Bernd Schmidt <bernds@codesourcery.com>
3286
a1bde5af 3287 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 3288
f2bc201f
MLI
32892012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3290
3291 PR 53063
3292 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3293 Wreorder): Use LangEnabledBy.
3294 * c-opts.c (c_common_handle_option): Do not enable them
3295 explicitly. Call lang-specific generated functions.
3296 (c_common_post_options): Do not set them here.
3297
95744782
MLI
32982012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3299
3300 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3301 Wmissing-field-initializers,Wmissing-parameter-type,
3302 Wold-style-declaration,Woverride-init): Use EnabledBy.
3303 * c-opts.c (c_common_post_options): Do not set here explicitly.
3304
7d5a5747
MLI
33052012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3306
3307 PR 53063
3308 * c-opts.c (c_common_handle_option): Use handle_generated_option
3309 to enable sub-options.
3310
5a3c9cf2
PC
33112012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
3312
3313 PR c++/53158
3314 * c-common.c (warnings_for_convert_and_check): Use warning_at.
3315
3ac8781c
RG
33162012-05-10 Richard Guenther <rguenther@suse.de>
3317
3318 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3319 adjust commentary about TYPE_IS_SIZETYPE types.
3320
1e537948
MLI
33212012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3322
3323 PR c++/53261
3324 * c-common.c (warn_logical_operator): Check that argument of
3325 integer_zerop is not NULL.
3326
f2c4a785
MLI
33272012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3328
3329 PR c/43772
3330 * c-common.c (warn_logical_operator): Do not warn if either side
3331 is already true or false.
3332
50f305ca
MLI
33332012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3334
3335 PR c/51712
3336 * c-common.c (expr_original_type): New.
3337 (shorten_compare): Do not warn for enumeration types.
3338
0c3641b0
MLI
33392012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3340
3341 * c.opt (fpermissive): Add Var(flag_permissive).
3342
7edaa4d2
MG
33432012-04-30 Marc Glisse <marc.glisse@inria.fr>
3344
3345 PR c++/51033
3346 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3347 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3348
b9c8da34
DS
33492012-04-30 Dodji Seketeli <dodji@redhat.com>
3350
3351 Add -Wvarargs option
3352 * c.opt (Wvarargs): Define new option.
3353
e6c69da0
MLI
33542012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3355
3356 * c-common.c (check_function_arguments): Replace
3357 Wmissing-format-attribute with Wsuggest-attribute=format.
3358
90137d8f
MLI
33592012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3360
3361 * c.opt (Wsuggest-attribute=format): New. Alias of
3362 Wmissing-format-attribute.
3363 * c-format.c (decode_format_type): Replace
3364 Wmissing-format-attribute with Wsuggest-attribute=format.
3365 (check_function_format): Likewise.
3366
9faeb493 33672012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
3368
3369 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3370 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3371 * c.opt: Add Wliteral-suffix.
3372
c1771a20
MLI
33732012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3374
3375 PR c/44774
3376 * c.opt (Wpedantic): New.
3377 (pedantic): Alias Wpedantic.
3378 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3379 (c_common_post_options): Likewise.
3380 (sanitize_cpp_opts): Likewise.
3381 * c-lex.c (interpret_float): Likewise.
3382 * c-format.c (check_format_types): Likewise.
3383 * c-common.c (pointer_int_sum): Likewise.
3384 (c_sizeof_or_alignof_type): Likewise.
3385 (c_add_case_label): Likewise.
3386 (c_do_switch_warnings): Likewise.
3387 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3388
04b391c1
JM
33892012-04-15 Jason Merrill <jason@redhat.com>
3390
3391 PR c++/52818
3392 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3393 (C_STD_NAME): Distinguish between C++98 and C++11.
3394
ac868f29
EB
33952012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3396
3397 PR target/52624
3398 * c-common.h (uint16_type_node): Rename into...
3399 (c_uint16_type_node): ...this.
3400 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3401 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3402
fd4116f4
MLI
34032012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3404
3405 * c-common.c (warn_if_unused_value): Move definition to here.
3406 * c-common.h (warn_if_unused_value): Move declaration to here.
3407
573ac65e
WB
34082012-03-23 William Bader <williambader@hotmail.com>
3409
3410 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3411
552b8185
JM
34122012-03-20 Jason Merrill <jason@redhat.com>
3413
3414 * c-common.h (enum cxx_dialect): Add cxx1y.
3415 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3416 test.
3417 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3418 * c-opts.c (c_common_post_options): Likewise.
3419 (set_std_cxx1y): New.
3420 (c_common_handle_option): Call it.
3421 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3422
04398fa8
PC
34232012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3424
3425 PR c++/14710
3426 * c.opt ([Wuseless-cast]): Add.
3427
d2a12ae7
RG
34282012-03-16 Richard Guenther <rguenther@suse.de>
3429
3430 * c-pretty-print.c (pp_c_initializer_list): Adjust.
3431
a12bf402
MLI
34322012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3433
3434 PR c++/44783
3435 * c.opt (ftemplate-backtrace-limit) Add.
3436
5c30094f
RO
34372012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3438
3439 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3440 handling.
3441 * c-pragma.c (handle_pragma_extern_prefix): Remove.
3442 (init_pragma): Don't register extern_prefix.
3443
21fa2faf
RG
34442012-03-12 Richard Guenther <rguenther@suse.de>
3445
3446 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3447 (builtin_type_for_size): Likewise.
3448
e3793c6f
JJ
34492012-02-13 Jakub Jelinek <jakub@redhat.com>
3450
3451 PR c++/52215
3452 * c-common.c (sync_resolve_params): Don't decide whether to convert
3453 or not based on TYPE_SIZE comparison, convert whenever arg_type
3454 is unsigned INTEGER_TYPE.
3455
93286335
PC
34562012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
3457
3458 PR c/52118
3459 * c.opt ([Wunused-local-typedefs]): Fix description.
3460
7a421706
MS
34612012-01-24 Mike Stump <mikestump@comcast.net>
3462
3463 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3464 exactly.
3465
ba9b1f11
RG
34662012-01-18 Richard Guenther <rguenther@suse.de>
3467
3468 * c-opts.c (c_common_post_options): Reset LTO flags if
3469 we are about to generate a PCH.
3470
465406be
PC
34712012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3472
3473 PR c++/51777
3474 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3475 use pp_unsigned_wide_integer.
3476
aee15221
RG
34772012-01-10 Richard Guenther <rguenther@suse.de>
3478
3479 PR middle-end/51806
3480 * c-opts.c (c_common_handle_option): Move -Werror handling
3481 to language independent code.
3482
5720c0dc
RG
34832012-01-05 Richard Guenther <rguenther@suse.de>
3484
3485 PR middle-end/51764
3486 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3487 from common.opt.
3488
73ac190a
PC
34892011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
3490
3491 PR c++/51316
3492 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3493 of array types with an unknown bound.
3494
48b0b196
JM
34952011-12-20 Joseph Myers <joseph@codesourcery.com>
3496
3497 * c-common.c (flag_isoc99): Update comment to refer to C11.
3498 (flag_isoc1x): Change to flag_isoc11.
3499 * c-common.h (flag_isoc99): Update comment to refer to C11.
3500 (flag_isoc1x): Change to flag_isoc11.
3501 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3502 C11.
3503 * c-opts.c (set_std_c1x): Change to set_std_c11.
3504 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3505 Call set_std_c11.
3506 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3507 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3508 * c.opt (std=c1x): Change to std=c11. Document as non-draft
3509 standard.
3510 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3511 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3512 (std=gnu1x): Make alias of std=gnu11.
3513
d58d6eb5
JM
35142011-12-19 Jason Merrill <jason@redhat.com>
3515
3516 PR c++/51228
3517 * c-common.c (handle_transparent_union_attribute): Check the first
3518 field if the type is complete.
3519
b3908fcc
JW
35202011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3521
3522 PR libstdc++/51365
3523 * c-common.c (RID_IS_FINAL): Add.
3524 * c-common.h (RID_IS_FINAL): Add.
3525
fea3ca91
IS
35262011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3527
3528 * c.opt (fgnu-runtime): Provide full description.
3529 (fnext-runtime): Likewise.
3530 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3531
62bad7cd
AM
35322011-11-28 Andrew MacLeod <amacleod@redhat.com>
3533
3534 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3535 predefines in one place. Add LOCK_FREE predefines.
3536 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3537 new func.
3538
c466c4ff
AM
35392011-11-24 Andrew MacLeod <amacleod@redhat.com>
3540
3541 PR c/51256
9faeb493 3542 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 3543 conditions
9faeb493
UB
3544 (resolve_overloaded_atomic_exchange,
3545 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
3546 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3547 error_mark_node for error conditions.
9faeb493 3548
a5952633
RG
35492011-11-08 Richard Guenther <rguenther@suse.de>
3550
3551 PR middle-end/51010
3552 c-family/
3553
0a35513e
AH
35542011-11-07 Richard Henderson <rth@redhat.com>
3555 Aldy Hernandez <aldyh@redhat.com>
3556 Torvald Riegel <triegel@redhat.com>
3557
3558 Merged from transactional-memory.
3559
3560 * c-common.c (handle_tm_wrap_attribute,
3561 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3562 (struct c_common_reswords): Added __transaction* keywords.
3563 (struct c_common_attribute_table): Added transaction* and tm_regparm
3564 attributes.
3565 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3566 masks.
3567 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3568 find_tm_attribute): Declare.
3569
6d87092d
JM
35702011-11-07 Jason Merrill <jason@redhat.com>
3571
3572 PR c++/35688
3573 * c-common.c, c-common.h: Revert yesterday's changes.
3574
8e7860a1
JM
35752011-11-06 Jason Merrill <jason@redhat.com>
3576
3577 PR c++/35688
3578 * c-common.c (decl_has_visibility_attr): Split out from...
3579 (c_determine_visibility): ...here.
3580 * c-common.h: Declare it.
3581
d19fa6b5
JM
35822011-11-06 Joseph Myers <joseph@codesourcery.com>
3583
3584 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3585 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3586 type.
3587 (check_user_alignment): New. Split out of
3588 handle_aligned_attribute. Disallow integer constants with
3589 noninteger types. Conditionally allow zero.
3590 (handle_aligned_attribute): Use check_user_alignment.
3591 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3592
86951993
AM
35932011-11-06 Andrew MacLeod <amacleod@redhat.com>
3594 Richard Henderson <rth@redhat.com>
3595
3596 Merged from cxx-mem-model.
3597
3598 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 3599 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
3600 parameters that are the same type size.
3601 (get_atomic_generic_size): New. Find size of generic
3602 atomic function parameters and do typechecking.
3603 (add_atomic_size_parameter): New. Insert size into parameter list.
3604 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3605 either __atomic_exchange_n or external library call.
9faeb493 3606 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 3607 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 3608 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
3609 __atomic_load_n or an external library call.
3610 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3611 __atomic_store_n or an external library call.
3612 (resolve_overloaded_builtin): Handle new __atomic builtins.
3613
cf9e9959
EB
36142011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3615
3616 PR c++/50608
3617 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3618 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3619 <INDIRECT_REF>: Return the argument.
3620 <ARRAY_REF>: Remove special code for negative offset.
3621 Call fold_build_pointer_plus instead of size_binop.
3622 (fold_offsetof): Remove STOP_REF argument and adjust.
3623 * c-common.h (fold_offsetof_1): Declare.
3624 (fold_offsetof): Remove STOP_REF argument.
3625
25339f10
JM
36262011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3627
3628 PR c++/50810
3629 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3630 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3631 Wnarrowing for C++0x and C++98.
3632 * c.opt ([Wnarrowing]): Update.
3633
89401152
PC
36342011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
3635
3636 PR c++/44277
3637 * c.opt: Add Wzero-as-null-pointer-constant.
3638
97e3ad20
JM
36392011-10-31 Jason Merrill <jason@redhat.com>
3640
15694fdd
JM
3641 * c.opt (-fdeduce-init-list): Off by default.
3642
97e3ad20
JM
3643 PR c++/50920
3644 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3645 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3646 and -Wc++11-compat.
3647 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3648
fb9120e3
RAV
36492011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3650
3651 PR c++/30066
3652 * c.opt (fvisibility-inlines-hidden): Description change.
3653
3ce4f9e4
ESR
36542011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
3655
3656 Implement C++11 user-defined literals.
3657 * c-common.c (build_userdef_literal): New.
3658 * c-common.def: New tree code.
3659 * c-common.h (tree_userdef_literal): New tree struct and accessors.
3660 * c-lex.c (interpret_float): Add suffix parm.
3661 (c_lex_with_flags): Build literal tokens.
3662
5f53c243
PC
36632011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3664
3665 PR c++/50841
3666 Revert:
3667 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3668
3669 PR c++/50810
3670 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3671 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3672 Wnarrowing for C++0x and C++98.
3673 * c.opt ([Wnarrowing]): Update.
3674
263734e1
PC
36752011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3676
3677 PR c++/50810
3678 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3679 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3680 Wnarrowing for C++0x and C++98.
3681 * c.opt ([Wnarrowing]): Update.
3682
d2e312d7
PC
36832011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3684
3685 PR c++/45385
3686 * c-common.c (conversion_warning): Remove code looking for
3687 artificial operands.
3688
d17687f6
DS
36892011-10-18 Dodji Seketeli <dodji@redhat.com>
3690
3691 PR bootstrap/50760
3692 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 3693 !NO_IMPLICIT_EXTERN_C.
d17687f6 3694
fc8396e9
PC
36952011-10-17 Michael Spertus <mike_spertus@symantec.com>
3696
3697 * c-common.c (c_common_reswords): Add __bases,
3698 __direct_bases.
3699 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3700
37012011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3702
3703 PR c++/50757
3704 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3705
847e697a
TT
37062011-10-15 Tom Tromey <tromey@redhat.com>
3707 Dodji Seketeli <dodji@redhat.com>
3708
3709 * c.opt (fdebug-cpp): New option.
3710 * c-opts.c (c_common_handle_option): Handle the option.
3711 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3712 output stream in parameter. Factorized from ...
3713 (maybe_print_line): ... this. Dump location debug information when
3714 -fdebug-cpp is in effect.
3715 (print_line_1): New static function. Takes an output stream in
3716 parameter. Factorized from ...
3717 (print_line): ... here. Dump location information when -fdebug-cpp
3718 is in effect.
3719 (scan_translation_unit): Dump location information when
3720 -fdebug-cpp is in effect.
3721
92582b75
TT
37222011-10-15 Tom Tromey <tromey@redhat.com>
3723 Dodji Seketeli <dodji@redhat.com>
3724
3725 * c.opt (ftrack-macro-expansion): New option. Handle it with and
3726 without argument.
3727 * c-opts.c (c_common_handle_option)<case
3728 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3729 cases. Handle -ftrack-macro-expansion with and without argument.
3730
46427374
TT
37312011-10-15 Tom Tromey <tromey@redhat.com>
3732 Dodji Seketeli <dodji@redhat.com>
3733
3734 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3735 (print_line, cb_define, do_line_change): Adjust to avoid touching
3736 the internals of struct line_map. Use the public API instead.
3737 * c-pch.c (c_common_read_pch): Likewise.
3738 * c-lex.c (fe_file_change): Likewise.
3739
fc8396e9
PC
37402011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
3741
3742 PR c++/17212
3743 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3744
37452011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
3746
3747 PR c++/33067
3748 * c-pretty-print.c (pp_c_floating_constant): Output
3749 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3750
e79983f4
MM
37512011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3752
3753 * c-common.c (def_builtin_1): Delete old interface with two
3754 parallel arrays to hold standard builtin declarations, and replace
3755 it with a function based interface that can support creating
3756 builtins on the fly in the future. Change all uses, and poison
3757 the old names. Make sure 0 is not a legitimate builtin index.
3758 * c-omp.c (c_finish_omp_barrier): Ditto.
3759 (c_finish_omp_taskwait): Ditto.
3760 (c_finish_omp_flush): Ditto.
3761
6637388f
TG
37622011-10-11 Tristan Gingold <gingold@adacore.com>
3763
3764 * c.opt: (fallow-parameterless-variadic-functions): New.
3765
3797cb21
DS
37662011-09-08 Dodji Seketeli <dodji@redhat.com>
3767
3768 PR c++/33255 - Support -Wunused-local-typedefs warning
3769 * c-common.h (struct c_language_function::local_typedefs): New
3770 field.
9faeb493
UB
3771 (record_locally_defined_typedef, maybe_record_typedef_use)
3772 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 3773 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
3774 (maybe_record_typedef_use)
3775 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
3776 * c.opt: Declare new -Wunused-local-typedefs flag.
3777
693ddb1b
EB
37782011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3779
3780 PR middle-end/50266
3781 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3782 computations.
3783
830c740f
RG
37842011-09-05 Richard Guenther <rguenther@suse.de>
3785
3786 * c-common.c (complete_array_type): Use ssize_int (-1) instead
3787 of integer_minus_one_node for empty array upper bounds.
3788
892a371f
DS
37892011-08-28 Dodji Seketeli <dodji@redhat.com>
3790
3791 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3792 it's the first time it's being called on this main TU.
3793
0e3fdb48
RB
37942011-08-24 Richard Guenther <rguenther@suse.de>
3795
3796 PR c/49396
3797 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3798
37992011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
3800
3801 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3802 defined in cpp_init_builtins and c_cpp_builtins.
3803
d4a83c10
JM
38042011-08-19 Joseph Myers <joseph@codesourcery.com>
3805
3806 * c-common.c (c_common_reswords): Add __builtin_complex.
3807 * c-common.h (RID_BUILTIN_COMPLEX): New.
3808
bbceee64
JM
38092011-08-18 Joseph Myers <joseph@codesourcery.com>
3810
3811 * c-common.c (c_common_reswords): Add _Noreturn.
3812 (keyword_is_function_specifier): Handle RID_NORETURN.
3813 * c-common.h (RID_NORETURN): New.
3814
0e3a99ae
AS
38152011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3816
3817 * c-common.c (unsafe_conversion_p): New function. Check if it is
3818 unsafe to convert an expression to the type.
3819 (conversion_warning): Adjust, use unsafe_conversion_p.
3820 * c-common.h (unsafe_conversion_p): New function declaration.
3821
20906c66
JJ
38222011-08-02 Jakub Jelinek <jakub@redhat.com>
3823
3824 * c-common.h (c_finish_omp_atomic): Adjust prototype.
3825 (c_finish_omp_taskyield): New prototype.
3826 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3827 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3828 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
3829 or RHS1 have side-effects, evaluate those too in the right spot,
3830 if it is a decl and LHS is also a decl, error out if they
3831 aren't the same.
3832 (c_finish_omp_taskyield): New function.
3833 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3834 * c-pragma.c (omp_pragmas): Add taskyield.
3835 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3836 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3837 PRAGMA_OMP_CLAUSE_MERGEABLE.
3838
770e5a2e
DS
38392011-07-25 Dodji Seketeli <dodji@redhat.com>
3840
3841 * c-common.h (set_underlying_type): Remove parm name from
3842 declaration.
3843
1baae426
RG
38442011-07-25 Romain Geissler <romain.geissler@gmail.com>
3845
3846 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 3847
fcb21722
JM
38482011-07-22 Jason Merrill <jason@redhat.com>
3849
76f86d00
JM
3850 PR c++/49793
3851 * c.opt (Wnarrowing): New.
3852
3a636414
JM
3853 PR c++/30112
3854 * c-common.h: Declare c_linkage_bindings.
3855 * c-pragma.c (handle_pragma_redefine_extname): Use it.
3856
fcb21722
JM
3857 PR c++/49813
3858 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3859 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3860 as flag_isoc99 for 'restrict'.
3861 (pp_c_specifier_qualifier_list): Likewise for _Complex.
3862
02614448
ILT
38632011-07-21 Ian Lance Taylor <iant@google.com>
3864
3865 PR middle-end/49705
3866 * c-common.c (c_disable_warnings): New static function.
3867 (c_enable_warnings): New static function.
3868 (c_fully_fold_internal): Change local unused_p to bool. Call
3869 c_disable_warnings and c_enable_warnings rather than change
3870 c_inhibit_evaluation_warnings.
3871
34429675
JM
38722011-07-20 Jason Merrill <jason@redhat.com>
3873
3874 PR c++/6709 (DR 743)
3875 PR c++/42603 (DR 950)
3876 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3877 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3878 (CPP_DECLTYPE): New.
3879 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3880
5d49b6a7
RG
38812011-07-19 Richard Guenther <rguenther@suse.de>
3882
3883 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3884 * c-omp.c (c_finish_omp_for): Likewise.
3885
e84a58ff
EB
38862011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3887
3888 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3889 body on the next line.
3890
329af3c7
JM
38912011-07-08 Jason Merrill <jason@redhat.com>
3892
4063e61b
JM
3893 PR c++/45437
3894 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3895
329af3c7
JM
3896 PR c++/49673
3897 * c-common.c (c_apply_type_quals_to_decl): Don't check
3898 TYPE_NEEDS_CONSTRUCTING.
3899
1a072294
RG
39002011-07-06 Richard Guenther <rguenther@suse.de>
3901
3902 * c-common.c (c_common_nodes_and_builtins):
3903 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3904
fce5dddd
RG
39052011-07-05 Richard Guenther <rguenther@suse.de>
3906
3907 * c-common.c (c_common_nodes_and_builtins): Build all common
3908 tree nodes first.
3909
45d439ac
JJ
39102011-06-27 Jakub Jelinek <jakub@redhat.com>
3911
56300785
JJ
3912 * c-common.h (c_tree_chain_next): New static inline function.
3913
45d439ac
JJ
3914 * c-common.c (check_builtin_function_arguments): Handle
3915 BUILT_IN_ASSUME_ALIGNED.
3916
e0a8ecf2
AM
39172011-06-21 Andrew MacLeod <amacleod@redhat.com>
3918
3919 * c-common.c: Add sync_ or SYNC__ to builtin names.
3920 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
3921
39222011-06-20 Pierre Vittet <piervit@pvittet.com>
3923
3924 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3925 handler.
3926 (gen_pragma_handler): New union.
3927 (internal_pragma_handler): New type.
3928 (c_register_pragma_with_data)
3929 (c_register_pragma_with_expansion_and_data): New functions.
3930
3931 * c-pragma.c (registered_pragmas, c_register_pragma_1)
3932 (c_register_pragma, c_register_pragma_with_expansion)
3933 (c_invoke_pragma_handler): Changed to work with
3934 internal_pragma_handler.
3935 (c_register_pragma_with_data)
3936 (c_register_pragma_with_expansion_and_data): New functions.
3937
677f3fa8
JM
39382011-06-14 Joseph Myers <joseph@codesourcery.com>
3939
3940 * c-common.c: Include common/common-target.h.
3941 (handle_section_attribute): Use
3942 targetm_common.have_named_sections.
3943 * c-cppbuiltin.c: Include common/common-target.h.
3944 (c_cpp_builtins): Use targetm_common.except_unwind_info.
3945
d7fc8c14
RG
39462011-06-10 Richard Guenther <rguenther@suse.de>
3947
3948 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3949 to print a IDENTIFIER_NODE.
3950
10e48e39
RO
39512011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3952 Joseph Myers <joseph@codesourcery.com>
3953
3954 * c.opt (fbuilding-libgcc): New option.
3955 * c-cppbuiltin.c (c_cpp_builtins): Define
3956 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3957
6976ae51
JM
39582011-06-07 Jason Merrill <jason@redhat.com>
3959
3ff60975
JM
3960 * c-common.c (max_tinst_depth): Lower default to 900.
3961
6976ae51
JM
3962 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3963
009db074
RG
39642011-06-07 Richard Guenther <rguenther@suse.de>
3965
3966 * c-common.c (c_common_nodes_and_builtins): Do not set
3967 size_type_node or call set_sizetype.
3968
b4592b92
DS
39692011-06-07 Dodji Seketeli <dodji@redhat.com>
3970
3971 PR debug/49130
3972 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 3973 type when using pointer comparison to compare types.
b4592b92 3974
014ab419
JW
39752011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
3976
3977 * c.opt: Add -Wdelete-non-virtual-dtor.
3978 * c-opts.c (c_common_handle_option): Include it in -Wall.
3979
4f60111f
NF
39802011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3981
3982 PR bootstrap/49190
3983
3984 Revert:
3985 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3986
3987 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3988 not tree_common.
3989
4cc4f2f4
JJ
39902011-05-27 Jakub Jelinek <jakub@redhat.com>
3991
3992 PR c++/49165
3993 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3994 C++ don't call c_common_truthvalue_conversion on void type arms.
3995
38e01f9e
NF
39962011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3997
3998 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3999 (stmt_list_stack): Define.
4000 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
4001 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
4002
92e948a8
NF
40032011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4004
4005 * c-common.c (warning_candidate_p): Check for BLOCKs.
4006
a2fc3e63
NF
40072011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4008
4009 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4010 not tree_common.
4011
0957c029
JJ
40122011-05-25 Jakub Jelinek <jakub@redhat.com>
4013
4014 * c-common.c (def_fn_type): Remove extra va_end.
4015
828fb3ba
JM
40162011-05-23 Jason Merrill <jason@redhat.com>
4017
4018 PR c++/48106
4019 * c-common.c (c_common_get_narrower): New.
4020 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
4021
dde05067
NF
40222011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4023
4024 * c-common.h (check_function_arguments): Tweak prototype of
4025 check_function_arguments.
4026 * c-common.c (check_function_arguments): Likewise. Adjust
4027 calls to check_function_nonnull, check_function_format, and
4028 check_function_sentinel.
4029 (check_function_sentinel): Take a FUNCTION_TYPE rather than
4030 separate attributes and typelist arguments. Use
4031 FOREACH_FUNCTION_ARGS to iterate over argument types.
4032
3c0d13bf
PC
40332011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4034
4035 * c-common.c (c_common_reswords): Reorder.
4036 * c-common.h (rid): Likewise.
4037
8242dd04
NF
40382011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4039
4040 * c-common.c (def_fn_type): Don't call build_function_type, call
4041 build_function_type_array or build_varargs_function_type_array
4042 instead.
4043 (c_common_nodes_and_builtins): Likewise.
4044
3d528853
NF
40452011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4046
4047 * c-common.c (c_add_case_label): Omit the loc argument to
4048 build_case_label.
4049 * c-common.h (build_case_label): Remove.
4050 * c-semantics.c (build_case_label): Remove.
4051
a04a722b
JM
40522011-05-05 Joseph Myers <joseph@codesourcery.com>
4053
4054 * c-objc.h (objc_start_method_definition): Update prototype.
4055 * stub-objc.c (objc_start_method_definition): Add extra parameter.
4056
e19a18d4
NF
40572011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4058
4059 * c-common.c (check_main_parameter_types): Reindent. Don't use
4060 TYPE_ARG_TYPES directly.
4061 (handle_nonnull_attribute): Likewise.
4062 (sync_resolve_params): Likewise.
4063 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
4064 to check_format_string.
4065 (handle_format_attribute): Likewise.
4066 (check_format_string): Take a function type to examine instead of
4067 a type list. Use a function_arg_iterator to step through argument
4068 types.
4069
c62c040f
RG
40702011-05-04 Richard Guenther <rguenther@suse.de>
4071
4072 * c-common.c (fix_string_type): Use size_int for index type bounds.
4073 (start_fname_decls): Do not pass NULL to build_int_cst.
4074 (c_init_attributes): Likewise.
4075 * c-lex.c (c_lex_with_flags): Likewise.
4076
c12ff9d8
JM
40772011-04-27 Jason Merrill <jason@redhat.com>
4078
4079 * c-common.c (make_tree_vector_from_list): New.
4080 * c-common.h: Declare it.
4081
304dfbe3
RG
40822011-04-26 Richard Guenther <rguenther@suse.de>
4083
4084 PR preprocessor/48248
4085 * c-ppoutput.c (maybe_print_line): Always optimize newlines
4086 for output size with -P.
4087
3c0d13bf
PC
40882011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4089
4090 * c-common.c (struct c_common_resword): Add __underlying_type.
4091 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
4092
04695783
JM
40932011-04-20 Jim Meyering <meyering@redhat.com>
4094
4095 * c-format.c (init_dollar_format_checking): Remove useless
4096 if-before-free.
4097
0dc33c3c
NP
40982011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4099
4100 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 4101 (objc_detect_field_duplicates): New.
0dc33c3c 4102 * stub-objc.c: Likewise.
3c0d13bf 4103
c59633d9
NP
41042011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4105
4106 * stub-objc.c (objc_declare_protocols): Renamed to
4107 objc_declare_protocol.
4108 * c-objc.h: Likewise.
3c0d13bf 4109
32dabdaf
NP
41102011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4111
4112 * stub-objc.c (objc_declare_class): Updated argument name.
4113
81f653d6
NF
41142011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4115
4116 * c-common.h (c_common_init_ts): Declare.
4117 * c-common.c (c_common_init_ts): Define.
4118
eb345401
NP
41192011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4120
4121 * c-objc.h (objc_build_message_expr): Updated prototype.
4122 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 4123
a358e188
MJ
41242011-04-12 Martin Jambor <mjambor@suse.cz>
4125
4126 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
4127 of cgraph_node.
4128
e6313a78
RG
41292011-04-11 Richard Guenther <rguenther@suse.de>
4130
4131 * c-common.c (complete_array_type): Build a range type of
4132 proper type.
4133
dcf0c47e
NF
41342011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4135
4136 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
4137 (handle_type_generic_attribute): Likewise.
4138
1ee44b26
JM
41392011-04-07 Jason Merrill <jason@redhat.com>
4140
4141 PR c++/48450
4142 * c-common.c (c_common_truthvalue_conversion): Don't ignore
4143 conversion from C++0x scoped enum.
4144
acce4e77
JM
41452011-04-06 Joseph Myers <joseph@codesourcery.com>
4146
4147 * c-target-def.h: New file.
4148 * c-target.def: New file.
4149 * c-target.h: New file.
4150 * c-common.c (targetcm): Don't define here.
4151 * c-common.h (default_handle_c_option): Declare.
4152 * c-format.c: Include c-target.h instead of target.h.
4153 * c-opts.c: Include c-target.h instead of target.h. Explicitly
4154 include tm.h.
4155 (default_handle_c_option): Move from targhooks.c.
4156
e2eefb55
JJ
41572011-03-29 Jakub Jelinek <jakub@redhat.com>
4158
4159 PR preprocessor/48248
4160 * c-ppoutput.c (print): Add src_file field.
4161 (init_pp_output): Initialize it.
4162 (maybe_print_line): Don't optimize by adding up to 8 newlines
4163 if map->to_file and print.src_file are different file.
4164 (print_line): Update print.src_file.
4165
ba78087b
KT
41662011-03-25 Kai Tietz <ktietz@redhat.com>
4167
4168 * c-ada-spec.c (compare_comment): Use filename_cmp
4169 instead of strcmp for filename.
4170
0edf1bb2
JL
41712011-03-25 Jeff Law <law@redhat.com>
4172
adfac8df 4173 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 4174
c7dc8804
JM
41752011-03-25 Jason Merrill <jason@redhat.com>
4176
4177 * c.opt: Add -std=c++03.
4178
d1d879b1
EB
41792011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4180
4181 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
4182
62d784f7
KT
41832011-03-17 Kai Tietz
4184
4185 PR target/12171
5050afdf
KT
4186 * c-pretty-print.c (pp_c_specifier_qualifier_list):
4187 Display allowed attributes for function pointer types.
4188 (pp_c_attributes_display): New function to display
4189 attributes having affects_type_identity flag set to true.
4190 * c-pretty-print.h (pp_c_attributes_display): New prototype.
4191
62d784f7
KT
4192 * c-common.c (c_common_attribute_table):
4193 Add new element.
4194 (c_common_format_attribute_table): Likewise.
4195
82d37118
JM
41962011-03-18 Jason Merrill <jason@redhat.com>
4197
49a000c3
JM
4198 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
4199 * c-common.h: Don't declare it here.
4200 * c-common.c: Or define it here.
4201 * c-opts.c (c_common_handle_option): Or set it here.
4202
82d37118
JM
4203 PR c++/35315
4204 * c-common.c (handle_transparent_union_attribute): Don't
4205 make a duplicate type in C++.
4206
17bc631c
JM
42072011-03-15 Jason Merrill <jason@redhat.com>
4208
4209 * c-common.c (max_constexpr_depth): New.
4210 * c-common.h: Declare it.
4211 * c-opts.c (c_common_handle_option): Set it.
4212 * c.opt (fconstexpr-depth): New option.
4213
1b9b91a6
JM
42142011-03-11 Jason Merrill <jason@redhat.com>
4215
f231b5ff
JM
4216 * c-common.c (attribute_takes_identifier_p): Add missing const.
4217
1b9b91a6
JM
4218 PR c++/46803
4219 * c-common.c (attribute_takes_identifier_p): Assume that an
4220 unknown attribute takes an identifier.
4221
a19e4d44
NF
42222011-03-07 Nathan Froyd <froydnj@codesourcery.com>
4223
4224 PR c/47786
4225 * c-common.c (c_type_hash): Call list_length instead of iterating
4226 through DECL_CHAIN. Rename 'i' to 'n_elements'.
4227
982d62f6
JJ
42282011-02-19 Jakub Jelinek <jakub@redhat.com>
4229
4230 PR c/47809
4231 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4232
0a256240
NP
42332011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4234
4235 * c.opt (fobjc-abi-version=) New.
4236 (fobjc-nilcheck): New.
4237
ba9e6dd5
NF
42382011-02-03 Nathan Froyd <froydnj@codesourcery.com>
4239
4240 PR c++/46890
4241 * c-common.h (keyword_is_decl_specifier): Declare.
4242 * c-common.c (keyword_is_decl_specifier): Define.
4243 (keyword_is_function_specifier): New function.
4244
7273813a
JJ
42452011-01-26 Jakub Jelinek <jakub@redhat.com>
4246
4247 PR c/47473
4248 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4249 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4250 REAL_TYPE.
4251
908ef79b
AC
42522011-01-26 Arnaud Charlet <charlet@adacore.com>
4253
4254 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4255
237e9384
JJ
42562011-01-26 Jakub Jelinek <jakub@redhat.com>
4257
4258 PR pch/47430
4259 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4260 after init_c_lex if pch_file is set.
4261
47ea1edf
DK
42622011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
4263
d4dba752 4264 PR c++/43601
47ea1edf
DK
4265 * c.opt (-fkeep-inline-dllexport): New switch.
4266
2aa9c6ae
RG
42672011-01-12 Richard Guenther <rguenther@suse.de>
4268
4269 PR middle-end/32511
4270 * c-common.c (handle_weak_attribute): Warn instead of error
4271 on declaring an inline function weak.
4272
7bd11157
TT
42732011-01-05 Tom Tromey <tromey@redhat.com>
4274
4275 * c-common.h (lvalue_error): Update.
4276 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
4277 not error.
4278
0e66e494 42792010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 4280
b4f588c4
NP
4281 PR objc/47075
4282 * c-objc.h (objc_finish_message_expr): Added argument to
4283 prototype.
4284
f4da8dce
NF
42852010-12-22 Nathan Froyd <froydnj@codesourcery.com>
4286
4287 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4288 Use prototype_p.
4289
46270f14
NP
42902010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
4291
4292 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 4293 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 4294
4816c593
NF
42952010-12-10 Nathan Froyd <froydnj@codesourcery.com>
4296
4297 * c-common.h (readonly_error): Declare.
4298 * c-common.c (readonly_error): Define.
4299
7a6daeb0
NF
43002010-12-09 Nathan Froyd <froydnj@codesourcery.com>
4301
4302 * c-common.h (invalid_indirection_error): Declare.
4303 * c-common.c (invalid_indirection_error): Define.
4304
892f6119
RG
43052010-12-03 Richard Guenther <rguenther@suse.de>
4306
4307 PR c/46745
4308 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4309 (pp_c_unary_expression): Likewise.
4310 (pp_c_expression): Likewise.
4311
6c39e757
NP
43122010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
4313
4314 * c-common.h (objc_finish_function): New.
4315 (objc_non_volatilized_type): Removed.
4316 (objc_type_quals_match): Removed.
4317 * stub-objc.c (objc_finish_function): New.
4318 (objc_non_volatilized_type): Removed.
4319 (objc_type_quals_match): Removed.
9faeb493 4320
7c475d11
JM
43212010-11-30 Joseph Myers <joseph@codesourcery.com>
4322
4323 * c-common.h (parse_optimize_options): Declare.
4324 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4325 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4326
71f3e391
JM
43272010-11-29 Joseph Myers <joseph@codesourcery.com>
4328
4329 * c-opts.c (check_deps_environment_vars): Use getenv instead of
4330 GET_ENVIRONMENT.
4331 * c-pch.c (O_BINARY): Don't define here.
4332 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4333
d5fabb58
JM
43342010-11-25 Joseph Myers <joseph@codesourcery.com>
4335
4336 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4337 targetm.except_unwind_info.
4338
299404a1
JM
43392010-11-23 Joseph Myers <joseph@codesourcery.com>
4340
4341 * c-opts.c (c_common_handle_option): Pass location to
4342 set_struct_debug_option.
4343
c98cd5bf
JM
43442010-11-23 Joseph Myers <joseph@codesourcery.com>
4345
4346 * c-common.c (visibility_options): Move from ../opts.c.
4347 * c-common.h (struct visibility_flags, visibility_options):
4348 Declare here.
4349 * c-opts.c (finish_options): Rename to c_finish_options.
4350 (c_common_init): Update call to finish_options.
4351
a9546771
NP
43522010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4353
4354 PR objc/34033
4355 * c-lex.c (lex_string): Check that each string in an Objective-C
4356 string concat sequence starts with either one or zero '@', and
4357 that there are no spurious '@' signs at the end.
4358
24a57808
JM
43592010-11-20 Joseph Myers <joseph@codesourcery.com>
4360
4361 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4362 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4363 HANDLE_PRAGMA_VISIBILITY.
4364 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4365 HANDLE_PRAGMA_VISIBILITY): Don't define.
4366 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4367
a9aa2c3a
NF
43682010-11-20 Nathan Froyd <froydnj@codesourcery.com>
4369
4370 PR c++/16189
4371 PR c++/36888
4372 PR c++/45331
4373 * c-common.h (keyword_begins_type_specifier): Declare.
4374 (keyword_is_storage_class_specifier): Declare.
4375 (keyword_is_type_qualifier): Declare.
4376 * c-common.c (keyword_begins_type_specifier): New function.
4377 (keyword_is_storage_class_specifier): New function.
4378 (keyword_is_type_qualifier): Declare.
4379
5386338c
JM
43802010-11-19 Joseph Myers <joseph@codesourcery.com>
4381
4382 PR c/46547
4383 * c-common.c (in_late_binary_op): Define.
4384 (c_common_truthvalue_conversion): Check in_late_binary_op before
4385 calling c_save_expr.
4386 * c-common.h (in_late_binary_op): Declare.
4387
69ccdddb
JM
43882010-11-19 Joseph Myers <joseph@codesourcery.com>
4389
4390 * c-opts.c (c_common_handle_option): Update calls to
4391 set_struct_debug_option.
4392
6b192a09
NP
43932010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
4394
4395 * c-common.h (objc_declare_protocols): Added additional argument.
4396 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 4397
fb52b50a
NF
43982010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4399
4400 PR c/33193
4401 * c-common.h (build_real_imag_expr): Declare.
4402 * c-semantics.c (build_real_imag_expr): Define.
4403
b37421c6
JM
44042010-11-17 Joseph Myers <joseph@codesourcery.com>
4405
4406 * c-opts.c (c_common_parse_file): Take no arguments.
4407 * c-common.h (c_common_parse_file): Update prototype.
4408
07078664
JJ
44092010-11-16 Jakub Jelinek <jakub@redhat.com>
4410
4411 PR c++/46401
4412 * c-common.c (warning_candidate_p): Don't track non-const calls
4413 or STRING_CSTs.
4414
c6a13190
ILT
44152010-11-15 Ian Lance Taylor <iant@google.com>
4416
4417 * c-lex.c (init_c_lex): Set macro debug callbacks if
4418 flag_dump_go_spec is set.
4419
925e8657
NP
44202010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4421
4422 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4423 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4424
bb0a9581
NF
44252010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4426
4427 PR preprocessor/45038
4428 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4429 dialects.
4430
c5fa0890
JM
44312010-11-12 Joseph Myers <joseph@codesourcery.com>
4432
4433 * c-common.h (c_family_lang_mask): Declare.
4434 * c-opts.c (c_family_lang_mask): Make extern.
4435 * c-pragma.c (handle_pragma_diagnostic): Use
4436 control_warning_option.
4437
a4d8c676
JM
44382010-11-12 Joseph Myers <joseph@codesourcery.com>
4439
4440 * c-common.c (parse_optimize_options): Update call to
4441 decode_options.
4442 * c-common.h (c_common_handle_option): Update prototype.
4443 * c-opts.c (c_common_handle_option): Take location_t parameter and
4444 pass it to other functions.
4445
f954bd2c
JM
44462010-11-11 Joseph Myers <joseph@codesourcery.com>
4447
4448 * c-opts.c (warning_as_error_callback): Remove.
4449 (c_common_initialize_diagnostics): Don't call
4450 register_warning_as_error_callback.
4451 (c_common_handle_option): Handle -Werror=normalized= here.
4452
d8a07487
JM
44532010-11-10 Joseph Myers <joseph@codesourcery.com>
4454
4455 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4456 in diagnostic.
4457 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4458 letter.
4459 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4460 Remove trailing '.' from diagnostics.
4461 * c.opt (Wwrite-strings_: Avoid '`' in help text.
4462
d5478783
JM
44632010-11-10 Joseph Myers <joseph@codesourcery.com>
4464
4465 * c-common.c (parse_optimize_options): Pass global_dc to
4466 decode_options.
4467 * c-opts.c (c_common_handle_option): Pass &global_options to
4468 set_Wstrict_aliasing.
4469 * c.opt (v): Don't mark Common or document here.
4470
91ebb981
IS
44712010-11-06 Iain Sandoe <iains@gcc.gnu.org>
4472
4473 PR target/44981
4474 * c-format.c (format_type): New type gcc_objc_string_format_type.
4475 (valid_stringptr_type_p): New.
4476 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 4477 (check_format_string): Pass expected type, use
91ebb981
IS
4478 valid_stringptr_type_p (), check that the format string types are
4479 consistent with the format specification.
4480 (decode_format_attr): Warn if NSString is used outside objective-c.
4481 (format_types_orig): Add NSString.
4482 (format_name): New.
4483 (format_flags): New.
4484 (check_format_arg): Handle format strings requiring an external parser.
4485 first_target_format_type: New variable.
4486 (handle_format_attribute): Set up first_target_format_type, pass the
4487 expected format arg string type to check_format_string().
4488 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
4489 * stub-objc.c (objc_string_ref_type_p): New.
4490 (objc_check_format_arg): New.
4491
bede2adc
NP
44922010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
4493
9faeb493 4494 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
4495 * c-common.h (objc_build_class_component_ref): New.
4496 * stub-objc.c (objc_build_class_component_ref): New.
4497
9a179d01
NP
44982010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4499
4500 * c.opt (Wproperty-assign-default): New option.
4501
22d8d616
NP
45022010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4503
4504 Implemented -fobjc-std=objc1 flag.
4505 * c.opt (fobjc-std=objc1): New option.
4506
2debdb4f
NP
45072010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
4508
4509 Implemented format and noreturn attributes for Objective-C methods.
4510 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4511 attribute for Objective-C methods.
4512
ec52b111
JM
45132010-10-31 Jason Merrill <jason@redhat.com>
4514
4515 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4516 EXPR_LOC_OR_HERE.
4517
46a88c12
NP
45182010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4519
4520 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4521 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4522 (objc_add_property_declaration): Removed arguments for copies and
4523 ivar.
4524 (objc_build_getter_call): Renamed to
4525 objc_maybe_build_component_ref.
4526 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4527 (objc_is_property_ref): New.
4528 * c-common.c (c_common_reswords): Removed copies and ivar.
4529 * stub-objc.c (objc_add_property_declaration): Removed arguments
4530 for copies and ivar.
4531 (objc_build_getter_call): Renamed to
4532 objc_maybe_build_component_ref.
4533 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4534 (objc_is_property_ref): New.
9faeb493 4535
1e4bf85b
AC
45362010-10-29 Arnaud Charlet <charlet@adacore.com>
4537 Matthew Gingell <gingell@adacore.com>
4538
4539 * c-ada-spec.c (separate_class_package): New function.
4540 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4541 name of their enclosing package.
4542 (print_ada_declaration): Use separate_class_package.
4543
81f0bab2
JM
45442010-10-27 Jason Merrill <jason@redhat.com>
4545
2b08f2c5
JM
4546 * c-common.c (c_common_reswords): Add __is_literal_type.
4547 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4548
81f0bab2
JM
4549 * c-common.c (check_case_value): Remove special C++ code.
4550
200290f2
NP
45512010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4552
4553 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4554 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4555 and RID_LAST_PATTR.
4556 (objc_add_property_declaration): Added additional arguments.
4557 (objc_property_attribute_kind): Removed.
4558 (objc_set_property_attr): Removed.
4559 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4560 copy and nonatomic.
4561 * stub-objc.c (objc_add_property_declaration): Added additional
4562 arguments.
4563 (objc_set_property_attr): Removed.
9faeb493 4564
f614132b
NP
45652010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4566
4567 * c-common.h (objc_add_property_variable): Renamed to
4568 objc_add_property_declaration. Added location argument.
4569 * stub-objc.c (objc_add_property_variable): Same change.
4570
b8a18805
NP
45712010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4572
4573 * c-common.h (objc_maybe_printable_name): New.
4574 * stub-objc.c (objc_maybe_printable_name): New.
4575
30cd1c5d
AS
45762010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4577 Andrew Pinski <pinskia@gmail.com>
4578
4579 * c-common.h (c_common_mark_addressable_vec): Declare.
4580 * c-common.c (c_common_mark_addressable_vec): New function.
4581
249a82c4
NP
45822010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4583
4584 * c-common.h (objc_set_method_type): Removed.
4585 (objc_add_method_declaration): Added boolean argument.
4586 (objc_start_method_definition): Same change.
4587 (objc_build_method_signature): Same change.
4588 * stub-objc.c (objc_set_method_type): Removed.
4589 (objc_add_method_declaration): Added boolean argument.
4590 (objc_start_method_definition): Same change.
4591 (objc_build_method_signature): Same change.
4592
977e30bc
NP
45932010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4594
4595 * c-common.h (finish_file): Removed.
4596 (objc_write_global_declarations): New.
4597 * c-opts.c (c_common_parse_file): Do not call finish_file.
4598 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 4599
da57d1b9
NP
46002010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4601
4602 Implemented parsing @synthesize and @dynamic for
4603 Objective-C/Objective-C++.
4604 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4605 (objc_add_synthesize_declaration): New.
4606 (objc_add_dynamic_declaration): New.
4607 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4608 * stub-objc.c (objc_add_synthesize_declaration): New.
4609 (objc_add_dynamic_declaration): New.
9faeb493 4610
0069111f
MM
46112010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4612
4613 PR target/46041
4614 * c-cppbuiltin.c (mode_has_fma): Move function here from
4615 builtins.c. Don't use the fma optab, instead just use the
4616 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4617 using -save-temps.
4618
e426b47b
NP
46192010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4620
4621 Merge from 'apple/trunk' branch on FSF servers.
0069111f 4622
e426b47b
NP
4623 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4624
9faeb493 4625 Radar 4330422
e426b47b
NP
4626 * c-common.h (objc_non_volatilized_type): New declaration
4627 * stub-objc.c (objc_non_volatilized_type): New stub.
4628
90fbfdc3
NP
46292010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4630
e426b47b 4631 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
4632
4633 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4634
9faeb493 4635 Radar 4133425
90fbfdc3 4636 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 4637 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 4638
c37d8c30
IS
46392010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4640
4641 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4642 * c-common.h (enum rid): Add RID_AT_PACKAGE.
4643 (objc_ivar_visibility_kind): New enum.
4644 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 4645 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
4646 visibility enum.
4647
1b1562a5
MM
46482010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4649
4650 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4651 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4652 has the appropriate fma builtins.
4653 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4654
668ea4b1
IS
46552010-10-14 Iain Sandoe <iains@gcc.gnu.org>
4656
1b1562a5 4657 merge from FSF apple 'trunk' branch.
668ea4b1 4658 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 4659
668ea4b1
IS
4660 Radars 4436866, 4505126, 4506903, 4517826
4661 * c-common.c (c_common_resword): Define @property and its attributes.
4662 * c-common.h: Define property attribute enum entries.
4663 (OBJC_IS_PATTR_KEYWORD): New.
4664 (objc_property_attribute_kind): New enum.
4665 Declare objc_set_property_attr (), objc_add_property_variable (),
4666 objc_build_getter_call () and objc_build_setter_call ().
4667 * stub-objc.c (objc_set_property_attr): New stub.
4668 (objc_add_property_variable): Likewise.
4669 (objc_build_getter_call): Likewise.
4670 (objc_build_setter_call) Likewise.
1b1562a5 4671
a1178b30
IS
46722010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4673
1b1562a5 4674 merge from FSF apple 'trunk' branch.
a1178b30
IS
4675 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4676
4677 Radar 3803157 (method attributes)
4678 * c-common.c (handle_deprecated_attribute): Recognize
4679 objc methods as valid declarations.
4680 * c-common.h: Declare objc_method_decl ().
1b1562a5 4681 * stub-objc.c (objc_method_decl): New stub.
a1178b30 4682
a75bfaa6
JM
46832010-10-08 Joseph Myers <joseph@codesourcery.com>
4684
4685 * c-common.c (parse_optimize_options): Call
4686 decode_cmdline_options_to_array_default_mask before
4687 decode_options. Update arguments to decode_options.
4688 * c-common.h (c_common_init_options_struct): Declare.
4689 * c-opts.c (c_common_init_options_struct): New. Split out from
4690 c_common_init_options.
4691
f05b9d93
NP
46922010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4693
4694 Implemented fast enumeration for Objective-C.
4695 * c-common.h (objc_finish_foreach_loop): New.
4696 * stub-objc.c (objc_finish_foreach_loop): New.
4697
1ebe4b4f
JM
46982010-10-05 Joseph Myers <joseph@codesourcery.com>
4699
4700 * c-common.h (struct diagnostic_context): Don't declare here.
4701 (c_common_initialize_diagnostics): Declare using
4702 diagnostic_context typedef.
4703 * c-opts.c (c_common_handle_option): Pass global_dc to
4704 handle_generated_option.
4705
d4d24ba4
JM
47062010-10-04 Joseph Myers <joseph@codesourcery.com>
4707
4708 * c-opts.c (c_common_handle_option): Pass &global_options_set to
4709 handle_generated_option.
4710
478a1c5b
ILT
47112010-10-03 Ian Lance Taylor <iant@google.com>
4712
4713 * c.opt (-fplan9-extensions): New option.
4714
82a1c2fe
FXC
47152010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4716
4717 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4718 Remove.
4719 (c_cpp_builtins): Call functions from cppbuiltin.c instead
4720 of duplicating code.
4721
92902b1b
IS
47222010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4723
4724 * c-common.c: Add two new entries for @optional
4725 and @required keywords.
4726
4727 merge from FSF 'apple/trunk' branch.
4728 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
4729
4730 Radar 4386773
4731 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4732 objective-c keywords.
4733 (objc_set_method_opt): New declaration.
4734 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 4735
46625112
JM
47362010-09-30 Joseph Myers <joseph@codesourcery.com>
4737
4738 * c-common.c (handle_optimize_attribute): Pass &global_options to
4739 cl_optimization_save and cl_optimization_restore.
4740 * c-opts.c (c_common_handle_option): Pass &global_options to
4741 handle_generated_option.
4742 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4743 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4744 &global_options to cl_optimization_restore.
4745
49b91f05
NP
47462010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4747
4748 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4749 Objective-C/Objective-C++ keywords.
4750
13ed556f 47512010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 4752
9faeb493
UB
4753 Merge from 'apple/trunk' branch on FSF servers.
4754
a6341d57
NP
4755 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4756
4757 Radar 4281748
4758 * c-common.h (objc_check_global_decl): New declaration.
4759 * stub-objc.c (objc_check_global_decl): New stub.
4760
f0036cca
JM
47612010-09-29 Joseph Myers <joseph@codesourcery.com>
4762
4763 * c.opt: Don't use VarExists.
4764
e3339d0f
JM
47652010-09-29 Joseph Myers <joseph@codesourcery.com>
4766
4767 * c-common.c (c_cpp_error): Update names of diagnostic_context
4768 members.
4769 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4770 cl_optimization members.
4771 * c-opts.c (warning_as_error_callback, c_common_handle_option,
4772 sanitize_cpp_opts, finish_options): Update names of cpp_options
4773 members.
4774
1973201f
NP
47752010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4776
4777 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
4778 (objc_is_reserved_word): Removed.
4779 * c-common.c: Updated comments.
4780 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4781 objc_is_reserved_word.
4782 * stub-objc.c (objc_is_reserved_word): Removed.
4783
f7e71da5
IS
47842010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4785
9faeb493 4786 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
4787 include attributes.
4788 (objc_start_method_definition): Likewise.
4789 (objc_build_keyword_decl): Likewise.
4790 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4791 (objc_start_method_definition): Likewise.
4792 (objc_build_keyword_decl): Likewise.
4793
c165dca7
IS
47942010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4795
4796 * c-common.h (objc_start_class_interface): Adjust prototype.
4797 (objc_start_category_interface): Likewise.
4798 (objc_start_protocol): Likewise.
4799 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4800 (objc_start_class_interface): Likewise.
4801 (objc_start_category_interface): Likewise.
4802
7458026b
ILT
48032010-09-27 Ian Lance Taylor <iant@google.com>
4804
4805 * c-common.c (c_common_attribute_table): Add no_split_stack.
4806 (handle_no_split_stack_attribute): New static function.
4807
b581b85b
NP
48082010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4809
9faeb493 4810 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
4811
4812 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
4813
9faeb493 4814 Radar 4229905
b581b85b
NP
4815 * c-common.h (objc_have_common_type): New declaration.
4816 * stub-objc.c (objc_have_common_type): New stub.
4817
4818 2005-06-22 Ziemowit Laski <zlaski@apple.com>
4819
4820 Radar 4154928
4821 * c-common.h (objc_common_type): New prototype.
9faeb493 4822 * stub-objc.c (objc_common_type): New stub.
b581b85b 4823
46a4da10
JH
48242010-09-24 Jan Hubicka <jh@suse.cz>
4825
4826 * c-common.c (handle_leaf_attribute): New function.
4827 (struct attribute_spec c_common_att): Add leaf.
4828
e200444e
JM
48292010-09-22 Joseph Myers <joseph@codesourcery.com>
4830
4831 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4832 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4833 -dump, -dump=, -imacros, -imacros=, -include, -include=,
4834 -include-barrier, -include-directory, -include-directory=,
4835 -include-directory-after, -include-directory-after=,
4836 -include-prefix, -include-prefix=, -include-with-prefix,
4837 -include-with-prefix=, -include-with-prefix-after,
4838 -include-with-prefix-after=, -include-with-prefix-before,
4839 -include-with-prefix-before=, -no-integrated-cpp,
4840 -no-line-commands, -no-standard-includes, -no-warnings, -output,
4841 -output=, -pedantic, -pedantic-errors, -preprocess,
4842 -print-missing-file-dependencies, -trace-includes, -traditional,
4843 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4844 -user-dependencies, -verbose, -write-dependencies,
4845 -write-user-dependencies, no-integrated-cpp, traditional): New.
4846
29a80ea6
NP
48472010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4848
4849 PR objc/23710
ac1fc2fc
NP
4850 * c-common.h (objc_start_method_definition): Return bool instead
4851 of void.
4852 * stub-objc.c (objc_start_method_definition): Return bool instead
4853 of void.
4854
48552010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4856
4857 PR objc/25965
4858 * c-common.h (objc_get_interface_ivars): New declaration.
4859 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 4860
de621752
ILT
48612010-09-15 Ian Lance Taylor <iant@google.com>
4862
4863 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 4864 messages. Remove period at end of warning message.
de621752 4865
ba885ec5
NS
48662010-09-09 Nathan Sidwell <nathan@codesourcery.com>
4867
4868 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4869 (handle_alias_attribute): ... here.
4870 (handle_ifunc_attribute): New.
4871
c5ee1358
MM
48722010-09-06 Mark Mitchell <mark@codesourcery.com>
4873
4874 * c-common.h (do_warn_double_promotion): Declare.
4875 * c-common.c (do_warn_double_promotion): Define.
4876
0a0b3574
MM
48772010-09-05 Mark Mitchell <mark@codesourcery.com>
4878
4879 * c.opt (Wdouble-promotion): New.
4880
d1779886
JM
48812010-09-02 Joseph Myers <joseph@codesourcery.com>
4882
4883 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4884 fvtable-thunks, fxref): Mark no longer supported in help text.
4885
2d2bd949
JM
48862010-09-02 Joseph Myers <joseph@codesourcery.com>
4887
4888 * c.opt (Wimport, fall-virtual, falt-external-templates,
4889 fdefault-inline, fenum-int-equiv, fexternal-templates,
4890 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4891 fname-mangling-version-, fnew-abi, fnonnull-objects,
4892 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4893 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4894 applicable.
4895 (fhandle-exceptions): Mark with Alias and Warn.
4896 * c-opts.c (c_common_handle_option): Don't handle options marked
4897 as ignored.
4898
5de8299c
JM
48992010-09-02 Joseph Myers <joseph@codesourcery.com>
4900
4901 * c.opt (Wcomments, Werror-implicit-function-declaration,
4902 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4903 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4904 aliases.
4905 * c-common.c (option_codes): Use OPT_Wcomment instead of
4906 OPT_Wcomments.
4907 * c-opts.c (warning_as_error_callback, c_common_handle_option):
4908 Don't handle options marked as aliases.
4909
0ceb0201
RG
49102010-08-25 Richard Guenther <rguenther@suse.de>
4911
4912 * c-common.c (c_common_get_alias_set): Remove special
4913 handling for pointers.
4914
ac47786e
NF
49152010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4916
4917 * c-common.c: Use FOR_EACH_VEC_ELT.
4918 * c-gimplify.c: Likewise.
4919 * c-pragma.c: Likewise.
4920
c878765b
JM
49212010-08-16 Joseph Myers <joseph@codesourcery.com>
4922
4923 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
4924 RejectDriver.
4925 (MMDX): Change back to MMD. Mark NoDriverArg instead of
4926 RejectDriver.
4927 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4928 instead of OPT_MDX and OPT_MMDX.
4929
603349bf
JM
49302010-08-16 Joseph Myers <joseph@codesourcery.com>
4931
4932 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4933
644fa7ac
JM
49342010-08-12 Joseph Myers <joseph@codesourcery.com>
4935
4936 * c.opt (MD, MMD): Change to MDX and MMDX.
4937 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4938
481e1176
JM
49392010-08-11 Joseph Myers <joseph@codesourcery.com>
4940
4941 * c-opts.c (c_common_handle_option): Call handle_generated_option
4942 instead of handle_option.
4943
ac8dc9f7
NF
49442010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4945
4946 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4947 (maybe_apply_renaming_pragma): Delete unneeded declarations.
4948
4f8c876d
NF
49492010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4950
4951 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
4952 (pending_redefine_extname): Change type to a VEC.
4953 (add_to_renaming_pragma_list): Update for new type of
4954 pending_redefine_extname.
ac8dc9f7 4955 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 4956
3b0c690e
AC
49572010-08-04 Arnaud Charlet <charlet@adacore.com>
4958
4959 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4960 visited.
4961 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4962 decide whether a type has already been declared/seen.
4963 Do not go to the original type.
4964 (dump_nested_types): New parameter forward.
4965 Generate forward declaration if needed and mark type as visited.
4966 (print_ada_declaration): Call dump_nested_types if not already done.
4967 Mark types as visited.
4968
1890bccc
JM
49692010-08-03 Joseph Myers <joseph@codesourcery.com>
4970
4971 * c.opt (-print-pch-checksum): Remove option.
4972 * c-opts.c (c_common_handle_option): Don't handle
4973 OPT_print_pch_checksum.
4974
5f20c657
JM
49752010-07-27 Joseph Myers <joseph@codesourcery.com>
4976
4977 * c-common.h (c_common_handle_option): Update prototype and return
4978 value type.
4979 * c-opts.c (c_common_handle_option): Update prototype and return
4980 value type. Update calls to handle_option and
4981 enable_warning_as_error.
4982
f551f80c
JJ
49832010-07-27 Jakub Jelinek <jakub@redhat.com>
4984
4985 PR c/45079
4986 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4987
61ff2bdc
JM
49882010-07-27 Joseph Myers <joseph@codesourcery.com>
4989
4990 * c-common.h (c_common_missing_argument): Remove.
4991 * c-opts.c (c_common_missing_argument): Remove.
4992 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4993 idirafter, imacros, include, isysroot, isystem, iquote): Add
4994 MissingArgError.
4995 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4996
7a9bf9a4
JM
49972010-07-27 Joseph Myers <joseph@codesourcery.com>
4998
4999 * c-common.h (c_common_option_lang_mask,
5000 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
5001 New.
5002 (c_common_init_options): Update prototype.
5003 * c-opts.c (c_common_option_lang_mask): New.
5004 (c_common_initialize_diagnostics): Split out of
5005 c_common_init_options.
5006 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
5007 New.
5008 (c_common_init_options): Update prototype. Use decoded options in
5009 search for -lang-asm.
5010
910ad8de
NF
50112010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5012
5013 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5014 * c-format.c: Likewise.
5015
718f9c0f
MLI
50162010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5017
5018 * c-common.h: Include diagnostic-core.h. Error if already
5019 included.
5020 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
5021
4d451982
MLI
50222010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5023
adfac8df 5024 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
5025 Do not include expr.h
5026 (vector_mode_valid_p): Move here.
5027
119fe915
SB
50282010-06-21 DJ Delorie <dj@redhat.com>
5029
5030 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
5031 allow these pragmas anywhere.
5032
50332010-06-14 Jakub Jelinek <jakub@redhat.com>
5034
5035 PR bootstrap/44509
5036 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
5037 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
5038 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
5039 ggc_strdup instead of xstrdup.
5040
50412010-06-10 Jakub Jelinek <jakub@redhat.com>
5042
5043 * c-cppbuiltin.c: Include cpp-id-data.h.
5044 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
5045 (lazy_hex_fp_value): New function.
5046 (builtin_define_with_hex_fp_value): Provide definitions lazily.
5047
6662d794
MLI
50482010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5049
5050 * c-gimplify.c: Do not include tree-flow.h
5051
38f8b050
JR
50522010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
5053
5054 PR other/44034
5055 * c-common.c: Rename targetm member:
5056 targetm.enum_va_list -> targetm.enum_va_list_p
5057
9589f23e
AS
50582010-06-28 Anatoly Sokolov <aesok@post.ru>
5059
5060 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
5061
3b06d379
SB
50622010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5063
5064 * c-cppbuiltin.c: Do not include except.h.
5065
d166d4c3
AK
50662010-06-24 Andi Kleen <ak@linux.intel.com>
5067
9faeb493
UB
5068 * c-common.c (warn_for_omitted_condop): New.
5069 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 5070
70cb8be6
JM
50712010-06-21 Joseph Myers <joseph@codesourcery.com>
5072
5073 * c.opt (lang-objc): Remove.
5074 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
5075
a4c97feb
JR
50762010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
5077
5078 * c-opts.c: Include "tm_p.h".
5079
6e2f1956
JM
50802010-06-20 Joseph Myers <joseph@codesourcery.com>
5081
5082 * c-common.c (parse_optimize_options): Update call to
5083 decode_options.
5084
bc87224e
NF
50852010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5086
5087 * c-common.c (record_types_used_by_current_var_decl): Adjust for
5088 new type of types_used_by_cur_var_decl.
5089
b49cf425
JR
50902010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
5091
5092 PR bootstrap/44512
5093 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
5094 for C++ standard compliance.
5095
59f9c2ed
JM
50962010-06-16 Jason Merrill <jason@redhat.com>
5097
5098 * c.opt: Add -Wnoexcept.
5099
33766b66
RG
51002010-06-16 Richard Guenther <rguenther@suse.de>
5101
5102 PR c/44555
5103 * c-common.c (c_common_truthvalue_conversion): Remove
5104 premature and wrong optimization concering ADDR_EXPRs.
5105
eff7e30c
AC
51062010-06-15 Arnaud Charlet <charlet@adacore.com>
5107
5108 * c-ada-spec.c (dump_sloc): Remove column info.
5109 (is_simple_enum): New function.
5110 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
5111 enum types when relevant.
5112
6312e84d
MLI
51132010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5114
9faeb493 5115 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
5116 location.
5117
1cb42611
JM
51182010-06-10 Joseph Myers <joseph@codesourcery.com>
5119
5120 * c-opts.c (c_common_handle_option): Don't handle
5121 OPT_fshow_column.
5122
a9429e29
LB
51232010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5124
5125 * c-pragma.c (push_alignment): Use typed GC allocation.
5126 (handle_pragma_push_options): Likewise.
5127
5128 * c-common.c (parse_optimize_options): Likewise.
5129
5130 * c-common.h (struct sorted_fields_type): Add variable_size GTY
5131 option.
5132
5498f011
JM
51332010-06-07 Joseph Myers <joseph@codesourcery.com>
5134
5135 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
5136 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5137 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5138 flag_signed_bitfields, warn_strict_null_sentinel,
5139 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
5140 flag_gen_declaration, flag_no_gnu_keywords,
5141 flag_implement_inlines, flag_implicit_templates,
5142 flag_implicit_inline_templates, flag_optional_diags,
5143 flag_elide_constructors, flag_default_inline, flag_rtti,
5144 flag_conserve_space, flag_access_control, flag_check_new,
5145 flag_new_for_scope, flag_weak, flag_working_directory,
5146 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
5147 flag_enforce_eh_specs, flag_threadsafe_statics,
5148 flag_pretty_templates): Remove.
5149 * c-common.h (flag_preprocess_only, flag_nil_receivers,
5150 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
5151 flag_replace_objc_classes, flag_undef, flag_no_builtin,
5152 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5153 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5154 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
5155 flag_no_gnu_keywords, flag_implement_inlines,
5156 flag_implicit_templates, flag_implicit_inline_templates,
5157 flag_optional_diags, flag_elide_constructors, flag_default_inline,
5158 flag_rtti, flag_conserve_space, flag_access_control,
5159 flag_check_new, flag_new_for_scope, flag_weak,
5160 flag_working_directory, flag_use_cxa_atexit,
5161 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
5162 flag_threadsafe_statics, flag_pretty_templates,
5163 warn_strict_null_sentinel): Remove.
5164 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
5165 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
5166 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
5167 fimplicit-inline-templates, fimplicit-templates,
5168 flax-vector-conversions, fms-extensions, fnil-receivers,
5169 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
5170 frtti, fshort-double, fshort-enums, fshort-wchar,
5171 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
5172 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
5173 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
5174 gen-decls, undef): Use Var.
5175 (fdefault-inline, foptional-diags): Document as doing nothing.
5176 * c-opts.c (c_common_handle_option): Remove cases for options now
5177 using Var. Mark ignored options as such.
5178
39dabefd
SB
51792010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5180
9faeb493 5181 * c-common.c: Moved to here from parent directory.
39dabefd
SB
5182 * c-common.def: Likewise.
5183 * c-common.h: Likewise.
5184 * c-cppbuiltin.c: Likewise.
5185 * c-dump.c: Likewise.
5186 * c-format.c: Likewise.
5187 * c-format.h : Likewise.
5188 * c-gimplify.c: Likewise.
5189 * c-lex.c: Likewise.
5190 * c-omp.c: Likewise.
5191 * c.opt: Likewise.
5192 * c-opts.c: Likewise.
5193 * c-pch.c: Likewise.
5194 * c-ppoutput.c: Likewise.
5195 * c-pragma.c: Likewise.
5196 * c-pragma.h: Likewise.
5197 * c-pretty-print.c: Likewise.
5198 * c-pretty-print.h: Likewise.
5199 * c-semantics.c: Likewise.
5200 * stub-objc.c: Likewise.
5201
5202 * c-common.c: Include gt-c-family-c-common.h.
5203 * c-pragma.c: Include gt-c-family-c-pragma.h.
5204\f
5624e564 5205Copyright (C) 2010-2015 Free Software Foundation, Inc.
39dabefd
SB
5206
5207Copying and distribution of this file, with or without modification,
5208are permitted in any medium without royalty provided the copyright
5209notice and this notice are preserved.