]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
re PR libstdc++/60519 (Debug mode should check comparators for irreflexivity)
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
584a7c46
MLI
12015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2
3 * c-lex.c (c_lex_with_flags): Use explicit locations.
4
a79683d5
TS
52015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
6
7 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
8 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
9
61717a45
FXC
102015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11
12 PR middle-end/36757
13 * c-common.c (check_builtin_function_arguments): Add check
14 for BUILT_IN_SIGNBIT argument.
15
329524f5
PC
162015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
17
18 PR c++/67160
19 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
20 in c++1z mode.
21
4ee55665
MP
222015-08-17 Marek Polacek <polacek@redhat.com>
23
24 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
25 with whitespaces before qualifier names.
26
b893e375
MP
272015-08-12 Marek Polacek <polacek@redhat.com>
28
29 PR c++/55095
30 * c-common.c (maybe_warn_shift_overflow): Properly handle
31 left-shifting 1 into the sign bit.
32
c2d89095
MLI
332015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
34
35 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
36
971e17ff
AS
372015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
38 Braden Obrzut <admin@maniacsvault.net>
39 Jason Merrill <jason@redhat.com>
40
41 Add C++ Concepts TS support.
42 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
43 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
44 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
45 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
46 * c-opts.c (set_std_cxx1z): Set flag_concepts.
47 * c.opt (fconcepts): New.
48
8ebca419
PP
492015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
50
51 * c-indentation.c (should_warn_for_misleading_indentation):
52 Improve heuristics.
53
1a1e101f
PP
542015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
55
56 * c-indentation.c (get_visual_column): Add parameter first_nws,
57 use it. Update comment documenting the function.
58 (is_first_nonwhitespace_on_line): Remove.
59 (should_warn_for_misleading_indentation): Replace usage of
60 of is_first_nonwhitespace_on_line with get_visual_column.
61
992118a1
PP
622015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
63
64 * c-indentation.h (struct token_indent_info): Define.
65 (get_token_indent_info): Define.
66 (warn_for_misleading_information): Declare.
67 * c-common.h (warn_for_misleading_information): Remove.
68 * c-identation.c (warn_for_misleading_indentation):
69 Change declaration to take three token_indent_infos. Adjust
70 accordingly.
71 * c-identation.c (should_warn_for_misleading_indentation):
72 Likewise. Bail out early if the body is a compound statement.
73 (guard_tinfo_to_string): Define.
74
e8fa3817
JM
752015-07-30 Jason Merrill <jason@redhat.com>
76
77 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
78 '*' for reference decay.
79
173864e8
MP
802015-07-30 Marek Polacek <polacek@redhat.com>
81
82 * c-common.c (warn_tautological_cmp): Bail for float types.
83
f2afe6dd
MP
842015-07-27 Marek Polacek <polacek@redhat.com>
85
86 PR bootstrap/67030
87 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
88
05b28fd6
MP
892015-07-27 Marek Polacek <polacek@redhat.com>
90
91 PR c++/66555
92 PR c/54979
93 * c-common.c (find_array_ref_with_const_idx_r): New function.
94 (warn_tautological_cmp): New function.
95 * c-common.h (warn_tautological_cmp): Declare.
96 * c.opt (Wtautological-compare): New option.
97
5a5062b8
MP
982015-07-23 Marek Polacek <polacek@redhat.com>
99
100 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
101 (ubsan_instrument_shift): Likewise.
102
dc891fe7
MP
1032015-07-23 Marek Polacek <polacek@redhat.com>
104
105 PR sanitizer/66908
106 * c-ubsan.c: Include gimplify.h.
107 (ubsan_instrument_division): Unshare OP0 and OP1.
108 (ubsan_instrument_shift): Likewise.
109
451b5e48
MP
1102015-07-20 Marek Polacek <polacek@redhat.com>
111 Richard Sandiford <richard.sandiford@arm.com>
112
113 PR c++/55095
114 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
115 Use EXPR_LOC_OR_LOC.
116 (maybe_warn_shift_overflow): New function.
117 * c-common.h (maybe_warn_shift_overflow): Declare.
118 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
119 * c.opt (Wshift-overflow): New option.
120
fb0b2914
ML
1212015-07-16 Martin Liska <mliska@suse.cz>
122
123 * c-format.c (static void check_format_info_main): Use
124 object_allocator instead of pool_allocator.
125 (check_format_arg): Likewise.
126 (check_format_info_main): Likewise.
127
903f5c23
AM
1282015-07-15 Andrew MacLeod <amacleod@redhat.com>
129
130 * c-opts.c: Remove multiline #include comment.
131
026c3cfd
AH
1322015-07-12 Aldy Hernandez <aldyh@redhat.com>
133
134 * c-common.c: Fix double word typos.
135
bb49ee66
EB
1362015-07-10 Eric Botcazou <ebotcazou@adacore.com>
137
138 * c-ada-spec.h (cpp_operation): Revert latest change.
139 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
140 constructors and destructors.
141
1916bcb5
AM
1422015-07-09 Andrew MacLeod <amacleod@redhat.com>
143
144 * c-common.h: Adjust includes for flags.h changes.
145 * stub-objc.c: Likewise.
026c3cfd 146
a9dcd529
EB
1472015-07-08 Eric Botcazou <ebotcazou@adacore.com>
148
149 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
150 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
151
b03b462f
JJ
1522015-07-08 Jakub Jelinek <jakub@redhat.com>
153
154 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
155 are to be removed, return NULL rather than original clauses list.
156
c7131fb2
AM
1572015-07-07 Andrew MacLeod <amacleod@redhat.com>
158
159 * array-notation-common.c: Adjust includes.
160 * c-ada-spec.c: Likewise.
161 * c-cilkplus.c: Likewise.
162 * c-common.h: Likewise.
163 * c-cppbuiltin.c: Likewise.
164 * c-dump.c: Likewise.
165 * c-format.c: Likewise.
166 * c-gimplify.c: Likewise.
167 * c-indentation.c: Likewise.
168 * c-lex.c: Likewise.
169 * c-omp.c: Likewise.
170 * c-opts.c: Likewise.
171 * c-pch.c: Likewise.
172 * c-ppoutput.c: Likewise.
173 * c-pragma.c: Likewise.
174 * c-pretty-print.c: Likewise.
175 * c-semantics.c: Likewise.
176 * c-ubsan.c: Likewise.
177 * cilk.c: Likewise.
178 * stub-objc.c: Likewise.
179
2a7fb83f
EB
1802015-07-07 Eric Botcazou <ebotcazou@adacore.com>
181
182 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
183 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
184
a03c9bf1
JM
1852015-07-01 Jason Merrill <jason@redhat.com>
186
36a85135
JM
187 * c-common.h (D_CXX11): Rename from D_CXX0X.
188 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
189 * c-common.c: Adjust.
190
e7fa68d5
JM
191 * c-opts.c (c_common_post_options): Default to C++14.
192
a03c9bf1
JM
193 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
194
fe95b036
ESR
1952015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
196
197 Implement N4197 - Adding u8 character literals
a64be36b
EB
198 * c-family/c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
199 CPP_CHAR.
200 * c-family/c-common.c (c_parse_error): Print CPP_UTF8CHAR and
201 CPP_UTF8CHAR_USERDEF tokens.
202 * c-family/c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
203 and CPP_UTF8CHAR tokens.
204 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 205
da2e71c9
MLI
2062015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
207
208 PR fortran/66605
209 * c-common.c (do_warn_unused_parameter): Move here.
210 * c-common.h (do_warn_unused_parameter): Declare.
211
b155cfd9
MP
2122015-06-29 Marek Polacek <polacek@redhat.com>
213
214 PR c/66322
215 * c-common.c (check_case_bounds): Add bool * parameter. Set
216 OUTSIDE_RANGE_P.
217 (c_add_case_label): Add bool * parameter. Pass it down to
218 check_case_bounds.
219 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
220 warning here.
221 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
222 declarations.
223
31521951
MP
2242015-06-27 Marek Polacek <polacek@redhat.com>
225
226 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
227 or VECTOR_INTEGER_TYPE_P throughout.
228 * c-gimplify.c: Likewise.
229
22d03525
MP
2302015-06-26 Marek Polacek <polacek@redhat.com>
231
232 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
233 * c-common.c (c_fully_fold_internal): Likewise.
234 (c_alignof_expr): Likewise.
235 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
236 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
237 * cilk.c (create_parm_list): Likewise.
238
af05e6e5
MP
2392015-06-26 Marek Polacek <polacek@redhat.com>
240
241 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
242
f0889939
AM
2432015-06-25 Andrew MacLeod <amacleod@redhat.com>
244
245 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
246 * c-gimplify.c: Likewise.
247 * c-pragma.c: Likewise.
248 * c-ubsan.c: Likewise.
249 * cilk.c: Likewise.
250
ca752f39
RS
2512015-06-25 Richard Sandiford <richard.sandiford@arm.com>
252
253 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
254 ggc_hasher.
255
16a16ec7
AM
2562015-06-25 Andrew MacLeod <amacleod@redhat.com>
257
258 * cilk.c: Move calls.h after tm.h in the include chain.
259
0ae9bd27
MP
2602015-06-25 Marek Polacek <polacek@redhat.com>
261
262 * array-notation-common.c: Use VAR_P throughout.
263 * c-ada-spec.c: Likewise.
264 * c-common.c: Likewise.
265 * c-format.c: Likewise.
266 * c-gimplify.c: Likewise.
267 * c-omp.c: Likewise.
268 * c-pragma.c: Likewise.
269 * c-pretty-print.c: Likewise.
270 * cilk.c: Likewise.
271
62f9079a
MP
2722015-06-25 Marek Polacek <polacek@redhat.com>
273
274 * cilk.c (extract_free_variables): Use is_global_var.
275
0fa16060
RS
2762015-06-23 Richard Sandiford <richard.sandiford@arm.com>
277
278 * c-common.c: Don't include target-def.h.
279
a68ae2e1
MP
2802015-06-23 Marek Polacek <polacek@redhat.com>
281
282 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
283 when comparing INTEGER_CSTs.
284
c6a2f2d9
PMR
2852015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
286
287 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
288 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
289 (dump_ada_template): Skip partially specialized types.
290
6b4db501
MM
2912015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
292
293 * c-common.c (scalar_to_vector): Use std::swap instead of manually
294 swapping.
295
abb226c9
AM
2962015-06-17 Andrew MacLeod <amacleod@redhat.com>
297
298 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
299 * c-ada-spec.c: Likewise.
300 * c-cilkplus.c: Likewise.
301 * c-common.c: Likewise.
302 * c-common.h: Likewise.
303 * c-cppbuiltin.c: Likewise.
304 * c-dump.c: Likewise.
305 * c-format.c: Likewise.
306 * c-gimplify.c: Likewise.
307 * c-indentation.c: Likewise.
308 * c-lex.c: Likewise.
309 * c-omp.c: Likewise.
310 * c-opts.c: Likewise.
311 * c-pch.c: Likewise.
312 * c-ppoutput.c: Likewise.
313 * c-pragma.c: Likewise.
314 * c-pretty-print.c: Likewise.
315 * c-semantics.c: Likewise.
316 * c-ubsan.c: Likewise.
317 * cilk.c: Likewise.
318 * stub-objc.c: Likewise.
319
076fecad
PP
3202015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
321
322 PR c++/65168
323 * c-common.c (c_common_truthvalue_conversion): Warn when
324 converting an address of a reference to a truth value.
325
13fdf2e2
AM
3262015-06-08 Andrew MacLeod <amacleod@redhat.com>
327
328 * array-notation-common.c : Adjust include files.
329 * c-ada-spec.c : Likewise.
330 * c-cilkplus.c : Likewise.
331 * c-common.c : Likewise.
332 * c-common.h : Likewise.
333 * c-cppbuiltin.c : Likewise.
334 * c-dump.c : Likewise.
335 * c-format.c : Likewise.
336 * c-gimplify.c : Likewise.
337 * c-indentation.c : Likewise.
338 * c-lex.c : Likewise.
339 * c-omp.c : Likewise.
340 * c-opts.c : Likewise.
341 * c-pch.c : Likewise.
342 * c-ppoutput.c : Likewise.
343 * c-pragma.c : Likewise.
344 * c-pretty-print.c : Likewise.
345 * c-semantics.c : Likewise.
346 * c-ubsan.c : Likewise.
347 * cilk.c : Likewise.
348 * stub-objc.c : Likewise.
349
a1661b90
MP
3502015-06-08 Marek Polacek <polacek@redhat.com>
351
352 PR c/66415
353 * c-format.c (location_from_offset): Return LOC if LINE is null.
354
d7438551
AH
3552015-06-05 Aldy Hernandez <aldyh@redhat.com>
356
357 * c-common.h (c_parse_final_cleanups): New prototype.
358 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
359
ecb9f223
AM
3602015-06-04 Andrew MacLeod <amacleod@redhat.com>
361
362 * array-notation-common.c: Adjust includes for restructured coretypes.h.
363 * c-ada-spec.c: Likewise.
364 * c-cilkplus.c: Likewise.
365 * c-common.c: Likewise.
366 * c-common.h: Likewise.
367 * c-cppbuiltin.c: Likewise.
368 * c-dump.c: Likewise.
369 * c-format.c: Likewise.
370 * c-gimplify.c: Likewise.
371 * c-indentation.c: Likewise.
372 * c-lex.c: Likewise.
373 * c-omp.c: Likewise.
374 * c-opts.c: Likewise.
375 * c-pch.c: Likewise.
376 * c-ppoutput.c: Likewise.
377 * c-pragma.c: Likewise.
378 * c-pretty-print.c: Likewise.
379 * c-semantics.c: Likewise.
380 * c-ubsan.c: Likewise.
381 * cilk.c: Likewise.
382 * stub-objc.c: Likewise.
383
6ac48155
DM
3842015-06-02 David Malcolm <dmalcolm@redhat.com>
385
386 PR c/66220:
387 * c-indentation.c (should_warn_for_misleading_indentation): Use
388 expand_location rather than expand_location_to_spelling_point.
389 Don't warn if the guarding statement is more indented than the
390 next/body stmts.
391
773ce42e
DM
3922015-06-02 David Malcolm <dmalcolm@redhat.com>
393
394 * c-indentation.c (warn_for_misleading_indentation): Bail out
395 immediately if -Wmisleading-indentation isn't enabled.
396
4fef8379
ML
3972015-06-01 Martin Liska <mliska@suse.cz>
398
399 * c-format.c (check_format_arg):Use new type-based pool allocator.
400 (check_format_info_main) Likewise.
401
1edfb384
EB
4022015-05-31 Eric Botcazou <ebotcazou@adacore.com>
403
404 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
405 (has_nontrivial_methods): Likewise.
406
9677ef52
MP
4072015-05-25 Marek Polacek <polacek@redhat.com>
408
409 * c-ubsan.c (ubsan_instrument_shift): Use type0.
410
fd5c817a
MP
4112015-05-22 Marek Polacek <polacek@redhat.com>
412
413 PR c/47043
414 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
415
a2f45fe6 4162015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
417
418 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
419 STACK_GROWS_DOWNWARD.
420
a2f45fe6 4212015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
422
423 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
424 STACK_GROWS_DOWNWARD rather than if it is defined.
425
0fee2ac2
MLI
4262015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
427
428 PR c/52952
429 * c-format.c (location_column_from_byte_offset): New.
430 (location_from_offset): New.
431 (struct format_wanted_type): Add offset_loc field.
432 (check_format_info): Move handling of location for extra arguments
433 closer to the point of warning.
434 (check_format_info_main): Pass the result of location_from_offset
435 to warning_at.
436 (format_type_warning): Pass the result of location_from_offset
437 to warning_at.
438
cf4ef6f7
MP
4392015-05-20 Marek Polacek <polacek@redhat.com>
440
441 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
442
3a65ee74
MP
4432015-05-20 Marek Polacek <polacek@redhat.com>
444
445 * c-ada-spec.c (dump_sloc): Use DECL_P.
446
21b634ae
MP
4472015-05-20 Marek Polacek <polacek@redhat.com>
448
449 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
450 * c-common.c: Likewise.
451
0e50b624
DM
4522015-05-19 David Malcolm <dmalcolm@redhat.com>
453
454 * c-common.h (fe_file_change): Strengthen param from
455 const line_map * to const line_map_ordinary *.
456 (pp_file_change): Likewise.
457 * c-lex.c (fe_file_change): Likewise.
458 (cb_define): Use linemap_check_ordinary when invoking
459 SOURCE_LINE.
460 (cb_undef): Likewise.
461 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
462 invoking cb_file_change.
463 (c_finish_options): Likewise.
464 (push_command_line_include): Likewise.
465 (cb_file_change): Strengthen param "new_map" from
466 const line_map * to const line_map_ordinary *.
467 * c-ppoutput.c (cb_define): Likewise for local "map".
468 (pp_file_change): Likewise for param "map" and local "from".
469
fab27f52
MM
4702015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
471
472 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
473
2fe1d762
TV
4742015-05-18 Tom de Vries <tom@codesourcery.com>
475
476 * c-common.c (build_va_arg_1): New function.
477 (build_va_arg): Add address operator to va_list operand if necessary.
478
7a37fa90
MM
4792015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
480
481 PR c/48956
482 * c-common.c (int_safely_convertible_to_real_p): Define.
483 (unsafe_conversion_p): Check conversions involving complex types.
484 (conversion_warning): Add new warning message for conversions which
485 discard imaginary component.
486 * c-common.h: (enum conversion_safety): Add new enumerator for such
487 conversions.
488
3aa3c9fc
MP
4892015-05-14 Marek Polacek <polacek@redhat.com>
490
491 PR c/66066
492 PR c/66127
493 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
494 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
495 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
496 use it. If FOR_INT_CONST, require that all evaluated operands be
497 INTEGER_CSTs.
498
c3388e62
DM
4992015-05-12 David Malcolm <dmalcolm@redhat.com>
500
501 * c-common.h (warn_for_misleading_indentation): New prototype.
502 * c-indentation.c: New file.
503 * c.opt (Wmisleading-indentation): New option.
504
c7b38fd5
TV
5052015-05-12 Tom de Vries <tom@codesourcery.com>
506
507 PR tree-optimization/66010
508 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
509
381bf11e
JM
5102015-05-09 Jason Merrill <jason@redhat.com>
511
edff0c06
JM
512 * c-opts.c (c_common_post_options): Also clear
513 cpp_opts->cpp_warn_cxx11_compat.
514
129211bc
JM
515 * c-common.h (enum cxx_dialect): Add cxx_unset.
516 * c-common.c (cxx_dialect): Initialize to cxx_unset.
517 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
518
381bf11e
JM
519 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
520 (std=gnu++0x): Mark as Undocumented.
521 (std=gnu++1y): Add deprecated message.
522
fe191308
JM
5232015-05-08 Jason Merrill <jason@redhat.com>
524
765189ff
JM
525 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
526 * c-opts.c: Adjust.
527
fe191308
JM
528 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
529
755e528f
MP
5302015-05-08 Marek Polacek <polacek@redhat.com>
531
532 PR c/64918
533 * c.opt (Woverride-init-side-effects): New option.
534
0173bd2a
MP
5352015-05-07 Marek Polacek <polacek@redhat.com>
536
537 PR c/65179
538 * c-common.c (c_fully_fold_internal): Warn when left shifting a
539 negative value.
540 * c.opt (Wshift-negative-value): New option.
541 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
542 when -Wextra and C99/C++11 mode.
543
e0f0d3b9
MP
5442015-05-07 Marek Polacek <polacek@redhat.com>
545 Martin Uecker <uecker@eecs.berkeley.edu>
546
547 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
548 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
549
8243e2a9
JM
5502015-05-05 Jason Merrill <jason@redhat.com>
551
552 * c.opt (Wterminate): New.
553
577cd070
MP
5542015-04-30 Marek Polacek <polacek@redhat.com>
555
556 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
557 require that the non-constant be of a boolean type.
558
0373796b
JT
5592015-04-29 Josh Triplett <josh@joshtriplett.org>
560
e0f0d3b9
MP
561 * c-common.c (handle_section_attribute): Refactor to reduce
562 nesting and distinguish between error cases.
0373796b 563
716c0ba6
MP
5642015-04-29 Marek Polacek <polacek@redhat.com>
565
566 PR c/64610
567 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
568 with 0/1.
569
8848828b
JJ
5702015-04-29 Jakub Jelinek <jakub@redhat.com>
571
572 * c-common.h (omp_clause_mask): Unconditionally define as a class.
573 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
574 HOST_BITS_PER_WIDE_INT.
575
ecd0e562
TV
5762015-04-28 Tom de Vries <tom@codesourcery.com>
577
578 PR tree-optimization/65887
579 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
580
2a877204 5812015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 582 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
583
584 * c-ada-spec.c (in_function): Delete.
585 (dump_generic_ada_node): Do not change in_function and remove the
586 redundant code dealing with it.
587 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
588 (print_ada_methods): Output the static member functions in a nested
589 package after the regular methods as well as associated renamings.
590
4853031e
MP
5912015-04-24 Marek Polacek <polacek@redhat.com>
592
593 PR c/65830
594 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
595 and OPT_Wshift_count_overflow.
596
8c2b7f79
MP
597 PR c/63357
598 * c-common.c (warn_logical_operator): Warn if the operands have the
599 same expressions.
600
b8787813
MP
6012015-04-24 Marek Polacek <polacek@redhat.com>
602
603 PR c/61534
604 * c-common.c (warn_logical_operator): Bail if either operand comes
605 from a macro expansion.
606
8fba1830
BRF
6072015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
608
609 PR target/55143
610 * c-common.c (c_default_pointer_mode): Add definition.
611 * c-common.h (c_default_pointer_mode): Add declaration.
612
17958621
JJ
6132015-03-11 Jakub Jelinek <jakub@redhat.com>
614
615 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
616 on record_builtin_type argument.
617
7ccb1a11
JJ
6182015-03-10 Jakub Jelinek <jakub@redhat.com>
619
620 PR c/65120
621 * c-common.c (warn_logical_not_parentheses): Don't warn for
622 !x == 0 or !x != 0.
623
04fd785e
MP
6242015-03-07 Marek Polacek <polacek@redhat.com>
625
626 PR sanitizer/65280
627 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
628 before trying to figure out whether we have a flexible array member.
629
a4e26206
EB
6302015-03-06 Eric Botcazou <ebotcazou@adacore.com>
631 Jonathan Wakely <jwakely.gcc@gmail.com>
632
633 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
634
0d2489f4
EB
6352015-03-05 Eric Botcazou <ebotcazou@adacore.com>
636
637 PR ada/65319
638 * c-ada-spec.c (print_destructor): Remove obsolete code.
639
83ed54d7
EB
6402015-03-01 Eric Botcazou <ebotcazou@adacore.com>
641
642 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
643 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
644 DECL_TEMPLATE_RESULT emulations.
645 (dump_ada_template)): Add guard for TYPE_METHODS.
646
7631f0e2
MP
6472015-02-27 Marek Polacek <polacek@redhat.com>
648
649 PR c/65040
650 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
651
d1783ae5
KT
6522015-02-27 Kai Tietz <ktietz@redhat.com>
653
654 PR c/35330
655 * c-pragma.c (handle_pragma_weak): Do not try to create
656 weak/alias of declarations not being function, or variable
657 declarations.
658
56a9f6bc
TS
6592015-02-24 Thomas Schwinge <thomas@codesourcery.com>
660
661 PR libgomp/64625
662 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
663 Remove macros.
664 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
665
3d5cb23d
MP
6662015-02-16 Marek Polacek <polacek@redhat.com>
667
668 PR c/65066
669 * c-format.c (check_format_types): Handle null param.
670
fa008882
MP
6712015-02-13 Marek Polacek <polacek@redhat.com>
672
673 PR c/65040
674 * c-format.c (check_format_types): Don't warn about different
675 signedness if the original value is in the range of WANTED_TYPE.
676
785f21af
JM
6772015-02-12 Jason Merrill <jason@redhat.com>
678
679 PR c++/64956
680 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
681 to the current highest version.
682 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
683
4886ec8e
JJ
6842015-02-04 Jakub Jelinek <jakub@redhat.com>
685
686 PR c/64824
687 PR c/64868
688 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
689 instead of RDIV_EXPR. Use build_binary_op instead of
690 build2_loc.
691
40fecdd6
JM
6922015-01-30 Joseph Myers <joseph@codesourcery.com>
693
694 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
695 to pass input_location as first argument.
696
a0c88d06
TV
6972015-01-23 Tom de Vries <tom@codesourcery.com>
698
699 PR libgomp/64672
700 * c.opt (fopenacc): Mark as LTO option.
701
1506ae0e
TV
7022015-01-23 Tom de Vries <tom@codesourcery.com>
703
704 PR libgomp/64707
705 * c.opt (fopenmp): Mark as LTO option.
706
31be63ab
JJ
7072015-01-21 Jakub Jelinek <jakub@redhat.com>
708
709 PR c/63307
710 * cilk.c (fill_decls_vec): Only put decls into vector v.
711 (compare_decls): Fix up formatting.
712
7132015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
714
715 PR c/63307
716 * cilk.c: Include vec.h.
717 (struct cilk_decls): New structure.
718 (wrapper_parm_cb): Split this function to...
719 (fill_decls_vec): ...this...
720 (create_parm_list): ...and this.
721 (compare_decls): New function.
722 (for_local_cb): Remove.
723 (wrapper_local_cb): Ditto.
724 (build_wrapper_type): For now first traverse and fill vector of
725 declarations then sort it and then deal with sorted vector.
726 (cilk_outline): Ditto.
727 (declare_one_free_variable): Ditto.
728
6875457f
JM
7292015-01-21 Jason Merrill <jason@redhat.com>
730
731 PR c++/64629
732 * c-format.c (check_format_arg): Call decl_constant_value.
733
185c9e56
ML
7342015-01-19 Martin Liska <mliska@suse.cz>
735
736 * c-common.c (handle_noicf_attribute): New function.
737
41dbbb37
TS
7382015-01-15 Thomas Schwinge <thomas@codesourcery.com>
739 Bernd Schmidt <bernds@codesourcery.com>
740 James Norris <jnorris@codesourcery.com>
741 Cesar Philippidis <cesar@codesourcery.com>
742 Ilmir Usmanov <i.usmanov@samsung.com>
743 Jakub Jelinek <jakub@redhat.com>
744
745 * c.opt (fopenacc): New option.
746 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
747 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
748 New macros.
749 * c-common.h (c_finish_oacc_wait): New prototype.
750 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
751 (c_finish_oacc_wait): New function.
752 * c-pragma.c (oacc_pragmas): New variable.
753 (c_pp_lookup_pragma, init_pragma): Handle it.
754 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
755 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
756 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
757 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
758 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
759 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
760 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
761 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
762 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
763 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
764 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
765 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
766 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
767 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
768 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
769 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
770 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
771 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
772 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
773 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
774 PRAGMA_OACC_CLAUSE_WORKER.
775
5434dc07
MD
7762015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
777
778 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
779 for the new option fstack-protector_explicit.
780 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
781 (handle_stack_protect_attribute): New function.
782
de1b5c17
MU
7832015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
784
785 * c.opt: New option -Warray-bounds=.
786
adfac8df
JJ
7872015-01-09 Michael Collison <michael.collison@linaro.org>
788
789 * array-notation-common.c: Include hash-set.h, machmode.h,
790 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
791 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
792 * c-ada-spec.c: Ditto.
793 * c-cilkplus.c: Ditto.
794 * c-common.c: Include input.h due to flattening of tree.h.
795 Define macro GCC_C_COMMON_C.
796 * c-common.h: Flatten tree.h header files into c-common.h.
797 Remove include of tree-core.h.
798 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
799 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
800 fold-const.h, wide-int.h, and inchash.h due to
801 flattening of tree.h.
802 * c-dump.c: Ditto.
803 * c-format.c: Flatten tree.h header files into c-common.h.
804 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
805 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
806 fold-const.h, wide-int.h, and inchash.h due to
807 flattening of tree.h.
808 * c-dump.c: Include hash-set.h, machmode.h,
809 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
810 fold-const.h, wide-int.h, and inchash.h due to
811 flattening of tree.h.
812 * c-format.c: Include hash-set.h, machmode.h,
813 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
814 fold-const.h, wide-int.h, inchash.h and real.h due to
815 flattening of tree.h.
816 * c-gimplify.c: Include hash-set.h, machmode.h,
817 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
818 fold-const.h, wide-int.h, and inchash.h due to
819 flattening of tree.h.
820 * cilk.c: Ditto.
821 * c-lex.c: Ditto.
822 * c-omp.c: Ditto.
823 * c-opts.c: Ditto.
824 * c-pch.c: Ditto.
825 * c-ppoutput.c: Ditto.
826 * c-pragma.c: Ditto.
827 * c-pretty-print.c: Ditto.
828 * c-semantics.c: Ditto.
829 * c-ubsan.c: Ditto.
830 * stub-objc.c: Ditto.
831
f5481fc4
JM
8322015-01-08 Jason Merrill <jason@redhat.com>
833
834 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
835 do_ubsan_in_current_function.
836 (ubsan_maybe_instrument_reference_or_call): Likewise.
837 * c-ubsan.h: Declare it.
838
de35aa66
MS
8392015-01-08 Mike Stump <mikestump@comcast.net>
840
841 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
842
4a9a42ab
MP
8432015-01-07 Marek Polacek <polacek@redhat.com>
844
845 PR c/64440
846 * c-common.c (c_fully_fold_internal): Warn for division and modulo
847 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
848
2f42e5de
TS
8492015-01-05 Trevor Saunders <tsaunders@mozilla.com>
850
851 PR c++/31397
852 * c.opt (Wsuggest-override): New option.
853
5624e564
JJ
8542015-01-05 Jakub Jelinek <jakub@redhat.com>
855
856 Update copyright years.
857
5bd012f8
MP
8582015-01-05 Marek Polacek <polacek@redhat.com>
859
860 PR c/64423
861 * c-common.c (warn_array_subscript_with_type_char): Add location_t
862 parameter. Use it.
863 * c-common.h (warn_array_subscript_with_type_char): Update
864 declaration.
865
a7fa8d18
ESR
8662014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
867
868 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
869 Control macro with flag_sized_deallocation.
870
768952be
MU
8712014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
872
873 * c.opt (Wdiscarded-array-qualifiers): New option.
874
1f8d3e84
JJ
8752014-12-19 Jakub Jelinek <jakub@redhat.com>
876
877 PR preprocessor/63831
878 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
879 and __has_cpp_attribute here.
880 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
881 c_common_has_attribute.
882 * c-common.h (c_common_has_attribute): New prototype.
883 * c-lex.c (init_c_lex): Set cb->has_attribute to
884 c_common_has_attribute instead of cb_has_attribute.
885 (get_token_no_padding): New function.
886 (cb_has_attribute): Renamed to ...
887 (c_common_has_attribute): ... this. No longer static. Use
888 get_token_no_padding, require ()s, don't build TREE_LIST
889 unnecessarily, fix up formatting, adjust diagnostics, call
890 init_attributes.
891
20b06add
JM
8922014-12-15 Jason Merrill <jason@redhat.com>
893
894 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
895 (-Wsized-deallocation): New.
896 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
897 to on in C++14 and up.
898
94a073b2
JM
8992014-12-11 Jason Merrill <jason@redhat.com>
900
acaa5911
JM
901 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
902
94a073b2
JM
903 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
904 we aren't complaining about VLAs.
905
7fb66c15
MP
9062014-12-06 Marek Polacek <polacek@redhat.com>
907
908 PR tree-optimization/64183
909 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
910 shift-expression if it is integer_type_node. Use types_compatible_p.
911
b731b390
JJ
9122014-11-29 Jakub Jelinek <jakub@redhat.com>
913
914 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
915 last argument from create_tmp_var_raw and create_tmp_var calls.
916 * cilk.c (gimplify_cilk_spawn): Likewise.
917 * c-omp.c (c_finish_omp_atomic): Likewise.
918
6a4da643
MP
9192014-11-28 Marek Polacek <polacek@redhat.com>
920
921 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
922 instead of unsigned_type_node.
923
541e35a6
MP
9242014-11-28 Marek Polacek <polacek@redhat.com>
925
926 PR c/63862
927 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
928 to op1_utype.
929 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
930 expression to unsigned_type_node.
931
dcc97066
MW
9322014-11-20 Mark Wielaard <mjw@redhat.com>
933
934 PR debug/38757
935 * c-opts.c (set_std_c89): Set lang_hooks.name.
936 (set_std_c99): Likewise.
937 (set_std_c11): Likewise.
938 (set_std_cxx98): Likewise.
939 (set_std_cxx11): Likewise.
940 (set_std_cxx14): Likewise.
941 (set_std_cxx1z): Likewise.
942
aa7da51a
JJ
9432014-11-21 Jakub Jelinek <jakub@redhat.com>
944
945 PR target/63764
946 * c-common.h (convert_vector_to_pointer_for_subscript): Change
947 return type to bool.
009a3480 948 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
949 (convert_vector_to_pointer_for_subscript): Change return type to
950 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
951 and copy it into a TARGET_EXPR and use that instead of *vecp
952 directly.
953
538dd0b7
DM
9542014-11-19 David Malcolm <dmalcolm@redhat.com>
955
956 Merger of git branch "gimple-classes-v2-option-3".
957 * ChangeLog.gimple-classes: New.
958 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
959 from being just a vec<gimple> to a vec<gbind *>.
960
c39a5e99
JJ
9612014-11-18 Jakub Jelinek <jakub@redhat.com>
962
963 PR sanitizer/63813
964 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
965 argument to ptype, set type to TREE_TYPE (ptype). Don't call
966 get_pointer_alignment for non-pointers. Use ptype, or if it is
967 reference type, corresponding pointer type, as type of kind
968 argument.
969 (ubsan_maybe_instrument_reference,
970 ubsan_maybe_instrument_member_call): Adjust callers.
971
8537a4a9
MP
9722014-11-15 Marek Polacek <polacek@redhat.com>
973
974 PR middle-end/63884
975 * array-notation-common.c (is_sec_implicit_index_fn): Return false
976 for NULL fndecl.
977 (extract_array_notation_exprs): Return for NULL node.
978
2079956a
JM
9792014-11-12 Joseph Myers <joseph@codesourcery.com>
980
981 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
982 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
983
1304953e
JJ
9842014-11-12 Jakub Jelinek <jakub@redhat.com>
985
986 PR c/59708
987 * c-common.c (check_builtin_function_arguments): Handle
988 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
989
e5e44252
AK
9902014-11-10 Andi Kleen <ak@linux.intel.com>
991
992 PR c/60804
993 * c-common.h (check_no_cilk): Declare.
994 * cilk.c (get_error_location): New function.
995 (check_no_cilk): Dito.
996
e64b984d
AK
9972014-11-10 Andi Kleen <ak@linux.intel.com>
998
999 * cilk.c (recognize_spawn): Use expression location
1000 for error message.
1001
13c21655
PC
10022014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1003
1004 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
1005
42fd12b1
ESR
10062014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1007
1008 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1009 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1010 (__cpp_range_based_for, __cpp_initializer_lists,
1011 __cpp_delegating_constructors, __cpp_nsdmi,
1012 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1013 for C++11; (__cpp_attribute_deprecated): Remove in favor of
1014 __has_cpp_attribute.
1015 * c-lex.c (cb_has_attribute): New callback CPP function;
1016 (init_c_lex): Set has_attribute callback.
1017
6f450181
RB
10182014-11-04 Richard Biener <rguenther@suse.de>
1019
1020 * c-common.c (shorten_compare): Do not shorten mixed
1021 DFP and non-DFP compares.
1022
26f0e1d6
ESR
10232014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1024
1025 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
1026 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
1027 Commentary and rearrangement of tests.
1028 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
1029 Commentary and rearrangement of tests.
1030 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
1031 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
1032
ef4bddc2
RS
10332014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1034
1035 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
1036 enum from machine_mode.
1037
c582198b
AM
10382014-10-28 Andrew MacLeod <amacleod@redhat.com>
1039
adfac8df
JJ
1040 * c-common.c: Adjust include files.
1041 * c-gimplify.c: Ditto.
1042 * cilk.c: Ditto.
1043 * c-pragma.c: Ditto.
1044 * c-ubsan.c: Ditto.
c582198b 1045
60393bbc
AM
10462014-10-27 Andrew MacLeod <amacleod@redhat.com>
1047
1048 * c-gimplify.c: Adjust include files.
1049
d723bb7c
MLI
10502014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1051
1052 PR c++/53061
1053 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
1054 c_common_initialize_diagnostics.
1055 * c-common.h: Likewise.
1056
90f3520e
MP
10572014-10-24 Marek Polacek <polacek@redhat.com>
1058
1059 PR c/56980
1060 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
1061 print "struct"/"union"/"enum" for typedefed names.
1062
59d7607a
MP
10632014-10-23 Marek Polacek <polacek@redhat.com>
1064
1065 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
1066 in unsigned type.
1067
d95a2703
JJ
10682014-10-22 Jakub Jelinek <jakub@redhat.com>
1069 Yury Gribov <y.gribov@samsung.com>
1070
1071 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1072 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
1073 instead of flag_sanitize_recover as bool flag.
1074
8e6ef852
KY
10752014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
1076
1077 * cilk.c: Revert previous change.
1078
948cf550
IZ
10792014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
1080
1081 PR c/63307
1082 * cilk.c: Include vec.h.
1083 (struct cilk_decls): New structure.
1084 (wrapper_parm_cb): Split this function to...
1085 (fill_decls_vec): ...this...
1086 (create_parm_list): ...and this.
1087 (compare_decls): New function.
1088 (for_local_cb): Remove.
1089 (wrapper_local_cb): Ditto.
1090 (build_wrapper_type): For now first traverse and fill vector of
1091 declarations then sort it and then deal with sorted vector.
1092 (cilk_outline): Ditto.
1093 (declare_one_free_variable): Ditto.
1094
92574c7c
MP
10952014-10-17 Marek Polacek <polacek@redhat.com>
1096
1097 * c-opts.c (c_common_post_options): Set warn_implicit_int.
1098 * c.opt (Wimplicit-int): Initialize to -1.
1099
83685514
AM
11002014-10-16 Andrew MacLeod <amacleod@redhat.com>
1101
1102 * c-pragma.c: Adjust include files.
1103 * c-semantics.c: Likewise.
1104
5b8300ea
DD
11052014-10-16 DJ Delorie <dj@redhat.com>
1106
1107 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
1108 multiples of bytes.
1109
5f83e90b
JM
11102014-10-14 Jason Merrill <jason@redhat.com>
1111
1112 PR c++/63455
1113 * c-common.h (CPP_PREPARSED_EXPR): New.
1114 (N_CP_TTYPES): Adjust.
1115
d73326ca
MP
11162014-10-15 Marek Polacek <polacek@redhat.com>
1117
1118 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
1119
78a7c317
DD
11202014-10-14 DJ Delorie <dj@redhat.com>
1121
1122 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
1123 types, not just __int128.
1124 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
1125 types, not just __int128.
1126 (cpp_atomic_builtins): Round pointer sizes up.
1127 (type_suffix): Use type precision, not specific types.
1128 * c-common.c (c_common_reswords): Remove __int128 special case.
1129 (c_common_type_for_size): Check for all __intN types, not just
1130 __int128.
1131 (c_common_type_for_mode): Likewise.
1132 (c_common_signed_or_unsigned_type): Likewise.
1133 (c_build_bitfield_integer_type): Likewise.
1134 (c_common_nodes_and_builtins): Likewise.
1135 (keyword_begins_type_specifier): Likewise.
1136 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
1137 __intN variants.
1138
2a22f99c
TS
11392014-10-12 Trevor Saunders <tsaunders@mozilla.com>
1140
1141 * c-common.c: Use hash_table instead of hashtab.
1142
2a8ef767
ESR
11432014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
1144
adfac8df 1145 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
1146 C++11 section.
1147
3c9aabbd
MG
11482014-10-03 Marc Glisse <marc.glisse@inria.fr>
1149
1150 PR c++/54427
1151 PR c++/57198
1152 PR c++/58845
1153 * c-common.c (warn_logical_operator): Punt for vectors.
1154
a15f7cb8
ESR
11552014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1156
1157 Implement SD-6: SG10 Feature Test Recommendations
1158 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
1159 macros and the __has_header macro.
1160
8d0cf15e
JM
11612014-09-30 Jason Merrill <jason@redhat.com>
1162
dd5d5481
JM
1163 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
1164 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
1165 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1166
b752325e
JM
1167 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
1168 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1169
8d0cf15e
JM
1170 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
1171 * c-common.c (c_common_reswords): Remove __is_convertible_to.
1172
083e891e
MP
11732014-09-24 Marek Polacek <polacek@redhat.com>
1174
1175 PR c/61405
1176 PR c/53874
1177 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
1178
7861b648
AK
11792014-09-23 Andi Kleen <ak@linux.intel.com>
1180
1181 * c-common.c (handle_no_reorder_attribute): New function.
1182 (c_common_attribute_table): Add no_reorder attribute.
1183
9a79452d
JM
11842014-09-22 Joseph Myers <joseph@codesourcery.com>
1185
1186 * c-cppbuiltin.c (c_cpp_builtins): Define
1187 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
1188 modes.
1189
dd69f047
JM
11902014-09-18 Joseph Myers <joseph@codesourcery.com>
1191
1192 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
1193 for supported floating-point modes.
1194
737a4826
MLI
11952014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1196
1197 * c.opt (Wpsabi): Use LangEnabledBy.
1198 * c-opts.c (c_common_handle_option): Do not handle here.
1199
8cc4b7a2
JM
12002014-09-12 Joseph Myers <joseph@codesourcery.com>
1201
1202 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
1203 macros for floating-point modes.
1204
179b5a55
MG
12052014-09-11 Marc Glisse <marc.glisse@inria.fr>
1206
1207 PR target/58757
1208 * c-cppbuiltin.c (builtin_define_float_constants): Correct
1209 __*_DENORM_MIN__ without denormals.
1210
570a11fe
JJ
12112014-09-10 Jakub Jelinek <jakub@redhat.com>
1212
1213 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1214 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1215 ubsan_create_data callers.
1216 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
1217 index is constant or BIT_AND_EXPR with constant mask and is
1218 small enough for the bound.
1219 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
1220 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
1221
b559c810
MLI
12222014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1223
1224 * c.opt: Add CppReason to various flags.
1225 (Wdate-time): Re-sort.
1226 * c-common.c: Include c-common.h earlier.
1227 (struct reason_option_codes_t): Delete.
1228 (c_option_controlling_cpp_error): Prefix global type and struct
1229 with cpp_.
1230
1ef33fd4
MLI
12312014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1232
1233 * c.opt (Wnormalized): New.
1234 (Wnormalized=): Use Enum and Reject Negative.
1235 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
1236
66bb34c0
JM
12372014-09-08 Joseph Myers <joseph@codesourcery.com>
1238
1239 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
1240 digits of floating-point modes if -fbuilding-libgcc.
1241
53d68b9f
JM
12422014-09-05 Joseph Myers <joseph@codesourcery.com>
1243
1244 * c-cppbuiltin.c (c_cpp_builtins): Also define
1245 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
1246 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
1247 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
1248 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
1249 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
1250 __LIBGCC_STACK_GROWS_DOWNWARD__,
1251 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
1252 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
1253 __LIBGCC_DWARF_FRAME_REGISTERS__,
1254 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
1255 __LIBGCC_STACK_POINTER_REGNUM__ and
1256 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
1257 (builtin_define_with_value): Handle backslash-escaping in string
1258 macro values.
1259
f65586dc
RB
12602014-09-05 Richard Biener <rguenther@suse.de>
1261
1262 PR middle-end/63148
1263 * c-format.c (check_format_arg): Properly handle
1264 effectively signed POINTER_PLUS_EXPR offset.
1265
2b71f4a4
MLI
12662014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1267
1268 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
1269 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
1270 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
1271 and Init.
1272 * c-opts.c (c_common_handle_option): Do not handle here.
1273 (sanitize_cpp_opts): Likewise.
1274 * c-common.c (struct reason_option_codes_t): Handle
1275 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
1276
d2e4feca
MP
12772014-09-03 Marek Polacek <polacek@redhat.com>
1278
1279 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
1280
9a771876
JJ
12812014-09-02 Jakub Jelinek <jakub@redhat.com>
1282 Balaji V. Iyer <balaji.v.iyer@intel.com>
1283 Igor Zamyatin <igor.zamyatin@intel.com>
1284
1285 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
1286 * c-common.c (c_common_reswords): Added _Cilk_for.
1287 * c-common.h (enum rid): Added RID_CILK_FOR.
1288 (cilk_for_number_of_iterations): Add declaration.
1289 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
1290 CILK_FOR.
1291 * c-pragma.c (init_pragma): Register "grainsize" pragma.
1292 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
1293
81b5d104
MLI
12942014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1295
1296 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
1297 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
1298 Wundef): Use CPP, Var and Init.
1299 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
1300
b753b37b
MLI
13012014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1302
1303 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
1304 * c-opts.c (c_common_handle_option): Do not handle here.
1305
028aee17
JM
13062014-08-25 Jason Merrill <jason@redhat.com>
1307
1308 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
1309 -std=c++14 and -std=gnu++14, rather than the reverse.
1310 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
1311 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
1312 * c-common.h (cxx_dialect): Remove cxx1y.
1313
e4276ba5
ESR
13142014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
1315
1316 * c-common.h (enum cxx_dialect): Add cxx14.
1317 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
1318 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
1319 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
1320
a545cacd
JM
13212014-08-22 Jason Merrill <jason@redhat.com>
1322
1323 * c.opt (std=gnu++17): Fix alias.
1324
59ea0364
MP
13252014-08-22 Marek Polacek <polacek@redhat.com>
1326
1327 PR c++/62199
1328 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
1329 check for vector types. Drop LHS argument.
1330 * c-common.h (warn_logical_not_parentheses): Adjust.
1331
596e808c
MLI
13322014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1333
1334 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
1335 (Wmultichar): Likewise.
1336 (Wdate-time): Use C-family languages instead of Common. Use CPP
1337 and Var.
1338 * c-opts.c (c_common_handle_option): Do not handle the above
1339 options here.
1340 (sanitize_cpp_opts): Likewise.
1341
18767f65
MLI
13422014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1343
1344 PR fortran/44054
1345 * c-opts.c: Include tree-diagnostics.h.
1346 (c_diagnostic_finalizer): New.
1347 (c_common_initialize_diagnostics): Use it.
1348
b4413594
MLI
13492014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1350
1351 PR preprocessor/51303
1352 * c-common.c (struct reason_option_codes_t option_codes):
1353 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
1354
43f9a13c
MLI
13552014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1356
1357 PR c/60975
1358 PR c/53063
1359 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
1360 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
1361 (c_common_post_options): Call init_global_opts_from_cpp.
1362 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
1363
04159acf
MP
13642014-08-19 Marek Polacek <polacek@redhat.com>
1365
1366 PR c++/62153
1367 * c-common.c (maybe_warn_bool_compare): New function.
1368 * c-common.h (maybe_warn_bool_compare): Declare.
1369 * c.opt (Wbool-compare): New option.
1370
35aff4fb
MP
13712014-08-19 Marek Polacek <polacek@redhat.com>
1372
1373 * c.opt (Wc99-c11-compat): New option.
1374
177cce46
MP
13752014-08-19 Marek Polacek <polacek@redhat.com>
1376
1377 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
1378 to warn_c90_c99_compat.
1379 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
1380 to -1.
1381
6ae9194f
MLI
13822014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1383 Steven Bosscher <steven@gcc.gnu.org>
1384
1385 PR c/52952
1386 * c-format.c: Add extra_arg_loc and format_string_loc to struct
1387 format_check_results.
1388 (check_function_format): Use true and add comment for boolean
1389 argument.
1390 (finish_dollar_format_checking): Use explicit location when warning.
1391 (check_format_info): Likewise.
1392 (check_format_arg): Set extra_arg_loc and format_string_loc.
1393 (check_format_info_main): Use explicit location when warning.
1394 (check_format_types): Pass explicit location.
1395 (format_type_warning): Likewise.
1396
8e54f6d3
MLI
13972014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1398
1399 PR fortran/44054
1400 * c-format.c: Handle Fortran flags.
1401
cd4e76fc
IZ
14022014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
1403
1404 PR other/61962
1405 * array-notation-common.c (find_rank): Added handling for other
1406 types of references.
1407
f3bede71
MP
14082014-08-10 Marek Polacek <polacek@redhat.com>
1409
1410 PR c/51849
1411 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
1412 * c.opt (Wc90-c99-compat): Add option.
1413
9f25a338
TS
14142014-08-07 Trevor Saunders <tsaunders@mozilla.com>
1415
1416 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1417
62e4eb35
MP
14182014-08-03 Marek Polacek <polacek@redhat.com>
1419
1420 * c-common.c (check_case_value): Add location_t parameter. Use it.
1421 (c_add_case_label): Pass loc to check_case_value.
1422
b787e7a2
TS
14232014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1424
1425 * cilk.c: Use hash_map instead of pointer_map.
1426
6e2830c3
TS
14272014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1428
1429 * c-gimplify.c: Use hash_set instead of pointer_set.
1430
a7ee52fb
IZ
14312014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
1432
1433 PR middle-end/61455
1434 * array-notation-common.c (extract_array_notation_exprs): Handling
1435 of DECL_EXPR added.
1436
944fa280
JJ
14372014-08-01 Jakub Jelinek <jakub@redhat.com>
1438
1439 * c-common.h (min_align_of_type): Removed prototype.
1440 * c-common.c (min_align_of_type): Removed.
1441 * c-ubsan.h (ubsan_maybe_instrument_reference,
1442 ubsan_maybe_instrument_member_call): New prototypes.
1443 * c-ubsan.c: Include stor-layout.h and builtins.h.
1444 (ubsan_maybe_instrument_reference_or_call,
1445 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1446 functions.
1447
b4dfdc11
MG
14482014-07-31 Marc Glisse <marc.glisse@inria.fr>
1449
1450 PR c++/60517
1451 * c.opt (-Wreturn-local-addr): Move to common.opt.
1452
a41844e5
JM
14532014-07-30 Jason Merrill <jason@redhat.com>
1454
1455 PR c++/61659
1456 PR c++/61687
1457 Revert:
1458 * c.opt (-fuse-all-virtuals): New.
1459
976d5a22
TT
14602014-07-30 Tom Tromey <tromey@redhat.com>
1461
1462 PR c/59855
1463 * c.opt (Wdesignated-init): New option.
1464 * c-common.c (c_common_attribute_table): Add "designated_init".
1465 (handle_designated_init): New function.
1466
cdc94aca
MP
14672014-07-24 Marek Polacek <polacek@redhat.com>
1468
1469 PR c/57653
1470 * c-opts.c (c_finish_options): If -imacros is in effect, return.
1471
f41373b6
DS
14722014-07-16 Dodji Seketeli <dodji@redhat.com>
1473
1474 PR preprocessor/60723 - missing system-ness marks for macro tokens
1475 * c-ppoutput.c (struct print::prev_was_system_token): New data
1476 member.
1477 (init_pp_output): Initialize it.
1478 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1479 (do_line_change): Return a flag saying if a line marker was
1480 emitted or not.
1481 (scan_translation_unit): Detect if the system-ness of the token we
1482 are about to emit is different from the one of the previously
1483 emitted token. If so, emit a line marker. Avoid emitting useless
1484 adjacent line markers. Avoid emitting line markers for tokens
1485 originating from the expansion of built-in macros.
1486 (scan_translation_unit_directives_only): Adjust.
1487
4d661eaa
MP
14882014-07-15 Marek Polacek <polacek@redhat.com>
1489
1490 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1491 TYPE_MAX_VALUE is NULL.
1492
b108f48f
JJ
14932014-07-14 Jakub Jelinek <jakub@redhat.com>
1494
1495 PR middle-end/61294
1496 * c.opt (Wmemset-transposed-args): New warning.
1497
c0221884
JM
14982014-07-10 Jason Merrill <jason@redhat.com>
1499
1500 PR c++/61659
1501 PR c++/61687
1502 * c.opt (-fuse-all-virtuals): New.
1503
63dfbb95
RB
15042014-07-09 Richard Biener <rguenther@suse.de>
1505
1506 PR c-family/61741
1507 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1508 using unsigned arithmetic if overflow does not wrap instead of
1509 if overflow is undefined.
1510
773ec47f
MP
15112014-07-06 Marek Polacek <polacek@redhat.com>
1512
1513 PR c/6940
1514 * c.opt (Wsizeof-array-argument): New option.
1515
00a7ba58
JJ
15162014-07-03 Jakub Jelinek <jakub@redhat.com>
1517
1518 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
1519 comments->count <= 1, as comments->entries might be NULL.
1520
52ec0ea3
MP
15212014-07-01 Marek Polacek <polacek@redhat.com>
1522
1523 * c.opt (Wint-conversion): New option.
1524
d5c3d343
MP
15252014-07-01 Marek Polacek <polacek@redhat.com>
1526
1527 PR c/58286
1528 * c.opt (Wincompatible-pointer-types): New option.
1529
6e7ceb17
PC
15302014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1531
1532 PR c++/51400
1533 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1534 Do not discard TYPE_QUALS of type.
1535
da73100b
JM
15362014-06-26 Jason Merrill <jason@redhat.com>
1537
1538 * c-common.h (enum cxx_dialect): Add cxx1z.
1539 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1540 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1541
08eedf75
TJ
15422014-06-26 Teresa Johnson <tejohnson@google.com>
1543
1544 * c-common.h (get_dump_info): Declare.
1545 * c-gimplify.c (c_genericize): Use saved dump files.
1546 * c-opts.c (c_common_parse_file): Begin and end dumps
1547 once around parsing invocation.
1548 (get_dump_info): New function.
1549
7b56b2f8
MP
15502014-06-23 Marek Polacek <polacek@redhat.com>
1551 Andrew MacLeod <amacleod@redhat.com>
1552
1553 PR c/61553
1554 * c-common.c (get_atomic_generic_size): Don't segfault if the
1555 type doesn't have a size.
1556
0e37a2f3
MP
15572014-06-20 Marek Polacek <polacek@redhat.com>
1558
1559 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1560 (ubsan_walk_array_refs_r): New function.
1561 (c_genericize): Instrument array bounds.
1562 * c-ubsan.c: Include "internal-fn.h".
1563 (ubsan_instrument_division): Mark instrumented arrays as having
1564 side effects. Adjust ubsan_type_descriptor call.
1565 (ubsan_instrument_shift): Likewise.
1566 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1567 (ubsan_instrument_bounds): New function.
1568 (ubsan_array_ref_instrumented_p): New function.
1569 (ubsan_maybe_instrument_array_ref): New function.
1570 * c-ubsan.h (ubsan_instrument_bounds): Declare.
1571 (ubsan_array_ref_instrumented_p): Declare.
1572 (ubsan_maybe_instrument_array_ref): Declare.
1573
15742014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
1575
1576 PR lto/61123
1577 * c.opt (fshort-enums): Add to LTO.
1578 * c.opt (fshort-wchar): Likewise.
1579
5c3d09f7
MP
15802014-06-16 Marek Polacek <polacek@redhat.com>
1581
1582 PR c/60439
1583 * c.opt (Wswitch-bool): Add Var.
1584
9cf32741
JJ
15852014-06-12 Jakub Jelinek <jakub@redhat.com>
1586
1587 PR middle-end/61486
1588 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1589 #pragma omp target teams or
1590 #pragma omp {,target }teams distribute simd.
1591
62984918
JM
15922014-06-12 Jason Merrill <jason@redhat.com>
1593
1594 * c.opt (Wabi=, fabi-compat-version): New.
1595 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1596 (c_common_post_options): Handle flag_abi_compat_version default.
1597 Disallow -fabi-compat-version=1.
1598 * c-common.h (abi_version_crosses): New.
1599
f961457f
JH
16002014-06-11 Jan Hubicka <hubicka@ucw.cz>
1601
adfac8df 1602 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
1603 section names that are no longer trees.
1604
92d28cbb
JJ
16052014-06-10 Jakub Jelinek <jakub@redhat.com>
1606
1607 PR fortran/60928
1608 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1609 (omp_pragmas): ... back here.
1610
742938c9
MP
16112014-06-05 Marek Polacek <polacek@redhat.com>
1612
1613 PR c/49706
1614 * c-common.c (warn_logical_not_parentheses): New function.
1615 * c-common.h (warn_logical_not_parentheses): Declare.
1616 * c.opt (Wlogical-not-parentheses): New option.
1617
9d548dfb
MP
16182014-06-04 Marek Polacek <polacek@redhat.com>
1619
1620 PR c/30020
1621 * c-common.c (check_case_bounds): Add location parameter.
1622 Use it.
1623 (c_add_case_label): Pass loc to check_case_bounds.
1624
fedfecef
MP
16252014-06-03 Marek Polacek <polacek@redhat.com>
1626
1627 PR c/60439
1628 * c.opt (Wswitch-bool): New option.
1629
f6a7cffc
TS
16302014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1631
040d18b6
TS
1632 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1633 Remove prototypes.
1634 (record_types_used_by_current_var_decl): Move prototype to where
1635 it belongs.
1636
f6a7cffc
TS
1637 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1638 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1639 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1640
632f2871
RS
16412014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1642
1643 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1644 * c-common.c (c_common_nodes_and_builtins): Don't initialize
1645 void_zero_node.
1646 * c-pretty-print.c (pp_c_void_constant): New function.
1647 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1648 (c_pretty_printer::expression): Handle VOID_CST.
1649 * cilk.c (extract_free_variables): Likewise.
1650 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1651 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1652
766090c2
TS
16532014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1654
1655 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1656 * c-pragma.c (push_alignment): Adjust.
1657 (handle_pragma_push_options): Likewise.
1658
661a0813
MP
16592014-05-09 Marek Polacek <polacek@redhat.com>
1660
1661 PR c/50459
1662 * c-common.c (check_user_alignment): Return -1 if alignment is error
1663 node.
1664 (handle_aligned_attribute): Don't call default_conversion on
1665 FUNCTION_DECLs.
1666 (handle_vector_size_attribute): Likewise.
1667 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1668 (handle_sentinel_attribute): Call default_conversion and allow even
1669 integral types as an argument.
1670
2793eeab
MP
16712014-05-08 Marek Polacek <polacek@redhat.com>
1672
1673 PR c/61053
1674 * c-common.c (min_align_of_type): New function factored out from...
1675 (c_sizeof_or_alignof_type): ...here.
1676 * c-common.h (min_align_of_type): Declare.
1677
f827930a
MP
16782014-05-08 Marek Polacek <polacek@redhat.com>
1679
1680 PR c/61077
1681 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1682 parameter type of main.
1683
ca49b74e
DD
16842014-05-07 DJ Delorie <dj@redhat.com>
1685
1686 * c-cppbuiltin.c (print_bits_of_hex): New.
1687 (builtin_define_type_minmax): Print values using hex so as not to
1688 require a pre-computed list of string values.
1689
1d60af08
KZ
16902014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1691 Mike Stump <mikestump@comcast.net>
1692 Richard Sandiford <rdsandiford@googlemail.com>
1693
1694 * c-ada-spec.c: Include wide-int.h.
1695 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1696 (dump_generic_ada_node): Use wide-int interfaces.
1697 * c-common.c: Include wide-int-print.h.
1698 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1699 (pointer_int_sum): Use wide-int interfaces.
1700 (c_common_nodes_and_builtins): Use make_int_cst.
1701 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1702 (handle_alloc_size_attribute): Use wide-int interfaces.
1703 (get_nonnull_operand): Likewise.
1704 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1705 * c-lex.c: Include wide-int.h.
1706 (narrowest_unsigned_type): Take a widest_int rather than two
1707 HOST_WIDE_INTs.
1708 (narrowest_signed_type): Likewise.
1709 (interpret_integer): Update accordingly. Use wide-int interfaces.
1710 (lex_charconst): Use wide-int interfaces.
1711 * c-pretty-print.c: Include wide-int.h.
1712 (pp_c_integer_constant): Use wide-int interfaces.
1713 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1714 INT_CST_LT_UNSIGNED.
1715
b15458be
RB
17162014-05-06 Richard Biener <rguenther@suse.de>
1717
1718 * c-opts.c (c_common_post_options): For -freestanding,
1719 -fno-hosted and -fno-builtin disable pattern recognition
1720 if not enabled explicitely.
1721
6577374e
MP
17222014-05-02 Marek Polacek <polacek@redhat.com>
1723
1724 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1725
d00887e8
MP
17262014-05-01 Marek Polacek <polacek@redhat.com>
1727
1728 PR c/43245
1729 * c.opt (Wdiscarded-qualifiers): Add.
1730
f8ed5150
MP
17312014-04-30 Marek Polacek <polacek@redhat.com>
1732
1733 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
1734 INT_MIN / -1 sanitization only for integer types.
1735
45484dcf
MP
17362014-04-25 Marek Polacek <polacek@redhat.com>
1737
1738 PR c/18079
1739 * c-common.c (handle_noinline_attribute): Warn if the attribute
1740 conflicts with always_inline attribute.
1741 (handle_always_inline_attribute): Warn if the attribute conflicts
1742 with noinline attribute.
1743
38e514c0
MP
17442014-04-25 Marek Polacek <polacek@redhat.com>
1745
1746 PR c/60156
1747 * c-common.c (check_main_parameter_types): Warn about variadic main.
1748
44875f92
MS
17492014-04-24 Mike Stump <mikestump@comcast.net>
1750
1751 * c.opt (Wshadow-ivar): Default to on.
1752
dcaaa5a0
DP
17532014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1754
1755 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1756
c07d7c02
MP
17572014-04-23 Marek Polacek <polacek@redhat.com>
1758
1759 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1760
1c33c9b7
JJ
17612014-04-22 Jakub Jelinek <jakub@redhat.com>
1762
1763 PR sanitizer/60275
1764 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1765 if flag_sanitize_undefined_trap_on_error.
1766 (ubsan_instrument_division, ubsan_instrument_shift,
1767 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1768 if !flag_sanitize_recover.
1769
793c625f
MG
17702014-04-22 Marc Glisse <marc.glisse@inria.fr>
1771
1772 PR libstdc++/43622
1773 * c-common.c (registered_builtin_types): Make non-static.
1774 * c-common.h (registered_builtin_types): Declare.
1775
b0f1bf36
RB
17762014-04-14 Richard Biener <rguenther@suse.de>
1777 Marc Glisse <marc.glisse@inria.fr>
1778
1779 PR c/60819
1780 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1781 apply may-alias the scalar pointer type when applicable.
1782
3b07fa4a
IZ
17832014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1784
1785 PR middle-end/60467
1786 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1787 as possible argument for Cilk_spawn.
1788
cbbd2b1c
TB
17892014-04-11 Tobias Burnus <burnus@net-b.de>
1790
1791 PR c/60194
1792 * c.opt (Wformat-signedness): Add
1793 * c-format.c(check_format_types): Use it.
1794
6415bd5d
JM
17952014-04-11 Jason Merrill <jason@redhat.com>
1796
1797 PR c++/57926
1798 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1799 default_conversion for an array argument.
1800
6525783a
MP
18012014-04-08 Marek Polacek <polacek@redhat.com>
1802
1803 PR sanitizer/60745
1804 * c-ubsan.c: Include asan.h.
1805 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1806
880a467b
NS
18072014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1808
1809 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1810
7b59ff2d
MP
18112014-04-02 Marek Polacek <polacek@redhat.com>
1812
1813 * c-common.h (c_expand_expr): Remove declaration.
1814
8edbfaa6
JJ
18152014-03-28 Jakub Jelinek <jakub@redhat.com>
1816
1817 PR c++/60689
1818 * c-common.c (add_atomic_size_parameter): When creating new
1819 params vector, push the size argument first.
1820
07d72e1d
JJ
18212014-03-26 Jakub Jelinek <jakub@redhat.com>
1822
1823 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1824 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1825 ubsan_create_data callers.
1826
b35e0fa0
JJ
18272014-03-22 Jakub Jelinek <jakub@redhat.com>
1828
1829 PR debug/60603
1830 * c-opts.c (c_finish_options): Restore cb_file_change call to
1831 <built-in>.
1832
39a1ebb3
JJ
18332014-03-13 Jakub Jelinek <jakub@redhat.com>
1834
1835 PR middle-end/36282
1836 * c-pragma.c (apply_pragma_weak): Only look at
1837 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1838 DECL_ASSEMBLER_NAME_SET_P (decl).
1839 (maybe_apply_pending_pragma_weaks): Exit early if
1840 vec_safe_is_empty (pending_weaks) rather than only when
1841 !pending_weaks.
1842 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
1843 set assembler name back to NULL afterwards.
1844
a07f6ed2
JM
18452014-03-11 Jason Merrill <jason@redhat.com>
1846
1847 * c.opt: Add -std=gnu++14.
1848
75b107f5
IB
18492014-03-11 Ian Bolton <ian.bolton@arm.com>
1850
1851 * c-opts.c (c_common_post_options): Don't override
1852 -ffp-contract=fast if unsafe-math-optimizations is on.
1853
f42c637e
PM
18542014-03-08 Paulo Matos <paulo@matos-sorge.com>
1855
1856 * c.opt: Enable LTO FE for fshort-double.
1857
70e24808
JM
18582014-03-07 Jason Merrill <jason@redhat.com>
1859
1860 * c.opt: Add -std=c++14.
1861
3af9c5e9
MP
18622014-03-06 Marek Polacek <polacek@redhat.com>
1863
1864 PR c/60197
1865 * cilk.c (contains_cilk_spawn_stmt): New function.
1866 (contains_cilk_spawn_stmt_walker): Likewise.
1867 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1868 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1869
b3bdf019
JJ
18702014-03-03 Jakub Jelinek <jakub@redhat.com>
1871
1872 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1873 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1874 even when flag_preprocess_only.
1875
ca7e759d
JM
18762014-02-26 Jason Merrill <jason@redhat.com>
1877
1878 PR c++/59231
1879 PR c++/11586
1880 * c-common.c (shorten_compare): Don't check
1881 c_inhibit_evaluation_warnings.
1882
28e41874
JJ
18832014-02-19 Jakub Jelinek <jakub@redhat.com>
1884
cca615af
JJ
1885 PR c/37743
1886 * c-common.c (c_common_nodes_and_builtins): When initializing
1887 c_uint{16,32,64}_type_node, also set corresponding
1888 uint{16,32,64}_type_node to the same value.
1889
28e41874
JJ
1890 PR c++/60267
1891 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1892 for PRAGMA_IVDEP if flag_preprocess_only.
1893
c2bf53a1
JJ
18942014-02-12 Jakub Jelinek <jakub@redhat.com>
1895
1896 PR c/60101
1897 * c-common.c (merge_tlist): If copy is true, call new_tlist,
1898 if false, add ADD itself, rather than vice versa.
1899 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1900 copy. For SAVE_EXPR, only call merge_tlist once.
1901
8fcbce72
JJ
19022014-02-08 Jakub Jelinek <jakub@redhat.com>
1903
1904 PR middle-end/60092
1905 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1906 and tree_to_uhwi.
1907 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1908 functions.
1909 (c_common_attribute_table): Add alloc_align and assume_aligned
1910 attributes.
1911
0a756a3f
MP
19122014-02-06 Marek Polacek <polacek@redhat.com>
1913
1914 PR c/60087
1915 * c-common.c (warn_for_sign_compare): Call warning_at with location
1916 instead of warning.
1917
7ec4847a
MP
19182014-02-05 Marek Polacek <polacek@redhat.com>
1919
1920 PR c/53123
1921 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1922 statement.
1923
66f20604
MP
19242014-02-04 Marek Polacek <polacek@redhat.com>
1925
1926 PR c/60036
1927 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1928 SAVE_EXPR.
1929
5d77fb19
MG
19302014-02-03 Marc Glisse <marc.glisse@inria.fr>
1931
1932 PR c++/53017
1933 PR c++/59211
1934 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1935 handle_vector_size_attribute, handle_nonnull_attribute): Call
1936 default_conversion on the attribute argument.
1937 (handle_nonnull_attribute): Increment the argument number.
1938
81e5eca8
MP
19392014-01-31 Marek Polacek <polacek@redhat.com>
1940
1941 PR c/59963
1942 * c-common.c (add_atomic_size_parameter): Pass vNULL to
1943 build_function_call_vec.
1944 (resolve_overloaded_builtin): Likewise.
1945 * c-common.h (build_function_call_vec): Adjust declaration.
1946
68fca595
MP
19472014-01-30 Marek Polacek <polacek@redhat.com>
1948
1949 PR c/59940
1950 * c-common.h (unsafe_conversion_p): Adjust declaration.
1951 (warnings_for_convert_and_check): Likewise.
1952 (convert_and_check): Likewise.
1953 * c-common.c (unsafe_conversion_p): Add location parameter. Call
1954 expansion_point_location_if_in_system_header on it.
1955 (warnings_for_convert_and_check): Add location parameter. Call
1956 expansion_point_location_if_in_system_header on it. Use it.
1957 (convert_and_check): Add location parameter. Use it.
1958 (conversion_warning): Likewise.
1959 (c_add_case_label): Adjust convert_and_check calls.
1960 (scalar_to_vector): Adjust unsafe_conversion_p calls.
1961
b72271b9
BI
19622014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1963
1964 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1965 flag_cilkplus.
1966 * c-pragma.c (init_pragma): Likewise.
1967 * c.opt: Likewise.
1968
393e8e8b
MP
19692014-01-23 Marek Polacek <polacek@redhat.com>
1970
1971 PR c/59846
1972 * c-common.c (shorten_compare): Add location_t parameter.
1973 * c-common.h (shorten_binary_op): Adjust declaration.
1974
f04dda30
MP
19752014-01-23 Marek Polacek <polacek@redhat.com>
1976
1977 PR c/58346
1978 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1979 * c-common.h: Declare it.
1980
621955cb
EB
19812014-01-20 Eric Botcazou <ebotcazou@adacore.com>
1982
1983 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1984 * c-ada-spec.c (dump_ads): Likewise.
1985 (cpp_check): Likewise.
1986 (dump_ada_specs): Likewise.
1987
19882014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
1989
1990 PR c++/49718
1991 * c-common.c (handle_no_instrument_function_attribute): Allow
1992 no_instrument_function attribute in class member
1993 definition/declaration.
1994
241f845a
JJ
19952014-01-15 Jakub Jelinek <jakub@redhat.com>
1996
1997 PR c/58943
1998 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1999 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
2000 being COMPOUND_EXPR.
2001 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
2002 operand a SAVE_EXPR and second MODIFY_EXPR.
2003
e83b8e2e
JJ
20042014-01-09 Jakub Jelinek <jakub@redhat.com>
2005
2006 PR target/58115
2007 * c-pch.c (c_common_write_pch): Call
2008 prepare_target_option_nodes_for_pch.
2009
23a5b65a
RS
20102014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2011
2012 Update copyright years
2013
f9030485
RS
20142014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2015
2016 * array-notation-common.c, c-cilkplus.c: Use the standard form for
2017 the copyright notice.
2018
f2aa696b
EB
20192013-12-28 Eric Botcazou <ebotcazou@adacore.com>
2020
2021 * c-ada-spec.c (print_constructor): New function.
2022 (print_destructor): Retrieve the origin of the destructor.
2023 (print_ada_declaration): Revamp handling of constructors/destructors.
2024
1f26ac87
JM
20252013-12-23 Stuart Hastings <stuart@apple.com>
2026 Bill Maddox <maddox@google.com>
2027 Jason Merrill <jason@redhat.com>
2028
2029 * c.opt: Add -fdeclone-ctor-dtor.
2030 * c-opts.c (c_common_post_options): Default to on iff -Os.
2031
41958c28
BI
20322013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2033
2034 * c-common.c (c_common_attribute_table): Added "cilk simd function"
2035 attribute.
2036 * c-pragma.h (enum pragma_cilk_clause): Remove.
2037 (enum pragma_omp_clause): Added the following fields:
2038 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
2039 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
2040 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
2041 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
2042 PRAGMA_CILK_CLAUSE_UNIFORM.
2043
2044
12893402
BI
20452013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2046
2047 * cilk.c (cilk_outline): Made this function non-static.
2048 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
2049 (create_cilk_wrapper): Added a new parameter: a function pointer.
2050 (c_install_body_w_frame_cleanup): Remove
2051 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
2052 * c-common.h (cilk_outline): New prototype.
2053 (gimplify_cilk_spawn): Removed two parameters.
2054 (cilk_install_body_with_frame_cleanup): New prototype.
2055 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
2056 CILK_SPAWN_STMT case.
2057
085b42ed
BS
20582013-12-11 Bernd Schmidt <bernds@codesourcery.com>
2059
2ce064c3
BS
2060 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
2061
085b42ed
BS
2062 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
2063 (int_array_type_node): Remove.
2064 * c-common.c (c_common_nodes_and_builtins): Don't build it.
2065
9e36c9ed
MP
20662013-12-05 Marek Polacek <polacek@redhat.com>
2067
2068 PR c/52023
2069 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
2070 [ADJUST_FIELD_ALIGN].
2071
296674db
JM
20722013-12-04 Joseph Myers <joseph@codesourcery.com>
2073
2074 PR c/52023
2075 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
2076 and check field alignment if set.
2077 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
2078 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
2079
31e071ae
MP
20802013-12-04 Jakub Jelinek <jakub@redhat.com>
2081 Marek Polacek <polacek@redhat.com>
2082
2083 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
2084 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
2085
d7947e19
L
20862013-11-29 H.J. Lu <hongjiu.lu@intel.com>
2087
2088 PR c/59309
2089 * cilk.c (gimplify_cilk_spawn): Properly handle function without
2090 arguments.
2091
fad7652e
JJ
20922013-11-29 Jakub Jelinek <jakub@redhat.com>
2093
2094 PR c/59280
2095 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
2096 goto invalid. If it is error_mark_node, don't issue further
2097 diagnostics.
2098
8b5e1202
SO
20992013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2100
2101 * c.opt (Wopenmp-simd): New.
2102
0a508bb6
JJ
21032013-11-22 Jakub Jelinek <jakub@redhat.com>
2104
2105 * c-ubsan.h (ubsan_instrument_return): New prototype.
2106 * c-ubsan.c (ubsan_instrument_return): New function.
2107
2fb9a547
AM
21082013-11-22 Andrew MacLeod <amacleod@redhat.com>
2109
2110 * c-common.c: Add required include files from gimple.h.
2111 * c-gimplify.c: Likewise
2112 * cilk.c: Likewise
2113
8400e75e
DM
21142013-11-22 David Malcolm <dmalcolm@redhat.com>
2115
2116 * c-common.c (unsafe_conversion_p): Remove use of
2117 EXPR_LOC_OR_HERE macro.
2118 (conversion_warning): Likewise.
2119 (warnings_for_convert_and_check): Likewise.
2120 (warn_for_collisions_1): Likewise.
2121 (shorten_compare): Likewise, and remove use of in_system_header
2122 macro, using the location from the former.
2123 * c-lex.c (dump_one_header): Remove use of input_filename macro.
2124 (cb_def_pragma): Remove use of in_system_header macro.
2125 (lex_string): Likewise.
2126 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2127
eb1ce453
KZ
21282013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2129 Mike Stump <mikestump@comcast.net>
2130 Richard Sandiford <rdsandiford@googlemail.com>
2131
2132 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
2133 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2134 tree_fits_shwi_p or tree_fits_uhwi_p.
2135 (dump_generic_ada_node): Likewise.
2136 * c-format.c (check_format_arg): Likewise.
2137 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2138
6b3b8c27
KZ
21392013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2140
2141 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
2142
49b0aa18
JC
21432013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2144
2145 PR c/53001
2146 * c-common.c (unsafe_conversion_p): Make this function
2147 return an enumeration with more detail.
2148 (conversion_warning): Use the new return type of
2149 unsafe_conversion_p to separately warn either about conversions
2150 that lower floating point number precision or about the other
2151 kinds of conversions.
2152 * c-common.h (enum conversion_safety): New enumeration.
2153 (unsafe_conversion_p): switching return type to
2154 conversion_safety enumeration.
2155 * c.opt: Adding new warning -Wfloat-conversion and
2156 enabling it with -Wconversion.
2157
b826515a
BS
21582013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2159
2160 * c-opts.c: Include plugin.h.
2161 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
2162
b9a55b13
MP
21632013-11-19 Marek Polacek <polacek@redhat.com>
2164
2165 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
2166 call.
2167 (ubsan_instrument_shift): Likewise.
2168 (ubsan_instrument_vla): Likewise.
2169
7d362f6c
RS
21702013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2171
2172 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
2173 cast to unsigned type.
2174
386b1f1f
RS
21752013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2176
2177 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
2178 tree_low_cst.
2179 (complete_array_type): Update comment to refer to tree_to_[su]hwi
2180 rather than tree_low_cst.
2181
ae7e9ddd
RS
21822013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2183
2184 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
2185 tree_to_uhwi throughout.
2186
9439e9a1
RS
21872013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2188
2189 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
2190 tree_low_cst (..., 0) with tree_to_shwi throughout.
2191
cc269bb6
RS
21922013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2193
2194 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
2195 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
2196
9541ffee
RS
21972013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2198
2199 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
2200 host_integerp (..., 0) with tree_fits_shwi_p throughout.
2201
c02065fc
AH
22022013-11-15 Aldy Hernandez <aldyh@redhat.com>
2203
2204 * c-cilkplus.c: New file.
2205 * c-common.c (readonly_error): Add location argument.
2206 * c-common.h (readonly_error): Same.
2207 (c_finish_cilk_clauses): Protoize.
2208 (c_check_cilk_loop): Same.
2209 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
2210 Do not fail on error_mark_node.
2211 Abstract increment canonicalization to here...
2212 (c_omp_for_incr_canonicalize_ptr): New.
2213 c-pragma.c (init_pragma): Register "simd" pragma.
2214 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
2215 (enum pragma_cilk_clause): New.
2216
9cc65f15
RS
22172013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2218
2219 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
2220 wchar_type and host_integerp checks.
2221
18f429e2
AM
22222013-11-14 Andrew MacLeod <amacleod@redhat.com>
2223
2224 * c-common.c: Likewise.
2225 * c-gimplify.c: Likewise.
2226 * cilk.c: Likewise.
2227
d8a2d370
DN
22282013-11-14 Diego Novillo <dnovillo@google.com>
2229
2230 * c-common.c: Include fold-const.h.
2231 Include stor-layout.h.
2232 Include calls.h.
2233 Include stringpool.h.
2234 Include attribs.h.
2235 Include varasm.h.
2236 Include trans-mem.h.
2237 * c-cppbuiltin.c: Include stor-layout.h.
2238 Include stringpool.h.
2239 * c-format.c: Include stringpool.h.
2240 * c-lex.c: Include stringpool.h.
2241 Include stor-layout.h.
2242 * c-pragma.c: Include stringpool.h.
2243 Include attribs.h.
2244 Include varasm.h.
2245 Include gcc-symtab.h.
2246 * c-pretty-print.c: Include stor-layout.h.
2247 Include attribs.h.
2248 * cilk.c: Include stringpool.h.
2249 Include calls.h.
2250
38b7bc7f
JM
22512013-11-13 Joseph Myers <joseph@codesourcery.com>
2252
2253 * c-common.h (enum rid): Add RID_AUTO_TYPE.
2254 * c-common.c (c_common_reswords): Add __auto_type.
2255 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
2256
45b0be94
AM
22572013-11-12 Andrew MacLeod <amacleod@redhat.com>
2258
18f429e2
AM
2259 * c-common.c: Include gimplify.h.
2260 * c-gimplify.c: Likewise.
2261 * cilk.c: Likewise.
2262 * c-omp.c: Include gimple-expr.h instead of gimple.h.
2263 * c-ubsan.c: Don't include gimple.h.
45b0be94 2264
582d9b50
JM
22652013-11-12 Joseph Myers <joseph@codesourcery.com>
2266
2267 * c-common.c (c_common_reswords): Add _Thread_local.
2268
6b28e197
JM
22692013-11-09 Joseph Myers <joseph@codesourcery.com>
2270
2271 * c-common.c (atomic_size_supported_p): New function.
2272 (resolve_overloaded_atomic_exchange)
2273 (resolve_overloaded_atomic_compare_exchange)
2274 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
2275 Use it instead of comparing size with a local list of sizes.
2276
267bac10
JM
22772013-11-07 Andrew MacLeod <amacleod@redhat.com>
2278 Joseph Myers <joseph@codesourcery.com>
2279
2280 * c-common.h (enum rid): Add RID_ATOMIC.
2281 * c-common.c (c_common_reswords): Add _Atomic.
2282 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
2283 (keyword_is_type_qualifier): Accept RID_ATOMIC.
2284 * c-format.c (check_format_types): Check for extra _Atomic
2285 qualifiers in format argument.
2286 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
2287 (pp_c_type_qualifier_list): Mention _Atomic in comment.
2288
5157b91e
TB
22892013-11-06 Tobias Burnus <burnus@net-b.de>
2290
2291 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
2292
6dbe0958
JM
22932013-11-06 Joseph Myers <joseph@codesourcery.com>
2294
2295 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
2296 standards modes.
2297 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
2298 to mean lack of IEEE 754 support.
2299
e8ff5196
TB
23002013-11-05 Tobias Burnus <burnus@net-b.de>
2301
2302 * c.opt (-Wdate-time): New option
2303 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
2304
254a0760
JM
23052013-11-05 Joseph Myers <joseph@codesourcery.com>
2306
2307 * c-cppbuiltin.c (cpp_iec_559_value): Test
2308 flag_excess_precision_cmdline not flag_excess_precision.
2309
6d7f7e0a
TB
23102013-11-05 Tobias Burnus <burnus@net-b.de>
2311
2312 * c.opt (fopenmp-simd): New option.
2313 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
2314 (omp_pragmas): ... this new struct.
2315 (c_pp_lookup_pragma): Also walk omp_pragmas.
2316 (init_pragma): Init pragmas for -fopenmp-simd.
2317
55a7f02f
MP
23182013-11-04 Marek Polacek <polacek@redhat.com>
2319
2320 PR c++/58979
2321 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
2322
9193fb05
JM
23232013-11-04 Joseph Myers <joseph@codesourcery.com>
2324
2325 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
2326 New functions.
2327 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
2328
94159ecf
EB
23292013-11-04 Eric Botcazou <ebotcazou@adacore.com>
2330
2331 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
2332 (dump_ada_specs): Adjust prototype of second callback.
2333 * c-ada-spec.c (cpp_check): New global variable.
2334 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
2335 (print_generic_ada_decl): Likewise.
2336 (has_static_fields): Change return type to bool and add guard.
2337 (has_nontrivial_methods): New predicate.
2338 (is_tagged_type): Change return type to bool.
2339 (separate_class_package): Call has_nontrivial_methods.
2340 (pp_ada_tree_identifier): Minor tweaks.
2341 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
2342 (dump_ada_array_domains): Likewise.
2343 (dump_ada_array_type): Likewise.
2344 (dump_template_types): Remove cpp_check parameter and do not pass it to
2345 dump_generic_ada_node.
2346 (dump_ada_template): Likewise.
2347 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
2348 recursively.
2349 (print_ada_methods): Change return type to integer. Remove cpp_check
2350 parameter and do not pass it down.
2351 (dump_nested_types): Remove cpp_check parameter and do not pass it to
2352 dump_generic_ada_node.
2353 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
2354 accessing methods.
2355 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
2356 down. Use has_nontrivial_methods to recognize C++ classes. Use return
2357 value of print_ada_methods.
2358 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
2359 Set cpp_check to it before invoking dump_ada_nodes.
2360 (dump_ada_specs): Likewise.
2361
b906f4ca
MP
23622013-11-03 Marek Polacek <polacek@redhat.com>
2363
2364 * c-ubsan.c: Don't include hash-table.h.
2365 (ubsan_instrument_vla): New function.
2366 * c-ubsan.h: Declare it.
2367
5e20cdc9
DM
23682013-10-31 David Malcolm <dmalcolm@redhat.com>
2369
2370 Automated part of renaming of symtab_node_base to symtab_node.
2371
2372 Patch autogenerated by rename_symtab.py from
2373 https://github.com/davidmalcolm/gcc-refactoring-scripts
2374 revision 58bb219cc090b2f4516a9297d868c245495ee622
2375
2376 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
2377 symtab_node_base to symtab_node.
2378
7057e645
ESR
23792013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
2380
2381 Implement C++14 digit separators.
2382 * c-lex.c (interpret_float): Remove digit separators from scratch string
2383 before building real literal.
2384
193ea7bc
JJ
23852013-10-30 Jakub Jelinek <jakub@redhat.com>
2386
2387 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
2388
939b37da
BI
23892013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
2390
2391 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
2392 fields.
2393 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
2394 enabled.
2395 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
2396 (insert_cilk_frame): New prototype.
2397 (cilk_init_builtins): Likewise.
2398 (gimplify_cilk_spawn): Likewise.
2399 (c_cilk_install_body_w_frame_cleanup): Likewise.
2400 (cilk_detect_spawn_and_unwrap): Likewise.
2401 (cilk_set_spawn_marker): Likewise.
2402 (build_cilk_sync): Likewise.
2403 (build_cilk_spawn): Likewise.
2404 * cilk.c: New file.
2405
67348ccc
DM
24062013-10-29 David Malcolm <dmalcolm@redhat.com>
2407
2408 Patch autogenerated by refactor_symtab.py from
2409 https://github.com/davidmalcolm/gcc-refactoring-scripts
2410 revision 58bb219cc090b2f4516a9297d868c245495ee622
2411
2412 * c-gimplify.c (c_genericize): Update for conversion of symtab types
2413 to a true class hierarchy.
2414 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2415
d570872d
RS
24162013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
2417
2418 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2419
98906124
JL
24202013-10-26 Jeff Law <law@redhat.com>
2421
adfac8df
JJ
2422 * c-common.c (c_define_builtins): Remove mudflap support.
2423 * c.opt: Ignore and warn for mudflap options.
98906124 2424
d73749df 24252013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
2426
2427 PR other/33426
2428 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2429 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2430
3f04b1bb
JM
24312013-10-23 Jason Merrill <jason@redhat.com>
2432
2433 * c-format.c (gcc_cxxdiag_char_table): Add %X.
2434
acf0174b
JJ
24352013-10-11 Jakub Jelinek <jakub@redhat.com>
2436
acd15a28
JJ
2437 * c-common.h (omp_clause_mask::operator !=): New method.
2438 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2439 instead of if (mask & something) tests everywhere.
2440
acf0174b
JJ
2441 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2442 201307 instead of 201107.
2443 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2444 (c_common_attribute_table): Add "omp declare target" and
2445 "omp declare simd" attributes.
2446 (handle_omp_declare_target_attribute,
2447 handle_omp_declare_simd_attribute): New functions.
2448 * c-omp.c: Include c-pragma.h.
2449 (c_finish_omp_taskgroup): New function.
2450 (c_finish_omp_atomic): Add swapped argument, if true,
2451 build the operation first with rhs, lhs arguments and use NOP_EXPR
2452 build_modify_expr.
2453 (c_finish_omp_for): Add code argument, pass it down to make_code.
2454 (c_omp_split_clauses): New function.
2455 (c_split_parallel_clauses): Removed.
2456 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2457 c_omp_declare_simd_clauses_to_decls): New functions.
2458 * c-common.h (omp_clause_mask): New type.
2459 (OMP_CLAUSE_MASK_1): Define.
2460 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2461 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2462 omp_clause_mask::operator |, omp_clause_mask::operator &,
2463 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2464 omp_clause_mask::operator ==): New methods.
2465 (enum c_omp_clause_split): New.
2466 (c_finish_omp_taskgroup): New prototype.
2467 (c_finish_omp_atomic): Add swapped argument.
2468 (c_finish_omp_for): Add code argument.
2469 (c_omp_split_clauses): New prototype.
2470 (c_split_parallel_clauses): Removed.
2471 (c_omp_declare_simd_clauses_to_numbers,
2472 c_omp_declare_simd_clauses_to_decls): New prototypes.
2473 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2474 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2475 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2476 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2477 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2478 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2479 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2480 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2481 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2482 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2483 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2484 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2485 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2486 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2487 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2488 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2489 PRAGMA_OMP_CLAUSE_UNIFORM.
2490
826cacfe
MG
24912013-10-09 Marc Glisse <marc.glisse@inria.fr>
2492
2493 PR tree-optimization/20318
2494 * c-common.c (handle_returns_nonnull_attribute): New function.
2495 (c_common_attribute_table): Add returns_nonnull.
2496
2284b034
MG
24972013-10-03 Marc Glisse <marc.glisse@inria.fr>
2498
2499 PR c++/19476
2500 * c.opt (fcheck-new): Move to common.opt.
2501
b56e9788
MP
25022013-09-25 Marek Polacek <polacek@redhat.com>
2503 Jakub Jelinek <jakub@redhat.com>
2504
2505 PR sanitizer/58413
2506 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2507 an expression if we can prove it is correct.
2508 (ubsan_instrument_division): Likewise. Remove unnecessary
2509 check.
2510
ce6923c5
MP
25112013-09-18 Marek Polacek <polacek@redhat.com>
2512
2513 PR sanitizer/58411
2514 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2515 Declare it.
2516 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2517
fb5610fb
IS
25182013-09-14 Iain Sandoe <iain@codesourcery.com>
2519
2520 PR target/48094
2521 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2522 fobjc-gc, freplace-objc-classes): Accept for LTO.
2523
88b0e79e
JC
25242013-09-13 Jacek Caban <jacek@codeweavers.com>
2525
2526 * c-target.def: New hook
2527
c9b0866a
PC
25282013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2529
2530 PR c++/43452
2531 * c.opt (Wdelete-incomplete): Add.
2532
0af94e6f
JR
25332013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2534
2535 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2536 (vector_types_compatible_elements_p): New function.
2537 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2538 declaration.
2539 (vector_types_compatible_elements_p): Declare.
2540
7c26172c
GDR
25412013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2542
2543 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2544 a virtual member function.
2545 (pp_simple_type_specifier): Remove.
2546 (pp_c_type_specifier): Likewise.
2547 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2548 Rename from pp_c_type_specifier. Adjust.
2549 (c_pretty_printer::c_pretty_printer): Do not assign to
2550 simple_type_specifier.
2551
20059c8b
GDR
25522013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2553
2554 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2555 member function.
2556 (c_pretty_printer::storage_class_specifier): Likewise.
2557 (c_pretty_printer::initializer): Likewise.
2558 (pp_declaration): Remove.
2559 (pp_declaration_specifiers): Likewise.
2560 (pp_abstract_declarator): Likewise.
2561 (pp_declarator): Likewise.
2562 (pp_type_id): Likewise.
2563 (pp_statement): Likewise.
2564 (pp_constant): Likewise.
2565 (pp_id_expression): Likewise.
2566 (pp_primary_expression): Likewise.
2567 (pp_unary_expression): Likewise.
2568 (pp_multiplicative_expression): Likewise.
2569 (pp_conditional_expression): Likewise.
2570 (pp_assignment_expression): Likewise.
2571 (pp_expression): Likewise.
2572 (pp_c_type_id): Likewise.
2573 (pp_c_storage_class_specifier): Likewise.
2574 * c-pretty-print.c (pp_c_type_cast): Tidy.
2575 (pp_c_pointer): Likewise.
2576 (pp_c_type_specifier): Likewise.
2577 (pp_c_parameter_type_list): Likewise.
2578 (pp_c_function_definition): Likewise.
2579 (pp_c_init_declarator): Likewise.
2580 (pp_c_initializer_list): Likewise.
2581 (pp_c_constructor_elts): Likewise.
2582 (c_pretty_printer::direct_abstract_declarator): Likewise.
2583 (c_pretty_printer::declaration_specifiers): Likewise.
2584 (c_pretty_printer::primary_expression): Likewise.
2585 (c_pretty_printer::postfix_expression): Likewise.
2586 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2587 (c_pretty_printer::storage_class_specifier): Rename from
2588 pp_c_storage_class_specifier.
2589 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2590 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2591 storage_class_specifier, initializer, offset_list, flags.
2592
de5a5fa1
MP
25932013-08-30 Marek Polacek <polacek@redhat.com>
2594
2595 * c-ubsan.c: New file.
2596 * c-ubsan.h: New file.
2597
8f0e4d72
GDR
25982013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2599
2600 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2601 member function.
2602 (c_pretty_printer::declaration_specifiers): Likewise.
2603 (c_pretty_printer::declarator): Likewise.
2604 (c_pretty_printer::abstract_declarator): Likewise.
2605 (c_pretty_printer::direct_abstract_declarator): Likewise.
2606 (c_pretty_printer::direct_declarator): Likewise.
2607 (c_pretty_printer::function_specifier): Likewise.
2608 (pp_declaration): Adjust.
2609 (pp_declaration_specifiers): Likewise.
2610 (pp_abstract_declarator): Likewise.
2611 (pp_direct_declarator): Likewise.
2612 (pp_function_specifier): Likewise.
2613 (pp_direct_abstract_declarator): Remove as unused.
2614 (pp_c_declaration): Remove.
2615 (pp_c_declaration_specifiers): Likewise.
2616 (pp_c_declarator): Likewise.
2617 (pp_c_direct_declarator): Likewise.
2618 (pp_c_function_specifier): Likewise.
2619 (pp_c_direct_abstract_declarator): Likewise.
2620 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2621 from pp_c_abstract_declarator. Adjust.
2622 (c_pretty_printer::direct_abstract_declarator): Rename from
2623 pp_c_direct_abstract_declarator. Adjust.
2624 (c_pretty_printer::function_specifier): Rename from
2625 pp_c_function_specifier. Adjust.
2626 (c_pretty_printer::declaration_specifiers): Rename from
2627 pp_c_declaration_specifiers. Adjust.
2628 (c_pretty_printer::direct_declarator): Rename from
2629 pp_c_direct_declarator. Adjust.
2630 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
2631 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
2632 (c_pretty_printer::c_pretty_printer): Do not assign to
2633 declaration, declaration_specifiers, declarator,
2634 direct_declarator, direct_abstract_declarator, function_specifier.
2635
00d34d3a
GDR
26362013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
2637
2638 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2639 virtual member function.
2640 (c_pretty_printer::multiplicative_expression): Likewise.
2641 (c_pretty_printer::conditional_expression): Likewise.
2642 (c_pretty_printer::assignment_expression): Likewise.
2643 (c_pretty_printer::expression): Likewise.
2644 (pp_unary_expression): Adjust.
2645 (pp_multiplicative_expression): Likewise.
2646 (pp_assignment_expression): Likewise.
2647 (pp_conditional_expression): Likewise.
2648 (pp_expression): Likewise.
2649 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2650 from pp_c_unary_expression. Adjust.
2651 (c_pretty_printer::multiplicative_expression): Rename from
2652 pp_c_multiplicative_expression. Adjust.
2653 (c_pretty_printer::conditional_expression): Rename from
2654 pp_c_conditional_expression. Adjust.
2655 (c_pretty_printer::assignment_expression): Rename from
2656 pp_c_assignment_expression. Adjust.
2657 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
2658 (c_pretty_printer::c_pretty_printer): Do not assign to
2659 unary_expression, multiplicative_expression,
2660 conditional_expression, expression.
2661
fb22178f
GDR
26622013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2663
2664 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2665 virtual member function.
2666 (pp_postfix_expression): Adjust.
2667 (pp_c_postfix_expression): Remove.
2668 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2669 from pp_c_postfix_expression. Adjust.
2670 (c_pretty_printer::c_pretty_printer): Do not assign to
2671 postfix_expression.
2672
7ecc2600
GDR
26732013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2674
2675 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2676 virtua member function.
2677 (pp_primary_expression): Adjust.
2678 (pp_c_primary_expression): Remove.
2679 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2680 from pp_c_primary_expression. Adjust.
2681 (pp_c_initializer_list): Use pp_primary_expression.
2682 (c_pretty_printer::c_pretty_printer): Do not assign to
2683 primary_expression.
2684
0691175f
GDR
26852013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2686
2687 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2688 * c-pretty-print.c (M_): Remove.
2689 (c_pretty_printer::translate_string): Define.
2690 (pp_c_type_specifier): Use it.
2691 (pp_c_primary_expression): Likewise.
2692 (pp_c_expression): Likewise.
2693
66dfe4c4
GDR
26942013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2695
2696 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2697 virtual function.
2698 (pp_c_id_expression): Remove.
2699 (pp_id_expression): Adjust.
2700 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2701 pp_c_id_expression. Adjust.
2702 (pp_c_postfix_expression): Use pp_id_expression.
2703 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2704
ca43e9d5
GDR
27052013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2706
2707 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2708 member function.
2709 (pp_constant): Adjust.
2710 (pp_c_constant): Remove.
2711 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2712 pp_c_constant. Adjust.
2713 (pp_c_constant)
2714 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2715 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2716
da6ca2b5
GDR
27172013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2718
2719 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2720 (c_pretty_printer::c_pretty_printer): Declare.
2721 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2722 c_pretty_printer_init. Adjust.
2723 (print_c_tree): Do not call c_pretty_printer_init.
2724 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2725
65a372f4
AC
27262013-08-09 Arnaud Charlet <charlet@adacore.com>
2727
2728 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2729
fd9b0f32
PC
27302013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
2731
2732 PR c++/58080
2733 * c-common.c (pointer_int_sum): Add bool parameter.
2734 * c-common.h (pointer_int_sum): Adjust declaration.
2735
e0aec1e9
GDR
27362013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2737
2738 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2739 c_pretty_printer variable.
2740
b066401f
GDR
27412013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2742
2743 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2744 (pp_base): Remove.
2745 (pp_c_base): Likewise. Adjust users.
2746 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2747 (pp_c_whitespace): Do not call pp_base.
2748 (pp_c_left_paren): Likewise.
2749 (pp_c_right_paren): Likewise.
2750 (pp_c_left_brace): Likewise.
2751 (pp_c_right_brace): Likewise.
2752 (pp_c_left_bracket): Likewise.
2753 (pp_c_right_bracket): Likewise.
2754 (pp_c_dot): Likewise.
2755 (pp_c_ampersand): Likewise.
2756 (pp_c_star): Likewise.
2757 (pp_c_arrow): Likewise.
2758 (pp_c_semicolon): Likewise.
2759 (pp_c_complement): Likewise.
2760 (pp_c_exclamation): Likewise.
2761 (pp_c_direct_declarator): Likewise.
2762 (pp_c_ws_string): Likewise.
2763 (pp_c_identifier): Likewise.
2764 (pp_c_statement): Likewise.
2765 (print_c_tree): Likewise.
2766
65e5a578
ESR
27672013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2768
2769 PR c++/58072
2770 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2771 provide useful error strings.
2772
137a1a27
GDR
27732013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2774
2775 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2776 printer functions instead of pp_string or operators and punctuators.
2777 (dump_generic_ada_node): Likewise.
2778 * c-pretty-print.c (pp_c_type_specifier): Likewise.
2779 (pp_c_relational_expression): Likewise.
2780 (pp_c_logical_or_expression): Likewise.
2781
07838b13
GDR
27822013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2783
2784 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2785 functions instead of pp_character.
2786 (pp_ada_tree_identifier): Likewise.
2787 (dump_ada_double_name): Likewise.
2788 (dump_ada_function_declaration): Likewise.
2789 (dump_ada_array_domains): Likewise.
2790 (dump_template_types): Likewise.
2791 (dump_generic_ada_node): Likewise.
2792 (print_ada_declaration): Likewise.
2793 (print_ada_struct_decl): Likewise.
2794 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2795
433cc7b0
TT
27962013-07-23 Tom Tromey <tromey@redhat.com>
2797
2798 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2799 * c-common.c (c_common_reswords): Add _Generic.
2800
688010ba
OB
28012013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
2802
2803 * c-common.c: Fix typos.
2804 * c-common.h: Likewise.
2805
2a99e5e6
LL
28062013-07-13 Lubos Lunak <l.lunak@suse.cz>
2807
2808 PR c++/55203
2809 * c-common.c (c_common_attribute_table): Add warn_unused.
2810 (handle_warn_unused_attribute): New.
2811
c26302d5
JJ
28122013-07-10 Jakub Jelinek <jakub@redhat.com>
2813
2814 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2815 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2816
dfeadaa0
PC
28172013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
2818
2819 PR c++/57869
2820 * c.opt: Add Wconditionally-supported.
2821
6a2fa4b2
GS
28222013-07-08 Graham Stott <graham.stott@btinternet.com>
2823
adfac8df 2824 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
2825 unused variables l_length and l_node.
2826
ecdbd01a 28272013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
2828
2829 PR c/57821
2830 * c-common.c (complete_array_type): Delay folding first index
2831 like other indices. When folding, check for index overflow.
2832
bedc293e
MG
28332013-06-27 Marc Glisse <marc.glisse@inria.fr>
2834
2835 PR c++/57509
2836 * c-common.h (c_build_vec_perm_expr): New complain argument.
2837 * c-common.c (c_build_vec_perm_expr): Likewise.
2838 Use save_expr also in C++.
2839
604b2bfc
GDR
28402013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2841
2842 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2843 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2844 * c-opts.c (c_common_post_options): Likewise.
2845
dfeadaa0 28462013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
2847
2848 * array-notation-common.c (length_mismatch_in_expr): Changed the
2849 parameter type's from a dynamic array to a vec_tree. Also removed
2850 the size parameters.
2851 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2852 the change above.
2853
2ce86d2e
BI
28542013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2855
2856 * c-common.h (struct cilkplus_an_parts): New structure.
2857 (struct cilkplus_an_loop_parts): Likewise.
2858 (cilkplus_extract_an_triplets): New prototype.
2859 (fix_sec_implicit_args): Likewise.
2860 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2861 (fix_sec_implicit_args): Likewise.
604b2bfc 2862
07a6825b
BI
28632013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2864
2865 * array-notation-common.c (find_inv_trees): Removed an unwanted
2866 typecasting.
2867 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2868 enum rid to enum tree_code.
2869
08346abd
JH
28702013-06-11 Jan Hubicka <jh@suse.cz>
2871
2872 * c-common.c (handle_alias_ifunc_attribute): Do not set
2873 DECL_EXTERNAL for weakref variables.
2874 * c-pragma.c (handle_pragma_weak): Make sure aliases
2875 are not declared as external.
2876
d60f1706
BI
28772013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2878
2879 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2880 function from c/c-array-notation.c.
2881 (is_cilkplus_reduce_builtin): Likewise.
2882 (find_rank): Likewise.
2883 (extract_array_notation_exprs): Likewise.
2884 (replace_array_notations): Likewise.
2885 (find_inv_trees): Likewise.
2886 (replace_inv_trees): Likewise.
2887 (contains_array_notation_expr): Likewise.
2888 (find_correct_array_notation_type): Likewise.
2889 * c-common.h (struct inv_list): Moved this struct from the file
2890 c/c-array-notation.c and added a new field called additional tcodes.
2891 (length_mismatch_in_expr_p): New prototype.
2892 (is_cilkplus_reduce_builtin): Likewise.
2893 (find_rank): Likewise.
2894 (extract_array_notation_exprs): Likewise.
2895 (replace_array_notation): Likewise.
2896 (find_inv_trees): Likewise.
2897 (replace_inv_trees): Likewise.
2898 (find_correct_array_notation_type): Likewise.
dfeadaa0 2899
36536d79
BI
29002013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2901
2902 * c-common.c (c_define_builtins): When cilkplus is enabled, the
2903 function array_notation_init_builtins is called.
2904 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2905 * c-common.def (ARRAY_NOTATION_REF): New tree.
2906 * c-common.h (build_array_notation_expr): New function declaration.
2907 (build_array_notation_ref): Likewise.
2908 (extract_sec_implicit_index_arg): New extern declaration.
2909 (is_sec_implicit_index_fn): Likewise.
2910 (ARRAY_NOTATION_CHECK): New define.
2911 (ARRAY_NOTATION_ARRAY): Likewise.
2912 (ARRAY_NOTATION_START): Likewise.
2913 (ARRAY_NOTATION_LENGTH): Likewise.
2914 (ARRAY_NOTATION_STRIDE): Likewise.
2915 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2916 ARRAY_NOTATION_REF.
2917 (pp_c_expression): Likewise.
2918 * c.opt (flag_enable_cilkplus): New flag.
2919 * array-notation-common.c: New file.
2920
f7716d57
JJ
29212013-05-14 Jakub Jelinek <jakub@redhat.com>
2922
2923 PR c++/57274
2924 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2925
a5e0cd1d
MG
29262013-05-10 Marc Glisse <marc.glisse@inria.fr>
2927
2928 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2929 vectors.
2930
f6bc1c4a
HS
29312013-05-07 Han Shen <shenhan@google.com>
2932
2933 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2934
3f12f6e9
SKS
29352013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2936
2937 * c-common.c (check_user_alignment): Emit error for negative values.
2938
61949153
PC
29392013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2940
2941 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2942
e93e18e9
PC
29432013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2944
2945 * c-cppbuiltin.c (c_cpp_builtins): Do not define
2946 __GXX_EXPERIMENTAL_CXX1Y__.
2947
44d90fe1
PC
29482013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2949 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2950
2951 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2952 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2953 to simply use OPT_Wpointer_arith.
2954 (c_sizeof_or_alignof_type): Likewise.
2955
13f39b2e
PC
29562013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2957
2958 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2959
4b84d650
JJ
29602013-04-12 Jakub Jelinek <jakub@redhat.com>
2961
2962 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2963 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2964 specifiers.
2965
fb037b5d
SB
29662013-04-07 Steven Bosscher <steven@gcc.gnu.org>
2967
2968 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2969
4e856798
PC
29702013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
2971
2972 * c-common.c (pointer_int_sum): Remove dead code.
2973
4b1baac8
RS
29742013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2975
2976 PR middle-end/56524
2977 * c-common.c (handle_optimize_attribute): Don't call
2978 save_optabs_if_changed.
2979
0b50e654
JJ
29802013-03-05 Jakub Jelinek <jakub@redhat.com>
2981
2982 PR middle-end/56461
2983 * c-pch.c (pch_init): Free target_validity at the end.
2984
48c41403
JJ
29852013-03-04 Jakub Jelinek <jakub@redhat.com>
2986
2987 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2988
e664c61c
KS
29892013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2990 Jakub Jelinek <jakub@redhat.com>
2991
2992 PR sanitizer/56454
2993 * c-common.c (handle_no_sanitize_address_attribute): New function.
2994 (c_common_attribute_table): Add no_sanitize_address attribute.
2995 (handle_no_address_safety_analysis_attribute): Add
2996 no_sanitize_address attribute, not no_address_safety_analysis
2997 attribute.
2998
a475fd3d 29992013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
3000
3001 PR target/52555
3002 * c-common.c (handle_optimize_attribute): Call
3003 save_optabs_if_changed.
3004
f6007d99
JJ
30052013-02-18 Jakub Jelinek <jakub@redhat.com>
3006 Steven Bosscher <steven@gcc.gnu.org>
3007
3008 PR pch/54117
3009 * c-opts.c (c_common_post_options): If debug info is enabled
3010 and non-dwarf*, refuse to load PCH files and when writing PCH
3011 file warn.
3012
cf35e2b1
JJ
30132013-02-05 Jakub Jelinek <jakub@redhat.com>
3014
3015 PR middle-end/56167
3016 * c-common.c (handle_error_attribute): Fix condition.
3017
32887460
JJ
30182013-01-30 Jakub Jelinek <jakub@redhat.com>
3019
3020 PR c++/55742
3021 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
3022
5af057d8
JM
30232013-01-18 Jason Merrill <jason@redhat.com>
3024
3025 PR target/54908
3026 * c.opt (-fextern-tls-init): New.
3027 * c-opts.c (c_common_post_options): Handle it.
3028
cc83c823
JJ
30292013-01-09 Jakub Jelinek <jakub@redhat.com>
3030
3031 PR c/48418
3032 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
3033 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
3034 and is either negative or bigger or equal to type precision
3035 of the first operand.
3036
a859517f
MP
30372012-12-03 Marek Polacek <polacek@redhat.com>
3038
3039 PR c/55570
3040 * c-common.c (check_user_alignment): Swap order of tests,
3041 check TREE_CODE first.
3042
2d7aa578
ESR
30432012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
3044
3045 PR c++/52654
3046 * c-common.h (overflow_type): New enum.
3047 (build_userdef_literal): Add overflow_type argument.
3048 (tree_userdef_literal): Add overflow_type.
3049 (USERDEF_LITERAL_OVERFLOW): New access macro.
3050 * c-common.c (build_userdef_literal): Add overflow_type
3051 argument.
3052 * c-lex.c (c_lex_with_flags): Add overflow_type to
3053 build_userdef_literal calls.
3054 (interpret_integer, interpret_float): Add overflow_type argument.
3055
cc3c4f62
RB
30562012-11-28 Richard Biener <rguenther@suse.de>
3057
3058 PR c/35634
3059 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3060 here and use a type with proper overflow behavior for types that would
3061 need to be promoted for the arithmetic.
3062
77bc5132
JJ
30632012-11-23 Jakub Jelinek <jakub@redhat.com>
3064
3065 PR sanitizer/55435
3066 * c-common.c (handle_no_address_safety_analysis_attribute): New
3067 function.
3068 (c_common_attribute_table): Add no_address_safety_analysis.
3069
5dc99c46
SB
30702012-11-16 Simon Baldwin <simonb@google.com>
3071
3072 * c.opt: Add f[no-]canonical-system-headers.
3073 * c-opts.c (c_common_handle_option): Handle
3074 OPT_fcanonical_system_headers.
3075
a4a0016d
ESR
30762012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
3077
3078 PR c++/54413
3079 * c-opts.c (c_common_handle_option): Set new flags.
3080 * c.opt: Describe new flags.
3081
7dbb85a7
JM
30822012-11-09 Jason Merrill <jason@redhat.com>
3083
3084 * c.opt (Wabi-tag): New.
3085
ad7bac31
AK
30862012-11-09 Andi Kleen <ak@linux.intel.com>
3087
3088 PR 55139
3089 * c-common.c (get_atomic_generic_size): Mask with
3090 MEMMODEL_MASK
3091
7332899a
MLI
30922012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3093
3094 PR c/53063
3095 * c.opt (Wformat): Make it Alias Wformat=1.
3096 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
3097 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
3098 LangEnabledBy.
3099 (Wformat=): RejectNegative. Use LangEnabledBy.
3100 (Wnonnull): Use LangEnabledBy.
3101 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
3102 * c-format.c (set_Wformat): Delete.
3103 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
3104 (maybe_read_dollar_number): Likewise.
3105 (avoid_dollar_number): Likewise.
3106 (finish_dollar_format_checking): Likewise.
3107 (check_format_info): Likewise.
3108 (check_format_info_main): Likewise.
3109 (check_format_types): Likewise.
3110 (format_type_warning): Likewise.
3111 * c-common.c (int): Likewise.
3112 (check_function_sentinel): Likewise.
3113 * c-common.h (warn_format,set_Wformat): Do not declare here.
3114
34a180a6
MLI
31152012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3116
3117 PR c/53063
3118 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
3119 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
3120 Use LangEnabledBy.
3121 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
3122 common.opt.
3123 (Wvariadic-macros): Init(1).
3124 * c-opts.c (c_common_handle_option): Do not handle them
3125 explicitly.
3126 (c_common_post_options): Likewise.
3127 (sanitize_cpp_opts): warn_unused_macros is now
3128 cpp_warn_unused_macros.
3129 (push_command_line_include): Likewise.
3130 * c-common.c (warn_unknown_pragmas): Do not define.
3131 * c-common.h (warn_unknown_pragmas): Do not declare.
3132
3f46d6a5
MLI
31332012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3134
3135 PR c/51294
3136 * c-common.c (conversion_warning): Handle conditional expressions.
3137
880661a4
JW
31382012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3139
3140 PR c++/54930
3141 * c.opt (Wreturn_local_addr): Define new option.
3142
4514a96b
JM
31432012-10-25 Jason Merrill <jason@redhat.com>
3144
f14edc1a
JM
3145 * c.opt (Wvirtual-move-assign): New.
3146
4514a96b
JM
3147 * c.opt (Winherited-variadic-ctor): New.
3148
93100c6b
MG
31492012-10-25 Marc Glisse <marc.glisse@inria.fr>
3150
3151 PR c++/54427
3152 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
3153
1efcb8c6
JM
31542012-10-23 Joseph Myers <joseph@codesourcery.com>
3155
3156 * c-common.h (pch_cpp_save_state): Declare.
3157 * c-target.def (c_preinclude): New hook.
3158 * c-opts.c (done_preinclude): New.
3159 (push_command_line_include): Handle default preincluded header.
3160 (cb_file_change): Call pch_cpp_save_state when calling
3161 push_command_line_include.
3162 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
3163 (pch_cpp_save_state): New.
3164 (pch_init): Call pch_cpp_save_state conditionally, instead of
3165 calling cpp_save_state.
3166
4a0ae68e
MLI
31672012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3168
3169 PR c/53063
3170 PR c/40989
3171 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
3172 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
3173 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
3174 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
3175 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
3176 * c-opts.c (c_common_handle_option): Remove explicit handling from
3177 here.
3178 (c_common_post_options): Likewise.
3179
67e4210b
EB
31802012-10-18 Eric Botcazou <ebotcazou@adacore.com>
3181
3182 * c-ada-spec.c (LOCATION_COL): Delete.
3183 (compare_location): New function.
3184 (compare_node): Use it.
3185 (compare_comment): Likewise.
3186
65d4f2cd
MLI
31872012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3188
3189 PR c/53063
3190 PR c/40989
3191 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
3192 * c-opts.c (c_common_handle_option): Do not set them here. Add
3193 comment.
3194 (c_common_post_options): Likewise.
3195
909881cb
EB
31962012-10-16 Eric Botcazou <ebotcazou@adacore.com>
3197
3198 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
3199 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
3200 Remove POINTER_TYPE handling, add large unsigned handling and use
3201 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
3202
3a785c97
JJ
32032012-10-12 Jakub Jelinek <jakub@redhat.com>
3204
3205 PR c/54381
3206 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
3207 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
3208 locs and array of 3 trees instead of just single loc and single
3209 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
3210 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
3211 For *cmp* builtins that take two sources strings report warnings
3212 about first and second source, not about destination and source.
3213
5e54f81d
MG
32142012-10-12 Marc Glisse <marc.glisse@inria.fr>
3215
3216 PR c++/53055
3217 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
3218
f5b02f1e
EB
32192012-10-11 Eric Botcazou <ebotcazou@adacore.com>
3220
3221 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
3222 declaring something coming from another file.
3223
b46dbc6c
AC
32242012-10-10 Arnaud Charlet <charlet@adacore.com>
3225
f5b02f1e 3226 PR ada/54845
b46dbc6c
AC
3227 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
3228
5d9de0d0
PC
32292012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
3230
3231 PR c++/54194
3232 * c-common.c (warn_about_parentheses): Add location_t parameter;
3233 use EXPR_LOC_OR_LOC.
3234 * c-common.h: Update declaration.
3235
a212e43f
MG
32362012-10-09 Marc Glisse <marc.glisse@inria.fr>
3237
3238 PR c++/54427
3239 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
3240 more operations. Make error messages optional.
3241 * c-common.h (enum stv_conv): Moved from c-typeck.c.
3242 (scalar_to_vector): Declare.
3243
b1db7f91
JM
32442012-10-08 Jason Merrill <jason@redhat.com>
3245
3246 * c-common.c (c_common_reswords): Add thread_local.
3247
e28d52cf
DS
32482012-10-08 Dodji Seketeli <dodji@redhat.com>
3249
3250 PR c++/53528 C++11 attribute support
3251 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
3252 new functions.
3253 * c-common.c (check_cxx_fundamental_alignment_constraints): New
3254 static function.
3255 (handle_aligned_attribute): In choose strictest alignment
3256 among many. Use new check_cxx_fundamental_alignment_constraints.
3257 (handle_transparent_union_attribute): In c++11 attribute syntax,
3258 don't look through typedefs.
3259
3b78de56
AC
32602012-10-04 Arnaud Charlet <charlet@adacore.com>
3261
3262 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
3263 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
3264 out of dumpfile.h.
3265
6040bb5f
DC
32662012-09-25 Dehao Chen <dehao@google.com>
3267
3268 PR middle-end/54645
3b78de56 3269 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
3270 map when read in the pch.
3271
0b07a57e
AC
32722012-09-18 Arnaud Charlet <charlet@adacore.com>
3273
3274 * c-ada-spec.c: Style fixes.
3275
da5182be
TQ
32762012-09-18 Thomas Quinot <quinot@adacore.com>
3277
3278 * c.opt (-fada-spec-parent): Define new command line switch.
3279 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
3280 is specified, generate binding spec as a child of the specified unit.
3281
0ccb505d
PC
32822012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
3283 Manuel López-Ibáñez <manu@gcc.gnu.org>
3284
3285 PR c++/53210
3286 * c.opt ([Winit-self]): Enabled by -Wall in C++.
3287
c583af79
AC
32882012-08-23 Arnaud Charlet <charlet@adacore.com>
3289
3290 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
3291 for pointers, and add missing Convention C pragma.
3292 (print_ada_struct_decl): Add missing aliased keyword.
3293 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
3294
1a4049e7
JJ
32952012-08-17 Jakub Jelinek <jakub@redhat.com>
3296
3297 * c-common.c (sizeof_pointer_memaccess_warning): New function.
3298 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
3299 * c-opts.c (c_common_handle_option): Enable it for -Wall.
3300 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
3301 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
3302
70b5e7dc
RG
33032012-08-10 Richard Guenther <rguenther@suse.de>
3304
3305 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
3306
f8923f7e
SB
33072012-08-07 Steven Bosscher <steven@gcc.gnu.org>
3308
3309 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
3310 instead of separate pp_newline and pp_flush.
3311 (print_c_tree): Likewise.
3312
e45abe1f
RH
33132012-07-26 Richard Henderson <rth@redhat.com>
3314
3315 * c-common.c (handle_hot_attribute): Allow labels.
3316 (handle_cold_attribute): Likewise.
3317
332f1d24
JJ
33182012-07-20 Jakub Jelinek <jakub@redhat.com>
3319
3320 PR c++/28656
3321 * c-common.c (check_function_nonnull): Handle multiple nonnull
3322 attributes properly.
3323
7ee2468b
SB
33242012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3325
3326 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
3327 * c-ada-spec.c: Likewise.
3328 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
3329
ee7b28eb
SB
33302012-07-14 Steven Bosscher <steven@gcc.gnu.org>
3331
3332 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
3333 Remove code conditional on it.
3334
6bdf3519
SB
33352012-07-11 Steven Bosscher <steven@gcc.gnu.org>
3336
3337 * c-gimplify.c: Do not include basic-block.h.
3338 * c-common.c: Do not include linfuncs.h.
3339
532aafad
SB
33402012-07-08 Steven Bosscher <steven@gcc.gnu.org>
3341
3342 * c-common.h: Include tree.h.
3343
8d0d1915
JM
33442012-07-02 Jason Merrill <jason@redhat.com>
3345
3346 PR c++/53524
3347 * c-common.c (get_priority): Call default_conversion.
3348
fbc873ad
UB
33492012-07-01 Uros Bizjak <ubizjak@gmail.com>
3350
3351 * c-pch.c (c_common_write_pch): Remove unused variables.
3352
d4a10d0a
SB
33532012-06-29 Steven Bosscher <steven@gcc.gnu.org>
3354
3355 * cppspec.c: Moved from gcc/ to here.
3356
6f3a2e23
KT
33572012-06-27 Kai Tietz <ktietz@redhat.com>
3358
3359 PR preprocessor/37215
3360 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
3361
8ca92d04
SB
33622012-06-21 Steven Bosscher <steven@gcc.gnu.org>
3363
3364 * c-common.h (c_common_print_pch_checksum): Remove.
3365 * c-pch.c: Do not include output.h.
3366 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
3367 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
3368 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
3369 (struct c_pch_header): Remove.
3370 (get_ident): Update gpch version.
3371 (pch_init): Do not print executable_checksum to asm_out_file.
3372 Do not fail if there is no asm_out_file to read back from. Set
3373 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
3374 (c_common_write_pch): Verify that nothing was written to asm_out_file
3375 since pch_init was called. Do not write a c_pch_header, and do not
3376 copy from asm_out_file to the PCH.
3377 (c_common_read_pch): Do not read a c_pch_header, and do not restore
3378 the content of asm_out_file from the PCH.
3379 (c_common_print_pch_checksum): Remove.
3380 * c-opts.c (c_common_init): Print out executable_checksum directly.
3381
70f42967
SB
33822012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3383
3384 * c-target.def (objc_declare_unresolved_class_reference,
3385 objc_declare_class_definition): Add new hooks.
3386
a8781821
SB
33872012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3388
3389 * c-lex.c: Do not include output.h.
3390 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
3391 Remove uses of ASM_OUTPUT_IDENT.
3392
9e1a8dd1
RR
33932012-06-15 Marc Glisse <marc.glisse@inria.fr>
3394
3395 PR c++/51033
3396 * c-common.h (c_build_vec_perm_expr): Move decl here.
3397 * c-common.c (c_build_vec_perm_expr): Move definition
3398 here.
3399
6f07a821
SB
34002012-06-06 Steven Bosscher <steven@gcc.gnu.org>
3401
3402 * c.opt (fconserve-space): Turn into a no-op.
3403
9faeb493 34042012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
3405
3406 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
3407 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
3408 both the start and end of the function.
3409
a4b7d13c
SB
34102012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3411
3412 * c-common.c: Do not include output.h.
3413 * c-pragma.c: Likewise.
3414
c265f413
SA
34152012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3416
3417 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3418 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3419 (lang_decl_name): Handle namespace decls.
3420
be7a421e
SB
34212012-05-31 Steven Bosscher <steven@gcc.gnu.org>
3422
3423 * c-ada-spec.c: Do not include output.h.
3424 * c-semantics.c: Likewise.
3425
65de6659
JM
34262012-05-29 Joseph Myers <joseph@codesourcery.com>
3427
3428 * c-common.c: Fix typo.
3429
ca5f4331
MM
34302012-05-29 Michael Matz <matz@suse.de>
3431
3432 * c-common.h (c_expand_decl): Remove prototype.
3433
4f7f7aca
MLI
34342012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3435
3436 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3437 * c-opts.c (c_common_handle_option): Remove code handling
3438 warn_missing_braces.
3439
4a792f9b
PC
34402012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
3441
3442 PR c++/25137
3443 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3444 -Wmissing_braces.
3445
650dc14a
DS
34462012-05-22 Dodji Seketeli <dodji@redhat.com>
3447
3448 PR c++/53322
3449 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3450
9b095bf1
MLI
34512012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3452
3453 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3454 * c-opts.c (c_common_handle_option): Do not handle explicitly
3455 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3456
0b2c4be5
DS
34572012-05-16 Dodji Seketeli <dodji@redhat.com>
3458
3459 PR preprocessor/7263
3460 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
3461 to cpp_classify_number. For diagnostics, use the precise location
3462 instead of the global input_location.
3463
a1bde5af
PC
34642012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3465
d02924ef 3466 PR c++/11856
a1bde5af
PC
3467 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3468
d1ede5f4
BS
34692012-05-14 Bernd Schmidt <bernds@codesourcery.com>
3470
a1bde5af 3471 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 3472
f2bc201f
MLI
34732012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3474
3475 PR 53063
3476 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3477 Wreorder): Use LangEnabledBy.
3478 * c-opts.c (c_common_handle_option): Do not enable them
3479 explicitly. Call lang-specific generated functions.
3480 (c_common_post_options): Do not set them here.
3481
95744782
MLI
34822012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3483
3484 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3485 Wmissing-field-initializers,Wmissing-parameter-type,
3486 Wold-style-declaration,Woverride-init): Use EnabledBy.
3487 * c-opts.c (c_common_post_options): Do not set here explicitly.
3488
7d5a5747
MLI
34892012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3490
3491 PR 53063
3492 * c-opts.c (c_common_handle_option): Use handle_generated_option
3493 to enable sub-options.
3494
5a3c9cf2
PC
34952012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
3496
3497 PR c++/53158
3498 * c-common.c (warnings_for_convert_and_check): Use warning_at.
3499
3ac8781c
RG
35002012-05-10 Richard Guenther <rguenther@suse.de>
3501
3502 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3503 adjust commentary about TYPE_IS_SIZETYPE types.
3504
1e537948
MLI
35052012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3506
3507 PR c++/53261
3508 * c-common.c (warn_logical_operator): Check that argument of
3509 integer_zerop is not NULL.
3510
f2c4a785
MLI
35112012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3512
3513 PR c/43772
3514 * c-common.c (warn_logical_operator): Do not warn if either side
3515 is already true or false.
3516
50f305ca
MLI
35172012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3518
3519 PR c/51712
3520 * c-common.c (expr_original_type): New.
3521 (shorten_compare): Do not warn for enumeration types.
3522
0c3641b0
MLI
35232012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3524
3525 * c.opt (fpermissive): Add Var(flag_permissive).
3526
7edaa4d2
MG
35272012-04-30 Marc Glisse <marc.glisse@inria.fr>
3528
3529 PR c++/51033
3530 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3531 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3532
b9c8da34
DS
35332012-04-30 Dodji Seketeli <dodji@redhat.com>
3534
3535 Add -Wvarargs option
3536 * c.opt (Wvarargs): Define new option.
3537
e6c69da0
MLI
35382012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3539
3540 * c-common.c (check_function_arguments): Replace
3541 Wmissing-format-attribute with Wsuggest-attribute=format.
3542
90137d8f
MLI
35432012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3544
3545 * c.opt (Wsuggest-attribute=format): New. Alias of
3546 Wmissing-format-attribute.
3547 * c-format.c (decode_format_type): Replace
3548 Wmissing-format-attribute with Wsuggest-attribute=format.
3549 (check_function_format): Likewise.
3550
9faeb493 35512012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
3552
3553 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3554 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3555 * c.opt: Add Wliteral-suffix.
3556
c1771a20
MLI
35572012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3558
3559 PR c/44774
3560 * c.opt (Wpedantic): New.
3561 (pedantic): Alias Wpedantic.
3562 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3563 (c_common_post_options): Likewise.
3564 (sanitize_cpp_opts): Likewise.
3565 * c-lex.c (interpret_float): Likewise.
3566 * c-format.c (check_format_types): Likewise.
3567 * c-common.c (pointer_int_sum): Likewise.
3568 (c_sizeof_or_alignof_type): Likewise.
3569 (c_add_case_label): Likewise.
3570 (c_do_switch_warnings): Likewise.
3571 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3572
04b391c1
JM
35732012-04-15 Jason Merrill <jason@redhat.com>
3574
3575 PR c++/52818
3576 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3577 (C_STD_NAME): Distinguish between C++98 and C++11.
3578
ac868f29
EB
35792012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3580
3581 PR target/52624
3582 * c-common.h (uint16_type_node): Rename into...
3583 (c_uint16_type_node): ...this.
3584 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3585 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3586
fd4116f4
MLI
35872012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3588
3589 * c-common.c (warn_if_unused_value): Move definition to here.
3590 * c-common.h (warn_if_unused_value): Move declaration to here.
3591
573ac65e
WB
35922012-03-23 William Bader <williambader@hotmail.com>
3593
3594 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3595
552b8185
JM
35962012-03-20 Jason Merrill <jason@redhat.com>
3597
3598 * c-common.h (enum cxx_dialect): Add cxx1y.
3599 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3600 test.
3601 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3602 * c-opts.c (c_common_post_options): Likewise.
3603 (set_std_cxx1y): New.
3604 (c_common_handle_option): Call it.
3605 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3606
04398fa8
PC
36072012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3608
3609 PR c++/14710
3610 * c.opt ([Wuseless-cast]): Add.
3611
d2a12ae7
RG
36122012-03-16 Richard Guenther <rguenther@suse.de>
3613
3614 * c-pretty-print.c (pp_c_initializer_list): Adjust.
3615
a12bf402
MLI
36162012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3617
3618 PR c++/44783
3619 * c.opt (ftemplate-backtrace-limit) Add.
3620
5c30094f
RO
36212012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3622
3623 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3624 handling.
3625 * c-pragma.c (handle_pragma_extern_prefix): Remove.
3626 (init_pragma): Don't register extern_prefix.
3627
21fa2faf
RG
36282012-03-12 Richard Guenther <rguenther@suse.de>
3629
3630 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3631 (builtin_type_for_size): Likewise.
3632
e3793c6f
JJ
36332012-02-13 Jakub Jelinek <jakub@redhat.com>
3634
3635 PR c++/52215
3636 * c-common.c (sync_resolve_params): Don't decide whether to convert
3637 or not based on TYPE_SIZE comparison, convert whenever arg_type
3638 is unsigned INTEGER_TYPE.
3639
93286335
PC
36402012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
3641
3642 PR c/52118
3643 * c.opt ([Wunused-local-typedefs]): Fix description.
3644
7a421706
MS
36452012-01-24 Mike Stump <mikestump@comcast.net>
3646
3647 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3648 exactly.
3649
ba9b1f11
RG
36502012-01-18 Richard Guenther <rguenther@suse.de>
3651
3652 * c-opts.c (c_common_post_options): Reset LTO flags if
3653 we are about to generate a PCH.
3654
465406be
PC
36552012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3656
3657 PR c++/51777
3658 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3659 use pp_unsigned_wide_integer.
3660
aee15221
RG
36612012-01-10 Richard Guenther <rguenther@suse.de>
3662
3663 PR middle-end/51806
3664 * c-opts.c (c_common_handle_option): Move -Werror handling
3665 to language independent code.
3666
5720c0dc
RG
36672012-01-05 Richard Guenther <rguenther@suse.de>
3668
3669 PR middle-end/51764
3670 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3671 from common.opt.
3672
73ac190a
PC
36732011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
3674
3675 PR c++/51316
3676 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3677 of array types with an unknown bound.
3678
48b0b196
JM
36792011-12-20 Joseph Myers <joseph@codesourcery.com>
3680
3681 * c-common.c (flag_isoc99): Update comment to refer to C11.
3682 (flag_isoc1x): Change to flag_isoc11.
3683 * c-common.h (flag_isoc99): Update comment to refer to C11.
3684 (flag_isoc1x): Change to flag_isoc11.
3685 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3686 C11.
3687 * c-opts.c (set_std_c1x): Change to set_std_c11.
3688 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3689 Call set_std_c11.
3690 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3691 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3692 * c.opt (std=c1x): Change to std=c11. Document as non-draft
3693 standard.
3694 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3695 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3696 (std=gnu1x): Make alias of std=gnu11.
3697
d58d6eb5
JM
36982011-12-19 Jason Merrill <jason@redhat.com>
3699
3700 PR c++/51228
3701 * c-common.c (handle_transparent_union_attribute): Check the first
3702 field if the type is complete.
3703
b3908fcc
JW
37042011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3705
3706 PR libstdc++/51365
3707 * c-common.c (RID_IS_FINAL): Add.
3708 * c-common.h (RID_IS_FINAL): Add.
3709
fea3ca91
IS
37102011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3711
3712 * c.opt (fgnu-runtime): Provide full description.
3713 (fnext-runtime): Likewise.
3714 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3715
62bad7cd
AM
37162011-11-28 Andrew MacLeod <amacleod@redhat.com>
3717
3718 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3719 predefines in one place. Add LOCK_FREE predefines.
3720 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3721 new func.
3722
c466c4ff
AM
37232011-11-24 Andrew MacLeod <amacleod@redhat.com>
3724
3725 PR c/51256
9faeb493 3726 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 3727 conditions
9faeb493
UB
3728 (resolve_overloaded_atomic_exchange,
3729 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
3730 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3731 error_mark_node for error conditions.
9faeb493 3732
a5952633
RG
37332011-11-08 Richard Guenther <rguenther@suse.de>
3734
3735 PR middle-end/51010
3736 c-family/
3737
0a35513e
AH
37382011-11-07 Richard Henderson <rth@redhat.com>
3739 Aldy Hernandez <aldyh@redhat.com>
3740 Torvald Riegel <triegel@redhat.com>
3741
3742 Merged from transactional-memory.
3743
3744 * c-common.c (handle_tm_wrap_attribute,
3745 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3746 (struct c_common_reswords): Added __transaction* keywords.
3747 (struct c_common_attribute_table): Added transaction* and tm_regparm
3748 attributes.
3749 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3750 masks.
3751 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3752 find_tm_attribute): Declare.
3753
6d87092d
JM
37542011-11-07 Jason Merrill <jason@redhat.com>
3755
3756 PR c++/35688
3757 * c-common.c, c-common.h: Revert yesterday's changes.
3758
8e7860a1
JM
37592011-11-06 Jason Merrill <jason@redhat.com>
3760
3761 PR c++/35688
3762 * c-common.c (decl_has_visibility_attr): Split out from...
3763 (c_determine_visibility): ...here.
3764 * c-common.h: Declare it.
3765
d19fa6b5
JM
37662011-11-06 Joseph Myers <joseph@codesourcery.com>
3767
3768 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3769 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3770 type.
3771 (check_user_alignment): New. Split out of
3772 handle_aligned_attribute. Disallow integer constants with
3773 noninteger types. Conditionally allow zero.
3774 (handle_aligned_attribute): Use check_user_alignment.
3775 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3776
86951993
AM
37772011-11-06 Andrew MacLeod <amacleod@redhat.com>
3778 Richard Henderson <rth@redhat.com>
3779
3780 Merged from cxx-mem-model.
3781
3782 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 3783 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
3784 parameters that are the same type size.
3785 (get_atomic_generic_size): New. Find size of generic
3786 atomic function parameters and do typechecking.
3787 (add_atomic_size_parameter): New. Insert size into parameter list.
3788 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3789 either __atomic_exchange_n or external library call.
9faeb493 3790 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 3791 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 3792 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
3793 __atomic_load_n or an external library call.
3794 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3795 __atomic_store_n or an external library call.
3796 (resolve_overloaded_builtin): Handle new __atomic builtins.
3797
cf9e9959
EB
37982011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3799
3800 PR c++/50608
3801 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3802 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3803 <INDIRECT_REF>: Return the argument.
3804 <ARRAY_REF>: Remove special code for negative offset.
3805 Call fold_build_pointer_plus instead of size_binop.
3806 (fold_offsetof): Remove STOP_REF argument and adjust.
3807 * c-common.h (fold_offsetof_1): Declare.
3808 (fold_offsetof): Remove STOP_REF argument.
3809
25339f10
JM
38102011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3811
3812 PR c++/50810
3813 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3814 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3815 Wnarrowing for C++0x and C++98.
3816 * c.opt ([Wnarrowing]): Update.
3817
89401152
PC
38182011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
3819
3820 PR c++/44277
3821 * c.opt: Add Wzero-as-null-pointer-constant.
3822
97e3ad20
JM
38232011-10-31 Jason Merrill <jason@redhat.com>
3824
15694fdd
JM
3825 * c.opt (-fdeduce-init-list): Off by default.
3826
97e3ad20
JM
3827 PR c++/50920
3828 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3829 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3830 and -Wc++11-compat.
3831 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3832
fb9120e3
RAV
38332011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3834
3835 PR c++/30066
3836 * c.opt (fvisibility-inlines-hidden): Description change.
3837
3ce4f9e4
ESR
38382011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
3839
3840 Implement C++11 user-defined literals.
3841 * c-common.c (build_userdef_literal): New.
3842 * c-common.def: New tree code.
3843 * c-common.h (tree_userdef_literal): New tree struct and accessors.
3844 * c-lex.c (interpret_float): Add suffix parm.
3845 (c_lex_with_flags): Build literal tokens.
3846
5f53c243
PC
38472011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3848
3849 PR c++/50841
3850 Revert:
3851 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3852
3853 PR c++/50810
3854 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3855 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3856 Wnarrowing for C++0x and C++98.
3857 * c.opt ([Wnarrowing]): Update.
3858
263734e1
PC
38592011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3860
3861 PR c++/50810
3862 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3863 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3864 Wnarrowing for C++0x and C++98.
3865 * c.opt ([Wnarrowing]): Update.
3866
d2e312d7
PC
38672011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3868
3869 PR c++/45385
3870 * c-common.c (conversion_warning): Remove code looking for
3871 artificial operands.
3872
d17687f6
DS
38732011-10-18 Dodji Seketeli <dodji@redhat.com>
3874
3875 PR bootstrap/50760
3876 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 3877 !NO_IMPLICIT_EXTERN_C.
d17687f6 3878
fc8396e9
PC
38792011-10-17 Michael Spertus <mike_spertus@symantec.com>
3880
3881 * c-common.c (c_common_reswords): Add __bases,
3882 __direct_bases.
3883 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3884
38852011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3886
3887 PR c++/50757
3888 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3889
847e697a
TT
38902011-10-15 Tom Tromey <tromey@redhat.com>
3891 Dodji Seketeli <dodji@redhat.com>
3892
3893 * c.opt (fdebug-cpp): New option.
3894 * c-opts.c (c_common_handle_option): Handle the option.
3895 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3896 output stream in parameter. Factorized from ...
3897 (maybe_print_line): ... this. Dump location debug information when
3898 -fdebug-cpp is in effect.
3899 (print_line_1): New static function. Takes an output stream in
3900 parameter. Factorized from ...
3901 (print_line): ... here. Dump location information when -fdebug-cpp
3902 is in effect.
3903 (scan_translation_unit): Dump location information when
3904 -fdebug-cpp is in effect.
3905
92582b75
TT
39062011-10-15 Tom Tromey <tromey@redhat.com>
3907 Dodji Seketeli <dodji@redhat.com>
3908
3909 * c.opt (ftrack-macro-expansion): New option. Handle it with and
3910 without argument.
3911 * c-opts.c (c_common_handle_option)<case
3912 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3913 cases. Handle -ftrack-macro-expansion with and without argument.
3914
46427374
TT
39152011-10-15 Tom Tromey <tromey@redhat.com>
3916 Dodji Seketeli <dodji@redhat.com>
3917
3918 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3919 (print_line, cb_define, do_line_change): Adjust to avoid touching
3920 the internals of struct line_map. Use the public API instead.
3921 * c-pch.c (c_common_read_pch): Likewise.
3922 * c-lex.c (fe_file_change): Likewise.
3923
fc8396e9
PC
39242011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
3925
3926 PR c++/17212
3927 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3928
39292011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
3930
3931 PR c++/33067
3932 * c-pretty-print.c (pp_c_floating_constant): Output
3933 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3934
e79983f4
MM
39352011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3936
3937 * c-common.c (def_builtin_1): Delete old interface with two
3938 parallel arrays to hold standard builtin declarations, and replace
3939 it with a function based interface that can support creating
3940 builtins on the fly in the future. Change all uses, and poison
3941 the old names. Make sure 0 is not a legitimate builtin index.
3942 * c-omp.c (c_finish_omp_barrier): Ditto.
3943 (c_finish_omp_taskwait): Ditto.
3944 (c_finish_omp_flush): Ditto.
3945
6637388f
TG
39462011-10-11 Tristan Gingold <gingold@adacore.com>
3947
3948 * c.opt: (fallow-parameterless-variadic-functions): New.
3949
3797cb21
DS
39502011-09-08 Dodji Seketeli <dodji@redhat.com>
3951
3952 PR c++/33255 - Support -Wunused-local-typedefs warning
3953 * c-common.h (struct c_language_function::local_typedefs): New
3954 field.
9faeb493
UB
3955 (record_locally_defined_typedef, maybe_record_typedef_use)
3956 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 3957 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
3958 (maybe_record_typedef_use)
3959 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
3960 * c.opt: Declare new -Wunused-local-typedefs flag.
3961
693ddb1b
EB
39622011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3963
3964 PR middle-end/50266
3965 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3966 computations.
3967
830c740f
RG
39682011-09-05 Richard Guenther <rguenther@suse.de>
3969
3970 * c-common.c (complete_array_type): Use ssize_int (-1) instead
3971 of integer_minus_one_node for empty array upper bounds.
3972
892a371f
DS
39732011-08-28 Dodji Seketeli <dodji@redhat.com>
3974
3975 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3976 it's the first time it's being called on this main TU.
3977
0e3fdb48
RB
39782011-08-24 Richard Guenther <rguenther@suse.de>
3979
3980 PR c/49396
3981 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3982
39832011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
3984
3985 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3986 defined in cpp_init_builtins and c_cpp_builtins.
3987
d4a83c10
JM
39882011-08-19 Joseph Myers <joseph@codesourcery.com>
3989
3990 * c-common.c (c_common_reswords): Add __builtin_complex.
3991 * c-common.h (RID_BUILTIN_COMPLEX): New.
3992
bbceee64
JM
39932011-08-18 Joseph Myers <joseph@codesourcery.com>
3994
3995 * c-common.c (c_common_reswords): Add _Noreturn.
3996 (keyword_is_function_specifier): Handle RID_NORETURN.
3997 * c-common.h (RID_NORETURN): New.
3998
0e3a99ae
AS
39992011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4000
4001 * c-common.c (unsafe_conversion_p): New function. Check if it is
4002 unsafe to convert an expression to the type.
4003 (conversion_warning): Adjust, use unsafe_conversion_p.
4004 * c-common.h (unsafe_conversion_p): New function declaration.
4005
20906c66
JJ
40062011-08-02 Jakub Jelinek <jakub@redhat.com>
4007
4008 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4009 (c_finish_omp_taskyield): New prototype.
4010 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4011 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4012 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
4013 or RHS1 have side-effects, evaluate those too in the right spot,
4014 if it is a decl and LHS is also a decl, error out if they
4015 aren't the same.
4016 (c_finish_omp_taskyield): New function.
4017 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4018 * c-pragma.c (omp_pragmas): Add taskyield.
4019 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4020 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4021 PRAGMA_OMP_CLAUSE_MERGEABLE.
4022
770e5a2e
DS
40232011-07-25 Dodji Seketeli <dodji@redhat.com>
4024
4025 * c-common.h (set_underlying_type): Remove parm name from
4026 declaration.
4027
1baae426
RG
40282011-07-25 Romain Geissler <romain.geissler@gmail.com>
4029
4030 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 4031
fcb21722
JM
40322011-07-22 Jason Merrill <jason@redhat.com>
4033
76f86d00
JM
4034 PR c++/49793
4035 * c.opt (Wnarrowing): New.
4036
3a636414
JM
4037 PR c++/30112
4038 * c-common.h: Declare c_linkage_bindings.
4039 * c-pragma.c (handle_pragma_redefine_extname): Use it.
4040
fcb21722
JM
4041 PR c++/49813
4042 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
4043 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
4044 as flag_isoc99 for 'restrict'.
4045 (pp_c_specifier_qualifier_list): Likewise for _Complex.
4046
02614448
ILT
40472011-07-21 Ian Lance Taylor <iant@google.com>
4048
4049 PR middle-end/49705
4050 * c-common.c (c_disable_warnings): New static function.
4051 (c_enable_warnings): New static function.
4052 (c_fully_fold_internal): Change local unused_p to bool. Call
4053 c_disable_warnings and c_enable_warnings rather than change
4054 c_inhibit_evaluation_warnings.
4055
34429675
JM
40562011-07-20 Jason Merrill <jason@redhat.com>
4057
4058 PR c++/6709 (DR 743)
4059 PR c++/42603 (DR 950)
4060 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
4061 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
4062 (CPP_DECLTYPE): New.
4063 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
4064
5d49b6a7
RG
40652011-07-19 Richard Guenther <rguenther@suse.de>
4066
4067 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
4068 * c-omp.c (c_finish_omp_for): Likewise.
4069
e84a58ff
EB
40702011-07-12 Eric Botcazou <ebotcazou@adacore.com>
4071
4072 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
4073 body on the next line.
4074
329af3c7
JM
40752011-07-08 Jason Merrill <jason@redhat.com>
4076
4063e61b
JM
4077 PR c++/45437
4078 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
4079
329af3c7
JM
4080 PR c++/49673
4081 * c-common.c (c_apply_type_quals_to_decl): Don't check
4082 TYPE_NEEDS_CONSTRUCTING.
4083
1a072294
RG
40842011-07-06 Richard Guenther <rguenther@suse.de>
4085
4086 * c-common.c (c_common_nodes_and_builtins):
4087 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
4088
fce5dddd
RG
40892011-07-05 Richard Guenther <rguenther@suse.de>
4090
4091 * c-common.c (c_common_nodes_and_builtins): Build all common
4092 tree nodes first.
4093
45d439ac
JJ
40942011-06-27 Jakub Jelinek <jakub@redhat.com>
4095
56300785
JJ
4096 * c-common.h (c_tree_chain_next): New static inline function.
4097
45d439ac
JJ
4098 * c-common.c (check_builtin_function_arguments): Handle
4099 BUILT_IN_ASSUME_ALIGNED.
4100
e0a8ecf2
AM
41012011-06-21 Andrew MacLeod <amacleod@redhat.com>
4102
4103 * c-common.c: Add sync_ or SYNC__ to builtin names.
4104 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
4105
41062011-06-20 Pierre Vittet <piervit@pvittet.com>
4107
4108 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
4109 handler.
4110 (gen_pragma_handler): New union.
4111 (internal_pragma_handler): New type.
4112 (c_register_pragma_with_data)
4113 (c_register_pragma_with_expansion_and_data): New functions.
4114
4115 * c-pragma.c (registered_pragmas, c_register_pragma_1)
4116 (c_register_pragma, c_register_pragma_with_expansion)
4117 (c_invoke_pragma_handler): Changed to work with
4118 internal_pragma_handler.
4119 (c_register_pragma_with_data)
4120 (c_register_pragma_with_expansion_and_data): New functions.
4121
677f3fa8
JM
41222011-06-14 Joseph Myers <joseph@codesourcery.com>
4123
4124 * c-common.c: Include common/common-target.h.
4125 (handle_section_attribute): Use
4126 targetm_common.have_named_sections.
4127 * c-cppbuiltin.c: Include common/common-target.h.
4128 (c_cpp_builtins): Use targetm_common.except_unwind_info.
4129
d7fc8c14
RG
41302011-06-10 Richard Guenther <rguenther@suse.de>
4131
4132 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
4133 to print a IDENTIFIER_NODE.
4134
10e48e39
RO
41352011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4136 Joseph Myers <joseph@codesourcery.com>
4137
4138 * c.opt (fbuilding-libgcc): New option.
4139 * c-cppbuiltin.c (c_cpp_builtins): Define
4140 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
4141
6976ae51
JM
41422011-06-07 Jason Merrill <jason@redhat.com>
4143
3ff60975
JM
4144 * c-common.c (max_tinst_depth): Lower default to 900.
4145
6976ae51
JM
4146 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
4147
009db074
RG
41482011-06-07 Richard Guenther <rguenther@suse.de>
4149
4150 * c-common.c (c_common_nodes_and_builtins): Do not set
4151 size_type_node or call set_sizetype.
4152
b4592b92
DS
41532011-06-07 Dodji Seketeli <dodji@redhat.com>
4154
4155 PR debug/49130
4156 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 4157 type when using pointer comparison to compare types.
b4592b92 4158
014ab419
JW
41592011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
4160
4161 * c.opt: Add -Wdelete-non-virtual-dtor.
4162 * c-opts.c (c_common_handle_option): Include it in -Wall.
4163
4f60111f
NF
41642011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4165
4166 PR bootstrap/49190
4167
4168 Revert:
4169 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4170
4171 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4172 not tree_common.
4173
4cc4f2f4
JJ
41742011-05-27 Jakub Jelinek <jakub@redhat.com>
4175
4176 PR c++/49165
4177 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
4178 C++ don't call c_common_truthvalue_conversion on void type arms.
4179
38e01f9e
NF
41802011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4181
4182 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
4183 (stmt_list_stack): Define.
4184 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
4185 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
4186
92e948a8
NF
41872011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4188
4189 * c-common.c (warning_candidate_p): Check for BLOCKs.
4190
a2fc3e63
NF
41912011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4192
4193 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4194 not tree_common.
4195
0957c029
JJ
41962011-05-25 Jakub Jelinek <jakub@redhat.com>
4197
4198 * c-common.c (def_fn_type): Remove extra va_end.
4199
828fb3ba
JM
42002011-05-23 Jason Merrill <jason@redhat.com>
4201
4202 PR c++/48106
4203 * c-common.c (c_common_get_narrower): New.
4204 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
4205
dde05067
NF
42062011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4207
4208 * c-common.h (check_function_arguments): Tweak prototype of
4209 check_function_arguments.
4210 * c-common.c (check_function_arguments): Likewise. Adjust
4211 calls to check_function_nonnull, check_function_format, and
4212 check_function_sentinel.
4213 (check_function_sentinel): Take a FUNCTION_TYPE rather than
4214 separate attributes and typelist arguments. Use
4215 FOREACH_FUNCTION_ARGS to iterate over argument types.
4216
3c0d13bf
PC
42172011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4218
4219 * c-common.c (c_common_reswords): Reorder.
4220 * c-common.h (rid): Likewise.
4221
8242dd04
NF
42222011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4223
4224 * c-common.c (def_fn_type): Don't call build_function_type, call
4225 build_function_type_array or build_varargs_function_type_array
4226 instead.
4227 (c_common_nodes_and_builtins): Likewise.
4228
3d528853
NF
42292011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4230
4231 * c-common.c (c_add_case_label): Omit the loc argument to
4232 build_case_label.
4233 * c-common.h (build_case_label): Remove.
4234 * c-semantics.c (build_case_label): Remove.
4235
a04a722b
JM
42362011-05-05 Joseph Myers <joseph@codesourcery.com>
4237
4238 * c-objc.h (objc_start_method_definition): Update prototype.
4239 * stub-objc.c (objc_start_method_definition): Add extra parameter.
4240
e19a18d4
NF
42412011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4242
4243 * c-common.c (check_main_parameter_types): Reindent. Don't use
4244 TYPE_ARG_TYPES directly.
4245 (handle_nonnull_attribute): Likewise.
4246 (sync_resolve_params): Likewise.
4247 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
4248 to check_format_string.
4249 (handle_format_attribute): Likewise.
4250 (check_format_string): Take a function type to examine instead of
4251 a type list. Use a function_arg_iterator to step through argument
4252 types.
4253
c62c040f
RG
42542011-05-04 Richard Guenther <rguenther@suse.de>
4255
4256 * c-common.c (fix_string_type): Use size_int for index type bounds.
4257 (start_fname_decls): Do not pass NULL to build_int_cst.
4258 (c_init_attributes): Likewise.
4259 * c-lex.c (c_lex_with_flags): Likewise.
4260
c12ff9d8
JM
42612011-04-27 Jason Merrill <jason@redhat.com>
4262
4263 * c-common.c (make_tree_vector_from_list): New.
4264 * c-common.h: Declare it.
4265
304dfbe3
RG
42662011-04-26 Richard Guenther <rguenther@suse.de>
4267
4268 PR preprocessor/48248
4269 * c-ppoutput.c (maybe_print_line): Always optimize newlines
4270 for output size with -P.
4271
3c0d13bf
PC
42722011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4273
4274 * c-common.c (struct c_common_resword): Add __underlying_type.
4275 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
4276
04695783
JM
42772011-04-20 Jim Meyering <meyering@redhat.com>
4278
4279 * c-format.c (init_dollar_format_checking): Remove useless
4280 if-before-free.
4281
0dc33c3c
NP
42822011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4283
4284 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 4285 (objc_detect_field_duplicates): New.
0dc33c3c 4286 * stub-objc.c: Likewise.
3c0d13bf 4287
c59633d9
NP
42882011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4289
4290 * stub-objc.c (objc_declare_protocols): Renamed to
4291 objc_declare_protocol.
4292 * c-objc.h: Likewise.
3c0d13bf 4293
32dabdaf
NP
42942011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4295
4296 * stub-objc.c (objc_declare_class): Updated argument name.
4297
81f653d6
NF
42982011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4299
4300 * c-common.h (c_common_init_ts): Declare.
4301 * c-common.c (c_common_init_ts): Define.
4302
eb345401
NP
43032011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4304
4305 * c-objc.h (objc_build_message_expr): Updated prototype.
4306 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 4307
a358e188
MJ
43082011-04-12 Martin Jambor <mjambor@suse.cz>
4309
4310 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
4311 of cgraph_node.
4312
e6313a78
RG
43132011-04-11 Richard Guenther <rguenther@suse.de>
4314
4315 * c-common.c (complete_array_type): Build a range type of
4316 proper type.
4317
dcf0c47e
NF
43182011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4319
4320 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
4321 (handle_type_generic_attribute): Likewise.
4322
1ee44b26
JM
43232011-04-07 Jason Merrill <jason@redhat.com>
4324
4325 PR c++/48450
4326 * c-common.c (c_common_truthvalue_conversion): Don't ignore
4327 conversion from C++0x scoped enum.
4328
acce4e77
JM
43292011-04-06 Joseph Myers <joseph@codesourcery.com>
4330
4331 * c-target-def.h: New file.
4332 * c-target.def: New file.
4333 * c-target.h: New file.
4334 * c-common.c (targetcm): Don't define here.
4335 * c-common.h (default_handle_c_option): Declare.
4336 * c-format.c: Include c-target.h instead of target.h.
4337 * c-opts.c: Include c-target.h instead of target.h. Explicitly
4338 include tm.h.
4339 (default_handle_c_option): Move from targhooks.c.
4340
e2eefb55
JJ
43412011-03-29 Jakub Jelinek <jakub@redhat.com>
4342
4343 PR preprocessor/48248
4344 * c-ppoutput.c (print): Add src_file field.
4345 (init_pp_output): Initialize it.
4346 (maybe_print_line): Don't optimize by adding up to 8 newlines
4347 if map->to_file and print.src_file are different file.
4348 (print_line): Update print.src_file.
4349
ba78087b
KT
43502011-03-25 Kai Tietz <ktietz@redhat.com>
4351
4352 * c-ada-spec.c (compare_comment): Use filename_cmp
4353 instead of strcmp for filename.
4354
0edf1bb2
JL
43552011-03-25 Jeff Law <law@redhat.com>
4356
adfac8df 4357 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 4358
c7dc8804
JM
43592011-03-25 Jason Merrill <jason@redhat.com>
4360
4361 * c.opt: Add -std=c++03.
4362
d1d879b1
EB
43632011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4364
4365 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
4366
62d784f7
KT
43672011-03-17 Kai Tietz
4368
4369 PR target/12171
5050afdf
KT
4370 * c-pretty-print.c (pp_c_specifier_qualifier_list):
4371 Display allowed attributes for function pointer types.
4372 (pp_c_attributes_display): New function to display
4373 attributes having affects_type_identity flag set to true.
4374 * c-pretty-print.h (pp_c_attributes_display): New prototype.
4375
62d784f7
KT
4376 * c-common.c (c_common_attribute_table):
4377 Add new element.
4378 (c_common_format_attribute_table): Likewise.
4379
82d37118
JM
43802011-03-18 Jason Merrill <jason@redhat.com>
4381
49a000c3
JM
4382 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
4383 * c-common.h: Don't declare it here.
4384 * c-common.c: Or define it here.
4385 * c-opts.c (c_common_handle_option): Or set it here.
4386
82d37118
JM
4387 PR c++/35315
4388 * c-common.c (handle_transparent_union_attribute): Don't
4389 make a duplicate type in C++.
4390
17bc631c
JM
43912011-03-15 Jason Merrill <jason@redhat.com>
4392
4393 * c-common.c (max_constexpr_depth): New.
4394 * c-common.h: Declare it.
4395 * c-opts.c (c_common_handle_option): Set it.
4396 * c.opt (fconstexpr-depth): New option.
4397
1b9b91a6
JM
43982011-03-11 Jason Merrill <jason@redhat.com>
4399
f231b5ff
JM
4400 * c-common.c (attribute_takes_identifier_p): Add missing const.
4401
1b9b91a6
JM
4402 PR c++/46803
4403 * c-common.c (attribute_takes_identifier_p): Assume that an
4404 unknown attribute takes an identifier.
4405
a19e4d44
NF
44062011-03-07 Nathan Froyd <froydnj@codesourcery.com>
4407
4408 PR c/47786
4409 * c-common.c (c_type_hash): Call list_length instead of iterating
4410 through DECL_CHAIN. Rename 'i' to 'n_elements'.
4411
982d62f6
JJ
44122011-02-19 Jakub Jelinek <jakub@redhat.com>
4413
4414 PR c/47809
4415 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4416
0a256240
NP
44172011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4418
4419 * c.opt (fobjc-abi-version=) New.
4420 (fobjc-nilcheck): New.
4421
ba9e6dd5
NF
44222011-02-03 Nathan Froyd <froydnj@codesourcery.com>
4423
4424 PR c++/46890
4425 * c-common.h (keyword_is_decl_specifier): Declare.
4426 * c-common.c (keyword_is_decl_specifier): Define.
4427 (keyword_is_function_specifier): New function.
4428
7273813a
JJ
44292011-01-26 Jakub Jelinek <jakub@redhat.com>
4430
4431 PR c/47473
4432 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4433 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4434 REAL_TYPE.
4435
908ef79b
AC
44362011-01-26 Arnaud Charlet <charlet@adacore.com>
4437
4438 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4439
237e9384
JJ
44402011-01-26 Jakub Jelinek <jakub@redhat.com>
4441
4442 PR pch/47430
4443 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4444 after init_c_lex if pch_file is set.
4445
47ea1edf
DK
44462011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
4447
d4dba752 4448 PR c++/43601
47ea1edf
DK
4449 * c.opt (-fkeep-inline-dllexport): New switch.
4450
2aa9c6ae
RG
44512011-01-12 Richard Guenther <rguenther@suse.de>
4452
4453 PR middle-end/32511
4454 * c-common.c (handle_weak_attribute): Warn instead of error
4455 on declaring an inline function weak.
4456
7bd11157
TT
44572011-01-05 Tom Tromey <tromey@redhat.com>
4458
4459 * c-common.h (lvalue_error): Update.
4460 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
4461 not error.
4462
0e66e494 44632010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 4464
b4f588c4
NP
4465 PR objc/47075
4466 * c-objc.h (objc_finish_message_expr): Added argument to
4467 prototype.
4468
f4da8dce
NF
44692010-12-22 Nathan Froyd <froydnj@codesourcery.com>
4470
4471 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4472 Use prototype_p.
4473
46270f14
NP
44742010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
4475
4476 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 4477 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 4478
4816c593
NF
44792010-12-10 Nathan Froyd <froydnj@codesourcery.com>
4480
4481 * c-common.h (readonly_error): Declare.
4482 * c-common.c (readonly_error): Define.
4483
7a6daeb0
NF
44842010-12-09 Nathan Froyd <froydnj@codesourcery.com>
4485
4486 * c-common.h (invalid_indirection_error): Declare.
4487 * c-common.c (invalid_indirection_error): Define.
4488
892f6119
RG
44892010-12-03 Richard Guenther <rguenther@suse.de>
4490
4491 PR c/46745
4492 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4493 (pp_c_unary_expression): Likewise.
4494 (pp_c_expression): Likewise.
4495
6c39e757
NP
44962010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
4497
4498 * c-common.h (objc_finish_function): New.
4499 (objc_non_volatilized_type): Removed.
4500 (objc_type_quals_match): Removed.
4501 * stub-objc.c (objc_finish_function): New.
4502 (objc_non_volatilized_type): Removed.
4503 (objc_type_quals_match): Removed.
9faeb493 4504
7c475d11
JM
45052010-11-30 Joseph Myers <joseph@codesourcery.com>
4506
4507 * c-common.h (parse_optimize_options): Declare.
4508 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4509 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4510
71f3e391
JM
45112010-11-29 Joseph Myers <joseph@codesourcery.com>
4512
4513 * c-opts.c (check_deps_environment_vars): Use getenv instead of
4514 GET_ENVIRONMENT.
4515 * c-pch.c (O_BINARY): Don't define here.
4516 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4517
d5fabb58
JM
45182010-11-25 Joseph Myers <joseph@codesourcery.com>
4519
4520 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4521 targetm.except_unwind_info.
4522
299404a1
JM
45232010-11-23 Joseph Myers <joseph@codesourcery.com>
4524
4525 * c-opts.c (c_common_handle_option): Pass location to
4526 set_struct_debug_option.
4527
c98cd5bf
JM
45282010-11-23 Joseph Myers <joseph@codesourcery.com>
4529
4530 * c-common.c (visibility_options): Move from ../opts.c.
4531 * c-common.h (struct visibility_flags, visibility_options):
4532 Declare here.
4533 * c-opts.c (finish_options): Rename to c_finish_options.
4534 (c_common_init): Update call to finish_options.
4535
a9546771
NP
45362010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4537
4538 PR objc/34033
4539 * c-lex.c (lex_string): Check that each string in an Objective-C
4540 string concat sequence starts with either one or zero '@', and
4541 that there are no spurious '@' signs at the end.
4542
24a57808
JM
45432010-11-20 Joseph Myers <joseph@codesourcery.com>
4544
4545 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4546 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4547 HANDLE_PRAGMA_VISIBILITY.
4548 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4549 HANDLE_PRAGMA_VISIBILITY): Don't define.
4550 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4551
a9aa2c3a
NF
45522010-11-20 Nathan Froyd <froydnj@codesourcery.com>
4553
4554 PR c++/16189
4555 PR c++/36888
4556 PR c++/45331
4557 * c-common.h (keyword_begins_type_specifier): Declare.
4558 (keyword_is_storage_class_specifier): Declare.
4559 (keyword_is_type_qualifier): Declare.
4560 * c-common.c (keyword_begins_type_specifier): New function.
4561 (keyword_is_storage_class_specifier): New function.
4562 (keyword_is_type_qualifier): Declare.
4563
5386338c
JM
45642010-11-19 Joseph Myers <joseph@codesourcery.com>
4565
4566 PR c/46547
4567 * c-common.c (in_late_binary_op): Define.
4568 (c_common_truthvalue_conversion): Check in_late_binary_op before
4569 calling c_save_expr.
4570 * c-common.h (in_late_binary_op): Declare.
4571
69ccdddb
JM
45722010-11-19 Joseph Myers <joseph@codesourcery.com>
4573
4574 * c-opts.c (c_common_handle_option): Update calls to
4575 set_struct_debug_option.
4576
6b192a09
NP
45772010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
4578
4579 * c-common.h (objc_declare_protocols): Added additional argument.
4580 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 4581
fb52b50a
NF
45822010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4583
4584 PR c/33193
4585 * c-common.h (build_real_imag_expr): Declare.
4586 * c-semantics.c (build_real_imag_expr): Define.
4587
b37421c6
JM
45882010-11-17 Joseph Myers <joseph@codesourcery.com>
4589
4590 * c-opts.c (c_common_parse_file): Take no arguments.
4591 * c-common.h (c_common_parse_file): Update prototype.
4592
07078664
JJ
45932010-11-16 Jakub Jelinek <jakub@redhat.com>
4594
4595 PR c++/46401
4596 * c-common.c (warning_candidate_p): Don't track non-const calls
4597 or STRING_CSTs.
4598
c6a13190
ILT
45992010-11-15 Ian Lance Taylor <iant@google.com>
4600
4601 * c-lex.c (init_c_lex): Set macro debug callbacks if
4602 flag_dump_go_spec is set.
4603
925e8657
NP
46042010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4605
4606 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4607 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4608
bb0a9581
NF
46092010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4610
4611 PR preprocessor/45038
4612 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4613 dialects.
4614
c5fa0890
JM
46152010-11-12 Joseph Myers <joseph@codesourcery.com>
4616
4617 * c-common.h (c_family_lang_mask): Declare.
4618 * c-opts.c (c_family_lang_mask): Make extern.
4619 * c-pragma.c (handle_pragma_diagnostic): Use
4620 control_warning_option.
4621
a4d8c676
JM
46222010-11-12 Joseph Myers <joseph@codesourcery.com>
4623
4624 * c-common.c (parse_optimize_options): Update call to
4625 decode_options.
4626 * c-common.h (c_common_handle_option): Update prototype.
4627 * c-opts.c (c_common_handle_option): Take location_t parameter and
4628 pass it to other functions.
4629
f954bd2c
JM
46302010-11-11 Joseph Myers <joseph@codesourcery.com>
4631
4632 * c-opts.c (warning_as_error_callback): Remove.
4633 (c_common_initialize_diagnostics): Don't call
4634 register_warning_as_error_callback.
4635 (c_common_handle_option): Handle -Werror=normalized= here.
4636
d8a07487
JM
46372010-11-10 Joseph Myers <joseph@codesourcery.com>
4638
4639 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4640 in diagnostic.
4641 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4642 letter.
4643 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4644 Remove trailing '.' from diagnostics.
4645 * c.opt (Wwrite-strings_: Avoid '`' in help text.
4646
d5478783
JM
46472010-11-10 Joseph Myers <joseph@codesourcery.com>
4648
4649 * c-common.c (parse_optimize_options): Pass global_dc to
4650 decode_options.
4651 * c-opts.c (c_common_handle_option): Pass &global_options to
4652 set_Wstrict_aliasing.
4653 * c.opt (v): Don't mark Common or document here.
4654
91ebb981
IS
46552010-11-06 Iain Sandoe <iains@gcc.gnu.org>
4656
4657 PR target/44981
4658 * c-format.c (format_type): New type gcc_objc_string_format_type.
4659 (valid_stringptr_type_p): New.
4660 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 4661 (check_format_string): Pass expected type, use
91ebb981
IS
4662 valid_stringptr_type_p (), check that the format string types are
4663 consistent with the format specification.
4664 (decode_format_attr): Warn if NSString is used outside objective-c.
4665 (format_types_orig): Add NSString.
4666 (format_name): New.
4667 (format_flags): New.
4668 (check_format_arg): Handle format strings requiring an external parser.
4669 first_target_format_type: New variable.
4670 (handle_format_attribute): Set up first_target_format_type, pass the
4671 expected format arg string type to check_format_string().
4672 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
4673 * stub-objc.c (objc_string_ref_type_p): New.
4674 (objc_check_format_arg): New.
4675
bede2adc
NP
46762010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
4677
9faeb493 4678 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
4679 * c-common.h (objc_build_class_component_ref): New.
4680 * stub-objc.c (objc_build_class_component_ref): New.
4681
9a179d01
NP
46822010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4683
4684 * c.opt (Wproperty-assign-default): New option.
4685
22d8d616
NP
46862010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4687
4688 Implemented -fobjc-std=objc1 flag.
4689 * c.opt (fobjc-std=objc1): New option.
4690
2debdb4f
NP
46912010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
4692
4693 Implemented format and noreturn attributes for Objective-C methods.
4694 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4695 attribute for Objective-C methods.
4696
ec52b111
JM
46972010-10-31 Jason Merrill <jason@redhat.com>
4698
4699 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4700 EXPR_LOC_OR_HERE.
4701
46a88c12
NP
47022010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4703
4704 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4705 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4706 (objc_add_property_declaration): Removed arguments for copies and
4707 ivar.
4708 (objc_build_getter_call): Renamed to
4709 objc_maybe_build_component_ref.
4710 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4711 (objc_is_property_ref): New.
4712 * c-common.c (c_common_reswords): Removed copies and ivar.
4713 * stub-objc.c (objc_add_property_declaration): Removed arguments
4714 for copies and ivar.
4715 (objc_build_getter_call): Renamed to
4716 objc_maybe_build_component_ref.
4717 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4718 (objc_is_property_ref): New.
9faeb493 4719
1e4bf85b
AC
47202010-10-29 Arnaud Charlet <charlet@adacore.com>
4721 Matthew Gingell <gingell@adacore.com>
4722
4723 * c-ada-spec.c (separate_class_package): New function.
4724 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4725 name of their enclosing package.
4726 (print_ada_declaration): Use separate_class_package.
4727
81f0bab2
JM
47282010-10-27 Jason Merrill <jason@redhat.com>
4729
2b08f2c5
JM
4730 * c-common.c (c_common_reswords): Add __is_literal_type.
4731 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4732
81f0bab2
JM
4733 * c-common.c (check_case_value): Remove special C++ code.
4734
200290f2
NP
47352010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4736
4737 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4738 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4739 and RID_LAST_PATTR.
4740 (objc_add_property_declaration): Added additional arguments.
4741 (objc_property_attribute_kind): Removed.
4742 (objc_set_property_attr): Removed.
4743 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4744 copy and nonatomic.
4745 * stub-objc.c (objc_add_property_declaration): Added additional
4746 arguments.
4747 (objc_set_property_attr): Removed.
9faeb493 4748
f614132b
NP
47492010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4750
4751 * c-common.h (objc_add_property_variable): Renamed to
4752 objc_add_property_declaration. Added location argument.
4753 * stub-objc.c (objc_add_property_variable): Same change.
4754
b8a18805
NP
47552010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4756
4757 * c-common.h (objc_maybe_printable_name): New.
4758 * stub-objc.c (objc_maybe_printable_name): New.
4759
30cd1c5d
AS
47602010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4761 Andrew Pinski <pinskia@gmail.com>
4762
4763 * c-common.h (c_common_mark_addressable_vec): Declare.
4764 * c-common.c (c_common_mark_addressable_vec): New function.
4765
249a82c4
NP
47662010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4767
4768 * c-common.h (objc_set_method_type): Removed.
4769 (objc_add_method_declaration): Added boolean argument.
4770 (objc_start_method_definition): Same change.
4771 (objc_build_method_signature): Same change.
4772 * stub-objc.c (objc_set_method_type): Removed.
4773 (objc_add_method_declaration): Added boolean argument.
4774 (objc_start_method_definition): Same change.
4775 (objc_build_method_signature): Same change.
4776
977e30bc
NP
47772010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4778
4779 * c-common.h (finish_file): Removed.
4780 (objc_write_global_declarations): New.
4781 * c-opts.c (c_common_parse_file): Do not call finish_file.
4782 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 4783
da57d1b9
NP
47842010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4785
4786 Implemented parsing @synthesize and @dynamic for
4787 Objective-C/Objective-C++.
4788 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4789 (objc_add_synthesize_declaration): New.
4790 (objc_add_dynamic_declaration): New.
4791 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4792 * stub-objc.c (objc_add_synthesize_declaration): New.
4793 (objc_add_dynamic_declaration): New.
9faeb493 4794
0069111f
MM
47952010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4796
4797 PR target/46041
4798 * c-cppbuiltin.c (mode_has_fma): Move function here from
4799 builtins.c. Don't use the fma optab, instead just use the
4800 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4801 using -save-temps.
4802
e426b47b
NP
48032010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4804
4805 Merge from 'apple/trunk' branch on FSF servers.
0069111f 4806
e426b47b
NP
4807 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4808
9faeb493 4809 Radar 4330422
e426b47b
NP
4810 * c-common.h (objc_non_volatilized_type): New declaration
4811 * stub-objc.c (objc_non_volatilized_type): New stub.
4812
90fbfdc3
NP
48132010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4814
e426b47b 4815 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
4816
4817 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4818
9faeb493 4819 Radar 4133425
90fbfdc3 4820 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 4821 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 4822
c37d8c30
IS
48232010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4824
4825 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4826 * c-common.h (enum rid): Add RID_AT_PACKAGE.
4827 (objc_ivar_visibility_kind): New enum.
4828 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 4829 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
4830 visibility enum.
4831
1b1562a5
MM
48322010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4833
4834 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4835 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4836 has the appropriate fma builtins.
4837 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4838
668ea4b1
IS
48392010-10-14 Iain Sandoe <iains@gcc.gnu.org>
4840
1b1562a5 4841 merge from FSF apple 'trunk' branch.
668ea4b1 4842 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 4843
668ea4b1
IS
4844 Radars 4436866, 4505126, 4506903, 4517826
4845 * c-common.c (c_common_resword): Define @property and its attributes.
4846 * c-common.h: Define property attribute enum entries.
4847 (OBJC_IS_PATTR_KEYWORD): New.
4848 (objc_property_attribute_kind): New enum.
4849 Declare objc_set_property_attr (), objc_add_property_variable (),
4850 objc_build_getter_call () and objc_build_setter_call ().
4851 * stub-objc.c (objc_set_property_attr): New stub.
4852 (objc_add_property_variable): Likewise.
4853 (objc_build_getter_call): Likewise.
4854 (objc_build_setter_call) Likewise.
1b1562a5 4855
a1178b30
IS
48562010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4857
1b1562a5 4858 merge from FSF apple 'trunk' branch.
a1178b30
IS
4859 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4860
4861 Radar 3803157 (method attributes)
4862 * c-common.c (handle_deprecated_attribute): Recognize
4863 objc methods as valid declarations.
4864 * c-common.h: Declare objc_method_decl ().
1b1562a5 4865 * stub-objc.c (objc_method_decl): New stub.
a1178b30 4866
a75bfaa6
JM
48672010-10-08 Joseph Myers <joseph@codesourcery.com>
4868
4869 * c-common.c (parse_optimize_options): Call
4870 decode_cmdline_options_to_array_default_mask before
4871 decode_options. Update arguments to decode_options.
4872 * c-common.h (c_common_init_options_struct): Declare.
4873 * c-opts.c (c_common_init_options_struct): New. Split out from
4874 c_common_init_options.
4875
f05b9d93
NP
48762010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4877
4878 Implemented fast enumeration for Objective-C.
4879 * c-common.h (objc_finish_foreach_loop): New.
4880 * stub-objc.c (objc_finish_foreach_loop): New.
4881
1ebe4b4f
JM
48822010-10-05 Joseph Myers <joseph@codesourcery.com>
4883
4884 * c-common.h (struct diagnostic_context): Don't declare here.
4885 (c_common_initialize_diagnostics): Declare using
4886 diagnostic_context typedef.
4887 * c-opts.c (c_common_handle_option): Pass global_dc to
4888 handle_generated_option.
4889
d4d24ba4
JM
48902010-10-04 Joseph Myers <joseph@codesourcery.com>
4891
4892 * c-opts.c (c_common_handle_option): Pass &global_options_set to
4893 handle_generated_option.
4894
478a1c5b
ILT
48952010-10-03 Ian Lance Taylor <iant@google.com>
4896
4897 * c.opt (-fplan9-extensions): New option.
4898
82a1c2fe
FXC
48992010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4900
4901 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4902 Remove.
4903 (c_cpp_builtins): Call functions from cppbuiltin.c instead
4904 of duplicating code.
4905
92902b1b
IS
49062010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4907
4908 * c-common.c: Add two new entries for @optional
4909 and @required keywords.
4910
4911 merge from FSF 'apple/trunk' branch.
4912 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
4913
4914 Radar 4386773
4915 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4916 objective-c keywords.
4917 (objc_set_method_opt): New declaration.
4918 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 4919
46625112
JM
49202010-09-30 Joseph Myers <joseph@codesourcery.com>
4921
4922 * c-common.c (handle_optimize_attribute): Pass &global_options to
4923 cl_optimization_save and cl_optimization_restore.
4924 * c-opts.c (c_common_handle_option): Pass &global_options to
4925 handle_generated_option.
4926 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4927 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4928 &global_options to cl_optimization_restore.
4929
49b91f05
NP
49302010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4931
4932 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4933 Objective-C/Objective-C++ keywords.
4934
13ed556f 49352010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 4936
9faeb493
UB
4937 Merge from 'apple/trunk' branch on FSF servers.
4938
a6341d57
NP
4939 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4940
4941 Radar 4281748
4942 * c-common.h (objc_check_global_decl): New declaration.
4943 * stub-objc.c (objc_check_global_decl): New stub.
4944
f0036cca
JM
49452010-09-29 Joseph Myers <joseph@codesourcery.com>
4946
4947 * c.opt: Don't use VarExists.
4948
e3339d0f
JM
49492010-09-29 Joseph Myers <joseph@codesourcery.com>
4950
4951 * c-common.c (c_cpp_error): Update names of diagnostic_context
4952 members.
4953 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4954 cl_optimization members.
4955 * c-opts.c (warning_as_error_callback, c_common_handle_option,
4956 sanitize_cpp_opts, finish_options): Update names of cpp_options
4957 members.
4958
1973201f
NP
49592010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4960
4961 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
4962 (objc_is_reserved_word): Removed.
4963 * c-common.c: Updated comments.
4964 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4965 objc_is_reserved_word.
4966 * stub-objc.c (objc_is_reserved_word): Removed.
4967
f7e71da5
IS
49682010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4969
9faeb493 4970 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
4971 include attributes.
4972 (objc_start_method_definition): Likewise.
4973 (objc_build_keyword_decl): Likewise.
4974 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4975 (objc_start_method_definition): Likewise.
4976 (objc_build_keyword_decl): Likewise.
4977
c165dca7
IS
49782010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4979
4980 * c-common.h (objc_start_class_interface): Adjust prototype.
4981 (objc_start_category_interface): Likewise.
4982 (objc_start_protocol): Likewise.
4983 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4984 (objc_start_class_interface): Likewise.
4985 (objc_start_category_interface): Likewise.
4986
7458026b
ILT
49872010-09-27 Ian Lance Taylor <iant@google.com>
4988
4989 * c-common.c (c_common_attribute_table): Add no_split_stack.
4990 (handle_no_split_stack_attribute): New static function.
4991
b581b85b
NP
49922010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4993
9faeb493 4994 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
4995
4996 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
4997
9faeb493 4998 Radar 4229905
b581b85b
NP
4999 * c-common.h (objc_have_common_type): New declaration.
5000 * stub-objc.c (objc_have_common_type): New stub.
5001
5002 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5003
5004 Radar 4154928
5005 * c-common.h (objc_common_type): New prototype.
9faeb493 5006 * stub-objc.c (objc_common_type): New stub.
b581b85b 5007
46a4da10
JH
50082010-09-24 Jan Hubicka <jh@suse.cz>
5009
5010 * c-common.c (handle_leaf_attribute): New function.
5011 (struct attribute_spec c_common_att): Add leaf.
5012
e200444e
JM
50132010-09-22 Joseph Myers <joseph@codesourcery.com>
5014
5015 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5016 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5017 -dump, -dump=, -imacros, -imacros=, -include, -include=,
5018 -include-barrier, -include-directory, -include-directory=,
5019 -include-directory-after, -include-directory-after=,
5020 -include-prefix, -include-prefix=, -include-with-prefix,
5021 -include-with-prefix=, -include-with-prefix-after,
5022 -include-with-prefix-after=, -include-with-prefix-before,
5023 -include-with-prefix-before=, -no-integrated-cpp,
5024 -no-line-commands, -no-standard-includes, -no-warnings, -output,
5025 -output=, -pedantic, -pedantic-errors, -preprocess,
5026 -print-missing-file-dependencies, -trace-includes, -traditional,
5027 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
5028 -user-dependencies, -verbose, -write-dependencies,
5029 -write-user-dependencies, no-integrated-cpp, traditional): New.
5030
29a80ea6
NP
50312010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5032
5033 PR objc/23710
ac1fc2fc
NP
5034 * c-common.h (objc_start_method_definition): Return bool instead
5035 of void.
5036 * stub-objc.c (objc_start_method_definition): Return bool instead
5037 of void.
5038
50392010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5040
5041 PR objc/25965
5042 * c-common.h (objc_get_interface_ivars): New declaration.
5043 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 5044
de621752
ILT
50452010-09-15 Ian Lance Taylor <iant@google.com>
5046
5047 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 5048 messages. Remove period at end of warning message.
de621752 5049
ba885ec5
NS
50502010-09-09 Nathan Sidwell <nathan@codesourcery.com>
5051
5052 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
5053 (handle_alias_attribute): ... here.
5054 (handle_ifunc_attribute): New.
5055
c5ee1358
MM
50562010-09-06 Mark Mitchell <mark@codesourcery.com>
5057
5058 * c-common.h (do_warn_double_promotion): Declare.
5059 * c-common.c (do_warn_double_promotion): Define.
5060
0a0b3574
MM
50612010-09-05 Mark Mitchell <mark@codesourcery.com>
5062
5063 * c.opt (Wdouble-promotion): New.
5064
d1779886
JM
50652010-09-02 Joseph Myers <joseph@codesourcery.com>
5066
5067 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
5068 fvtable-thunks, fxref): Mark no longer supported in help text.
5069
2d2bd949
JM
50702010-09-02 Joseph Myers <joseph@codesourcery.com>
5071
5072 * c.opt (Wimport, fall-virtual, falt-external-templates,
5073 fdefault-inline, fenum-int-equiv, fexternal-templates,
5074 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
5075 fname-mangling-version-, fnew-abi, fnonnull-objects,
5076 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
5077 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
5078 applicable.
5079 (fhandle-exceptions): Mark with Alias and Warn.
5080 * c-opts.c (c_common_handle_option): Don't handle options marked
5081 as ignored.
5082
5de8299c
JM
50832010-09-02 Joseph Myers <joseph@codesourcery.com>
5084
5085 * c.opt (Wcomments, Werror-implicit-function-declaration,
5086 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
5087 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
5088 aliases.
5089 * c-common.c (option_codes): Use OPT_Wcomment instead of
5090 OPT_Wcomments.
5091 * c-opts.c (warning_as_error_callback, c_common_handle_option):
5092 Don't handle options marked as aliases.
5093
0ceb0201
RG
50942010-08-25 Richard Guenther <rguenther@suse.de>
5095
5096 * c-common.c (c_common_get_alias_set): Remove special
5097 handling for pointers.
5098
ac47786e
NF
50992010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5100
5101 * c-common.c: Use FOR_EACH_VEC_ELT.
5102 * c-gimplify.c: Likewise.
5103 * c-pragma.c: Likewise.
5104
c878765b
JM
51052010-08-16 Joseph Myers <joseph@codesourcery.com>
5106
5107 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
5108 RejectDriver.
5109 (MMDX): Change back to MMD. Mark NoDriverArg instead of
5110 RejectDriver.
5111 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
5112 instead of OPT_MDX and OPT_MMDX.
5113
603349bf
JM
51142010-08-16 Joseph Myers <joseph@codesourcery.com>
5115
5116 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
5117
644fa7ac
JM
51182010-08-12 Joseph Myers <joseph@codesourcery.com>
5119
5120 * c.opt (MD, MMD): Change to MDX and MMDX.
5121 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
5122
481e1176
JM
51232010-08-11 Joseph Myers <joseph@codesourcery.com>
5124
5125 * c-opts.c (c_common_handle_option): Call handle_generated_option
5126 instead of handle_option.
5127
ac8dc9f7
NF
51282010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5129
5130 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
5131 (maybe_apply_renaming_pragma): Delete unneeded declarations.
5132
4f8c876d
NF
51332010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5134
5135 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
5136 (pending_redefine_extname): Change type to a VEC.
5137 (add_to_renaming_pragma_list): Update for new type of
5138 pending_redefine_extname.
ac8dc9f7 5139 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 5140
3b0c690e
AC
51412010-08-04 Arnaud Charlet <charlet@adacore.com>
5142
5143 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
5144 visited.
5145 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
5146 decide whether a type has already been declared/seen.
5147 Do not go to the original type.
5148 (dump_nested_types): New parameter forward.
5149 Generate forward declaration if needed and mark type as visited.
5150 (print_ada_declaration): Call dump_nested_types if not already done.
5151 Mark types as visited.
5152
1890bccc
JM
51532010-08-03 Joseph Myers <joseph@codesourcery.com>
5154
5155 * c.opt (-print-pch-checksum): Remove option.
5156 * c-opts.c (c_common_handle_option): Don't handle
5157 OPT_print_pch_checksum.
5158
5f20c657
JM
51592010-07-27 Joseph Myers <joseph@codesourcery.com>
5160
5161 * c-common.h (c_common_handle_option): Update prototype and return
5162 value type.
5163 * c-opts.c (c_common_handle_option): Update prototype and return
5164 value type. Update calls to handle_option and
5165 enable_warning_as_error.
5166
f551f80c
JJ
51672010-07-27 Jakub Jelinek <jakub@redhat.com>
5168
5169 PR c/45079
5170 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
5171
61ff2bdc
JM
51722010-07-27 Joseph Myers <joseph@codesourcery.com>
5173
5174 * c-common.h (c_common_missing_argument): Remove.
5175 * c-opts.c (c_common_missing_argument): Remove.
5176 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
5177 idirafter, imacros, include, isysroot, isystem, iquote): Add
5178 MissingArgError.
5179 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5180
7a9bf9a4
JM
51812010-07-27 Joseph Myers <joseph@codesourcery.com>
5182
5183 * c-common.h (c_common_option_lang_mask,
5184 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
5185 New.
5186 (c_common_init_options): Update prototype.
5187 * c-opts.c (c_common_option_lang_mask): New.
5188 (c_common_initialize_diagnostics): Split out of
5189 c_common_init_options.
5190 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
5191 New.
5192 (c_common_init_options): Update prototype. Use decoded options in
5193 search for -lang-asm.
5194
910ad8de
NF
51952010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5196
5197 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5198 * c-format.c: Likewise.
5199
718f9c0f
MLI
52002010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5201
5202 * c-common.h: Include diagnostic-core.h. Error if already
5203 included.
5204 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
5205
4d451982
MLI
52062010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5207
adfac8df 5208 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
5209 Do not include expr.h
5210 (vector_mode_valid_p): Move here.
5211
119fe915
SB
52122010-06-21 DJ Delorie <dj@redhat.com>
5213
5214 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
5215 allow these pragmas anywhere.
5216
52172010-06-14 Jakub Jelinek <jakub@redhat.com>
5218
5219 PR bootstrap/44509
5220 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
5221 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
5222 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
5223 ggc_strdup instead of xstrdup.
5224
52252010-06-10 Jakub Jelinek <jakub@redhat.com>
5226
5227 * c-cppbuiltin.c: Include cpp-id-data.h.
5228 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
5229 (lazy_hex_fp_value): New function.
5230 (builtin_define_with_hex_fp_value): Provide definitions lazily.
5231
6662d794
MLI
52322010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5233
5234 * c-gimplify.c: Do not include tree-flow.h
5235
38f8b050
JR
52362010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
5237
5238 PR other/44034
5239 * c-common.c: Rename targetm member:
5240 targetm.enum_va_list -> targetm.enum_va_list_p
5241
9589f23e
AS
52422010-06-28 Anatoly Sokolov <aesok@post.ru>
5243
5244 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
5245
3b06d379
SB
52462010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5247
5248 * c-cppbuiltin.c: Do not include except.h.
5249
d166d4c3
AK
52502010-06-24 Andi Kleen <ak@linux.intel.com>
5251
9faeb493
UB
5252 * c-common.c (warn_for_omitted_condop): New.
5253 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 5254
70cb8be6
JM
52552010-06-21 Joseph Myers <joseph@codesourcery.com>
5256
5257 * c.opt (lang-objc): Remove.
5258 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
5259
a4c97feb
JR
52602010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
5261
5262 * c-opts.c: Include "tm_p.h".
5263
6e2f1956
JM
52642010-06-20 Joseph Myers <joseph@codesourcery.com>
5265
5266 * c-common.c (parse_optimize_options): Update call to
5267 decode_options.
5268
bc87224e
NF
52692010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5270
5271 * c-common.c (record_types_used_by_current_var_decl): Adjust for
5272 new type of types_used_by_cur_var_decl.
5273
b49cf425
JR
52742010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
5275
5276 PR bootstrap/44512
5277 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
5278 for C++ standard compliance.
5279
59f9c2ed
JM
52802010-06-16 Jason Merrill <jason@redhat.com>
5281
5282 * c.opt: Add -Wnoexcept.
5283
33766b66
RG
52842010-06-16 Richard Guenther <rguenther@suse.de>
5285
5286 PR c/44555
5287 * c-common.c (c_common_truthvalue_conversion): Remove
5288 premature and wrong optimization concering ADDR_EXPRs.
5289
eff7e30c
AC
52902010-06-15 Arnaud Charlet <charlet@adacore.com>
5291
5292 * c-ada-spec.c (dump_sloc): Remove column info.
5293 (is_simple_enum): New function.
5294 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
5295 enum types when relevant.
5296
6312e84d
MLI
52972010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5298
9faeb493 5299 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
5300 location.
5301
1cb42611
JM
53022010-06-10 Joseph Myers <joseph@codesourcery.com>
5303
5304 * c-opts.c (c_common_handle_option): Don't handle
5305 OPT_fshow_column.
5306
a9429e29
LB
53072010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5308
5309 * c-pragma.c (push_alignment): Use typed GC allocation.
5310 (handle_pragma_push_options): Likewise.
5311
5312 * c-common.c (parse_optimize_options): Likewise.
5313
5314 * c-common.h (struct sorted_fields_type): Add variable_size GTY
5315 option.
5316
5498f011
JM
53172010-06-07 Joseph Myers <joseph@codesourcery.com>
5318
5319 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
5320 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5321 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5322 flag_signed_bitfields, warn_strict_null_sentinel,
5323 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
5324 flag_gen_declaration, flag_no_gnu_keywords,
5325 flag_implement_inlines, flag_implicit_templates,
5326 flag_implicit_inline_templates, flag_optional_diags,
5327 flag_elide_constructors, flag_default_inline, flag_rtti,
5328 flag_conserve_space, flag_access_control, flag_check_new,
5329 flag_new_for_scope, flag_weak, flag_working_directory,
5330 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
5331 flag_enforce_eh_specs, flag_threadsafe_statics,
5332 flag_pretty_templates): Remove.
5333 * c-common.h (flag_preprocess_only, flag_nil_receivers,
5334 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
5335 flag_replace_objc_classes, flag_undef, flag_no_builtin,
5336 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5337 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5338 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
5339 flag_no_gnu_keywords, flag_implement_inlines,
5340 flag_implicit_templates, flag_implicit_inline_templates,
5341 flag_optional_diags, flag_elide_constructors, flag_default_inline,
5342 flag_rtti, flag_conserve_space, flag_access_control,
5343 flag_check_new, flag_new_for_scope, flag_weak,
5344 flag_working_directory, flag_use_cxa_atexit,
5345 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
5346 flag_threadsafe_statics, flag_pretty_templates,
5347 warn_strict_null_sentinel): Remove.
5348 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
5349 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
5350 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
5351 fimplicit-inline-templates, fimplicit-templates,
5352 flax-vector-conversions, fms-extensions, fnil-receivers,
5353 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
5354 frtti, fshort-double, fshort-enums, fshort-wchar,
5355 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
5356 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
5357 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
5358 gen-decls, undef): Use Var.
5359 (fdefault-inline, foptional-diags): Document as doing nothing.
5360 * c-opts.c (c_common_handle_option): Remove cases for options now
5361 using Var. Mark ignored options as such.
5362
39dabefd
SB
53632010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5364
9faeb493 5365 * c-common.c: Moved to here from parent directory.
39dabefd
SB
5366 * c-common.def: Likewise.
5367 * c-common.h: Likewise.
5368 * c-cppbuiltin.c: Likewise.
5369 * c-dump.c: Likewise.
5370 * c-format.c: Likewise.
5371 * c-format.h : Likewise.
5372 * c-gimplify.c: Likewise.
5373 * c-lex.c: Likewise.
5374 * c-omp.c: Likewise.
5375 * c.opt: Likewise.
5376 * c-opts.c: Likewise.
5377 * c-pch.c: Likewise.
5378 * c-ppoutput.c: Likewise.
5379 * c-pragma.c: Likewise.
5380 * c-pragma.h: Likewise.
5381 * c-pretty-print.c: Likewise.
5382 * c-pretty-print.h: Likewise.
5383 * c-semantics.c: Likewise.
5384 * stub-objc.c: Likewise.
5385
5386 * c-common.c: Include gt-c-family-c-common.h.
5387 * c-pragma.c: Include gt-c-family-c-pragma.h.
5388\f
5624e564 5389Copyright (C) 2010-2015 Free Software Foundation, Inc.
39dabefd
SB
5390
5391Copying and distribution of this file, with or without modification,
5392are permitted in any medium without royalty provided the copyright
5393notice and this notice are preserved.