]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
re PR c++/65790 (compilation error : receive std::index_sequence)
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
a9dcd529
EB
12015-07-08 Eric Botcazou <ebotcazou@adacore.com>
2
3 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
4 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
5
b03b462f
JJ
62015-07-08 Jakub Jelinek <jakub@redhat.com>
7
8 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
9 are to be removed, return NULL rather than original clauses list.
10
c7131fb2
AM
112015-07-07 Andrew MacLeod <amacleod@redhat.com>
12
13 * array-notation-common.c: Adjust includes.
14 * c-ada-spec.c: Likewise.
15 * c-cilkplus.c: Likewise.
16 * c-common.h: Likewise.
17 * c-cppbuiltin.c: Likewise.
18 * c-dump.c: Likewise.
19 * c-format.c: Likewise.
20 * c-gimplify.c: Likewise.
21 * c-indentation.c: Likewise.
22 * c-lex.c: Likewise.
23 * c-omp.c: Likewise.
24 * c-opts.c: Likewise.
25 * c-pch.c: Likewise.
26 * c-ppoutput.c: Likewise.
27 * c-pragma.c: Likewise.
28 * c-pretty-print.c: Likewise.
29 * c-semantics.c: Likewise.
30 * c-ubsan.c: Likewise.
31 * cilk.c: Likewise.
32 * stub-objc.c: Likewise.
33
2a7fb83f
EB
342015-07-07 Eric Botcazou <ebotcazou@adacore.com>
35
36 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
37 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
38
a03c9bf1
JM
392015-07-01 Jason Merrill <jason@redhat.com>
40
36a85135
JM
41 * c-common.h (D_CXX11): Rename from D_CXX0X.
42 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
43 * c-common.c: Adjust.
44
e7fa68d5
JM
45 * c-opts.c (c_common_post_options): Default to C++14.
46
a03c9bf1
JM
47 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
48
fe95b036
ESR
492015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
50
51 Implement N4197 - Adding u8 character literals
a64be36b
EB
52 * c-family/c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
53 CPP_CHAR.
54 * c-family/c-common.c (c_parse_error): Print CPP_UTF8CHAR and
55 CPP_UTF8CHAR_USERDEF tokens.
56 * c-family/c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
57 and CPP_UTF8CHAR tokens.
58 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 59
da2e71c9
MLI
602015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
61
62 PR fortran/66605
63 * c-common.c (do_warn_unused_parameter): Move here.
64 * c-common.h (do_warn_unused_parameter): Declare.
65
b155cfd9
MP
662015-06-29 Marek Polacek <polacek@redhat.com>
67
68 PR c/66322
69 * c-common.c (check_case_bounds): Add bool * parameter. Set
70 OUTSIDE_RANGE_P.
71 (c_add_case_label): Add bool * parameter. Pass it down to
72 check_case_bounds.
73 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
74 warning here.
75 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
76 declarations.
77
31521951
MP
782015-06-27 Marek Polacek <polacek@redhat.com>
79
80 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
81 or VECTOR_INTEGER_TYPE_P throughout.
82 * c-gimplify.c: Likewise.
83
22d03525
MP
842015-06-26 Marek Polacek <polacek@redhat.com>
85
86 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
87 * c-common.c (c_fully_fold_internal): Likewise.
88 (c_alignof_expr): Likewise.
89 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
90 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
91 * cilk.c (create_parm_list): Likewise.
92
af05e6e5
MP
932015-06-26 Marek Polacek <polacek@redhat.com>
94
95 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
96
f0889939
AM
972015-06-25 Andrew MacLeod <amacleod@redhat.com>
98
99 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
100 * c-gimplify.c: Likewise.
101 * c-pragma.c: Likewise.
102 * c-ubsan.c: Likewise.
103 * cilk.c: Likewise.
104
ca752f39
RS
1052015-06-25 Richard Sandiford <richard.sandiford@arm.com>
106
107 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
108 ggc_hasher.
109
16a16ec7
AM
1102015-06-25 Andrew MacLeod <amacleod@redhat.com>
111
112 * cilk.c: Move calls.h after tm.h in the include chain.
113
0ae9bd27
MP
1142015-06-25 Marek Polacek <polacek@redhat.com>
115
116 * array-notation-common.c: Use VAR_P throughout.
117 * c-ada-spec.c: Likewise.
118 * c-common.c: Likewise.
119 * c-format.c: Likewise.
120 * c-gimplify.c: Likewise.
121 * c-omp.c: Likewise.
122 * c-pragma.c: Likewise.
123 * c-pretty-print.c: Likewise.
124 * cilk.c: Likewise.
125
62f9079a
MP
1262015-06-25 Marek Polacek <polacek@redhat.com>
127
128 * cilk.c (extract_free_variables): Use is_global_var.
129
0fa16060
RS
1302015-06-23 Richard Sandiford <richard.sandiford@arm.com>
131
132 * c-common.c: Don't include target-def.h.
133
a68ae2e1
MP
1342015-06-23 Marek Polacek <polacek@redhat.com>
135
136 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
137 when comparing INTEGER_CSTs.
138
c6a2f2d9
PMR
1392015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
140
141 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
142 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
143 (dump_ada_template): Skip partially specialized types.
144
6b4db501
MM
1452015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
146
147 * c-common.c (scalar_to_vector): Use std::swap instead of manually
148 swapping.
149
abb226c9
AM
1502015-06-17 Andrew MacLeod <amacleod@redhat.com>
151
152 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
153 * c-ada-spec.c: Likewise.
154 * c-cilkplus.c: Likewise.
155 * c-common.c: Likewise.
156 * c-common.h: Likewise.
157 * c-cppbuiltin.c: Likewise.
158 * c-dump.c: Likewise.
159 * c-format.c: Likewise.
160 * c-gimplify.c: Likewise.
161 * c-indentation.c: Likewise.
162 * c-lex.c: Likewise.
163 * c-omp.c: Likewise.
164 * c-opts.c: Likewise.
165 * c-pch.c: Likewise.
166 * c-ppoutput.c: Likewise.
167 * c-pragma.c: Likewise.
168 * c-pretty-print.c: Likewise.
169 * c-semantics.c: Likewise.
170 * c-ubsan.c: Likewise.
171 * cilk.c: Likewise.
172 * stub-objc.c: Likewise.
173
076fecad
PP
1742015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
175
176 PR c++/65168
177 * c-common.c (c_common_truthvalue_conversion): Warn when
178 converting an address of a reference to a truth value.
179
13fdf2e2
AM
1802015-06-08 Andrew MacLeod <amacleod@redhat.com>
181
182 * array-notation-common.c : Adjust include files.
183 * c-ada-spec.c : Likewise.
184 * c-cilkplus.c : Likewise.
185 * c-common.c : Likewise.
186 * c-common.h : Likewise.
187 * c-cppbuiltin.c : Likewise.
188 * c-dump.c : Likewise.
189 * c-format.c : Likewise.
190 * c-gimplify.c : Likewise.
191 * c-indentation.c : Likewise.
192 * c-lex.c : Likewise.
193 * c-omp.c : Likewise.
194 * c-opts.c : Likewise.
195 * c-pch.c : Likewise.
196 * c-ppoutput.c : Likewise.
197 * c-pragma.c : Likewise.
198 * c-pretty-print.c : Likewise.
199 * c-semantics.c : Likewise.
200 * c-ubsan.c : Likewise.
201 * cilk.c : Likewise.
202 * stub-objc.c : Likewise.
203
a1661b90
MP
2042015-06-08 Marek Polacek <polacek@redhat.com>
205
206 PR c/66415
207 * c-format.c (location_from_offset): Return LOC if LINE is null.
208
d7438551
AH
2092015-06-05 Aldy Hernandez <aldyh@redhat.com>
210
211 * c-common.h (c_parse_final_cleanups): New prototype.
212 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
213
ecb9f223
AM
2142015-06-04 Andrew MacLeod <amacleod@redhat.com>
215
216 * array-notation-common.c: Adjust includes for restructured coretypes.h.
217 * c-ada-spec.c: Likewise.
218 * c-cilkplus.c: Likewise.
219 * c-common.c: Likewise.
220 * c-common.h: Likewise.
221 * c-cppbuiltin.c: Likewise.
222 * c-dump.c: Likewise.
223 * c-format.c: Likewise.
224 * c-gimplify.c: Likewise.
225 * c-indentation.c: Likewise.
226 * c-lex.c: Likewise.
227 * c-omp.c: Likewise.
228 * c-opts.c: Likewise.
229 * c-pch.c: Likewise.
230 * c-ppoutput.c: Likewise.
231 * c-pragma.c: Likewise.
232 * c-pretty-print.c: Likewise.
233 * c-semantics.c: Likewise.
234 * c-ubsan.c: Likewise.
235 * cilk.c: Likewise.
236 * stub-objc.c: Likewise.
237
6ac48155
DM
2382015-06-02 David Malcolm <dmalcolm@redhat.com>
239
240 PR c/66220:
241 * c-indentation.c (should_warn_for_misleading_indentation): Use
242 expand_location rather than expand_location_to_spelling_point.
243 Don't warn if the guarding statement is more indented than the
244 next/body stmts.
245
773ce42e
DM
2462015-06-02 David Malcolm <dmalcolm@redhat.com>
247
248 * c-indentation.c (warn_for_misleading_indentation): Bail out
249 immediately if -Wmisleading-indentation isn't enabled.
250
4fef8379
ML
2512015-06-01 Martin Liska <mliska@suse.cz>
252
253 * c-format.c (check_format_arg):Use new type-based pool allocator.
254 (check_format_info_main) Likewise.
255
1edfb384
EB
2562015-05-31 Eric Botcazou <ebotcazou@adacore.com>
257
258 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
259 (has_nontrivial_methods): Likewise.
260
9677ef52
MP
2612015-05-25 Marek Polacek <polacek@redhat.com>
262
263 * c-ubsan.c (ubsan_instrument_shift): Use type0.
264
fd5c817a
MP
2652015-05-22 Marek Polacek <polacek@redhat.com>
266
267 PR c/47043
268 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
269
a2f45fe6 2702015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
271
272 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
273 STACK_GROWS_DOWNWARD.
274
a2f45fe6 2752015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
276
277 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
278 STACK_GROWS_DOWNWARD rather than if it is defined.
279
0fee2ac2
MLI
2802015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
281
282 PR c/52952
283 * c-format.c (location_column_from_byte_offset): New.
284 (location_from_offset): New.
285 (struct format_wanted_type): Add offset_loc field.
286 (check_format_info): Move handling of location for extra arguments
287 closer to the point of warning.
288 (check_format_info_main): Pass the result of location_from_offset
289 to warning_at.
290 (format_type_warning): Pass the result of location_from_offset
291 to warning_at.
292
cf4ef6f7
MP
2932015-05-20 Marek Polacek <polacek@redhat.com>
294
295 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
296
3a65ee74
MP
2972015-05-20 Marek Polacek <polacek@redhat.com>
298
299 * c-ada-spec.c (dump_sloc): Use DECL_P.
300
21b634ae
MP
3012015-05-20 Marek Polacek <polacek@redhat.com>
302
303 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
304 * c-common.c: Likewise.
305
0e50b624
DM
3062015-05-19 David Malcolm <dmalcolm@redhat.com>
307
308 * c-common.h (fe_file_change): Strengthen param from
309 const line_map * to const line_map_ordinary *.
310 (pp_file_change): Likewise.
311 * c-lex.c (fe_file_change): Likewise.
312 (cb_define): Use linemap_check_ordinary when invoking
313 SOURCE_LINE.
314 (cb_undef): Likewise.
315 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
316 invoking cb_file_change.
317 (c_finish_options): Likewise.
318 (push_command_line_include): Likewise.
319 (cb_file_change): Strengthen param "new_map" from
320 const line_map * to const line_map_ordinary *.
321 * c-ppoutput.c (cb_define): Likewise for local "map".
322 (pp_file_change): Likewise for param "map" and local "from".
323
fab27f52
MM
3242015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
325
326 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
327
2fe1d762
TV
3282015-05-18 Tom de Vries <tom@codesourcery.com>
329
330 * c-common.c (build_va_arg_1): New function.
331 (build_va_arg): Add address operator to va_list operand if necessary.
332
7a37fa90
MM
3332015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
334
335 PR c/48956
336 * c-common.c (int_safely_convertible_to_real_p): Define.
337 (unsafe_conversion_p): Check conversions involving complex types.
338 (conversion_warning): Add new warning message for conversions which
339 discard imaginary component.
340 * c-common.h: (enum conversion_safety): Add new enumerator for such
341 conversions.
342
3aa3c9fc
MP
3432015-05-14 Marek Polacek <polacek@redhat.com>
344
345 PR c/66066
346 PR c/66127
347 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
348 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
349 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
350 use it. If FOR_INT_CONST, require that all evaluated operands be
351 INTEGER_CSTs.
352
c3388e62
DM
3532015-05-12 David Malcolm <dmalcolm@redhat.com>
354
355 * c-common.h (warn_for_misleading_indentation): New prototype.
356 * c-indentation.c: New file.
357 * c.opt (Wmisleading-indentation): New option.
358
c7b38fd5
TV
3592015-05-12 Tom de Vries <tom@codesourcery.com>
360
361 PR tree-optimization/66010
362 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
363
381bf11e
JM
3642015-05-09 Jason Merrill <jason@redhat.com>
365
edff0c06
JM
366 * c-opts.c (c_common_post_options): Also clear
367 cpp_opts->cpp_warn_cxx11_compat.
368
129211bc
JM
369 * c-common.h (enum cxx_dialect): Add cxx_unset.
370 * c-common.c (cxx_dialect): Initialize to cxx_unset.
371 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
372
381bf11e
JM
373 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
374 (std=gnu++0x): Mark as Undocumented.
375 (std=gnu++1y): Add deprecated message.
376
fe191308
JM
3772015-05-08 Jason Merrill <jason@redhat.com>
378
765189ff
JM
379 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
380 * c-opts.c: Adjust.
381
fe191308
JM
382 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
383
755e528f
MP
3842015-05-08 Marek Polacek <polacek@redhat.com>
385
386 PR c/64918
387 * c.opt (Woverride-init-side-effects): New option.
388
0173bd2a
MP
3892015-05-07 Marek Polacek <polacek@redhat.com>
390
391 PR c/65179
392 * c-common.c (c_fully_fold_internal): Warn when left shifting a
393 negative value.
394 * c.opt (Wshift-negative-value): New option.
395 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
396 when -Wextra and C99/C++11 mode.
397
e0f0d3b9
MP
3982015-05-07 Marek Polacek <polacek@redhat.com>
399 Martin Uecker <uecker@eecs.berkeley.edu>
400
401 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
402 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
403
8243e2a9
JM
4042015-05-05 Jason Merrill <jason@redhat.com>
405
406 * c.opt (Wterminate): New.
407
577cd070
MP
4082015-04-30 Marek Polacek <polacek@redhat.com>
409
410 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
411 require that the non-constant be of a boolean type.
412
0373796b
JT
4132015-04-29 Josh Triplett <josh@joshtriplett.org>
414
e0f0d3b9
MP
415 * c-common.c (handle_section_attribute): Refactor to reduce
416 nesting and distinguish between error cases.
0373796b 417
716c0ba6
MP
4182015-04-29 Marek Polacek <polacek@redhat.com>
419
420 PR c/64610
421 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
422 with 0/1.
423
8848828b
JJ
4242015-04-29 Jakub Jelinek <jakub@redhat.com>
425
426 * c-common.h (omp_clause_mask): Unconditionally define as a class.
427 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
428 HOST_BITS_PER_WIDE_INT.
429
ecd0e562
TV
4302015-04-28 Tom de Vries <tom@codesourcery.com>
431
432 PR tree-optimization/65887
433 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
434
2a877204 4352015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 436 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
437
438 * c-ada-spec.c (in_function): Delete.
439 (dump_generic_ada_node): Do not change in_function and remove the
440 redundant code dealing with it.
441 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
442 (print_ada_methods): Output the static member functions in a nested
443 package after the regular methods as well as associated renamings.
444
4853031e
MP
4452015-04-24 Marek Polacek <polacek@redhat.com>
446
447 PR c/65830
448 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
449 and OPT_Wshift_count_overflow.
450
8c2b7f79
MP
451 PR c/63357
452 * c-common.c (warn_logical_operator): Warn if the operands have the
453 same expressions.
454
b8787813
MP
4552015-04-24 Marek Polacek <polacek@redhat.com>
456
457 PR c/61534
458 * c-common.c (warn_logical_operator): Bail if either operand comes
459 from a macro expansion.
460
8fba1830
BRF
4612015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
462
463 PR target/55143
464 * c-common.c (c_default_pointer_mode): Add definition.
465 * c-common.h (c_default_pointer_mode): Add declaration.
466
17958621
JJ
4672015-03-11 Jakub Jelinek <jakub@redhat.com>
468
469 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
470 on record_builtin_type argument.
471
7ccb1a11
JJ
4722015-03-10 Jakub Jelinek <jakub@redhat.com>
473
474 PR c/65120
475 * c-common.c (warn_logical_not_parentheses): Don't warn for
476 !x == 0 or !x != 0.
477
04fd785e
MP
4782015-03-07 Marek Polacek <polacek@redhat.com>
479
480 PR sanitizer/65280
481 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
482 before trying to figure out whether we have a flexible array member.
483
a4e26206
EB
4842015-03-06 Eric Botcazou <ebotcazou@adacore.com>
485 Jonathan Wakely <jwakely.gcc@gmail.com>
486
487 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
488
0d2489f4
EB
4892015-03-05 Eric Botcazou <ebotcazou@adacore.com>
490
491 PR ada/65319
492 * c-ada-spec.c (print_destructor): Remove obsolete code.
493
83ed54d7
EB
4942015-03-01 Eric Botcazou <ebotcazou@adacore.com>
495
496 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
497 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
498 DECL_TEMPLATE_RESULT emulations.
499 (dump_ada_template)): Add guard for TYPE_METHODS.
500
7631f0e2
MP
5012015-02-27 Marek Polacek <polacek@redhat.com>
502
503 PR c/65040
504 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
505
d1783ae5
KT
5062015-02-27 Kai Tietz <ktietz@redhat.com>
507
508 PR c/35330
509 * c-pragma.c (handle_pragma_weak): Do not try to create
510 weak/alias of declarations not being function, or variable
511 declarations.
512
56a9f6bc
TS
5132015-02-24 Thomas Schwinge <thomas@codesourcery.com>
514
515 PR libgomp/64625
516 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
517 Remove macros.
518 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
519
3d5cb23d
MP
5202015-02-16 Marek Polacek <polacek@redhat.com>
521
522 PR c/65066
523 * c-format.c (check_format_types): Handle null param.
524
fa008882
MP
5252015-02-13 Marek Polacek <polacek@redhat.com>
526
527 PR c/65040
528 * c-format.c (check_format_types): Don't warn about different
529 signedness if the original value is in the range of WANTED_TYPE.
530
785f21af
JM
5312015-02-12 Jason Merrill <jason@redhat.com>
532
533 PR c++/64956
534 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
535 to the current highest version.
536 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
537
4886ec8e
JJ
5382015-02-04 Jakub Jelinek <jakub@redhat.com>
539
540 PR c/64824
541 PR c/64868
542 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
543 instead of RDIV_EXPR. Use build_binary_op instead of
544 build2_loc.
545
40fecdd6
JM
5462015-01-30 Joseph Myers <joseph@codesourcery.com>
547
548 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
549 to pass input_location as first argument.
550
a0c88d06
TV
5512015-01-23 Tom de Vries <tom@codesourcery.com>
552
553 PR libgomp/64672
554 * c.opt (fopenacc): Mark as LTO option.
555
1506ae0e
TV
5562015-01-23 Tom de Vries <tom@codesourcery.com>
557
558 PR libgomp/64707
559 * c.opt (fopenmp): Mark as LTO option.
560
31be63ab
JJ
5612015-01-21 Jakub Jelinek <jakub@redhat.com>
562
563 PR c/63307
564 * cilk.c (fill_decls_vec): Only put decls into vector v.
565 (compare_decls): Fix up formatting.
566
5672015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
568
569 PR c/63307
570 * cilk.c: Include vec.h.
571 (struct cilk_decls): New structure.
572 (wrapper_parm_cb): Split this function to...
573 (fill_decls_vec): ...this...
574 (create_parm_list): ...and this.
575 (compare_decls): New function.
576 (for_local_cb): Remove.
577 (wrapper_local_cb): Ditto.
578 (build_wrapper_type): For now first traverse and fill vector of
579 declarations then sort it and then deal with sorted vector.
580 (cilk_outline): Ditto.
581 (declare_one_free_variable): Ditto.
582
6875457f
JM
5832015-01-21 Jason Merrill <jason@redhat.com>
584
585 PR c++/64629
586 * c-format.c (check_format_arg): Call decl_constant_value.
587
185c9e56
ML
5882015-01-19 Martin Liska <mliska@suse.cz>
589
590 * c-common.c (handle_noicf_attribute): New function.
591
41dbbb37
TS
5922015-01-15 Thomas Schwinge <thomas@codesourcery.com>
593 Bernd Schmidt <bernds@codesourcery.com>
594 James Norris <jnorris@codesourcery.com>
595 Cesar Philippidis <cesar@codesourcery.com>
596 Ilmir Usmanov <i.usmanov@samsung.com>
597 Jakub Jelinek <jakub@redhat.com>
598
599 * c.opt (fopenacc): New option.
600 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
601 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
602 New macros.
603 * c-common.h (c_finish_oacc_wait): New prototype.
604 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
605 (c_finish_oacc_wait): New function.
606 * c-pragma.c (oacc_pragmas): New variable.
607 (c_pp_lookup_pragma, init_pragma): Handle it.
608 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
609 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
610 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
611 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
612 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
613 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
614 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
615 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
616 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
617 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
618 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
619 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
620 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
621 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
622 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
623 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
624 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
625 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
626 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
627 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
628 PRAGMA_OACC_CLAUSE_WORKER.
629
5434dc07
MD
6302015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
631
632 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
633 for the new option fstack-protector_explicit.
634 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
635 (handle_stack_protect_attribute): New function.
636
de1b5c17
MU
6372015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
638
639 * c.opt: New option -Warray-bounds=.
640
adfac8df
JJ
6412015-01-09 Michael Collison <michael.collison@linaro.org>
642
643 * array-notation-common.c: Include hash-set.h, machmode.h,
644 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
645 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
646 * c-ada-spec.c: Ditto.
647 * c-cilkplus.c: Ditto.
648 * c-common.c: Include input.h due to flattening of tree.h.
649 Define macro GCC_C_COMMON_C.
650 * c-common.h: Flatten tree.h header files into c-common.h.
651 Remove include of tree-core.h.
652 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
653 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
654 fold-const.h, wide-int.h, and inchash.h due to
655 flattening of tree.h.
656 * c-dump.c: Ditto.
657 * c-format.c: Flatten tree.h header files into c-common.h.
658 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
659 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
660 fold-const.h, wide-int.h, and inchash.h due to
661 flattening of tree.h.
662 * c-dump.c: Include hash-set.h, machmode.h,
663 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
664 fold-const.h, wide-int.h, and inchash.h due to
665 flattening of tree.h.
666 * c-format.c: Include hash-set.h, machmode.h,
667 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
668 fold-const.h, wide-int.h, inchash.h and real.h due to
669 flattening of tree.h.
670 * c-gimplify.c: Include hash-set.h, machmode.h,
671 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
672 fold-const.h, wide-int.h, and inchash.h due to
673 flattening of tree.h.
674 * cilk.c: Ditto.
675 * c-lex.c: Ditto.
676 * c-omp.c: Ditto.
677 * c-opts.c: Ditto.
678 * c-pch.c: Ditto.
679 * c-ppoutput.c: Ditto.
680 * c-pragma.c: Ditto.
681 * c-pretty-print.c: Ditto.
682 * c-semantics.c: Ditto.
683 * c-ubsan.c: Ditto.
684 * stub-objc.c: Ditto.
685
f5481fc4
JM
6862015-01-08 Jason Merrill <jason@redhat.com>
687
688 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
689 do_ubsan_in_current_function.
690 (ubsan_maybe_instrument_reference_or_call): Likewise.
691 * c-ubsan.h: Declare it.
692
de35aa66
MS
6932015-01-08 Mike Stump <mikestump@comcast.net>
694
695 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
696
4a9a42ab
MP
6972015-01-07 Marek Polacek <polacek@redhat.com>
698
699 PR c/64440
700 * c-common.c (c_fully_fold_internal): Warn for division and modulo
701 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
702
2f42e5de
TS
7032015-01-05 Trevor Saunders <tsaunders@mozilla.com>
704
705 PR c++/31397
706 * c.opt (Wsuggest-override): New option.
707
5624e564
JJ
7082015-01-05 Jakub Jelinek <jakub@redhat.com>
709
710 Update copyright years.
711
5bd012f8
MP
7122015-01-05 Marek Polacek <polacek@redhat.com>
713
714 PR c/64423
715 * c-common.c (warn_array_subscript_with_type_char): Add location_t
716 parameter. Use it.
717 * c-common.h (warn_array_subscript_with_type_char): Update
718 declaration.
719
a7fa8d18
ESR
7202014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
721
722 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
723 Control macro with flag_sized_deallocation.
724
768952be
MU
7252014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
726
727 * c.opt (Wdiscarded-array-qualifiers): New option.
728
1f8d3e84
JJ
7292014-12-19 Jakub Jelinek <jakub@redhat.com>
730
731 PR preprocessor/63831
732 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
733 and __has_cpp_attribute here.
734 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
735 c_common_has_attribute.
736 * c-common.h (c_common_has_attribute): New prototype.
737 * c-lex.c (init_c_lex): Set cb->has_attribute to
738 c_common_has_attribute instead of cb_has_attribute.
739 (get_token_no_padding): New function.
740 (cb_has_attribute): Renamed to ...
741 (c_common_has_attribute): ... this. No longer static. Use
742 get_token_no_padding, require ()s, don't build TREE_LIST
743 unnecessarily, fix up formatting, adjust diagnostics, call
744 init_attributes.
745
20b06add
JM
7462014-12-15 Jason Merrill <jason@redhat.com>
747
748 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
749 (-Wsized-deallocation): New.
750 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
751 to on in C++14 and up.
752
94a073b2
JM
7532014-12-11 Jason Merrill <jason@redhat.com>
754
acaa5911
JM
755 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
756
94a073b2
JM
757 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
758 we aren't complaining about VLAs.
759
7fb66c15
MP
7602014-12-06 Marek Polacek <polacek@redhat.com>
761
762 PR tree-optimization/64183
763 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
764 shift-expression if it is integer_type_node. Use types_compatible_p.
765
b731b390
JJ
7662014-11-29 Jakub Jelinek <jakub@redhat.com>
767
768 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
769 last argument from create_tmp_var_raw and create_tmp_var calls.
770 * cilk.c (gimplify_cilk_spawn): Likewise.
771 * c-omp.c (c_finish_omp_atomic): Likewise.
772
6a4da643
MP
7732014-11-28 Marek Polacek <polacek@redhat.com>
774
775 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
776 instead of unsigned_type_node.
777
541e35a6
MP
7782014-11-28 Marek Polacek <polacek@redhat.com>
779
780 PR c/63862
781 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
782 to op1_utype.
783 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
784 expression to unsigned_type_node.
785
dcc97066
MW
7862014-11-20 Mark Wielaard <mjw@redhat.com>
787
788 PR debug/38757
789 * c-opts.c (set_std_c89): Set lang_hooks.name.
790 (set_std_c99): Likewise.
791 (set_std_c11): Likewise.
792 (set_std_cxx98): Likewise.
793 (set_std_cxx11): Likewise.
794 (set_std_cxx14): Likewise.
795 (set_std_cxx1z): Likewise.
796
aa7da51a
JJ
7972014-11-21 Jakub Jelinek <jakub@redhat.com>
798
799 PR target/63764
800 * c-common.h (convert_vector_to_pointer_for_subscript): Change
801 return type to bool.
009a3480 802 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
803 (convert_vector_to_pointer_for_subscript): Change return type to
804 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
805 and copy it into a TARGET_EXPR and use that instead of *vecp
806 directly.
807
538dd0b7
DM
8082014-11-19 David Malcolm <dmalcolm@redhat.com>
809
810 Merger of git branch "gimple-classes-v2-option-3".
811 * ChangeLog.gimple-classes: New.
812 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
813 from being just a vec<gimple> to a vec<gbind *>.
814
c39a5e99
JJ
8152014-11-18 Jakub Jelinek <jakub@redhat.com>
816
817 PR sanitizer/63813
818 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
819 argument to ptype, set type to TREE_TYPE (ptype). Don't call
820 get_pointer_alignment for non-pointers. Use ptype, or if it is
821 reference type, corresponding pointer type, as type of kind
822 argument.
823 (ubsan_maybe_instrument_reference,
824 ubsan_maybe_instrument_member_call): Adjust callers.
825
8537a4a9
MP
8262014-11-15 Marek Polacek <polacek@redhat.com>
827
828 PR middle-end/63884
829 * array-notation-common.c (is_sec_implicit_index_fn): Return false
830 for NULL fndecl.
831 (extract_array_notation_exprs): Return for NULL node.
832
2079956a
JM
8332014-11-12 Joseph Myers <joseph@codesourcery.com>
834
835 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
836 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
837
1304953e
JJ
8382014-11-12 Jakub Jelinek <jakub@redhat.com>
839
840 PR c/59708
841 * c-common.c (check_builtin_function_arguments): Handle
842 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
843
e5e44252
AK
8442014-11-10 Andi Kleen <ak@linux.intel.com>
845
846 PR c/60804
847 * c-common.h (check_no_cilk): Declare.
848 * cilk.c (get_error_location): New function.
849 (check_no_cilk): Dito.
850
e64b984d
AK
8512014-11-10 Andi Kleen <ak@linux.intel.com>
852
853 * cilk.c (recognize_spawn): Use expression location
854 for error message.
855
13c21655
PC
8562014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
857
858 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
859
42fd12b1
ESR
8602014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
861
862 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
863 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
864 (__cpp_range_based_for, __cpp_initializer_lists,
865 __cpp_delegating_constructors, __cpp_nsdmi,
866 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
867 for C++11; (__cpp_attribute_deprecated): Remove in favor of
868 __has_cpp_attribute.
869 * c-lex.c (cb_has_attribute): New callback CPP function;
870 (init_c_lex): Set has_attribute callback.
871
6f450181
RB
8722014-11-04 Richard Biener <rguenther@suse.de>
873
874 * c-common.c (shorten_compare): Do not shorten mixed
875 DFP and non-DFP compares.
876
26f0e1d6
ESR
8772014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
878
879 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
880 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
881 Commentary and rearrangement of tests.
882 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
883 Commentary and rearrangement of tests.
884 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
885 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
886
ef4bddc2
RS
8872014-10-29 Richard Sandiford <richard.sandiford@arm.com>
888
889 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
890 enum from machine_mode.
891
c582198b
AM
8922014-10-28 Andrew MacLeod <amacleod@redhat.com>
893
adfac8df
JJ
894 * c-common.c: Adjust include files.
895 * c-gimplify.c: Ditto.
896 * cilk.c: Ditto.
897 * c-pragma.c: Ditto.
898 * c-ubsan.c: Ditto.
c582198b 899
60393bbc
AM
9002014-10-27 Andrew MacLeod <amacleod@redhat.com>
901
902 * c-gimplify.c: Adjust include files.
903
d723bb7c
MLI
9042014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
905
906 PR c++/53061
907 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
908 c_common_initialize_diagnostics.
909 * c-common.h: Likewise.
910
90f3520e
MP
9112014-10-24 Marek Polacek <polacek@redhat.com>
912
913 PR c/56980
914 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
915 print "struct"/"union"/"enum" for typedefed names.
916
59d7607a
MP
9172014-10-23 Marek Polacek <polacek@redhat.com>
918
919 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
920 in unsigned type.
921
d95a2703
JJ
9222014-10-22 Jakub Jelinek <jakub@redhat.com>
923 Yury Gribov <y.gribov@samsung.com>
924
925 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
926 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
927 instead of flag_sanitize_recover as bool flag.
928
8e6ef852
KY
9292014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
930
931 * cilk.c: Revert previous change.
932
948cf550
IZ
9332014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
934
935 PR c/63307
936 * cilk.c: Include vec.h.
937 (struct cilk_decls): New structure.
938 (wrapper_parm_cb): Split this function to...
939 (fill_decls_vec): ...this...
940 (create_parm_list): ...and this.
941 (compare_decls): New function.
942 (for_local_cb): Remove.
943 (wrapper_local_cb): Ditto.
944 (build_wrapper_type): For now first traverse and fill vector of
945 declarations then sort it and then deal with sorted vector.
946 (cilk_outline): Ditto.
947 (declare_one_free_variable): Ditto.
948
92574c7c
MP
9492014-10-17 Marek Polacek <polacek@redhat.com>
950
951 * c-opts.c (c_common_post_options): Set warn_implicit_int.
952 * c.opt (Wimplicit-int): Initialize to -1.
953
83685514
AM
9542014-10-16 Andrew MacLeod <amacleod@redhat.com>
955
956 * c-pragma.c: Adjust include files.
957 * c-semantics.c: Likewise.
958
5b8300ea
DD
9592014-10-16 DJ Delorie <dj@redhat.com>
960
961 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
962 multiples of bytes.
963
5f83e90b
JM
9642014-10-14 Jason Merrill <jason@redhat.com>
965
966 PR c++/63455
967 * c-common.h (CPP_PREPARSED_EXPR): New.
968 (N_CP_TTYPES): Adjust.
969
d73326ca
MP
9702014-10-15 Marek Polacek <polacek@redhat.com>
971
972 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
973
78a7c317
DD
9742014-10-14 DJ Delorie <dj@redhat.com>
975
976 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
977 types, not just __int128.
978 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
979 types, not just __int128.
980 (cpp_atomic_builtins): Round pointer sizes up.
981 (type_suffix): Use type precision, not specific types.
982 * c-common.c (c_common_reswords): Remove __int128 special case.
983 (c_common_type_for_size): Check for all __intN types, not just
984 __int128.
985 (c_common_type_for_mode): Likewise.
986 (c_common_signed_or_unsigned_type): Likewise.
987 (c_build_bitfield_integer_type): Likewise.
988 (c_common_nodes_and_builtins): Likewise.
989 (keyword_begins_type_specifier): Likewise.
990 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
991 __intN variants.
992
2a22f99c
TS
9932014-10-12 Trevor Saunders <tsaunders@mozilla.com>
994
995 * c-common.c: Use hash_table instead of hashtab.
996
2a8ef767
ESR
9972014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
998
adfac8df 999 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
1000 C++11 section.
1001
3c9aabbd
MG
10022014-10-03 Marc Glisse <marc.glisse@inria.fr>
1003
1004 PR c++/54427
1005 PR c++/57198
1006 PR c++/58845
1007 * c-common.c (warn_logical_operator): Punt for vectors.
1008
a15f7cb8
ESR
10092014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1010
1011 Implement SD-6: SG10 Feature Test Recommendations
1012 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
1013 macros and the __has_header macro.
1014
8d0cf15e
JM
10152014-09-30 Jason Merrill <jason@redhat.com>
1016
dd5d5481
JM
1017 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
1018 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
1019 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1020
b752325e
JM
1021 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
1022 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1023
8d0cf15e
JM
1024 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
1025 * c-common.c (c_common_reswords): Remove __is_convertible_to.
1026
083e891e
MP
10272014-09-24 Marek Polacek <polacek@redhat.com>
1028
1029 PR c/61405
1030 PR c/53874
1031 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
1032
7861b648
AK
10332014-09-23 Andi Kleen <ak@linux.intel.com>
1034
1035 * c-common.c (handle_no_reorder_attribute): New function.
1036 (c_common_attribute_table): Add no_reorder attribute.
1037
9a79452d
JM
10382014-09-22 Joseph Myers <joseph@codesourcery.com>
1039
1040 * c-cppbuiltin.c (c_cpp_builtins): Define
1041 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
1042 modes.
1043
dd69f047
JM
10442014-09-18 Joseph Myers <joseph@codesourcery.com>
1045
1046 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
1047 for supported floating-point modes.
1048
737a4826
MLI
10492014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1050
1051 * c.opt (Wpsabi): Use LangEnabledBy.
1052 * c-opts.c (c_common_handle_option): Do not handle here.
1053
8cc4b7a2
JM
10542014-09-12 Joseph Myers <joseph@codesourcery.com>
1055
1056 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
1057 macros for floating-point modes.
1058
179b5a55
MG
10592014-09-11 Marc Glisse <marc.glisse@inria.fr>
1060
1061 PR target/58757
1062 * c-cppbuiltin.c (builtin_define_float_constants): Correct
1063 __*_DENORM_MIN__ without denormals.
1064
570a11fe
JJ
10652014-09-10 Jakub Jelinek <jakub@redhat.com>
1066
1067 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1068 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1069 ubsan_create_data callers.
1070 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
1071 index is constant or BIT_AND_EXPR with constant mask and is
1072 small enough for the bound.
1073 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
1074 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
1075
b559c810
MLI
10762014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1077
1078 * c.opt: Add CppReason to various flags.
1079 (Wdate-time): Re-sort.
1080 * c-common.c: Include c-common.h earlier.
1081 (struct reason_option_codes_t): Delete.
1082 (c_option_controlling_cpp_error): Prefix global type and struct
1083 with cpp_.
1084
1ef33fd4
MLI
10852014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1086
1087 * c.opt (Wnormalized): New.
1088 (Wnormalized=): Use Enum and Reject Negative.
1089 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
1090
66bb34c0
JM
10912014-09-08 Joseph Myers <joseph@codesourcery.com>
1092
1093 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
1094 digits of floating-point modes if -fbuilding-libgcc.
1095
53d68b9f
JM
10962014-09-05 Joseph Myers <joseph@codesourcery.com>
1097
1098 * c-cppbuiltin.c (c_cpp_builtins): Also define
1099 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
1100 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
1101 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
1102 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
1103 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
1104 __LIBGCC_STACK_GROWS_DOWNWARD__,
1105 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
1106 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
1107 __LIBGCC_DWARF_FRAME_REGISTERS__,
1108 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
1109 __LIBGCC_STACK_POINTER_REGNUM__ and
1110 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
1111 (builtin_define_with_value): Handle backslash-escaping in string
1112 macro values.
1113
f65586dc
RB
11142014-09-05 Richard Biener <rguenther@suse.de>
1115
1116 PR middle-end/63148
1117 * c-format.c (check_format_arg): Properly handle
1118 effectively signed POINTER_PLUS_EXPR offset.
1119
2b71f4a4
MLI
11202014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1121
1122 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
1123 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
1124 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
1125 and Init.
1126 * c-opts.c (c_common_handle_option): Do not handle here.
1127 (sanitize_cpp_opts): Likewise.
1128 * c-common.c (struct reason_option_codes_t): Handle
1129 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
1130
d2e4feca
MP
11312014-09-03 Marek Polacek <polacek@redhat.com>
1132
1133 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
1134
9a771876
JJ
11352014-09-02 Jakub Jelinek <jakub@redhat.com>
1136 Balaji V. Iyer <balaji.v.iyer@intel.com>
1137 Igor Zamyatin <igor.zamyatin@intel.com>
1138
1139 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
1140 * c-common.c (c_common_reswords): Added _Cilk_for.
1141 * c-common.h (enum rid): Added RID_CILK_FOR.
1142 (cilk_for_number_of_iterations): Add declaration.
1143 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
1144 CILK_FOR.
1145 * c-pragma.c (init_pragma): Register "grainsize" pragma.
1146 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
1147
81b5d104
MLI
11482014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1149
1150 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
1151 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
1152 Wundef): Use CPP, Var and Init.
1153 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
1154
b753b37b
MLI
11552014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1156
1157 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
1158 * c-opts.c (c_common_handle_option): Do not handle here.
1159
028aee17
JM
11602014-08-25 Jason Merrill <jason@redhat.com>
1161
1162 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
1163 -std=c++14 and -std=gnu++14, rather than the reverse.
1164 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
1165 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
1166 * c-common.h (cxx_dialect): Remove cxx1y.
1167
e4276ba5
ESR
11682014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
1169
1170 * c-common.h (enum cxx_dialect): Add cxx14.
1171 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
1172 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
1173 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
1174
a545cacd
JM
11752014-08-22 Jason Merrill <jason@redhat.com>
1176
1177 * c.opt (std=gnu++17): Fix alias.
1178
59ea0364
MP
11792014-08-22 Marek Polacek <polacek@redhat.com>
1180
1181 PR c++/62199
1182 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
1183 check for vector types. Drop LHS argument.
1184 * c-common.h (warn_logical_not_parentheses): Adjust.
1185
596e808c
MLI
11862014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1187
1188 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
1189 (Wmultichar): Likewise.
1190 (Wdate-time): Use C-family languages instead of Common. Use CPP
1191 and Var.
1192 * c-opts.c (c_common_handle_option): Do not handle the above
1193 options here.
1194 (sanitize_cpp_opts): Likewise.
1195
18767f65
MLI
11962014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1197
1198 PR fortran/44054
1199 * c-opts.c: Include tree-diagnostics.h.
1200 (c_diagnostic_finalizer): New.
1201 (c_common_initialize_diagnostics): Use it.
1202
b4413594
MLI
12032014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1204
1205 PR preprocessor/51303
1206 * c-common.c (struct reason_option_codes_t option_codes):
1207 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
1208
43f9a13c
MLI
12092014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1210
1211 PR c/60975
1212 PR c/53063
1213 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
1214 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
1215 (c_common_post_options): Call init_global_opts_from_cpp.
1216 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
1217
04159acf
MP
12182014-08-19 Marek Polacek <polacek@redhat.com>
1219
1220 PR c++/62153
1221 * c-common.c (maybe_warn_bool_compare): New function.
1222 * c-common.h (maybe_warn_bool_compare): Declare.
1223 * c.opt (Wbool-compare): New option.
1224
35aff4fb
MP
12252014-08-19 Marek Polacek <polacek@redhat.com>
1226
1227 * c.opt (Wc99-c11-compat): New option.
1228
177cce46
MP
12292014-08-19 Marek Polacek <polacek@redhat.com>
1230
1231 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
1232 to warn_c90_c99_compat.
1233 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
1234 to -1.
1235
6ae9194f
MLI
12362014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1237 Steven Bosscher <steven@gcc.gnu.org>
1238
1239 PR c/52952
1240 * c-format.c: Add extra_arg_loc and format_string_loc to struct
1241 format_check_results.
1242 (check_function_format): Use true and add comment for boolean
1243 argument.
1244 (finish_dollar_format_checking): Use explicit location when warning.
1245 (check_format_info): Likewise.
1246 (check_format_arg): Set extra_arg_loc and format_string_loc.
1247 (check_format_info_main): Use explicit location when warning.
1248 (check_format_types): Pass explicit location.
1249 (format_type_warning): Likewise.
1250
8e54f6d3
MLI
12512014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1252
1253 PR fortran/44054
1254 * c-format.c: Handle Fortran flags.
1255
cd4e76fc
IZ
12562014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
1257
1258 PR other/61962
1259 * array-notation-common.c (find_rank): Added handling for other
1260 types of references.
1261
f3bede71
MP
12622014-08-10 Marek Polacek <polacek@redhat.com>
1263
1264 PR c/51849
1265 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
1266 * c.opt (Wc90-c99-compat): Add option.
1267
9f25a338
TS
12682014-08-07 Trevor Saunders <tsaunders@mozilla.com>
1269
1270 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1271
62e4eb35
MP
12722014-08-03 Marek Polacek <polacek@redhat.com>
1273
1274 * c-common.c (check_case_value): Add location_t parameter. Use it.
1275 (c_add_case_label): Pass loc to check_case_value.
1276
b787e7a2
TS
12772014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1278
1279 * cilk.c: Use hash_map instead of pointer_map.
1280
6e2830c3
TS
12812014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1282
1283 * c-gimplify.c: Use hash_set instead of pointer_set.
1284
a7ee52fb
IZ
12852014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
1286
1287 PR middle-end/61455
1288 * array-notation-common.c (extract_array_notation_exprs): Handling
1289 of DECL_EXPR added.
1290
944fa280
JJ
12912014-08-01 Jakub Jelinek <jakub@redhat.com>
1292
1293 * c-common.h (min_align_of_type): Removed prototype.
1294 * c-common.c (min_align_of_type): Removed.
1295 * c-ubsan.h (ubsan_maybe_instrument_reference,
1296 ubsan_maybe_instrument_member_call): New prototypes.
1297 * c-ubsan.c: Include stor-layout.h and builtins.h.
1298 (ubsan_maybe_instrument_reference_or_call,
1299 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1300 functions.
1301
b4dfdc11
MG
13022014-07-31 Marc Glisse <marc.glisse@inria.fr>
1303
1304 PR c++/60517
1305 * c.opt (-Wreturn-local-addr): Move to common.opt.
1306
a41844e5
JM
13072014-07-30 Jason Merrill <jason@redhat.com>
1308
1309 PR c++/61659
1310 PR c++/61687
1311 Revert:
1312 * c.opt (-fuse-all-virtuals): New.
1313
976d5a22
TT
13142014-07-30 Tom Tromey <tromey@redhat.com>
1315
1316 PR c/59855
1317 * c.opt (Wdesignated-init): New option.
1318 * c-common.c (c_common_attribute_table): Add "designated_init".
1319 (handle_designated_init): New function.
1320
cdc94aca
MP
13212014-07-24 Marek Polacek <polacek@redhat.com>
1322
1323 PR c/57653
1324 * c-opts.c (c_finish_options): If -imacros is in effect, return.
1325
f41373b6
DS
13262014-07-16 Dodji Seketeli <dodji@redhat.com>
1327
1328 PR preprocessor/60723 - missing system-ness marks for macro tokens
1329 * c-ppoutput.c (struct print::prev_was_system_token): New data
1330 member.
1331 (init_pp_output): Initialize it.
1332 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1333 (do_line_change): Return a flag saying if a line marker was
1334 emitted or not.
1335 (scan_translation_unit): Detect if the system-ness of the token we
1336 are about to emit is different from the one of the previously
1337 emitted token. If so, emit a line marker. Avoid emitting useless
1338 adjacent line markers. Avoid emitting line markers for tokens
1339 originating from the expansion of built-in macros.
1340 (scan_translation_unit_directives_only): Adjust.
1341
4d661eaa
MP
13422014-07-15 Marek Polacek <polacek@redhat.com>
1343
1344 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1345 TYPE_MAX_VALUE is NULL.
1346
b108f48f
JJ
13472014-07-14 Jakub Jelinek <jakub@redhat.com>
1348
1349 PR middle-end/61294
1350 * c.opt (Wmemset-transposed-args): New warning.
1351
c0221884
JM
13522014-07-10 Jason Merrill <jason@redhat.com>
1353
1354 PR c++/61659
1355 PR c++/61687
1356 * c.opt (-fuse-all-virtuals): New.
1357
63dfbb95
RB
13582014-07-09 Richard Biener <rguenther@suse.de>
1359
1360 PR c-family/61741
1361 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1362 using unsigned arithmetic if overflow does not wrap instead of
1363 if overflow is undefined.
1364
773ec47f
MP
13652014-07-06 Marek Polacek <polacek@redhat.com>
1366
1367 PR c/6940
1368 * c.opt (Wsizeof-array-argument): New option.
1369
00a7ba58
JJ
13702014-07-03 Jakub Jelinek <jakub@redhat.com>
1371
1372 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
1373 comments->count <= 1, as comments->entries might be NULL.
1374
52ec0ea3
MP
13752014-07-01 Marek Polacek <polacek@redhat.com>
1376
1377 * c.opt (Wint-conversion): New option.
1378
d5c3d343
MP
13792014-07-01 Marek Polacek <polacek@redhat.com>
1380
1381 PR c/58286
1382 * c.opt (Wincompatible-pointer-types): New option.
1383
6e7ceb17
PC
13842014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1385
1386 PR c++/51400
1387 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1388 Do not discard TYPE_QUALS of type.
1389
da73100b
JM
13902014-06-26 Jason Merrill <jason@redhat.com>
1391
1392 * c-common.h (enum cxx_dialect): Add cxx1z.
1393 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1394 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1395
08eedf75
TJ
13962014-06-26 Teresa Johnson <tejohnson@google.com>
1397
1398 * c-common.h (get_dump_info): Declare.
1399 * c-gimplify.c (c_genericize): Use saved dump files.
1400 * c-opts.c (c_common_parse_file): Begin and end dumps
1401 once around parsing invocation.
1402 (get_dump_info): New function.
1403
7b56b2f8
MP
14042014-06-23 Marek Polacek <polacek@redhat.com>
1405 Andrew MacLeod <amacleod@redhat.com>
1406
1407 PR c/61553
1408 * c-common.c (get_atomic_generic_size): Don't segfault if the
1409 type doesn't have a size.
1410
0e37a2f3
MP
14112014-06-20 Marek Polacek <polacek@redhat.com>
1412
1413 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1414 (ubsan_walk_array_refs_r): New function.
1415 (c_genericize): Instrument array bounds.
1416 * c-ubsan.c: Include "internal-fn.h".
1417 (ubsan_instrument_division): Mark instrumented arrays as having
1418 side effects. Adjust ubsan_type_descriptor call.
1419 (ubsan_instrument_shift): Likewise.
1420 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1421 (ubsan_instrument_bounds): New function.
1422 (ubsan_array_ref_instrumented_p): New function.
1423 (ubsan_maybe_instrument_array_ref): New function.
1424 * c-ubsan.h (ubsan_instrument_bounds): Declare.
1425 (ubsan_array_ref_instrumented_p): Declare.
1426 (ubsan_maybe_instrument_array_ref): Declare.
1427
14282014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
1429
1430 PR lto/61123
1431 * c.opt (fshort-enums): Add to LTO.
1432 * c.opt (fshort-wchar): Likewise.
1433
5c3d09f7
MP
14342014-06-16 Marek Polacek <polacek@redhat.com>
1435
1436 PR c/60439
1437 * c.opt (Wswitch-bool): Add Var.
1438
9cf32741
JJ
14392014-06-12 Jakub Jelinek <jakub@redhat.com>
1440
1441 PR middle-end/61486
1442 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1443 #pragma omp target teams or
1444 #pragma omp {,target }teams distribute simd.
1445
62984918
JM
14462014-06-12 Jason Merrill <jason@redhat.com>
1447
1448 * c.opt (Wabi=, fabi-compat-version): New.
1449 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1450 (c_common_post_options): Handle flag_abi_compat_version default.
1451 Disallow -fabi-compat-version=1.
1452 * c-common.h (abi_version_crosses): New.
1453
f961457f
JH
14542014-06-11 Jan Hubicka <hubicka@ucw.cz>
1455
adfac8df 1456 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
1457 section names that are no longer trees.
1458
92d28cbb
JJ
14592014-06-10 Jakub Jelinek <jakub@redhat.com>
1460
1461 PR fortran/60928
1462 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1463 (omp_pragmas): ... back here.
1464
742938c9
MP
14652014-06-05 Marek Polacek <polacek@redhat.com>
1466
1467 PR c/49706
1468 * c-common.c (warn_logical_not_parentheses): New function.
1469 * c-common.h (warn_logical_not_parentheses): Declare.
1470 * c.opt (Wlogical-not-parentheses): New option.
1471
9d548dfb
MP
14722014-06-04 Marek Polacek <polacek@redhat.com>
1473
1474 PR c/30020
1475 * c-common.c (check_case_bounds): Add location parameter.
1476 Use it.
1477 (c_add_case_label): Pass loc to check_case_bounds.
1478
fedfecef
MP
14792014-06-03 Marek Polacek <polacek@redhat.com>
1480
1481 PR c/60439
1482 * c.opt (Wswitch-bool): New option.
1483
f6a7cffc
TS
14842014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1485
040d18b6
TS
1486 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1487 Remove prototypes.
1488 (record_types_used_by_current_var_decl): Move prototype to where
1489 it belongs.
1490
f6a7cffc
TS
1491 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1492 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1493 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1494
632f2871
RS
14952014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1496
1497 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1498 * c-common.c (c_common_nodes_and_builtins): Don't initialize
1499 void_zero_node.
1500 * c-pretty-print.c (pp_c_void_constant): New function.
1501 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1502 (c_pretty_printer::expression): Handle VOID_CST.
1503 * cilk.c (extract_free_variables): Likewise.
1504 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1505 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1506
766090c2
TS
15072014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1508
1509 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1510 * c-pragma.c (push_alignment): Adjust.
1511 (handle_pragma_push_options): Likewise.
1512
661a0813
MP
15132014-05-09 Marek Polacek <polacek@redhat.com>
1514
1515 PR c/50459
1516 * c-common.c (check_user_alignment): Return -1 if alignment is error
1517 node.
1518 (handle_aligned_attribute): Don't call default_conversion on
1519 FUNCTION_DECLs.
1520 (handle_vector_size_attribute): Likewise.
1521 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1522 (handle_sentinel_attribute): Call default_conversion and allow even
1523 integral types as an argument.
1524
2793eeab
MP
15252014-05-08 Marek Polacek <polacek@redhat.com>
1526
1527 PR c/61053
1528 * c-common.c (min_align_of_type): New function factored out from...
1529 (c_sizeof_or_alignof_type): ...here.
1530 * c-common.h (min_align_of_type): Declare.
1531
f827930a
MP
15322014-05-08 Marek Polacek <polacek@redhat.com>
1533
1534 PR c/61077
1535 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1536 parameter type of main.
1537
ca49b74e
DD
15382014-05-07 DJ Delorie <dj@redhat.com>
1539
1540 * c-cppbuiltin.c (print_bits_of_hex): New.
1541 (builtin_define_type_minmax): Print values using hex so as not to
1542 require a pre-computed list of string values.
1543
1d60af08
KZ
15442014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1545 Mike Stump <mikestump@comcast.net>
1546 Richard Sandiford <rdsandiford@googlemail.com>
1547
1548 * c-ada-spec.c: Include wide-int.h.
1549 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1550 (dump_generic_ada_node): Use wide-int interfaces.
1551 * c-common.c: Include wide-int-print.h.
1552 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1553 (pointer_int_sum): Use wide-int interfaces.
1554 (c_common_nodes_and_builtins): Use make_int_cst.
1555 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1556 (handle_alloc_size_attribute): Use wide-int interfaces.
1557 (get_nonnull_operand): Likewise.
1558 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1559 * c-lex.c: Include wide-int.h.
1560 (narrowest_unsigned_type): Take a widest_int rather than two
1561 HOST_WIDE_INTs.
1562 (narrowest_signed_type): Likewise.
1563 (interpret_integer): Update accordingly. Use wide-int interfaces.
1564 (lex_charconst): Use wide-int interfaces.
1565 * c-pretty-print.c: Include wide-int.h.
1566 (pp_c_integer_constant): Use wide-int interfaces.
1567 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1568 INT_CST_LT_UNSIGNED.
1569
b15458be
RB
15702014-05-06 Richard Biener <rguenther@suse.de>
1571
1572 * c-opts.c (c_common_post_options): For -freestanding,
1573 -fno-hosted and -fno-builtin disable pattern recognition
1574 if not enabled explicitely.
1575
6577374e
MP
15762014-05-02 Marek Polacek <polacek@redhat.com>
1577
1578 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1579
d00887e8
MP
15802014-05-01 Marek Polacek <polacek@redhat.com>
1581
1582 PR c/43245
1583 * c.opt (Wdiscarded-qualifiers): Add.
1584
f8ed5150
MP
15852014-04-30 Marek Polacek <polacek@redhat.com>
1586
1587 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
1588 INT_MIN / -1 sanitization only for integer types.
1589
45484dcf
MP
15902014-04-25 Marek Polacek <polacek@redhat.com>
1591
1592 PR c/18079
1593 * c-common.c (handle_noinline_attribute): Warn if the attribute
1594 conflicts with always_inline attribute.
1595 (handle_always_inline_attribute): Warn if the attribute conflicts
1596 with noinline attribute.
1597
38e514c0
MP
15982014-04-25 Marek Polacek <polacek@redhat.com>
1599
1600 PR c/60156
1601 * c-common.c (check_main_parameter_types): Warn about variadic main.
1602
44875f92
MS
16032014-04-24 Mike Stump <mikestump@comcast.net>
1604
1605 * c.opt (Wshadow-ivar): Default to on.
1606
dcaaa5a0
DP
16072014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1608
1609 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1610
c07d7c02
MP
16112014-04-23 Marek Polacek <polacek@redhat.com>
1612
1613 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1614
1c33c9b7
JJ
16152014-04-22 Jakub Jelinek <jakub@redhat.com>
1616
1617 PR sanitizer/60275
1618 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1619 if flag_sanitize_undefined_trap_on_error.
1620 (ubsan_instrument_division, ubsan_instrument_shift,
1621 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1622 if !flag_sanitize_recover.
1623
793c625f
MG
16242014-04-22 Marc Glisse <marc.glisse@inria.fr>
1625
1626 PR libstdc++/43622
1627 * c-common.c (registered_builtin_types): Make non-static.
1628 * c-common.h (registered_builtin_types): Declare.
1629
b0f1bf36
RB
16302014-04-14 Richard Biener <rguenther@suse.de>
1631 Marc Glisse <marc.glisse@inria.fr>
1632
1633 PR c/60819
1634 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1635 apply may-alias the scalar pointer type when applicable.
1636
3b07fa4a
IZ
16372014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1638
1639 PR middle-end/60467
1640 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1641 as possible argument for Cilk_spawn.
1642
cbbd2b1c
TB
16432014-04-11 Tobias Burnus <burnus@net-b.de>
1644
1645 PR c/60194
1646 * c.opt (Wformat-signedness): Add
1647 * c-format.c(check_format_types): Use it.
1648
6415bd5d
JM
16492014-04-11 Jason Merrill <jason@redhat.com>
1650
1651 PR c++/57926
1652 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1653 default_conversion for an array argument.
1654
6525783a
MP
16552014-04-08 Marek Polacek <polacek@redhat.com>
1656
1657 PR sanitizer/60745
1658 * c-ubsan.c: Include asan.h.
1659 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1660
880a467b
NS
16612014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1662
1663 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1664
7b59ff2d
MP
16652014-04-02 Marek Polacek <polacek@redhat.com>
1666
1667 * c-common.h (c_expand_expr): Remove declaration.
1668
8edbfaa6
JJ
16692014-03-28 Jakub Jelinek <jakub@redhat.com>
1670
1671 PR c++/60689
1672 * c-common.c (add_atomic_size_parameter): When creating new
1673 params vector, push the size argument first.
1674
07d72e1d
JJ
16752014-03-26 Jakub Jelinek <jakub@redhat.com>
1676
1677 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1678 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1679 ubsan_create_data callers.
1680
b35e0fa0
JJ
16812014-03-22 Jakub Jelinek <jakub@redhat.com>
1682
1683 PR debug/60603
1684 * c-opts.c (c_finish_options): Restore cb_file_change call to
1685 <built-in>.
1686
39a1ebb3
JJ
16872014-03-13 Jakub Jelinek <jakub@redhat.com>
1688
1689 PR middle-end/36282
1690 * c-pragma.c (apply_pragma_weak): Only look at
1691 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1692 DECL_ASSEMBLER_NAME_SET_P (decl).
1693 (maybe_apply_pending_pragma_weaks): Exit early if
1694 vec_safe_is_empty (pending_weaks) rather than only when
1695 !pending_weaks.
1696 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
1697 set assembler name back to NULL afterwards.
1698
a07f6ed2
JM
16992014-03-11 Jason Merrill <jason@redhat.com>
1700
1701 * c.opt: Add -std=gnu++14.
1702
75b107f5
IB
17032014-03-11 Ian Bolton <ian.bolton@arm.com>
1704
1705 * c-opts.c (c_common_post_options): Don't override
1706 -ffp-contract=fast if unsafe-math-optimizations is on.
1707
f42c637e
PM
17082014-03-08 Paulo Matos <paulo@matos-sorge.com>
1709
1710 * c.opt: Enable LTO FE for fshort-double.
1711
70e24808
JM
17122014-03-07 Jason Merrill <jason@redhat.com>
1713
1714 * c.opt: Add -std=c++14.
1715
3af9c5e9
MP
17162014-03-06 Marek Polacek <polacek@redhat.com>
1717
1718 PR c/60197
1719 * cilk.c (contains_cilk_spawn_stmt): New function.
1720 (contains_cilk_spawn_stmt_walker): Likewise.
1721 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1722 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1723
b3bdf019
JJ
17242014-03-03 Jakub Jelinek <jakub@redhat.com>
1725
1726 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1727 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1728 even when flag_preprocess_only.
1729
ca7e759d
JM
17302014-02-26 Jason Merrill <jason@redhat.com>
1731
1732 PR c++/59231
1733 PR c++/11586
1734 * c-common.c (shorten_compare): Don't check
1735 c_inhibit_evaluation_warnings.
1736
28e41874
JJ
17372014-02-19 Jakub Jelinek <jakub@redhat.com>
1738
cca615af
JJ
1739 PR c/37743
1740 * c-common.c (c_common_nodes_and_builtins): When initializing
1741 c_uint{16,32,64}_type_node, also set corresponding
1742 uint{16,32,64}_type_node to the same value.
1743
28e41874
JJ
1744 PR c++/60267
1745 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1746 for PRAGMA_IVDEP if flag_preprocess_only.
1747
c2bf53a1
JJ
17482014-02-12 Jakub Jelinek <jakub@redhat.com>
1749
1750 PR c/60101
1751 * c-common.c (merge_tlist): If copy is true, call new_tlist,
1752 if false, add ADD itself, rather than vice versa.
1753 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1754 copy. For SAVE_EXPR, only call merge_tlist once.
1755
8fcbce72
JJ
17562014-02-08 Jakub Jelinek <jakub@redhat.com>
1757
1758 PR middle-end/60092
1759 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1760 and tree_to_uhwi.
1761 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1762 functions.
1763 (c_common_attribute_table): Add alloc_align and assume_aligned
1764 attributes.
1765
0a756a3f
MP
17662014-02-06 Marek Polacek <polacek@redhat.com>
1767
1768 PR c/60087
1769 * c-common.c (warn_for_sign_compare): Call warning_at with location
1770 instead of warning.
1771
7ec4847a
MP
17722014-02-05 Marek Polacek <polacek@redhat.com>
1773
1774 PR c/53123
1775 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1776 statement.
1777
66f20604
MP
17782014-02-04 Marek Polacek <polacek@redhat.com>
1779
1780 PR c/60036
1781 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1782 SAVE_EXPR.
1783
5d77fb19
MG
17842014-02-03 Marc Glisse <marc.glisse@inria.fr>
1785
1786 PR c++/53017
1787 PR c++/59211
1788 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1789 handle_vector_size_attribute, handle_nonnull_attribute): Call
1790 default_conversion on the attribute argument.
1791 (handle_nonnull_attribute): Increment the argument number.
1792
81e5eca8
MP
17932014-01-31 Marek Polacek <polacek@redhat.com>
1794
1795 PR c/59963
1796 * c-common.c (add_atomic_size_parameter): Pass vNULL to
1797 build_function_call_vec.
1798 (resolve_overloaded_builtin): Likewise.
1799 * c-common.h (build_function_call_vec): Adjust declaration.
1800
68fca595
MP
18012014-01-30 Marek Polacek <polacek@redhat.com>
1802
1803 PR c/59940
1804 * c-common.h (unsafe_conversion_p): Adjust declaration.
1805 (warnings_for_convert_and_check): Likewise.
1806 (convert_and_check): Likewise.
1807 * c-common.c (unsafe_conversion_p): Add location parameter. Call
1808 expansion_point_location_if_in_system_header on it.
1809 (warnings_for_convert_and_check): Add location parameter. Call
1810 expansion_point_location_if_in_system_header on it. Use it.
1811 (convert_and_check): Add location parameter. Use it.
1812 (conversion_warning): Likewise.
1813 (c_add_case_label): Adjust convert_and_check calls.
1814 (scalar_to_vector): Adjust unsafe_conversion_p calls.
1815
b72271b9
BI
18162014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1817
1818 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1819 flag_cilkplus.
1820 * c-pragma.c (init_pragma): Likewise.
1821 * c.opt: Likewise.
1822
393e8e8b
MP
18232014-01-23 Marek Polacek <polacek@redhat.com>
1824
1825 PR c/59846
1826 * c-common.c (shorten_compare): Add location_t parameter.
1827 * c-common.h (shorten_binary_op): Adjust declaration.
1828
f04dda30
MP
18292014-01-23 Marek Polacek <polacek@redhat.com>
1830
1831 PR c/58346
1832 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1833 * c-common.h: Declare it.
1834
621955cb
EB
18352014-01-20 Eric Botcazou <ebotcazou@adacore.com>
1836
1837 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1838 * c-ada-spec.c (dump_ads): Likewise.
1839 (cpp_check): Likewise.
1840 (dump_ada_specs): Likewise.
1841
18422014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
1843
1844 PR c++/49718
1845 * c-common.c (handle_no_instrument_function_attribute): Allow
1846 no_instrument_function attribute in class member
1847 definition/declaration.
1848
241f845a
JJ
18492014-01-15 Jakub Jelinek <jakub@redhat.com>
1850
1851 PR c/58943
1852 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1853 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
1854 being COMPOUND_EXPR.
1855 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1856 operand a SAVE_EXPR and second MODIFY_EXPR.
1857
e83b8e2e
JJ
18582014-01-09 Jakub Jelinek <jakub@redhat.com>
1859
1860 PR target/58115
1861 * c-pch.c (c_common_write_pch): Call
1862 prepare_target_option_nodes_for_pch.
1863
23a5b65a
RS
18642014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1865
1866 Update copyright years
1867
f9030485
RS
18682014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1869
1870 * array-notation-common.c, c-cilkplus.c: Use the standard form for
1871 the copyright notice.
1872
f2aa696b
EB
18732013-12-28 Eric Botcazou <ebotcazou@adacore.com>
1874
1875 * c-ada-spec.c (print_constructor): New function.
1876 (print_destructor): Retrieve the origin of the destructor.
1877 (print_ada_declaration): Revamp handling of constructors/destructors.
1878
1f26ac87
JM
18792013-12-23 Stuart Hastings <stuart@apple.com>
1880 Bill Maddox <maddox@google.com>
1881 Jason Merrill <jason@redhat.com>
1882
1883 * c.opt: Add -fdeclone-ctor-dtor.
1884 * c-opts.c (c_common_post_options): Default to on iff -Os.
1885
41958c28
BI
18862013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1887
1888 * c-common.c (c_common_attribute_table): Added "cilk simd function"
1889 attribute.
1890 * c-pragma.h (enum pragma_cilk_clause): Remove.
1891 (enum pragma_omp_clause): Added the following fields:
1892 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1893 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1894 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1895 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1896 PRAGMA_CILK_CLAUSE_UNIFORM.
1897
1898
12893402
BI
18992013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1900
1901 * cilk.c (cilk_outline): Made this function non-static.
1902 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1903 (create_cilk_wrapper): Added a new parameter: a function pointer.
1904 (c_install_body_w_frame_cleanup): Remove
1905 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1906 * c-common.h (cilk_outline): New prototype.
1907 (gimplify_cilk_spawn): Removed two parameters.
1908 (cilk_install_body_with_frame_cleanup): New prototype.
1909 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1910 CILK_SPAWN_STMT case.
1911
085b42ed
BS
19122013-12-11 Bernd Schmidt <bernds@codesourcery.com>
1913
2ce064c3
BS
1914 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1915
085b42ed
BS
1916 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1917 (int_array_type_node): Remove.
1918 * c-common.c (c_common_nodes_and_builtins): Don't build it.
1919
9e36c9ed
MP
19202013-12-05 Marek Polacek <polacek@redhat.com>
1921
1922 PR c/52023
1923 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1924 [ADJUST_FIELD_ALIGN].
1925
296674db
JM
19262013-12-04 Joseph Myers <joseph@codesourcery.com>
1927
1928 PR c/52023
1929 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1930 and check field alignment if set.
1931 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1932 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1933
31e071ae
MP
19342013-12-04 Jakub Jelinek <jakub@redhat.com>
1935 Marek Polacek <polacek@redhat.com>
1936
1937 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1938 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1939
d7947e19
L
19402013-11-29 H.J. Lu <hongjiu.lu@intel.com>
1941
1942 PR c/59309
1943 * cilk.c (gimplify_cilk_spawn): Properly handle function without
1944 arguments.
1945
fad7652e
JJ
19462013-11-29 Jakub Jelinek <jakub@redhat.com>
1947
1948 PR c/59280
1949 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1950 goto invalid. If it is error_mark_node, don't issue further
1951 diagnostics.
1952
8b5e1202
SO
19532013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1954
1955 * c.opt (Wopenmp-simd): New.
1956
0a508bb6
JJ
19572013-11-22 Jakub Jelinek <jakub@redhat.com>
1958
1959 * c-ubsan.h (ubsan_instrument_return): New prototype.
1960 * c-ubsan.c (ubsan_instrument_return): New function.
1961
2fb9a547
AM
19622013-11-22 Andrew MacLeod <amacleod@redhat.com>
1963
1964 * c-common.c: Add required include files from gimple.h.
1965 * c-gimplify.c: Likewise
1966 * cilk.c: Likewise
1967
8400e75e
DM
19682013-11-22 David Malcolm <dmalcolm@redhat.com>
1969
1970 * c-common.c (unsafe_conversion_p): Remove use of
1971 EXPR_LOC_OR_HERE macro.
1972 (conversion_warning): Likewise.
1973 (warnings_for_convert_and_check): Likewise.
1974 (warn_for_collisions_1): Likewise.
1975 (shorten_compare): Likewise, and remove use of in_system_header
1976 macro, using the location from the former.
1977 * c-lex.c (dump_one_header): Remove use of input_filename macro.
1978 (cb_def_pragma): Remove use of in_system_header macro.
1979 (lex_string): Likewise.
1980 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1981
eb1ce453
KZ
19822013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1983 Mike Stump <mikestump@comcast.net>
1984 Richard Sandiford <rdsandiford@googlemail.com>
1985
1986 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1987 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1988 tree_fits_shwi_p or tree_fits_uhwi_p.
1989 (dump_generic_ada_node): Likewise.
1990 * c-format.c (check_format_arg): Likewise.
1991 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1992
6b3b8c27
KZ
19932013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1994
1995 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1996
49b0aa18
JC
19972013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
1998
1999 PR c/53001
2000 * c-common.c (unsafe_conversion_p): Make this function
2001 return an enumeration with more detail.
2002 (conversion_warning): Use the new return type of
2003 unsafe_conversion_p to separately warn either about conversions
2004 that lower floating point number precision or about the other
2005 kinds of conversions.
2006 * c-common.h (enum conversion_safety): New enumeration.
2007 (unsafe_conversion_p): switching return type to
2008 conversion_safety enumeration.
2009 * c.opt: Adding new warning -Wfloat-conversion and
2010 enabling it with -Wconversion.
2011
b826515a
BS
20122013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2013
2014 * c-opts.c: Include plugin.h.
2015 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
2016
b9a55b13
MP
20172013-11-19 Marek Polacek <polacek@redhat.com>
2018
2019 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
2020 call.
2021 (ubsan_instrument_shift): Likewise.
2022 (ubsan_instrument_vla): Likewise.
2023
7d362f6c
RS
20242013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2025
2026 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
2027 cast to unsigned type.
2028
386b1f1f
RS
20292013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2030
2031 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
2032 tree_low_cst.
2033 (complete_array_type): Update comment to refer to tree_to_[su]hwi
2034 rather than tree_low_cst.
2035
ae7e9ddd
RS
20362013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2037
2038 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
2039 tree_to_uhwi throughout.
2040
9439e9a1
RS
20412013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2042
2043 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
2044 tree_low_cst (..., 0) with tree_to_shwi throughout.
2045
cc269bb6
RS
20462013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2047
2048 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
2049 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
2050
9541ffee
RS
20512013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2052
2053 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
2054 host_integerp (..., 0) with tree_fits_shwi_p throughout.
2055
c02065fc
AH
20562013-11-15 Aldy Hernandez <aldyh@redhat.com>
2057
2058 * c-cilkplus.c: New file.
2059 * c-common.c (readonly_error): Add location argument.
2060 * c-common.h (readonly_error): Same.
2061 (c_finish_cilk_clauses): Protoize.
2062 (c_check_cilk_loop): Same.
2063 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
2064 Do not fail on error_mark_node.
2065 Abstract increment canonicalization to here...
2066 (c_omp_for_incr_canonicalize_ptr): New.
2067 c-pragma.c (init_pragma): Register "simd" pragma.
2068 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
2069 (enum pragma_cilk_clause): New.
2070
9cc65f15
RS
20712013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2072
2073 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
2074 wchar_type and host_integerp checks.
2075
18f429e2
AM
20762013-11-14 Andrew MacLeod <amacleod@redhat.com>
2077
2078 * c-common.c: Likewise.
2079 * c-gimplify.c: Likewise.
2080 * cilk.c: Likewise.
2081
d8a2d370
DN
20822013-11-14 Diego Novillo <dnovillo@google.com>
2083
2084 * c-common.c: Include fold-const.h.
2085 Include stor-layout.h.
2086 Include calls.h.
2087 Include stringpool.h.
2088 Include attribs.h.
2089 Include varasm.h.
2090 Include trans-mem.h.
2091 * c-cppbuiltin.c: Include stor-layout.h.
2092 Include stringpool.h.
2093 * c-format.c: Include stringpool.h.
2094 * c-lex.c: Include stringpool.h.
2095 Include stor-layout.h.
2096 * c-pragma.c: Include stringpool.h.
2097 Include attribs.h.
2098 Include varasm.h.
2099 Include gcc-symtab.h.
2100 * c-pretty-print.c: Include stor-layout.h.
2101 Include attribs.h.
2102 * cilk.c: Include stringpool.h.
2103 Include calls.h.
2104
38b7bc7f
JM
21052013-11-13 Joseph Myers <joseph@codesourcery.com>
2106
2107 * c-common.h (enum rid): Add RID_AUTO_TYPE.
2108 * c-common.c (c_common_reswords): Add __auto_type.
2109 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
2110
45b0be94
AM
21112013-11-12 Andrew MacLeod <amacleod@redhat.com>
2112
18f429e2
AM
2113 * c-common.c: Include gimplify.h.
2114 * c-gimplify.c: Likewise.
2115 * cilk.c: Likewise.
2116 * c-omp.c: Include gimple-expr.h instead of gimple.h.
2117 * c-ubsan.c: Don't include gimple.h.
45b0be94 2118
582d9b50
JM
21192013-11-12 Joseph Myers <joseph@codesourcery.com>
2120
2121 * c-common.c (c_common_reswords): Add _Thread_local.
2122
6b28e197
JM
21232013-11-09 Joseph Myers <joseph@codesourcery.com>
2124
2125 * c-common.c (atomic_size_supported_p): New function.
2126 (resolve_overloaded_atomic_exchange)
2127 (resolve_overloaded_atomic_compare_exchange)
2128 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
2129 Use it instead of comparing size with a local list of sizes.
2130
267bac10
JM
21312013-11-07 Andrew MacLeod <amacleod@redhat.com>
2132 Joseph Myers <joseph@codesourcery.com>
2133
2134 * c-common.h (enum rid): Add RID_ATOMIC.
2135 * c-common.c (c_common_reswords): Add _Atomic.
2136 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
2137 (keyword_is_type_qualifier): Accept RID_ATOMIC.
2138 * c-format.c (check_format_types): Check for extra _Atomic
2139 qualifiers in format argument.
2140 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
2141 (pp_c_type_qualifier_list): Mention _Atomic in comment.
2142
5157b91e
TB
21432013-11-06 Tobias Burnus <burnus@net-b.de>
2144
2145 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
2146
6dbe0958
JM
21472013-11-06 Joseph Myers <joseph@codesourcery.com>
2148
2149 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
2150 standards modes.
2151 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
2152 to mean lack of IEEE 754 support.
2153
e8ff5196
TB
21542013-11-05 Tobias Burnus <burnus@net-b.de>
2155
2156 * c.opt (-Wdate-time): New option
2157 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
2158
254a0760
JM
21592013-11-05 Joseph Myers <joseph@codesourcery.com>
2160
2161 * c-cppbuiltin.c (cpp_iec_559_value): Test
2162 flag_excess_precision_cmdline not flag_excess_precision.
2163
6d7f7e0a
TB
21642013-11-05 Tobias Burnus <burnus@net-b.de>
2165
2166 * c.opt (fopenmp-simd): New option.
2167 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
2168 (omp_pragmas): ... this new struct.
2169 (c_pp_lookup_pragma): Also walk omp_pragmas.
2170 (init_pragma): Init pragmas for -fopenmp-simd.
2171
55a7f02f
MP
21722013-11-04 Marek Polacek <polacek@redhat.com>
2173
2174 PR c++/58979
2175 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
2176
9193fb05
JM
21772013-11-04 Joseph Myers <joseph@codesourcery.com>
2178
2179 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
2180 New functions.
2181 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
2182
94159ecf
EB
21832013-11-04 Eric Botcazou <ebotcazou@adacore.com>
2184
2185 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
2186 (dump_ada_specs): Adjust prototype of second callback.
2187 * c-ada-spec.c (cpp_check): New global variable.
2188 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
2189 (print_generic_ada_decl): Likewise.
2190 (has_static_fields): Change return type to bool and add guard.
2191 (has_nontrivial_methods): New predicate.
2192 (is_tagged_type): Change return type to bool.
2193 (separate_class_package): Call has_nontrivial_methods.
2194 (pp_ada_tree_identifier): Minor tweaks.
2195 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
2196 (dump_ada_array_domains): Likewise.
2197 (dump_ada_array_type): Likewise.
2198 (dump_template_types): Remove cpp_check parameter and do not pass it to
2199 dump_generic_ada_node.
2200 (dump_ada_template): Likewise.
2201 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
2202 recursively.
2203 (print_ada_methods): Change return type to integer. Remove cpp_check
2204 parameter and do not pass it down.
2205 (dump_nested_types): Remove cpp_check parameter and do not pass it to
2206 dump_generic_ada_node.
2207 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
2208 accessing methods.
2209 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
2210 down. Use has_nontrivial_methods to recognize C++ classes. Use return
2211 value of print_ada_methods.
2212 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
2213 Set cpp_check to it before invoking dump_ada_nodes.
2214 (dump_ada_specs): Likewise.
2215
b906f4ca
MP
22162013-11-03 Marek Polacek <polacek@redhat.com>
2217
2218 * c-ubsan.c: Don't include hash-table.h.
2219 (ubsan_instrument_vla): New function.
2220 * c-ubsan.h: Declare it.
2221
5e20cdc9
DM
22222013-10-31 David Malcolm <dmalcolm@redhat.com>
2223
2224 Automated part of renaming of symtab_node_base to symtab_node.
2225
2226 Patch autogenerated by rename_symtab.py from
2227 https://github.com/davidmalcolm/gcc-refactoring-scripts
2228 revision 58bb219cc090b2f4516a9297d868c245495ee622
2229
2230 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
2231 symtab_node_base to symtab_node.
2232
7057e645
ESR
22332013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
2234
2235 Implement C++14 digit separators.
2236 * c-lex.c (interpret_float): Remove digit separators from scratch string
2237 before building real literal.
2238
193ea7bc
JJ
22392013-10-30 Jakub Jelinek <jakub@redhat.com>
2240
2241 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
2242
939b37da
BI
22432013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
2244
2245 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
2246 fields.
2247 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
2248 enabled.
2249 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
2250 (insert_cilk_frame): New prototype.
2251 (cilk_init_builtins): Likewise.
2252 (gimplify_cilk_spawn): Likewise.
2253 (c_cilk_install_body_w_frame_cleanup): Likewise.
2254 (cilk_detect_spawn_and_unwrap): Likewise.
2255 (cilk_set_spawn_marker): Likewise.
2256 (build_cilk_sync): Likewise.
2257 (build_cilk_spawn): Likewise.
2258 * cilk.c: New file.
2259
67348ccc
DM
22602013-10-29 David Malcolm <dmalcolm@redhat.com>
2261
2262 Patch autogenerated by refactor_symtab.py from
2263 https://github.com/davidmalcolm/gcc-refactoring-scripts
2264 revision 58bb219cc090b2f4516a9297d868c245495ee622
2265
2266 * c-gimplify.c (c_genericize): Update for conversion of symtab types
2267 to a true class hierarchy.
2268 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2269
d570872d
RS
22702013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
2271
2272 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2273
98906124
JL
22742013-10-26 Jeff Law <law@redhat.com>
2275
adfac8df
JJ
2276 * c-common.c (c_define_builtins): Remove mudflap support.
2277 * c.opt: Ignore and warn for mudflap options.
98906124 2278
d73749df 22792013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
2280
2281 PR other/33426
2282 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2283 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2284
3f04b1bb
JM
22852013-10-23 Jason Merrill <jason@redhat.com>
2286
2287 * c-format.c (gcc_cxxdiag_char_table): Add %X.
2288
acf0174b
JJ
22892013-10-11 Jakub Jelinek <jakub@redhat.com>
2290
acd15a28
JJ
2291 * c-common.h (omp_clause_mask::operator !=): New method.
2292 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2293 instead of if (mask & something) tests everywhere.
2294
acf0174b
JJ
2295 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2296 201307 instead of 201107.
2297 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2298 (c_common_attribute_table): Add "omp declare target" and
2299 "omp declare simd" attributes.
2300 (handle_omp_declare_target_attribute,
2301 handle_omp_declare_simd_attribute): New functions.
2302 * c-omp.c: Include c-pragma.h.
2303 (c_finish_omp_taskgroup): New function.
2304 (c_finish_omp_atomic): Add swapped argument, if true,
2305 build the operation first with rhs, lhs arguments and use NOP_EXPR
2306 build_modify_expr.
2307 (c_finish_omp_for): Add code argument, pass it down to make_code.
2308 (c_omp_split_clauses): New function.
2309 (c_split_parallel_clauses): Removed.
2310 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2311 c_omp_declare_simd_clauses_to_decls): New functions.
2312 * c-common.h (omp_clause_mask): New type.
2313 (OMP_CLAUSE_MASK_1): Define.
2314 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2315 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2316 omp_clause_mask::operator |, omp_clause_mask::operator &,
2317 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2318 omp_clause_mask::operator ==): New methods.
2319 (enum c_omp_clause_split): New.
2320 (c_finish_omp_taskgroup): New prototype.
2321 (c_finish_omp_atomic): Add swapped argument.
2322 (c_finish_omp_for): Add code argument.
2323 (c_omp_split_clauses): New prototype.
2324 (c_split_parallel_clauses): Removed.
2325 (c_omp_declare_simd_clauses_to_numbers,
2326 c_omp_declare_simd_clauses_to_decls): New prototypes.
2327 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2328 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2329 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2330 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2331 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2332 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2333 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2334 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2335 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2336 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2337 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2338 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2339 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2340 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2341 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2342 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2343 PRAGMA_OMP_CLAUSE_UNIFORM.
2344
826cacfe
MG
23452013-10-09 Marc Glisse <marc.glisse@inria.fr>
2346
2347 PR tree-optimization/20318
2348 * c-common.c (handle_returns_nonnull_attribute): New function.
2349 (c_common_attribute_table): Add returns_nonnull.
2350
2284b034
MG
23512013-10-03 Marc Glisse <marc.glisse@inria.fr>
2352
2353 PR c++/19476
2354 * c.opt (fcheck-new): Move to common.opt.
2355
b56e9788
MP
23562013-09-25 Marek Polacek <polacek@redhat.com>
2357 Jakub Jelinek <jakub@redhat.com>
2358
2359 PR sanitizer/58413
2360 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2361 an expression if we can prove it is correct.
2362 (ubsan_instrument_division): Likewise. Remove unnecessary
2363 check.
2364
ce6923c5
MP
23652013-09-18 Marek Polacek <polacek@redhat.com>
2366
2367 PR sanitizer/58411
2368 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2369 Declare it.
2370 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2371
fb5610fb
IS
23722013-09-14 Iain Sandoe <iain@codesourcery.com>
2373
2374 PR target/48094
2375 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2376 fobjc-gc, freplace-objc-classes): Accept for LTO.
2377
88b0e79e
JC
23782013-09-13 Jacek Caban <jacek@codeweavers.com>
2379
2380 * c-target.def: New hook
2381
c9b0866a
PC
23822013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2383
2384 PR c++/43452
2385 * c.opt (Wdelete-incomplete): Add.
2386
0af94e6f
JR
23872013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2388
2389 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2390 (vector_types_compatible_elements_p): New function.
2391 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2392 declaration.
2393 (vector_types_compatible_elements_p): Declare.
2394
7c26172c
GDR
23952013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2396
2397 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2398 a virtual member function.
2399 (pp_simple_type_specifier): Remove.
2400 (pp_c_type_specifier): Likewise.
2401 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2402 Rename from pp_c_type_specifier. Adjust.
2403 (c_pretty_printer::c_pretty_printer): Do not assign to
2404 simple_type_specifier.
2405
20059c8b
GDR
24062013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2407
2408 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2409 member function.
2410 (c_pretty_printer::storage_class_specifier): Likewise.
2411 (c_pretty_printer::initializer): Likewise.
2412 (pp_declaration): Remove.
2413 (pp_declaration_specifiers): Likewise.
2414 (pp_abstract_declarator): Likewise.
2415 (pp_declarator): Likewise.
2416 (pp_type_id): Likewise.
2417 (pp_statement): Likewise.
2418 (pp_constant): Likewise.
2419 (pp_id_expression): Likewise.
2420 (pp_primary_expression): Likewise.
2421 (pp_unary_expression): Likewise.
2422 (pp_multiplicative_expression): Likewise.
2423 (pp_conditional_expression): Likewise.
2424 (pp_assignment_expression): Likewise.
2425 (pp_expression): Likewise.
2426 (pp_c_type_id): Likewise.
2427 (pp_c_storage_class_specifier): Likewise.
2428 * c-pretty-print.c (pp_c_type_cast): Tidy.
2429 (pp_c_pointer): Likewise.
2430 (pp_c_type_specifier): Likewise.
2431 (pp_c_parameter_type_list): Likewise.
2432 (pp_c_function_definition): Likewise.
2433 (pp_c_init_declarator): Likewise.
2434 (pp_c_initializer_list): Likewise.
2435 (pp_c_constructor_elts): Likewise.
2436 (c_pretty_printer::direct_abstract_declarator): Likewise.
2437 (c_pretty_printer::declaration_specifiers): Likewise.
2438 (c_pretty_printer::primary_expression): Likewise.
2439 (c_pretty_printer::postfix_expression): Likewise.
2440 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2441 (c_pretty_printer::storage_class_specifier): Rename from
2442 pp_c_storage_class_specifier.
2443 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2444 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2445 storage_class_specifier, initializer, offset_list, flags.
2446
de5a5fa1
MP
24472013-08-30 Marek Polacek <polacek@redhat.com>
2448
2449 * c-ubsan.c: New file.
2450 * c-ubsan.h: New file.
2451
8f0e4d72
GDR
24522013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2453
2454 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2455 member function.
2456 (c_pretty_printer::declaration_specifiers): Likewise.
2457 (c_pretty_printer::declarator): Likewise.
2458 (c_pretty_printer::abstract_declarator): Likewise.
2459 (c_pretty_printer::direct_abstract_declarator): Likewise.
2460 (c_pretty_printer::direct_declarator): Likewise.
2461 (c_pretty_printer::function_specifier): Likewise.
2462 (pp_declaration): Adjust.
2463 (pp_declaration_specifiers): Likewise.
2464 (pp_abstract_declarator): Likewise.
2465 (pp_direct_declarator): Likewise.
2466 (pp_function_specifier): Likewise.
2467 (pp_direct_abstract_declarator): Remove as unused.
2468 (pp_c_declaration): Remove.
2469 (pp_c_declaration_specifiers): Likewise.
2470 (pp_c_declarator): Likewise.
2471 (pp_c_direct_declarator): Likewise.
2472 (pp_c_function_specifier): Likewise.
2473 (pp_c_direct_abstract_declarator): Likewise.
2474 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2475 from pp_c_abstract_declarator. Adjust.
2476 (c_pretty_printer::direct_abstract_declarator): Rename from
2477 pp_c_direct_abstract_declarator. Adjust.
2478 (c_pretty_printer::function_specifier): Rename from
2479 pp_c_function_specifier. Adjust.
2480 (c_pretty_printer::declaration_specifiers): Rename from
2481 pp_c_declaration_specifiers. Adjust.
2482 (c_pretty_printer::direct_declarator): Rename from
2483 pp_c_direct_declarator. Adjust.
2484 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
2485 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
2486 (c_pretty_printer::c_pretty_printer): Do not assign to
2487 declaration, declaration_specifiers, declarator,
2488 direct_declarator, direct_abstract_declarator, function_specifier.
2489
00d34d3a
GDR
24902013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
2491
2492 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2493 virtual member function.
2494 (c_pretty_printer::multiplicative_expression): Likewise.
2495 (c_pretty_printer::conditional_expression): Likewise.
2496 (c_pretty_printer::assignment_expression): Likewise.
2497 (c_pretty_printer::expression): Likewise.
2498 (pp_unary_expression): Adjust.
2499 (pp_multiplicative_expression): Likewise.
2500 (pp_assignment_expression): Likewise.
2501 (pp_conditional_expression): Likewise.
2502 (pp_expression): Likewise.
2503 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2504 from pp_c_unary_expression. Adjust.
2505 (c_pretty_printer::multiplicative_expression): Rename from
2506 pp_c_multiplicative_expression. Adjust.
2507 (c_pretty_printer::conditional_expression): Rename from
2508 pp_c_conditional_expression. Adjust.
2509 (c_pretty_printer::assignment_expression): Rename from
2510 pp_c_assignment_expression. Adjust.
2511 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
2512 (c_pretty_printer::c_pretty_printer): Do not assign to
2513 unary_expression, multiplicative_expression,
2514 conditional_expression, expression.
2515
fb22178f
GDR
25162013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2517
2518 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2519 virtual member function.
2520 (pp_postfix_expression): Adjust.
2521 (pp_c_postfix_expression): Remove.
2522 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2523 from pp_c_postfix_expression. Adjust.
2524 (c_pretty_printer::c_pretty_printer): Do not assign to
2525 postfix_expression.
2526
7ecc2600
GDR
25272013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2528
2529 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2530 virtua member function.
2531 (pp_primary_expression): Adjust.
2532 (pp_c_primary_expression): Remove.
2533 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2534 from pp_c_primary_expression. Adjust.
2535 (pp_c_initializer_list): Use pp_primary_expression.
2536 (c_pretty_printer::c_pretty_printer): Do not assign to
2537 primary_expression.
2538
0691175f
GDR
25392013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2540
2541 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2542 * c-pretty-print.c (M_): Remove.
2543 (c_pretty_printer::translate_string): Define.
2544 (pp_c_type_specifier): Use it.
2545 (pp_c_primary_expression): Likewise.
2546 (pp_c_expression): Likewise.
2547
66dfe4c4
GDR
25482013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2549
2550 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2551 virtual function.
2552 (pp_c_id_expression): Remove.
2553 (pp_id_expression): Adjust.
2554 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2555 pp_c_id_expression. Adjust.
2556 (pp_c_postfix_expression): Use pp_id_expression.
2557 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2558
ca43e9d5
GDR
25592013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2560
2561 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2562 member function.
2563 (pp_constant): Adjust.
2564 (pp_c_constant): Remove.
2565 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2566 pp_c_constant. Adjust.
2567 (pp_c_constant)
2568 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2569 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2570
da6ca2b5
GDR
25712013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2572
2573 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2574 (c_pretty_printer::c_pretty_printer): Declare.
2575 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2576 c_pretty_printer_init. Adjust.
2577 (print_c_tree): Do not call c_pretty_printer_init.
2578 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2579
65a372f4
AC
25802013-08-09 Arnaud Charlet <charlet@adacore.com>
2581
2582 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2583
fd9b0f32
PC
25842013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
2585
2586 PR c++/58080
2587 * c-common.c (pointer_int_sum): Add bool parameter.
2588 * c-common.h (pointer_int_sum): Adjust declaration.
2589
e0aec1e9
GDR
25902013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2591
2592 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2593 c_pretty_printer variable.
2594
b066401f
GDR
25952013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2596
2597 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2598 (pp_base): Remove.
2599 (pp_c_base): Likewise. Adjust users.
2600 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2601 (pp_c_whitespace): Do not call pp_base.
2602 (pp_c_left_paren): Likewise.
2603 (pp_c_right_paren): Likewise.
2604 (pp_c_left_brace): Likewise.
2605 (pp_c_right_brace): Likewise.
2606 (pp_c_left_bracket): Likewise.
2607 (pp_c_right_bracket): Likewise.
2608 (pp_c_dot): Likewise.
2609 (pp_c_ampersand): Likewise.
2610 (pp_c_star): Likewise.
2611 (pp_c_arrow): Likewise.
2612 (pp_c_semicolon): Likewise.
2613 (pp_c_complement): Likewise.
2614 (pp_c_exclamation): Likewise.
2615 (pp_c_direct_declarator): Likewise.
2616 (pp_c_ws_string): Likewise.
2617 (pp_c_identifier): Likewise.
2618 (pp_c_statement): Likewise.
2619 (print_c_tree): Likewise.
2620
65e5a578
ESR
26212013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2622
2623 PR c++/58072
2624 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2625 provide useful error strings.
2626
137a1a27
GDR
26272013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2628
2629 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2630 printer functions instead of pp_string or operators and punctuators.
2631 (dump_generic_ada_node): Likewise.
2632 * c-pretty-print.c (pp_c_type_specifier): Likewise.
2633 (pp_c_relational_expression): Likewise.
2634 (pp_c_logical_or_expression): Likewise.
2635
07838b13
GDR
26362013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2637
2638 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2639 functions instead of pp_character.
2640 (pp_ada_tree_identifier): Likewise.
2641 (dump_ada_double_name): Likewise.
2642 (dump_ada_function_declaration): Likewise.
2643 (dump_ada_array_domains): Likewise.
2644 (dump_template_types): Likewise.
2645 (dump_generic_ada_node): Likewise.
2646 (print_ada_declaration): Likewise.
2647 (print_ada_struct_decl): Likewise.
2648 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2649
433cc7b0
TT
26502013-07-23 Tom Tromey <tromey@redhat.com>
2651
2652 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2653 * c-common.c (c_common_reswords): Add _Generic.
2654
688010ba
OB
26552013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
2656
2657 * c-common.c: Fix typos.
2658 * c-common.h: Likewise.
2659
2a99e5e6
LL
26602013-07-13 Lubos Lunak <l.lunak@suse.cz>
2661
2662 PR c++/55203
2663 * c-common.c (c_common_attribute_table): Add warn_unused.
2664 (handle_warn_unused_attribute): New.
2665
c26302d5
JJ
26662013-07-10 Jakub Jelinek <jakub@redhat.com>
2667
2668 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2669 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2670
dfeadaa0
PC
26712013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
2672
2673 PR c++/57869
2674 * c.opt: Add Wconditionally-supported.
2675
6a2fa4b2
GS
26762013-07-08 Graham Stott <graham.stott@btinternet.com>
2677
adfac8df 2678 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
2679 unused variables l_length and l_node.
2680
ecdbd01a 26812013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
2682
2683 PR c/57821
2684 * c-common.c (complete_array_type): Delay folding first index
2685 like other indices. When folding, check for index overflow.
2686
bedc293e
MG
26872013-06-27 Marc Glisse <marc.glisse@inria.fr>
2688
2689 PR c++/57509
2690 * c-common.h (c_build_vec_perm_expr): New complain argument.
2691 * c-common.c (c_build_vec_perm_expr): Likewise.
2692 Use save_expr also in C++.
2693
604b2bfc
GDR
26942013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2695
2696 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2697 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2698 * c-opts.c (c_common_post_options): Likewise.
2699
dfeadaa0 27002013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
2701
2702 * array-notation-common.c (length_mismatch_in_expr): Changed the
2703 parameter type's from a dynamic array to a vec_tree. Also removed
2704 the size parameters.
2705 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2706 the change above.
2707
2ce86d2e
BI
27082013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2709
2710 * c-common.h (struct cilkplus_an_parts): New structure.
2711 (struct cilkplus_an_loop_parts): Likewise.
2712 (cilkplus_extract_an_triplets): New prototype.
2713 (fix_sec_implicit_args): Likewise.
2714 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2715 (fix_sec_implicit_args): Likewise.
604b2bfc 2716
07a6825b
BI
27172013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2718
2719 * array-notation-common.c (find_inv_trees): Removed an unwanted
2720 typecasting.
2721 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2722 enum rid to enum tree_code.
2723
08346abd
JH
27242013-06-11 Jan Hubicka <jh@suse.cz>
2725
2726 * c-common.c (handle_alias_ifunc_attribute): Do not set
2727 DECL_EXTERNAL for weakref variables.
2728 * c-pragma.c (handle_pragma_weak): Make sure aliases
2729 are not declared as external.
2730
d60f1706
BI
27312013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2732
2733 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2734 function from c/c-array-notation.c.
2735 (is_cilkplus_reduce_builtin): Likewise.
2736 (find_rank): Likewise.
2737 (extract_array_notation_exprs): Likewise.
2738 (replace_array_notations): Likewise.
2739 (find_inv_trees): Likewise.
2740 (replace_inv_trees): Likewise.
2741 (contains_array_notation_expr): Likewise.
2742 (find_correct_array_notation_type): Likewise.
2743 * c-common.h (struct inv_list): Moved this struct from the file
2744 c/c-array-notation.c and added a new field called additional tcodes.
2745 (length_mismatch_in_expr_p): New prototype.
2746 (is_cilkplus_reduce_builtin): Likewise.
2747 (find_rank): Likewise.
2748 (extract_array_notation_exprs): Likewise.
2749 (replace_array_notation): Likewise.
2750 (find_inv_trees): Likewise.
2751 (replace_inv_trees): Likewise.
2752 (find_correct_array_notation_type): Likewise.
dfeadaa0 2753
36536d79
BI
27542013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2755
2756 * c-common.c (c_define_builtins): When cilkplus is enabled, the
2757 function array_notation_init_builtins is called.
2758 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2759 * c-common.def (ARRAY_NOTATION_REF): New tree.
2760 * c-common.h (build_array_notation_expr): New function declaration.
2761 (build_array_notation_ref): Likewise.
2762 (extract_sec_implicit_index_arg): New extern declaration.
2763 (is_sec_implicit_index_fn): Likewise.
2764 (ARRAY_NOTATION_CHECK): New define.
2765 (ARRAY_NOTATION_ARRAY): Likewise.
2766 (ARRAY_NOTATION_START): Likewise.
2767 (ARRAY_NOTATION_LENGTH): Likewise.
2768 (ARRAY_NOTATION_STRIDE): Likewise.
2769 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2770 ARRAY_NOTATION_REF.
2771 (pp_c_expression): Likewise.
2772 * c.opt (flag_enable_cilkplus): New flag.
2773 * array-notation-common.c: New file.
2774
f7716d57
JJ
27752013-05-14 Jakub Jelinek <jakub@redhat.com>
2776
2777 PR c++/57274
2778 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2779
a5e0cd1d
MG
27802013-05-10 Marc Glisse <marc.glisse@inria.fr>
2781
2782 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2783 vectors.
2784
f6bc1c4a
HS
27852013-05-07 Han Shen <shenhan@google.com>
2786
2787 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2788
3f12f6e9
SKS
27892013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2790
2791 * c-common.c (check_user_alignment): Emit error for negative values.
2792
61949153
PC
27932013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2794
2795 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2796
e93e18e9
PC
27972013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2798
2799 * c-cppbuiltin.c (c_cpp_builtins): Do not define
2800 __GXX_EXPERIMENTAL_CXX1Y__.
2801
44d90fe1
PC
28022013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2803 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2804
2805 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2806 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2807 to simply use OPT_Wpointer_arith.
2808 (c_sizeof_or_alignof_type): Likewise.
2809
13f39b2e
PC
28102013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2811
2812 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2813
4b84d650
JJ
28142013-04-12 Jakub Jelinek <jakub@redhat.com>
2815
2816 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2817 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2818 specifiers.
2819
fb037b5d
SB
28202013-04-07 Steven Bosscher <steven@gcc.gnu.org>
2821
2822 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2823
4e856798
PC
28242013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
2825
2826 * c-common.c (pointer_int_sum): Remove dead code.
2827
4b1baac8
RS
28282013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2829
2830 PR middle-end/56524
2831 * c-common.c (handle_optimize_attribute): Don't call
2832 save_optabs_if_changed.
2833
0b50e654
JJ
28342013-03-05 Jakub Jelinek <jakub@redhat.com>
2835
2836 PR middle-end/56461
2837 * c-pch.c (pch_init): Free target_validity at the end.
2838
48c41403
JJ
28392013-03-04 Jakub Jelinek <jakub@redhat.com>
2840
2841 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2842
e664c61c
KS
28432013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2844 Jakub Jelinek <jakub@redhat.com>
2845
2846 PR sanitizer/56454
2847 * c-common.c (handle_no_sanitize_address_attribute): New function.
2848 (c_common_attribute_table): Add no_sanitize_address attribute.
2849 (handle_no_address_safety_analysis_attribute): Add
2850 no_sanitize_address attribute, not no_address_safety_analysis
2851 attribute.
2852
a475fd3d 28532013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
2854
2855 PR target/52555
2856 * c-common.c (handle_optimize_attribute): Call
2857 save_optabs_if_changed.
2858
f6007d99
JJ
28592013-02-18 Jakub Jelinek <jakub@redhat.com>
2860 Steven Bosscher <steven@gcc.gnu.org>
2861
2862 PR pch/54117
2863 * c-opts.c (c_common_post_options): If debug info is enabled
2864 and non-dwarf*, refuse to load PCH files and when writing PCH
2865 file warn.
2866
cf35e2b1
JJ
28672013-02-05 Jakub Jelinek <jakub@redhat.com>
2868
2869 PR middle-end/56167
2870 * c-common.c (handle_error_attribute): Fix condition.
2871
32887460
JJ
28722013-01-30 Jakub Jelinek <jakub@redhat.com>
2873
2874 PR c++/55742
2875 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2876
5af057d8
JM
28772013-01-18 Jason Merrill <jason@redhat.com>
2878
2879 PR target/54908
2880 * c.opt (-fextern-tls-init): New.
2881 * c-opts.c (c_common_post_options): Handle it.
2882
cc83c823
JJ
28832013-01-09 Jakub Jelinek <jakub@redhat.com>
2884
2885 PR c/48418
2886 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2887 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2888 and is either negative or bigger or equal to type precision
2889 of the first operand.
2890
a859517f
MP
28912012-12-03 Marek Polacek <polacek@redhat.com>
2892
2893 PR c/55570
2894 * c-common.c (check_user_alignment): Swap order of tests,
2895 check TREE_CODE first.
2896
2d7aa578
ESR
28972012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
2898
2899 PR c++/52654
2900 * c-common.h (overflow_type): New enum.
2901 (build_userdef_literal): Add overflow_type argument.
2902 (tree_userdef_literal): Add overflow_type.
2903 (USERDEF_LITERAL_OVERFLOW): New access macro.
2904 * c-common.c (build_userdef_literal): Add overflow_type
2905 argument.
2906 * c-lex.c (c_lex_with_flags): Add overflow_type to
2907 build_userdef_literal calls.
2908 (interpret_integer, interpret_float): Add overflow_type argument.
2909
cc3c4f62
RB
29102012-11-28 Richard Biener <rguenther@suse.de>
2911
2912 PR c/35634
2913 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2914 here and use a type with proper overflow behavior for types that would
2915 need to be promoted for the arithmetic.
2916
77bc5132
JJ
29172012-11-23 Jakub Jelinek <jakub@redhat.com>
2918
2919 PR sanitizer/55435
2920 * c-common.c (handle_no_address_safety_analysis_attribute): New
2921 function.
2922 (c_common_attribute_table): Add no_address_safety_analysis.
2923
5dc99c46
SB
29242012-11-16 Simon Baldwin <simonb@google.com>
2925
2926 * c.opt: Add f[no-]canonical-system-headers.
2927 * c-opts.c (c_common_handle_option): Handle
2928 OPT_fcanonical_system_headers.
2929
a4a0016d
ESR
29302012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
2931
2932 PR c++/54413
2933 * c-opts.c (c_common_handle_option): Set new flags.
2934 * c.opt: Describe new flags.
2935
7dbb85a7
JM
29362012-11-09 Jason Merrill <jason@redhat.com>
2937
2938 * c.opt (Wabi-tag): New.
2939
ad7bac31
AK
29402012-11-09 Andi Kleen <ak@linux.intel.com>
2941
2942 PR 55139
2943 * c-common.c (get_atomic_generic_size): Mask with
2944 MEMMODEL_MASK
2945
7332899a
MLI
29462012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2947
2948 PR c/53063
2949 * c.opt (Wformat): Make it Alias Wformat=1.
2950 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2951 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2952 LangEnabledBy.
2953 (Wformat=): RejectNegative. Use LangEnabledBy.
2954 (Wnonnull): Use LangEnabledBy.
2955 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2956 * c-format.c (set_Wformat): Delete.
2957 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2958 (maybe_read_dollar_number): Likewise.
2959 (avoid_dollar_number): Likewise.
2960 (finish_dollar_format_checking): Likewise.
2961 (check_format_info): Likewise.
2962 (check_format_info_main): Likewise.
2963 (check_format_types): Likewise.
2964 (format_type_warning): Likewise.
2965 * c-common.c (int): Likewise.
2966 (check_function_sentinel): Likewise.
2967 * c-common.h (warn_format,set_Wformat): Do not declare here.
2968
34a180a6
MLI
29692012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2970
2971 PR c/53063
2972 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2973 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2974 Use LangEnabledBy.
2975 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2976 common.opt.
2977 (Wvariadic-macros): Init(1).
2978 * c-opts.c (c_common_handle_option): Do not handle them
2979 explicitly.
2980 (c_common_post_options): Likewise.
2981 (sanitize_cpp_opts): warn_unused_macros is now
2982 cpp_warn_unused_macros.
2983 (push_command_line_include): Likewise.
2984 * c-common.c (warn_unknown_pragmas): Do not define.
2985 * c-common.h (warn_unknown_pragmas): Do not declare.
2986
3f46d6a5
MLI
29872012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2988
2989 PR c/51294
2990 * c-common.c (conversion_warning): Handle conditional expressions.
2991
880661a4
JW
29922012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2993
2994 PR c++/54930
2995 * c.opt (Wreturn_local_addr): Define new option.
2996
4514a96b
JM
29972012-10-25 Jason Merrill <jason@redhat.com>
2998
f14edc1a
JM
2999 * c.opt (Wvirtual-move-assign): New.
3000
4514a96b
JM
3001 * c.opt (Winherited-variadic-ctor): New.
3002
93100c6b
MG
30032012-10-25 Marc Glisse <marc.glisse@inria.fr>
3004
3005 PR c++/54427
3006 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
3007
1efcb8c6
JM
30082012-10-23 Joseph Myers <joseph@codesourcery.com>
3009
3010 * c-common.h (pch_cpp_save_state): Declare.
3011 * c-target.def (c_preinclude): New hook.
3012 * c-opts.c (done_preinclude): New.
3013 (push_command_line_include): Handle default preincluded header.
3014 (cb_file_change): Call pch_cpp_save_state when calling
3015 push_command_line_include.
3016 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
3017 (pch_cpp_save_state): New.
3018 (pch_init): Call pch_cpp_save_state conditionally, instead of
3019 calling cpp_save_state.
3020
4a0ae68e
MLI
30212012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3022
3023 PR c/53063
3024 PR c/40989
3025 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
3026 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
3027 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
3028 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
3029 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
3030 * c-opts.c (c_common_handle_option): Remove explicit handling from
3031 here.
3032 (c_common_post_options): Likewise.
3033
67e4210b
EB
30342012-10-18 Eric Botcazou <ebotcazou@adacore.com>
3035
3036 * c-ada-spec.c (LOCATION_COL): Delete.
3037 (compare_location): New function.
3038 (compare_node): Use it.
3039 (compare_comment): Likewise.
3040
65d4f2cd
MLI
30412012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3042
3043 PR c/53063
3044 PR c/40989
3045 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
3046 * c-opts.c (c_common_handle_option): Do not set them here. Add
3047 comment.
3048 (c_common_post_options): Likewise.
3049
909881cb
EB
30502012-10-16 Eric Botcazou <ebotcazou@adacore.com>
3051
3052 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
3053 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
3054 Remove POINTER_TYPE handling, add large unsigned handling and use
3055 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
3056
3a785c97
JJ
30572012-10-12 Jakub Jelinek <jakub@redhat.com>
3058
3059 PR c/54381
3060 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
3061 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
3062 locs and array of 3 trees instead of just single loc and single
3063 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
3064 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
3065 For *cmp* builtins that take two sources strings report warnings
3066 about first and second source, not about destination and source.
3067
5e54f81d
MG
30682012-10-12 Marc Glisse <marc.glisse@inria.fr>
3069
3070 PR c++/53055
3071 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
3072
f5b02f1e
EB
30732012-10-11 Eric Botcazou <ebotcazou@adacore.com>
3074
3075 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
3076 declaring something coming from another file.
3077
b46dbc6c
AC
30782012-10-10 Arnaud Charlet <charlet@adacore.com>
3079
f5b02f1e 3080 PR ada/54845
b46dbc6c
AC
3081 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
3082
5d9de0d0
PC
30832012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
3084
3085 PR c++/54194
3086 * c-common.c (warn_about_parentheses): Add location_t parameter;
3087 use EXPR_LOC_OR_LOC.
3088 * c-common.h: Update declaration.
3089
a212e43f
MG
30902012-10-09 Marc Glisse <marc.glisse@inria.fr>
3091
3092 PR c++/54427
3093 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
3094 more operations. Make error messages optional.
3095 * c-common.h (enum stv_conv): Moved from c-typeck.c.
3096 (scalar_to_vector): Declare.
3097
b1db7f91
JM
30982012-10-08 Jason Merrill <jason@redhat.com>
3099
3100 * c-common.c (c_common_reswords): Add thread_local.
3101
e28d52cf
DS
31022012-10-08 Dodji Seketeli <dodji@redhat.com>
3103
3104 PR c++/53528 C++11 attribute support
3105 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
3106 new functions.
3107 * c-common.c (check_cxx_fundamental_alignment_constraints): New
3108 static function.
3109 (handle_aligned_attribute): In choose strictest alignment
3110 among many. Use new check_cxx_fundamental_alignment_constraints.
3111 (handle_transparent_union_attribute): In c++11 attribute syntax,
3112 don't look through typedefs.
3113
3b78de56
AC
31142012-10-04 Arnaud Charlet <charlet@adacore.com>
3115
3116 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
3117 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
3118 out of dumpfile.h.
3119
6040bb5f
DC
31202012-09-25 Dehao Chen <dehao@google.com>
3121
3122 PR middle-end/54645
3b78de56 3123 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
3124 map when read in the pch.
3125
0b07a57e
AC
31262012-09-18 Arnaud Charlet <charlet@adacore.com>
3127
3128 * c-ada-spec.c: Style fixes.
3129
da5182be
TQ
31302012-09-18 Thomas Quinot <quinot@adacore.com>
3131
3132 * c.opt (-fada-spec-parent): Define new command line switch.
3133 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
3134 is specified, generate binding spec as a child of the specified unit.
3135
0ccb505d
PC
31362012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
3137 Manuel López-Ibáñez <manu@gcc.gnu.org>
3138
3139 PR c++/53210
3140 * c.opt ([Winit-self]): Enabled by -Wall in C++.
3141
c583af79
AC
31422012-08-23 Arnaud Charlet <charlet@adacore.com>
3143
3144 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
3145 for pointers, and add missing Convention C pragma.
3146 (print_ada_struct_decl): Add missing aliased keyword.
3147 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
3148
1a4049e7
JJ
31492012-08-17 Jakub Jelinek <jakub@redhat.com>
3150
3151 * c-common.c (sizeof_pointer_memaccess_warning): New function.
3152 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
3153 * c-opts.c (c_common_handle_option): Enable it for -Wall.
3154 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
3155 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
3156
70b5e7dc
RG
31572012-08-10 Richard Guenther <rguenther@suse.de>
3158
3159 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
3160
f8923f7e
SB
31612012-08-07 Steven Bosscher <steven@gcc.gnu.org>
3162
3163 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
3164 instead of separate pp_newline and pp_flush.
3165 (print_c_tree): Likewise.
3166
e45abe1f
RH
31672012-07-26 Richard Henderson <rth@redhat.com>
3168
3169 * c-common.c (handle_hot_attribute): Allow labels.
3170 (handle_cold_attribute): Likewise.
3171
332f1d24
JJ
31722012-07-20 Jakub Jelinek <jakub@redhat.com>
3173
3174 PR c++/28656
3175 * c-common.c (check_function_nonnull): Handle multiple nonnull
3176 attributes properly.
3177
7ee2468b
SB
31782012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3179
3180 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
3181 * c-ada-spec.c: Likewise.
3182 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
3183
ee7b28eb
SB
31842012-07-14 Steven Bosscher <steven@gcc.gnu.org>
3185
3186 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
3187 Remove code conditional on it.
3188
6bdf3519
SB
31892012-07-11 Steven Bosscher <steven@gcc.gnu.org>
3190
3191 * c-gimplify.c: Do not include basic-block.h.
3192 * c-common.c: Do not include linfuncs.h.
3193
532aafad
SB
31942012-07-08 Steven Bosscher <steven@gcc.gnu.org>
3195
3196 * c-common.h: Include tree.h.
3197
8d0d1915
JM
31982012-07-02 Jason Merrill <jason@redhat.com>
3199
3200 PR c++/53524
3201 * c-common.c (get_priority): Call default_conversion.
3202
fbc873ad
UB
32032012-07-01 Uros Bizjak <ubizjak@gmail.com>
3204
3205 * c-pch.c (c_common_write_pch): Remove unused variables.
3206
d4a10d0a
SB
32072012-06-29 Steven Bosscher <steven@gcc.gnu.org>
3208
3209 * cppspec.c: Moved from gcc/ to here.
3210
6f3a2e23
KT
32112012-06-27 Kai Tietz <ktietz@redhat.com>
3212
3213 PR preprocessor/37215
3214 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
3215
8ca92d04
SB
32162012-06-21 Steven Bosscher <steven@gcc.gnu.org>
3217
3218 * c-common.h (c_common_print_pch_checksum): Remove.
3219 * c-pch.c: Do not include output.h.
3220 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
3221 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
3222 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
3223 (struct c_pch_header): Remove.
3224 (get_ident): Update gpch version.
3225 (pch_init): Do not print executable_checksum to asm_out_file.
3226 Do not fail if there is no asm_out_file to read back from. Set
3227 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
3228 (c_common_write_pch): Verify that nothing was written to asm_out_file
3229 since pch_init was called. Do not write a c_pch_header, and do not
3230 copy from asm_out_file to the PCH.
3231 (c_common_read_pch): Do not read a c_pch_header, and do not restore
3232 the content of asm_out_file from the PCH.
3233 (c_common_print_pch_checksum): Remove.
3234 * c-opts.c (c_common_init): Print out executable_checksum directly.
3235
70f42967
SB
32362012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3237
3238 * c-target.def (objc_declare_unresolved_class_reference,
3239 objc_declare_class_definition): Add new hooks.
3240
a8781821
SB
32412012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3242
3243 * c-lex.c: Do not include output.h.
3244 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
3245 Remove uses of ASM_OUTPUT_IDENT.
3246
9e1a8dd1
RR
32472012-06-15 Marc Glisse <marc.glisse@inria.fr>
3248
3249 PR c++/51033
3250 * c-common.h (c_build_vec_perm_expr): Move decl here.
3251 * c-common.c (c_build_vec_perm_expr): Move definition
3252 here.
3253
6f07a821
SB
32542012-06-06 Steven Bosscher <steven@gcc.gnu.org>
3255
3256 * c.opt (fconserve-space): Turn into a no-op.
3257
9faeb493 32582012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
3259
3260 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
3261 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
3262 both the start and end of the function.
3263
a4b7d13c
SB
32642012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3265
3266 * c-common.c: Do not include output.h.
3267 * c-pragma.c: Likewise.
3268
c265f413
SA
32692012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3270
3271 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3272 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3273 (lang_decl_name): Handle namespace decls.
3274
be7a421e
SB
32752012-05-31 Steven Bosscher <steven@gcc.gnu.org>
3276
3277 * c-ada-spec.c: Do not include output.h.
3278 * c-semantics.c: Likewise.
3279
65de6659
JM
32802012-05-29 Joseph Myers <joseph@codesourcery.com>
3281
3282 * c-common.c: Fix typo.
3283
ca5f4331
MM
32842012-05-29 Michael Matz <matz@suse.de>
3285
3286 * c-common.h (c_expand_decl): Remove prototype.
3287
4f7f7aca
MLI
32882012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3289
3290 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3291 * c-opts.c (c_common_handle_option): Remove code handling
3292 warn_missing_braces.
3293
4a792f9b
PC
32942012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
3295
3296 PR c++/25137
3297 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3298 -Wmissing_braces.
3299
650dc14a
DS
33002012-05-22 Dodji Seketeli <dodji@redhat.com>
3301
3302 PR c++/53322
3303 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3304
9b095bf1
MLI
33052012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3306
3307 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3308 * c-opts.c (c_common_handle_option): Do not handle explicitly
3309 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3310
0b2c4be5
DS
33112012-05-16 Dodji Seketeli <dodji@redhat.com>
3312
3313 PR preprocessor/7263
3314 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
3315 to cpp_classify_number. For diagnostics, use the precise location
3316 instead of the global input_location.
3317
a1bde5af
PC
33182012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3319
d02924ef 3320 PR c++/11856
a1bde5af
PC
3321 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3322
d1ede5f4
BS
33232012-05-14 Bernd Schmidt <bernds@codesourcery.com>
3324
a1bde5af 3325 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 3326
f2bc201f
MLI
33272012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3328
3329 PR 53063
3330 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3331 Wreorder): Use LangEnabledBy.
3332 * c-opts.c (c_common_handle_option): Do not enable them
3333 explicitly. Call lang-specific generated functions.
3334 (c_common_post_options): Do not set them here.
3335
95744782
MLI
33362012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3337
3338 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3339 Wmissing-field-initializers,Wmissing-parameter-type,
3340 Wold-style-declaration,Woverride-init): Use EnabledBy.
3341 * c-opts.c (c_common_post_options): Do not set here explicitly.
3342
7d5a5747
MLI
33432012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3344
3345 PR 53063
3346 * c-opts.c (c_common_handle_option): Use handle_generated_option
3347 to enable sub-options.
3348
5a3c9cf2
PC
33492012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
3350
3351 PR c++/53158
3352 * c-common.c (warnings_for_convert_and_check): Use warning_at.
3353
3ac8781c
RG
33542012-05-10 Richard Guenther <rguenther@suse.de>
3355
3356 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3357 adjust commentary about TYPE_IS_SIZETYPE types.
3358
1e537948
MLI
33592012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3360
3361 PR c++/53261
3362 * c-common.c (warn_logical_operator): Check that argument of
3363 integer_zerop is not NULL.
3364
f2c4a785
MLI
33652012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3366
3367 PR c/43772
3368 * c-common.c (warn_logical_operator): Do not warn if either side
3369 is already true or false.
3370
50f305ca
MLI
33712012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3372
3373 PR c/51712
3374 * c-common.c (expr_original_type): New.
3375 (shorten_compare): Do not warn for enumeration types.
3376
0c3641b0
MLI
33772012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3378
3379 * c.opt (fpermissive): Add Var(flag_permissive).
3380
7edaa4d2
MG
33812012-04-30 Marc Glisse <marc.glisse@inria.fr>
3382
3383 PR c++/51033
3384 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3385 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3386
b9c8da34
DS
33872012-04-30 Dodji Seketeli <dodji@redhat.com>
3388
3389 Add -Wvarargs option
3390 * c.opt (Wvarargs): Define new option.
3391
e6c69da0
MLI
33922012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3393
3394 * c-common.c (check_function_arguments): Replace
3395 Wmissing-format-attribute with Wsuggest-attribute=format.
3396
90137d8f
MLI
33972012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3398
3399 * c.opt (Wsuggest-attribute=format): New. Alias of
3400 Wmissing-format-attribute.
3401 * c-format.c (decode_format_type): Replace
3402 Wmissing-format-attribute with Wsuggest-attribute=format.
3403 (check_function_format): Likewise.
3404
9faeb493 34052012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
3406
3407 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3408 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3409 * c.opt: Add Wliteral-suffix.
3410
c1771a20
MLI
34112012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3412
3413 PR c/44774
3414 * c.opt (Wpedantic): New.
3415 (pedantic): Alias Wpedantic.
3416 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3417 (c_common_post_options): Likewise.
3418 (sanitize_cpp_opts): Likewise.
3419 * c-lex.c (interpret_float): Likewise.
3420 * c-format.c (check_format_types): Likewise.
3421 * c-common.c (pointer_int_sum): Likewise.
3422 (c_sizeof_or_alignof_type): Likewise.
3423 (c_add_case_label): Likewise.
3424 (c_do_switch_warnings): Likewise.
3425 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3426
04b391c1
JM
34272012-04-15 Jason Merrill <jason@redhat.com>
3428
3429 PR c++/52818
3430 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3431 (C_STD_NAME): Distinguish between C++98 and C++11.
3432
ac868f29
EB
34332012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3434
3435 PR target/52624
3436 * c-common.h (uint16_type_node): Rename into...
3437 (c_uint16_type_node): ...this.
3438 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3439 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3440
fd4116f4
MLI
34412012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3442
3443 * c-common.c (warn_if_unused_value): Move definition to here.
3444 * c-common.h (warn_if_unused_value): Move declaration to here.
3445
573ac65e
WB
34462012-03-23 William Bader <williambader@hotmail.com>
3447
3448 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3449
552b8185
JM
34502012-03-20 Jason Merrill <jason@redhat.com>
3451
3452 * c-common.h (enum cxx_dialect): Add cxx1y.
3453 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3454 test.
3455 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3456 * c-opts.c (c_common_post_options): Likewise.
3457 (set_std_cxx1y): New.
3458 (c_common_handle_option): Call it.
3459 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3460
04398fa8
PC
34612012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3462
3463 PR c++/14710
3464 * c.opt ([Wuseless-cast]): Add.
3465
d2a12ae7
RG
34662012-03-16 Richard Guenther <rguenther@suse.de>
3467
3468 * c-pretty-print.c (pp_c_initializer_list): Adjust.
3469
a12bf402
MLI
34702012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3471
3472 PR c++/44783
3473 * c.opt (ftemplate-backtrace-limit) Add.
3474
5c30094f
RO
34752012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3476
3477 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3478 handling.
3479 * c-pragma.c (handle_pragma_extern_prefix): Remove.
3480 (init_pragma): Don't register extern_prefix.
3481
21fa2faf
RG
34822012-03-12 Richard Guenther <rguenther@suse.de>
3483
3484 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3485 (builtin_type_for_size): Likewise.
3486
e3793c6f
JJ
34872012-02-13 Jakub Jelinek <jakub@redhat.com>
3488
3489 PR c++/52215
3490 * c-common.c (sync_resolve_params): Don't decide whether to convert
3491 or not based on TYPE_SIZE comparison, convert whenever arg_type
3492 is unsigned INTEGER_TYPE.
3493
93286335
PC
34942012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
3495
3496 PR c/52118
3497 * c.opt ([Wunused-local-typedefs]): Fix description.
3498
7a421706
MS
34992012-01-24 Mike Stump <mikestump@comcast.net>
3500
3501 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3502 exactly.
3503
ba9b1f11
RG
35042012-01-18 Richard Guenther <rguenther@suse.de>
3505
3506 * c-opts.c (c_common_post_options): Reset LTO flags if
3507 we are about to generate a PCH.
3508
465406be
PC
35092012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3510
3511 PR c++/51777
3512 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3513 use pp_unsigned_wide_integer.
3514
aee15221
RG
35152012-01-10 Richard Guenther <rguenther@suse.de>
3516
3517 PR middle-end/51806
3518 * c-opts.c (c_common_handle_option): Move -Werror handling
3519 to language independent code.
3520
5720c0dc
RG
35212012-01-05 Richard Guenther <rguenther@suse.de>
3522
3523 PR middle-end/51764
3524 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3525 from common.opt.
3526
73ac190a
PC
35272011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
3528
3529 PR c++/51316
3530 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3531 of array types with an unknown bound.
3532
48b0b196
JM
35332011-12-20 Joseph Myers <joseph@codesourcery.com>
3534
3535 * c-common.c (flag_isoc99): Update comment to refer to C11.
3536 (flag_isoc1x): Change to flag_isoc11.
3537 * c-common.h (flag_isoc99): Update comment to refer to C11.
3538 (flag_isoc1x): Change to flag_isoc11.
3539 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3540 C11.
3541 * c-opts.c (set_std_c1x): Change to set_std_c11.
3542 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3543 Call set_std_c11.
3544 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3545 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3546 * c.opt (std=c1x): Change to std=c11. Document as non-draft
3547 standard.
3548 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3549 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3550 (std=gnu1x): Make alias of std=gnu11.
3551
d58d6eb5
JM
35522011-12-19 Jason Merrill <jason@redhat.com>
3553
3554 PR c++/51228
3555 * c-common.c (handle_transparent_union_attribute): Check the first
3556 field if the type is complete.
3557
b3908fcc
JW
35582011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3559
3560 PR libstdc++/51365
3561 * c-common.c (RID_IS_FINAL): Add.
3562 * c-common.h (RID_IS_FINAL): Add.
3563
fea3ca91
IS
35642011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3565
3566 * c.opt (fgnu-runtime): Provide full description.
3567 (fnext-runtime): Likewise.
3568 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3569
62bad7cd
AM
35702011-11-28 Andrew MacLeod <amacleod@redhat.com>
3571
3572 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3573 predefines in one place. Add LOCK_FREE predefines.
3574 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3575 new func.
3576
c466c4ff
AM
35772011-11-24 Andrew MacLeod <amacleod@redhat.com>
3578
3579 PR c/51256
9faeb493 3580 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 3581 conditions
9faeb493
UB
3582 (resolve_overloaded_atomic_exchange,
3583 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
3584 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3585 error_mark_node for error conditions.
9faeb493 3586
a5952633
RG
35872011-11-08 Richard Guenther <rguenther@suse.de>
3588
3589 PR middle-end/51010
3590 c-family/
3591
0a35513e
AH
35922011-11-07 Richard Henderson <rth@redhat.com>
3593 Aldy Hernandez <aldyh@redhat.com>
3594 Torvald Riegel <triegel@redhat.com>
3595
3596 Merged from transactional-memory.
3597
3598 * c-common.c (handle_tm_wrap_attribute,
3599 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3600 (struct c_common_reswords): Added __transaction* keywords.
3601 (struct c_common_attribute_table): Added transaction* and tm_regparm
3602 attributes.
3603 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3604 masks.
3605 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3606 find_tm_attribute): Declare.
3607
6d87092d
JM
36082011-11-07 Jason Merrill <jason@redhat.com>
3609
3610 PR c++/35688
3611 * c-common.c, c-common.h: Revert yesterday's changes.
3612
8e7860a1
JM
36132011-11-06 Jason Merrill <jason@redhat.com>
3614
3615 PR c++/35688
3616 * c-common.c (decl_has_visibility_attr): Split out from...
3617 (c_determine_visibility): ...here.
3618 * c-common.h: Declare it.
3619
d19fa6b5
JM
36202011-11-06 Joseph Myers <joseph@codesourcery.com>
3621
3622 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3623 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3624 type.
3625 (check_user_alignment): New. Split out of
3626 handle_aligned_attribute. Disallow integer constants with
3627 noninteger types. Conditionally allow zero.
3628 (handle_aligned_attribute): Use check_user_alignment.
3629 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3630
86951993
AM
36312011-11-06 Andrew MacLeod <amacleod@redhat.com>
3632 Richard Henderson <rth@redhat.com>
3633
3634 Merged from cxx-mem-model.
3635
3636 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 3637 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
3638 parameters that are the same type size.
3639 (get_atomic_generic_size): New. Find size of generic
3640 atomic function parameters and do typechecking.
3641 (add_atomic_size_parameter): New. Insert size into parameter list.
3642 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3643 either __atomic_exchange_n or external library call.
9faeb493 3644 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 3645 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 3646 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
3647 __atomic_load_n or an external library call.
3648 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3649 __atomic_store_n or an external library call.
3650 (resolve_overloaded_builtin): Handle new __atomic builtins.
3651
cf9e9959
EB
36522011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3653
3654 PR c++/50608
3655 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3656 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3657 <INDIRECT_REF>: Return the argument.
3658 <ARRAY_REF>: Remove special code for negative offset.
3659 Call fold_build_pointer_plus instead of size_binop.
3660 (fold_offsetof): Remove STOP_REF argument and adjust.
3661 * c-common.h (fold_offsetof_1): Declare.
3662 (fold_offsetof): Remove STOP_REF argument.
3663
25339f10
JM
36642011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3665
3666 PR c++/50810
3667 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3668 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3669 Wnarrowing for C++0x and C++98.
3670 * c.opt ([Wnarrowing]): Update.
3671
89401152
PC
36722011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
3673
3674 PR c++/44277
3675 * c.opt: Add Wzero-as-null-pointer-constant.
3676
97e3ad20
JM
36772011-10-31 Jason Merrill <jason@redhat.com>
3678
15694fdd
JM
3679 * c.opt (-fdeduce-init-list): Off by default.
3680
97e3ad20
JM
3681 PR c++/50920
3682 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3683 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3684 and -Wc++11-compat.
3685 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3686
fb9120e3
RAV
36872011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3688
3689 PR c++/30066
3690 * c.opt (fvisibility-inlines-hidden): Description change.
3691
3ce4f9e4
ESR
36922011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
3693
3694 Implement C++11 user-defined literals.
3695 * c-common.c (build_userdef_literal): New.
3696 * c-common.def: New tree code.
3697 * c-common.h (tree_userdef_literal): New tree struct and accessors.
3698 * c-lex.c (interpret_float): Add suffix parm.
3699 (c_lex_with_flags): Build literal tokens.
3700
5f53c243
PC
37012011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3702
3703 PR c++/50841
3704 Revert:
3705 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3706
3707 PR c++/50810
3708 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3709 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3710 Wnarrowing for C++0x and C++98.
3711 * c.opt ([Wnarrowing]): Update.
3712
263734e1
PC
37132011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3714
3715 PR c++/50810
3716 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3717 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3718 Wnarrowing for C++0x and C++98.
3719 * c.opt ([Wnarrowing]): Update.
3720
d2e312d7
PC
37212011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3722
3723 PR c++/45385
3724 * c-common.c (conversion_warning): Remove code looking for
3725 artificial operands.
3726
d17687f6
DS
37272011-10-18 Dodji Seketeli <dodji@redhat.com>
3728
3729 PR bootstrap/50760
3730 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 3731 !NO_IMPLICIT_EXTERN_C.
d17687f6 3732
fc8396e9
PC
37332011-10-17 Michael Spertus <mike_spertus@symantec.com>
3734
3735 * c-common.c (c_common_reswords): Add __bases,
3736 __direct_bases.
3737 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3738
37392011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3740
3741 PR c++/50757
3742 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3743
847e697a
TT
37442011-10-15 Tom Tromey <tromey@redhat.com>
3745 Dodji Seketeli <dodji@redhat.com>
3746
3747 * c.opt (fdebug-cpp): New option.
3748 * c-opts.c (c_common_handle_option): Handle the option.
3749 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3750 output stream in parameter. Factorized from ...
3751 (maybe_print_line): ... this. Dump location debug information when
3752 -fdebug-cpp is in effect.
3753 (print_line_1): New static function. Takes an output stream in
3754 parameter. Factorized from ...
3755 (print_line): ... here. Dump location information when -fdebug-cpp
3756 is in effect.
3757 (scan_translation_unit): Dump location information when
3758 -fdebug-cpp is in effect.
3759
92582b75
TT
37602011-10-15 Tom Tromey <tromey@redhat.com>
3761 Dodji Seketeli <dodji@redhat.com>
3762
3763 * c.opt (ftrack-macro-expansion): New option. Handle it with and
3764 without argument.
3765 * c-opts.c (c_common_handle_option)<case
3766 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3767 cases. Handle -ftrack-macro-expansion with and without argument.
3768
46427374
TT
37692011-10-15 Tom Tromey <tromey@redhat.com>
3770 Dodji Seketeli <dodji@redhat.com>
3771
3772 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3773 (print_line, cb_define, do_line_change): Adjust to avoid touching
3774 the internals of struct line_map. Use the public API instead.
3775 * c-pch.c (c_common_read_pch): Likewise.
3776 * c-lex.c (fe_file_change): Likewise.
3777
fc8396e9
PC
37782011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
3779
3780 PR c++/17212
3781 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3782
37832011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
3784
3785 PR c++/33067
3786 * c-pretty-print.c (pp_c_floating_constant): Output
3787 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3788
e79983f4
MM
37892011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3790
3791 * c-common.c (def_builtin_1): Delete old interface with two
3792 parallel arrays to hold standard builtin declarations, and replace
3793 it with a function based interface that can support creating
3794 builtins on the fly in the future. Change all uses, and poison
3795 the old names. Make sure 0 is not a legitimate builtin index.
3796 * c-omp.c (c_finish_omp_barrier): Ditto.
3797 (c_finish_omp_taskwait): Ditto.
3798 (c_finish_omp_flush): Ditto.
3799
6637388f
TG
38002011-10-11 Tristan Gingold <gingold@adacore.com>
3801
3802 * c.opt: (fallow-parameterless-variadic-functions): New.
3803
3797cb21
DS
38042011-09-08 Dodji Seketeli <dodji@redhat.com>
3805
3806 PR c++/33255 - Support -Wunused-local-typedefs warning
3807 * c-common.h (struct c_language_function::local_typedefs): New
3808 field.
9faeb493
UB
3809 (record_locally_defined_typedef, maybe_record_typedef_use)
3810 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 3811 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
3812 (maybe_record_typedef_use)
3813 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
3814 * c.opt: Declare new -Wunused-local-typedefs flag.
3815
693ddb1b
EB
38162011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3817
3818 PR middle-end/50266
3819 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3820 computations.
3821
830c740f
RG
38222011-09-05 Richard Guenther <rguenther@suse.de>
3823
3824 * c-common.c (complete_array_type): Use ssize_int (-1) instead
3825 of integer_minus_one_node for empty array upper bounds.
3826
892a371f
DS
38272011-08-28 Dodji Seketeli <dodji@redhat.com>
3828
3829 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3830 it's the first time it's being called on this main TU.
3831
0e3fdb48
RB
38322011-08-24 Richard Guenther <rguenther@suse.de>
3833
3834 PR c/49396
3835 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3836
38372011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
3838
3839 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3840 defined in cpp_init_builtins and c_cpp_builtins.
3841
d4a83c10
JM
38422011-08-19 Joseph Myers <joseph@codesourcery.com>
3843
3844 * c-common.c (c_common_reswords): Add __builtin_complex.
3845 * c-common.h (RID_BUILTIN_COMPLEX): New.
3846
bbceee64
JM
38472011-08-18 Joseph Myers <joseph@codesourcery.com>
3848
3849 * c-common.c (c_common_reswords): Add _Noreturn.
3850 (keyword_is_function_specifier): Handle RID_NORETURN.
3851 * c-common.h (RID_NORETURN): New.
3852
0e3a99ae
AS
38532011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3854
3855 * c-common.c (unsafe_conversion_p): New function. Check if it is
3856 unsafe to convert an expression to the type.
3857 (conversion_warning): Adjust, use unsafe_conversion_p.
3858 * c-common.h (unsafe_conversion_p): New function declaration.
3859
20906c66
JJ
38602011-08-02 Jakub Jelinek <jakub@redhat.com>
3861
3862 * c-common.h (c_finish_omp_atomic): Adjust prototype.
3863 (c_finish_omp_taskyield): New prototype.
3864 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3865 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3866 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
3867 or RHS1 have side-effects, evaluate those too in the right spot,
3868 if it is a decl and LHS is also a decl, error out if they
3869 aren't the same.
3870 (c_finish_omp_taskyield): New function.
3871 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3872 * c-pragma.c (omp_pragmas): Add taskyield.
3873 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3874 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3875 PRAGMA_OMP_CLAUSE_MERGEABLE.
3876
770e5a2e
DS
38772011-07-25 Dodji Seketeli <dodji@redhat.com>
3878
3879 * c-common.h (set_underlying_type): Remove parm name from
3880 declaration.
3881
1baae426
RG
38822011-07-25 Romain Geissler <romain.geissler@gmail.com>
3883
3884 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 3885
fcb21722
JM
38862011-07-22 Jason Merrill <jason@redhat.com>
3887
76f86d00
JM
3888 PR c++/49793
3889 * c.opt (Wnarrowing): New.
3890
3a636414
JM
3891 PR c++/30112
3892 * c-common.h: Declare c_linkage_bindings.
3893 * c-pragma.c (handle_pragma_redefine_extname): Use it.
3894
fcb21722
JM
3895 PR c++/49813
3896 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3897 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3898 as flag_isoc99 for 'restrict'.
3899 (pp_c_specifier_qualifier_list): Likewise for _Complex.
3900
02614448
ILT
39012011-07-21 Ian Lance Taylor <iant@google.com>
3902
3903 PR middle-end/49705
3904 * c-common.c (c_disable_warnings): New static function.
3905 (c_enable_warnings): New static function.
3906 (c_fully_fold_internal): Change local unused_p to bool. Call
3907 c_disable_warnings and c_enable_warnings rather than change
3908 c_inhibit_evaluation_warnings.
3909
34429675
JM
39102011-07-20 Jason Merrill <jason@redhat.com>
3911
3912 PR c++/6709 (DR 743)
3913 PR c++/42603 (DR 950)
3914 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3915 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3916 (CPP_DECLTYPE): New.
3917 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3918
5d49b6a7
RG
39192011-07-19 Richard Guenther <rguenther@suse.de>
3920
3921 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3922 * c-omp.c (c_finish_omp_for): Likewise.
3923
e84a58ff
EB
39242011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3925
3926 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3927 body on the next line.
3928
329af3c7
JM
39292011-07-08 Jason Merrill <jason@redhat.com>
3930
4063e61b
JM
3931 PR c++/45437
3932 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3933
329af3c7
JM
3934 PR c++/49673
3935 * c-common.c (c_apply_type_quals_to_decl): Don't check
3936 TYPE_NEEDS_CONSTRUCTING.
3937
1a072294
RG
39382011-07-06 Richard Guenther <rguenther@suse.de>
3939
3940 * c-common.c (c_common_nodes_and_builtins):
3941 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3942
fce5dddd
RG
39432011-07-05 Richard Guenther <rguenther@suse.de>
3944
3945 * c-common.c (c_common_nodes_and_builtins): Build all common
3946 tree nodes first.
3947
45d439ac
JJ
39482011-06-27 Jakub Jelinek <jakub@redhat.com>
3949
56300785
JJ
3950 * c-common.h (c_tree_chain_next): New static inline function.
3951
45d439ac
JJ
3952 * c-common.c (check_builtin_function_arguments): Handle
3953 BUILT_IN_ASSUME_ALIGNED.
3954
e0a8ecf2
AM
39552011-06-21 Andrew MacLeod <amacleod@redhat.com>
3956
3957 * c-common.c: Add sync_ or SYNC__ to builtin names.
3958 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
3959
39602011-06-20 Pierre Vittet <piervit@pvittet.com>
3961
3962 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3963 handler.
3964 (gen_pragma_handler): New union.
3965 (internal_pragma_handler): New type.
3966 (c_register_pragma_with_data)
3967 (c_register_pragma_with_expansion_and_data): New functions.
3968
3969 * c-pragma.c (registered_pragmas, c_register_pragma_1)
3970 (c_register_pragma, c_register_pragma_with_expansion)
3971 (c_invoke_pragma_handler): Changed to work with
3972 internal_pragma_handler.
3973 (c_register_pragma_with_data)
3974 (c_register_pragma_with_expansion_and_data): New functions.
3975
677f3fa8
JM
39762011-06-14 Joseph Myers <joseph@codesourcery.com>
3977
3978 * c-common.c: Include common/common-target.h.
3979 (handle_section_attribute): Use
3980 targetm_common.have_named_sections.
3981 * c-cppbuiltin.c: Include common/common-target.h.
3982 (c_cpp_builtins): Use targetm_common.except_unwind_info.
3983
d7fc8c14
RG
39842011-06-10 Richard Guenther <rguenther@suse.de>
3985
3986 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3987 to print a IDENTIFIER_NODE.
3988
10e48e39
RO
39892011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3990 Joseph Myers <joseph@codesourcery.com>
3991
3992 * c.opt (fbuilding-libgcc): New option.
3993 * c-cppbuiltin.c (c_cpp_builtins): Define
3994 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3995
6976ae51
JM
39962011-06-07 Jason Merrill <jason@redhat.com>
3997
3ff60975
JM
3998 * c-common.c (max_tinst_depth): Lower default to 900.
3999
6976ae51
JM
4000 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
4001
009db074
RG
40022011-06-07 Richard Guenther <rguenther@suse.de>
4003
4004 * c-common.c (c_common_nodes_and_builtins): Do not set
4005 size_type_node or call set_sizetype.
4006
b4592b92
DS
40072011-06-07 Dodji Seketeli <dodji@redhat.com>
4008
4009 PR debug/49130
4010 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 4011 type when using pointer comparison to compare types.
b4592b92 4012
014ab419
JW
40132011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
4014
4015 * c.opt: Add -Wdelete-non-virtual-dtor.
4016 * c-opts.c (c_common_handle_option): Include it in -Wall.
4017
4f60111f
NF
40182011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4019
4020 PR bootstrap/49190
4021
4022 Revert:
4023 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4024
4025 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4026 not tree_common.
4027
4cc4f2f4
JJ
40282011-05-27 Jakub Jelinek <jakub@redhat.com>
4029
4030 PR c++/49165
4031 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
4032 C++ don't call c_common_truthvalue_conversion on void type arms.
4033
38e01f9e
NF
40342011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4035
4036 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
4037 (stmt_list_stack): Define.
4038 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
4039 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
4040
92e948a8
NF
40412011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4042
4043 * c-common.c (warning_candidate_p): Check for BLOCKs.
4044
a2fc3e63
NF
40452011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4046
4047 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4048 not tree_common.
4049
0957c029
JJ
40502011-05-25 Jakub Jelinek <jakub@redhat.com>
4051
4052 * c-common.c (def_fn_type): Remove extra va_end.
4053
828fb3ba
JM
40542011-05-23 Jason Merrill <jason@redhat.com>
4055
4056 PR c++/48106
4057 * c-common.c (c_common_get_narrower): New.
4058 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
4059
dde05067
NF
40602011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4061
4062 * c-common.h (check_function_arguments): Tweak prototype of
4063 check_function_arguments.
4064 * c-common.c (check_function_arguments): Likewise. Adjust
4065 calls to check_function_nonnull, check_function_format, and
4066 check_function_sentinel.
4067 (check_function_sentinel): Take a FUNCTION_TYPE rather than
4068 separate attributes and typelist arguments. Use
4069 FOREACH_FUNCTION_ARGS to iterate over argument types.
4070
3c0d13bf
PC
40712011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4072
4073 * c-common.c (c_common_reswords): Reorder.
4074 * c-common.h (rid): Likewise.
4075
8242dd04
NF
40762011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4077
4078 * c-common.c (def_fn_type): Don't call build_function_type, call
4079 build_function_type_array or build_varargs_function_type_array
4080 instead.
4081 (c_common_nodes_and_builtins): Likewise.
4082
3d528853
NF
40832011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4084
4085 * c-common.c (c_add_case_label): Omit the loc argument to
4086 build_case_label.
4087 * c-common.h (build_case_label): Remove.
4088 * c-semantics.c (build_case_label): Remove.
4089
a04a722b
JM
40902011-05-05 Joseph Myers <joseph@codesourcery.com>
4091
4092 * c-objc.h (objc_start_method_definition): Update prototype.
4093 * stub-objc.c (objc_start_method_definition): Add extra parameter.
4094
e19a18d4
NF
40952011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4096
4097 * c-common.c (check_main_parameter_types): Reindent. Don't use
4098 TYPE_ARG_TYPES directly.
4099 (handle_nonnull_attribute): Likewise.
4100 (sync_resolve_params): Likewise.
4101 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
4102 to check_format_string.
4103 (handle_format_attribute): Likewise.
4104 (check_format_string): Take a function type to examine instead of
4105 a type list. Use a function_arg_iterator to step through argument
4106 types.
4107
c62c040f
RG
41082011-05-04 Richard Guenther <rguenther@suse.de>
4109
4110 * c-common.c (fix_string_type): Use size_int for index type bounds.
4111 (start_fname_decls): Do not pass NULL to build_int_cst.
4112 (c_init_attributes): Likewise.
4113 * c-lex.c (c_lex_with_flags): Likewise.
4114
c12ff9d8
JM
41152011-04-27 Jason Merrill <jason@redhat.com>
4116
4117 * c-common.c (make_tree_vector_from_list): New.
4118 * c-common.h: Declare it.
4119
304dfbe3
RG
41202011-04-26 Richard Guenther <rguenther@suse.de>
4121
4122 PR preprocessor/48248
4123 * c-ppoutput.c (maybe_print_line): Always optimize newlines
4124 for output size with -P.
4125
3c0d13bf
PC
41262011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4127
4128 * c-common.c (struct c_common_resword): Add __underlying_type.
4129 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
4130
04695783
JM
41312011-04-20 Jim Meyering <meyering@redhat.com>
4132
4133 * c-format.c (init_dollar_format_checking): Remove useless
4134 if-before-free.
4135
0dc33c3c
NP
41362011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4137
4138 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 4139 (objc_detect_field_duplicates): New.
0dc33c3c 4140 * stub-objc.c: Likewise.
3c0d13bf 4141
c59633d9
NP
41422011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4143
4144 * stub-objc.c (objc_declare_protocols): Renamed to
4145 objc_declare_protocol.
4146 * c-objc.h: Likewise.
3c0d13bf 4147
32dabdaf
NP
41482011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4149
4150 * stub-objc.c (objc_declare_class): Updated argument name.
4151
81f653d6
NF
41522011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4153
4154 * c-common.h (c_common_init_ts): Declare.
4155 * c-common.c (c_common_init_ts): Define.
4156
eb345401
NP
41572011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4158
4159 * c-objc.h (objc_build_message_expr): Updated prototype.
4160 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 4161
a358e188
MJ
41622011-04-12 Martin Jambor <mjambor@suse.cz>
4163
4164 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
4165 of cgraph_node.
4166
e6313a78
RG
41672011-04-11 Richard Guenther <rguenther@suse.de>
4168
4169 * c-common.c (complete_array_type): Build a range type of
4170 proper type.
4171
dcf0c47e
NF
41722011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4173
4174 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
4175 (handle_type_generic_attribute): Likewise.
4176
1ee44b26
JM
41772011-04-07 Jason Merrill <jason@redhat.com>
4178
4179 PR c++/48450
4180 * c-common.c (c_common_truthvalue_conversion): Don't ignore
4181 conversion from C++0x scoped enum.
4182
acce4e77
JM
41832011-04-06 Joseph Myers <joseph@codesourcery.com>
4184
4185 * c-target-def.h: New file.
4186 * c-target.def: New file.
4187 * c-target.h: New file.
4188 * c-common.c (targetcm): Don't define here.
4189 * c-common.h (default_handle_c_option): Declare.
4190 * c-format.c: Include c-target.h instead of target.h.
4191 * c-opts.c: Include c-target.h instead of target.h. Explicitly
4192 include tm.h.
4193 (default_handle_c_option): Move from targhooks.c.
4194
e2eefb55
JJ
41952011-03-29 Jakub Jelinek <jakub@redhat.com>
4196
4197 PR preprocessor/48248
4198 * c-ppoutput.c (print): Add src_file field.
4199 (init_pp_output): Initialize it.
4200 (maybe_print_line): Don't optimize by adding up to 8 newlines
4201 if map->to_file and print.src_file are different file.
4202 (print_line): Update print.src_file.
4203
ba78087b
KT
42042011-03-25 Kai Tietz <ktietz@redhat.com>
4205
4206 * c-ada-spec.c (compare_comment): Use filename_cmp
4207 instead of strcmp for filename.
4208
0edf1bb2
JL
42092011-03-25 Jeff Law <law@redhat.com>
4210
adfac8df 4211 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 4212
c7dc8804
JM
42132011-03-25 Jason Merrill <jason@redhat.com>
4214
4215 * c.opt: Add -std=c++03.
4216
d1d879b1
EB
42172011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4218
4219 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
4220
62d784f7
KT
42212011-03-17 Kai Tietz
4222
4223 PR target/12171
5050afdf
KT
4224 * c-pretty-print.c (pp_c_specifier_qualifier_list):
4225 Display allowed attributes for function pointer types.
4226 (pp_c_attributes_display): New function to display
4227 attributes having affects_type_identity flag set to true.
4228 * c-pretty-print.h (pp_c_attributes_display): New prototype.
4229
62d784f7
KT
4230 * c-common.c (c_common_attribute_table):
4231 Add new element.
4232 (c_common_format_attribute_table): Likewise.
4233
82d37118
JM
42342011-03-18 Jason Merrill <jason@redhat.com>
4235
49a000c3
JM
4236 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
4237 * c-common.h: Don't declare it here.
4238 * c-common.c: Or define it here.
4239 * c-opts.c (c_common_handle_option): Or set it here.
4240
82d37118
JM
4241 PR c++/35315
4242 * c-common.c (handle_transparent_union_attribute): Don't
4243 make a duplicate type in C++.
4244
17bc631c
JM
42452011-03-15 Jason Merrill <jason@redhat.com>
4246
4247 * c-common.c (max_constexpr_depth): New.
4248 * c-common.h: Declare it.
4249 * c-opts.c (c_common_handle_option): Set it.
4250 * c.opt (fconstexpr-depth): New option.
4251
1b9b91a6
JM
42522011-03-11 Jason Merrill <jason@redhat.com>
4253
f231b5ff
JM
4254 * c-common.c (attribute_takes_identifier_p): Add missing const.
4255
1b9b91a6
JM
4256 PR c++/46803
4257 * c-common.c (attribute_takes_identifier_p): Assume that an
4258 unknown attribute takes an identifier.
4259
a19e4d44
NF
42602011-03-07 Nathan Froyd <froydnj@codesourcery.com>
4261
4262 PR c/47786
4263 * c-common.c (c_type_hash): Call list_length instead of iterating
4264 through DECL_CHAIN. Rename 'i' to 'n_elements'.
4265
982d62f6
JJ
42662011-02-19 Jakub Jelinek <jakub@redhat.com>
4267
4268 PR c/47809
4269 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4270
0a256240
NP
42712011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4272
4273 * c.opt (fobjc-abi-version=) New.
4274 (fobjc-nilcheck): New.
4275
ba9e6dd5
NF
42762011-02-03 Nathan Froyd <froydnj@codesourcery.com>
4277
4278 PR c++/46890
4279 * c-common.h (keyword_is_decl_specifier): Declare.
4280 * c-common.c (keyword_is_decl_specifier): Define.
4281 (keyword_is_function_specifier): New function.
4282
7273813a
JJ
42832011-01-26 Jakub Jelinek <jakub@redhat.com>
4284
4285 PR c/47473
4286 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4287 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4288 REAL_TYPE.
4289
908ef79b
AC
42902011-01-26 Arnaud Charlet <charlet@adacore.com>
4291
4292 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4293
237e9384
JJ
42942011-01-26 Jakub Jelinek <jakub@redhat.com>
4295
4296 PR pch/47430
4297 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4298 after init_c_lex if pch_file is set.
4299
47ea1edf
DK
43002011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
4301
d4dba752 4302 PR c++/43601
47ea1edf
DK
4303 * c.opt (-fkeep-inline-dllexport): New switch.
4304
2aa9c6ae
RG
43052011-01-12 Richard Guenther <rguenther@suse.de>
4306
4307 PR middle-end/32511
4308 * c-common.c (handle_weak_attribute): Warn instead of error
4309 on declaring an inline function weak.
4310
7bd11157
TT
43112011-01-05 Tom Tromey <tromey@redhat.com>
4312
4313 * c-common.h (lvalue_error): Update.
4314 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
4315 not error.
4316
0e66e494 43172010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 4318
b4f588c4
NP
4319 PR objc/47075
4320 * c-objc.h (objc_finish_message_expr): Added argument to
4321 prototype.
4322
f4da8dce
NF
43232010-12-22 Nathan Froyd <froydnj@codesourcery.com>
4324
4325 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4326 Use prototype_p.
4327
46270f14
NP
43282010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
4329
4330 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 4331 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 4332
4816c593
NF
43332010-12-10 Nathan Froyd <froydnj@codesourcery.com>
4334
4335 * c-common.h (readonly_error): Declare.
4336 * c-common.c (readonly_error): Define.
4337
7a6daeb0
NF
43382010-12-09 Nathan Froyd <froydnj@codesourcery.com>
4339
4340 * c-common.h (invalid_indirection_error): Declare.
4341 * c-common.c (invalid_indirection_error): Define.
4342
892f6119
RG
43432010-12-03 Richard Guenther <rguenther@suse.de>
4344
4345 PR c/46745
4346 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4347 (pp_c_unary_expression): Likewise.
4348 (pp_c_expression): Likewise.
4349
6c39e757
NP
43502010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
4351
4352 * c-common.h (objc_finish_function): New.
4353 (objc_non_volatilized_type): Removed.
4354 (objc_type_quals_match): Removed.
4355 * stub-objc.c (objc_finish_function): New.
4356 (objc_non_volatilized_type): Removed.
4357 (objc_type_quals_match): Removed.
9faeb493 4358
7c475d11
JM
43592010-11-30 Joseph Myers <joseph@codesourcery.com>
4360
4361 * c-common.h (parse_optimize_options): Declare.
4362 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4363 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4364
71f3e391
JM
43652010-11-29 Joseph Myers <joseph@codesourcery.com>
4366
4367 * c-opts.c (check_deps_environment_vars): Use getenv instead of
4368 GET_ENVIRONMENT.
4369 * c-pch.c (O_BINARY): Don't define here.
4370 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4371
d5fabb58
JM
43722010-11-25 Joseph Myers <joseph@codesourcery.com>
4373
4374 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4375 targetm.except_unwind_info.
4376
299404a1
JM
43772010-11-23 Joseph Myers <joseph@codesourcery.com>
4378
4379 * c-opts.c (c_common_handle_option): Pass location to
4380 set_struct_debug_option.
4381
c98cd5bf
JM
43822010-11-23 Joseph Myers <joseph@codesourcery.com>
4383
4384 * c-common.c (visibility_options): Move from ../opts.c.
4385 * c-common.h (struct visibility_flags, visibility_options):
4386 Declare here.
4387 * c-opts.c (finish_options): Rename to c_finish_options.
4388 (c_common_init): Update call to finish_options.
4389
a9546771
NP
43902010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4391
4392 PR objc/34033
4393 * c-lex.c (lex_string): Check that each string in an Objective-C
4394 string concat sequence starts with either one or zero '@', and
4395 that there are no spurious '@' signs at the end.
4396
24a57808
JM
43972010-11-20 Joseph Myers <joseph@codesourcery.com>
4398
4399 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4400 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4401 HANDLE_PRAGMA_VISIBILITY.
4402 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4403 HANDLE_PRAGMA_VISIBILITY): Don't define.
4404 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4405
a9aa2c3a
NF
44062010-11-20 Nathan Froyd <froydnj@codesourcery.com>
4407
4408 PR c++/16189
4409 PR c++/36888
4410 PR c++/45331
4411 * c-common.h (keyword_begins_type_specifier): Declare.
4412 (keyword_is_storage_class_specifier): Declare.
4413 (keyword_is_type_qualifier): Declare.
4414 * c-common.c (keyword_begins_type_specifier): New function.
4415 (keyword_is_storage_class_specifier): New function.
4416 (keyword_is_type_qualifier): Declare.
4417
5386338c
JM
44182010-11-19 Joseph Myers <joseph@codesourcery.com>
4419
4420 PR c/46547
4421 * c-common.c (in_late_binary_op): Define.
4422 (c_common_truthvalue_conversion): Check in_late_binary_op before
4423 calling c_save_expr.
4424 * c-common.h (in_late_binary_op): Declare.
4425
69ccdddb
JM
44262010-11-19 Joseph Myers <joseph@codesourcery.com>
4427
4428 * c-opts.c (c_common_handle_option): Update calls to
4429 set_struct_debug_option.
4430
6b192a09
NP
44312010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
4432
4433 * c-common.h (objc_declare_protocols): Added additional argument.
4434 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 4435
fb52b50a
NF
44362010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4437
4438 PR c/33193
4439 * c-common.h (build_real_imag_expr): Declare.
4440 * c-semantics.c (build_real_imag_expr): Define.
4441
b37421c6
JM
44422010-11-17 Joseph Myers <joseph@codesourcery.com>
4443
4444 * c-opts.c (c_common_parse_file): Take no arguments.
4445 * c-common.h (c_common_parse_file): Update prototype.
4446
07078664
JJ
44472010-11-16 Jakub Jelinek <jakub@redhat.com>
4448
4449 PR c++/46401
4450 * c-common.c (warning_candidate_p): Don't track non-const calls
4451 or STRING_CSTs.
4452
c6a13190
ILT
44532010-11-15 Ian Lance Taylor <iant@google.com>
4454
4455 * c-lex.c (init_c_lex): Set macro debug callbacks if
4456 flag_dump_go_spec is set.
4457
925e8657
NP
44582010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4459
4460 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4461 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4462
bb0a9581
NF
44632010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4464
4465 PR preprocessor/45038
4466 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4467 dialects.
4468
c5fa0890
JM
44692010-11-12 Joseph Myers <joseph@codesourcery.com>
4470
4471 * c-common.h (c_family_lang_mask): Declare.
4472 * c-opts.c (c_family_lang_mask): Make extern.
4473 * c-pragma.c (handle_pragma_diagnostic): Use
4474 control_warning_option.
4475
a4d8c676
JM
44762010-11-12 Joseph Myers <joseph@codesourcery.com>
4477
4478 * c-common.c (parse_optimize_options): Update call to
4479 decode_options.
4480 * c-common.h (c_common_handle_option): Update prototype.
4481 * c-opts.c (c_common_handle_option): Take location_t parameter and
4482 pass it to other functions.
4483
f954bd2c
JM
44842010-11-11 Joseph Myers <joseph@codesourcery.com>
4485
4486 * c-opts.c (warning_as_error_callback): Remove.
4487 (c_common_initialize_diagnostics): Don't call
4488 register_warning_as_error_callback.
4489 (c_common_handle_option): Handle -Werror=normalized= here.
4490
d8a07487
JM
44912010-11-10 Joseph Myers <joseph@codesourcery.com>
4492
4493 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4494 in diagnostic.
4495 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4496 letter.
4497 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4498 Remove trailing '.' from diagnostics.
4499 * c.opt (Wwrite-strings_: Avoid '`' in help text.
4500
d5478783
JM
45012010-11-10 Joseph Myers <joseph@codesourcery.com>
4502
4503 * c-common.c (parse_optimize_options): Pass global_dc to
4504 decode_options.
4505 * c-opts.c (c_common_handle_option): Pass &global_options to
4506 set_Wstrict_aliasing.
4507 * c.opt (v): Don't mark Common or document here.
4508
91ebb981
IS
45092010-11-06 Iain Sandoe <iains@gcc.gnu.org>
4510
4511 PR target/44981
4512 * c-format.c (format_type): New type gcc_objc_string_format_type.
4513 (valid_stringptr_type_p): New.
4514 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 4515 (check_format_string): Pass expected type, use
91ebb981
IS
4516 valid_stringptr_type_p (), check that the format string types are
4517 consistent with the format specification.
4518 (decode_format_attr): Warn if NSString is used outside objective-c.
4519 (format_types_orig): Add NSString.
4520 (format_name): New.
4521 (format_flags): New.
4522 (check_format_arg): Handle format strings requiring an external parser.
4523 first_target_format_type: New variable.
4524 (handle_format_attribute): Set up first_target_format_type, pass the
4525 expected format arg string type to check_format_string().
4526 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
4527 * stub-objc.c (objc_string_ref_type_p): New.
4528 (objc_check_format_arg): New.
4529
bede2adc
NP
45302010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
4531
9faeb493 4532 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
4533 * c-common.h (objc_build_class_component_ref): New.
4534 * stub-objc.c (objc_build_class_component_ref): New.
4535
9a179d01
NP
45362010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4537
4538 * c.opt (Wproperty-assign-default): New option.
4539
22d8d616
NP
45402010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4541
4542 Implemented -fobjc-std=objc1 flag.
4543 * c.opt (fobjc-std=objc1): New option.
4544
2debdb4f
NP
45452010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
4546
4547 Implemented format and noreturn attributes for Objective-C methods.
4548 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4549 attribute for Objective-C methods.
4550
ec52b111
JM
45512010-10-31 Jason Merrill <jason@redhat.com>
4552
4553 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4554 EXPR_LOC_OR_HERE.
4555
46a88c12
NP
45562010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4557
4558 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4559 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4560 (objc_add_property_declaration): Removed arguments for copies and
4561 ivar.
4562 (objc_build_getter_call): Renamed to
4563 objc_maybe_build_component_ref.
4564 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4565 (objc_is_property_ref): New.
4566 * c-common.c (c_common_reswords): Removed copies and ivar.
4567 * stub-objc.c (objc_add_property_declaration): Removed arguments
4568 for copies and ivar.
4569 (objc_build_getter_call): Renamed to
4570 objc_maybe_build_component_ref.
4571 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4572 (objc_is_property_ref): New.
9faeb493 4573
1e4bf85b
AC
45742010-10-29 Arnaud Charlet <charlet@adacore.com>
4575 Matthew Gingell <gingell@adacore.com>
4576
4577 * c-ada-spec.c (separate_class_package): New function.
4578 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4579 name of their enclosing package.
4580 (print_ada_declaration): Use separate_class_package.
4581
81f0bab2
JM
45822010-10-27 Jason Merrill <jason@redhat.com>
4583
2b08f2c5
JM
4584 * c-common.c (c_common_reswords): Add __is_literal_type.
4585 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4586
81f0bab2
JM
4587 * c-common.c (check_case_value): Remove special C++ code.
4588
200290f2
NP
45892010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4590
4591 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4592 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4593 and RID_LAST_PATTR.
4594 (objc_add_property_declaration): Added additional arguments.
4595 (objc_property_attribute_kind): Removed.
4596 (objc_set_property_attr): Removed.
4597 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4598 copy and nonatomic.
4599 * stub-objc.c (objc_add_property_declaration): Added additional
4600 arguments.
4601 (objc_set_property_attr): Removed.
9faeb493 4602
f614132b
NP
46032010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4604
4605 * c-common.h (objc_add_property_variable): Renamed to
4606 objc_add_property_declaration. Added location argument.
4607 * stub-objc.c (objc_add_property_variable): Same change.
4608
b8a18805
NP
46092010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4610
4611 * c-common.h (objc_maybe_printable_name): New.
4612 * stub-objc.c (objc_maybe_printable_name): New.
4613
30cd1c5d
AS
46142010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4615 Andrew Pinski <pinskia@gmail.com>
4616
4617 * c-common.h (c_common_mark_addressable_vec): Declare.
4618 * c-common.c (c_common_mark_addressable_vec): New function.
4619
249a82c4
NP
46202010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4621
4622 * c-common.h (objc_set_method_type): Removed.
4623 (objc_add_method_declaration): Added boolean argument.
4624 (objc_start_method_definition): Same change.
4625 (objc_build_method_signature): Same change.
4626 * stub-objc.c (objc_set_method_type): Removed.
4627 (objc_add_method_declaration): Added boolean argument.
4628 (objc_start_method_definition): Same change.
4629 (objc_build_method_signature): Same change.
4630
977e30bc
NP
46312010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4632
4633 * c-common.h (finish_file): Removed.
4634 (objc_write_global_declarations): New.
4635 * c-opts.c (c_common_parse_file): Do not call finish_file.
4636 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 4637
da57d1b9
NP
46382010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4639
4640 Implemented parsing @synthesize and @dynamic for
4641 Objective-C/Objective-C++.
4642 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4643 (objc_add_synthesize_declaration): New.
4644 (objc_add_dynamic_declaration): New.
4645 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4646 * stub-objc.c (objc_add_synthesize_declaration): New.
4647 (objc_add_dynamic_declaration): New.
9faeb493 4648
0069111f
MM
46492010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4650
4651 PR target/46041
4652 * c-cppbuiltin.c (mode_has_fma): Move function here from
4653 builtins.c. Don't use the fma optab, instead just use the
4654 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4655 using -save-temps.
4656
e426b47b
NP
46572010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4658
4659 Merge from 'apple/trunk' branch on FSF servers.
0069111f 4660
e426b47b
NP
4661 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4662
9faeb493 4663 Radar 4330422
e426b47b
NP
4664 * c-common.h (objc_non_volatilized_type): New declaration
4665 * stub-objc.c (objc_non_volatilized_type): New stub.
4666
90fbfdc3
NP
46672010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4668
e426b47b 4669 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
4670
4671 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4672
9faeb493 4673 Radar 4133425
90fbfdc3 4674 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 4675 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 4676
c37d8c30
IS
46772010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4678
4679 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4680 * c-common.h (enum rid): Add RID_AT_PACKAGE.
4681 (objc_ivar_visibility_kind): New enum.
4682 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 4683 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
4684 visibility enum.
4685
1b1562a5
MM
46862010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4687
4688 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4689 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4690 has the appropriate fma builtins.
4691 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4692
668ea4b1
IS
46932010-10-14 Iain Sandoe <iains@gcc.gnu.org>
4694
1b1562a5 4695 merge from FSF apple 'trunk' branch.
668ea4b1 4696 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 4697
668ea4b1
IS
4698 Radars 4436866, 4505126, 4506903, 4517826
4699 * c-common.c (c_common_resword): Define @property and its attributes.
4700 * c-common.h: Define property attribute enum entries.
4701 (OBJC_IS_PATTR_KEYWORD): New.
4702 (objc_property_attribute_kind): New enum.
4703 Declare objc_set_property_attr (), objc_add_property_variable (),
4704 objc_build_getter_call () and objc_build_setter_call ().
4705 * stub-objc.c (objc_set_property_attr): New stub.
4706 (objc_add_property_variable): Likewise.
4707 (objc_build_getter_call): Likewise.
4708 (objc_build_setter_call) Likewise.
1b1562a5 4709
a1178b30
IS
47102010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4711
1b1562a5 4712 merge from FSF apple 'trunk' branch.
a1178b30
IS
4713 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4714
4715 Radar 3803157 (method attributes)
4716 * c-common.c (handle_deprecated_attribute): Recognize
4717 objc methods as valid declarations.
4718 * c-common.h: Declare objc_method_decl ().
1b1562a5 4719 * stub-objc.c (objc_method_decl): New stub.
a1178b30 4720
a75bfaa6
JM
47212010-10-08 Joseph Myers <joseph@codesourcery.com>
4722
4723 * c-common.c (parse_optimize_options): Call
4724 decode_cmdline_options_to_array_default_mask before
4725 decode_options. Update arguments to decode_options.
4726 * c-common.h (c_common_init_options_struct): Declare.
4727 * c-opts.c (c_common_init_options_struct): New. Split out from
4728 c_common_init_options.
4729
f05b9d93
NP
47302010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4731
4732 Implemented fast enumeration for Objective-C.
4733 * c-common.h (objc_finish_foreach_loop): New.
4734 * stub-objc.c (objc_finish_foreach_loop): New.
4735
1ebe4b4f
JM
47362010-10-05 Joseph Myers <joseph@codesourcery.com>
4737
4738 * c-common.h (struct diagnostic_context): Don't declare here.
4739 (c_common_initialize_diagnostics): Declare using
4740 diagnostic_context typedef.
4741 * c-opts.c (c_common_handle_option): Pass global_dc to
4742 handle_generated_option.
4743
d4d24ba4
JM
47442010-10-04 Joseph Myers <joseph@codesourcery.com>
4745
4746 * c-opts.c (c_common_handle_option): Pass &global_options_set to
4747 handle_generated_option.
4748
478a1c5b
ILT
47492010-10-03 Ian Lance Taylor <iant@google.com>
4750
4751 * c.opt (-fplan9-extensions): New option.
4752
82a1c2fe
FXC
47532010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4754
4755 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4756 Remove.
4757 (c_cpp_builtins): Call functions from cppbuiltin.c instead
4758 of duplicating code.
4759
92902b1b
IS
47602010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4761
4762 * c-common.c: Add two new entries for @optional
4763 and @required keywords.
4764
4765 merge from FSF 'apple/trunk' branch.
4766 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
4767
4768 Radar 4386773
4769 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4770 objective-c keywords.
4771 (objc_set_method_opt): New declaration.
4772 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 4773
46625112
JM
47742010-09-30 Joseph Myers <joseph@codesourcery.com>
4775
4776 * c-common.c (handle_optimize_attribute): Pass &global_options to
4777 cl_optimization_save and cl_optimization_restore.
4778 * c-opts.c (c_common_handle_option): Pass &global_options to
4779 handle_generated_option.
4780 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4781 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4782 &global_options to cl_optimization_restore.
4783
49b91f05
NP
47842010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4785
4786 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4787 Objective-C/Objective-C++ keywords.
4788
13ed556f 47892010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 4790
9faeb493
UB
4791 Merge from 'apple/trunk' branch on FSF servers.
4792
a6341d57
NP
4793 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4794
4795 Radar 4281748
4796 * c-common.h (objc_check_global_decl): New declaration.
4797 * stub-objc.c (objc_check_global_decl): New stub.
4798
f0036cca
JM
47992010-09-29 Joseph Myers <joseph@codesourcery.com>
4800
4801 * c.opt: Don't use VarExists.
4802
e3339d0f
JM
48032010-09-29 Joseph Myers <joseph@codesourcery.com>
4804
4805 * c-common.c (c_cpp_error): Update names of diagnostic_context
4806 members.
4807 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4808 cl_optimization members.
4809 * c-opts.c (warning_as_error_callback, c_common_handle_option,
4810 sanitize_cpp_opts, finish_options): Update names of cpp_options
4811 members.
4812
1973201f
NP
48132010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4814
4815 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
4816 (objc_is_reserved_word): Removed.
4817 * c-common.c: Updated comments.
4818 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4819 objc_is_reserved_word.
4820 * stub-objc.c (objc_is_reserved_word): Removed.
4821
f7e71da5
IS
48222010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4823
9faeb493 4824 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
4825 include attributes.
4826 (objc_start_method_definition): Likewise.
4827 (objc_build_keyword_decl): Likewise.
4828 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4829 (objc_start_method_definition): Likewise.
4830 (objc_build_keyword_decl): Likewise.
4831
c165dca7
IS
48322010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4833
4834 * c-common.h (objc_start_class_interface): Adjust prototype.
4835 (objc_start_category_interface): Likewise.
4836 (objc_start_protocol): Likewise.
4837 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4838 (objc_start_class_interface): Likewise.
4839 (objc_start_category_interface): Likewise.
4840
7458026b
ILT
48412010-09-27 Ian Lance Taylor <iant@google.com>
4842
4843 * c-common.c (c_common_attribute_table): Add no_split_stack.
4844 (handle_no_split_stack_attribute): New static function.
4845
b581b85b
NP
48462010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4847
9faeb493 4848 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
4849
4850 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
4851
9faeb493 4852 Radar 4229905
b581b85b
NP
4853 * c-common.h (objc_have_common_type): New declaration.
4854 * stub-objc.c (objc_have_common_type): New stub.
4855
4856 2005-06-22 Ziemowit Laski <zlaski@apple.com>
4857
4858 Radar 4154928
4859 * c-common.h (objc_common_type): New prototype.
9faeb493 4860 * stub-objc.c (objc_common_type): New stub.
b581b85b 4861
46a4da10
JH
48622010-09-24 Jan Hubicka <jh@suse.cz>
4863
4864 * c-common.c (handle_leaf_attribute): New function.
4865 (struct attribute_spec c_common_att): Add leaf.
4866
e200444e
JM
48672010-09-22 Joseph Myers <joseph@codesourcery.com>
4868
4869 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4870 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4871 -dump, -dump=, -imacros, -imacros=, -include, -include=,
4872 -include-barrier, -include-directory, -include-directory=,
4873 -include-directory-after, -include-directory-after=,
4874 -include-prefix, -include-prefix=, -include-with-prefix,
4875 -include-with-prefix=, -include-with-prefix-after,
4876 -include-with-prefix-after=, -include-with-prefix-before,
4877 -include-with-prefix-before=, -no-integrated-cpp,
4878 -no-line-commands, -no-standard-includes, -no-warnings, -output,
4879 -output=, -pedantic, -pedantic-errors, -preprocess,
4880 -print-missing-file-dependencies, -trace-includes, -traditional,
4881 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4882 -user-dependencies, -verbose, -write-dependencies,
4883 -write-user-dependencies, no-integrated-cpp, traditional): New.
4884
29a80ea6
NP
48852010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4886
4887 PR objc/23710
ac1fc2fc
NP
4888 * c-common.h (objc_start_method_definition): Return bool instead
4889 of void.
4890 * stub-objc.c (objc_start_method_definition): Return bool instead
4891 of void.
4892
48932010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4894
4895 PR objc/25965
4896 * c-common.h (objc_get_interface_ivars): New declaration.
4897 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 4898
de621752
ILT
48992010-09-15 Ian Lance Taylor <iant@google.com>
4900
4901 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 4902 messages. Remove period at end of warning message.
de621752 4903
ba885ec5
NS
49042010-09-09 Nathan Sidwell <nathan@codesourcery.com>
4905
4906 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4907 (handle_alias_attribute): ... here.
4908 (handle_ifunc_attribute): New.
4909
c5ee1358
MM
49102010-09-06 Mark Mitchell <mark@codesourcery.com>
4911
4912 * c-common.h (do_warn_double_promotion): Declare.
4913 * c-common.c (do_warn_double_promotion): Define.
4914
0a0b3574
MM
49152010-09-05 Mark Mitchell <mark@codesourcery.com>
4916
4917 * c.opt (Wdouble-promotion): New.
4918
d1779886
JM
49192010-09-02 Joseph Myers <joseph@codesourcery.com>
4920
4921 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4922 fvtable-thunks, fxref): Mark no longer supported in help text.
4923
2d2bd949
JM
49242010-09-02 Joseph Myers <joseph@codesourcery.com>
4925
4926 * c.opt (Wimport, fall-virtual, falt-external-templates,
4927 fdefault-inline, fenum-int-equiv, fexternal-templates,
4928 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4929 fname-mangling-version-, fnew-abi, fnonnull-objects,
4930 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4931 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4932 applicable.
4933 (fhandle-exceptions): Mark with Alias and Warn.
4934 * c-opts.c (c_common_handle_option): Don't handle options marked
4935 as ignored.
4936
5de8299c
JM
49372010-09-02 Joseph Myers <joseph@codesourcery.com>
4938
4939 * c.opt (Wcomments, Werror-implicit-function-declaration,
4940 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4941 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4942 aliases.
4943 * c-common.c (option_codes): Use OPT_Wcomment instead of
4944 OPT_Wcomments.
4945 * c-opts.c (warning_as_error_callback, c_common_handle_option):
4946 Don't handle options marked as aliases.
4947
0ceb0201
RG
49482010-08-25 Richard Guenther <rguenther@suse.de>
4949
4950 * c-common.c (c_common_get_alias_set): Remove special
4951 handling for pointers.
4952
ac47786e
NF
49532010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4954
4955 * c-common.c: Use FOR_EACH_VEC_ELT.
4956 * c-gimplify.c: Likewise.
4957 * c-pragma.c: Likewise.
4958
c878765b
JM
49592010-08-16 Joseph Myers <joseph@codesourcery.com>
4960
4961 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
4962 RejectDriver.
4963 (MMDX): Change back to MMD. Mark NoDriverArg instead of
4964 RejectDriver.
4965 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4966 instead of OPT_MDX and OPT_MMDX.
4967
603349bf
JM
49682010-08-16 Joseph Myers <joseph@codesourcery.com>
4969
4970 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4971
644fa7ac
JM
49722010-08-12 Joseph Myers <joseph@codesourcery.com>
4973
4974 * c.opt (MD, MMD): Change to MDX and MMDX.
4975 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4976
481e1176
JM
49772010-08-11 Joseph Myers <joseph@codesourcery.com>
4978
4979 * c-opts.c (c_common_handle_option): Call handle_generated_option
4980 instead of handle_option.
4981
ac8dc9f7
NF
49822010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4983
4984 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4985 (maybe_apply_renaming_pragma): Delete unneeded declarations.
4986
4f8c876d
NF
49872010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4988
4989 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
4990 (pending_redefine_extname): Change type to a VEC.
4991 (add_to_renaming_pragma_list): Update for new type of
4992 pending_redefine_extname.
ac8dc9f7 4993 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 4994
3b0c690e
AC
49952010-08-04 Arnaud Charlet <charlet@adacore.com>
4996
4997 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4998 visited.
4999 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
5000 decide whether a type has already been declared/seen.
5001 Do not go to the original type.
5002 (dump_nested_types): New parameter forward.
5003 Generate forward declaration if needed and mark type as visited.
5004 (print_ada_declaration): Call dump_nested_types if not already done.
5005 Mark types as visited.
5006
1890bccc
JM
50072010-08-03 Joseph Myers <joseph@codesourcery.com>
5008
5009 * c.opt (-print-pch-checksum): Remove option.
5010 * c-opts.c (c_common_handle_option): Don't handle
5011 OPT_print_pch_checksum.
5012
5f20c657
JM
50132010-07-27 Joseph Myers <joseph@codesourcery.com>
5014
5015 * c-common.h (c_common_handle_option): Update prototype and return
5016 value type.
5017 * c-opts.c (c_common_handle_option): Update prototype and return
5018 value type. Update calls to handle_option and
5019 enable_warning_as_error.
5020
f551f80c
JJ
50212010-07-27 Jakub Jelinek <jakub@redhat.com>
5022
5023 PR c/45079
5024 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
5025
61ff2bdc
JM
50262010-07-27 Joseph Myers <joseph@codesourcery.com>
5027
5028 * c-common.h (c_common_missing_argument): Remove.
5029 * c-opts.c (c_common_missing_argument): Remove.
5030 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
5031 idirafter, imacros, include, isysroot, isystem, iquote): Add
5032 MissingArgError.
5033 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5034
7a9bf9a4
JM
50352010-07-27 Joseph Myers <joseph@codesourcery.com>
5036
5037 * c-common.h (c_common_option_lang_mask,
5038 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
5039 New.
5040 (c_common_init_options): Update prototype.
5041 * c-opts.c (c_common_option_lang_mask): New.
5042 (c_common_initialize_diagnostics): Split out of
5043 c_common_init_options.
5044 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
5045 New.
5046 (c_common_init_options): Update prototype. Use decoded options in
5047 search for -lang-asm.
5048
910ad8de
NF
50492010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5050
5051 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5052 * c-format.c: Likewise.
5053
718f9c0f
MLI
50542010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5055
5056 * c-common.h: Include diagnostic-core.h. Error if already
5057 included.
5058 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
5059
4d451982
MLI
50602010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5061
adfac8df 5062 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
5063 Do not include expr.h
5064 (vector_mode_valid_p): Move here.
5065
119fe915
SB
50662010-06-21 DJ Delorie <dj@redhat.com>
5067
5068 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
5069 allow these pragmas anywhere.
5070
50712010-06-14 Jakub Jelinek <jakub@redhat.com>
5072
5073 PR bootstrap/44509
5074 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
5075 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
5076 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
5077 ggc_strdup instead of xstrdup.
5078
50792010-06-10 Jakub Jelinek <jakub@redhat.com>
5080
5081 * c-cppbuiltin.c: Include cpp-id-data.h.
5082 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
5083 (lazy_hex_fp_value): New function.
5084 (builtin_define_with_hex_fp_value): Provide definitions lazily.
5085
6662d794
MLI
50862010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5087
5088 * c-gimplify.c: Do not include tree-flow.h
5089
38f8b050
JR
50902010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
5091
5092 PR other/44034
5093 * c-common.c: Rename targetm member:
5094 targetm.enum_va_list -> targetm.enum_va_list_p
5095
9589f23e
AS
50962010-06-28 Anatoly Sokolov <aesok@post.ru>
5097
5098 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
5099
3b06d379
SB
51002010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5101
5102 * c-cppbuiltin.c: Do not include except.h.
5103
d166d4c3
AK
51042010-06-24 Andi Kleen <ak@linux.intel.com>
5105
9faeb493
UB
5106 * c-common.c (warn_for_omitted_condop): New.
5107 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 5108
70cb8be6
JM
51092010-06-21 Joseph Myers <joseph@codesourcery.com>
5110
5111 * c.opt (lang-objc): Remove.
5112 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
5113
a4c97feb
JR
51142010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
5115
5116 * c-opts.c: Include "tm_p.h".
5117
6e2f1956
JM
51182010-06-20 Joseph Myers <joseph@codesourcery.com>
5119
5120 * c-common.c (parse_optimize_options): Update call to
5121 decode_options.
5122
bc87224e
NF
51232010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5124
5125 * c-common.c (record_types_used_by_current_var_decl): Adjust for
5126 new type of types_used_by_cur_var_decl.
5127
b49cf425
JR
51282010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
5129
5130 PR bootstrap/44512
5131 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
5132 for C++ standard compliance.
5133
59f9c2ed
JM
51342010-06-16 Jason Merrill <jason@redhat.com>
5135
5136 * c.opt: Add -Wnoexcept.
5137
33766b66
RG
51382010-06-16 Richard Guenther <rguenther@suse.de>
5139
5140 PR c/44555
5141 * c-common.c (c_common_truthvalue_conversion): Remove
5142 premature and wrong optimization concering ADDR_EXPRs.
5143
eff7e30c
AC
51442010-06-15 Arnaud Charlet <charlet@adacore.com>
5145
5146 * c-ada-spec.c (dump_sloc): Remove column info.
5147 (is_simple_enum): New function.
5148 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
5149 enum types when relevant.
5150
6312e84d
MLI
51512010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5152
9faeb493 5153 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
5154 location.
5155
1cb42611
JM
51562010-06-10 Joseph Myers <joseph@codesourcery.com>
5157
5158 * c-opts.c (c_common_handle_option): Don't handle
5159 OPT_fshow_column.
5160
a9429e29
LB
51612010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5162
5163 * c-pragma.c (push_alignment): Use typed GC allocation.
5164 (handle_pragma_push_options): Likewise.
5165
5166 * c-common.c (parse_optimize_options): Likewise.
5167
5168 * c-common.h (struct sorted_fields_type): Add variable_size GTY
5169 option.
5170
5498f011
JM
51712010-06-07 Joseph Myers <joseph@codesourcery.com>
5172
5173 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
5174 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5175 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5176 flag_signed_bitfields, warn_strict_null_sentinel,
5177 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
5178 flag_gen_declaration, flag_no_gnu_keywords,
5179 flag_implement_inlines, flag_implicit_templates,
5180 flag_implicit_inline_templates, flag_optional_diags,
5181 flag_elide_constructors, flag_default_inline, flag_rtti,
5182 flag_conserve_space, flag_access_control, flag_check_new,
5183 flag_new_for_scope, flag_weak, flag_working_directory,
5184 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
5185 flag_enforce_eh_specs, flag_threadsafe_statics,
5186 flag_pretty_templates): Remove.
5187 * c-common.h (flag_preprocess_only, flag_nil_receivers,
5188 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
5189 flag_replace_objc_classes, flag_undef, flag_no_builtin,
5190 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5191 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5192 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
5193 flag_no_gnu_keywords, flag_implement_inlines,
5194 flag_implicit_templates, flag_implicit_inline_templates,
5195 flag_optional_diags, flag_elide_constructors, flag_default_inline,
5196 flag_rtti, flag_conserve_space, flag_access_control,
5197 flag_check_new, flag_new_for_scope, flag_weak,
5198 flag_working_directory, flag_use_cxa_atexit,
5199 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
5200 flag_threadsafe_statics, flag_pretty_templates,
5201 warn_strict_null_sentinel): Remove.
5202 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
5203 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
5204 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
5205 fimplicit-inline-templates, fimplicit-templates,
5206 flax-vector-conversions, fms-extensions, fnil-receivers,
5207 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
5208 frtti, fshort-double, fshort-enums, fshort-wchar,
5209 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
5210 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
5211 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
5212 gen-decls, undef): Use Var.
5213 (fdefault-inline, foptional-diags): Document as doing nothing.
5214 * c-opts.c (c_common_handle_option): Remove cases for options now
5215 using Var. Mark ignored options as such.
5216
39dabefd
SB
52172010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5218
9faeb493 5219 * c-common.c: Moved to here from parent directory.
39dabefd
SB
5220 * c-common.def: Likewise.
5221 * c-common.h: Likewise.
5222 * c-cppbuiltin.c: Likewise.
5223 * c-dump.c: Likewise.
5224 * c-format.c: Likewise.
5225 * c-format.h : Likewise.
5226 * c-gimplify.c: Likewise.
5227 * c-lex.c: Likewise.
5228 * c-omp.c: Likewise.
5229 * c.opt: Likewise.
5230 * c-opts.c: Likewise.
5231 * c-pch.c: Likewise.
5232 * c-ppoutput.c: Likewise.
5233 * c-pragma.c: Likewise.
5234 * c-pragma.h: Likewise.
5235 * c-pretty-print.c: Likewise.
5236 * c-pretty-print.h: Likewise.
5237 * c-semantics.c: Likewise.
5238 * stub-objc.c: Likewise.
5239
5240 * c-common.c: Include gt-c-family-c-common.h.
5241 * c-pragma.c: Include gt-c-family-c-pragma.h.
5242\f
5624e564 5243Copyright (C) 2010-2015 Free Software Foundation, Inc.
39dabefd
SB
5244
5245Copying and distribution of this file, with or without modification,
5246are permitted in any medium without royalty provided the copyright
5247notice and this notice are preserved.
This page took 1.918158 seconds and 5 git commands to generate.