]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
re PR lto/65378 (Tweak to wording of -Wodr message)
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
a1661b90
MP
12015-06-08 Marek Polacek <polacek@redhat.com>
2
3 PR c/66415
4 * c-format.c (location_from_offset): Return LOC if LINE is null.
5
d7438551
AH
62015-06-05 Aldy Hernandez <aldyh@redhat.com>
7
8 * c-common.h (c_parse_final_cleanups): New prototype.
9 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
10
ecb9f223
AM
112015-06-04 Andrew MacLeod <amacleod@redhat.com>
12
13 * array-notation-common.c: Adjust includes for restructured coretypes.h.
14 * c-ada-spec.c: Likewise.
15 * c-cilkplus.c: Likewise.
16 * c-common.c: Likewise.
17 * c-common.h: Likewise.
18 * c-cppbuiltin.c: Likewise.
19 * c-dump.c: Likewise.
20 * c-format.c: Likewise.
21 * c-gimplify.c: Likewise.
22 * c-indentation.c: Likewise.
23 * c-lex.c: Likewise.
24 * c-omp.c: Likewise.
25 * c-opts.c: Likewise.
26 * c-pch.c: Likewise.
27 * c-ppoutput.c: Likewise.
28 * c-pragma.c: Likewise.
29 * c-pretty-print.c: Likewise.
30 * c-semantics.c: Likewise.
31 * c-ubsan.c: Likewise.
32 * cilk.c: Likewise.
33 * stub-objc.c: Likewise.
34
6ac48155
DM
352015-06-02 David Malcolm <dmalcolm@redhat.com>
36
37 PR c/66220:
38 * c-indentation.c (should_warn_for_misleading_indentation): Use
39 expand_location rather than expand_location_to_spelling_point.
40 Don't warn if the guarding statement is more indented than the
41 next/body stmts.
42
773ce42e
DM
432015-06-02 David Malcolm <dmalcolm@redhat.com>
44
45 * c-indentation.c (warn_for_misleading_indentation): Bail out
46 immediately if -Wmisleading-indentation isn't enabled.
47
4fef8379
ML
482015-06-01 Martin Liska <mliska@suse.cz>
49
50 * c-format.c (check_format_arg):Use new type-based pool allocator.
51 (check_format_info_main) Likewise.
52
1edfb384
EB
532015-05-31 Eric Botcazou <ebotcazou@adacore.com>
54
55 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
56 (has_nontrivial_methods): Likewise.
57
9677ef52
MP
582015-05-25 Marek Polacek <polacek@redhat.com>
59
60 * c-ubsan.c (ubsan_instrument_shift): Use type0.
61
fd5c817a
MP
622015-05-22 Marek Polacek <polacek@redhat.com>
63
64 PR c/47043
65 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
66
a2f45fe6 672015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
68
69 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
70 STACK_GROWS_DOWNWARD.
71
a2f45fe6 722015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
73
74 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
75 STACK_GROWS_DOWNWARD rather than if it is defined.
76
0fee2ac2
MLI
772015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
78
79 PR c/52952
80 * c-format.c (location_column_from_byte_offset): New.
81 (location_from_offset): New.
82 (struct format_wanted_type): Add offset_loc field.
83 (check_format_info): Move handling of location for extra arguments
84 closer to the point of warning.
85 (check_format_info_main): Pass the result of location_from_offset
86 to warning_at.
87 (format_type_warning): Pass the result of location_from_offset
88 to warning_at.
89
cf4ef6f7
MP
902015-05-20 Marek Polacek <polacek@redhat.com>
91
92 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
93
3a65ee74
MP
942015-05-20 Marek Polacek <polacek@redhat.com>
95
96 * c-ada-spec.c (dump_sloc): Use DECL_P.
97
21b634ae
MP
982015-05-20 Marek Polacek <polacek@redhat.com>
99
100 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
101 * c-common.c: Likewise.
102
0e50b624
DM
1032015-05-19 David Malcolm <dmalcolm@redhat.com>
104
105 * c-common.h (fe_file_change): Strengthen param from
106 const line_map * to const line_map_ordinary *.
107 (pp_file_change): Likewise.
108 * c-lex.c (fe_file_change): Likewise.
109 (cb_define): Use linemap_check_ordinary when invoking
110 SOURCE_LINE.
111 (cb_undef): Likewise.
112 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
113 invoking cb_file_change.
114 (c_finish_options): Likewise.
115 (push_command_line_include): Likewise.
116 (cb_file_change): Strengthen param "new_map" from
117 const line_map * to const line_map_ordinary *.
118 * c-ppoutput.c (cb_define): Likewise for local "map".
119 (pp_file_change): Likewise for param "map" and local "from".
120
fab27f52
MM
1212015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
122
123 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
124
2fe1d762
TV
1252015-05-18 Tom de Vries <tom@codesourcery.com>
126
127 * c-common.c (build_va_arg_1): New function.
128 (build_va_arg): Add address operator to va_list operand if necessary.
129
7a37fa90
MM
1302015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
131
132 PR c/48956
133 * c-common.c (int_safely_convertible_to_real_p): Define.
134 (unsafe_conversion_p): Check conversions involving complex types.
135 (conversion_warning): Add new warning message for conversions which
136 discard imaginary component.
137 * c-common.h: (enum conversion_safety): Add new enumerator for such
138 conversions.
139
3aa3c9fc
MP
1402015-05-14 Marek Polacek <polacek@redhat.com>
141
142 PR c/66066
143 PR c/66127
144 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
145 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
146 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
147 use it. If FOR_INT_CONST, require that all evaluated operands be
148 INTEGER_CSTs.
149
c3388e62
DM
1502015-05-12 David Malcolm <dmalcolm@redhat.com>
151
152 * c-common.h (warn_for_misleading_indentation): New prototype.
153 * c-indentation.c: New file.
154 * c.opt (Wmisleading-indentation): New option.
155
c7b38fd5
TV
1562015-05-12 Tom de Vries <tom@codesourcery.com>
157
158 PR tree-optimization/66010
159 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
160
381bf11e
JM
1612015-05-09 Jason Merrill <jason@redhat.com>
162
edff0c06
JM
163 * c-opts.c (c_common_post_options): Also clear
164 cpp_opts->cpp_warn_cxx11_compat.
165
129211bc
JM
166 * c-common.h (enum cxx_dialect): Add cxx_unset.
167 * c-common.c (cxx_dialect): Initialize to cxx_unset.
168 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
169
381bf11e
JM
170 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
171 (std=gnu++0x): Mark as Undocumented.
172 (std=gnu++1y): Add deprecated message.
173
fe191308
JM
1742015-05-08 Jason Merrill <jason@redhat.com>
175
765189ff
JM
176 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
177 * c-opts.c: Adjust.
178
fe191308
JM
179 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
180
755e528f
MP
1812015-05-08 Marek Polacek <polacek@redhat.com>
182
183 PR c/64918
184 * c.opt (Woverride-init-side-effects): New option.
185
0173bd2a
MP
1862015-05-07 Marek Polacek <polacek@redhat.com>
187
188 PR c/65179
189 * c-common.c (c_fully_fold_internal): Warn when left shifting a
190 negative value.
191 * c.opt (Wshift-negative-value): New option.
192 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
193 when -Wextra and C99/C++11 mode.
194
e0f0d3b9
MP
1952015-05-07 Marek Polacek <polacek@redhat.com>
196 Martin Uecker <uecker@eecs.berkeley.edu>
197
198 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
199 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
200
8243e2a9
JM
2012015-05-05 Jason Merrill <jason@redhat.com>
202
203 * c.opt (Wterminate): New.
204
577cd070
MP
2052015-04-30 Marek Polacek <polacek@redhat.com>
206
207 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
208 require that the non-constant be of a boolean type.
209
0373796b
JT
2102015-04-29 Josh Triplett <josh@joshtriplett.org>
211
e0f0d3b9
MP
212 * c-common.c (handle_section_attribute): Refactor to reduce
213 nesting and distinguish between error cases.
0373796b 214
716c0ba6
MP
2152015-04-29 Marek Polacek <polacek@redhat.com>
216
217 PR c/64610
218 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
219 with 0/1.
220
8848828b
JJ
2212015-04-29 Jakub Jelinek <jakub@redhat.com>
222
223 * c-common.h (omp_clause_mask): Unconditionally define as a class.
224 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
225 HOST_BITS_PER_WIDE_INT.
226
ecd0e562
TV
2272015-04-28 Tom de Vries <tom@codesourcery.com>
228
229 PR tree-optimization/65887
230 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
231
2a877204 2322015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 233 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
234
235 * c-ada-spec.c (in_function): Delete.
236 (dump_generic_ada_node): Do not change in_function and remove the
237 redundant code dealing with it.
238 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
239 (print_ada_methods): Output the static member functions in a nested
240 package after the regular methods as well as associated renamings.
241
4853031e
MP
2422015-04-24 Marek Polacek <polacek@redhat.com>
243
244 PR c/65830
245 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
246 and OPT_Wshift_count_overflow.
247
8c2b7f79
MP
248 PR c/63357
249 * c-common.c (warn_logical_operator): Warn if the operands have the
250 same expressions.
251
b8787813
MP
2522015-04-24 Marek Polacek <polacek@redhat.com>
253
254 PR c/61534
255 * c-common.c (warn_logical_operator): Bail if either operand comes
256 from a macro expansion.
257
8fba1830
BRF
2582015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
259
260 PR target/55143
261 * c-common.c (c_default_pointer_mode): Add definition.
262 * c-common.h (c_default_pointer_mode): Add declaration.
263
17958621
JJ
2642015-03-11 Jakub Jelinek <jakub@redhat.com>
265
266 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
267 on record_builtin_type argument.
268
7ccb1a11
JJ
2692015-03-10 Jakub Jelinek <jakub@redhat.com>
270
271 PR c/65120
272 * c-common.c (warn_logical_not_parentheses): Don't warn for
273 !x == 0 or !x != 0.
274
04fd785e
MP
2752015-03-07 Marek Polacek <polacek@redhat.com>
276
277 PR sanitizer/65280
278 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
279 before trying to figure out whether we have a flexible array member.
280
a4e26206
EB
2812015-03-06 Eric Botcazou <ebotcazou@adacore.com>
282 Jonathan Wakely <jwakely.gcc@gmail.com>
283
284 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
285
0d2489f4
EB
2862015-03-05 Eric Botcazou <ebotcazou@adacore.com>
287
288 PR ada/65319
289 * c-ada-spec.c (print_destructor): Remove obsolete code.
290
83ed54d7
EB
2912015-03-01 Eric Botcazou <ebotcazou@adacore.com>
292
293 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
294 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
295 DECL_TEMPLATE_RESULT emulations.
296 (dump_ada_template)): Add guard for TYPE_METHODS.
297
7631f0e2
MP
2982015-02-27 Marek Polacek <polacek@redhat.com>
299
300 PR c/65040
301 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
302
d1783ae5
KT
3032015-02-27 Kai Tietz <ktietz@redhat.com>
304
305 PR c/35330
306 * c-pragma.c (handle_pragma_weak): Do not try to create
307 weak/alias of declarations not being function, or variable
308 declarations.
309
56a9f6bc
TS
3102015-02-24 Thomas Schwinge <thomas@codesourcery.com>
311
312 PR libgomp/64625
313 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
314 Remove macros.
315 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
316
3d5cb23d
MP
3172015-02-16 Marek Polacek <polacek@redhat.com>
318
319 PR c/65066
320 * c-format.c (check_format_types): Handle null param.
321
fa008882
MP
3222015-02-13 Marek Polacek <polacek@redhat.com>
323
324 PR c/65040
325 * c-format.c (check_format_types): Don't warn about different
326 signedness if the original value is in the range of WANTED_TYPE.
327
785f21af
JM
3282015-02-12 Jason Merrill <jason@redhat.com>
329
330 PR c++/64956
331 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
332 to the current highest version.
333 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
334
4886ec8e
JJ
3352015-02-04 Jakub Jelinek <jakub@redhat.com>
336
337 PR c/64824
338 PR c/64868
339 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
340 instead of RDIV_EXPR. Use build_binary_op instead of
341 build2_loc.
342
40fecdd6
JM
3432015-01-30 Joseph Myers <joseph@codesourcery.com>
344
345 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
346 to pass input_location as first argument.
347
a0c88d06
TV
3482015-01-23 Tom de Vries <tom@codesourcery.com>
349
350 PR libgomp/64672
351 * c.opt (fopenacc): Mark as LTO option.
352
1506ae0e
TV
3532015-01-23 Tom de Vries <tom@codesourcery.com>
354
355 PR libgomp/64707
356 * c.opt (fopenmp): Mark as LTO option.
357
31be63ab
JJ
3582015-01-21 Jakub Jelinek <jakub@redhat.com>
359
360 PR c/63307
361 * cilk.c (fill_decls_vec): Only put decls into vector v.
362 (compare_decls): Fix up formatting.
363
3642015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
365
366 PR c/63307
367 * cilk.c: Include vec.h.
368 (struct cilk_decls): New structure.
369 (wrapper_parm_cb): Split this function to...
370 (fill_decls_vec): ...this...
371 (create_parm_list): ...and this.
372 (compare_decls): New function.
373 (for_local_cb): Remove.
374 (wrapper_local_cb): Ditto.
375 (build_wrapper_type): For now first traverse and fill vector of
376 declarations then sort it and then deal with sorted vector.
377 (cilk_outline): Ditto.
378 (declare_one_free_variable): Ditto.
379
6875457f
JM
3802015-01-21 Jason Merrill <jason@redhat.com>
381
382 PR c++/64629
383 * c-format.c (check_format_arg): Call decl_constant_value.
384
185c9e56
ML
3852015-01-19 Martin Liska <mliska@suse.cz>
386
387 * c-common.c (handle_noicf_attribute): New function.
388
41dbbb37
TS
3892015-01-15 Thomas Schwinge <thomas@codesourcery.com>
390 Bernd Schmidt <bernds@codesourcery.com>
391 James Norris <jnorris@codesourcery.com>
392 Cesar Philippidis <cesar@codesourcery.com>
393 Ilmir Usmanov <i.usmanov@samsung.com>
394 Jakub Jelinek <jakub@redhat.com>
395
396 * c.opt (fopenacc): New option.
397 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
398 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
399 New macros.
400 * c-common.h (c_finish_oacc_wait): New prototype.
401 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
402 (c_finish_oacc_wait): New function.
403 * c-pragma.c (oacc_pragmas): New variable.
404 (c_pp_lookup_pragma, init_pragma): Handle it.
405 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
406 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
407 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
408 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
409 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
410 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
411 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
412 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
413 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
414 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
415 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
416 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
417 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
418 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
419 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
420 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
421 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
422 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
423 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
424 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
425 PRAGMA_OACC_CLAUSE_WORKER.
426
5434dc07
MD
4272015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
428
429 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
430 for the new option fstack-protector_explicit.
431 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
432 (handle_stack_protect_attribute): New function.
433
de1b5c17
MU
4342015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
435
436 * c.opt: New option -Warray-bounds=.
437
adfac8df
JJ
4382015-01-09 Michael Collison <michael.collison@linaro.org>
439
440 * array-notation-common.c: Include hash-set.h, machmode.h,
441 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
442 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
443 * c-ada-spec.c: Ditto.
444 * c-cilkplus.c: Ditto.
445 * c-common.c: Include input.h due to flattening of tree.h.
446 Define macro GCC_C_COMMON_C.
447 * c-common.h: Flatten tree.h header files into c-common.h.
448 Remove include of tree-core.h.
449 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
450 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
451 fold-const.h, wide-int.h, and inchash.h due to
452 flattening of tree.h.
453 * c-dump.c: Ditto.
454 * c-format.c: Flatten tree.h header files into c-common.h.
455 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
456 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
457 fold-const.h, wide-int.h, and inchash.h due to
458 flattening of tree.h.
459 * c-dump.c: Include hash-set.h, machmode.h,
460 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
461 fold-const.h, wide-int.h, and inchash.h due to
462 flattening of tree.h.
463 * c-format.c: Include hash-set.h, machmode.h,
464 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
465 fold-const.h, wide-int.h, inchash.h and real.h due to
466 flattening of tree.h.
467 * c-gimplify.c: Include hash-set.h, machmode.h,
468 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
469 fold-const.h, wide-int.h, and inchash.h due to
470 flattening of tree.h.
471 * cilk.c: Ditto.
472 * c-lex.c: Ditto.
473 * c-omp.c: Ditto.
474 * c-opts.c: Ditto.
475 * c-pch.c: Ditto.
476 * c-ppoutput.c: Ditto.
477 * c-pragma.c: Ditto.
478 * c-pretty-print.c: Ditto.
479 * c-semantics.c: Ditto.
480 * c-ubsan.c: Ditto.
481 * stub-objc.c: Ditto.
482
f5481fc4
JM
4832015-01-08 Jason Merrill <jason@redhat.com>
484
485 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
486 do_ubsan_in_current_function.
487 (ubsan_maybe_instrument_reference_or_call): Likewise.
488 * c-ubsan.h: Declare it.
489
de35aa66
MS
4902015-01-08 Mike Stump <mikestump@comcast.net>
491
492 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
493
4a9a42ab
MP
4942015-01-07 Marek Polacek <polacek@redhat.com>
495
496 PR c/64440
497 * c-common.c (c_fully_fold_internal): Warn for division and modulo
498 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
499
2f42e5de
TS
5002015-01-05 Trevor Saunders <tsaunders@mozilla.com>
501
502 PR c++/31397
503 * c.opt (Wsuggest-override): New option.
504
5624e564
JJ
5052015-01-05 Jakub Jelinek <jakub@redhat.com>
506
507 Update copyright years.
508
5bd012f8
MP
5092015-01-05 Marek Polacek <polacek@redhat.com>
510
511 PR c/64423
512 * c-common.c (warn_array_subscript_with_type_char): Add location_t
513 parameter. Use it.
514 * c-common.h (warn_array_subscript_with_type_char): Update
515 declaration.
516
a7fa8d18
ESR
5172014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
518
519 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
520 Control macro with flag_sized_deallocation.
521
768952be
MU
5222014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
523
524 * c.opt (Wdiscarded-array-qualifiers): New option.
525
1f8d3e84
JJ
5262014-12-19 Jakub Jelinek <jakub@redhat.com>
527
528 PR preprocessor/63831
529 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
530 and __has_cpp_attribute here.
531 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
532 c_common_has_attribute.
533 * c-common.h (c_common_has_attribute): New prototype.
534 * c-lex.c (init_c_lex): Set cb->has_attribute to
535 c_common_has_attribute instead of cb_has_attribute.
536 (get_token_no_padding): New function.
537 (cb_has_attribute): Renamed to ...
538 (c_common_has_attribute): ... this. No longer static. Use
539 get_token_no_padding, require ()s, don't build TREE_LIST
540 unnecessarily, fix up formatting, adjust diagnostics, call
541 init_attributes.
542
20b06add
JM
5432014-12-15 Jason Merrill <jason@redhat.com>
544
545 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
546 (-Wsized-deallocation): New.
547 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
548 to on in C++14 and up.
549
94a073b2
JM
5502014-12-11 Jason Merrill <jason@redhat.com>
551
acaa5911
JM
552 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
553
94a073b2
JM
554 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
555 we aren't complaining about VLAs.
556
7fb66c15
MP
5572014-12-06 Marek Polacek <polacek@redhat.com>
558
559 PR tree-optimization/64183
560 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
561 shift-expression if it is integer_type_node. Use types_compatible_p.
562
b731b390
JJ
5632014-11-29 Jakub Jelinek <jakub@redhat.com>
564
565 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
566 last argument from create_tmp_var_raw and create_tmp_var calls.
567 * cilk.c (gimplify_cilk_spawn): Likewise.
568 * c-omp.c (c_finish_omp_atomic): Likewise.
569
6a4da643
MP
5702014-11-28 Marek Polacek <polacek@redhat.com>
571
572 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
573 instead of unsigned_type_node.
574
541e35a6
MP
5752014-11-28 Marek Polacek <polacek@redhat.com>
576
577 PR c/63862
578 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
579 to op1_utype.
580 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
581 expression to unsigned_type_node.
582
dcc97066
MW
5832014-11-20 Mark Wielaard <mjw@redhat.com>
584
585 PR debug/38757
586 * c-opts.c (set_std_c89): Set lang_hooks.name.
587 (set_std_c99): Likewise.
588 (set_std_c11): Likewise.
589 (set_std_cxx98): Likewise.
590 (set_std_cxx11): Likewise.
591 (set_std_cxx14): Likewise.
592 (set_std_cxx1z): Likewise.
593
aa7da51a
JJ
5942014-11-21 Jakub Jelinek <jakub@redhat.com>
595
596 PR target/63764
597 * c-common.h (convert_vector_to_pointer_for_subscript): Change
598 return type to bool.
009a3480 599 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
600 (convert_vector_to_pointer_for_subscript): Change return type to
601 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
602 and copy it into a TARGET_EXPR and use that instead of *vecp
603 directly.
604
538dd0b7
DM
6052014-11-19 David Malcolm <dmalcolm@redhat.com>
606
607 Merger of git branch "gimple-classes-v2-option-3".
608 * ChangeLog.gimple-classes: New.
609 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
610 from being just a vec<gimple> to a vec<gbind *>.
611
c39a5e99
JJ
6122014-11-18 Jakub Jelinek <jakub@redhat.com>
613
614 PR sanitizer/63813
615 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
616 argument to ptype, set type to TREE_TYPE (ptype). Don't call
617 get_pointer_alignment for non-pointers. Use ptype, or if it is
618 reference type, corresponding pointer type, as type of kind
619 argument.
620 (ubsan_maybe_instrument_reference,
621 ubsan_maybe_instrument_member_call): Adjust callers.
622
8537a4a9
MP
6232014-11-15 Marek Polacek <polacek@redhat.com>
624
625 PR middle-end/63884
626 * array-notation-common.c (is_sec_implicit_index_fn): Return false
627 for NULL fndecl.
628 (extract_array_notation_exprs): Return for NULL node.
629
2079956a
JM
6302014-11-12 Joseph Myers <joseph@codesourcery.com>
631
632 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
633 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
634
1304953e
JJ
6352014-11-12 Jakub Jelinek <jakub@redhat.com>
636
637 PR c/59708
638 * c-common.c (check_builtin_function_arguments): Handle
639 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
640
e5e44252
AK
6412014-11-10 Andi Kleen <ak@linux.intel.com>
642
643 PR c/60804
644 * c-common.h (check_no_cilk): Declare.
645 * cilk.c (get_error_location): New function.
646 (check_no_cilk): Dito.
647
e64b984d
AK
6482014-11-10 Andi Kleen <ak@linux.intel.com>
649
650 * cilk.c (recognize_spawn): Use expression location
651 for error message.
652
13c21655
PC
6532014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
654
655 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
656
42fd12b1
ESR
6572014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
658
659 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
660 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
661 (__cpp_range_based_for, __cpp_initializer_lists,
662 __cpp_delegating_constructors, __cpp_nsdmi,
663 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
664 for C++11; (__cpp_attribute_deprecated): Remove in favor of
665 __has_cpp_attribute.
666 * c-lex.c (cb_has_attribute): New callback CPP function;
667 (init_c_lex): Set has_attribute callback.
668
6f450181
RB
6692014-11-04 Richard Biener <rguenther@suse.de>
670
671 * c-common.c (shorten_compare): Do not shorten mixed
672 DFP and non-DFP compares.
673
26f0e1d6
ESR
6742014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
675
676 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
677 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
678 Commentary and rearrangement of tests.
679 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
680 Commentary and rearrangement of tests.
681 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
682 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
683
ef4bddc2
RS
6842014-10-29 Richard Sandiford <richard.sandiford@arm.com>
685
686 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
687 enum from machine_mode.
688
c582198b
AM
6892014-10-28 Andrew MacLeod <amacleod@redhat.com>
690
adfac8df
JJ
691 * c-common.c: Adjust include files.
692 * c-gimplify.c: Ditto.
693 * cilk.c: Ditto.
694 * c-pragma.c: Ditto.
695 * c-ubsan.c: Ditto.
c582198b 696
60393bbc
AM
6972014-10-27 Andrew MacLeod <amacleod@redhat.com>
698
699 * c-gimplify.c: Adjust include files.
700
d723bb7c
MLI
7012014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
702
703 PR c++/53061
704 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
705 c_common_initialize_diagnostics.
706 * c-common.h: Likewise.
707
90f3520e
MP
7082014-10-24 Marek Polacek <polacek@redhat.com>
709
710 PR c/56980
711 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
712 print "struct"/"union"/"enum" for typedefed names.
713
59d7607a
MP
7142014-10-23 Marek Polacek <polacek@redhat.com>
715
716 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
717 in unsigned type.
718
d95a2703
JJ
7192014-10-22 Jakub Jelinek <jakub@redhat.com>
720 Yury Gribov <y.gribov@samsung.com>
721
722 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
723 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
724 instead of flag_sanitize_recover as bool flag.
725
8e6ef852
KY
7262014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
727
728 * cilk.c: Revert previous change.
729
948cf550
IZ
7302014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
731
732 PR c/63307
733 * cilk.c: Include vec.h.
734 (struct cilk_decls): New structure.
735 (wrapper_parm_cb): Split this function to...
736 (fill_decls_vec): ...this...
737 (create_parm_list): ...and this.
738 (compare_decls): New function.
739 (for_local_cb): Remove.
740 (wrapper_local_cb): Ditto.
741 (build_wrapper_type): For now first traverse and fill vector of
742 declarations then sort it and then deal with sorted vector.
743 (cilk_outline): Ditto.
744 (declare_one_free_variable): Ditto.
745
92574c7c
MP
7462014-10-17 Marek Polacek <polacek@redhat.com>
747
748 * c-opts.c (c_common_post_options): Set warn_implicit_int.
749 * c.opt (Wimplicit-int): Initialize to -1.
750
83685514
AM
7512014-10-16 Andrew MacLeod <amacleod@redhat.com>
752
753 * c-pragma.c: Adjust include files.
754 * c-semantics.c: Likewise.
755
5b8300ea
DD
7562014-10-16 DJ Delorie <dj@redhat.com>
757
758 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
759 multiples of bytes.
760
5f83e90b
JM
7612014-10-14 Jason Merrill <jason@redhat.com>
762
763 PR c++/63455
764 * c-common.h (CPP_PREPARSED_EXPR): New.
765 (N_CP_TTYPES): Adjust.
766
d73326ca
MP
7672014-10-15 Marek Polacek <polacek@redhat.com>
768
769 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
770
78a7c317
DD
7712014-10-14 DJ Delorie <dj@redhat.com>
772
773 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
774 types, not just __int128.
775 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
776 types, not just __int128.
777 (cpp_atomic_builtins): Round pointer sizes up.
778 (type_suffix): Use type precision, not specific types.
779 * c-common.c (c_common_reswords): Remove __int128 special case.
780 (c_common_type_for_size): Check for all __intN types, not just
781 __int128.
782 (c_common_type_for_mode): Likewise.
783 (c_common_signed_or_unsigned_type): Likewise.
784 (c_build_bitfield_integer_type): Likewise.
785 (c_common_nodes_and_builtins): Likewise.
786 (keyword_begins_type_specifier): Likewise.
787 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
788 __intN variants.
789
2a22f99c
TS
7902014-10-12 Trevor Saunders <tsaunders@mozilla.com>
791
792 * c-common.c: Use hash_table instead of hashtab.
793
2a8ef767
ESR
7942014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
795
adfac8df 796 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
797 C++11 section.
798
3c9aabbd
MG
7992014-10-03 Marc Glisse <marc.glisse@inria.fr>
800
801 PR c++/54427
802 PR c++/57198
803 PR c++/58845
804 * c-common.c (warn_logical_operator): Punt for vectors.
805
a15f7cb8
ESR
8062014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
807
808 Implement SD-6: SG10 Feature Test Recommendations
809 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
810 macros and the __has_header macro.
811
8d0cf15e
JM
8122014-09-30 Jason Merrill <jason@redhat.com>
813
dd5d5481
JM
814 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
815 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
816 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
817
b752325e
JM
818 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
819 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
820
8d0cf15e
JM
821 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
822 * c-common.c (c_common_reswords): Remove __is_convertible_to.
823
083e891e
MP
8242014-09-24 Marek Polacek <polacek@redhat.com>
825
826 PR c/61405
827 PR c/53874
828 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
829
7861b648
AK
8302014-09-23 Andi Kleen <ak@linux.intel.com>
831
832 * c-common.c (handle_no_reorder_attribute): New function.
833 (c_common_attribute_table): Add no_reorder attribute.
834
9a79452d
JM
8352014-09-22 Joseph Myers <joseph@codesourcery.com>
836
837 * c-cppbuiltin.c (c_cpp_builtins): Define
838 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
839 modes.
840
dd69f047
JM
8412014-09-18 Joseph Myers <joseph@codesourcery.com>
842
843 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
844 for supported floating-point modes.
845
737a4826
MLI
8462014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
847
848 * c.opt (Wpsabi): Use LangEnabledBy.
849 * c-opts.c (c_common_handle_option): Do not handle here.
850
8cc4b7a2
JM
8512014-09-12 Joseph Myers <joseph@codesourcery.com>
852
853 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
854 macros for floating-point modes.
855
179b5a55
MG
8562014-09-11 Marc Glisse <marc.glisse@inria.fr>
857
858 PR target/58757
859 * c-cppbuiltin.c (builtin_define_float_constants): Correct
860 __*_DENORM_MIN__ without denormals.
861
570a11fe
JJ
8622014-09-10 Jakub Jelinek <jakub@redhat.com>
863
864 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
865 ubsan_instrument_vla, ubsan_instrument_return): Adjust
866 ubsan_create_data callers.
867 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
868 index is constant or BIT_AND_EXPR with constant mask and is
869 small enough for the bound.
870 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
871 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
872
b559c810
MLI
8732014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
874
875 * c.opt: Add CppReason to various flags.
876 (Wdate-time): Re-sort.
877 * c-common.c: Include c-common.h earlier.
878 (struct reason_option_codes_t): Delete.
879 (c_option_controlling_cpp_error): Prefix global type and struct
880 with cpp_.
881
1ef33fd4
MLI
8822014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
883
884 * c.opt (Wnormalized): New.
885 (Wnormalized=): Use Enum and Reject Negative.
886 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
887
66bb34c0
JM
8882014-09-08 Joseph Myers <joseph@codesourcery.com>
889
890 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
891 digits of floating-point modes if -fbuilding-libgcc.
892
53d68b9f
JM
8932014-09-05 Joseph Myers <joseph@codesourcery.com>
894
895 * c-cppbuiltin.c (c_cpp_builtins): Also define
896 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
897 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
898 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
899 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
900 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
901 __LIBGCC_STACK_GROWS_DOWNWARD__,
902 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
903 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
904 __LIBGCC_DWARF_FRAME_REGISTERS__,
905 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
906 __LIBGCC_STACK_POINTER_REGNUM__ and
907 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
908 (builtin_define_with_value): Handle backslash-escaping in string
909 macro values.
910
f65586dc
RB
9112014-09-05 Richard Biener <rguenther@suse.de>
912
913 PR middle-end/63148
914 * c-format.c (check_format_arg): Properly handle
915 effectively signed POINTER_PLUS_EXPR offset.
916
2b71f4a4
MLI
9172014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
918
919 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
920 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
921 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
922 and Init.
923 * c-opts.c (c_common_handle_option): Do not handle here.
924 (sanitize_cpp_opts): Likewise.
925 * c-common.c (struct reason_option_codes_t): Handle
926 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
927
d2e4feca
MP
9282014-09-03 Marek Polacek <polacek@redhat.com>
929
930 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
931
9a771876
JJ
9322014-09-02 Jakub Jelinek <jakub@redhat.com>
933 Balaji V. Iyer <balaji.v.iyer@intel.com>
934 Igor Zamyatin <igor.zamyatin@intel.com>
935
936 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
937 * c-common.c (c_common_reswords): Added _Cilk_for.
938 * c-common.h (enum rid): Added RID_CILK_FOR.
939 (cilk_for_number_of_iterations): Add declaration.
940 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
941 CILK_FOR.
942 * c-pragma.c (init_pragma): Register "grainsize" pragma.
943 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
944
81b5d104
MLI
9452014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
946
947 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
948 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
949 Wundef): Use CPP, Var and Init.
950 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
951
b753b37b
MLI
9522014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
953
954 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
955 * c-opts.c (c_common_handle_option): Do not handle here.
956
028aee17
JM
9572014-08-25 Jason Merrill <jason@redhat.com>
958
959 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
960 -std=c++14 and -std=gnu++14, rather than the reverse.
961 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
962 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
963 * c-common.h (cxx_dialect): Remove cxx1y.
964
e4276ba5
ESR
9652014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
966
967 * c-common.h (enum cxx_dialect): Add cxx14.
968 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
969 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
970 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
971
a545cacd
JM
9722014-08-22 Jason Merrill <jason@redhat.com>
973
974 * c.opt (std=gnu++17): Fix alias.
975
59ea0364
MP
9762014-08-22 Marek Polacek <polacek@redhat.com>
977
978 PR c++/62199
979 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
980 check for vector types. Drop LHS argument.
981 * c-common.h (warn_logical_not_parentheses): Adjust.
982
596e808c
MLI
9832014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
984
985 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
986 (Wmultichar): Likewise.
987 (Wdate-time): Use C-family languages instead of Common. Use CPP
988 and Var.
989 * c-opts.c (c_common_handle_option): Do not handle the above
990 options here.
991 (sanitize_cpp_opts): Likewise.
992
18767f65
MLI
9932014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
994
995 PR fortran/44054
996 * c-opts.c: Include tree-diagnostics.h.
997 (c_diagnostic_finalizer): New.
998 (c_common_initialize_diagnostics): Use it.
999
b4413594
MLI
10002014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1001
1002 PR preprocessor/51303
1003 * c-common.c (struct reason_option_codes_t option_codes):
1004 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
1005
43f9a13c
MLI
10062014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1007
1008 PR c/60975
1009 PR c/53063
1010 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
1011 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
1012 (c_common_post_options): Call init_global_opts_from_cpp.
1013 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
1014
04159acf
MP
10152014-08-19 Marek Polacek <polacek@redhat.com>
1016
1017 PR c++/62153
1018 * c-common.c (maybe_warn_bool_compare): New function.
1019 * c-common.h (maybe_warn_bool_compare): Declare.
1020 * c.opt (Wbool-compare): New option.
1021
35aff4fb
MP
10222014-08-19 Marek Polacek <polacek@redhat.com>
1023
1024 * c.opt (Wc99-c11-compat): New option.
1025
177cce46
MP
10262014-08-19 Marek Polacek <polacek@redhat.com>
1027
1028 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
1029 to warn_c90_c99_compat.
1030 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
1031 to -1.
1032
6ae9194f
MLI
10332014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1034 Steven Bosscher <steven@gcc.gnu.org>
1035
1036 PR c/52952
1037 * c-format.c: Add extra_arg_loc and format_string_loc to struct
1038 format_check_results.
1039 (check_function_format): Use true and add comment for boolean
1040 argument.
1041 (finish_dollar_format_checking): Use explicit location when warning.
1042 (check_format_info): Likewise.
1043 (check_format_arg): Set extra_arg_loc and format_string_loc.
1044 (check_format_info_main): Use explicit location when warning.
1045 (check_format_types): Pass explicit location.
1046 (format_type_warning): Likewise.
1047
8e54f6d3
MLI
10482014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1049
1050 PR fortran/44054
1051 * c-format.c: Handle Fortran flags.
1052
cd4e76fc
IZ
10532014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
1054
1055 PR other/61962
1056 * array-notation-common.c (find_rank): Added handling for other
1057 types of references.
1058
f3bede71
MP
10592014-08-10 Marek Polacek <polacek@redhat.com>
1060
1061 PR c/51849
1062 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
1063 * c.opt (Wc90-c99-compat): Add option.
1064
9f25a338
TS
10652014-08-07 Trevor Saunders <tsaunders@mozilla.com>
1066
1067 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1068
62e4eb35
MP
10692014-08-03 Marek Polacek <polacek@redhat.com>
1070
1071 * c-common.c (check_case_value): Add location_t parameter. Use it.
1072 (c_add_case_label): Pass loc to check_case_value.
1073
b787e7a2
TS
10742014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1075
1076 * cilk.c: Use hash_map instead of pointer_map.
1077
6e2830c3
TS
10782014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1079
1080 * c-gimplify.c: Use hash_set instead of pointer_set.
1081
a7ee52fb
IZ
10822014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
1083
1084 PR middle-end/61455
1085 * array-notation-common.c (extract_array_notation_exprs): Handling
1086 of DECL_EXPR added.
1087
944fa280
JJ
10882014-08-01 Jakub Jelinek <jakub@redhat.com>
1089
1090 * c-common.h (min_align_of_type): Removed prototype.
1091 * c-common.c (min_align_of_type): Removed.
1092 * c-ubsan.h (ubsan_maybe_instrument_reference,
1093 ubsan_maybe_instrument_member_call): New prototypes.
1094 * c-ubsan.c: Include stor-layout.h and builtins.h.
1095 (ubsan_maybe_instrument_reference_or_call,
1096 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1097 functions.
1098
b4dfdc11
MG
10992014-07-31 Marc Glisse <marc.glisse@inria.fr>
1100
1101 PR c++/60517
1102 * c.opt (-Wreturn-local-addr): Move to common.opt.
1103
a41844e5
JM
11042014-07-30 Jason Merrill <jason@redhat.com>
1105
1106 PR c++/61659
1107 PR c++/61687
1108 Revert:
1109 * c.opt (-fuse-all-virtuals): New.
1110
976d5a22
TT
11112014-07-30 Tom Tromey <tromey@redhat.com>
1112
1113 PR c/59855
1114 * c.opt (Wdesignated-init): New option.
1115 * c-common.c (c_common_attribute_table): Add "designated_init".
1116 (handle_designated_init): New function.
1117
cdc94aca
MP
11182014-07-24 Marek Polacek <polacek@redhat.com>
1119
1120 PR c/57653
1121 * c-opts.c (c_finish_options): If -imacros is in effect, return.
1122
f41373b6
DS
11232014-07-16 Dodji Seketeli <dodji@redhat.com>
1124
1125 PR preprocessor/60723 - missing system-ness marks for macro tokens
1126 * c-ppoutput.c (struct print::prev_was_system_token): New data
1127 member.
1128 (init_pp_output): Initialize it.
1129 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1130 (do_line_change): Return a flag saying if a line marker was
1131 emitted or not.
1132 (scan_translation_unit): Detect if the system-ness of the token we
1133 are about to emit is different from the one of the previously
1134 emitted token. If so, emit a line marker. Avoid emitting useless
1135 adjacent line markers. Avoid emitting line markers for tokens
1136 originating from the expansion of built-in macros.
1137 (scan_translation_unit_directives_only): Adjust.
1138
4d661eaa
MP
11392014-07-15 Marek Polacek <polacek@redhat.com>
1140
1141 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1142 TYPE_MAX_VALUE is NULL.
1143
b108f48f
JJ
11442014-07-14 Jakub Jelinek <jakub@redhat.com>
1145
1146 PR middle-end/61294
1147 * c.opt (Wmemset-transposed-args): New warning.
1148
c0221884
JM
11492014-07-10 Jason Merrill <jason@redhat.com>
1150
1151 PR c++/61659
1152 PR c++/61687
1153 * c.opt (-fuse-all-virtuals): New.
1154
63dfbb95
RB
11552014-07-09 Richard Biener <rguenther@suse.de>
1156
1157 PR c-family/61741
1158 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1159 using unsigned arithmetic if overflow does not wrap instead of
1160 if overflow is undefined.
1161
773ec47f
MP
11622014-07-06 Marek Polacek <polacek@redhat.com>
1163
1164 PR c/6940
1165 * c.opt (Wsizeof-array-argument): New option.
1166
00a7ba58
JJ
11672014-07-03 Jakub Jelinek <jakub@redhat.com>
1168
1169 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
1170 comments->count <= 1, as comments->entries might be NULL.
1171
52ec0ea3
MP
11722014-07-01 Marek Polacek <polacek@redhat.com>
1173
1174 * c.opt (Wint-conversion): New option.
1175
d5c3d343
MP
11762014-07-01 Marek Polacek <polacek@redhat.com>
1177
1178 PR c/58286
1179 * c.opt (Wincompatible-pointer-types): New option.
1180
6e7ceb17
PC
11812014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1182
1183 PR c++/51400
1184 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1185 Do not discard TYPE_QUALS of type.
1186
da73100b
JM
11872014-06-26 Jason Merrill <jason@redhat.com>
1188
1189 * c-common.h (enum cxx_dialect): Add cxx1z.
1190 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1191 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1192
08eedf75
TJ
11932014-06-26 Teresa Johnson <tejohnson@google.com>
1194
1195 * c-common.h (get_dump_info): Declare.
1196 * c-gimplify.c (c_genericize): Use saved dump files.
1197 * c-opts.c (c_common_parse_file): Begin and end dumps
1198 once around parsing invocation.
1199 (get_dump_info): New function.
1200
7b56b2f8
MP
12012014-06-23 Marek Polacek <polacek@redhat.com>
1202 Andrew MacLeod <amacleod@redhat.com>
1203
1204 PR c/61553
1205 * c-common.c (get_atomic_generic_size): Don't segfault if the
1206 type doesn't have a size.
1207
0e37a2f3
MP
12082014-06-20 Marek Polacek <polacek@redhat.com>
1209
1210 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1211 (ubsan_walk_array_refs_r): New function.
1212 (c_genericize): Instrument array bounds.
1213 * c-ubsan.c: Include "internal-fn.h".
1214 (ubsan_instrument_division): Mark instrumented arrays as having
1215 side effects. Adjust ubsan_type_descriptor call.
1216 (ubsan_instrument_shift): Likewise.
1217 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1218 (ubsan_instrument_bounds): New function.
1219 (ubsan_array_ref_instrumented_p): New function.
1220 (ubsan_maybe_instrument_array_ref): New function.
1221 * c-ubsan.h (ubsan_instrument_bounds): Declare.
1222 (ubsan_array_ref_instrumented_p): Declare.
1223 (ubsan_maybe_instrument_array_ref): Declare.
1224
12252014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
1226
1227 PR lto/61123
1228 * c.opt (fshort-enums): Add to LTO.
1229 * c.opt (fshort-wchar): Likewise.
1230
5c3d09f7
MP
12312014-06-16 Marek Polacek <polacek@redhat.com>
1232
1233 PR c/60439
1234 * c.opt (Wswitch-bool): Add Var.
1235
9cf32741
JJ
12362014-06-12 Jakub Jelinek <jakub@redhat.com>
1237
1238 PR middle-end/61486
1239 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1240 #pragma omp target teams or
1241 #pragma omp {,target }teams distribute simd.
1242
62984918
JM
12432014-06-12 Jason Merrill <jason@redhat.com>
1244
1245 * c.opt (Wabi=, fabi-compat-version): New.
1246 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1247 (c_common_post_options): Handle flag_abi_compat_version default.
1248 Disallow -fabi-compat-version=1.
1249 * c-common.h (abi_version_crosses): New.
1250
f961457f
JH
12512014-06-11 Jan Hubicka <hubicka@ucw.cz>
1252
adfac8df 1253 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
1254 section names that are no longer trees.
1255
92d28cbb
JJ
12562014-06-10 Jakub Jelinek <jakub@redhat.com>
1257
1258 PR fortran/60928
1259 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1260 (omp_pragmas): ... back here.
1261
742938c9
MP
12622014-06-05 Marek Polacek <polacek@redhat.com>
1263
1264 PR c/49706
1265 * c-common.c (warn_logical_not_parentheses): New function.
1266 * c-common.h (warn_logical_not_parentheses): Declare.
1267 * c.opt (Wlogical-not-parentheses): New option.
1268
9d548dfb
MP
12692014-06-04 Marek Polacek <polacek@redhat.com>
1270
1271 PR c/30020
1272 * c-common.c (check_case_bounds): Add location parameter.
1273 Use it.
1274 (c_add_case_label): Pass loc to check_case_bounds.
1275
fedfecef
MP
12762014-06-03 Marek Polacek <polacek@redhat.com>
1277
1278 PR c/60439
1279 * c.opt (Wswitch-bool): New option.
1280
f6a7cffc
TS
12812014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1282
040d18b6
TS
1283 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1284 Remove prototypes.
1285 (record_types_used_by_current_var_decl): Move prototype to where
1286 it belongs.
1287
f6a7cffc
TS
1288 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1289 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1290 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1291
632f2871
RS
12922014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1293
1294 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1295 * c-common.c (c_common_nodes_and_builtins): Don't initialize
1296 void_zero_node.
1297 * c-pretty-print.c (pp_c_void_constant): New function.
1298 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1299 (c_pretty_printer::expression): Handle VOID_CST.
1300 * cilk.c (extract_free_variables): Likewise.
1301 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1302 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1303
766090c2
TS
13042014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1305
1306 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1307 * c-pragma.c (push_alignment): Adjust.
1308 (handle_pragma_push_options): Likewise.
1309
661a0813
MP
13102014-05-09 Marek Polacek <polacek@redhat.com>
1311
1312 PR c/50459
1313 * c-common.c (check_user_alignment): Return -1 if alignment is error
1314 node.
1315 (handle_aligned_attribute): Don't call default_conversion on
1316 FUNCTION_DECLs.
1317 (handle_vector_size_attribute): Likewise.
1318 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1319 (handle_sentinel_attribute): Call default_conversion and allow even
1320 integral types as an argument.
1321
2793eeab
MP
13222014-05-08 Marek Polacek <polacek@redhat.com>
1323
1324 PR c/61053
1325 * c-common.c (min_align_of_type): New function factored out from...
1326 (c_sizeof_or_alignof_type): ...here.
1327 * c-common.h (min_align_of_type): Declare.
1328
f827930a
MP
13292014-05-08 Marek Polacek <polacek@redhat.com>
1330
1331 PR c/61077
1332 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1333 parameter type of main.
1334
ca49b74e
DD
13352014-05-07 DJ Delorie <dj@redhat.com>
1336
1337 * c-cppbuiltin.c (print_bits_of_hex): New.
1338 (builtin_define_type_minmax): Print values using hex so as not to
1339 require a pre-computed list of string values.
1340
1d60af08
KZ
13412014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1342 Mike Stump <mikestump@comcast.net>
1343 Richard Sandiford <rdsandiford@googlemail.com>
1344
1345 * c-ada-spec.c: Include wide-int.h.
1346 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1347 (dump_generic_ada_node): Use wide-int interfaces.
1348 * c-common.c: Include wide-int-print.h.
1349 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1350 (pointer_int_sum): Use wide-int interfaces.
1351 (c_common_nodes_and_builtins): Use make_int_cst.
1352 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1353 (handle_alloc_size_attribute): Use wide-int interfaces.
1354 (get_nonnull_operand): Likewise.
1355 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1356 * c-lex.c: Include wide-int.h.
1357 (narrowest_unsigned_type): Take a widest_int rather than two
1358 HOST_WIDE_INTs.
1359 (narrowest_signed_type): Likewise.
1360 (interpret_integer): Update accordingly. Use wide-int interfaces.
1361 (lex_charconst): Use wide-int interfaces.
1362 * c-pretty-print.c: Include wide-int.h.
1363 (pp_c_integer_constant): Use wide-int interfaces.
1364 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1365 INT_CST_LT_UNSIGNED.
1366
b15458be
RB
13672014-05-06 Richard Biener <rguenther@suse.de>
1368
1369 * c-opts.c (c_common_post_options): For -freestanding,
1370 -fno-hosted and -fno-builtin disable pattern recognition
1371 if not enabled explicitely.
1372
6577374e
MP
13732014-05-02 Marek Polacek <polacek@redhat.com>
1374
1375 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1376
d00887e8
MP
13772014-05-01 Marek Polacek <polacek@redhat.com>
1378
1379 PR c/43245
1380 * c.opt (Wdiscarded-qualifiers): Add.
1381
f8ed5150
MP
13822014-04-30 Marek Polacek <polacek@redhat.com>
1383
1384 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
1385 INT_MIN / -1 sanitization only for integer types.
1386
45484dcf
MP
13872014-04-25 Marek Polacek <polacek@redhat.com>
1388
1389 PR c/18079
1390 * c-common.c (handle_noinline_attribute): Warn if the attribute
1391 conflicts with always_inline attribute.
1392 (handle_always_inline_attribute): Warn if the attribute conflicts
1393 with noinline attribute.
1394
38e514c0
MP
13952014-04-25 Marek Polacek <polacek@redhat.com>
1396
1397 PR c/60156
1398 * c-common.c (check_main_parameter_types): Warn about variadic main.
1399
44875f92
MS
14002014-04-24 Mike Stump <mikestump@comcast.net>
1401
1402 * c.opt (Wshadow-ivar): Default to on.
1403
dcaaa5a0
DP
14042014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1405
1406 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1407
c07d7c02
MP
14082014-04-23 Marek Polacek <polacek@redhat.com>
1409
1410 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1411
1c33c9b7
JJ
14122014-04-22 Jakub Jelinek <jakub@redhat.com>
1413
1414 PR sanitizer/60275
1415 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1416 if flag_sanitize_undefined_trap_on_error.
1417 (ubsan_instrument_division, ubsan_instrument_shift,
1418 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1419 if !flag_sanitize_recover.
1420
793c625f
MG
14212014-04-22 Marc Glisse <marc.glisse@inria.fr>
1422
1423 PR libstdc++/43622
1424 * c-common.c (registered_builtin_types): Make non-static.
1425 * c-common.h (registered_builtin_types): Declare.
1426
b0f1bf36
RB
14272014-04-14 Richard Biener <rguenther@suse.de>
1428 Marc Glisse <marc.glisse@inria.fr>
1429
1430 PR c/60819
1431 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1432 apply may-alias the scalar pointer type when applicable.
1433
3b07fa4a
IZ
14342014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1435
1436 PR middle-end/60467
1437 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1438 as possible argument for Cilk_spawn.
1439
cbbd2b1c
TB
14402014-04-11 Tobias Burnus <burnus@net-b.de>
1441
1442 PR c/60194
1443 * c.opt (Wformat-signedness): Add
1444 * c-format.c(check_format_types): Use it.
1445
6415bd5d
JM
14462014-04-11 Jason Merrill <jason@redhat.com>
1447
1448 PR c++/57926
1449 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1450 default_conversion for an array argument.
1451
6525783a
MP
14522014-04-08 Marek Polacek <polacek@redhat.com>
1453
1454 PR sanitizer/60745
1455 * c-ubsan.c: Include asan.h.
1456 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1457
880a467b
NS
14582014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1459
1460 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1461
7b59ff2d
MP
14622014-04-02 Marek Polacek <polacek@redhat.com>
1463
1464 * c-common.h (c_expand_expr): Remove declaration.
1465
8edbfaa6
JJ
14662014-03-28 Jakub Jelinek <jakub@redhat.com>
1467
1468 PR c++/60689
1469 * c-common.c (add_atomic_size_parameter): When creating new
1470 params vector, push the size argument first.
1471
07d72e1d
JJ
14722014-03-26 Jakub Jelinek <jakub@redhat.com>
1473
1474 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1475 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1476 ubsan_create_data callers.
1477
b35e0fa0
JJ
14782014-03-22 Jakub Jelinek <jakub@redhat.com>
1479
1480 PR debug/60603
1481 * c-opts.c (c_finish_options): Restore cb_file_change call to
1482 <built-in>.
1483
39a1ebb3
JJ
14842014-03-13 Jakub Jelinek <jakub@redhat.com>
1485
1486 PR middle-end/36282
1487 * c-pragma.c (apply_pragma_weak): Only look at
1488 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1489 DECL_ASSEMBLER_NAME_SET_P (decl).
1490 (maybe_apply_pending_pragma_weaks): Exit early if
1491 vec_safe_is_empty (pending_weaks) rather than only when
1492 !pending_weaks.
1493 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
1494 set assembler name back to NULL afterwards.
1495
a07f6ed2
JM
14962014-03-11 Jason Merrill <jason@redhat.com>
1497
1498 * c.opt: Add -std=gnu++14.
1499
75b107f5
IB
15002014-03-11 Ian Bolton <ian.bolton@arm.com>
1501
1502 * c-opts.c (c_common_post_options): Don't override
1503 -ffp-contract=fast if unsafe-math-optimizations is on.
1504
f42c637e
PM
15052014-03-08 Paulo Matos <paulo@matos-sorge.com>
1506
1507 * c.opt: Enable LTO FE for fshort-double.
1508
70e24808
JM
15092014-03-07 Jason Merrill <jason@redhat.com>
1510
1511 * c.opt: Add -std=c++14.
1512
3af9c5e9
MP
15132014-03-06 Marek Polacek <polacek@redhat.com>
1514
1515 PR c/60197
1516 * cilk.c (contains_cilk_spawn_stmt): New function.
1517 (contains_cilk_spawn_stmt_walker): Likewise.
1518 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1519 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1520
b3bdf019
JJ
15212014-03-03 Jakub Jelinek <jakub@redhat.com>
1522
1523 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1524 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1525 even when flag_preprocess_only.
1526
ca7e759d
JM
15272014-02-26 Jason Merrill <jason@redhat.com>
1528
1529 PR c++/59231
1530 PR c++/11586
1531 * c-common.c (shorten_compare): Don't check
1532 c_inhibit_evaluation_warnings.
1533
28e41874
JJ
15342014-02-19 Jakub Jelinek <jakub@redhat.com>
1535
cca615af
JJ
1536 PR c/37743
1537 * c-common.c (c_common_nodes_and_builtins): When initializing
1538 c_uint{16,32,64}_type_node, also set corresponding
1539 uint{16,32,64}_type_node to the same value.
1540
28e41874
JJ
1541 PR c++/60267
1542 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1543 for PRAGMA_IVDEP if flag_preprocess_only.
1544
c2bf53a1
JJ
15452014-02-12 Jakub Jelinek <jakub@redhat.com>
1546
1547 PR c/60101
1548 * c-common.c (merge_tlist): If copy is true, call new_tlist,
1549 if false, add ADD itself, rather than vice versa.
1550 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1551 copy. For SAVE_EXPR, only call merge_tlist once.
1552
8fcbce72
JJ
15532014-02-08 Jakub Jelinek <jakub@redhat.com>
1554
1555 PR middle-end/60092
1556 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1557 and tree_to_uhwi.
1558 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1559 functions.
1560 (c_common_attribute_table): Add alloc_align and assume_aligned
1561 attributes.
1562
0a756a3f
MP
15632014-02-06 Marek Polacek <polacek@redhat.com>
1564
1565 PR c/60087
1566 * c-common.c (warn_for_sign_compare): Call warning_at with location
1567 instead of warning.
1568
7ec4847a
MP
15692014-02-05 Marek Polacek <polacek@redhat.com>
1570
1571 PR c/53123
1572 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1573 statement.
1574
66f20604
MP
15752014-02-04 Marek Polacek <polacek@redhat.com>
1576
1577 PR c/60036
1578 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1579 SAVE_EXPR.
1580
5d77fb19
MG
15812014-02-03 Marc Glisse <marc.glisse@inria.fr>
1582
1583 PR c++/53017
1584 PR c++/59211
1585 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1586 handle_vector_size_attribute, handle_nonnull_attribute): Call
1587 default_conversion on the attribute argument.
1588 (handle_nonnull_attribute): Increment the argument number.
1589
81e5eca8
MP
15902014-01-31 Marek Polacek <polacek@redhat.com>
1591
1592 PR c/59963
1593 * c-common.c (add_atomic_size_parameter): Pass vNULL to
1594 build_function_call_vec.
1595 (resolve_overloaded_builtin): Likewise.
1596 * c-common.h (build_function_call_vec): Adjust declaration.
1597
68fca595
MP
15982014-01-30 Marek Polacek <polacek@redhat.com>
1599
1600 PR c/59940
1601 * c-common.h (unsafe_conversion_p): Adjust declaration.
1602 (warnings_for_convert_and_check): Likewise.
1603 (convert_and_check): Likewise.
1604 * c-common.c (unsafe_conversion_p): Add location parameter. Call
1605 expansion_point_location_if_in_system_header on it.
1606 (warnings_for_convert_and_check): Add location parameter. Call
1607 expansion_point_location_if_in_system_header on it. Use it.
1608 (convert_and_check): Add location parameter. Use it.
1609 (conversion_warning): Likewise.
1610 (c_add_case_label): Adjust convert_and_check calls.
1611 (scalar_to_vector): Adjust unsafe_conversion_p calls.
1612
b72271b9
BI
16132014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1614
1615 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1616 flag_cilkplus.
1617 * c-pragma.c (init_pragma): Likewise.
1618 * c.opt: Likewise.
1619
393e8e8b
MP
16202014-01-23 Marek Polacek <polacek@redhat.com>
1621
1622 PR c/59846
1623 * c-common.c (shorten_compare): Add location_t parameter.
1624 * c-common.h (shorten_binary_op): Adjust declaration.
1625
f04dda30
MP
16262014-01-23 Marek Polacek <polacek@redhat.com>
1627
1628 PR c/58346
1629 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1630 * c-common.h: Declare it.
1631
621955cb
EB
16322014-01-20 Eric Botcazou <ebotcazou@adacore.com>
1633
1634 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1635 * c-ada-spec.c (dump_ads): Likewise.
1636 (cpp_check): Likewise.
1637 (dump_ada_specs): Likewise.
1638
16392014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
1640
1641 PR c++/49718
1642 * c-common.c (handle_no_instrument_function_attribute): Allow
1643 no_instrument_function attribute in class member
1644 definition/declaration.
1645
241f845a
JJ
16462014-01-15 Jakub Jelinek <jakub@redhat.com>
1647
1648 PR c/58943
1649 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1650 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
1651 being COMPOUND_EXPR.
1652 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1653 operand a SAVE_EXPR and second MODIFY_EXPR.
1654
e83b8e2e
JJ
16552014-01-09 Jakub Jelinek <jakub@redhat.com>
1656
1657 PR target/58115
1658 * c-pch.c (c_common_write_pch): Call
1659 prepare_target_option_nodes_for_pch.
1660
23a5b65a
RS
16612014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1662
1663 Update copyright years
1664
f9030485
RS
16652014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1666
1667 * array-notation-common.c, c-cilkplus.c: Use the standard form for
1668 the copyright notice.
1669
f2aa696b
EB
16702013-12-28 Eric Botcazou <ebotcazou@adacore.com>
1671
1672 * c-ada-spec.c (print_constructor): New function.
1673 (print_destructor): Retrieve the origin of the destructor.
1674 (print_ada_declaration): Revamp handling of constructors/destructors.
1675
1f26ac87
JM
16762013-12-23 Stuart Hastings <stuart@apple.com>
1677 Bill Maddox <maddox@google.com>
1678 Jason Merrill <jason@redhat.com>
1679
1680 * c.opt: Add -fdeclone-ctor-dtor.
1681 * c-opts.c (c_common_post_options): Default to on iff -Os.
1682
41958c28
BI
16832013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1684
1685 * c-common.c (c_common_attribute_table): Added "cilk simd function"
1686 attribute.
1687 * c-pragma.h (enum pragma_cilk_clause): Remove.
1688 (enum pragma_omp_clause): Added the following fields:
1689 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1690 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1691 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1692 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1693 PRAGMA_CILK_CLAUSE_UNIFORM.
1694
1695
12893402
BI
16962013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1697
1698 * cilk.c (cilk_outline): Made this function non-static.
1699 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1700 (create_cilk_wrapper): Added a new parameter: a function pointer.
1701 (c_install_body_w_frame_cleanup): Remove
1702 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1703 * c-common.h (cilk_outline): New prototype.
1704 (gimplify_cilk_spawn): Removed two parameters.
1705 (cilk_install_body_with_frame_cleanup): New prototype.
1706 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1707 CILK_SPAWN_STMT case.
1708
085b42ed
BS
17092013-12-11 Bernd Schmidt <bernds@codesourcery.com>
1710
2ce064c3
BS
1711 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1712
085b42ed
BS
1713 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1714 (int_array_type_node): Remove.
1715 * c-common.c (c_common_nodes_and_builtins): Don't build it.
1716
9e36c9ed
MP
17172013-12-05 Marek Polacek <polacek@redhat.com>
1718
1719 PR c/52023
1720 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1721 [ADJUST_FIELD_ALIGN].
1722
296674db
JM
17232013-12-04 Joseph Myers <joseph@codesourcery.com>
1724
1725 PR c/52023
1726 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1727 and check field alignment if set.
1728 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1729 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1730
31e071ae
MP
17312013-12-04 Jakub Jelinek <jakub@redhat.com>
1732 Marek Polacek <polacek@redhat.com>
1733
1734 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1735 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1736
d7947e19
L
17372013-11-29 H.J. Lu <hongjiu.lu@intel.com>
1738
1739 PR c/59309
1740 * cilk.c (gimplify_cilk_spawn): Properly handle function without
1741 arguments.
1742
fad7652e
JJ
17432013-11-29 Jakub Jelinek <jakub@redhat.com>
1744
1745 PR c/59280
1746 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1747 goto invalid. If it is error_mark_node, don't issue further
1748 diagnostics.
1749
8b5e1202
SO
17502013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1751
1752 * c.opt (Wopenmp-simd): New.
1753
0a508bb6
JJ
17542013-11-22 Jakub Jelinek <jakub@redhat.com>
1755
1756 * c-ubsan.h (ubsan_instrument_return): New prototype.
1757 * c-ubsan.c (ubsan_instrument_return): New function.
1758
2fb9a547
AM
17592013-11-22 Andrew MacLeod <amacleod@redhat.com>
1760
1761 * c-common.c: Add required include files from gimple.h.
1762 * c-gimplify.c: Likewise
1763 * cilk.c: Likewise
1764
8400e75e
DM
17652013-11-22 David Malcolm <dmalcolm@redhat.com>
1766
1767 * c-common.c (unsafe_conversion_p): Remove use of
1768 EXPR_LOC_OR_HERE macro.
1769 (conversion_warning): Likewise.
1770 (warnings_for_convert_and_check): Likewise.
1771 (warn_for_collisions_1): Likewise.
1772 (shorten_compare): Likewise, and remove use of in_system_header
1773 macro, using the location from the former.
1774 * c-lex.c (dump_one_header): Remove use of input_filename macro.
1775 (cb_def_pragma): Remove use of in_system_header macro.
1776 (lex_string): Likewise.
1777 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1778
eb1ce453
KZ
17792013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1780 Mike Stump <mikestump@comcast.net>
1781 Richard Sandiford <rdsandiford@googlemail.com>
1782
1783 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1784 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1785 tree_fits_shwi_p or tree_fits_uhwi_p.
1786 (dump_generic_ada_node): Likewise.
1787 * c-format.c (check_format_arg): Likewise.
1788 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1789
6b3b8c27
KZ
17902013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1791
1792 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1793
49b0aa18
JC
17942013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
1795
1796 PR c/53001
1797 * c-common.c (unsafe_conversion_p): Make this function
1798 return an enumeration with more detail.
1799 (conversion_warning): Use the new return type of
1800 unsafe_conversion_p to separately warn either about conversions
1801 that lower floating point number precision or about the other
1802 kinds of conversions.
1803 * c-common.h (enum conversion_safety): New enumeration.
1804 (unsafe_conversion_p): switching return type to
1805 conversion_safety enumeration.
1806 * c.opt: Adding new warning -Wfloat-conversion and
1807 enabling it with -Wconversion.
1808
b826515a
BS
18092013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
1810
1811 * c-opts.c: Include plugin.h.
1812 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1813
b9a55b13
MP
18142013-11-19 Marek Polacek <polacek@redhat.com>
1815
1816 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1817 call.
1818 (ubsan_instrument_shift): Likewise.
1819 (ubsan_instrument_vla): Likewise.
1820
7d362f6c
RS
18212013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1822
1823 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1824 cast to unsigned type.
1825
386b1f1f
RS
18262013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1827
1828 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1829 tree_low_cst.
1830 (complete_array_type): Update comment to refer to tree_to_[su]hwi
1831 rather than tree_low_cst.
1832
ae7e9ddd
RS
18332013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1834
1835 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1836 tree_to_uhwi throughout.
1837
9439e9a1
RS
18382013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1839
1840 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1841 tree_low_cst (..., 0) with tree_to_shwi throughout.
1842
cc269bb6
RS
18432013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1844
1845 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1846 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1847
9541ffee
RS
18482013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1849
1850 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1851 host_integerp (..., 0) with tree_fits_shwi_p throughout.
1852
c02065fc
AH
18532013-11-15 Aldy Hernandez <aldyh@redhat.com>
1854
1855 * c-cilkplus.c: New file.
1856 * c-common.c (readonly_error): Add location argument.
1857 * c-common.h (readonly_error): Same.
1858 (c_finish_cilk_clauses): Protoize.
1859 (c_check_cilk_loop): Same.
1860 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1861 Do not fail on error_mark_node.
1862 Abstract increment canonicalization to here...
1863 (c_omp_for_incr_canonicalize_ptr): New.
1864 c-pragma.c (init_pragma): Register "simd" pragma.
1865 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1866 (enum pragma_cilk_clause): New.
1867
9cc65f15
RS
18682013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
1869
1870 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1871 wchar_type and host_integerp checks.
1872
18f429e2
AM
18732013-11-14 Andrew MacLeod <amacleod@redhat.com>
1874
1875 * c-common.c: Likewise.
1876 * c-gimplify.c: Likewise.
1877 * cilk.c: Likewise.
1878
d8a2d370
DN
18792013-11-14 Diego Novillo <dnovillo@google.com>
1880
1881 * c-common.c: Include fold-const.h.
1882 Include stor-layout.h.
1883 Include calls.h.
1884 Include stringpool.h.
1885 Include attribs.h.
1886 Include varasm.h.
1887 Include trans-mem.h.
1888 * c-cppbuiltin.c: Include stor-layout.h.
1889 Include stringpool.h.
1890 * c-format.c: Include stringpool.h.
1891 * c-lex.c: Include stringpool.h.
1892 Include stor-layout.h.
1893 * c-pragma.c: Include stringpool.h.
1894 Include attribs.h.
1895 Include varasm.h.
1896 Include gcc-symtab.h.
1897 * c-pretty-print.c: Include stor-layout.h.
1898 Include attribs.h.
1899 * cilk.c: Include stringpool.h.
1900 Include calls.h.
1901
38b7bc7f
JM
19022013-11-13 Joseph Myers <joseph@codesourcery.com>
1903
1904 * c-common.h (enum rid): Add RID_AUTO_TYPE.
1905 * c-common.c (c_common_reswords): Add __auto_type.
1906 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1907
45b0be94
AM
19082013-11-12 Andrew MacLeod <amacleod@redhat.com>
1909
18f429e2
AM
1910 * c-common.c: Include gimplify.h.
1911 * c-gimplify.c: Likewise.
1912 * cilk.c: Likewise.
1913 * c-omp.c: Include gimple-expr.h instead of gimple.h.
1914 * c-ubsan.c: Don't include gimple.h.
45b0be94 1915
582d9b50
JM
19162013-11-12 Joseph Myers <joseph@codesourcery.com>
1917
1918 * c-common.c (c_common_reswords): Add _Thread_local.
1919
6b28e197
JM
19202013-11-09 Joseph Myers <joseph@codesourcery.com>
1921
1922 * c-common.c (atomic_size_supported_p): New function.
1923 (resolve_overloaded_atomic_exchange)
1924 (resolve_overloaded_atomic_compare_exchange)
1925 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1926 Use it instead of comparing size with a local list of sizes.
1927
267bac10
JM
19282013-11-07 Andrew MacLeod <amacleod@redhat.com>
1929 Joseph Myers <joseph@codesourcery.com>
1930
1931 * c-common.h (enum rid): Add RID_ATOMIC.
1932 * c-common.c (c_common_reswords): Add _Atomic.
1933 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1934 (keyword_is_type_qualifier): Accept RID_ATOMIC.
1935 * c-format.c (check_format_types): Check for extra _Atomic
1936 qualifiers in format argument.
1937 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1938 (pp_c_type_qualifier_list): Mention _Atomic in comment.
1939
5157b91e
TB
19402013-11-06 Tobias Burnus <burnus@net-b.de>
1941
1942 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1943
6dbe0958
JM
19442013-11-06 Joseph Myers <joseph@codesourcery.com>
1945
1946 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1947 standards modes.
1948 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1949 to mean lack of IEEE 754 support.
1950
e8ff5196
TB
19512013-11-05 Tobias Burnus <burnus@net-b.de>
1952
1953 * c.opt (-Wdate-time): New option
1954 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1955
254a0760
JM
19562013-11-05 Joseph Myers <joseph@codesourcery.com>
1957
1958 * c-cppbuiltin.c (cpp_iec_559_value): Test
1959 flag_excess_precision_cmdline not flag_excess_precision.
1960
6d7f7e0a
TB
19612013-11-05 Tobias Burnus <burnus@net-b.de>
1962
1963 * c.opt (fopenmp-simd): New option.
1964 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1965 (omp_pragmas): ... this new struct.
1966 (c_pp_lookup_pragma): Also walk omp_pragmas.
1967 (init_pragma): Init pragmas for -fopenmp-simd.
1968
55a7f02f
MP
19692013-11-04 Marek Polacek <polacek@redhat.com>
1970
1971 PR c++/58979
1972 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1973
9193fb05
JM
19742013-11-04 Joseph Myers <joseph@codesourcery.com>
1975
1976 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1977 New functions.
1978 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1979
94159ecf
EB
19802013-11-04 Eric Botcazou <ebotcazou@adacore.com>
1981
1982 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1983 (dump_ada_specs): Adjust prototype of second callback.
1984 * c-ada-spec.c (cpp_check): New global variable.
1985 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1986 (print_generic_ada_decl): Likewise.
1987 (has_static_fields): Change return type to bool and add guard.
1988 (has_nontrivial_methods): New predicate.
1989 (is_tagged_type): Change return type to bool.
1990 (separate_class_package): Call has_nontrivial_methods.
1991 (pp_ada_tree_identifier): Minor tweaks.
1992 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1993 (dump_ada_array_domains): Likewise.
1994 (dump_ada_array_type): Likewise.
1995 (dump_template_types): Remove cpp_check parameter and do not pass it to
1996 dump_generic_ada_node.
1997 (dump_ada_template): Likewise.
1998 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1999 recursively.
2000 (print_ada_methods): Change return type to integer. Remove cpp_check
2001 parameter and do not pass it down.
2002 (dump_nested_types): Remove cpp_check parameter and do not pass it to
2003 dump_generic_ada_node.
2004 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
2005 accessing methods.
2006 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
2007 down. Use has_nontrivial_methods to recognize C++ classes. Use return
2008 value of print_ada_methods.
2009 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
2010 Set cpp_check to it before invoking dump_ada_nodes.
2011 (dump_ada_specs): Likewise.
2012
b906f4ca
MP
20132013-11-03 Marek Polacek <polacek@redhat.com>
2014
2015 * c-ubsan.c: Don't include hash-table.h.
2016 (ubsan_instrument_vla): New function.
2017 * c-ubsan.h: Declare it.
2018
5e20cdc9
DM
20192013-10-31 David Malcolm <dmalcolm@redhat.com>
2020
2021 Automated part of renaming of symtab_node_base to symtab_node.
2022
2023 Patch autogenerated by rename_symtab.py from
2024 https://github.com/davidmalcolm/gcc-refactoring-scripts
2025 revision 58bb219cc090b2f4516a9297d868c245495ee622
2026
2027 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
2028 symtab_node_base to symtab_node.
2029
7057e645
ESR
20302013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
2031
2032 Implement C++14 digit separators.
2033 * c-lex.c (interpret_float): Remove digit separators from scratch string
2034 before building real literal.
2035
193ea7bc
JJ
20362013-10-30 Jakub Jelinek <jakub@redhat.com>
2037
2038 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
2039
939b37da
BI
20402013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
2041
2042 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
2043 fields.
2044 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
2045 enabled.
2046 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
2047 (insert_cilk_frame): New prototype.
2048 (cilk_init_builtins): Likewise.
2049 (gimplify_cilk_spawn): Likewise.
2050 (c_cilk_install_body_w_frame_cleanup): Likewise.
2051 (cilk_detect_spawn_and_unwrap): Likewise.
2052 (cilk_set_spawn_marker): Likewise.
2053 (build_cilk_sync): Likewise.
2054 (build_cilk_spawn): Likewise.
2055 * cilk.c: New file.
2056
67348ccc
DM
20572013-10-29 David Malcolm <dmalcolm@redhat.com>
2058
2059 Patch autogenerated by refactor_symtab.py from
2060 https://github.com/davidmalcolm/gcc-refactoring-scripts
2061 revision 58bb219cc090b2f4516a9297d868c245495ee622
2062
2063 * c-gimplify.c (c_genericize): Update for conversion of symtab types
2064 to a true class hierarchy.
2065 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2066
d570872d
RS
20672013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
2068
2069 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2070
98906124
JL
20712013-10-26 Jeff Law <law@redhat.com>
2072
adfac8df
JJ
2073 * c-common.c (c_define_builtins): Remove mudflap support.
2074 * c.opt: Ignore and warn for mudflap options.
98906124 2075
d73749df 20762013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
2077
2078 PR other/33426
2079 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2080 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2081
3f04b1bb
JM
20822013-10-23 Jason Merrill <jason@redhat.com>
2083
2084 * c-format.c (gcc_cxxdiag_char_table): Add %X.
2085
acf0174b
JJ
20862013-10-11 Jakub Jelinek <jakub@redhat.com>
2087
acd15a28
JJ
2088 * c-common.h (omp_clause_mask::operator !=): New method.
2089 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2090 instead of if (mask & something) tests everywhere.
2091
acf0174b
JJ
2092 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2093 201307 instead of 201107.
2094 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2095 (c_common_attribute_table): Add "omp declare target" and
2096 "omp declare simd" attributes.
2097 (handle_omp_declare_target_attribute,
2098 handle_omp_declare_simd_attribute): New functions.
2099 * c-omp.c: Include c-pragma.h.
2100 (c_finish_omp_taskgroup): New function.
2101 (c_finish_omp_atomic): Add swapped argument, if true,
2102 build the operation first with rhs, lhs arguments and use NOP_EXPR
2103 build_modify_expr.
2104 (c_finish_omp_for): Add code argument, pass it down to make_code.
2105 (c_omp_split_clauses): New function.
2106 (c_split_parallel_clauses): Removed.
2107 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2108 c_omp_declare_simd_clauses_to_decls): New functions.
2109 * c-common.h (omp_clause_mask): New type.
2110 (OMP_CLAUSE_MASK_1): Define.
2111 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2112 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2113 omp_clause_mask::operator |, omp_clause_mask::operator &,
2114 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2115 omp_clause_mask::operator ==): New methods.
2116 (enum c_omp_clause_split): New.
2117 (c_finish_omp_taskgroup): New prototype.
2118 (c_finish_omp_atomic): Add swapped argument.
2119 (c_finish_omp_for): Add code argument.
2120 (c_omp_split_clauses): New prototype.
2121 (c_split_parallel_clauses): Removed.
2122 (c_omp_declare_simd_clauses_to_numbers,
2123 c_omp_declare_simd_clauses_to_decls): New prototypes.
2124 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2125 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2126 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2127 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2128 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2129 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2130 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2131 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2132 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2133 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2134 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2135 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2136 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2137 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2138 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2139 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2140 PRAGMA_OMP_CLAUSE_UNIFORM.
2141
826cacfe
MG
21422013-10-09 Marc Glisse <marc.glisse@inria.fr>
2143
2144 PR tree-optimization/20318
2145 * c-common.c (handle_returns_nonnull_attribute): New function.
2146 (c_common_attribute_table): Add returns_nonnull.
2147
2284b034
MG
21482013-10-03 Marc Glisse <marc.glisse@inria.fr>
2149
2150 PR c++/19476
2151 * c.opt (fcheck-new): Move to common.opt.
2152
b56e9788
MP
21532013-09-25 Marek Polacek <polacek@redhat.com>
2154 Jakub Jelinek <jakub@redhat.com>
2155
2156 PR sanitizer/58413
2157 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2158 an expression if we can prove it is correct.
2159 (ubsan_instrument_division): Likewise. Remove unnecessary
2160 check.
2161
ce6923c5
MP
21622013-09-18 Marek Polacek <polacek@redhat.com>
2163
2164 PR sanitizer/58411
2165 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2166 Declare it.
2167 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2168
fb5610fb
IS
21692013-09-14 Iain Sandoe <iain@codesourcery.com>
2170
2171 PR target/48094
2172 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2173 fobjc-gc, freplace-objc-classes): Accept for LTO.
2174
88b0e79e
JC
21752013-09-13 Jacek Caban <jacek@codeweavers.com>
2176
2177 * c-target.def: New hook
2178
c9b0866a
PC
21792013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2180
2181 PR c++/43452
2182 * c.opt (Wdelete-incomplete): Add.
2183
0af94e6f
JR
21842013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2185
2186 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2187 (vector_types_compatible_elements_p): New function.
2188 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2189 declaration.
2190 (vector_types_compatible_elements_p): Declare.
2191
7c26172c
GDR
21922013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2193
2194 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2195 a virtual member function.
2196 (pp_simple_type_specifier): Remove.
2197 (pp_c_type_specifier): Likewise.
2198 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2199 Rename from pp_c_type_specifier. Adjust.
2200 (c_pretty_printer::c_pretty_printer): Do not assign to
2201 simple_type_specifier.
2202
20059c8b
GDR
22032013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2204
2205 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2206 member function.
2207 (c_pretty_printer::storage_class_specifier): Likewise.
2208 (c_pretty_printer::initializer): Likewise.
2209 (pp_declaration): Remove.
2210 (pp_declaration_specifiers): Likewise.
2211 (pp_abstract_declarator): Likewise.
2212 (pp_declarator): Likewise.
2213 (pp_type_id): Likewise.
2214 (pp_statement): Likewise.
2215 (pp_constant): Likewise.
2216 (pp_id_expression): Likewise.
2217 (pp_primary_expression): Likewise.
2218 (pp_unary_expression): Likewise.
2219 (pp_multiplicative_expression): Likewise.
2220 (pp_conditional_expression): Likewise.
2221 (pp_assignment_expression): Likewise.
2222 (pp_expression): Likewise.
2223 (pp_c_type_id): Likewise.
2224 (pp_c_storage_class_specifier): Likewise.
2225 * c-pretty-print.c (pp_c_type_cast): Tidy.
2226 (pp_c_pointer): Likewise.
2227 (pp_c_type_specifier): Likewise.
2228 (pp_c_parameter_type_list): Likewise.
2229 (pp_c_function_definition): Likewise.
2230 (pp_c_init_declarator): Likewise.
2231 (pp_c_initializer_list): Likewise.
2232 (pp_c_constructor_elts): Likewise.
2233 (c_pretty_printer::direct_abstract_declarator): Likewise.
2234 (c_pretty_printer::declaration_specifiers): Likewise.
2235 (c_pretty_printer::primary_expression): Likewise.
2236 (c_pretty_printer::postfix_expression): Likewise.
2237 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2238 (c_pretty_printer::storage_class_specifier): Rename from
2239 pp_c_storage_class_specifier.
2240 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2241 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2242 storage_class_specifier, initializer, offset_list, flags.
2243
de5a5fa1
MP
22442013-08-30 Marek Polacek <polacek@redhat.com>
2245
2246 * c-ubsan.c: New file.
2247 * c-ubsan.h: New file.
2248
8f0e4d72
GDR
22492013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2250
2251 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2252 member function.
2253 (c_pretty_printer::declaration_specifiers): Likewise.
2254 (c_pretty_printer::declarator): Likewise.
2255 (c_pretty_printer::abstract_declarator): Likewise.
2256 (c_pretty_printer::direct_abstract_declarator): Likewise.
2257 (c_pretty_printer::direct_declarator): Likewise.
2258 (c_pretty_printer::function_specifier): Likewise.
2259 (pp_declaration): Adjust.
2260 (pp_declaration_specifiers): Likewise.
2261 (pp_abstract_declarator): Likewise.
2262 (pp_direct_declarator): Likewise.
2263 (pp_function_specifier): Likewise.
2264 (pp_direct_abstract_declarator): Remove as unused.
2265 (pp_c_declaration): Remove.
2266 (pp_c_declaration_specifiers): Likewise.
2267 (pp_c_declarator): Likewise.
2268 (pp_c_direct_declarator): Likewise.
2269 (pp_c_function_specifier): Likewise.
2270 (pp_c_direct_abstract_declarator): Likewise.
2271 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2272 from pp_c_abstract_declarator. Adjust.
2273 (c_pretty_printer::direct_abstract_declarator): Rename from
2274 pp_c_direct_abstract_declarator. Adjust.
2275 (c_pretty_printer::function_specifier): Rename from
2276 pp_c_function_specifier. Adjust.
2277 (c_pretty_printer::declaration_specifiers): Rename from
2278 pp_c_declaration_specifiers. Adjust.
2279 (c_pretty_printer::direct_declarator): Rename from
2280 pp_c_direct_declarator. Adjust.
2281 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
2282 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
2283 (c_pretty_printer::c_pretty_printer): Do not assign to
2284 declaration, declaration_specifiers, declarator,
2285 direct_declarator, direct_abstract_declarator, function_specifier.
2286
00d34d3a
GDR
22872013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
2288
2289 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2290 virtual member function.
2291 (c_pretty_printer::multiplicative_expression): Likewise.
2292 (c_pretty_printer::conditional_expression): Likewise.
2293 (c_pretty_printer::assignment_expression): Likewise.
2294 (c_pretty_printer::expression): Likewise.
2295 (pp_unary_expression): Adjust.
2296 (pp_multiplicative_expression): Likewise.
2297 (pp_assignment_expression): Likewise.
2298 (pp_conditional_expression): Likewise.
2299 (pp_expression): Likewise.
2300 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2301 from pp_c_unary_expression. Adjust.
2302 (c_pretty_printer::multiplicative_expression): Rename from
2303 pp_c_multiplicative_expression. Adjust.
2304 (c_pretty_printer::conditional_expression): Rename from
2305 pp_c_conditional_expression. Adjust.
2306 (c_pretty_printer::assignment_expression): Rename from
2307 pp_c_assignment_expression. Adjust.
2308 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
2309 (c_pretty_printer::c_pretty_printer): Do not assign to
2310 unary_expression, multiplicative_expression,
2311 conditional_expression, expression.
2312
fb22178f
GDR
23132013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2314
2315 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2316 virtual member function.
2317 (pp_postfix_expression): Adjust.
2318 (pp_c_postfix_expression): Remove.
2319 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2320 from pp_c_postfix_expression. Adjust.
2321 (c_pretty_printer::c_pretty_printer): Do not assign to
2322 postfix_expression.
2323
7ecc2600
GDR
23242013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2325
2326 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2327 virtua member function.
2328 (pp_primary_expression): Adjust.
2329 (pp_c_primary_expression): Remove.
2330 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2331 from pp_c_primary_expression. Adjust.
2332 (pp_c_initializer_list): Use pp_primary_expression.
2333 (c_pretty_printer::c_pretty_printer): Do not assign to
2334 primary_expression.
2335
0691175f
GDR
23362013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2337
2338 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2339 * c-pretty-print.c (M_): Remove.
2340 (c_pretty_printer::translate_string): Define.
2341 (pp_c_type_specifier): Use it.
2342 (pp_c_primary_expression): Likewise.
2343 (pp_c_expression): Likewise.
2344
66dfe4c4
GDR
23452013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2346
2347 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2348 virtual function.
2349 (pp_c_id_expression): Remove.
2350 (pp_id_expression): Adjust.
2351 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2352 pp_c_id_expression. Adjust.
2353 (pp_c_postfix_expression): Use pp_id_expression.
2354 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2355
ca43e9d5
GDR
23562013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2357
2358 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2359 member function.
2360 (pp_constant): Adjust.
2361 (pp_c_constant): Remove.
2362 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2363 pp_c_constant. Adjust.
2364 (pp_c_constant)
2365 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2366 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2367
da6ca2b5
GDR
23682013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2369
2370 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2371 (c_pretty_printer::c_pretty_printer): Declare.
2372 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2373 c_pretty_printer_init. Adjust.
2374 (print_c_tree): Do not call c_pretty_printer_init.
2375 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2376
65a372f4
AC
23772013-08-09 Arnaud Charlet <charlet@adacore.com>
2378
2379 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2380
fd9b0f32
PC
23812013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
2382
2383 PR c++/58080
2384 * c-common.c (pointer_int_sum): Add bool parameter.
2385 * c-common.h (pointer_int_sum): Adjust declaration.
2386
e0aec1e9
GDR
23872013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2388
2389 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2390 c_pretty_printer variable.
2391
b066401f
GDR
23922013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2393
2394 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2395 (pp_base): Remove.
2396 (pp_c_base): Likewise. Adjust users.
2397 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2398 (pp_c_whitespace): Do not call pp_base.
2399 (pp_c_left_paren): Likewise.
2400 (pp_c_right_paren): Likewise.
2401 (pp_c_left_brace): Likewise.
2402 (pp_c_right_brace): Likewise.
2403 (pp_c_left_bracket): Likewise.
2404 (pp_c_right_bracket): Likewise.
2405 (pp_c_dot): Likewise.
2406 (pp_c_ampersand): Likewise.
2407 (pp_c_star): Likewise.
2408 (pp_c_arrow): Likewise.
2409 (pp_c_semicolon): Likewise.
2410 (pp_c_complement): Likewise.
2411 (pp_c_exclamation): Likewise.
2412 (pp_c_direct_declarator): Likewise.
2413 (pp_c_ws_string): Likewise.
2414 (pp_c_identifier): Likewise.
2415 (pp_c_statement): Likewise.
2416 (print_c_tree): Likewise.
2417
65e5a578
ESR
24182013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2419
2420 PR c++/58072
2421 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2422 provide useful error strings.
2423
137a1a27
GDR
24242013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2425
2426 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2427 printer functions instead of pp_string or operators and punctuators.
2428 (dump_generic_ada_node): Likewise.
2429 * c-pretty-print.c (pp_c_type_specifier): Likewise.
2430 (pp_c_relational_expression): Likewise.
2431 (pp_c_logical_or_expression): Likewise.
2432
07838b13
GDR
24332013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2434
2435 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2436 functions instead of pp_character.
2437 (pp_ada_tree_identifier): Likewise.
2438 (dump_ada_double_name): Likewise.
2439 (dump_ada_function_declaration): Likewise.
2440 (dump_ada_array_domains): Likewise.
2441 (dump_template_types): Likewise.
2442 (dump_generic_ada_node): Likewise.
2443 (print_ada_declaration): Likewise.
2444 (print_ada_struct_decl): Likewise.
2445 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2446
433cc7b0
TT
24472013-07-23 Tom Tromey <tromey@redhat.com>
2448
2449 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2450 * c-common.c (c_common_reswords): Add _Generic.
2451
688010ba
OB
24522013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
2453
2454 * c-common.c: Fix typos.
2455 * c-common.h: Likewise.
2456
2a99e5e6
LL
24572013-07-13 Lubos Lunak <l.lunak@suse.cz>
2458
2459 PR c++/55203
2460 * c-common.c (c_common_attribute_table): Add warn_unused.
2461 (handle_warn_unused_attribute): New.
2462
c26302d5
JJ
24632013-07-10 Jakub Jelinek <jakub@redhat.com>
2464
2465 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2466 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2467
dfeadaa0
PC
24682013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
2469
2470 PR c++/57869
2471 * c.opt: Add Wconditionally-supported.
2472
6a2fa4b2
GS
24732013-07-08 Graham Stott <graham.stott@btinternet.com>
2474
adfac8df 2475 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
2476 unused variables l_length and l_node.
2477
ecdbd01a 24782013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
2479
2480 PR c/57821
2481 * c-common.c (complete_array_type): Delay folding first index
2482 like other indices. When folding, check for index overflow.
2483
bedc293e
MG
24842013-06-27 Marc Glisse <marc.glisse@inria.fr>
2485
2486 PR c++/57509
2487 * c-common.h (c_build_vec_perm_expr): New complain argument.
2488 * c-common.c (c_build_vec_perm_expr): Likewise.
2489 Use save_expr also in C++.
2490
604b2bfc
GDR
24912013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2492
2493 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2494 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2495 * c-opts.c (c_common_post_options): Likewise.
2496
dfeadaa0 24972013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
2498
2499 * array-notation-common.c (length_mismatch_in_expr): Changed the
2500 parameter type's from a dynamic array to a vec_tree. Also removed
2501 the size parameters.
2502 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2503 the change above.
2504
2ce86d2e
BI
25052013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2506
2507 * c-common.h (struct cilkplus_an_parts): New structure.
2508 (struct cilkplus_an_loop_parts): Likewise.
2509 (cilkplus_extract_an_triplets): New prototype.
2510 (fix_sec_implicit_args): Likewise.
2511 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2512 (fix_sec_implicit_args): Likewise.
604b2bfc 2513
07a6825b
BI
25142013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2515
2516 * array-notation-common.c (find_inv_trees): Removed an unwanted
2517 typecasting.
2518 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2519 enum rid to enum tree_code.
2520
08346abd
JH
25212013-06-11 Jan Hubicka <jh@suse.cz>
2522
2523 * c-common.c (handle_alias_ifunc_attribute): Do not set
2524 DECL_EXTERNAL for weakref variables.
2525 * c-pragma.c (handle_pragma_weak): Make sure aliases
2526 are not declared as external.
2527
d60f1706
BI
25282013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2529
2530 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2531 function from c/c-array-notation.c.
2532 (is_cilkplus_reduce_builtin): Likewise.
2533 (find_rank): Likewise.
2534 (extract_array_notation_exprs): Likewise.
2535 (replace_array_notations): Likewise.
2536 (find_inv_trees): Likewise.
2537 (replace_inv_trees): Likewise.
2538 (contains_array_notation_expr): Likewise.
2539 (find_correct_array_notation_type): Likewise.
2540 * c-common.h (struct inv_list): Moved this struct from the file
2541 c/c-array-notation.c and added a new field called additional tcodes.
2542 (length_mismatch_in_expr_p): New prototype.
2543 (is_cilkplus_reduce_builtin): Likewise.
2544 (find_rank): Likewise.
2545 (extract_array_notation_exprs): Likewise.
2546 (replace_array_notation): Likewise.
2547 (find_inv_trees): Likewise.
2548 (replace_inv_trees): Likewise.
2549 (find_correct_array_notation_type): Likewise.
dfeadaa0 2550
36536d79
BI
25512013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2552
2553 * c-common.c (c_define_builtins): When cilkplus is enabled, the
2554 function array_notation_init_builtins is called.
2555 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2556 * c-common.def (ARRAY_NOTATION_REF): New tree.
2557 * c-common.h (build_array_notation_expr): New function declaration.
2558 (build_array_notation_ref): Likewise.
2559 (extract_sec_implicit_index_arg): New extern declaration.
2560 (is_sec_implicit_index_fn): Likewise.
2561 (ARRAY_NOTATION_CHECK): New define.
2562 (ARRAY_NOTATION_ARRAY): Likewise.
2563 (ARRAY_NOTATION_START): Likewise.
2564 (ARRAY_NOTATION_LENGTH): Likewise.
2565 (ARRAY_NOTATION_STRIDE): Likewise.
2566 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2567 ARRAY_NOTATION_REF.
2568 (pp_c_expression): Likewise.
2569 * c.opt (flag_enable_cilkplus): New flag.
2570 * array-notation-common.c: New file.
2571
f7716d57
JJ
25722013-05-14 Jakub Jelinek <jakub@redhat.com>
2573
2574 PR c++/57274
2575 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2576
a5e0cd1d
MG
25772013-05-10 Marc Glisse <marc.glisse@inria.fr>
2578
2579 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2580 vectors.
2581
f6bc1c4a
HS
25822013-05-07 Han Shen <shenhan@google.com>
2583
2584 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2585
3f12f6e9
SKS
25862013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2587
2588 * c-common.c (check_user_alignment): Emit error for negative values.
2589
61949153
PC
25902013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2591
2592 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2593
e93e18e9
PC
25942013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2595
2596 * c-cppbuiltin.c (c_cpp_builtins): Do not define
2597 __GXX_EXPERIMENTAL_CXX1Y__.
2598
44d90fe1
PC
25992013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2600 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2601
2602 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2603 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2604 to simply use OPT_Wpointer_arith.
2605 (c_sizeof_or_alignof_type): Likewise.
2606
13f39b2e
PC
26072013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2608
2609 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2610
4b84d650
JJ
26112013-04-12 Jakub Jelinek <jakub@redhat.com>
2612
2613 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2614 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2615 specifiers.
2616
fb037b5d
SB
26172013-04-07 Steven Bosscher <steven@gcc.gnu.org>
2618
2619 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2620
4e856798
PC
26212013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
2622
2623 * c-common.c (pointer_int_sum): Remove dead code.
2624
4b1baac8
RS
26252013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2626
2627 PR middle-end/56524
2628 * c-common.c (handle_optimize_attribute): Don't call
2629 save_optabs_if_changed.
2630
0b50e654
JJ
26312013-03-05 Jakub Jelinek <jakub@redhat.com>
2632
2633 PR middle-end/56461
2634 * c-pch.c (pch_init): Free target_validity at the end.
2635
48c41403
JJ
26362013-03-04 Jakub Jelinek <jakub@redhat.com>
2637
2638 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2639
e664c61c
KS
26402013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2641 Jakub Jelinek <jakub@redhat.com>
2642
2643 PR sanitizer/56454
2644 * c-common.c (handle_no_sanitize_address_attribute): New function.
2645 (c_common_attribute_table): Add no_sanitize_address attribute.
2646 (handle_no_address_safety_analysis_attribute): Add
2647 no_sanitize_address attribute, not no_address_safety_analysis
2648 attribute.
2649
a475fd3d 26502013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
2651
2652 PR target/52555
2653 * c-common.c (handle_optimize_attribute): Call
2654 save_optabs_if_changed.
2655
f6007d99
JJ
26562013-02-18 Jakub Jelinek <jakub@redhat.com>
2657 Steven Bosscher <steven@gcc.gnu.org>
2658
2659 PR pch/54117
2660 * c-opts.c (c_common_post_options): If debug info is enabled
2661 and non-dwarf*, refuse to load PCH files and when writing PCH
2662 file warn.
2663
cf35e2b1
JJ
26642013-02-05 Jakub Jelinek <jakub@redhat.com>
2665
2666 PR middle-end/56167
2667 * c-common.c (handle_error_attribute): Fix condition.
2668
32887460
JJ
26692013-01-30 Jakub Jelinek <jakub@redhat.com>
2670
2671 PR c++/55742
2672 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2673
5af057d8
JM
26742013-01-18 Jason Merrill <jason@redhat.com>
2675
2676 PR target/54908
2677 * c.opt (-fextern-tls-init): New.
2678 * c-opts.c (c_common_post_options): Handle it.
2679
cc83c823
JJ
26802013-01-09 Jakub Jelinek <jakub@redhat.com>
2681
2682 PR c/48418
2683 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2684 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2685 and is either negative or bigger or equal to type precision
2686 of the first operand.
2687
a859517f
MP
26882012-12-03 Marek Polacek <polacek@redhat.com>
2689
2690 PR c/55570
2691 * c-common.c (check_user_alignment): Swap order of tests,
2692 check TREE_CODE first.
2693
2d7aa578
ESR
26942012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
2695
2696 PR c++/52654
2697 * c-common.h (overflow_type): New enum.
2698 (build_userdef_literal): Add overflow_type argument.
2699 (tree_userdef_literal): Add overflow_type.
2700 (USERDEF_LITERAL_OVERFLOW): New access macro.
2701 * c-common.c (build_userdef_literal): Add overflow_type
2702 argument.
2703 * c-lex.c (c_lex_with_flags): Add overflow_type to
2704 build_userdef_literal calls.
2705 (interpret_integer, interpret_float): Add overflow_type argument.
2706
cc3c4f62
RB
27072012-11-28 Richard Biener <rguenther@suse.de>
2708
2709 PR c/35634
2710 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2711 here and use a type with proper overflow behavior for types that would
2712 need to be promoted for the arithmetic.
2713
77bc5132
JJ
27142012-11-23 Jakub Jelinek <jakub@redhat.com>
2715
2716 PR sanitizer/55435
2717 * c-common.c (handle_no_address_safety_analysis_attribute): New
2718 function.
2719 (c_common_attribute_table): Add no_address_safety_analysis.
2720
5dc99c46
SB
27212012-11-16 Simon Baldwin <simonb@google.com>
2722
2723 * c.opt: Add f[no-]canonical-system-headers.
2724 * c-opts.c (c_common_handle_option): Handle
2725 OPT_fcanonical_system_headers.
2726
a4a0016d
ESR
27272012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
2728
2729 PR c++/54413
2730 * c-opts.c (c_common_handle_option): Set new flags.
2731 * c.opt: Describe new flags.
2732
7dbb85a7
JM
27332012-11-09 Jason Merrill <jason@redhat.com>
2734
2735 * c.opt (Wabi-tag): New.
2736
ad7bac31
AK
27372012-11-09 Andi Kleen <ak@linux.intel.com>
2738
2739 PR 55139
2740 * c-common.c (get_atomic_generic_size): Mask with
2741 MEMMODEL_MASK
2742
7332899a
MLI
27432012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2744
2745 PR c/53063
2746 * c.opt (Wformat): Make it Alias Wformat=1.
2747 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2748 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2749 LangEnabledBy.
2750 (Wformat=): RejectNegative. Use LangEnabledBy.
2751 (Wnonnull): Use LangEnabledBy.
2752 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2753 * c-format.c (set_Wformat): Delete.
2754 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2755 (maybe_read_dollar_number): Likewise.
2756 (avoid_dollar_number): Likewise.
2757 (finish_dollar_format_checking): Likewise.
2758 (check_format_info): Likewise.
2759 (check_format_info_main): Likewise.
2760 (check_format_types): Likewise.
2761 (format_type_warning): Likewise.
2762 * c-common.c (int): Likewise.
2763 (check_function_sentinel): Likewise.
2764 * c-common.h (warn_format,set_Wformat): Do not declare here.
2765
34a180a6
MLI
27662012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2767
2768 PR c/53063
2769 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2770 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2771 Use LangEnabledBy.
2772 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2773 common.opt.
2774 (Wvariadic-macros): Init(1).
2775 * c-opts.c (c_common_handle_option): Do not handle them
2776 explicitly.
2777 (c_common_post_options): Likewise.
2778 (sanitize_cpp_opts): warn_unused_macros is now
2779 cpp_warn_unused_macros.
2780 (push_command_line_include): Likewise.
2781 * c-common.c (warn_unknown_pragmas): Do not define.
2782 * c-common.h (warn_unknown_pragmas): Do not declare.
2783
3f46d6a5
MLI
27842012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2785
2786 PR c/51294
2787 * c-common.c (conversion_warning): Handle conditional expressions.
2788
880661a4
JW
27892012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2790
2791 PR c++/54930
2792 * c.opt (Wreturn_local_addr): Define new option.
2793
4514a96b
JM
27942012-10-25 Jason Merrill <jason@redhat.com>
2795
f14edc1a
JM
2796 * c.opt (Wvirtual-move-assign): New.
2797
4514a96b
JM
2798 * c.opt (Winherited-variadic-ctor): New.
2799
93100c6b
MG
28002012-10-25 Marc Glisse <marc.glisse@inria.fr>
2801
2802 PR c++/54427
2803 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2804
1efcb8c6
JM
28052012-10-23 Joseph Myers <joseph@codesourcery.com>
2806
2807 * c-common.h (pch_cpp_save_state): Declare.
2808 * c-target.def (c_preinclude): New hook.
2809 * c-opts.c (done_preinclude): New.
2810 (push_command_line_include): Handle default preincluded header.
2811 (cb_file_change): Call pch_cpp_save_state when calling
2812 push_command_line_include.
2813 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2814 (pch_cpp_save_state): New.
2815 (pch_init): Call pch_cpp_save_state conditionally, instead of
2816 calling cpp_save_state.
2817
4a0ae68e
MLI
28182012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2819
2820 PR c/53063
2821 PR c/40989
2822 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2823 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2824 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2825 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2826 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2827 * c-opts.c (c_common_handle_option): Remove explicit handling from
2828 here.
2829 (c_common_post_options): Likewise.
2830
67e4210b
EB
28312012-10-18 Eric Botcazou <ebotcazou@adacore.com>
2832
2833 * c-ada-spec.c (LOCATION_COL): Delete.
2834 (compare_location): New function.
2835 (compare_node): Use it.
2836 (compare_comment): Likewise.
2837
65d4f2cd
MLI
28382012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2839
2840 PR c/53063
2841 PR c/40989
2842 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2843 * c-opts.c (c_common_handle_option): Do not set them here. Add
2844 comment.
2845 (c_common_post_options): Likewise.
2846
909881cb
EB
28472012-10-16 Eric Botcazou <ebotcazou@adacore.com>
2848
2849 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2850 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2851 Remove POINTER_TYPE handling, add large unsigned handling and use
2852 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2853
3a785c97
JJ
28542012-10-12 Jakub Jelinek <jakub@redhat.com>
2855
2856 PR c/54381
2857 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2858 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2859 locs and array of 3 trees instead of just single loc and single
2860 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
2861 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2862 For *cmp* builtins that take two sources strings report warnings
2863 about first and second source, not about destination and source.
2864
5e54f81d
MG
28652012-10-12 Marc Glisse <marc.glisse@inria.fr>
2866
2867 PR c++/53055
2868 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2869
f5b02f1e
EB
28702012-10-11 Eric Botcazou <ebotcazou@adacore.com>
2871
2872 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2873 declaring something coming from another file.
2874
b46dbc6c
AC
28752012-10-10 Arnaud Charlet <charlet@adacore.com>
2876
f5b02f1e 2877 PR ada/54845
b46dbc6c
AC
2878 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2879
5d9de0d0
PC
28802012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2881
2882 PR c++/54194
2883 * c-common.c (warn_about_parentheses): Add location_t parameter;
2884 use EXPR_LOC_OR_LOC.
2885 * c-common.h: Update declaration.
2886
a212e43f
MG
28872012-10-09 Marc Glisse <marc.glisse@inria.fr>
2888
2889 PR c++/54427
2890 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2891 more operations. Make error messages optional.
2892 * c-common.h (enum stv_conv): Moved from c-typeck.c.
2893 (scalar_to_vector): Declare.
2894
b1db7f91
JM
28952012-10-08 Jason Merrill <jason@redhat.com>
2896
2897 * c-common.c (c_common_reswords): Add thread_local.
2898
e28d52cf
DS
28992012-10-08 Dodji Seketeli <dodji@redhat.com>
2900
2901 PR c++/53528 C++11 attribute support
2902 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2903 new functions.
2904 * c-common.c (check_cxx_fundamental_alignment_constraints): New
2905 static function.
2906 (handle_aligned_attribute): In choose strictest alignment
2907 among many. Use new check_cxx_fundamental_alignment_constraints.
2908 (handle_transparent_union_attribute): In c++11 attribute syntax,
2909 don't look through typedefs.
2910
3b78de56
AC
29112012-10-04 Arnaud Charlet <charlet@adacore.com>
2912
2913 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2914 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2915 out of dumpfile.h.
2916
6040bb5f
DC
29172012-09-25 Dehao Chen <dehao@google.com>
2918
2919 PR middle-end/54645
3b78de56 2920 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
2921 map when read in the pch.
2922
0b07a57e
AC
29232012-09-18 Arnaud Charlet <charlet@adacore.com>
2924
2925 * c-ada-spec.c: Style fixes.
2926
da5182be
TQ
29272012-09-18 Thomas Quinot <quinot@adacore.com>
2928
2929 * c.opt (-fada-spec-parent): Define new command line switch.
2930 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2931 is specified, generate binding spec as a child of the specified unit.
2932
0ccb505d
PC
29332012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
2934 Manuel López-Ibáñez <manu@gcc.gnu.org>
2935
2936 PR c++/53210
2937 * c.opt ([Winit-self]): Enabled by -Wall in C++.
2938
c583af79
AC
29392012-08-23 Arnaud Charlet <charlet@adacore.com>
2940
2941 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2942 for pointers, and add missing Convention C pragma.
2943 (print_ada_struct_decl): Add missing aliased keyword.
2944 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2945
1a4049e7
JJ
29462012-08-17 Jakub Jelinek <jakub@redhat.com>
2947
2948 * c-common.c (sizeof_pointer_memaccess_warning): New function.
2949 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2950 * c-opts.c (c_common_handle_option): Enable it for -Wall.
2951 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2952 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2953
70b5e7dc
RG
29542012-08-10 Richard Guenther <rguenther@suse.de>
2955
2956 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2957
f8923f7e
SB
29582012-08-07 Steven Bosscher <steven@gcc.gnu.org>
2959
2960 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2961 instead of separate pp_newline and pp_flush.
2962 (print_c_tree): Likewise.
2963
e45abe1f
RH
29642012-07-26 Richard Henderson <rth@redhat.com>
2965
2966 * c-common.c (handle_hot_attribute): Allow labels.
2967 (handle_cold_attribute): Likewise.
2968
332f1d24
JJ
29692012-07-20 Jakub Jelinek <jakub@redhat.com>
2970
2971 PR c++/28656
2972 * c-common.c (check_function_nonnull): Handle multiple nonnull
2973 attributes properly.
2974
7ee2468b
SB
29752012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2976
2977 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2978 * c-ada-spec.c: Likewise.
2979 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2980
ee7b28eb
SB
29812012-07-14 Steven Bosscher <steven@gcc.gnu.org>
2982
2983 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2984 Remove code conditional on it.
2985
6bdf3519
SB
29862012-07-11 Steven Bosscher <steven@gcc.gnu.org>
2987
2988 * c-gimplify.c: Do not include basic-block.h.
2989 * c-common.c: Do not include linfuncs.h.
2990
532aafad
SB
29912012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2992
2993 * c-common.h: Include tree.h.
2994
8d0d1915
JM
29952012-07-02 Jason Merrill <jason@redhat.com>
2996
2997 PR c++/53524
2998 * c-common.c (get_priority): Call default_conversion.
2999
fbc873ad
UB
30002012-07-01 Uros Bizjak <ubizjak@gmail.com>
3001
3002 * c-pch.c (c_common_write_pch): Remove unused variables.
3003
d4a10d0a
SB
30042012-06-29 Steven Bosscher <steven@gcc.gnu.org>
3005
3006 * cppspec.c: Moved from gcc/ to here.
3007
6f3a2e23
KT
30082012-06-27 Kai Tietz <ktietz@redhat.com>
3009
3010 PR preprocessor/37215
3011 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
3012
8ca92d04
SB
30132012-06-21 Steven Bosscher <steven@gcc.gnu.org>
3014
3015 * c-common.h (c_common_print_pch_checksum): Remove.
3016 * c-pch.c: Do not include output.h.
3017 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
3018 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
3019 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
3020 (struct c_pch_header): Remove.
3021 (get_ident): Update gpch version.
3022 (pch_init): Do not print executable_checksum to asm_out_file.
3023 Do not fail if there is no asm_out_file to read back from. Set
3024 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
3025 (c_common_write_pch): Verify that nothing was written to asm_out_file
3026 since pch_init was called. Do not write a c_pch_header, and do not
3027 copy from asm_out_file to the PCH.
3028 (c_common_read_pch): Do not read a c_pch_header, and do not restore
3029 the content of asm_out_file from the PCH.
3030 (c_common_print_pch_checksum): Remove.
3031 * c-opts.c (c_common_init): Print out executable_checksum directly.
3032
70f42967
SB
30332012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3034
3035 * c-target.def (objc_declare_unresolved_class_reference,
3036 objc_declare_class_definition): Add new hooks.
3037
a8781821
SB
30382012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3039
3040 * c-lex.c: Do not include output.h.
3041 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
3042 Remove uses of ASM_OUTPUT_IDENT.
3043
9e1a8dd1
RR
30442012-06-15 Marc Glisse <marc.glisse@inria.fr>
3045
3046 PR c++/51033
3047 * c-common.h (c_build_vec_perm_expr): Move decl here.
3048 * c-common.c (c_build_vec_perm_expr): Move definition
3049 here.
3050
6f07a821
SB
30512012-06-06 Steven Bosscher <steven@gcc.gnu.org>
3052
3053 * c.opt (fconserve-space): Turn into a no-op.
3054
9faeb493 30552012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
3056
3057 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
3058 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
3059 both the start and end of the function.
3060
a4b7d13c
SB
30612012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3062
3063 * c-common.c: Do not include output.h.
3064 * c-pragma.c: Likewise.
3065
c265f413
SA
30662012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3067
3068 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3069 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3070 (lang_decl_name): Handle namespace decls.
3071
be7a421e
SB
30722012-05-31 Steven Bosscher <steven@gcc.gnu.org>
3073
3074 * c-ada-spec.c: Do not include output.h.
3075 * c-semantics.c: Likewise.
3076
65de6659
JM
30772012-05-29 Joseph Myers <joseph@codesourcery.com>
3078
3079 * c-common.c: Fix typo.
3080
ca5f4331
MM
30812012-05-29 Michael Matz <matz@suse.de>
3082
3083 * c-common.h (c_expand_decl): Remove prototype.
3084
4f7f7aca
MLI
30852012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3086
3087 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3088 * c-opts.c (c_common_handle_option): Remove code handling
3089 warn_missing_braces.
3090
4a792f9b
PC
30912012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
3092
3093 PR c++/25137
3094 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3095 -Wmissing_braces.
3096
650dc14a
DS
30972012-05-22 Dodji Seketeli <dodji@redhat.com>
3098
3099 PR c++/53322
3100 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3101
9b095bf1
MLI
31022012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3103
3104 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3105 * c-opts.c (c_common_handle_option): Do not handle explicitly
3106 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3107
0b2c4be5
DS
31082012-05-16 Dodji Seketeli <dodji@redhat.com>
3109
3110 PR preprocessor/7263
3111 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
3112 to cpp_classify_number. For diagnostics, use the precise location
3113 instead of the global input_location.
3114
a1bde5af
PC
31152012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3116
d02924ef 3117 PR c++/11856
a1bde5af
PC
3118 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3119
d1ede5f4
BS
31202012-05-14 Bernd Schmidt <bernds@codesourcery.com>
3121
a1bde5af 3122 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 3123
f2bc201f
MLI
31242012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3125
3126 PR 53063
3127 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3128 Wreorder): Use LangEnabledBy.
3129 * c-opts.c (c_common_handle_option): Do not enable them
3130 explicitly. Call lang-specific generated functions.
3131 (c_common_post_options): Do not set them here.
3132
95744782
MLI
31332012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3134
3135 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3136 Wmissing-field-initializers,Wmissing-parameter-type,
3137 Wold-style-declaration,Woverride-init): Use EnabledBy.
3138 * c-opts.c (c_common_post_options): Do not set here explicitly.
3139
7d5a5747
MLI
31402012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3141
3142 PR 53063
3143 * c-opts.c (c_common_handle_option): Use handle_generated_option
3144 to enable sub-options.
3145
5a3c9cf2
PC
31462012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
3147
3148 PR c++/53158
3149 * c-common.c (warnings_for_convert_and_check): Use warning_at.
3150
3ac8781c
RG
31512012-05-10 Richard Guenther <rguenther@suse.de>
3152
3153 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3154 adjust commentary about TYPE_IS_SIZETYPE types.
3155
1e537948
MLI
31562012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3157
3158 PR c++/53261
3159 * c-common.c (warn_logical_operator): Check that argument of
3160 integer_zerop is not NULL.
3161
f2c4a785
MLI
31622012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3163
3164 PR c/43772
3165 * c-common.c (warn_logical_operator): Do not warn if either side
3166 is already true or false.
3167
50f305ca
MLI
31682012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3169
3170 PR c/51712
3171 * c-common.c (expr_original_type): New.
3172 (shorten_compare): Do not warn for enumeration types.
3173
0c3641b0
MLI
31742012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3175
3176 * c.opt (fpermissive): Add Var(flag_permissive).
3177
7edaa4d2
MG
31782012-04-30 Marc Glisse <marc.glisse@inria.fr>
3179
3180 PR c++/51033
3181 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3182 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3183
b9c8da34
DS
31842012-04-30 Dodji Seketeli <dodji@redhat.com>
3185
3186 Add -Wvarargs option
3187 * c.opt (Wvarargs): Define new option.
3188
e6c69da0
MLI
31892012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3190
3191 * c-common.c (check_function_arguments): Replace
3192 Wmissing-format-attribute with Wsuggest-attribute=format.
3193
90137d8f
MLI
31942012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3195
3196 * c.opt (Wsuggest-attribute=format): New. Alias of
3197 Wmissing-format-attribute.
3198 * c-format.c (decode_format_type): Replace
3199 Wmissing-format-attribute with Wsuggest-attribute=format.
3200 (check_function_format): Likewise.
3201
9faeb493 32022012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
3203
3204 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3205 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3206 * c.opt: Add Wliteral-suffix.
3207
c1771a20
MLI
32082012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3209
3210 PR c/44774
3211 * c.opt (Wpedantic): New.
3212 (pedantic): Alias Wpedantic.
3213 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3214 (c_common_post_options): Likewise.
3215 (sanitize_cpp_opts): Likewise.
3216 * c-lex.c (interpret_float): Likewise.
3217 * c-format.c (check_format_types): Likewise.
3218 * c-common.c (pointer_int_sum): Likewise.
3219 (c_sizeof_or_alignof_type): Likewise.
3220 (c_add_case_label): Likewise.
3221 (c_do_switch_warnings): Likewise.
3222 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3223
04b391c1
JM
32242012-04-15 Jason Merrill <jason@redhat.com>
3225
3226 PR c++/52818
3227 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3228 (C_STD_NAME): Distinguish between C++98 and C++11.
3229
ac868f29
EB
32302012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3231
3232 PR target/52624
3233 * c-common.h (uint16_type_node): Rename into...
3234 (c_uint16_type_node): ...this.
3235 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3236 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3237
fd4116f4
MLI
32382012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3239
3240 * c-common.c (warn_if_unused_value): Move definition to here.
3241 * c-common.h (warn_if_unused_value): Move declaration to here.
3242
573ac65e
WB
32432012-03-23 William Bader <williambader@hotmail.com>
3244
3245 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3246
552b8185
JM
32472012-03-20 Jason Merrill <jason@redhat.com>
3248
3249 * c-common.h (enum cxx_dialect): Add cxx1y.
3250 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3251 test.
3252 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3253 * c-opts.c (c_common_post_options): Likewise.
3254 (set_std_cxx1y): New.
3255 (c_common_handle_option): Call it.
3256 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3257
04398fa8
PC
32582012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3259
3260 PR c++/14710
3261 * c.opt ([Wuseless-cast]): Add.
3262
d2a12ae7
RG
32632012-03-16 Richard Guenther <rguenther@suse.de>
3264
3265 * c-pretty-print.c (pp_c_initializer_list): Adjust.
3266
a12bf402
MLI
32672012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3268
3269 PR c++/44783
3270 * c.opt (ftemplate-backtrace-limit) Add.
3271
5c30094f
RO
32722012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3273
3274 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3275 handling.
3276 * c-pragma.c (handle_pragma_extern_prefix): Remove.
3277 (init_pragma): Don't register extern_prefix.
3278
21fa2faf
RG
32792012-03-12 Richard Guenther <rguenther@suse.de>
3280
3281 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3282 (builtin_type_for_size): Likewise.
3283
e3793c6f
JJ
32842012-02-13 Jakub Jelinek <jakub@redhat.com>
3285
3286 PR c++/52215
3287 * c-common.c (sync_resolve_params): Don't decide whether to convert
3288 or not based on TYPE_SIZE comparison, convert whenever arg_type
3289 is unsigned INTEGER_TYPE.
3290
93286335
PC
32912012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
3292
3293 PR c/52118
3294 * c.opt ([Wunused-local-typedefs]): Fix description.
3295
7a421706
MS
32962012-01-24 Mike Stump <mikestump@comcast.net>
3297
3298 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3299 exactly.
3300
ba9b1f11
RG
33012012-01-18 Richard Guenther <rguenther@suse.de>
3302
3303 * c-opts.c (c_common_post_options): Reset LTO flags if
3304 we are about to generate a PCH.
3305
465406be
PC
33062012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3307
3308 PR c++/51777
3309 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3310 use pp_unsigned_wide_integer.
3311
aee15221
RG
33122012-01-10 Richard Guenther <rguenther@suse.de>
3313
3314 PR middle-end/51806
3315 * c-opts.c (c_common_handle_option): Move -Werror handling
3316 to language independent code.
3317
5720c0dc
RG
33182012-01-05 Richard Guenther <rguenther@suse.de>
3319
3320 PR middle-end/51764
3321 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3322 from common.opt.
3323
73ac190a
PC
33242011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
3325
3326 PR c++/51316
3327 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3328 of array types with an unknown bound.
3329
48b0b196
JM
33302011-12-20 Joseph Myers <joseph@codesourcery.com>
3331
3332 * c-common.c (flag_isoc99): Update comment to refer to C11.
3333 (flag_isoc1x): Change to flag_isoc11.
3334 * c-common.h (flag_isoc99): Update comment to refer to C11.
3335 (flag_isoc1x): Change to flag_isoc11.
3336 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3337 C11.
3338 * c-opts.c (set_std_c1x): Change to set_std_c11.
3339 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3340 Call set_std_c11.
3341 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3342 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3343 * c.opt (std=c1x): Change to std=c11. Document as non-draft
3344 standard.
3345 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3346 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3347 (std=gnu1x): Make alias of std=gnu11.
3348
d58d6eb5
JM
33492011-12-19 Jason Merrill <jason@redhat.com>
3350
3351 PR c++/51228
3352 * c-common.c (handle_transparent_union_attribute): Check the first
3353 field if the type is complete.
3354
b3908fcc
JW
33552011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3356
3357 PR libstdc++/51365
3358 * c-common.c (RID_IS_FINAL): Add.
3359 * c-common.h (RID_IS_FINAL): Add.
3360
fea3ca91
IS
33612011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3362
3363 * c.opt (fgnu-runtime): Provide full description.
3364 (fnext-runtime): Likewise.
3365 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3366
62bad7cd
AM
33672011-11-28 Andrew MacLeod <amacleod@redhat.com>
3368
3369 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3370 predefines in one place. Add LOCK_FREE predefines.
3371 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3372 new func.
3373
c466c4ff
AM
33742011-11-24 Andrew MacLeod <amacleod@redhat.com>
3375
3376 PR c/51256
9faeb493 3377 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 3378 conditions
9faeb493
UB
3379 (resolve_overloaded_atomic_exchange,
3380 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
3381 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3382 error_mark_node for error conditions.
9faeb493 3383
a5952633
RG
33842011-11-08 Richard Guenther <rguenther@suse.de>
3385
3386 PR middle-end/51010
3387 c-family/
3388
0a35513e
AH
33892011-11-07 Richard Henderson <rth@redhat.com>
3390 Aldy Hernandez <aldyh@redhat.com>
3391 Torvald Riegel <triegel@redhat.com>
3392
3393 Merged from transactional-memory.
3394
3395 * c-common.c (handle_tm_wrap_attribute,
3396 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3397 (struct c_common_reswords): Added __transaction* keywords.
3398 (struct c_common_attribute_table): Added transaction* and tm_regparm
3399 attributes.
3400 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3401 masks.
3402 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3403 find_tm_attribute): Declare.
3404
6d87092d
JM
34052011-11-07 Jason Merrill <jason@redhat.com>
3406
3407 PR c++/35688
3408 * c-common.c, c-common.h: Revert yesterday's changes.
3409
8e7860a1
JM
34102011-11-06 Jason Merrill <jason@redhat.com>
3411
3412 PR c++/35688
3413 * c-common.c (decl_has_visibility_attr): Split out from...
3414 (c_determine_visibility): ...here.
3415 * c-common.h: Declare it.
3416
d19fa6b5
JM
34172011-11-06 Joseph Myers <joseph@codesourcery.com>
3418
3419 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3420 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3421 type.
3422 (check_user_alignment): New. Split out of
3423 handle_aligned_attribute. Disallow integer constants with
3424 noninteger types. Conditionally allow zero.
3425 (handle_aligned_attribute): Use check_user_alignment.
3426 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3427
86951993
AM
34282011-11-06 Andrew MacLeod <amacleod@redhat.com>
3429 Richard Henderson <rth@redhat.com>
3430
3431 Merged from cxx-mem-model.
3432
3433 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 3434 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
3435 parameters that are the same type size.
3436 (get_atomic_generic_size): New. Find size of generic
3437 atomic function parameters and do typechecking.
3438 (add_atomic_size_parameter): New. Insert size into parameter list.
3439 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3440 either __atomic_exchange_n or external library call.
9faeb493 3441 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 3442 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 3443 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
3444 __atomic_load_n or an external library call.
3445 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3446 __atomic_store_n or an external library call.
3447 (resolve_overloaded_builtin): Handle new __atomic builtins.
3448
cf9e9959
EB
34492011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3450
3451 PR c++/50608
3452 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3453 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3454 <INDIRECT_REF>: Return the argument.
3455 <ARRAY_REF>: Remove special code for negative offset.
3456 Call fold_build_pointer_plus instead of size_binop.
3457 (fold_offsetof): Remove STOP_REF argument and adjust.
3458 * c-common.h (fold_offsetof_1): Declare.
3459 (fold_offsetof): Remove STOP_REF argument.
3460
25339f10
JM
34612011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3462
3463 PR c++/50810
3464 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3465 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3466 Wnarrowing for C++0x and C++98.
3467 * c.opt ([Wnarrowing]): Update.
3468
89401152
PC
34692011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
3470
3471 PR c++/44277
3472 * c.opt: Add Wzero-as-null-pointer-constant.
3473
97e3ad20
JM
34742011-10-31 Jason Merrill <jason@redhat.com>
3475
15694fdd
JM
3476 * c.opt (-fdeduce-init-list): Off by default.
3477
97e3ad20
JM
3478 PR c++/50920
3479 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3480 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3481 and -Wc++11-compat.
3482 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3483
fb9120e3
RAV
34842011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3485
3486 PR c++/30066
3487 * c.opt (fvisibility-inlines-hidden): Description change.
3488
3ce4f9e4
ESR
34892011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
3490
3491 Implement C++11 user-defined literals.
3492 * c-common.c (build_userdef_literal): New.
3493 * c-common.def: New tree code.
3494 * c-common.h (tree_userdef_literal): New tree struct and accessors.
3495 * c-lex.c (interpret_float): Add suffix parm.
3496 (c_lex_with_flags): Build literal tokens.
3497
5f53c243
PC
34982011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3499
3500 PR c++/50841
3501 Revert:
3502 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3503
3504 PR c++/50810
3505 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3506 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3507 Wnarrowing for C++0x and C++98.
3508 * c.opt ([Wnarrowing]): Update.
3509
263734e1
PC
35102011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3511
3512 PR c++/50810
3513 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3514 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3515 Wnarrowing for C++0x and C++98.
3516 * c.opt ([Wnarrowing]): Update.
3517
d2e312d7
PC
35182011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3519
3520 PR c++/45385
3521 * c-common.c (conversion_warning): Remove code looking for
3522 artificial operands.
3523
d17687f6
DS
35242011-10-18 Dodji Seketeli <dodji@redhat.com>
3525
3526 PR bootstrap/50760
3527 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 3528 !NO_IMPLICIT_EXTERN_C.
d17687f6 3529
fc8396e9
PC
35302011-10-17 Michael Spertus <mike_spertus@symantec.com>
3531
3532 * c-common.c (c_common_reswords): Add __bases,
3533 __direct_bases.
3534 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3535
35362011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3537
3538 PR c++/50757
3539 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3540
847e697a
TT
35412011-10-15 Tom Tromey <tromey@redhat.com>
3542 Dodji Seketeli <dodji@redhat.com>
3543
3544 * c.opt (fdebug-cpp): New option.
3545 * c-opts.c (c_common_handle_option): Handle the option.
3546 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3547 output stream in parameter. Factorized from ...
3548 (maybe_print_line): ... this. Dump location debug information when
3549 -fdebug-cpp is in effect.
3550 (print_line_1): New static function. Takes an output stream in
3551 parameter. Factorized from ...
3552 (print_line): ... here. Dump location information when -fdebug-cpp
3553 is in effect.
3554 (scan_translation_unit): Dump location information when
3555 -fdebug-cpp is in effect.
3556
92582b75
TT
35572011-10-15 Tom Tromey <tromey@redhat.com>
3558 Dodji Seketeli <dodji@redhat.com>
3559
3560 * c.opt (ftrack-macro-expansion): New option. Handle it with and
3561 without argument.
3562 * c-opts.c (c_common_handle_option)<case
3563 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3564 cases. Handle -ftrack-macro-expansion with and without argument.
3565
46427374
TT
35662011-10-15 Tom Tromey <tromey@redhat.com>
3567 Dodji Seketeli <dodji@redhat.com>
3568
3569 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3570 (print_line, cb_define, do_line_change): Adjust to avoid touching
3571 the internals of struct line_map. Use the public API instead.
3572 * c-pch.c (c_common_read_pch): Likewise.
3573 * c-lex.c (fe_file_change): Likewise.
3574
fc8396e9
PC
35752011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
3576
3577 PR c++/17212
3578 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3579
35802011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
3581
3582 PR c++/33067
3583 * c-pretty-print.c (pp_c_floating_constant): Output
3584 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3585
e79983f4
MM
35862011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3587
3588 * c-common.c (def_builtin_1): Delete old interface with two
3589 parallel arrays to hold standard builtin declarations, and replace
3590 it with a function based interface that can support creating
3591 builtins on the fly in the future. Change all uses, and poison
3592 the old names. Make sure 0 is not a legitimate builtin index.
3593 * c-omp.c (c_finish_omp_barrier): Ditto.
3594 (c_finish_omp_taskwait): Ditto.
3595 (c_finish_omp_flush): Ditto.
3596
6637388f
TG
35972011-10-11 Tristan Gingold <gingold@adacore.com>
3598
3599 * c.opt: (fallow-parameterless-variadic-functions): New.
3600
3797cb21
DS
36012011-09-08 Dodji Seketeli <dodji@redhat.com>
3602
3603 PR c++/33255 - Support -Wunused-local-typedefs warning
3604 * c-common.h (struct c_language_function::local_typedefs): New
3605 field.
9faeb493
UB
3606 (record_locally_defined_typedef, maybe_record_typedef_use)
3607 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 3608 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
3609 (maybe_record_typedef_use)
3610 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
3611 * c.opt: Declare new -Wunused-local-typedefs flag.
3612
693ddb1b
EB
36132011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3614
3615 PR middle-end/50266
3616 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3617 computations.
3618
830c740f
RG
36192011-09-05 Richard Guenther <rguenther@suse.de>
3620
3621 * c-common.c (complete_array_type): Use ssize_int (-1) instead
3622 of integer_minus_one_node for empty array upper bounds.
3623
892a371f
DS
36242011-08-28 Dodji Seketeli <dodji@redhat.com>
3625
3626 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3627 it's the first time it's being called on this main TU.
3628
0e3fdb48
RB
36292011-08-24 Richard Guenther <rguenther@suse.de>
3630
3631 PR c/49396
3632 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3633
36342011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
3635
3636 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3637 defined in cpp_init_builtins and c_cpp_builtins.
3638
d4a83c10
JM
36392011-08-19 Joseph Myers <joseph@codesourcery.com>
3640
3641 * c-common.c (c_common_reswords): Add __builtin_complex.
3642 * c-common.h (RID_BUILTIN_COMPLEX): New.
3643
bbceee64
JM
36442011-08-18 Joseph Myers <joseph@codesourcery.com>
3645
3646 * c-common.c (c_common_reswords): Add _Noreturn.
3647 (keyword_is_function_specifier): Handle RID_NORETURN.
3648 * c-common.h (RID_NORETURN): New.
3649
0e3a99ae
AS
36502011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3651
3652 * c-common.c (unsafe_conversion_p): New function. Check if it is
3653 unsafe to convert an expression to the type.
3654 (conversion_warning): Adjust, use unsafe_conversion_p.
3655 * c-common.h (unsafe_conversion_p): New function declaration.
3656
20906c66
JJ
36572011-08-02 Jakub Jelinek <jakub@redhat.com>
3658
3659 * c-common.h (c_finish_omp_atomic): Adjust prototype.
3660 (c_finish_omp_taskyield): New prototype.
3661 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3662 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3663 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
3664 or RHS1 have side-effects, evaluate those too in the right spot,
3665 if it is a decl and LHS is also a decl, error out if they
3666 aren't the same.
3667 (c_finish_omp_taskyield): New function.
3668 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3669 * c-pragma.c (omp_pragmas): Add taskyield.
3670 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3671 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3672 PRAGMA_OMP_CLAUSE_MERGEABLE.
3673
770e5a2e
DS
36742011-07-25 Dodji Seketeli <dodji@redhat.com>
3675
3676 * c-common.h (set_underlying_type): Remove parm name from
3677 declaration.
3678
1baae426
RG
36792011-07-25 Romain Geissler <romain.geissler@gmail.com>
3680
3681 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 3682
fcb21722
JM
36832011-07-22 Jason Merrill <jason@redhat.com>
3684
76f86d00
JM
3685 PR c++/49793
3686 * c.opt (Wnarrowing): New.
3687
3a636414
JM
3688 PR c++/30112
3689 * c-common.h: Declare c_linkage_bindings.
3690 * c-pragma.c (handle_pragma_redefine_extname): Use it.
3691
fcb21722
JM
3692 PR c++/49813
3693 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3694 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3695 as flag_isoc99 for 'restrict'.
3696 (pp_c_specifier_qualifier_list): Likewise for _Complex.
3697
02614448
ILT
36982011-07-21 Ian Lance Taylor <iant@google.com>
3699
3700 PR middle-end/49705
3701 * c-common.c (c_disable_warnings): New static function.
3702 (c_enable_warnings): New static function.
3703 (c_fully_fold_internal): Change local unused_p to bool. Call
3704 c_disable_warnings and c_enable_warnings rather than change
3705 c_inhibit_evaluation_warnings.
3706
34429675
JM
37072011-07-20 Jason Merrill <jason@redhat.com>
3708
3709 PR c++/6709 (DR 743)
3710 PR c++/42603 (DR 950)
3711 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3712 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3713 (CPP_DECLTYPE): New.
3714 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3715
5d49b6a7
RG
37162011-07-19 Richard Guenther <rguenther@suse.de>
3717
3718 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3719 * c-omp.c (c_finish_omp_for): Likewise.
3720
e84a58ff
EB
37212011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3722
3723 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3724 body on the next line.
3725
329af3c7
JM
37262011-07-08 Jason Merrill <jason@redhat.com>
3727
4063e61b
JM
3728 PR c++/45437
3729 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3730
329af3c7
JM
3731 PR c++/49673
3732 * c-common.c (c_apply_type_quals_to_decl): Don't check
3733 TYPE_NEEDS_CONSTRUCTING.
3734
1a072294
RG
37352011-07-06 Richard Guenther <rguenther@suse.de>
3736
3737 * c-common.c (c_common_nodes_and_builtins):
3738 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3739
fce5dddd
RG
37402011-07-05 Richard Guenther <rguenther@suse.de>
3741
3742 * c-common.c (c_common_nodes_and_builtins): Build all common
3743 tree nodes first.
3744
45d439ac
JJ
37452011-06-27 Jakub Jelinek <jakub@redhat.com>
3746
56300785
JJ
3747 * c-common.h (c_tree_chain_next): New static inline function.
3748
45d439ac
JJ
3749 * c-common.c (check_builtin_function_arguments): Handle
3750 BUILT_IN_ASSUME_ALIGNED.
3751
e0a8ecf2
AM
37522011-06-21 Andrew MacLeod <amacleod@redhat.com>
3753
3754 * c-common.c: Add sync_ or SYNC__ to builtin names.
3755 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
3756
37572011-06-20 Pierre Vittet <piervit@pvittet.com>
3758
3759 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3760 handler.
3761 (gen_pragma_handler): New union.
3762 (internal_pragma_handler): New type.
3763 (c_register_pragma_with_data)
3764 (c_register_pragma_with_expansion_and_data): New functions.
3765
3766 * c-pragma.c (registered_pragmas, c_register_pragma_1)
3767 (c_register_pragma, c_register_pragma_with_expansion)
3768 (c_invoke_pragma_handler): Changed to work with
3769 internal_pragma_handler.
3770 (c_register_pragma_with_data)
3771 (c_register_pragma_with_expansion_and_data): New functions.
3772
677f3fa8
JM
37732011-06-14 Joseph Myers <joseph@codesourcery.com>
3774
3775 * c-common.c: Include common/common-target.h.
3776 (handle_section_attribute): Use
3777 targetm_common.have_named_sections.
3778 * c-cppbuiltin.c: Include common/common-target.h.
3779 (c_cpp_builtins): Use targetm_common.except_unwind_info.
3780
d7fc8c14
RG
37812011-06-10 Richard Guenther <rguenther@suse.de>
3782
3783 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3784 to print a IDENTIFIER_NODE.
3785
10e48e39
RO
37862011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3787 Joseph Myers <joseph@codesourcery.com>
3788
3789 * c.opt (fbuilding-libgcc): New option.
3790 * c-cppbuiltin.c (c_cpp_builtins): Define
3791 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3792
6976ae51
JM
37932011-06-07 Jason Merrill <jason@redhat.com>
3794
3ff60975
JM
3795 * c-common.c (max_tinst_depth): Lower default to 900.
3796
6976ae51
JM
3797 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3798
009db074
RG
37992011-06-07 Richard Guenther <rguenther@suse.de>
3800
3801 * c-common.c (c_common_nodes_and_builtins): Do not set
3802 size_type_node or call set_sizetype.
3803
b4592b92
DS
38042011-06-07 Dodji Seketeli <dodji@redhat.com>
3805
3806 PR debug/49130
3807 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 3808 type when using pointer comparison to compare types.
b4592b92 3809
014ab419
JW
38102011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
3811
3812 * c.opt: Add -Wdelete-non-virtual-dtor.
3813 * c-opts.c (c_common_handle_option): Include it in -Wall.
3814
4f60111f
NF
38152011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3816
3817 PR bootstrap/49190
3818
3819 Revert:
3820 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3821
3822 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3823 not tree_common.
3824
4cc4f2f4
JJ
38252011-05-27 Jakub Jelinek <jakub@redhat.com>
3826
3827 PR c++/49165
3828 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3829 C++ don't call c_common_truthvalue_conversion on void type arms.
3830
38e01f9e
NF
38312011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3832
3833 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3834 (stmt_list_stack): Define.
3835 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3836 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3837
92e948a8
NF
38382011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3839
3840 * c-common.c (warning_candidate_p): Check for BLOCKs.
3841
a2fc3e63
NF
38422011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3843
3844 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3845 not tree_common.
3846
0957c029
JJ
38472011-05-25 Jakub Jelinek <jakub@redhat.com>
3848
3849 * c-common.c (def_fn_type): Remove extra va_end.
3850
828fb3ba
JM
38512011-05-23 Jason Merrill <jason@redhat.com>
3852
3853 PR c++/48106
3854 * c-common.c (c_common_get_narrower): New.
3855 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3856
dde05067
NF
38572011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3858
3859 * c-common.h (check_function_arguments): Tweak prototype of
3860 check_function_arguments.
3861 * c-common.c (check_function_arguments): Likewise. Adjust
3862 calls to check_function_nonnull, check_function_format, and
3863 check_function_sentinel.
3864 (check_function_sentinel): Take a FUNCTION_TYPE rather than
3865 separate attributes and typelist arguments. Use
3866 FOREACH_FUNCTION_ARGS to iterate over argument types.
3867
3c0d13bf
PC
38682011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3869
3870 * c-common.c (c_common_reswords): Reorder.
3871 * c-common.h (rid): Likewise.
3872
8242dd04
NF
38732011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3874
3875 * c-common.c (def_fn_type): Don't call build_function_type, call
3876 build_function_type_array or build_varargs_function_type_array
3877 instead.
3878 (c_common_nodes_and_builtins): Likewise.
3879
3d528853
NF
38802011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3881
3882 * c-common.c (c_add_case_label): Omit the loc argument to
3883 build_case_label.
3884 * c-common.h (build_case_label): Remove.
3885 * c-semantics.c (build_case_label): Remove.
3886
a04a722b
JM
38872011-05-05 Joseph Myers <joseph@codesourcery.com>
3888
3889 * c-objc.h (objc_start_method_definition): Update prototype.
3890 * stub-objc.c (objc_start_method_definition): Add extra parameter.
3891
e19a18d4
NF
38922011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3893
3894 * c-common.c (check_main_parameter_types): Reindent. Don't use
3895 TYPE_ARG_TYPES directly.
3896 (handle_nonnull_attribute): Likewise.
3897 (sync_resolve_params): Likewise.
3898 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
3899 to check_format_string.
3900 (handle_format_attribute): Likewise.
3901 (check_format_string): Take a function type to examine instead of
3902 a type list. Use a function_arg_iterator to step through argument
3903 types.
3904
c62c040f
RG
39052011-05-04 Richard Guenther <rguenther@suse.de>
3906
3907 * c-common.c (fix_string_type): Use size_int for index type bounds.
3908 (start_fname_decls): Do not pass NULL to build_int_cst.
3909 (c_init_attributes): Likewise.
3910 * c-lex.c (c_lex_with_flags): Likewise.
3911
c12ff9d8
JM
39122011-04-27 Jason Merrill <jason@redhat.com>
3913
3914 * c-common.c (make_tree_vector_from_list): New.
3915 * c-common.h: Declare it.
3916
304dfbe3
RG
39172011-04-26 Richard Guenther <rguenther@suse.de>
3918
3919 PR preprocessor/48248
3920 * c-ppoutput.c (maybe_print_line): Always optimize newlines
3921 for output size with -P.
3922
3c0d13bf
PC
39232011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3924
3925 * c-common.c (struct c_common_resword): Add __underlying_type.
3926 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3927
04695783
JM
39282011-04-20 Jim Meyering <meyering@redhat.com>
3929
3930 * c-format.c (init_dollar_format_checking): Remove useless
3931 if-before-free.
3932
0dc33c3c
NP
39332011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3934
3935 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 3936 (objc_detect_field_duplicates): New.
0dc33c3c 3937 * stub-objc.c: Likewise.
3c0d13bf 3938
c59633d9
NP
39392011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3940
3941 * stub-objc.c (objc_declare_protocols): Renamed to
3942 objc_declare_protocol.
3943 * c-objc.h: Likewise.
3c0d13bf 3944
32dabdaf
NP
39452011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3946
3947 * stub-objc.c (objc_declare_class): Updated argument name.
3948
81f653d6
NF
39492011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3950
3951 * c-common.h (c_common_init_ts): Declare.
3952 * c-common.c (c_common_init_ts): Define.
3953
eb345401
NP
39542011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3955
3956 * c-objc.h (objc_build_message_expr): Updated prototype.
3957 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 3958
a358e188
MJ
39592011-04-12 Martin Jambor <mjambor@suse.cz>
3960
3961 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3962 of cgraph_node.
3963
e6313a78
RG
39642011-04-11 Richard Guenther <rguenther@suse.de>
3965
3966 * c-common.c (complete_array_type): Build a range type of
3967 proper type.
3968
dcf0c47e
NF
39692011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3970
3971 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3972 (handle_type_generic_attribute): Likewise.
3973
1ee44b26
JM
39742011-04-07 Jason Merrill <jason@redhat.com>
3975
3976 PR c++/48450
3977 * c-common.c (c_common_truthvalue_conversion): Don't ignore
3978 conversion from C++0x scoped enum.
3979
acce4e77
JM
39802011-04-06 Joseph Myers <joseph@codesourcery.com>
3981
3982 * c-target-def.h: New file.
3983 * c-target.def: New file.
3984 * c-target.h: New file.
3985 * c-common.c (targetcm): Don't define here.
3986 * c-common.h (default_handle_c_option): Declare.
3987 * c-format.c: Include c-target.h instead of target.h.
3988 * c-opts.c: Include c-target.h instead of target.h. Explicitly
3989 include tm.h.
3990 (default_handle_c_option): Move from targhooks.c.
3991
e2eefb55
JJ
39922011-03-29 Jakub Jelinek <jakub@redhat.com>
3993
3994 PR preprocessor/48248
3995 * c-ppoutput.c (print): Add src_file field.
3996 (init_pp_output): Initialize it.
3997 (maybe_print_line): Don't optimize by adding up to 8 newlines
3998 if map->to_file and print.src_file are different file.
3999 (print_line): Update print.src_file.
4000
ba78087b
KT
40012011-03-25 Kai Tietz <ktietz@redhat.com>
4002
4003 * c-ada-spec.c (compare_comment): Use filename_cmp
4004 instead of strcmp for filename.
4005
0edf1bb2
JL
40062011-03-25 Jeff Law <law@redhat.com>
4007
adfac8df 4008 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 4009
c7dc8804
JM
40102011-03-25 Jason Merrill <jason@redhat.com>
4011
4012 * c.opt: Add -std=c++03.
4013
d1d879b1
EB
40142011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4015
4016 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
4017
62d784f7
KT
40182011-03-17 Kai Tietz
4019
4020 PR target/12171
5050afdf
KT
4021 * c-pretty-print.c (pp_c_specifier_qualifier_list):
4022 Display allowed attributes for function pointer types.
4023 (pp_c_attributes_display): New function to display
4024 attributes having affects_type_identity flag set to true.
4025 * c-pretty-print.h (pp_c_attributes_display): New prototype.
4026
62d784f7
KT
4027 * c-common.c (c_common_attribute_table):
4028 Add new element.
4029 (c_common_format_attribute_table): Likewise.
4030
82d37118
JM
40312011-03-18 Jason Merrill <jason@redhat.com>
4032
49a000c3
JM
4033 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
4034 * c-common.h: Don't declare it here.
4035 * c-common.c: Or define it here.
4036 * c-opts.c (c_common_handle_option): Or set it here.
4037
82d37118
JM
4038 PR c++/35315
4039 * c-common.c (handle_transparent_union_attribute): Don't
4040 make a duplicate type in C++.
4041
17bc631c
JM
40422011-03-15 Jason Merrill <jason@redhat.com>
4043
4044 * c-common.c (max_constexpr_depth): New.
4045 * c-common.h: Declare it.
4046 * c-opts.c (c_common_handle_option): Set it.
4047 * c.opt (fconstexpr-depth): New option.
4048
1b9b91a6
JM
40492011-03-11 Jason Merrill <jason@redhat.com>
4050
f231b5ff
JM
4051 * c-common.c (attribute_takes_identifier_p): Add missing const.
4052
1b9b91a6
JM
4053 PR c++/46803
4054 * c-common.c (attribute_takes_identifier_p): Assume that an
4055 unknown attribute takes an identifier.
4056
a19e4d44
NF
40572011-03-07 Nathan Froyd <froydnj@codesourcery.com>
4058
4059 PR c/47786
4060 * c-common.c (c_type_hash): Call list_length instead of iterating
4061 through DECL_CHAIN. Rename 'i' to 'n_elements'.
4062
982d62f6
JJ
40632011-02-19 Jakub Jelinek <jakub@redhat.com>
4064
4065 PR c/47809
4066 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4067
0a256240
NP
40682011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4069
4070 * c.opt (fobjc-abi-version=) New.
4071 (fobjc-nilcheck): New.
4072
ba9e6dd5
NF
40732011-02-03 Nathan Froyd <froydnj@codesourcery.com>
4074
4075 PR c++/46890
4076 * c-common.h (keyword_is_decl_specifier): Declare.
4077 * c-common.c (keyword_is_decl_specifier): Define.
4078 (keyword_is_function_specifier): New function.
4079
7273813a
JJ
40802011-01-26 Jakub Jelinek <jakub@redhat.com>
4081
4082 PR c/47473
4083 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4084 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4085 REAL_TYPE.
4086
908ef79b
AC
40872011-01-26 Arnaud Charlet <charlet@adacore.com>
4088
4089 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4090
237e9384
JJ
40912011-01-26 Jakub Jelinek <jakub@redhat.com>
4092
4093 PR pch/47430
4094 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4095 after init_c_lex if pch_file is set.
4096
47ea1edf
DK
40972011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
4098
d4dba752 4099 PR c++/43601
47ea1edf
DK
4100 * c.opt (-fkeep-inline-dllexport): New switch.
4101
2aa9c6ae
RG
41022011-01-12 Richard Guenther <rguenther@suse.de>
4103
4104 PR middle-end/32511
4105 * c-common.c (handle_weak_attribute): Warn instead of error
4106 on declaring an inline function weak.
4107
7bd11157
TT
41082011-01-05 Tom Tromey <tromey@redhat.com>
4109
4110 * c-common.h (lvalue_error): Update.
4111 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
4112 not error.
4113
0e66e494 41142010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 4115
b4f588c4
NP
4116 PR objc/47075
4117 * c-objc.h (objc_finish_message_expr): Added argument to
4118 prototype.
4119
f4da8dce
NF
41202010-12-22 Nathan Froyd <froydnj@codesourcery.com>
4121
4122 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4123 Use prototype_p.
4124
46270f14
NP
41252010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
4126
4127 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 4128 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 4129
4816c593
NF
41302010-12-10 Nathan Froyd <froydnj@codesourcery.com>
4131
4132 * c-common.h (readonly_error): Declare.
4133 * c-common.c (readonly_error): Define.
4134
7a6daeb0
NF
41352010-12-09 Nathan Froyd <froydnj@codesourcery.com>
4136
4137 * c-common.h (invalid_indirection_error): Declare.
4138 * c-common.c (invalid_indirection_error): Define.
4139
892f6119
RG
41402010-12-03 Richard Guenther <rguenther@suse.de>
4141
4142 PR c/46745
4143 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4144 (pp_c_unary_expression): Likewise.
4145 (pp_c_expression): Likewise.
4146
6c39e757
NP
41472010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
4148
4149 * c-common.h (objc_finish_function): New.
4150 (objc_non_volatilized_type): Removed.
4151 (objc_type_quals_match): Removed.
4152 * stub-objc.c (objc_finish_function): New.
4153 (objc_non_volatilized_type): Removed.
4154 (objc_type_quals_match): Removed.
9faeb493 4155
7c475d11
JM
41562010-11-30 Joseph Myers <joseph@codesourcery.com>
4157
4158 * c-common.h (parse_optimize_options): Declare.
4159 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4160 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4161
71f3e391
JM
41622010-11-29 Joseph Myers <joseph@codesourcery.com>
4163
4164 * c-opts.c (check_deps_environment_vars): Use getenv instead of
4165 GET_ENVIRONMENT.
4166 * c-pch.c (O_BINARY): Don't define here.
4167 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4168
d5fabb58
JM
41692010-11-25 Joseph Myers <joseph@codesourcery.com>
4170
4171 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4172 targetm.except_unwind_info.
4173
299404a1
JM
41742010-11-23 Joseph Myers <joseph@codesourcery.com>
4175
4176 * c-opts.c (c_common_handle_option): Pass location to
4177 set_struct_debug_option.
4178
c98cd5bf
JM
41792010-11-23 Joseph Myers <joseph@codesourcery.com>
4180
4181 * c-common.c (visibility_options): Move from ../opts.c.
4182 * c-common.h (struct visibility_flags, visibility_options):
4183 Declare here.
4184 * c-opts.c (finish_options): Rename to c_finish_options.
4185 (c_common_init): Update call to finish_options.
4186
a9546771
NP
41872010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4188
4189 PR objc/34033
4190 * c-lex.c (lex_string): Check that each string in an Objective-C
4191 string concat sequence starts with either one or zero '@', and
4192 that there are no spurious '@' signs at the end.
4193
24a57808
JM
41942010-11-20 Joseph Myers <joseph@codesourcery.com>
4195
4196 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4197 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4198 HANDLE_PRAGMA_VISIBILITY.
4199 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4200 HANDLE_PRAGMA_VISIBILITY): Don't define.
4201 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4202
a9aa2c3a
NF
42032010-11-20 Nathan Froyd <froydnj@codesourcery.com>
4204
4205 PR c++/16189
4206 PR c++/36888
4207 PR c++/45331
4208 * c-common.h (keyword_begins_type_specifier): Declare.
4209 (keyword_is_storage_class_specifier): Declare.
4210 (keyword_is_type_qualifier): Declare.
4211 * c-common.c (keyword_begins_type_specifier): New function.
4212 (keyword_is_storage_class_specifier): New function.
4213 (keyword_is_type_qualifier): Declare.
4214
5386338c
JM
42152010-11-19 Joseph Myers <joseph@codesourcery.com>
4216
4217 PR c/46547
4218 * c-common.c (in_late_binary_op): Define.
4219 (c_common_truthvalue_conversion): Check in_late_binary_op before
4220 calling c_save_expr.
4221 * c-common.h (in_late_binary_op): Declare.
4222
69ccdddb
JM
42232010-11-19 Joseph Myers <joseph@codesourcery.com>
4224
4225 * c-opts.c (c_common_handle_option): Update calls to
4226 set_struct_debug_option.
4227
6b192a09
NP
42282010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
4229
4230 * c-common.h (objc_declare_protocols): Added additional argument.
4231 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 4232
fb52b50a
NF
42332010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4234
4235 PR c/33193
4236 * c-common.h (build_real_imag_expr): Declare.
4237 * c-semantics.c (build_real_imag_expr): Define.
4238
b37421c6
JM
42392010-11-17 Joseph Myers <joseph@codesourcery.com>
4240
4241 * c-opts.c (c_common_parse_file): Take no arguments.
4242 * c-common.h (c_common_parse_file): Update prototype.
4243
07078664
JJ
42442010-11-16 Jakub Jelinek <jakub@redhat.com>
4245
4246 PR c++/46401
4247 * c-common.c (warning_candidate_p): Don't track non-const calls
4248 or STRING_CSTs.
4249
c6a13190
ILT
42502010-11-15 Ian Lance Taylor <iant@google.com>
4251
4252 * c-lex.c (init_c_lex): Set macro debug callbacks if
4253 flag_dump_go_spec is set.
4254
925e8657
NP
42552010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4256
4257 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4258 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4259
bb0a9581
NF
42602010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4261
4262 PR preprocessor/45038
4263 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4264 dialects.
4265
c5fa0890
JM
42662010-11-12 Joseph Myers <joseph@codesourcery.com>
4267
4268 * c-common.h (c_family_lang_mask): Declare.
4269 * c-opts.c (c_family_lang_mask): Make extern.
4270 * c-pragma.c (handle_pragma_diagnostic): Use
4271 control_warning_option.
4272
a4d8c676
JM
42732010-11-12 Joseph Myers <joseph@codesourcery.com>
4274
4275 * c-common.c (parse_optimize_options): Update call to
4276 decode_options.
4277 * c-common.h (c_common_handle_option): Update prototype.
4278 * c-opts.c (c_common_handle_option): Take location_t parameter and
4279 pass it to other functions.
4280
f954bd2c
JM
42812010-11-11 Joseph Myers <joseph@codesourcery.com>
4282
4283 * c-opts.c (warning_as_error_callback): Remove.
4284 (c_common_initialize_diagnostics): Don't call
4285 register_warning_as_error_callback.
4286 (c_common_handle_option): Handle -Werror=normalized= here.
4287
d8a07487
JM
42882010-11-10 Joseph Myers <joseph@codesourcery.com>
4289
4290 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4291 in diagnostic.
4292 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4293 letter.
4294 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4295 Remove trailing '.' from diagnostics.
4296 * c.opt (Wwrite-strings_: Avoid '`' in help text.
4297
d5478783
JM
42982010-11-10 Joseph Myers <joseph@codesourcery.com>
4299
4300 * c-common.c (parse_optimize_options): Pass global_dc to
4301 decode_options.
4302 * c-opts.c (c_common_handle_option): Pass &global_options to
4303 set_Wstrict_aliasing.
4304 * c.opt (v): Don't mark Common or document here.
4305
91ebb981
IS
43062010-11-06 Iain Sandoe <iains@gcc.gnu.org>
4307
4308 PR target/44981
4309 * c-format.c (format_type): New type gcc_objc_string_format_type.
4310 (valid_stringptr_type_p): New.
4311 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 4312 (check_format_string): Pass expected type, use
91ebb981
IS
4313 valid_stringptr_type_p (), check that the format string types are
4314 consistent with the format specification.
4315 (decode_format_attr): Warn if NSString is used outside objective-c.
4316 (format_types_orig): Add NSString.
4317 (format_name): New.
4318 (format_flags): New.
4319 (check_format_arg): Handle format strings requiring an external parser.
4320 first_target_format_type: New variable.
4321 (handle_format_attribute): Set up first_target_format_type, pass the
4322 expected format arg string type to check_format_string().
4323 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
4324 * stub-objc.c (objc_string_ref_type_p): New.
4325 (objc_check_format_arg): New.
4326
bede2adc
NP
43272010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
4328
9faeb493 4329 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
4330 * c-common.h (objc_build_class_component_ref): New.
4331 * stub-objc.c (objc_build_class_component_ref): New.
4332
9a179d01
NP
43332010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4334
4335 * c.opt (Wproperty-assign-default): New option.
4336
22d8d616
NP
43372010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4338
4339 Implemented -fobjc-std=objc1 flag.
4340 * c.opt (fobjc-std=objc1): New option.
4341
2debdb4f
NP
43422010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
4343
4344 Implemented format and noreturn attributes for Objective-C methods.
4345 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4346 attribute for Objective-C methods.
4347
ec52b111
JM
43482010-10-31 Jason Merrill <jason@redhat.com>
4349
4350 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4351 EXPR_LOC_OR_HERE.
4352
46a88c12
NP
43532010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4354
4355 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4356 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4357 (objc_add_property_declaration): Removed arguments for copies and
4358 ivar.
4359 (objc_build_getter_call): Renamed to
4360 objc_maybe_build_component_ref.
4361 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4362 (objc_is_property_ref): New.
4363 * c-common.c (c_common_reswords): Removed copies and ivar.
4364 * stub-objc.c (objc_add_property_declaration): Removed arguments
4365 for copies and ivar.
4366 (objc_build_getter_call): Renamed to
4367 objc_maybe_build_component_ref.
4368 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4369 (objc_is_property_ref): New.
9faeb493 4370
1e4bf85b
AC
43712010-10-29 Arnaud Charlet <charlet@adacore.com>
4372 Matthew Gingell <gingell@adacore.com>
4373
4374 * c-ada-spec.c (separate_class_package): New function.
4375 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4376 name of their enclosing package.
4377 (print_ada_declaration): Use separate_class_package.
4378
81f0bab2
JM
43792010-10-27 Jason Merrill <jason@redhat.com>
4380
2b08f2c5
JM
4381 * c-common.c (c_common_reswords): Add __is_literal_type.
4382 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4383
81f0bab2
JM
4384 * c-common.c (check_case_value): Remove special C++ code.
4385
200290f2
NP
43862010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4387
4388 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4389 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4390 and RID_LAST_PATTR.
4391 (objc_add_property_declaration): Added additional arguments.
4392 (objc_property_attribute_kind): Removed.
4393 (objc_set_property_attr): Removed.
4394 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4395 copy and nonatomic.
4396 * stub-objc.c (objc_add_property_declaration): Added additional
4397 arguments.
4398 (objc_set_property_attr): Removed.
9faeb493 4399
f614132b
NP
44002010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4401
4402 * c-common.h (objc_add_property_variable): Renamed to
4403 objc_add_property_declaration. Added location argument.
4404 * stub-objc.c (objc_add_property_variable): Same change.
4405
b8a18805
NP
44062010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4407
4408 * c-common.h (objc_maybe_printable_name): New.
4409 * stub-objc.c (objc_maybe_printable_name): New.
4410
30cd1c5d
AS
44112010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4412 Andrew Pinski <pinskia@gmail.com>
4413
4414 * c-common.h (c_common_mark_addressable_vec): Declare.
4415 * c-common.c (c_common_mark_addressable_vec): New function.
4416
249a82c4
NP
44172010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4418
4419 * c-common.h (objc_set_method_type): Removed.
4420 (objc_add_method_declaration): Added boolean argument.
4421 (objc_start_method_definition): Same change.
4422 (objc_build_method_signature): Same change.
4423 * stub-objc.c (objc_set_method_type): Removed.
4424 (objc_add_method_declaration): Added boolean argument.
4425 (objc_start_method_definition): Same change.
4426 (objc_build_method_signature): Same change.
4427
977e30bc
NP
44282010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4429
4430 * c-common.h (finish_file): Removed.
4431 (objc_write_global_declarations): New.
4432 * c-opts.c (c_common_parse_file): Do not call finish_file.
4433 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 4434
da57d1b9
NP
44352010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4436
4437 Implemented parsing @synthesize and @dynamic for
4438 Objective-C/Objective-C++.
4439 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4440 (objc_add_synthesize_declaration): New.
4441 (objc_add_dynamic_declaration): New.
4442 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4443 * stub-objc.c (objc_add_synthesize_declaration): New.
4444 (objc_add_dynamic_declaration): New.
9faeb493 4445
0069111f
MM
44462010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4447
4448 PR target/46041
4449 * c-cppbuiltin.c (mode_has_fma): Move function here from
4450 builtins.c. Don't use the fma optab, instead just use the
4451 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4452 using -save-temps.
4453
e426b47b
NP
44542010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4455
4456 Merge from 'apple/trunk' branch on FSF servers.
0069111f 4457
e426b47b
NP
4458 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4459
9faeb493 4460 Radar 4330422
e426b47b
NP
4461 * c-common.h (objc_non_volatilized_type): New declaration
4462 * stub-objc.c (objc_non_volatilized_type): New stub.
4463
90fbfdc3
NP
44642010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4465
e426b47b 4466 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
4467
4468 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4469
9faeb493 4470 Radar 4133425
90fbfdc3 4471 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 4472 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 4473
c37d8c30
IS
44742010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4475
4476 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4477 * c-common.h (enum rid): Add RID_AT_PACKAGE.
4478 (objc_ivar_visibility_kind): New enum.
4479 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 4480 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
4481 visibility enum.
4482
1b1562a5
MM
44832010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4484
4485 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4486 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4487 has the appropriate fma builtins.
4488 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4489
668ea4b1
IS
44902010-10-14 Iain Sandoe <iains@gcc.gnu.org>
4491
1b1562a5 4492 merge from FSF apple 'trunk' branch.
668ea4b1 4493 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 4494
668ea4b1
IS
4495 Radars 4436866, 4505126, 4506903, 4517826
4496 * c-common.c (c_common_resword): Define @property and its attributes.
4497 * c-common.h: Define property attribute enum entries.
4498 (OBJC_IS_PATTR_KEYWORD): New.
4499 (objc_property_attribute_kind): New enum.
4500 Declare objc_set_property_attr (), objc_add_property_variable (),
4501 objc_build_getter_call () and objc_build_setter_call ().
4502 * stub-objc.c (objc_set_property_attr): New stub.
4503 (objc_add_property_variable): Likewise.
4504 (objc_build_getter_call): Likewise.
4505 (objc_build_setter_call) Likewise.
1b1562a5 4506
a1178b30
IS
45072010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4508
1b1562a5 4509 merge from FSF apple 'trunk' branch.
a1178b30
IS
4510 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4511
4512 Radar 3803157 (method attributes)
4513 * c-common.c (handle_deprecated_attribute): Recognize
4514 objc methods as valid declarations.
4515 * c-common.h: Declare objc_method_decl ().
1b1562a5 4516 * stub-objc.c (objc_method_decl): New stub.
a1178b30 4517
a75bfaa6
JM
45182010-10-08 Joseph Myers <joseph@codesourcery.com>
4519
4520 * c-common.c (parse_optimize_options): Call
4521 decode_cmdline_options_to_array_default_mask before
4522 decode_options. Update arguments to decode_options.
4523 * c-common.h (c_common_init_options_struct): Declare.
4524 * c-opts.c (c_common_init_options_struct): New. Split out from
4525 c_common_init_options.
4526
f05b9d93
NP
45272010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4528
4529 Implemented fast enumeration for Objective-C.
4530 * c-common.h (objc_finish_foreach_loop): New.
4531 * stub-objc.c (objc_finish_foreach_loop): New.
4532
1ebe4b4f
JM
45332010-10-05 Joseph Myers <joseph@codesourcery.com>
4534
4535 * c-common.h (struct diagnostic_context): Don't declare here.
4536 (c_common_initialize_diagnostics): Declare using
4537 diagnostic_context typedef.
4538 * c-opts.c (c_common_handle_option): Pass global_dc to
4539 handle_generated_option.
4540
d4d24ba4
JM
45412010-10-04 Joseph Myers <joseph@codesourcery.com>
4542
4543 * c-opts.c (c_common_handle_option): Pass &global_options_set to
4544 handle_generated_option.
4545
478a1c5b
ILT
45462010-10-03 Ian Lance Taylor <iant@google.com>
4547
4548 * c.opt (-fplan9-extensions): New option.
4549
82a1c2fe
FXC
45502010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4551
4552 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4553 Remove.
4554 (c_cpp_builtins): Call functions from cppbuiltin.c instead
4555 of duplicating code.
4556
92902b1b
IS
45572010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4558
4559 * c-common.c: Add two new entries for @optional
4560 and @required keywords.
4561
4562 merge from FSF 'apple/trunk' branch.
4563 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
4564
4565 Radar 4386773
4566 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4567 objective-c keywords.
4568 (objc_set_method_opt): New declaration.
4569 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 4570
46625112
JM
45712010-09-30 Joseph Myers <joseph@codesourcery.com>
4572
4573 * c-common.c (handle_optimize_attribute): Pass &global_options to
4574 cl_optimization_save and cl_optimization_restore.
4575 * c-opts.c (c_common_handle_option): Pass &global_options to
4576 handle_generated_option.
4577 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4578 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4579 &global_options to cl_optimization_restore.
4580
49b91f05
NP
45812010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4582
4583 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4584 Objective-C/Objective-C++ keywords.
4585
13ed556f 45862010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 4587
9faeb493
UB
4588 Merge from 'apple/trunk' branch on FSF servers.
4589
a6341d57
NP
4590 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4591
4592 Radar 4281748
4593 * c-common.h (objc_check_global_decl): New declaration.
4594 * stub-objc.c (objc_check_global_decl): New stub.
4595
f0036cca
JM
45962010-09-29 Joseph Myers <joseph@codesourcery.com>
4597
4598 * c.opt: Don't use VarExists.
4599
e3339d0f
JM
46002010-09-29 Joseph Myers <joseph@codesourcery.com>
4601
4602 * c-common.c (c_cpp_error): Update names of diagnostic_context
4603 members.
4604 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4605 cl_optimization members.
4606 * c-opts.c (warning_as_error_callback, c_common_handle_option,
4607 sanitize_cpp_opts, finish_options): Update names of cpp_options
4608 members.
4609
1973201f
NP
46102010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4611
4612 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
4613 (objc_is_reserved_word): Removed.
4614 * c-common.c: Updated comments.
4615 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4616 objc_is_reserved_word.
4617 * stub-objc.c (objc_is_reserved_word): Removed.
4618
f7e71da5
IS
46192010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4620
9faeb493 4621 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
4622 include attributes.
4623 (objc_start_method_definition): Likewise.
4624 (objc_build_keyword_decl): Likewise.
4625 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4626 (objc_start_method_definition): Likewise.
4627 (objc_build_keyword_decl): Likewise.
4628
c165dca7
IS
46292010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4630
4631 * c-common.h (objc_start_class_interface): Adjust prototype.
4632 (objc_start_category_interface): Likewise.
4633 (objc_start_protocol): Likewise.
4634 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4635 (objc_start_class_interface): Likewise.
4636 (objc_start_category_interface): Likewise.
4637
7458026b
ILT
46382010-09-27 Ian Lance Taylor <iant@google.com>
4639
4640 * c-common.c (c_common_attribute_table): Add no_split_stack.
4641 (handle_no_split_stack_attribute): New static function.
4642
b581b85b
NP
46432010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4644
9faeb493 4645 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
4646
4647 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
4648
9faeb493 4649 Radar 4229905
b581b85b
NP
4650 * c-common.h (objc_have_common_type): New declaration.
4651 * stub-objc.c (objc_have_common_type): New stub.
4652
4653 2005-06-22 Ziemowit Laski <zlaski@apple.com>
4654
4655 Radar 4154928
4656 * c-common.h (objc_common_type): New prototype.
9faeb493 4657 * stub-objc.c (objc_common_type): New stub.
b581b85b 4658
46a4da10
JH
46592010-09-24 Jan Hubicka <jh@suse.cz>
4660
4661 * c-common.c (handle_leaf_attribute): New function.
4662 (struct attribute_spec c_common_att): Add leaf.
4663
e200444e
JM
46642010-09-22 Joseph Myers <joseph@codesourcery.com>
4665
4666 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4667 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4668 -dump, -dump=, -imacros, -imacros=, -include, -include=,
4669 -include-barrier, -include-directory, -include-directory=,
4670 -include-directory-after, -include-directory-after=,
4671 -include-prefix, -include-prefix=, -include-with-prefix,
4672 -include-with-prefix=, -include-with-prefix-after,
4673 -include-with-prefix-after=, -include-with-prefix-before,
4674 -include-with-prefix-before=, -no-integrated-cpp,
4675 -no-line-commands, -no-standard-includes, -no-warnings, -output,
4676 -output=, -pedantic, -pedantic-errors, -preprocess,
4677 -print-missing-file-dependencies, -trace-includes, -traditional,
4678 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4679 -user-dependencies, -verbose, -write-dependencies,
4680 -write-user-dependencies, no-integrated-cpp, traditional): New.
4681
29a80ea6
NP
46822010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4683
4684 PR objc/23710
ac1fc2fc
NP
4685 * c-common.h (objc_start_method_definition): Return bool instead
4686 of void.
4687 * stub-objc.c (objc_start_method_definition): Return bool instead
4688 of void.
4689
46902010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4691
4692 PR objc/25965
4693 * c-common.h (objc_get_interface_ivars): New declaration.
4694 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 4695
de621752
ILT
46962010-09-15 Ian Lance Taylor <iant@google.com>
4697
4698 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 4699 messages. Remove period at end of warning message.
de621752 4700
ba885ec5
NS
47012010-09-09 Nathan Sidwell <nathan@codesourcery.com>
4702
4703 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4704 (handle_alias_attribute): ... here.
4705 (handle_ifunc_attribute): New.
4706
c5ee1358
MM
47072010-09-06 Mark Mitchell <mark@codesourcery.com>
4708
4709 * c-common.h (do_warn_double_promotion): Declare.
4710 * c-common.c (do_warn_double_promotion): Define.
4711
0a0b3574
MM
47122010-09-05 Mark Mitchell <mark@codesourcery.com>
4713
4714 * c.opt (Wdouble-promotion): New.
4715
d1779886
JM
47162010-09-02 Joseph Myers <joseph@codesourcery.com>
4717
4718 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4719 fvtable-thunks, fxref): Mark no longer supported in help text.
4720
2d2bd949
JM
47212010-09-02 Joseph Myers <joseph@codesourcery.com>
4722
4723 * c.opt (Wimport, fall-virtual, falt-external-templates,
4724 fdefault-inline, fenum-int-equiv, fexternal-templates,
4725 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4726 fname-mangling-version-, fnew-abi, fnonnull-objects,
4727 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4728 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4729 applicable.
4730 (fhandle-exceptions): Mark with Alias and Warn.
4731 * c-opts.c (c_common_handle_option): Don't handle options marked
4732 as ignored.
4733
5de8299c
JM
47342010-09-02 Joseph Myers <joseph@codesourcery.com>
4735
4736 * c.opt (Wcomments, Werror-implicit-function-declaration,
4737 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4738 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4739 aliases.
4740 * c-common.c (option_codes): Use OPT_Wcomment instead of
4741 OPT_Wcomments.
4742 * c-opts.c (warning_as_error_callback, c_common_handle_option):
4743 Don't handle options marked as aliases.
4744
0ceb0201
RG
47452010-08-25 Richard Guenther <rguenther@suse.de>
4746
4747 * c-common.c (c_common_get_alias_set): Remove special
4748 handling for pointers.
4749
ac47786e
NF
47502010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4751
4752 * c-common.c: Use FOR_EACH_VEC_ELT.
4753 * c-gimplify.c: Likewise.
4754 * c-pragma.c: Likewise.
4755
c878765b
JM
47562010-08-16 Joseph Myers <joseph@codesourcery.com>
4757
4758 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
4759 RejectDriver.
4760 (MMDX): Change back to MMD. Mark NoDriverArg instead of
4761 RejectDriver.
4762 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4763 instead of OPT_MDX and OPT_MMDX.
4764
603349bf
JM
47652010-08-16 Joseph Myers <joseph@codesourcery.com>
4766
4767 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4768
644fa7ac
JM
47692010-08-12 Joseph Myers <joseph@codesourcery.com>
4770
4771 * c.opt (MD, MMD): Change to MDX and MMDX.
4772 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4773
481e1176
JM
47742010-08-11 Joseph Myers <joseph@codesourcery.com>
4775
4776 * c-opts.c (c_common_handle_option): Call handle_generated_option
4777 instead of handle_option.
4778
ac8dc9f7
NF
47792010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4780
4781 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4782 (maybe_apply_renaming_pragma): Delete unneeded declarations.
4783
4f8c876d
NF
47842010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4785
4786 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
4787 (pending_redefine_extname): Change type to a VEC.
4788 (add_to_renaming_pragma_list): Update for new type of
4789 pending_redefine_extname.
ac8dc9f7 4790 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 4791
3b0c690e
AC
47922010-08-04 Arnaud Charlet <charlet@adacore.com>
4793
4794 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4795 visited.
4796 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4797 decide whether a type has already been declared/seen.
4798 Do not go to the original type.
4799 (dump_nested_types): New parameter forward.
4800 Generate forward declaration if needed and mark type as visited.
4801 (print_ada_declaration): Call dump_nested_types if not already done.
4802 Mark types as visited.
4803
1890bccc
JM
48042010-08-03 Joseph Myers <joseph@codesourcery.com>
4805
4806 * c.opt (-print-pch-checksum): Remove option.
4807 * c-opts.c (c_common_handle_option): Don't handle
4808 OPT_print_pch_checksum.
4809
5f20c657
JM
48102010-07-27 Joseph Myers <joseph@codesourcery.com>
4811
4812 * c-common.h (c_common_handle_option): Update prototype and return
4813 value type.
4814 * c-opts.c (c_common_handle_option): Update prototype and return
4815 value type. Update calls to handle_option and
4816 enable_warning_as_error.
4817
f551f80c
JJ
48182010-07-27 Jakub Jelinek <jakub@redhat.com>
4819
4820 PR c/45079
4821 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4822
61ff2bdc
JM
48232010-07-27 Joseph Myers <joseph@codesourcery.com>
4824
4825 * c-common.h (c_common_missing_argument): Remove.
4826 * c-opts.c (c_common_missing_argument): Remove.
4827 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4828 idirafter, imacros, include, isysroot, isystem, iquote): Add
4829 MissingArgError.
4830 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4831
7a9bf9a4
JM
48322010-07-27 Joseph Myers <joseph@codesourcery.com>
4833
4834 * c-common.h (c_common_option_lang_mask,
4835 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4836 New.
4837 (c_common_init_options): Update prototype.
4838 * c-opts.c (c_common_option_lang_mask): New.
4839 (c_common_initialize_diagnostics): Split out of
4840 c_common_init_options.
4841 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4842 New.
4843 (c_common_init_options): Update prototype. Use decoded options in
4844 search for -lang-asm.
4845
910ad8de
NF
48462010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4847
4848 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4849 * c-format.c: Likewise.
4850
718f9c0f
MLI
48512010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4852
4853 * c-common.h: Include diagnostic-core.h. Error if already
4854 included.
4855 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4856
4d451982
MLI
48572010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4858
adfac8df 4859 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
4860 Do not include expr.h
4861 (vector_mode_valid_p): Move here.
4862
119fe915
SB
48632010-06-21 DJ Delorie <dj@redhat.com>
4864
4865 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4866 allow these pragmas anywhere.
4867
48682010-06-14 Jakub Jelinek <jakub@redhat.com>
4869
4870 PR bootstrap/44509
4871 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4872 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4873 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4874 ggc_strdup instead of xstrdup.
4875
48762010-06-10 Jakub Jelinek <jakub@redhat.com>
4877
4878 * c-cppbuiltin.c: Include cpp-id-data.h.
4879 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4880 (lazy_hex_fp_value): New function.
4881 (builtin_define_with_hex_fp_value): Provide definitions lazily.
4882
6662d794
MLI
48832010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4884
4885 * c-gimplify.c: Do not include tree-flow.h
4886
38f8b050
JR
48872010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4888
4889 PR other/44034
4890 * c-common.c: Rename targetm member:
4891 targetm.enum_va_list -> targetm.enum_va_list_p
4892
9589f23e
AS
48932010-06-28 Anatoly Sokolov <aesok@post.ru>
4894
4895 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4896
3b06d379
SB
48972010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4898
4899 * c-cppbuiltin.c: Do not include except.h.
4900
d166d4c3
AK
49012010-06-24 Andi Kleen <ak@linux.intel.com>
4902
9faeb493
UB
4903 * c-common.c (warn_for_omitted_condop): New.
4904 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 4905
70cb8be6
JM
49062010-06-21 Joseph Myers <joseph@codesourcery.com>
4907
4908 * c.opt (lang-objc): Remove.
4909 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4910
a4c97feb
JR
49112010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
4912
4913 * c-opts.c: Include "tm_p.h".
4914
6e2f1956
JM
49152010-06-20 Joseph Myers <joseph@codesourcery.com>
4916
4917 * c-common.c (parse_optimize_options): Update call to
4918 decode_options.
4919
bc87224e
NF
49202010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4921
4922 * c-common.c (record_types_used_by_current_var_decl): Adjust for
4923 new type of types_used_by_cur_var_decl.
4924
b49cf425
JR
49252010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
4926
4927 PR bootstrap/44512
4928 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4929 for C++ standard compliance.
4930
59f9c2ed
JM
49312010-06-16 Jason Merrill <jason@redhat.com>
4932
4933 * c.opt: Add -Wnoexcept.
4934
33766b66
RG
49352010-06-16 Richard Guenther <rguenther@suse.de>
4936
4937 PR c/44555
4938 * c-common.c (c_common_truthvalue_conversion): Remove
4939 premature and wrong optimization concering ADDR_EXPRs.
4940
eff7e30c
AC
49412010-06-15 Arnaud Charlet <charlet@adacore.com>
4942
4943 * c-ada-spec.c (dump_sloc): Remove column info.
4944 (is_simple_enum): New function.
4945 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4946 enum types when relevant.
4947
6312e84d
MLI
49482010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4949
9faeb493 4950 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
4951 location.
4952
1cb42611
JM
49532010-06-10 Joseph Myers <joseph@codesourcery.com>
4954
4955 * c-opts.c (c_common_handle_option): Don't handle
4956 OPT_fshow_column.
4957
a9429e29
LB
49582010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4959
4960 * c-pragma.c (push_alignment): Use typed GC allocation.
4961 (handle_pragma_push_options): Likewise.
4962
4963 * c-common.c (parse_optimize_options): Likewise.
4964
4965 * c-common.h (struct sorted_fields_type): Add variable_size GTY
4966 option.
4967
5498f011
JM
49682010-06-07 Joseph Myers <joseph@codesourcery.com>
4969
4970 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4971 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4972 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4973 flag_signed_bitfields, warn_strict_null_sentinel,
4974 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4975 flag_gen_declaration, flag_no_gnu_keywords,
4976 flag_implement_inlines, flag_implicit_templates,
4977 flag_implicit_inline_templates, flag_optional_diags,
4978 flag_elide_constructors, flag_default_inline, flag_rtti,
4979 flag_conserve_space, flag_access_control, flag_check_new,
4980 flag_new_for_scope, flag_weak, flag_working_directory,
4981 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4982 flag_enforce_eh_specs, flag_threadsafe_statics,
4983 flag_pretty_templates): Remove.
4984 * c-common.h (flag_preprocess_only, flag_nil_receivers,
4985 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4986 flag_replace_objc_classes, flag_undef, flag_no_builtin,
4987 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4988 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4989 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4990 flag_no_gnu_keywords, flag_implement_inlines,
4991 flag_implicit_templates, flag_implicit_inline_templates,
4992 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4993 flag_rtti, flag_conserve_space, flag_access_control,
4994 flag_check_new, flag_new_for_scope, flag_weak,
4995 flag_working_directory, flag_use_cxa_atexit,
4996 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4997 flag_threadsafe_statics, flag_pretty_templates,
4998 warn_strict_null_sentinel): Remove.
4999 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
5000 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
5001 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
5002 fimplicit-inline-templates, fimplicit-templates,
5003 flax-vector-conversions, fms-extensions, fnil-receivers,
5004 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
5005 frtti, fshort-double, fshort-enums, fshort-wchar,
5006 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
5007 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
5008 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
5009 gen-decls, undef): Use Var.
5010 (fdefault-inline, foptional-diags): Document as doing nothing.
5011 * c-opts.c (c_common_handle_option): Remove cases for options now
5012 using Var. Mark ignored options as such.
5013
39dabefd
SB
50142010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5015
9faeb493 5016 * c-common.c: Moved to here from parent directory.
39dabefd
SB
5017 * c-common.def: Likewise.
5018 * c-common.h: Likewise.
5019 * c-cppbuiltin.c: Likewise.
5020 * c-dump.c: Likewise.
5021 * c-format.c: Likewise.
5022 * c-format.h : Likewise.
5023 * c-gimplify.c: Likewise.
5024 * c-lex.c: Likewise.
5025 * c-omp.c: Likewise.
5026 * c.opt: Likewise.
5027 * c-opts.c: Likewise.
5028 * c-pch.c: Likewise.
5029 * c-ppoutput.c: Likewise.
5030 * c-pragma.c: Likewise.
5031 * c-pragma.h: Likewise.
5032 * c-pretty-print.c: Likewise.
5033 * c-pretty-print.h: Likewise.
5034 * c-semantics.c: Likewise.
5035 * stub-objc.c: Likewise.
5036
5037 * c-common.c: Include gt-c-family-c-common.h.
5038 * c-pragma.c: Include gt-c-family-c-pragma.h.
5039\f
5624e564 5040Copyright (C) 2010-2015 Free Software Foundation, Inc.
39dabefd
SB
5041
5042Copying and distribution of this file, with or without modification,
5043are permitted in any medium without royalty provided the copyright
5044notice and this notice are preserved.