]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
Change use to type-based pool allocator in asan.c.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
1edfb384
EB
12015-05-31 Eric Botcazou <ebotcazou@adacore.com>
2
3 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
4 (has_nontrivial_methods): Likewise.
5
9677ef52
MP
62015-05-25 Marek Polacek <polacek@redhat.com>
7
8 * c-ubsan.c (ubsan_instrument_shift): Use type0.
9
fd5c817a
MP
102015-05-22 Marek Polacek <polacek@redhat.com>
11
12 PR c/47043
13 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
14
a2f45fe6 152015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
16
17 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
18 STACK_GROWS_DOWNWARD.
19
a2f45fe6 202015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
21
22 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
23 STACK_GROWS_DOWNWARD rather than if it is defined.
24
0fee2ac2
MLI
252015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
26
27 PR c/52952
28 * c-format.c (location_column_from_byte_offset): New.
29 (location_from_offset): New.
30 (struct format_wanted_type): Add offset_loc field.
31 (check_format_info): Move handling of location for extra arguments
32 closer to the point of warning.
33 (check_format_info_main): Pass the result of location_from_offset
34 to warning_at.
35 (format_type_warning): Pass the result of location_from_offset
36 to warning_at.
37
cf4ef6f7
MP
382015-05-20 Marek Polacek <polacek@redhat.com>
39
40 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
41
3a65ee74
MP
422015-05-20 Marek Polacek <polacek@redhat.com>
43
44 * c-ada-spec.c (dump_sloc): Use DECL_P.
45
21b634ae
MP
462015-05-20 Marek Polacek <polacek@redhat.com>
47
48 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
49 * c-common.c: Likewise.
50
0e50b624
DM
512015-05-19 David Malcolm <dmalcolm@redhat.com>
52
53 * c-common.h (fe_file_change): Strengthen param from
54 const line_map * to const line_map_ordinary *.
55 (pp_file_change): Likewise.
56 * c-lex.c (fe_file_change): Likewise.
57 (cb_define): Use linemap_check_ordinary when invoking
58 SOURCE_LINE.
59 (cb_undef): Likewise.
60 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
61 invoking cb_file_change.
62 (c_finish_options): Likewise.
63 (push_command_line_include): Likewise.
64 (cb_file_change): Strengthen param "new_map" from
65 const line_map * to const line_map_ordinary *.
66 * c-ppoutput.c (cb_define): Likewise for local "map".
67 (pp_file_change): Likewise for param "map" and local "from".
68
fab27f52
MM
692015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
70
71 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
72
2fe1d762
TV
732015-05-18 Tom de Vries <tom@codesourcery.com>
74
75 * c-common.c (build_va_arg_1): New function.
76 (build_va_arg): Add address operator to va_list operand if necessary.
77
7a37fa90
MM
782015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
79
80 PR c/48956
81 * c-common.c (int_safely_convertible_to_real_p): Define.
82 (unsafe_conversion_p): Check conversions involving complex types.
83 (conversion_warning): Add new warning message for conversions which
84 discard imaginary component.
85 * c-common.h: (enum conversion_safety): Add new enumerator for such
86 conversions.
87
3aa3c9fc
MP
882015-05-14 Marek Polacek <polacek@redhat.com>
89
90 PR c/66066
91 PR c/66127
92 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
93 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
94 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
95 use it. If FOR_INT_CONST, require that all evaluated operands be
96 INTEGER_CSTs.
97
c3388e62
DM
982015-05-12 David Malcolm <dmalcolm@redhat.com>
99
100 * c-common.h (warn_for_misleading_indentation): New prototype.
101 * c-indentation.c: New file.
102 * c.opt (Wmisleading-indentation): New option.
103
c7b38fd5
TV
1042015-05-12 Tom de Vries <tom@codesourcery.com>
105
106 PR tree-optimization/66010
107 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
108
381bf11e
JM
1092015-05-09 Jason Merrill <jason@redhat.com>
110
edff0c06
JM
111 * c-opts.c (c_common_post_options): Also clear
112 cpp_opts->cpp_warn_cxx11_compat.
113
129211bc
JM
114 * c-common.h (enum cxx_dialect): Add cxx_unset.
115 * c-common.c (cxx_dialect): Initialize to cxx_unset.
116 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
117
381bf11e
JM
118 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
119 (std=gnu++0x): Mark as Undocumented.
120 (std=gnu++1y): Add deprecated message.
121
fe191308
JM
1222015-05-08 Jason Merrill <jason@redhat.com>
123
765189ff
JM
124 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
125 * c-opts.c: Adjust.
126
fe191308
JM
127 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
128
755e528f
MP
1292015-05-08 Marek Polacek <polacek@redhat.com>
130
131 PR c/64918
132 * c.opt (Woverride-init-side-effects): New option.
133
0173bd2a
MP
1342015-05-07 Marek Polacek <polacek@redhat.com>
135
136 PR c/65179
137 * c-common.c (c_fully_fold_internal): Warn when left shifting a
138 negative value.
139 * c.opt (Wshift-negative-value): New option.
140 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
141 when -Wextra and C99/C++11 mode.
142
e0f0d3b9
MP
1432015-05-07 Marek Polacek <polacek@redhat.com>
144 Martin Uecker <uecker@eecs.berkeley.edu>
145
146 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
147 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
148
8243e2a9
JM
1492015-05-05 Jason Merrill <jason@redhat.com>
150
151 * c.opt (Wterminate): New.
152
577cd070
MP
1532015-04-30 Marek Polacek <polacek@redhat.com>
154
155 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
156 require that the non-constant be of a boolean type.
157
0373796b
JT
1582015-04-29 Josh Triplett <josh@joshtriplett.org>
159
e0f0d3b9
MP
160 * c-common.c (handle_section_attribute): Refactor to reduce
161 nesting and distinguish between error cases.
0373796b 162
716c0ba6
MP
1632015-04-29 Marek Polacek <polacek@redhat.com>
164
165 PR c/64610
166 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
167 with 0/1.
168
8848828b
JJ
1692015-04-29 Jakub Jelinek <jakub@redhat.com>
170
171 * c-common.h (omp_clause_mask): Unconditionally define as a class.
172 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
173 HOST_BITS_PER_WIDE_INT.
174
ecd0e562
TV
1752015-04-28 Tom de Vries <tom@codesourcery.com>
176
177 PR tree-optimization/65887
178 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
179
2a877204 1802015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 181 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
182
183 * c-ada-spec.c (in_function): Delete.
184 (dump_generic_ada_node): Do not change in_function and remove the
185 redundant code dealing with it.
186 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
187 (print_ada_methods): Output the static member functions in a nested
188 package after the regular methods as well as associated renamings.
189
4853031e
MP
1902015-04-24 Marek Polacek <polacek@redhat.com>
191
192 PR c/65830
193 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
194 and OPT_Wshift_count_overflow.
195
8c2b7f79
MP
196 PR c/63357
197 * c-common.c (warn_logical_operator): Warn if the operands have the
198 same expressions.
199
b8787813
MP
2002015-04-24 Marek Polacek <polacek@redhat.com>
201
202 PR c/61534
203 * c-common.c (warn_logical_operator): Bail if either operand comes
204 from a macro expansion.
205
8fba1830
BRF
2062015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
207
208 PR target/55143
209 * c-common.c (c_default_pointer_mode): Add definition.
210 * c-common.h (c_default_pointer_mode): Add declaration.
211
17958621
JJ
2122015-03-11 Jakub Jelinek <jakub@redhat.com>
213
214 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
215 on record_builtin_type argument.
216
7ccb1a11
JJ
2172015-03-10 Jakub Jelinek <jakub@redhat.com>
218
219 PR c/65120
220 * c-common.c (warn_logical_not_parentheses): Don't warn for
221 !x == 0 or !x != 0.
222
04fd785e
MP
2232015-03-07 Marek Polacek <polacek@redhat.com>
224
225 PR sanitizer/65280
226 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
227 before trying to figure out whether we have a flexible array member.
228
a4e26206
EB
2292015-03-06 Eric Botcazou <ebotcazou@adacore.com>
230 Jonathan Wakely <jwakely.gcc@gmail.com>
231
232 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
233
0d2489f4
EB
2342015-03-05 Eric Botcazou <ebotcazou@adacore.com>
235
236 PR ada/65319
237 * c-ada-spec.c (print_destructor): Remove obsolete code.
238
83ed54d7
EB
2392015-03-01 Eric Botcazou <ebotcazou@adacore.com>
240
241 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
242 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
243 DECL_TEMPLATE_RESULT emulations.
244 (dump_ada_template)): Add guard for TYPE_METHODS.
245
7631f0e2
MP
2462015-02-27 Marek Polacek <polacek@redhat.com>
247
248 PR c/65040
249 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
250
d1783ae5
KT
2512015-02-27 Kai Tietz <ktietz@redhat.com>
252
253 PR c/35330
254 * c-pragma.c (handle_pragma_weak): Do not try to create
255 weak/alias of declarations not being function, or variable
256 declarations.
257
56a9f6bc
TS
2582015-02-24 Thomas Schwinge <thomas@codesourcery.com>
259
260 PR libgomp/64625
261 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
262 Remove macros.
263 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
264
3d5cb23d
MP
2652015-02-16 Marek Polacek <polacek@redhat.com>
266
267 PR c/65066
268 * c-format.c (check_format_types): Handle null param.
269
fa008882
MP
2702015-02-13 Marek Polacek <polacek@redhat.com>
271
272 PR c/65040
273 * c-format.c (check_format_types): Don't warn about different
274 signedness if the original value is in the range of WANTED_TYPE.
275
785f21af
JM
2762015-02-12 Jason Merrill <jason@redhat.com>
277
278 PR c++/64956
279 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
280 to the current highest version.
281 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
282
4886ec8e
JJ
2832015-02-04 Jakub Jelinek <jakub@redhat.com>
284
285 PR c/64824
286 PR c/64868
287 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
288 instead of RDIV_EXPR. Use build_binary_op instead of
289 build2_loc.
290
40fecdd6
JM
2912015-01-30 Joseph Myers <joseph@codesourcery.com>
292
293 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
294 to pass input_location as first argument.
295
a0c88d06
TV
2962015-01-23 Tom de Vries <tom@codesourcery.com>
297
298 PR libgomp/64672
299 * c.opt (fopenacc): Mark as LTO option.
300
1506ae0e
TV
3012015-01-23 Tom de Vries <tom@codesourcery.com>
302
303 PR libgomp/64707
304 * c.opt (fopenmp): Mark as LTO option.
305
31be63ab
JJ
3062015-01-21 Jakub Jelinek <jakub@redhat.com>
307
308 PR c/63307
309 * cilk.c (fill_decls_vec): Only put decls into vector v.
310 (compare_decls): Fix up formatting.
311
3122015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
313
314 PR c/63307
315 * cilk.c: Include vec.h.
316 (struct cilk_decls): New structure.
317 (wrapper_parm_cb): Split this function to...
318 (fill_decls_vec): ...this...
319 (create_parm_list): ...and this.
320 (compare_decls): New function.
321 (for_local_cb): Remove.
322 (wrapper_local_cb): Ditto.
323 (build_wrapper_type): For now first traverse and fill vector of
324 declarations then sort it and then deal with sorted vector.
325 (cilk_outline): Ditto.
326 (declare_one_free_variable): Ditto.
327
6875457f
JM
3282015-01-21 Jason Merrill <jason@redhat.com>
329
330 PR c++/64629
331 * c-format.c (check_format_arg): Call decl_constant_value.
332
185c9e56
ML
3332015-01-19 Martin Liska <mliska@suse.cz>
334
335 * c-common.c (handle_noicf_attribute): New function.
336
41dbbb37
TS
3372015-01-15 Thomas Schwinge <thomas@codesourcery.com>
338 Bernd Schmidt <bernds@codesourcery.com>
339 James Norris <jnorris@codesourcery.com>
340 Cesar Philippidis <cesar@codesourcery.com>
341 Ilmir Usmanov <i.usmanov@samsung.com>
342 Jakub Jelinek <jakub@redhat.com>
343
344 * c.opt (fopenacc): New option.
345 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
346 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
347 New macros.
348 * c-common.h (c_finish_oacc_wait): New prototype.
349 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
350 (c_finish_oacc_wait): New function.
351 * c-pragma.c (oacc_pragmas): New variable.
352 (c_pp_lookup_pragma, init_pragma): Handle it.
353 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
354 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
355 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
356 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
357 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
358 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
359 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
360 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
361 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
362 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
363 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
364 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
365 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
366 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
367 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
368 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
369 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
370 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
371 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
372 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
373 PRAGMA_OACC_CLAUSE_WORKER.
374
5434dc07
MD
3752015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
376
377 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
378 for the new option fstack-protector_explicit.
379 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
380 (handle_stack_protect_attribute): New function.
381
de1b5c17
MU
3822015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
383
384 * c.opt: New option -Warray-bounds=.
385
adfac8df
JJ
3862015-01-09 Michael Collison <michael.collison@linaro.org>
387
388 * array-notation-common.c: Include hash-set.h, machmode.h,
389 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
390 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
391 * c-ada-spec.c: Ditto.
392 * c-cilkplus.c: Ditto.
393 * c-common.c: Include input.h due to flattening of tree.h.
394 Define macro GCC_C_COMMON_C.
395 * c-common.h: Flatten tree.h header files into c-common.h.
396 Remove include of tree-core.h.
397 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
398 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
399 fold-const.h, wide-int.h, and inchash.h due to
400 flattening of tree.h.
401 * c-dump.c: Ditto.
402 * c-format.c: Flatten tree.h header files into c-common.h.
403 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
404 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
405 fold-const.h, wide-int.h, and inchash.h due to
406 flattening of tree.h.
407 * c-dump.c: Include hash-set.h, machmode.h,
408 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
409 fold-const.h, wide-int.h, and inchash.h due to
410 flattening of tree.h.
411 * c-format.c: Include hash-set.h, machmode.h,
412 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
413 fold-const.h, wide-int.h, inchash.h and real.h due to
414 flattening of tree.h.
415 * c-gimplify.c: Include hash-set.h, machmode.h,
416 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
417 fold-const.h, wide-int.h, and inchash.h due to
418 flattening of tree.h.
419 * cilk.c: Ditto.
420 * c-lex.c: Ditto.
421 * c-omp.c: Ditto.
422 * c-opts.c: Ditto.
423 * c-pch.c: Ditto.
424 * c-ppoutput.c: Ditto.
425 * c-pragma.c: Ditto.
426 * c-pretty-print.c: Ditto.
427 * c-semantics.c: Ditto.
428 * c-ubsan.c: Ditto.
429 * stub-objc.c: Ditto.
430
f5481fc4
JM
4312015-01-08 Jason Merrill <jason@redhat.com>
432
433 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
434 do_ubsan_in_current_function.
435 (ubsan_maybe_instrument_reference_or_call): Likewise.
436 * c-ubsan.h: Declare it.
437
de35aa66
MS
4382015-01-08 Mike Stump <mikestump@comcast.net>
439
440 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
441
4a9a42ab
MP
4422015-01-07 Marek Polacek <polacek@redhat.com>
443
444 PR c/64440
445 * c-common.c (c_fully_fold_internal): Warn for division and modulo
446 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
447
2f42e5de
TS
4482015-01-05 Trevor Saunders <tsaunders@mozilla.com>
449
450 PR c++/31397
451 * c.opt (Wsuggest-override): New option.
452
5624e564
JJ
4532015-01-05 Jakub Jelinek <jakub@redhat.com>
454
455 Update copyright years.
456
5bd012f8
MP
4572015-01-05 Marek Polacek <polacek@redhat.com>
458
459 PR c/64423
460 * c-common.c (warn_array_subscript_with_type_char): Add location_t
461 parameter. Use it.
462 * c-common.h (warn_array_subscript_with_type_char): Update
463 declaration.
464
a7fa8d18
ESR
4652014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
466
467 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
468 Control macro with flag_sized_deallocation.
469
768952be
MU
4702014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
471
472 * c.opt (Wdiscarded-array-qualifiers): New option.
473
1f8d3e84
JJ
4742014-12-19 Jakub Jelinek <jakub@redhat.com>
475
476 PR preprocessor/63831
477 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
478 and __has_cpp_attribute here.
479 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
480 c_common_has_attribute.
481 * c-common.h (c_common_has_attribute): New prototype.
482 * c-lex.c (init_c_lex): Set cb->has_attribute to
483 c_common_has_attribute instead of cb_has_attribute.
484 (get_token_no_padding): New function.
485 (cb_has_attribute): Renamed to ...
486 (c_common_has_attribute): ... this. No longer static. Use
487 get_token_no_padding, require ()s, don't build TREE_LIST
488 unnecessarily, fix up formatting, adjust diagnostics, call
489 init_attributes.
490
20b06add
JM
4912014-12-15 Jason Merrill <jason@redhat.com>
492
493 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
494 (-Wsized-deallocation): New.
495 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
496 to on in C++14 and up.
497
94a073b2
JM
4982014-12-11 Jason Merrill <jason@redhat.com>
499
acaa5911
JM
500 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
501
94a073b2
JM
502 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
503 we aren't complaining about VLAs.
504
7fb66c15
MP
5052014-12-06 Marek Polacek <polacek@redhat.com>
506
507 PR tree-optimization/64183
508 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
509 shift-expression if it is integer_type_node. Use types_compatible_p.
510
b731b390
JJ
5112014-11-29 Jakub Jelinek <jakub@redhat.com>
512
513 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
514 last argument from create_tmp_var_raw and create_tmp_var calls.
515 * cilk.c (gimplify_cilk_spawn): Likewise.
516 * c-omp.c (c_finish_omp_atomic): Likewise.
517
6a4da643
MP
5182014-11-28 Marek Polacek <polacek@redhat.com>
519
520 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
521 instead of unsigned_type_node.
522
541e35a6
MP
5232014-11-28 Marek Polacek <polacek@redhat.com>
524
525 PR c/63862
526 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
527 to op1_utype.
528 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
529 expression to unsigned_type_node.
530
dcc97066
MW
5312014-11-20 Mark Wielaard <mjw@redhat.com>
532
533 PR debug/38757
534 * c-opts.c (set_std_c89): Set lang_hooks.name.
535 (set_std_c99): Likewise.
536 (set_std_c11): Likewise.
537 (set_std_cxx98): Likewise.
538 (set_std_cxx11): Likewise.
539 (set_std_cxx14): Likewise.
540 (set_std_cxx1z): Likewise.
541
aa7da51a
JJ
5422014-11-21 Jakub Jelinek <jakub@redhat.com>
543
544 PR target/63764
545 * c-common.h (convert_vector_to_pointer_for_subscript): Change
546 return type to bool.
009a3480 547 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
548 (convert_vector_to_pointer_for_subscript): Change return type to
549 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
550 and copy it into a TARGET_EXPR and use that instead of *vecp
551 directly.
552
538dd0b7
DM
5532014-11-19 David Malcolm <dmalcolm@redhat.com>
554
555 Merger of git branch "gimple-classes-v2-option-3".
556 * ChangeLog.gimple-classes: New.
557 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
558 from being just a vec<gimple> to a vec<gbind *>.
559
c39a5e99
JJ
5602014-11-18 Jakub Jelinek <jakub@redhat.com>
561
562 PR sanitizer/63813
563 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
564 argument to ptype, set type to TREE_TYPE (ptype). Don't call
565 get_pointer_alignment for non-pointers. Use ptype, or if it is
566 reference type, corresponding pointer type, as type of kind
567 argument.
568 (ubsan_maybe_instrument_reference,
569 ubsan_maybe_instrument_member_call): Adjust callers.
570
8537a4a9
MP
5712014-11-15 Marek Polacek <polacek@redhat.com>
572
573 PR middle-end/63884
574 * array-notation-common.c (is_sec_implicit_index_fn): Return false
575 for NULL fndecl.
576 (extract_array_notation_exprs): Return for NULL node.
577
2079956a
JM
5782014-11-12 Joseph Myers <joseph@codesourcery.com>
579
580 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
581 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
582
1304953e
JJ
5832014-11-12 Jakub Jelinek <jakub@redhat.com>
584
585 PR c/59708
586 * c-common.c (check_builtin_function_arguments): Handle
587 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
588
e5e44252
AK
5892014-11-10 Andi Kleen <ak@linux.intel.com>
590
591 PR c/60804
592 * c-common.h (check_no_cilk): Declare.
593 * cilk.c (get_error_location): New function.
594 (check_no_cilk): Dito.
595
e64b984d
AK
5962014-11-10 Andi Kleen <ak@linux.intel.com>
597
598 * cilk.c (recognize_spawn): Use expression location
599 for error message.
600
13c21655
PC
6012014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
602
603 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
604
42fd12b1
ESR
6052014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
606
607 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
608 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
609 (__cpp_range_based_for, __cpp_initializer_lists,
610 __cpp_delegating_constructors, __cpp_nsdmi,
611 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
612 for C++11; (__cpp_attribute_deprecated): Remove in favor of
613 __has_cpp_attribute.
614 * c-lex.c (cb_has_attribute): New callback CPP function;
615 (init_c_lex): Set has_attribute callback.
616
6f450181
RB
6172014-11-04 Richard Biener <rguenther@suse.de>
618
619 * c-common.c (shorten_compare): Do not shorten mixed
620 DFP and non-DFP compares.
621
26f0e1d6
ESR
6222014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
623
624 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
625 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
626 Commentary and rearrangement of tests.
627 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
628 Commentary and rearrangement of tests.
629 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
630 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
631
ef4bddc2
RS
6322014-10-29 Richard Sandiford <richard.sandiford@arm.com>
633
634 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
635 enum from machine_mode.
636
c582198b
AM
6372014-10-28 Andrew MacLeod <amacleod@redhat.com>
638
adfac8df
JJ
639 * c-common.c: Adjust include files.
640 * c-gimplify.c: Ditto.
641 * cilk.c: Ditto.
642 * c-pragma.c: Ditto.
643 * c-ubsan.c: Ditto.
c582198b 644
60393bbc
AM
6452014-10-27 Andrew MacLeod <amacleod@redhat.com>
646
647 * c-gimplify.c: Adjust include files.
648
d723bb7c
MLI
6492014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
650
651 PR c++/53061
652 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
653 c_common_initialize_diagnostics.
654 * c-common.h: Likewise.
655
90f3520e
MP
6562014-10-24 Marek Polacek <polacek@redhat.com>
657
658 PR c/56980
659 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
660 print "struct"/"union"/"enum" for typedefed names.
661
59d7607a
MP
6622014-10-23 Marek Polacek <polacek@redhat.com>
663
664 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
665 in unsigned type.
666
d95a2703
JJ
6672014-10-22 Jakub Jelinek <jakub@redhat.com>
668 Yury Gribov <y.gribov@samsung.com>
669
670 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
671 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
672 instead of flag_sanitize_recover as bool flag.
673
8e6ef852
KY
6742014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
675
676 * cilk.c: Revert previous change.
677
948cf550
IZ
6782014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
679
680 PR c/63307
681 * cilk.c: Include vec.h.
682 (struct cilk_decls): New structure.
683 (wrapper_parm_cb): Split this function to...
684 (fill_decls_vec): ...this...
685 (create_parm_list): ...and this.
686 (compare_decls): New function.
687 (for_local_cb): Remove.
688 (wrapper_local_cb): Ditto.
689 (build_wrapper_type): For now first traverse and fill vector of
690 declarations then sort it and then deal with sorted vector.
691 (cilk_outline): Ditto.
692 (declare_one_free_variable): Ditto.
693
92574c7c
MP
6942014-10-17 Marek Polacek <polacek@redhat.com>
695
696 * c-opts.c (c_common_post_options): Set warn_implicit_int.
697 * c.opt (Wimplicit-int): Initialize to -1.
698
83685514
AM
6992014-10-16 Andrew MacLeod <amacleod@redhat.com>
700
701 * c-pragma.c: Adjust include files.
702 * c-semantics.c: Likewise.
703
5b8300ea
DD
7042014-10-16 DJ Delorie <dj@redhat.com>
705
706 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
707 multiples of bytes.
708
5f83e90b
JM
7092014-10-14 Jason Merrill <jason@redhat.com>
710
711 PR c++/63455
712 * c-common.h (CPP_PREPARSED_EXPR): New.
713 (N_CP_TTYPES): Adjust.
714
d73326ca
MP
7152014-10-15 Marek Polacek <polacek@redhat.com>
716
717 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
718
78a7c317
DD
7192014-10-14 DJ Delorie <dj@redhat.com>
720
721 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
722 types, not just __int128.
723 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
724 types, not just __int128.
725 (cpp_atomic_builtins): Round pointer sizes up.
726 (type_suffix): Use type precision, not specific types.
727 * c-common.c (c_common_reswords): Remove __int128 special case.
728 (c_common_type_for_size): Check for all __intN types, not just
729 __int128.
730 (c_common_type_for_mode): Likewise.
731 (c_common_signed_or_unsigned_type): Likewise.
732 (c_build_bitfield_integer_type): Likewise.
733 (c_common_nodes_and_builtins): Likewise.
734 (keyword_begins_type_specifier): Likewise.
735 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
736 __intN variants.
737
2a22f99c
TS
7382014-10-12 Trevor Saunders <tsaunders@mozilla.com>
739
740 * c-common.c: Use hash_table instead of hashtab.
741
2a8ef767
ESR
7422014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
743
adfac8df 744 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
745 C++11 section.
746
3c9aabbd
MG
7472014-10-03 Marc Glisse <marc.glisse@inria.fr>
748
749 PR c++/54427
750 PR c++/57198
751 PR c++/58845
752 * c-common.c (warn_logical_operator): Punt for vectors.
753
a15f7cb8
ESR
7542014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
755
756 Implement SD-6: SG10 Feature Test Recommendations
757 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
758 macros and the __has_header macro.
759
8d0cf15e
JM
7602014-09-30 Jason Merrill <jason@redhat.com>
761
dd5d5481
JM
762 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
763 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
764 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
765
b752325e
JM
766 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
767 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
768
8d0cf15e
JM
769 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
770 * c-common.c (c_common_reswords): Remove __is_convertible_to.
771
083e891e
MP
7722014-09-24 Marek Polacek <polacek@redhat.com>
773
774 PR c/61405
775 PR c/53874
776 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
777
7861b648
AK
7782014-09-23 Andi Kleen <ak@linux.intel.com>
779
780 * c-common.c (handle_no_reorder_attribute): New function.
781 (c_common_attribute_table): Add no_reorder attribute.
782
9a79452d
JM
7832014-09-22 Joseph Myers <joseph@codesourcery.com>
784
785 * c-cppbuiltin.c (c_cpp_builtins): Define
786 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
787 modes.
788
dd69f047
JM
7892014-09-18 Joseph Myers <joseph@codesourcery.com>
790
791 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
792 for supported floating-point modes.
793
737a4826
MLI
7942014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
795
796 * c.opt (Wpsabi): Use LangEnabledBy.
797 * c-opts.c (c_common_handle_option): Do not handle here.
798
8cc4b7a2
JM
7992014-09-12 Joseph Myers <joseph@codesourcery.com>
800
801 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
802 macros for floating-point modes.
803
179b5a55
MG
8042014-09-11 Marc Glisse <marc.glisse@inria.fr>
805
806 PR target/58757
807 * c-cppbuiltin.c (builtin_define_float_constants): Correct
808 __*_DENORM_MIN__ without denormals.
809
570a11fe
JJ
8102014-09-10 Jakub Jelinek <jakub@redhat.com>
811
812 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
813 ubsan_instrument_vla, ubsan_instrument_return): Adjust
814 ubsan_create_data callers.
815 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
816 index is constant or BIT_AND_EXPR with constant mask and is
817 small enough for the bound.
818 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
819 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
820
b559c810
MLI
8212014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
822
823 * c.opt: Add CppReason to various flags.
824 (Wdate-time): Re-sort.
825 * c-common.c: Include c-common.h earlier.
826 (struct reason_option_codes_t): Delete.
827 (c_option_controlling_cpp_error): Prefix global type and struct
828 with cpp_.
829
1ef33fd4
MLI
8302014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
831
832 * c.opt (Wnormalized): New.
833 (Wnormalized=): Use Enum and Reject Negative.
834 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
835
66bb34c0
JM
8362014-09-08 Joseph Myers <joseph@codesourcery.com>
837
838 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
839 digits of floating-point modes if -fbuilding-libgcc.
840
53d68b9f
JM
8412014-09-05 Joseph Myers <joseph@codesourcery.com>
842
843 * c-cppbuiltin.c (c_cpp_builtins): Also define
844 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
845 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
846 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
847 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
848 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
849 __LIBGCC_STACK_GROWS_DOWNWARD__,
850 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
851 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
852 __LIBGCC_DWARF_FRAME_REGISTERS__,
853 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
854 __LIBGCC_STACK_POINTER_REGNUM__ and
855 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
856 (builtin_define_with_value): Handle backslash-escaping in string
857 macro values.
858
f65586dc
RB
8592014-09-05 Richard Biener <rguenther@suse.de>
860
861 PR middle-end/63148
862 * c-format.c (check_format_arg): Properly handle
863 effectively signed POINTER_PLUS_EXPR offset.
864
2b71f4a4
MLI
8652014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
866
867 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
868 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
869 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
870 and Init.
871 * c-opts.c (c_common_handle_option): Do not handle here.
872 (sanitize_cpp_opts): Likewise.
873 * c-common.c (struct reason_option_codes_t): Handle
874 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
875
d2e4feca
MP
8762014-09-03 Marek Polacek <polacek@redhat.com>
877
878 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
879
9a771876
JJ
8802014-09-02 Jakub Jelinek <jakub@redhat.com>
881 Balaji V. Iyer <balaji.v.iyer@intel.com>
882 Igor Zamyatin <igor.zamyatin@intel.com>
883
884 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
885 * c-common.c (c_common_reswords): Added _Cilk_for.
886 * c-common.h (enum rid): Added RID_CILK_FOR.
887 (cilk_for_number_of_iterations): Add declaration.
888 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
889 CILK_FOR.
890 * c-pragma.c (init_pragma): Register "grainsize" pragma.
891 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
892
81b5d104
MLI
8932014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
894
895 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
896 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
897 Wundef): Use CPP, Var and Init.
898 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
899
b753b37b
MLI
9002014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
901
902 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
903 * c-opts.c (c_common_handle_option): Do not handle here.
904
028aee17
JM
9052014-08-25 Jason Merrill <jason@redhat.com>
906
907 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
908 -std=c++14 and -std=gnu++14, rather than the reverse.
909 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
910 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
911 * c-common.h (cxx_dialect): Remove cxx1y.
912
e4276ba5
ESR
9132014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
914
915 * c-common.h (enum cxx_dialect): Add cxx14.
916 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
917 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
918 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
919
a545cacd
JM
9202014-08-22 Jason Merrill <jason@redhat.com>
921
922 * c.opt (std=gnu++17): Fix alias.
923
59ea0364
MP
9242014-08-22 Marek Polacek <polacek@redhat.com>
925
926 PR c++/62199
927 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
928 check for vector types. Drop LHS argument.
929 * c-common.h (warn_logical_not_parentheses): Adjust.
930
596e808c
MLI
9312014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
932
933 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
934 (Wmultichar): Likewise.
935 (Wdate-time): Use C-family languages instead of Common. Use CPP
936 and Var.
937 * c-opts.c (c_common_handle_option): Do not handle the above
938 options here.
939 (sanitize_cpp_opts): Likewise.
940
18767f65
MLI
9412014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
942
943 PR fortran/44054
944 * c-opts.c: Include tree-diagnostics.h.
945 (c_diagnostic_finalizer): New.
946 (c_common_initialize_diagnostics): Use it.
947
b4413594
MLI
9482014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
949
950 PR preprocessor/51303
951 * c-common.c (struct reason_option_codes_t option_codes):
952 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
953
43f9a13c
MLI
9542014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
955
956 PR c/60975
957 PR c/53063
958 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
959 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
960 (c_common_post_options): Call init_global_opts_from_cpp.
961 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
962
04159acf
MP
9632014-08-19 Marek Polacek <polacek@redhat.com>
964
965 PR c++/62153
966 * c-common.c (maybe_warn_bool_compare): New function.
967 * c-common.h (maybe_warn_bool_compare): Declare.
968 * c.opt (Wbool-compare): New option.
969
35aff4fb
MP
9702014-08-19 Marek Polacek <polacek@redhat.com>
971
972 * c.opt (Wc99-c11-compat): New option.
973
177cce46
MP
9742014-08-19 Marek Polacek <polacek@redhat.com>
975
976 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
977 to warn_c90_c99_compat.
978 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
979 to -1.
980
6ae9194f
MLI
9812014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
982 Steven Bosscher <steven@gcc.gnu.org>
983
984 PR c/52952
985 * c-format.c: Add extra_arg_loc and format_string_loc to struct
986 format_check_results.
987 (check_function_format): Use true and add comment for boolean
988 argument.
989 (finish_dollar_format_checking): Use explicit location when warning.
990 (check_format_info): Likewise.
991 (check_format_arg): Set extra_arg_loc and format_string_loc.
992 (check_format_info_main): Use explicit location when warning.
993 (check_format_types): Pass explicit location.
994 (format_type_warning): Likewise.
995
8e54f6d3
MLI
9962014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
997
998 PR fortran/44054
999 * c-format.c: Handle Fortran flags.
1000
cd4e76fc
IZ
10012014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
1002
1003 PR other/61962
1004 * array-notation-common.c (find_rank): Added handling for other
1005 types of references.
1006
f3bede71
MP
10072014-08-10 Marek Polacek <polacek@redhat.com>
1008
1009 PR c/51849
1010 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
1011 * c.opt (Wc90-c99-compat): Add option.
1012
9f25a338
TS
10132014-08-07 Trevor Saunders <tsaunders@mozilla.com>
1014
1015 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1016
62e4eb35
MP
10172014-08-03 Marek Polacek <polacek@redhat.com>
1018
1019 * c-common.c (check_case_value): Add location_t parameter. Use it.
1020 (c_add_case_label): Pass loc to check_case_value.
1021
b787e7a2
TS
10222014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1023
1024 * cilk.c: Use hash_map instead of pointer_map.
1025
6e2830c3
TS
10262014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1027
1028 * c-gimplify.c: Use hash_set instead of pointer_set.
1029
a7ee52fb
IZ
10302014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
1031
1032 PR middle-end/61455
1033 * array-notation-common.c (extract_array_notation_exprs): Handling
1034 of DECL_EXPR added.
1035
944fa280
JJ
10362014-08-01 Jakub Jelinek <jakub@redhat.com>
1037
1038 * c-common.h (min_align_of_type): Removed prototype.
1039 * c-common.c (min_align_of_type): Removed.
1040 * c-ubsan.h (ubsan_maybe_instrument_reference,
1041 ubsan_maybe_instrument_member_call): New prototypes.
1042 * c-ubsan.c: Include stor-layout.h and builtins.h.
1043 (ubsan_maybe_instrument_reference_or_call,
1044 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1045 functions.
1046
b4dfdc11
MG
10472014-07-31 Marc Glisse <marc.glisse@inria.fr>
1048
1049 PR c++/60517
1050 * c.opt (-Wreturn-local-addr): Move to common.opt.
1051
a41844e5
JM
10522014-07-30 Jason Merrill <jason@redhat.com>
1053
1054 PR c++/61659
1055 PR c++/61687
1056 Revert:
1057 * c.opt (-fuse-all-virtuals): New.
1058
976d5a22
TT
10592014-07-30 Tom Tromey <tromey@redhat.com>
1060
1061 PR c/59855
1062 * c.opt (Wdesignated-init): New option.
1063 * c-common.c (c_common_attribute_table): Add "designated_init".
1064 (handle_designated_init): New function.
1065
cdc94aca
MP
10662014-07-24 Marek Polacek <polacek@redhat.com>
1067
1068 PR c/57653
1069 * c-opts.c (c_finish_options): If -imacros is in effect, return.
1070
f41373b6
DS
10712014-07-16 Dodji Seketeli <dodji@redhat.com>
1072
1073 PR preprocessor/60723 - missing system-ness marks for macro tokens
1074 * c-ppoutput.c (struct print::prev_was_system_token): New data
1075 member.
1076 (init_pp_output): Initialize it.
1077 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1078 (do_line_change): Return a flag saying if a line marker was
1079 emitted or not.
1080 (scan_translation_unit): Detect if the system-ness of the token we
1081 are about to emit is different from the one of the previously
1082 emitted token. If so, emit a line marker. Avoid emitting useless
1083 adjacent line markers. Avoid emitting line markers for tokens
1084 originating from the expansion of built-in macros.
1085 (scan_translation_unit_directives_only): Adjust.
1086
4d661eaa
MP
10872014-07-15 Marek Polacek <polacek@redhat.com>
1088
1089 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1090 TYPE_MAX_VALUE is NULL.
1091
b108f48f
JJ
10922014-07-14 Jakub Jelinek <jakub@redhat.com>
1093
1094 PR middle-end/61294
1095 * c.opt (Wmemset-transposed-args): New warning.
1096
c0221884
JM
10972014-07-10 Jason Merrill <jason@redhat.com>
1098
1099 PR c++/61659
1100 PR c++/61687
1101 * c.opt (-fuse-all-virtuals): New.
1102
63dfbb95
RB
11032014-07-09 Richard Biener <rguenther@suse.de>
1104
1105 PR c-family/61741
1106 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1107 using unsigned arithmetic if overflow does not wrap instead of
1108 if overflow is undefined.
1109
773ec47f
MP
11102014-07-06 Marek Polacek <polacek@redhat.com>
1111
1112 PR c/6940
1113 * c.opt (Wsizeof-array-argument): New option.
1114
00a7ba58
JJ
11152014-07-03 Jakub Jelinek <jakub@redhat.com>
1116
1117 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
1118 comments->count <= 1, as comments->entries might be NULL.
1119
52ec0ea3
MP
11202014-07-01 Marek Polacek <polacek@redhat.com>
1121
1122 * c.opt (Wint-conversion): New option.
1123
d5c3d343
MP
11242014-07-01 Marek Polacek <polacek@redhat.com>
1125
1126 PR c/58286
1127 * c.opt (Wincompatible-pointer-types): New option.
1128
6e7ceb17
PC
11292014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1130
1131 PR c++/51400
1132 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1133 Do not discard TYPE_QUALS of type.
1134
da73100b
JM
11352014-06-26 Jason Merrill <jason@redhat.com>
1136
1137 * c-common.h (enum cxx_dialect): Add cxx1z.
1138 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1139 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1140
08eedf75
TJ
11412014-06-26 Teresa Johnson <tejohnson@google.com>
1142
1143 * c-common.h (get_dump_info): Declare.
1144 * c-gimplify.c (c_genericize): Use saved dump files.
1145 * c-opts.c (c_common_parse_file): Begin and end dumps
1146 once around parsing invocation.
1147 (get_dump_info): New function.
1148
7b56b2f8
MP
11492014-06-23 Marek Polacek <polacek@redhat.com>
1150 Andrew MacLeod <amacleod@redhat.com>
1151
1152 PR c/61553
1153 * c-common.c (get_atomic_generic_size): Don't segfault if the
1154 type doesn't have a size.
1155
0e37a2f3
MP
11562014-06-20 Marek Polacek <polacek@redhat.com>
1157
1158 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1159 (ubsan_walk_array_refs_r): New function.
1160 (c_genericize): Instrument array bounds.
1161 * c-ubsan.c: Include "internal-fn.h".
1162 (ubsan_instrument_division): Mark instrumented arrays as having
1163 side effects. Adjust ubsan_type_descriptor call.
1164 (ubsan_instrument_shift): Likewise.
1165 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1166 (ubsan_instrument_bounds): New function.
1167 (ubsan_array_ref_instrumented_p): New function.
1168 (ubsan_maybe_instrument_array_ref): New function.
1169 * c-ubsan.h (ubsan_instrument_bounds): Declare.
1170 (ubsan_array_ref_instrumented_p): Declare.
1171 (ubsan_maybe_instrument_array_ref): Declare.
1172
11732014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
1174
1175 PR lto/61123
1176 * c.opt (fshort-enums): Add to LTO.
1177 * c.opt (fshort-wchar): Likewise.
1178
5c3d09f7
MP
11792014-06-16 Marek Polacek <polacek@redhat.com>
1180
1181 PR c/60439
1182 * c.opt (Wswitch-bool): Add Var.
1183
9cf32741
JJ
11842014-06-12 Jakub Jelinek <jakub@redhat.com>
1185
1186 PR middle-end/61486
1187 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1188 #pragma omp target teams or
1189 #pragma omp {,target }teams distribute simd.
1190
62984918
JM
11912014-06-12 Jason Merrill <jason@redhat.com>
1192
1193 * c.opt (Wabi=, fabi-compat-version): New.
1194 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1195 (c_common_post_options): Handle flag_abi_compat_version default.
1196 Disallow -fabi-compat-version=1.
1197 * c-common.h (abi_version_crosses): New.
1198
f961457f
JH
11992014-06-11 Jan Hubicka <hubicka@ucw.cz>
1200
adfac8df 1201 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
1202 section names that are no longer trees.
1203
92d28cbb
JJ
12042014-06-10 Jakub Jelinek <jakub@redhat.com>
1205
1206 PR fortran/60928
1207 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1208 (omp_pragmas): ... back here.
1209
742938c9
MP
12102014-06-05 Marek Polacek <polacek@redhat.com>
1211
1212 PR c/49706
1213 * c-common.c (warn_logical_not_parentheses): New function.
1214 * c-common.h (warn_logical_not_parentheses): Declare.
1215 * c.opt (Wlogical-not-parentheses): New option.
1216
9d548dfb
MP
12172014-06-04 Marek Polacek <polacek@redhat.com>
1218
1219 PR c/30020
1220 * c-common.c (check_case_bounds): Add location parameter.
1221 Use it.
1222 (c_add_case_label): Pass loc to check_case_bounds.
1223
fedfecef
MP
12242014-06-03 Marek Polacek <polacek@redhat.com>
1225
1226 PR c/60439
1227 * c.opt (Wswitch-bool): New option.
1228
f6a7cffc
TS
12292014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1230
040d18b6
TS
1231 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1232 Remove prototypes.
1233 (record_types_used_by_current_var_decl): Move prototype to where
1234 it belongs.
1235
f6a7cffc
TS
1236 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1237 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1238 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1239
632f2871
RS
12402014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1241
1242 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1243 * c-common.c (c_common_nodes_and_builtins): Don't initialize
1244 void_zero_node.
1245 * c-pretty-print.c (pp_c_void_constant): New function.
1246 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1247 (c_pretty_printer::expression): Handle VOID_CST.
1248 * cilk.c (extract_free_variables): Likewise.
1249 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1250 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1251
766090c2
TS
12522014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1253
1254 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1255 * c-pragma.c (push_alignment): Adjust.
1256 (handle_pragma_push_options): Likewise.
1257
661a0813
MP
12582014-05-09 Marek Polacek <polacek@redhat.com>
1259
1260 PR c/50459
1261 * c-common.c (check_user_alignment): Return -1 if alignment is error
1262 node.
1263 (handle_aligned_attribute): Don't call default_conversion on
1264 FUNCTION_DECLs.
1265 (handle_vector_size_attribute): Likewise.
1266 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1267 (handle_sentinel_attribute): Call default_conversion and allow even
1268 integral types as an argument.
1269
2793eeab
MP
12702014-05-08 Marek Polacek <polacek@redhat.com>
1271
1272 PR c/61053
1273 * c-common.c (min_align_of_type): New function factored out from...
1274 (c_sizeof_or_alignof_type): ...here.
1275 * c-common.h (min_align_of_type): Declare.
1276
f827930a
MP
12772014-05-08 Marek Polacek <polacek@redhat.com>
1278
1279 PR c/61077
1280 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1281 parameter type of main.
1282
ca49b74e
DD
12832014-05-07 DJ Delorie <dj@redhat.com>
1284
1285 * c-cppbuiltin.c (print_bits_of_hex): New.
1286 (builtin_define_type_minmax): Print values using hex so as not to
1287 require a pre-computed list of string values.
1288
1d60af08
KZ
12892014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1290 Mike Stump <mikestump@comcast.net>
1291 Richard Sandiford <rdsandiford@googlemail.com>
1292
1293 * c-ada-spec.c: Include wide-int.h.
1294 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1295 (dump_generic_ada_node): Use wide-int interfaces.
1296 * c-common.c: Include wide-int-print.h.
1297 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1298 (pointer_int_sum): Use wide-int interfaces.
1299 (c_common_nodes_and_builtins): Use make_int_cst.
1300 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1301 (handle_alloc_size_attribute): Use wide-int interfaces.
1302 (get_nonnull_operand): Likewise.
1303 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1304 * c-lex.c: Include wide-int.h.
1305 (narrowest_unsigned_type): Take a widest_int rather than two
1306 HOST_WIDE_INTs.
1307 (narrowest_signed_type): Likewise.
1308 (interpret_integer): Update accordingly. Use wide-int interfaces.
1309 (lex_charconst): Use wide-int interfaces.
1310 * c-pretty-print.c: Include wide-int.h.
1311 (pp_c_integer_constant): Use wide-int interfaces.
1312 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1313 INT_CST_LT_UNSIGNED.
1314
b15458be
RB
13152014-05-06 Richard Biener <rguenther@suse.de>
1316
1317 * c-opts.c (c_common_post_options): For -freestanding,
1318 -fno-hosted and -fno-builtin disable pattern recognition
1319 if not enabled explicitely.
1320
6577374e
MP
13212014-05-02 Marek Polacek <polacek@redhat.com>
1322
1323 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1324
d00887e8
MP
13252014-05-01 Marek Polacek <polacek@redhat.com>
1326
1327 PR c/43245
1328 * c.opt (Wdiscarded-qualifiers): Add.
1329
f8ed5150
MP
13302014-04-30 Marek Polacek <polacek@redhat.com>
1331
1332 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
1333 INT_MIN / -1 sanitization only for integer types.
1334
45484dcf
MP
13352014-04-25 Marek Polacek <polacek@redhat.com>
1336
1337 PR c/18079
1338 * c-common.c (handle_noinline_attribute): Warn if the attribute
1339 conflicts with always_inline attribute.
1340 (handle_always_inline_attribute): Warn if the attribute conflicts
1341 with noinline attribute.
1342
38e514c0
MP
13432014-04-25 Marek Polacek <polacek@redhat.com>
1344
1345 PR c/60156
1346 * c-common.c (check_main_parameter_types): Warn about variadic main.
1347
44875f92
MS
13482014-04-24 Mike Stump <mikestump@comcast.net>
1349
1350 * c.opt (Wshadow-ivar): Default to on.
1351
dcaaa5a0
DP
13522014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1353
1354 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1355
c07d7c02
MP
13562014-04-23 Marek Polacek <polacek@redhat.com>
1357
1358 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1359
1c33c9b7
JJ
13602014-04-22 Jakub Jelinek <jakub@redhat.com>
1361
1362 PR sanitizer/60275
1363 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1364 if flag_sanitize_undefined_trap_on_error.
1365 (ubsan_instrument_division, ubsan_instrument_shift,
1366 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1367 if !flag_sanitize_recover.
1368
793c625f
MG
13692014-04-22 Marc Glisse <marc.glisse@inria.fr>
1370
1371 PR libstdc++/43622
1372 * c-common.c (registered_builtin_types): Make non-static.
1373 * c-common.h (registered_builtin_types): Declare.
1374
b0f1bf36
RB
13752014-04-14 Richard Biener <rguenther@suse.de>
1376 Marc Glisse <marc.glisse@inria.fr>
1377
1378 PR c/60819
1379 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1380 apply may-alias the scalar pointer type when applicable.
1381
3b07fa4a
IZ
13822014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1383
1384 PR middle-end/60467
1385 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1386 as possible argument for Cilk_spawn.
1387
cbbd2b1c
TB
13882014-04-11 Tobias Burnus <burnus@net-b.de>
1389
1390 PR c/60194
1391 * c.opt (Wformat-signedness): Add
1392 * c-format.c(check_format_types): Use it.
1393
6415bd5d
JM
13942014-04-11 Jason Merrill <jason@redhat.com>
1395
1396 PR c++/57926
1397 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1398 default_conversion for an array argument.
1399
6525783a
MP
14002014-04-08 Marek Polacek <polacek@redhat.com>
1401
1402 PR sanitizer/60745
1403 * c-ubsan.c: Include asan.h.
1404 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1405
880a467b
NS
14062014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1407
1408 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1409
7b59ff2d
MP
14102014-04-02 Marek Polacek <polacek@redhat.com>
1411
1412 * c-common.h (c_expand_expr): Remove declaration.
1413
8edbfaa6
JJ
14142014-03-28 Jakub Jelinek <jakub@redhat.com>
1415
1416 PR c++/60689
1417 * c-common.c (add_atomic_size_parameter): When creating new
1418 params vector, push the size argument first.
1419
07d72e1d
JJ
14202014-03-26 Jakub Jelinek <jakub@redhat.com>
1421
1422 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1423 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1424 ubsan_create_data callers.
1425
b35e0fa0
JJ
14262014-03-22 Jakub Jelinek <jakub@redhat.com>
1427
1428 PR debug/60603
1429 * c-opts.c (c_finish_options): Restore cb_file_change call to
1430 <built-in>.
1431
39a1ebb3
JJ
14322014-03-13 Jakub Jelinek <jakub@redhat.com>
1433
1434 PR middle-end/36282
1435 * c-pragma.c (apply_pragma_weak): Only look at
1436 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1437 DECL_ASSEMBLER_NAME_SET_P (decl).
1438 (maybe_apply_pending_pragma_weaks): Exit early if
1439 vec_safe_is_empty (pending_weaks) rather than only when
1440 !pending_weaks.
1441 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
1442 set assembler name back to NULL afterwards.
1443
a07f6ed2
JM
14442014-03-11 Jason Merrill <jason@redhat.com>
1445
1446 * c.opt: Add -std=gnu++14.
1447
75b107f5
IB
14482014-03-11 Ian Bolton <ian.bolton@arm.com>
1449
1450 * c-opts.c (c_common_post_options): Don't override
1451 -ffp-contract=fast if unsafe-math-optimizations is on.
1452
f42c637e
PM
14532014-03-08 Paulo Matos <paulo@matos-sorge.com>
1454
1455 * c.opt: Enable LTO FE for fshort-double.
1456
70e24808
JM
14572014-03-07 Jason Merrill <jason@redhat.com>
1458
1459 * c.opt: Add -std=c++14.
1460
3af9c5e9
MP
14612014-03-06 Marek Polacek <polacek@redhat.com>
1462
1463 PR c/60197
1464 * cilk.c (contains_cilk_spawn_stmt): New function.
1465 (contains_cilk_spawn_stmt_walker): Likewise.
1466 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1467 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1468
b3bdf019
JJ
14692014-03-03 Jakub Jelinek <jakub@redhat.com>
1470
1471 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1472 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1473 even when flag_preprocess_only.
1474
ca7e759d
JM
14752014-02-26 Jason Merrill <jason@redhat.com>
1476
1477 PR c++/59231
1478 PR c++/11586
1479 * c-common.c (shorten_compare): Don't check
1480 c_inhibit_evaluation_warnings.
1481
28e41874
JJ
14822014-02-19 Jakub Jelinek <jakub@redhat.com>
1483
cca615af
JJ
1484 PR c/37743
1485 * c-common.c (c_common_nodes_and_builtins): When initializing
1486 c_uint{16,32,64}_type_node, also set corresponding
1487 uint{16,32,64}_type_node to the same value.
1488
28e41874
JJ
1489 PR c++/60267
1490 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1491 for PRAGMA_IVDEP if flag_preprocess_only.
1492
c2bf53a1
JJ
14932014-02-12 Jakub Jelinek <jakub@redhat.com>
1494
1495 PR c/60101
1496 * c-common.c (merge_tlist): If copy is true, call new_tlist,
1497 if false, add ADD itself, rather than vice versa.
1498 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1499 copy. For SAVE_EXPR, only call merge_tlist once.
1500
8fcbce72
JJ
15012014-02-08 Jakub Jelinek <jakub@redhat.com>
1502
1503 PR middle-end/60092
1504 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1505 and tree_to_uhwi.
1506 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1507 functions.
1508 (c_common_attribute_table): Add alloc_align and assume_aligned
1509 attributes.
1510
0a756a3f
MP
15112014-02-06 Marek Polacek <polacek@redhat.com>
1512
1513 PR c/60087
1514 * c-common.c (warn_for_sign_compare): Call warning_at with location
1515 instead of warning.
1516
7ec4847a
MP
15172014-02-05 Marek Polacek <polacek@redhat.com>
1518
1519 PR c/53123
1520 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1521 statement.
1522
66f20604
MP
15232014-02-04 Marek Polacek <polacek@redhat.com>
1524
1525 PR c/60036
1526 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1527 SAVE_EXPR.
1528
5d77fb19
MG
15292014-02-03 Marc Glisse <marc.glisse@inria.fr>
1530
1531 PR c++/53017
1532 PR c++/59211
1533 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1534 handle_vector_size_attribute, handle_nonnull_attribute): Call
1535 default_conversion on the attribute argument.
1536 (handle_nonnull_attribute): Increment the argument number.
1537
81e5eca8
MP
15382014-01-31 Marek Polacek <polacek@redhat.com>
1539
1540 PR c/59963
1541 * c-common.c (add_atomic_size_parameter): Pass vNULL to
1542 build_function_call_vec.
1543 (resolve_overloaded_builtin): Likewise.
1544 * c-common.h (build_function_call_vec): Adjust declaration.
1545
68fca595
MP
15462014-01-30 Marek Polacek <polacek@redhat.com>
1547
1548 PR c/59940
1549 * c-common.h (unsafe_conversion_p): Adjust declaration.
1550 (warnings_for_convert_and_check): Likewise.
1551 (convert_and_check): Likewise.
1552 * c-common.c (unsafe_conversion_p): Add location parameter. Call
1553 expansion_point_location_if_in_system_header on it.
1554 (warnings_for_convert_and_check): Add location parameter. Call
1555 expansion_point_location_if_in_system_header on it. Use it.
1556 (convert_and_check): Add location parameter. Use it.
1557 (conversion_warning): Likewise.
1558 (c_add_case_label): Adjust convert_and_check calls.
1559 (scalar_to_vector): Adjust unsafe_conversion_p calls.
1560
b72271b9
BI
15612014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1562
1563 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1564 flag_cilkplus.
1565 * c-pragma.c (init_pragma): Likewise.
1566 * c.opt: Likewise.
1567
393e8e8b
MP
15682014-01-23 Marek Polacek <polacek@redhat.com>
1569
1570 PR c/59846
1571 * c-common.c (shorten_compare): Add location_t parameter.
1572 * c-common.h (shorten_binary_op): Adjust declaration.
1573
f04dda30
MP
15742014-01-23 Marek Polacek <polacek@redhat.com>
1575
1576 PR c/58346
1577 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1578 * c-common.h: Declare it.
1579
621955cb
EB
15802014-01-20 Eric Botcazou <ebotcazou@adacore.com>
1581
1582 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1583 * c-ada-spec.c (dump_ads): Likewise.
1584 (cpp_check): Likewise.
1585 (dump_ada_specs): Likewise.
1586
15872014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
1588
1589 PR c++/49718
1590 * c-common.c (handle_no_instrument_function_attribute): Allow
1591 no_instrument_function attribute in class member
1592 definition/declaration.
1593
241f845a
JJ
15942014-01-15 Jakub Jelinek <jakub@redhat.com>
1595
1596 PR c/58943
1597 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1598 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
1599 being COMPOUND_EXPR.
1600 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1601 operand a SAVE_EXPR and second MODIFY_EXPR.
1602
e83b8e2e
JJ
16032014-01-09 Jakub Jelinek <jakub@redhat.com>
1604
1605 PR target/58115
1606 * c-pch.c (c_common_write_pch): Call
1607 prepare_target_option_nodes_for_pch.
1608
23a5b65a
RS
16092014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1610
1611 Update copyright years
1612
f9030485
RS
16132014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1614
1615 * array-notation-common.c, c-cilkplus.c: Use the standard form for
1616 the copyright notice.
1617
f2aa696b
EB
16182013-12-28 Eric Botcazou <ebotcazou@adacore.com>
1619
1620 * c-ada-spec.c (print_constructor): New function.
1621 (print_destructor): Retrieve the origin of the destructor.
1622 (print_ada_declaration): Revamp handling of constructors/destructors.
1623
1f26ac87
JM
16242013-12-23 Stuart Hastings <stuart@apple.com>
1625 Bill Maddox <maddox@google.com>
1626 Jason Merrill <jason@redhat.com>
1627
1628 * c.opt: Add -fdeclone-ctor-dtor.
1629 * c-opts.c (c_common_post_options): Default to on iff -Os.
1630
41958c28
BI
16312013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1632
1633 * c-common.c (c_common_attribute_table): Added "cilk simd function"
1634 attribute.
1635 * c-pragma.h (enum pragma_cilk_clause): Remove.
1636 (enum pragma_omp_clause): Added the following fields:
1637 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1638 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1639 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1640 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1641 PRAGMA_CILK_CLAUSE_UNIFORM.
1642
1643
12893402
BI
16442013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1645
1646 * cilk.c (cilk_outline): Made this function non-static.
1647 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1648 (create_cilk_wrapper): Added a new parameter: a function pointer.
1649 (c_install_body_w_frame_cleanup): Remove
1650 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1651 * c-common.h (cilk_outline): New prototype.
1652 (gimplify_cilk_spawn): Removed two parameters.
1653 (cilk_install_body_with_frame_cleanup): New prototype.
1654 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1655 CILK_SPAWN_STMT case.
1656
085b42ed
BS
16572013-12-11 Bernd Schmidt <bernds@codesourcery.com>
1658
2ce064c3
BS
1659 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1660
085b42ed
BS
1661 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1662 (int_array_type_node): Remove.
1663 * c-common.c (c_common_nodes_and_builtins): Don't build it.
1664
9e36c9ed
MP
16652013-12-05 Marek Polacek <polacek@redhat.com>
1666
1667 PR c/52023
1668 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1669 [ADJUST_FIELD_ALIGN].
1670
296674db
JM
16712013-12-04 Joseph Myers <joseph@codesourcery.com>
1672
1673 PR c/52023
1674 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1675 and check field alignment if set.
1676 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1677 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1678
31e071ae
MP
16792013-12-04 Jakub Jelinek <jakub@redhat.com>
1680 Marek Polacek <polacek@redhat.com>
1681
1682 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1683 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1684
d7947e19
L
16852013-11-29 H.J. Lu <hongjiu.lu@intel.com>
1686
1687 PR c/59309
1688 * cilk.c (gimplify_cilk_spawn): Properly handle function without
1689 arguments.
1690
fad7652e
JJ
16912013-11-29 Jakub Jelinek <jakub@redhat.com>
1692
1693 PR c/59280
1694 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1695 goto invalid. If it is error_mark_node, don't issue further
1696 diagnostics.
1697
8b5e1202
SO
16982013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1699
1700 * c.opt (Wopenmp-simd): New.
1701
0a508bb6
JJ
17022013-11-22 Jakub Jelinek <jakub@redhat.com>
1703
1704 * c-ubsan.h (ubsan_instrument_return): New prototype.
1705 * c-ubsan.c (ubsan_instrument_return): New function.
1706
2fb9a547
AM
17072013-11-22 Andrew MacLeod <amacleod@redhat.com>
1708
1709 * c-common.c: Add required include files from gimple.h.
1710 * c-gimplify.c: Likewise
1711 * cilk.c: Likewise
1712
8400e75e
DM
17132013-11-22 David Malcolm <dmalcolm@redhat.com>
1714
1715 * c-common.c (unsafe_conversion_p): Remove use of
1716 EXPR_LOC_OR_HERE macro.
1717 (conversion_warning): Likewise.
1718 (warnings_for_convert_and_check): Likewise.
1719 (warn_for_collisions_1): Likewise.
1720 (shorten_compare): Likewise, and remove use of in_system_header
1721 macro, using the location from the former.
1722 * c-lex.c (dump_one_header): Remove use of input_filename macro.
1723 (cb_def_pragma): Remove use of in_system_header macro.
1724 (lex_string): Likewise.
1725 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1726
eb1ce453
KZ
17272013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1728 Mike Stump <mikestump@comcast.net>
1729 Richard Sandiford <rdsandiford@googlemail.com>
1730
1731 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1732 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1733 tree_fits_shwi_p or tree_fits_uhwi_p.
1734 (dump_generic_ada_node): Likewise.
1735 * c-format.c (check_format_arg): Likewise.
1736 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1737
6b3b8c27
KZ
17382013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1739
1740 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1741
49b0aa18
JC
17422013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
1743
1744 PR c/53001
1745 * c-common.c (unsafe_conversion_p): Make this function
1746 return an enumeration with more detail.
1747 (conversion_warning): Use the new return type of
1748 unsafe_conversion_p to separately warn either about conversions
1749 that lower floating point number precision or about the other
1750 kinds of conversions.
1751 * c-common.h (enum conversion_safety): New enumeration.
1752 (unsafe_conversion_p): switching return type to
1753 conversion_safety enumeration.
1754 * c.opt: Adding new warning -Wfloat-conversion and
1755 enabling it with -Wconversion.
1756
b826515a
BS
17572013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
1758
1759 * c-opts.c: Include plugin.h.
1760 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1761
b9a55b13
MP
17622013-11-19 Marek Polacek <polacek@redhat.com>
1763
1764 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1765 call.
1766 (ubsan_instrument_shift): Likewise.
1767 (ubsan_instrument_vla): Likewise.
1768
7d362f6c
RS
17692013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1770
1771 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1772 cast to unsigned type.
1773
386b1f1f
RS
17742013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1775
1776 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1777 tree_low_cst.
1778 (complete_array_type): Update comment to refer to tree_to_[su]hwi
1779 rather than tree_low_cst.
1780
ae7e9ddd
RS
17812013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1782
1783 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1784 tree_to_uhwi throughout.
1785
9439e9a1
RS
17862013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1787
1788 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1789 tree_low_cst (..., 0) with tree_to_shwi throughout.
1790
cc269bb6
RS
17912013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1792
1793 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1794 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1795
9541ffee
RS
17962013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1797
1798 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1799 host_integerp (..., 0) with tree_fits_shwi_p throughout.
1800
c02065fc
AH
18012013-11-15 Aldy Hernandez <aldyh@redhat.com>
1802
1803 * c-cilkplus.c: New file.
1804 * c-common.c (readonly_error): Add location argument.
1805 * c-common.h (readonly_error): Same.
1806 (c_finish_cilk_clauses): Protoize.
1807 (c_check_cilk_loop): Same.
1808 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1809 Do not fail on error_mark_node.
1810 Abstract increment canonicalization to here...
1811 (c_omp_for_incr_canonicalize_ptr): New.
1812 c-pragma.c (init_pragma): Register "simd" pragma.
1813 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1814 (enum pragma_cilk_clause): New.
1815
9cc65f15
RS
18162013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
1817
1818 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1819 wchar_type and host_integerp checks.
1820
18f429e2
AM
18212013-11-14 Andrew MacLeod <amacleod@redhat.com>
1822
1823 * c-common.c: Likewise.
1824 * c-gimplify.c: Likewise.
1825 * cilk.c: Likewise.
1826
d8a2d370
DN
18272013-11-14 Diego Novillo <dnovillo@google.com>
1828
1829 * c-common.c: Include fold-const.h.
1830 Include stor-layout.h.
1831 Include calls.h.
1832 Include stringpool.h.
1833 Include attribs.h.
1834 Include varasm.h.
1835 Include trans-mem.h.
1836 * c-cppbuiltin.c: Include stor-layout.h.
1837 Include stringpool.h.
1838 * c-format.c: Include stringpool.h.
1839 * c-lex.c: Include stringpool.h.
1840 Include stor-layout.h.
1841 * c-pragma.c: Include stringpool.h.
1842 Include attribs.h.
1843 Include varasm.h.
1844 Include gcc-symtab.h.
1845 * c-pretty-print.c: Include stor-layout.h.
1846 Include attribs.h.
1847 * cilk.c: Include stringpool.h.
1848 Include calls.h.
1849
38b7bc7f
JM
18502013-11-13 Joseph Myers <joseph@codesourcery.com>
1851
1852 * c-common.h (enum rid): Add RID_AUTO_TYPE.
1853 * c-common.c (c_common_reswords): Add __auto_type.
1854 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1855
45b0be94
AM
18562013-11-12 Andrew MacLeod <amacleod@redhat.com>
1857
18f429e2
AM
1858 * c-common.c: Include gimplify.h.
1859 * c-gimplify.c: Likewise.
1860 * cilk.c: Likewise.
1861 * c-omp.c: Include gimple-expr.h instead of gimple.h.
1862 * c-ubsan.c: Don't include gimple.h.
45b0be94 1863
582d9b50
JM
18642013-11-12 Joseph Myers <joseph@codesourcery.com>
1865
1866 * c-common.c (c_common_reswords): Add _Thread_local.
1867
6b28e197
JM
18682013-11-09 Joseph Myers <joseph@codesourcery.com>
1869
1870 * c-common.c (atomic_size_supported_p): New function.
1871 (resolve_overloaded_atomic_exchange)
1872 (resolve_overloaded_atomic_compare_exchange)
1873 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1874 Use it instead of comparing size with a local list of sizes.
1875
267bac10
JM
18762013-11-07 Andrew MacLeod <amacleod@redhat.com>
1877 Joseph Myers <joseph@codesourcery.com>
1878
1879 * c-common.h (enum rid): Add RID_ATOMIC.
1880 * c-common.c (c_common_reswords): Add _Atomic.
1881 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1882 (keyword_is_type_qualifier): Accept RID_ATOMIC.
1883 * c-format.c (check_format_types): Check for extra _Atomic
1884 qualifiers in format argument.
1885 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1886 (pp_c_type_qualifier_list): Mention _Atomic in comment.
1887
5157b91e
TB
18882013-11-06 Tobias Burnus <burnus@net-b.de>
1889
1890 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1891
6dbe0958
JM
18922013-11-06 Joseph Myers <joseph@codesourcery.com>
1893
1894 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1895 standards modes.
1896 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1897 to mean lack of IEEE 754 support.
1898
e8ff5196
TB
18992013-11-05 Tobias Burnus <burnus@net-b.de>
1900
1901 * c.opt (-Wdate-time): New option
1902 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1903
254a0760
JM
19042013-11-05 Joseph Myers <joseph@codesourcery.com>
1905
1906 * c-cppbuiltin.c (cpp_iec_559_value): Test
1907 flag_excess_precision_cmdline not flag_excess_precision.
1908
6d7f7e0a
TB
19092013-11-05 Tobias Burnus <burnus@net-b.de>
1910
1911 * c.opt (fopenmp-simd): New option.
1912 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1913 (omp_pragmas): ... this new struct.
1914 (c_pp_lookup_pragma): Also walk omp_pragmas.
1915 (init_pragma): Init pragmas for -fopenmp-simd.
1916
55a7f02f
MP
19172013-11-04 Marek Polacek <polacek@redhat.com>
1918
1919 PR c++/58979
1920 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1921
9193fb05
JM
19222013-11-04 Joseph Myers <joseph@codesourcery.com>
1923
1924 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1925 New functions.
1926 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1927
94159ecf
EB
19282013-11-04 Eric Botcazou <ebotcazou@adacore.com>
1929
1930 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1931 (dump_ada_specs): Adjust prototype of second callback.
1932 * c-ada-spec.c (cpp_check): New global variable.
1933 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1934 (print_generic_ada_decl): Likewise.
1935 (has_static_fields): Change return type to bool and add guard.
1936 (has_nontrivial_methods): New predicate.
1937 (is_tagged_type): Change return type to bool.
1938 (separate_class_package): Call has_nontrivial_methods.
1939 (pp_ada_tree_identifier): Minor tweaks.
1940 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1941 (dump_ada_array_domains): Likewise.
1942 (dump_ada_array_type): Likewise.
1943 (dump_template_types): Remove cpp_check parameter and do not pass it to
1944 dump_generic_ada_node.
1945 (dump_ada_template): Likewise.
1946 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1947 recursively.
1948 (print_ada_methods): Change return type to integer. Remove cpp_check
1949 parameter and do not pass it down.
1950 (dump_nested_types): Remove cpp_check parameter and do not pass it to
1951 dump_generic_ada_node.
1952 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
1953 accessing methods.
1954 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1955 down. Use has_nontrivial_methods to recognize C++ classes. Use return
1956 value of print_ada_methods.
1957 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1958 Set cpp_check to it before invoking dump_ada_nodes.
1959 (dump_ada_specs): Likewise.
1960
b906f4ca
MP
19612013-11-03 Marek Polacek <polacek@redhat.com>
1962
1963 * c-ubsan.c: Don't include hash-table.h.
1964 (ubsan_instrument_vla): New function.
1965 * c-ubsan.h: Declare it.
1966
5e20cdc9
DM
19672013-10-31 David Malcolm <dmalcolm@redhat.com>
1968
1969 Automated part of renaming of symtab_node_base to symtab_node.
1970
1971 Patch autogenerated by rename_symtab.py from
1972 https://github.com/davidmalcolm/gcc-refactoring-scripts
1973 revision 58bb219cc090b2f4516a9297d868c245495ee622
1974
1975 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1976 symtab_node_base to symtab_node.
1977
7057e645
ESR
19782013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
1979
1980 Implement C++14 digit separators.
1981 * c-lex.c (interpret_float): Remove digit separators from scratch string
1982 before building real literal.
1983
193ea7bc
JJ
19842013-10-30 Jakub Jelinek <jakub@redhat.com>
1985
1986 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1987
939b37da
BI
19882013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1989
1990 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1991 fields.
1992 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1993 enabled.
1994 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1995 (insert_cilk_frame): New prototype.
1996 (cilk_init_builtins): Likewise.
1997 (gimplify_cilk_spawn): Likewise.
1998 (c_cilk_install_body_w_frame_cleanup): Likewise.
1999 (cilk_detect_spawn_and_unwrap): Likewise.
2000 (cilk_set_spawn_marker): Likewise.
2001 (build_cilk_sync): Likewise.
2002 (build_cilk_spawn): Likewise.
2003 * cilk.c: New file.
2004
67348ccc
DM
20052013-10-29 David Malcolm <dmalcolm@redhat.com>
2006
2007 Patch autogenerated by refactor_symtab.py from
2008 https://github.com/davidmalcolm/gcc-refactoring-scripts
2009 revision 58bb219cc090b2f4516a9297d868c245495ee622
2010
2011 * c-gimplify.c (c_genericize): Update for conversion of symtab types
2012 to a true class hierarchy.
2013 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2014
d570872d
RS
20152013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
2016
2017 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2018
98906124
JL
20192013-10-26 Jeff Law <law@redhat.com>
2020
adfac8df
JJ
2021 * c-common.c (c_define_builtins): Remove mudflap support.
2022 * c.opt: Ignore and warn for mudflap options.
98906124 2023
d73749df 20242013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
2025
2026 PR other/33426
2027 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2028 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2029
3f04b1bb
JM
20302013-10-23 Jason Merrill <jason@redhat.com>
2031
2032 * c-format.c (gcc_cxxdiag_char_table): Add %X.
2033
acf0174b
JJ
20342013-10-11 Jakub Jelinek <jakub@redhat.com>
2035
acd15a28
JJ
2036 * c-common.h (omp_clause_mask::operator !=): New method.
2037 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2038 instead of if (mask & something) tests everywhere.
2039
acf0174b
JJ
2040 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2041 201307 instead of 201107.
2042 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2043 (c_common_attribute_table): Add "omp declare target" and
2044 "omp declare simd" attributes.
2045 (handle_omp_declare_target_attribute,
2046 handle_omp_declare_simd_attribute): New functions.
2047 * c-omp.c: Include c-pragma.h.
2048 (c_finish_omp_taskgroup): New function.
2049 (c_finish_omp_atomic): Add swapped argument, if true,
2050 build the operation first with rhs, lhs arguments and use NOP_EXPR
2051 build_modify_expr.
2052 (c_finish_omp_for): Add code argument, pass it down to make_code.
2053 (c_omp_split_clauses): New function.
2054 (c_split_parallel_clauses): Removed.
2055 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2056 c_omp_declare_simd_clauses_to_decls): New functions.
2057 * c-common.h (omp_clause_mask): New type.
2058 (OMP_CLAUSE_MASK_1): Define.
2059 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2060 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2061 omp_clause_mask::operator |, omp_clause_mask::operator &,
2062 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2063 omp_clause_mask::operator ==): New methods.
2064 (enum c_omp_clause_split): New.
2065 (c_finish_omp_taskgroup): New prototype.
2066 (c_finish_omp_atomic): Add swapped argument.
2067 (c_finish_omp_for): Add code argument.
2068 (c_omp_split_clauses): New prototype.
2069 (c_split_parallel_clauses): Removed.
2070 (c_omp_declare_simd_clauses_to_numbers,
2071 c_omp_declare_simd_clauses_to_decls): New prototypes.
2072 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2073 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2074 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2075 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2076 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2077 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2078 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2079 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2080 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2081 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2082 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2083 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2084 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2085 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2086 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2087 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2088 PRAGMA_OMP_CLAUSE_UNIFORM.
2089
826cacfe
MG
20902013-10-09 Marc Glisse <marc.glisse@inria.fr>
2091
2092 PR tree-optimization/20318
2093 * c-common.c (handle_returns_nonnull_attribute): New function.
2094 (c_common_attribute_table): Add returns_nonnull.
2095
2284b034
MG
20962013-10-03 Marc Glisse <marc.glisse@inria.fr>
2097
2098 PR c++/19476
2099 * c.opt (fcheck-new): Move to common.opt.
2100
b56e9788
MP
21012013-09-25 Marek Polacek <polacek@redhat.com>
2102 Jakub Jelinek <jakub@redhat.com>
2103
2104 PR sanitizer/58413
2105 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2106 an expression if we can prove it is correct.
2107 (ubsan_instrument_division): Likewise. Remove unnecessary
2108 check.
2109
ce6923c5
MP
21102013-09-18 Marek Polacek <polacek@redhat.com>
2111
2112 PR sanitizer/58411
2113 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2114 Declare it.
2115 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2116
fb5610fb
IS
21172013-09-14 Iain Sandoe <iain@codesourcery.com>
2118
2119 PR target/48094
2120 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2121 fobjc-gc, freplace-objc-classes): Accept for LTO.
2122
88b0e79e
JC
21232013-09-13 Jacek Caban <jacek@codeweavers.com>
2124
2125 * c-target.def: New hook
2126
c9b0866a
PC
21272013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2128
2129 PR c++/43452
2130 * c.opt (Wdelete-incomplete): Add.
2131
0af94e6f
JR
21322013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2133
2134 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2135 (vector_types_compatible_elements_p): New function.
2136 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2137 declaration.
2138 (vector_types_compatible_elements_p): Declare.
2139
7c26172c
GDR
21402013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2141
2142 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2143 a virtual member function.
2144 (pp_simple_type_specifier): Remove.
2145 (pp_c_type_specifier): Likewise.
2146 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2147 Rename from pp_c_type_specifier. Adjust.
2148 (c_pretty_printer::c_pretty_printer): Do not assign to
2149 simple_type_specifier.
2150
20059c8b
GDR
21512013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2152
2153 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2154 member function.
2155 (c_pretty_printer::storage_class_specifier): Likewise.
2156 (c_pretty_printer::initializer): Likewise.
2157 (pp_declaration): Remove.
2158 (pp_declaration_specifiers): Likewise.
2159 (pp_abstract_declarator): Likewise.
2160 (pp_declarator): Likewise.
2161 (pp_type_id): Likewise.
2162 (pp_statement): Likewise.
2163 (pp_constant): Likewise.
2164 (pp_id_expression): Likewise.
2165 (pp_primary_expression): Likewise.
2166 (pp_unary_expression): Likewise.
2167 (pp_multiplicative_expression): Likewise.
2168 (pp_conditional_expression): Likewise.
2169 (pp_assignment_expression): Likewise.
2170 (pp_expression): Likewise.
2171 (pp_c_type_id): Likewise.
2172 (pp_c_storage_class_specifier): Likewise.
2173 * c-pretty-print.c (pp_c_type_cast): Tidy.
2174 (pp_c_pointer): Likewise.
2175 (pp_c_type_specifier): Likewise.
2176 (pp_c_parameter_type_list): Likewise.
2177 (pp_c_function_definition): Likewise.
2178 (pp_c_init_declarator): Likewise.
2179 (pp_c_initializer_list): Likewise.
2180 (pp_c_constructor_elts): Likewise.
2181 (c_pretty_printer::direct_abstract_declarator): Likewise.
2182 (c_pretty_printer::declaration_specifiers): Likewise.
2183 (c_pretty_printer::primary_expression): Likewise.
2184 (c_pretty_printer::postfix_expression): Likewise.
2185 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2186 (c_pretty_printer::storage_class_specifier): Rename from
2187 pp_c_storage_class_specifier.
2188 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2189 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2190 storage_class_specifier, initializer, offset_list, flags.
2191
de5a5fa1
MP
21922013-08-30 Marek Polacek <polacek@redhat.com>
2193
2194 * c-ubsan.c: New file.
2195 * c-ubsan.h: New file.
2196
8f0e4d72
GDR
21972013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2198
2199 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2200 member function.
2201 (c_pretty_printer::declaration_specifiers): Likewise.
2202 (c_pretty_printer::declarator): Likewise.
2203 (c_pretty_printer::abstract_declarator): Likewise.
2204 (c_pretty_printer::direct_abstract_declarator): Likewise.
2205 (c_pretty_printer::direct_declarator): Likewise.
2206 (c_pretty_printer::function_specifier): Likewise.
2207 (pp_declaration): Adjust.
2208 (pp_declaration_specifiers): Likewise.
2209 (pp_abstract_declarator): Likewise.
2210 (pp_direct_declarator): Likewise.
2211 (pp_function_specifier): Likewise.
2212 (pp_direct_abstract_declarator): Remove as unused.
2213 (pp_c_declaration): Remove.
2214 (pp_c_declaration_specifiers): Likewise.
2215 (pp_c_declarator): Likewise.
2216 (pp_c_direct_declarator): Likewise.
2217 (pp_c_function_specifier): Likewise.
2218 (pp_c_direct_abstract_declarator): Likewise.
2219 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2220 from pp_c_abstract_declarator. Adjust.
2221 (c_pretty_printer::direct_abstract_declarator): Rename from
2222 pp_c_direct_abstract_declarator. Adjust.
2223 (c_pretty_printer::function_specifier): Rename from
2224 pp_c_function_specifier. Adjust.
2225 (c_pretty_printer::declaration_specifiers): Rename from
2226 pp_c_declaration_specifiers. Adjust.
2227 (c_pretty_printer::direct_declarator): Rename from
2228 pp_c_direct_declarator. Adjust.
2229 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
2230 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
2231 (c_pretty_printer::c_pretty_printer): Do not assign to
2232 declaration, declaration_specifiers, declarator,
2233 direct_declarator, direct_abstract_declarator, function_specifier.
2234
00d34d3a
GDR
22352013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
2236
2237 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2238 virtual member function.
2239 (c_pretty_printer::multiplicative_expression): Likewise.
2240 (c_pretty_printer::conditional_expression): Likewise.
2241 (c_pretty_printer::assignment_expression): Likewise.
2242 (c_pretty_printer::expression): Likewise.
2243 (pp_unary_expression): Adjust.
2244 (pp_multiplicative_expression): Likewise.
2245 (pp_assignment_expression): Likewise.
2246 (pp_conditional_expression): Likewise.
2247 (pp_expression): Likewise.
2248 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2249 from pp_c_unary_expression. Adjust.
2250 (c_pretty_printer::multiplicative_expression): Rename from
2251 pp_c_multiplicative_expression. Adjust.
2252 (c_pretty_printer::conditional_expression): Rename from
2253 pp_c_conditional_expression. Adjust.
2254 (c_pretty_printer::assignment_expression): Rename from
2255 pp_c_assignment_expression. Adjust.
2256 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
2257 (c_pretty_printer::c_pretty_printer): Do not assign to
2258 unary_expression, multiplicative_expression,
2259 conditional_expression, expression.
2260
fb22178f
GDR
22612013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2262
2263 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2264 virtual member function.
2265 (pp_postfix_expression): Adjust.
2266 (pp_c_postfix_expression): Remove.
2267 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2268 from pp_c_postfix_expression. Adjust.
2269 (c_pretty_printer::c_pretty_printer): Do not assign to
2270 postfix_expression.
2271
7ecc2600
GDR
22722013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2273
2274 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2275 virtua member function.
2276 (pp_primary_expression): Adjust.
2277 (pp_c_primary_expression): Remove.
2278 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2279 from pp_c_primary_expression. Adjust.
2280 (pp_c_initializer_list): Use pp_primary_expression.
2281 (c_pretty_printer::c_pretty_printer): Do not assign to
2282 primary_expression.
2283
0691175f
GDR
22842013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2285
2286 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2287 * c-pretty-print.c (M_): Remove.
2288 (c_pretty_printer::translate_string): Define.
2289 (pp_c_type_specifier): Use it.
2290 (pp_c_primary_expression): Likewise.
2291 (pp_c_expression): Likewise.
2292
66dfe4c4
GDR
22932013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2294
2295 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2296 virtual function.
2297 (pp_c_id_expression): Remove.
2298 (pp_id_expression): Adjust.
2299 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2300 pp_c_id_expression. Adjust.
2301 (pp_c_postfix_expression): Use pp_id_expression.
2302 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2303
ca43e9d5
GDR
23042013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2305
2306 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2307 member function.
2308 (pp_constant): Adjust.
2309 (pp_c_constant): Remove.
2310 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2311 pp_c_constant. Adjust.
2312 (pp_c_constant)
2313 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2314 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2315
da6ca2b5
GDR
23162013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2317
2318 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2319 (c_pretty_printer::c_pretty_printer): Declare.
2320 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2321 c_pretty_printer_init. Adjust.
2322 (print_c_tree): Do not call c_pretty_printer_init.
2323 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2324
65a372f4
AC
23252013-08-09 Arnaud Charlet <charlet@adacore.com>
2326
2327 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2328
fd9b0f32
PC
23292013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
2330
2331 PR c++/58080
2332 * c-common.c (pointer_int_sum): Add bool parameter.
2333 * c-common.h (pointer_int_sum): Adjust declaration.
2334
e0aec1e9
GDR
23352013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2336
2337 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2338 c_pretty_printer variable.
2339
b066401f
GDR
23402013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2341
2342 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2343 (pp_base): Remove.
2344 (pp_c_base): Likewise. Adjust users.
2345 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2346 (pp_c_whitespace): Do not call pp_base.
2347 (pp_c_left_paren): Likewise.
2348 (pp_c_right_paren): Likewise.
2349 (pp_c_left_brace): Likewise.
2350 (pp_c_right_brace): Likewise.
2351 (pp_c_left_bracket): Likewise.
2352 (pp_c_right_bracket): Likewise.
2353 (pp_c_dot): Likewise.
2354 (pp_c_ampersand): Likewise.
2355 (pp_c_star): Likewise.
2356 (pp_c_arrow): Likewise.
2357 (pp_c_semicolon): Likewise.
2358 (pp_c_complement): Likewise.
2359 (pp_c_exclamation): Likewise.
2360 (pp_c_direct_declarator): Likewise.
2361 (pp_c_ws_string): Likewise.
2362 (pp_c_identifier): Likewise.
2363 (pp_c_statement): Likewise.
2364 (print_c_tree): Likewise.
2365
65e5a578
ESR
23662013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2367
2368 PR c++/58072
2369 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2370 provide useful error strings.
2371
137a1a27
GDR
23722013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2373
2374 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2375 printer functions instead of pp_string or operators and punctuators.
2376 (dump_generic_ada_node): Likewise.
2377 * c-pretty-print.c (pp_c_type_specifier): Likewise.
2378 (pp_c_relational_expression): Likewise.
2379 (pp_c_logical_or_expression): Likewise.
2380
07838b13
GDR
23812013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2382
2383 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2384 functions instead of pp_character.
2385 (pp_ada_tree_identifier): Likewise.
2386 (dump_ada_double_name): Likewise.
2387 (dump_ada_function_declaration): Likewise.
2388 (dump_ada_array_domains): Likewise.
2389 (dump_template_types): Likewise.
2390 (dump_generic_ada_node): Likewise.
2391 (print_ada_declaration): Likewise.
2392 (print_ada_struct_decl): Likewise.
2393 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2394
433cc7b0
TT
23952013-07-23 Tom Tromey <tromey@redhat.com>
2396
2397 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2398 * c-common.c (c_common_reswords): Add _Generic.
2399
688010ba
OB
24002013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
2401
2402 * c-common.c: Fix typos.
2403 * c-common.h: Likewise.
2404
2a99e5e6
LL
24052013-07-13 Lubos Lunak <l.lunak@suse.cz>
2406
2407 PR c++/55203
2408 * c-common.c (c_common_attribute_table): Add warn_unused.
2409 (handle_warn_unused_attribute): New.
2410
c26302d5
JJ
24112013-07-10 Jakub Jelinek <jakub@redhat.com>
2412
2413 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2414 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2415
dfeadaa0
PC
24162013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
2417
2418 PR c++/57869
2419 * c.opt: Add Wconditionally-supported.
2420
6a2fa4b2
GS
24212013-07-08 Graham Stott <graham.stott@btinternet.com>
2422
adfac8df 2423 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
2424 unused variables l_length and l_node.
2425
ecdbd01a 24262013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
2427
2428 PR c/57821
2429 * c-common.c (complete_array_type): Delay folding first index
2430 like other indices. When folding, check for index overflow.
2431
bedc293e
MG
24322013-06-27 Marc Glisse <marc.glisse@inria.fr>
2433
2434 PR c++/57509
2435 * c-common.h (c_build_vec_perm_expr): New complain argument.
2436 * c-common.c (c_build_vec_perm_expr): Likewise.
2437 Use save_expr also in C++.
2438
604b2bfc
GDR
24392013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2440
2441 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2442 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2443 * c-opts.c (c_common_post_options): Likewise.
2444
dfeadaa0 24452013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
2446
2447 * array-notation-common.c (length_mismatch_in_expr): Changed the
2448 parameter type's from a dynamic array to a vec_tree. Also removed
2449 the size parameters.
2450 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2451 the change above.
2452
2ce86d2e
BI
24532013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2454
2455 * c-common.h (struct cilkplus_an_parts): New structure.
2456 (struct cilkplus_an_loop_parts): Likewise.
2457 (cilkplus_extract_an_triplets): New prototype.
2458 (fix_sec_implicit_args): Likewise.
2459 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2460 (fix_sec_implicit_args): Likewise.
604b2bfc 2461
07a6825b
BI
24622013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2463
2464 * array-notation-common.c (find_inv_trees): Removed an unwanted
2465 typecasting.
2466 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2467 enum rid to enum tree_code.
2468
08346abd
JH
24692013-06-11 Jan Hubicka <jh@suse.cz>
2470
2471 * c-common.c (handle_alias_ifunc_attribute): Do not set
2472 DECL_EXTERNAL for weakref variables.
2473 * c-pragma.c (handle_pragma_weak): Make sure aliases
2474 are not declared as external.
2475
d60f1706
BI
24762013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2477
2478 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2479 function from c/c-array-notation.c.
2480 (is_cilkplus_reduce_builtin): Likewise.
2481 (find_rank): Likewise.
2482 (extract_array_notation_exprs): Likewise.
2483 (replace_array_notations): Likewise.
2484 (find_inv_trees): Likewise.
2485 (replace_inv_trees): Likewise.
2486 (contains_array_notation_expr): Likewise.
2487 (find_correct_array_notation_type): Likewise.
2488 * c-common.h (struct inv_list): Moved this struct from the file
2489 c/c-array-notation.c and added a new field called additional tcodes.
2490 (length_mismatch_in_expr_p): New prototype.
2491 (is_cilkplus_reduce_builtin): Likewise.
2492 (find_rank): Likewise.
2493 (extract_array_notation_exprs): Likewise.
2494 (replace_array_notation): Likewise.
2495 (find_inv_trees): Likewise.
2496 (replace_inv_trees): Likewise.
2497 (find_correct_array_notation_type): Likewise.
dfeadaa0 2498
36536d79
BI
24992013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2500
2501 * c-common.c (c_define_builtins): When cilkplus is enabled, the
2502 function array_notation_init_builtins is called.
2503 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2504 * c-common.def (ARRAY_NOTATION_REF): New tree.
2505 * c-common.h (build_array_notation_expr): New function declaration.
2506 (build_array_notation_ref): Likewise.
2507 (extract_sec_implicit_index_arg): New extern declaration.
2508 (is_sec_implicit_index_fn): Likewise.
2509 (ARRAY_NOTATION_CHECK): New define.
2510 (ARRAY_NOTATION_ARRAY): Likewise.
2511 (ARRAY_NOTATION_START): Likewise.
2512 (ARRAY_NOTATION_LENGTH): Likewise.
2513 (ARRAY_NOTATION_STRIDE): Likewise.
2514 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2515 ARRAY_NOTATION_REF.
2516 (pp_c_expression): Likewise.
2517 * c.opt (flag_enable_cilkplus): New flag.
2518 * array-notation-common.c: New file.
2519
f7716d57
JJ
25202013-05-14 Jakub Jelinek <jakub@redhat.com>
2521
2522 PR c++/57274
2523 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2524
a5e0cd1d
MG
25252013-05-10 Marc Glisse <marc.glisse@inria.fr>
2526
2527 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2528 vectors.
2529
f6bc1c4a
HS
25302013-05-07 Han Shen <shenhan@google.com>
2531
2532 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2533
3f12f6e9
SKS
25342013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2535
2536 * c-common.c (check_user_alignment): Emit error for negative values.
2537
61949153
PC
25382013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2539
2540 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2541
e93e18e9
PC
25422013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2543
2544 * c-cppbuiltin.c (c_cpp_builtins): Do not define
2545 __GXX_EXPERIMENTAL_CXX1Y__.
2546
44d90fe1
PC
25472013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2548 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2549
2550 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2551 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2552 to simply use OPT_Wpointer_arith.
2553 (c_sizeof_or_alignof_type): Likewise.
2554
13f39b2e
PC
25552013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2556
2557 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2558
4b84d650
JJ
25592013-04-12 Jakub Jelinek <jakub@redhat.com>
2560
2561 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2562 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2563 specifiers.
2564
fb037b5d
SB
25652013-04-07 Steven Bosscher <steven@gcc.gnu.org>
2566
2567 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2568
4e856798
PC
25692013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
2570
2571 * c-common.c (pointer_int_sum): Remove dead code.
2572
4b1baac8
RS
25732013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2574
2575 PR middle-end/56524
2576 * c-common.c (handle_optimize_attribute): Don't call
2577 save_optabs_if_changed.
2578
0b50e654
JJ
25792013-03-05 Jakub Jelinek <jakub@redhat.com>
2580
2581 PR middle-end/56461
2582 * c-pch.c (pch_init): Free target_validity at the end.
2583
48c41403
JJ
25842013-03-04 Jakub Jelinek <jakub@redhat.com>
2585
2586 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2587
e664c61c
KS
25882013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2589 Jakub Jelinek <jakub@redhat.com>
2590
2591 PR sanitizer/56454
2592 * c-common.c (handle_no_sanitize_address_attribute): New function.
2593 (c_common_attribute_table): Add no_sanitize_address attribute.
2594 (handle_no_address_safety_analysis_attribute): Add
2595 no_sanitize_address attribute, not no_address_safety_analysis
2596 attribute.
2597
a475fd3d 25982013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
2599
2600 PR target/52555
2601 * c-common.c (handle_optimize_attribute): Call
2602 save_optabs_if_changed.
2603
f6007d99
JJ
26042013-02-18 Jakub Jelinek <jakub@redhat.com>
2605 Steven Bosscher <steven@gcc.gnu.org>
2606
2607 PR pch/54117
2608 * c-opts.c (c_common_post_options): If debug info is enabled
2609 and non-dwarf*, refuse to load PCH files and when writing PCH
2610 file warn.
2611
cf35e2b1
JJ
26122013-02-05 Jakub Jelinek <jakub@redhat.com>
2613
2614 PR middle-end/56167
2615 * c-common.c (handle_error_attribute): Fix condition.
2616
32887460
JJ
26172013-01-30 Jakub Jelinek <jakub@redhat.com>
2618
2619 PR c++/55742
2620 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2621
5af057d8
JM
26222013-01-18 Jason Merrill <jason@redhat.com>
2623
2624 PR target/54908
2625 * c.opt (-fextern-tls-init): New.
2626 * c-opts.c (c_common_post_options): Handle it.
2627
cc83c823
JJ
26282013-01-09 Jakub Jelinek <jakub@redhat.com>
2629
2630 PR c/48418
2631 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2632 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2633 and is either negative or bigger or equal to type precision
2634 of the first operand.
2635
a859517f
MP
26362012-12-03 Marek Polacek <polacek@redhat.com>
2637
2638 PR c/55570
2639 * c-common.c (check_user_alignment): Swap order of tests,
2640 check TREE_CODE first.
2641
2d7aa578
ESR
26422012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
2643
2644 PR c++/52654
2645 * c-common.h (overflow_type): New enum.
2646 (build_userdef_literal): Add overflow_type argument.
2647 (tree_userdef_literal): Add overflow_type.
2648 (USERDEF_LITERAL_OVERFLOW): New access macro.
2649 * c-common.c (build_userdef_literal): Add overflow_type
2650 argument.
2651 * c-lex.c (c_lex_with_flags): Add overflow_type to
2652 build_userdef_literal calls.
2653 (interpret_integer, interpret_float): Add overflow_type argument.
2654
cc3c4f62
RB
26552012-11-28 Richard Biener <rguenther@suse.de>
2656
2657 PR c/35634
2658 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2659 here and use a type with proper overflow behavior for types that would
2660 need to be promoted for the arithmetic.
2661
77bc5132
JJ
26622012-11-23 Jakub Jelinek <jakub@redhat.com>
2663
2664 PR sanitizer/55435
2665 * c-common.c (handle_no_address_safety_analysis_attribute): New
2666 function.
2667 (c_common_attribute_table): Add no_address_safety_analysis.
2668
5dc99c46
SB
26692012-11-16 Simon Baldwin <simonb@google.com>
2670
2671 * c.opt: Add f[no-]canonical-system-headers.
2672 * c-opts.c (c_common_handle_option): Handle
2673 OPT_fcanonical_system_headers.
2674
a4a0016d
ESR
26752012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
2676
2677 PR c++/54413
2678 * c-opts.c (c_common_handle_option): Set new flags.
2679 * c.opt: Describe new flags.
2680
7dbb85a7
JM
26812012-11-09 Jason Merrill <jason@redhat.com>
2682
2683 * c.opt (Wabi-tag): New.
2684
ad7bac31
AK
26852012-11-09 Andi Kleen <ak@linux.intel.com>
2686
2687 PR 55139
2688 * c-common.c (get_atomic_generic_size): Mask with
2689 MEMMODEL_MASK
2690
7332899a
MLI
26912012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2692
2693 PR c/53063
2694 * c.opt (Wformat): Make it Alias Wformat=1.
2695 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2696 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2697 LangEnabledBy.
2698 (Wformat=): RejectNegative. Use LangEnabledBy.
2699 (Wnonnull): Use LangEnabledBy.
2700 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2701 * c-format.c (set_Wformat): Delete.
2702 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2703 (maybe_read_dollar_number): Likewise.
2704 (avoid_dollar_number): Likewise.
2705 (finish_dollar_format_checking): Likewise.
2706 (check_format_info): Likewise.
2707 (check_format_info_main): Likewise.
2708 (check_format_types): Likewise.
2709 (format_type_warning): Likewise.
2710 * c-common.c (int): Likewise.
2711 (check_function_sentinel): Likewise.
2712 * c-common.h (warn_format,set_Wformat): Do not declare here.
2713
34a180a6
MLI
27142012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2715
2716 PR c/53063
2717 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2718 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2719 Use LangEnabledBy.
2720 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2721 common.opt.
2722 (Wvariadic-macros): Init(1).
2723 * c-opts.c (c_common_handle_option): Do not handle them
2724 explicitly.
2725 (c_common_post_options): Likewise.
2726 (sanitize_cpp_opts): warn_unused_macros is now
2727 cpp_warn_unused_macros.
2728 (push_command_line_include): Likewise.
2729 * c-common.c (warn_unknown_pragmas): Do not define.
2730 * c-common.h (warn_unknown_pragmas): Do not declare.
2731
3f46d6a5
MLI
27322012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2733
2734 PR c/51294
2735 * c-common.c (conversion_warning): Handle conditional expressions.
2736
880661a4
JW
27372012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2738
2739 PR c++/54930
2740 * c.opt (Wreturn_local_addr): Define new option.
2741
4514a96b
JM
27422012-10-25 Jason Merrill <jason@redhat.com>
2743
f14edc1a
JM
2744 * c.opt (Wvirtual-move-assign): New.
2745
4514a96b
JM
2746 * c.opt (Winherited-variadic-ctor): New.
2747
93100c6b
MG
27482012-10-25 Marc Glisse <marc.glisse@inria.fr>
2749
2750 PR c++/54427
2751 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2752
1efcb8c6
JM
27532012-10-23 Joseph Myers <joseph@codesourcery.com>
2754
2755 * c-common.h (pch_cpp_save_state): Declare.
2756 * c-target.def (c_preinclude): New hook.
2757 * c-opts.c (done_preinclude): New.
2758 (push_command_line_include): Handle default preincluded header.
2759 (cb_file_change): Call pch_cpp_save_state when calling
2760 push_command_line_include.
2761 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2762 (pch_cpp_save_state): New.
2763 (pch_init): Call pch_cpp_save_state conditionally, instead of
2764 calling cpp_save_state.
2765
4a0ae68e
MLI
27662012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2767
2768 PR c/53063
2769 PR c/40989
2770 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2771 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2772 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2773 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2774 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2775 * c-opts.c (c_common_handle_option): Remove explicit handling from
2776 here.
2777 (c_common_post_options): Likewise.
2778
67e4210b
EB
27792012-10-18 Eric Botcazou <ebotcazou@adacore.com>
2780
2781 * c-ada-spec.c (LOCATION_COL): Delete.
2782 (compare_location): New function.
2783 (compare_node): Use it.
2784 (compare_comment): Likewise.
2785
65d4f2cd
MLI
27862012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2787
2788 PR c/53063
2789 PR c/40989
2790 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2791 * c-opts.c (c_common_handle_option): Do not set them here. Add
2792 comment.
2793 (c_common_post_options): Likewise.
2794
909881cb
EB
27952012-10-16 Eric Botcazou <ebotcazou@adacore.com>
2796
2797 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2798 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2799 Remove POINTER_TYPE handling, add large unsigned handling and use
2800 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2801
3a785c97
JJ
28022012-10-12 Jakub Jelinek <jakub@redhat.com>
2803
2804 PR c/54381
2805 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2806 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2807 locs and array of 3 trees instead of just single loc and single
2808 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
2809 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2810 For *cmp* builtins that take two sources strings report warnings
2811 about first and second source, not about destination and source.
2812
5e54f81d
MG
28132012-10-12 Marc Glisse <marc.glisse@inria.fr>
2814
2815 PR c++/53055
2816 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2817
f5b02f1e
EB
28182012-10-11 Eric Botcazou <ebotcazou@adacore.com>
2819
2820 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2821 declaring something coming from another file.
2822
b46dbc6c
AC
28232012-10-10 Arnaud Charlet <charlet@adacore.com>
2824
f5b02f1e 2825 PR ada/54845
b46dbc6c
AC
2826 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2827
5d9de0d0
PC
28282012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2829
2830 PR c++/54194
2831 * c-common.c (warn_about_parentheses): Add location_t parameter;
2832 use EXPR_LOC_OR_LOC.
2833 * c-common.h: Update declaration.
2834
a212e43f
MG
28352012-10-09 Marc Glisse <marc.glisse@inria.fr>
2836
2837 PR c++/54427
2838 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2839 more operations. Make error messages optional.
2840 * c-common.h (enum stv_conv): Moved from c-typeck.c.
2841 (scalar_to_vector): Declare.
2842
b1db7f91
JM
28432012-10-08 Jason Merrill <jason@redhat.com>
2844
2845 * c-common.c (c_common_reswords): Add thread_local.
2846
e28d52cf
DS
28472012-10-08 Dodji Seketeli <dodji@redhat.com>
2848
2849 PR c++/53528 C++11 attribute support
2850 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2851 new functions.
2852 * c-common.c (check_cxx_fundamental_alignment_constraints): New
2853 static function.
2854 (handle_aligned_attribute): In choose strictest alignment
2855 among many. Use new check_cxx_fundamental_alignment_constraints.
2856 (handle_transparent_union_attribute): In c++11 attribute syntax,
2857 don't look through typedefs.
2858
3b78de56
AC
28592012-10-04 Arnaud Charlet <charlet@adacore.com>
2860
2861 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2862 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2863 out of dumpfile.h.
2864
6040bb5f
DC
28652012-09-25 Dehao Chen <dehao@google.com>
2866
2867 PR middle-end/54645
3b78de56 2868 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
2869 map when read in the pch.
2870
0b07a57e
AC
28712012-09-18 Arnaud Charlet <charlet@adacore.com>
2872
2873 * c-ada-spec.c: Style fixes.
2874
da5182be
TQ
28752012-09-18 Thomas Quinot <quinot@adacore.com>
2876
2877 * c.opt (-fada-spec-parent): Define new command line switch.
2878 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2879 is specified, generate binding spec as a child of the specified unit.
2880
0ccb505d
PC
28812012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
2882 Manuel López-Ibáñez <manu@gcc.gnu.org>
2883
2884 PR c++/53210
2885 * c.opt ([Winit-self]): Enabled by -Wall in C++.
2886
c583af79
AC
28872012-08-23 Arnaud Charlet <charlet@adacore.com>
2888
2889 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2890 for pointers, and add missing Convention C pragma.
2891 (print_ada_struct_decl): Add missing aliased keyword.
2892 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2893
1a4049e7
JJ
28942012-08-17 Jakub Jelinek <jakub@redhat.com>
2895
2896 * c-common.c (sizeof_pointer_memaccess_warning): New function.
2897 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2898 * c-opts.c (c_common_handle_option): Enable it for -Wall.
2899 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2900 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2901
70b5e7dc
RG
29022012-08-10 Richard Guenther <rguenther@suse.de>
2903
2904 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2905
f8923f7e
SB
29062012-08-07 Steven Bosscher <steven@gcc.gnu.org>
2907
2908 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2909 instead of separate pp_newline and pp_flush.
2910 (print_c_tree): Likewise.
2911
e45abe1f
RH
29122012-07-26 Richard Henderson <rth@redhat.com>
2913
2914 * c-common.c (handle_hot_attribute): Allow labels.
2915 (handle_cold_attribute): Likewise.
2916
332f1d24
JJ
29172012-07-20 Jakub Jelinek <jakub@redhat.com>
2918
2919 PR c++/28656
2920 * c-common.c (check_function_nonnull): Handle multiple nonnull
2921 attributes properly.
2922
7ee2468b
SB
29232012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2924
2925 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2926 * c-ada-spec.c: Likewise.
2927 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2928
ee7b28eb
SB
29292012-07-14 Steven Bosscher <steven@gcc.gnu.org>
2930
2931 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2932 Remove code conditional on it.
2933
6bdf3519
SB
29342012-07-11 Steven Bosscher <steven@gcc.gnu.org>
2935
2936 * c-gimplify.c: Do not include basic-block.h.
2937 * c-common.c: Do not include linfuncs.h.
2938
532aafad
SB
29392012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2940
2941 * c-common.h: Include tree.h.
2942
8d0d1915
JM
29432012-07-02 Jason Merrill <jason@redhat.com>
2944
2945 PR c++/53524
2946 * c-common.c (get_priority): Call default_conversion.
2947
fbc873ad
UB
29482012-07-01 Uros Bizjak <ubizjak@gmail.com>
2949
2950 * c-pch.c (c_common_write_pch): Remove unused variables.
2951
d4a10d0a
SB
29522012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2953
2954 * cppspec.c: Moved from gcc/ to here.
2955
6f3a2e23
KT
29562012-06-27 Kai Tietz <ktietz@redhat.com>
2957
2958 PR preprocessor/37215
2959 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2960
8ca92d04
SB
29612012-06-21 Steven Bosscher <steven@gcc.gnu.org>
2962
2963 * c-common.h (c_common_print_pch_checksum): Remove.
2964 * c-pch.c: Do not include output.h.
2965 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2966 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2967 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2968 (struct c_pch_header): Remove.
2969 (get_ident): Update gpch version.
2970 (pch_init): Do not print executable_checksum to asm_out_file.
2971 Do not fail if there is no asm_out_file to read back from. Set
2972 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2973 (c_common_write_pch): Verify that nothing was written to asm_out_file
2974 since pch_init was called. Do not write a c_pch_header, and do not
2975 copy from asm_out_file to the PCH.
2976 (c_common_read_pch): Do not read a c_pch_header, and do not restore
2977 the content of asm_out_file from the PCH.
2978 (c_common_print_pch_checksum): Remove.
2979 * c-opts.c (c_common_init): Print out executable_checksum directly.
2980
70f42967
SB
29812012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2982
2983 * c-target.def (objc_declare_unresolved_class_reference,
2984 objc_declare_class_definition): Add new hooks.
2985
a8781821
SB
29862012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2987
2988 * c-lex.c: Do not include output.h.
2989 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2990 Remove uses of ASM_OUTPUT_IDENT.
2991
9e1a8dd1
RR
29922012-06-15 Marc Glisse <marc.glisse@inria.fr>
2993
2994 PR c++/51033
2995 * c-common.h (c_build_vec_perm_expr): Move decl here.
2996 * c-common.c (c_build_vec_perm_expr): Move definition
2997 here.
2998
6f07a821
SB
29992012-06-06 Steven Bosscher <steven@gcc.gnu.org>
3000
3001 * c.opt (fconserve-space): Turn into a no-op.
3002
9faeb493 30032012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
3004
3005 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
3006 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
3007 both the start and end of the function.
3008
a4b7d13c
SB
30092012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3010
3011 * c-common.c: Do not include output.h.
3012 * c-pragma.c: Likewise.
3013
c265f413
SA
30142012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3015
3016 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3017 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3018 (lang_decl_name): Handle namespace decls.
3019
be7a421e
SB
30202012-05-31 Steven Bosscher <steven@gcc.gnu.org>
3021
3022 * c-ada-spec.c: Do not include output.h.
3023 * c-semantics.c: Likewise.
3024
65de6659
JM
30252012-05-29 Joseph Myers <joseph@codesourcery.com>
3026
3027 * c-common.c: Fix typo.
3028
ca5f4331
MM
30292012-05-29 Michael Matz <matz@suse.de>
3030
3031 * c-common.h (c_expand_decl): Remove prototype.
3032
4f7f7aca
MLI
30332012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3034
3035 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3036 * c-opts.c (c_common_handle_option): Remove code handling
3037 warn_missing_braces.
3038
4a792f9b
PC
30392012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
3040
3041 PR c++/25137
3042 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3043 -Wmissing_braces.
3044
650dc14a
DS
30452012-05-22 Dodji Seketeli <dodji@redhat.com>
3046
3047 PR c++/53322
3048 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3049
9b095bf1
MLI
30502012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3051
3052 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3053 * c-opts.c (c_common_handle_option): Do not handle explicitly
3054 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3055
0b2c4be5
DS
30562012-05-16 Dodji Seketeli <dodji@redhat.com>
3057
3058 PR preprocessor/7263
3059 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
3060 to cpp_classify_number. For diagnostics, use the precise location
3061 instead of the global input_location.
3062
a1bde5af
PC
30632012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3064
d02924ef 3065 PR c++/11856
a1bde5af
PC
3066 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3067
d1ede5f4
BS
30682012-05-14 Bernd Schmidt <bernds@codesourcery.com>
3069
a1bde5af 3070 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 3071
f2bc201f
MLI
30722012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3073
3074 PR 53063
3075 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3076 Wreorder): Use LangEnabledBy.
3077 * c-opts.c (c_common_handle_option): Do not enable them
3078 explicitly. Call lang-specific generated functions.
3079 (c_common_post_options): Do not set them here.
3080
95744782
MLI
30812012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3082
3083 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3084 Wmissing-field-initializers,Wmissing-parameter-type,
3085 Wold-style-declaration,Woverride-init): Use EnabledBy.
3086 * c-opts.c (c_common_post_options): Do not set here explicitly.
3087
7d5a5747
MLI
30882012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3089
3090 PR 53063
3091 * c-opts.c (c_common_handle_option): Use handle_generated_option
3092 to enable sub-options.
3093
5a3c9cf2
PC
30942012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
3095
3096 PR c++/53158
3097 * c-common.c (warnings_for_convert_and_check): Use warning_at.
3098
3ac8781c
RG
30992012-05-10 Richard Guenther <rguenther@suse.de>
3100
3101 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3102 adjust commentary about TYPE_IS_SIZETYPE types.
3103
1e537948
MLI
31042012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3105
3106 PR c++/53261
3107 * c-common.c (warn_logical_operator): Check that argument of
3108 integer_zerop is not NULL.
3109
f2c4a785
MLI
31102012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3111
3112 PR c/43772
3113 * c-common.c (warn_logical_operator): Do not warn if either side
3114 is already true or false.
3115
50f305ca
MLI
31162012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3117
3118 PR c/51712
3119 * c-common.c (expr_original_type): New.
3120 (shorten_compare): Do not warn for enumeration types.
3121
0c3641b0
MLI
31222012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3123
3124 * c.opt (fpermissive): Add Var(flag_permissive).
3125
7edaa4d2
MG
31262012-04-30 Marc Glisse <marc.glisse@inria.fr>
3127
3128 PR c++/51033
3129 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3130 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3131
b9c8da34
DS
31322012-04-30 Dodji Seketeli <dodji@redhat.com>
3133
3134 Add -Wvarargs option
3135 * c.opt (Wvarargs): Define new option.
3136
e6c69da0
MLI
31372012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3138
3139 * c-common.c (check_function_arguments): Replace
3140 Wmissing-format-attribute with Wsuggest-attribute=format.
3141
90137d8f
MLI
31422012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3143
3144 * c.opt (Wsuggest-attribute=format): New. Alias of
3145 Wmissing-format-attribute.
3146 * c-format.c (decode_format_type): Replace
3147 Wmissing-format-attribute with Wsuggest-attribute=format.
3148 (check_function_format): Likewise.
3149
9faeb493 31502012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
3151
3152 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3153 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3154 * c.opt: Add Wliteral-suffix.
3155
c1771a20
MLI
31562012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3157
3158 PR c/44774
3159 * c.opt (Wpedantic): New.
3160 (pedantic): Alias Wpedantic.
3161 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3162 (c_common_post_options): Likewise.
3163 (sanitize_cpp_opts): Likewise.
3164 * c-lex.c (interpret_float): Likewise.
3165 * c-format.c (check_format_types): Likewise.
3166 * c-common.c (pointer_int_sum): Likewise.
3167 (c_sizeof_or_alignof_type): Likewise.
3168 (c_add_case_label): Likewise.
3169 (c_do_switch_warnings): Likewise.
3170 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3171
04b391c1
JM
31722012-04-15 Jason Merrill <jason@redhat.com>
3173
3174 PR c++/52818
3175 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3176 (C_STD_NAME): Distinguish between C++98 and C++11.
3177
ac868f29
EB
31782012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3179
3180 PR target/52624
3181 * c-common.h (uint16_type_node): Rename into...
3182 (c_uint16_type_node): ...this.
3183 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3184 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3185
fd4116f4
MLI
31862012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3187
3188 * c-common.c (warn_if_unused_value): Move definition to here.
3189 * c-common.h (warn_if_unused_value): Move declaration to here.
3190
573ac65e
WB
31912012-03-23 William Bader <williambader@hotmail.com>
3192
3193 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3194
552b8185
JM
31952012-03-20 Jason Merrill <jason@redhat.com>
3196
3197 * c-common.h (enum cxx_dialect): Add cxx1y.
3198 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3199 test.
3200 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3201 * c-opts.c (c_common_post_options): Likewise.
3202 (set_std_cxx1y): New.
3203 (c_common_handle_option): Call it.
3204 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3205
04398fa8
PC
32062012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3207
3208 PR c++/14710
3209 * c.opt ([Wuseless-cast]): Add.
3210
d2a12ae7
RG
32112012-03-16 Richard Guenther <rguenther@suse.de>
3212
3213 * c-pretty-print.c (pp_c_initializer_list): Adjust.
3214
a12bf402
MLI
32152012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3216
3217 PR c++/44783
3218 * c.opt (ftemplate-backtrace-limit) Add.
3219
5c30094f
RO
32202012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3221
3222 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3223 handling.
3224 * c-pragma.c (handle_pragma_extern_prefix): Remove.
3225 (init_pragma): Don't register extern_prefix.
3226
21fa2faf
RG
32272012-03-12 Richard Guenther <rguenther@suse.de>
3228
3229 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3230 (builtin_type_for_size): Likewise.
3231
e3793c6f
JJ
32322012-02-13 Jakub Jelinek <jakub@redhat.com>
3233
3234 PR c++/52215
3235 * c-common.c (sync_resolve_params): Don't decide whether to convert
3236 or not based on TYPE_SIZE comparison, convert whenever arg_type
3237 is unsigned INTEGER_TYPE.
3238
93286335
PC
32392012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
3240
3241 PR c/52118
3242 * c.opt ([Wunused-local-typedefs]): Fix description.
3243
7a421706
MS
32442012-01-24 Mike Stump <mikestump@comcast.net>
3245
3246 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3247 exactly.
3248
ba9b1f11
RG
32492012-01-18 Richard Guenther <rguenther@suse.de>
3250
3251 * c-opts.c (c_common_post_options): Reset LTO flags if
3252 we are about to generate a PCH.
3253
465406be
PC
32542012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3255
3256 PR c++/51777
3257 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3258 use pp_unsigned_wide_integer.
3259
aee15221
RG
32602012-01-10 Richard Guenther <rguenther@suse.de>
3261
3262 PR middle-end/51806
3263 * c-opts.c (c_common_handle_option): Move -Werror handling
3264 to language independent code.
3265
5720c0dc
RG
32662012-01-05 Richard Guenther <rguenther@suse.de>
3267
3268 PR middle-end/51764
3269 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3270 from common.opt.
3271
73ac190a
PC
32722011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
3273
3274 PR c++/51316
3275 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3276 of array types with an unknown bound.
3277
48b0b196
JM
32782011-12-20 Joseph Myers <joseph@codesourcery.com>
3279
3280 * c-common.c (flag_isoc99): Update comment to refer to C11.
3281 (flag_isoc1x): Change to flag_isoc11.
3282 * c-common.h (flag_isoc99): Update comment to refer to C11.
3283 (flag_isoc1x): Change to flag_isoc11.
3284 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3285 C11.
3286 * c-opts.c (set_std_c1x): Change to set_std_c11.
3287 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3288 Call set_std_c11.
3289 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3290 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3291 * c.opt (std=c1x): Change to std=c11. Document as non-draft
3292 standard.
3293 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3294 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3295 (std=gnu1x): Make alias of std=gnu11.
3296
d58d6eb5
JM
32972011-12-19 Jason Merrill <jason@redhat.com>
3298
3299 PR c++/51228
3300 * c-common.c (handle_transparent_union_attribute): Check the first
3301 field if the type is complete.
3302
b3908fcc
JW
33032011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3304
3305 PR libstdc++/51365
3306 * c-common.c (RID_IS_FINAL): Add.
3307 * c-common.h (RID_IS_FINAL): Add.
3308
fea3ca91
IS
33092011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3310
3311 * c.opt (fgnu-runtime): Provide full description.
3312 (fnext-runtime): Likewise.
3313 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3314
62bad7cd
AM
33152011-11-28 Andrew MacLeod <amacleod@redhat.com>
3316
3317 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3318 predefines in one place. Add LOCK_FREE predefines.
3319 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3320 new func.
3321
c466c4ff
AM
33222011-11-24 Andrew MacLeod <amacleod@redhat.com>
3323
3324 PR c/51256
9faeb493 3325 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 3326 conditions
9faeb493
UB
3327 (resolve_overloaded_atomic_exchange,
3328 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
3329 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3330 error_mark_node for error conditions.
9faeb493 3331
a5952633
RG
33322011-11-08 Richard Guenther <rguenther@suse.de>
3333
3334 PR middle-end/51010
3335 c-family/
3336
0a35513e
AH
33372011-11-07 Richard Henderson <rth@redhat.com>
3338 Aldy Hernandez <aldyh@redhat.com>
3339 Torvald Riegel <triegel@redhat.com>
3340
3341 Merged from transactional-memory.
3342
3343 * c-common.c (handle_tm_wrap_attribute,
3344 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3345 (struct c_common_reswords): Added __transaction* keywords.
3346 (struct c_common_attribute_table): Added transaction* and tm_regparm
3347 attributes.
3348 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3349 masks.
3350 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3351 find_tm_attribute): Declare.
3352
6d87092d
JM
33532011-11-07 Jason Merrill <jason@redhat.com>
3354
3355 PR c++/35688
3356 * c-common.c, c-common.h: Revert yesterday's changes.
3357
8e7860a1
JM
33582011-11-06 Jason Merrill <jason@redhat.com>
3359
3360 PR c++/35688
3361 * c-common.c (decl_has_visibility_attr): Split out from...
3362 (c_determine_visibility): ...here.
3363 * c-common.h: Declare it.
3364
d19fa6b5
JM
33652011-11-06 Joseph Myers <joseph@codesourcery.com>
3366
3367 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3368 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3369 type.
3370 (check_user_alignment): New. Split out of
3371 handle_aligned_attribute. Disallow integer constants with
3372 noninteger types. Conditionally allow zero.
3373 (handle_aligned_attribute): Use check_user_alignment.
3374 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3375
86951993
AM
33762011-11-06 Andrew MacLeod <amacleod@redhat.com>
3377 Richard Henderson <rth@redhat.com>
3378
3379 Merged from cxx-mem-model.
3380
3381 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 3382 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
3383 parameters that are the same type size.
3384 (get_atomic_generic_size): New. Find size of generic
3385 atomic function parameters and do typechecking.
3386 (add_atomic_size_parameter): New. Insert size into parameter list.
3387 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3388 either __atomic_exchange_n or external library call.
9faeb493 3389 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 3390 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 3391 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
3392 __atomic_load_n or an external library call.
3393 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3394 __atomic_store_n or an external library call.
3395 (resolve_overloaded_builtin): Handle new __atomic builtins.
3396
cf9e9959
EB
33972011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3398
3399 PR c++/50608
3400 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3401 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3402 <INDIRECT_REF>: Return the argument.
3403 <ARRAY_REF>: Remove special code for negative offset.
3404 Call fold_build_pointer_plus instead of size_binop.
3405 (fold_offsetof): Remove STOP_REF argument and adjust.
3406 * c-common.h (fold_offsetof_1): Declare.
3407 (fold_offsetof): Remove STOP_REF argument.
3408
25339f10
JM
34092011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3410
3411 PR c++/50810
3412 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3413 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3414 Wnarrowing for C++0x and C++98.
3415 * c.opt ([Wnarrowing]): Update.
3416
89401152
PC
34172011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
3418
3419 PR c++/44277
3420 * c.opt: Add Wzero-as-null-pointer-constant.
3421
97e3ad20
JM
34222011-10-31 Jason Merrill <jason@redhat.com>
3423
15694fdd
JM
3424 * c.opt (-fdeduce-init-list): Off by default.
3425
97e3ad20
JM
3426 PR c++/50920
3427 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3428 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3429 and -Wc++11-compat.
3430 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3431
fb9120e3
RAV
34322011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3433
3434 PR c++/30066
3435 * c.opt (fvisibility-inlines-hidden): Description change.
3436
3ce4f9e4
ESR
34372011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
3438
3439 Implement C++11 user-defined literals.
3440 * c-common.c (build_userdef_literal): New.
3441 * c-common.def: New tree code.
3442 * c-common.h (tree_userdef_literal): New tree struct and accessors.
3443 * c-lex.c (interpret_float): Add suffix parm.
3444 (c_lex_with_flags): Build literal tokens.
3445
5f53c243
PC
34462011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3447
3448 PR c++/50841
3449 Revert:
3450 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3451
3452 PR c++/50810
3453 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3454 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3455 Wnarrowing for C++0x and C++98.
3456 * c.opt ([Wnarrowing]): Update.
3457
263734e1
PC
34582011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3459
3460 PR c++/50810
3461 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3462 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3463 Wnarrowing for C++0x and C++98.
3464 * c.opt ([Wnarrowing]): Update.
3465
d2e312d7
PC
34662011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3467
3468 PR c++/45385
3469 * c-common.c (conversion_warning): Remove code looking for
3470 artificial operands.
3471
d17687f6
DS
34722011-10-18 Dodji Seketeli <dodji@redhat.com>
3473
3474 PR bootstrap/50760
3475 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 3476 !NO_IMPLICIT_EXTERN_C.
d17687f6 3477
fc8396e9
PC
34782011-10-17 Michael Spertus <mike_spertus@symantec.com>
3479
3480 * c-common.c (c_common_reswords): Add __bases,
3481 __direct_bases.
3482 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3483
34842011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3485
3486 PR c++/50757
3487 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3488
847e697a
TT
34892011-10-15 Tom Tromey <tromey@redhat.com>
3490 Dodji Seketeli <dodji@redhat.com>
3491
3492 * c.opt (fdebug-cpp): New option.
3493 * c-opts.c (c_common_handle_option): Handle the option.
3494 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3495 output stream in parameter. Factorized from ...
3496 (maybe_print_line): ... this. Dump location debug information when
3497 -fdebug-cpp is in effect.
3498 (print_line_1): New static function. Takes an output stream in
3499 parameter. Factorized from ...
3500 (print_line): ... here. Dump location information when -fdebug-cpp
3501 is in effect.
3502 (scan_translation_unit): Dump location information when
3503 -fdebug-cpp is in effect.
3504
92582b75
TT
35052011-10-15 Tom Tromey <tromey@redhat.com>
3506 Dodji Seketeli <dodji@redhat.com>
3507
3508 * c.opt (ftrack-macro-expansion): New option. Handle it with and
3509 without argument.
3510 * c-opts.c (c_common_handle_option)<case
3511 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3512 cases. Handle -ftrack-macro-expansion with and without argument.
3513
46427374
TT
35142011-10-15 Tom Tromey <tromey@redhat.com>
3515 Dodji Seketeli <dodji@redhat.com>
3516
3517 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3518 (print_line, cb_define, do_line_change): Adjust to avoid touching
3519 the internals of struct line_map. Use the public API instead.
3520 * c-pch.c (c_common_read_pch): Likewise.
3521 * c-lex.c (fe_file_change): Likewise.
3522
fc8396e9
PC
35232011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
3524
3525 PR c++/17212
3526 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3527
35282011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
3529
3530 PR c++/33067
3531 * c-pretty-print.c (pp_c_floating_constant): Output
3532 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3533
e79983f4
MM
35342011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3535
3536 * c-common.c (def_builtin_1): Delete old interface with two
3537 parallel arrays to hold standard builtin declarations, and replace
3538 it with a function based interface that can support creating
3539 builtins on the fly in the future. Change all uses, and poison
3540 the old names. Make sure 0 is not a legitimate builtin index.
3541 * c-omp.c (c_finish_omp_barrier): Ditto.
3542 (c_finish_omp_taskwait): Ditto.
3543 (c_finish_omp_flush): Ditto.
3544
6637388f
TG
35452011-10-11 Tristan Gingold <gingold@adacore.com>
3546
3547 * c.opt: (fallow-parameterless-variadic-functions): New.
3548
3797cb21
DS
35492011-09-08 Dodji Seketeli <dodji@redhat.com>
3550
3551 PR c++/33255 - Support -Wunused-local-typedefs warning
3552 * c-common.h (struct c_language_function::local_typedefs): New
3553 field.
9faeb493
UB
3554 (record_locally_defined_typedef, maybe_record_typedef_use)
3555 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 3556 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
3557 (maybe_record_typedef_use)
3558 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
3559 * c.opt: Declare new -Wunused-local-typedefs flag.
3560
693ddb1b
EB
35612011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3562
3563 PR middle-end/50266
3564 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3565 computations.
3566
830c740f
RG
35672011-09-05 Richard Guenther <rguenther@suse.de>
3568
3569 * c-common.c (complete_array_type): Use ssize_int (-1) instead
3570 of integer_minus_one_node for empty array upper bounds.
3571
892a371f
DS
35722011-08-28 Dodji Seketeli <dodji@redhat.com>
3573
3574 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3575 it's the first time it's being called on this main TU.
3576
0e3fdb48
RB
35772011-08-24 Richard Guenther <rguenther@suse.de>
3578
3579 PR c/49396
3580 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3581
35822011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
3583
3584 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3585 defined in cpp_init_builtins and c_cpp_builtins.
3586
d4a83c10
JM
35872011-08-19 Joseph Myers <joseph@codesourcery.com>
3588
3589 * c-common.c (c_common_reswords): Add __builtin_complex.
3590 * c-common.h (RID_BUILTIN_COMPLEX): New.
3591
bbceee64
JM
35922011-08-18 Joseph Myers <joseph@codesourcery.com>
3593
3594 * c-common.c (c_common_reswords): Add _Noreturn.
3595 (keyword_is_function_specifier): Handle RID_NORETURN.
3596 * c-common.h (RID_NORETURN): New.
3597
0e3a99ae
AS
35982011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3599
3600 * c-common.c (unsafe_conversion_p): New function. Check if it is
3601 unsafe to convert an expression to the type.
3602 (conversion_warning): Adjust, use unsafe_conversion_p.
3603 * c-common.h (unsafe_conversion_p): New function declaration.
3604
20906c66
JJ
36052011-08-02 Jakub Jelinek <jakub@redhat.com>
3606
3607 * c-common.h (c_finish_omp_atomic): Adjust prototype.
3608 (c_finish_omp_taskyield): New prototype.
3609 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3610 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3611 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
3612 or RHS1 have side-effects, evaluate those too in the right spot,
3613 if it is a decl and LHS is also a decl, error out if they
3614 aren't the same.
3615 (c_finish_omp_taskyield): New function.
3616 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3617 * c-pragma.c (omp_pragmas): Add taskyield.
3618 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3619 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3620 PRAGMA_OMP_CLAUSE_MERGEABLE.
3621
770e5a2e
DS
36222011-07-25 Dodji Seketeli <dodji@redhat.com>
3623
3624 * c-common.h (set_underlying_type): Remove parm name from
3625 declaration.
3626
1baae426
RG
36272011-07-25 Romain Geissler <romain.geissler@gmail.com>
3628
3629 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 3630
fcb21722
JM
36312011-07-22 Jason Merrill <jason@redhat.com>
3632
76f86d00
JM
3633 PR c++/49793
3634 * c.opt (Wnarrowing): New.
3635
3a636414
JM
3636 PR c++/30112
3637 * c-common.h: Declare c_linkage_bindings.
3638 * c-pragma.c (handle_pragma_redefine_extname): Use it.
3639
fcb21722
JM
3640 PR c++/49813
3641 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3642 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3643 as flag_isoc99 for 'restrict'.
3644 (pp_c_specifier_qualifier_list): Likewise for _Complex.
3645
02614448
ILT
36462011-07-21 Ian Lance Taylor <iant@google.com>
3647
3648 PR middle-end/49705
3649 * c-common.c (c_disable_warnings): New static function.
3650 (c_enable_warnings): New static function.
3651 (c_fully_fold_internal): Change local unused_p to bool. Call
3652 c_disable_warnings and c_enable_warnings rather than change
3653 c_inhibit_evaluation_warnings.
3654
34429675
JM
36552011-07-20 Jason Merrill <jason@redhat.com>
3656
3657 PR c++/6709 (DR 743)
3658 PR c++/42603 (DR 950)
3659 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3660 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3661 (CPP_DECLTYPE): New.
3662 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3663
5d49b6a7
RG
36642011-07-19 Richard Guenther <rguenther@suse.de>
3665
3666 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3667 * c-omp.c (c_finish_omp_for): Likewise.
3668
e84a58ff
EB
36692011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3670
3671 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3672 body on the next line.
3673
329af3c7
JM
36742011-07-08 Jason Merrill <jason@redhat.com>
3675
4063e61b
JM
3676 PR c++/45437
3677 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3678
329af3c7
JM
3679 PR c++/49673
3680 * c-common.c (c_apply_type_quals_to_decl): Don't check
3681 TYPE_NEEDS_CONSTRUCTING.
3682
1a072294
RG
36832011-07-06 Richard Guenther <rguenther@suse.de>
3684
3685 * c-common.c (c_common_nodes_and_builtins):
3686 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3687
fce5dddd
RG
36882011-07-05 Richard Guenther <rguenther@suse.de>
3689
3690 * c-common.c (c_common_nodes_and_builtins): Build all common
3691 tree nodes first.
3692
45d439ac
JJ
36932011-06-27 Jakub Jelinek <jakub@redhat.com>
3694
56300785
JJ
3695 * c-common.h (c_tree_chain_next): New static inline function.
3696
45d439ac
JJ
3697 * c-common.c (check_builtin_function_arguments): Handle
3698 BUILT_IN_ASSUME_ALIGNED.
3699
e0a8ecf2
AM
37002011-06-21 Andrew MacLeod <amacleod@redhat.com>
3701
3702 * c-common.c: Add sync_ or SYNC__ to builtin names.
3703 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
3704
37052011-06-20 Pierre Vittet <piervit@pvittet.com>
3706
3707 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3708 handler.
3709 (gen_pragma_handler): New union.
3710 (internal_pragma_handler): New type.
3711 (c_register_pragma_with_data)
3712 (c_register_pragma_with_expansion_and_data): New functions.
3713
3714 * c-pragma.c (registered_pragmas, c_register_pragma_1)
3715 (c_register_pragma, c_register_pragma_with_expansion)
3716 (c_invoke_pragma_handler): Changed to work with
3717 internal_pragma_handler.
3718 (c_register_pragma_with_data)
3719 (c_register_pragma_with_expansion_and_data): New functions.
3720
677f3fa8
JM
37212011-06-14 Joseph Myers <joseph@codesourcery.com>
3722
3723 * c-common.c: Include common/common-target.h.
3724 (handle_section_attribute): Use
3725 targetm_common.have_named_sections.
3726 * c-cppbuiltin.c: Include common/common-target.h.
3727 (c_cpp_builtins): Use targetm_common.except_unwind_info.
3728
d7fc8c14
RG
37292011-06-10 Richard Guenther <rguenther@suse.de>
3730
3731 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3732 to print a IDENTIFIER_NODE.
3733
10e48e39
RO
37342011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3735 Joseph Myers <joseph@codesourcery.com>
3736
3737 * c.opt (fbuilding-libgcc): New option.
3738 * c-cppbuiltin.c (c_cpp_builtins): Define
3739 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3740
6976ae51
JM
37412011-06-07 Jason Merrill <jason@redhat.com>
3742
3ff60975
JM
3743 * c-common.c (max_tinst_depth): Lower default to 900.
3744
6976ae51
JM
3745 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3746
009db074
RG
37472011-06-07 Richard Guenther <rguenther@suse.de>
3748
3749 * c-common.c (c_common_nodes_and_builtins): Do not set
3750 size_type_node or call set_sizetype.
3751
b4592b92
DS
37522011-06-07 Dodji Seketeli <dodji@redhat.com>
3753
3754 PR debug/49130
3755 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 3756 type when using pointer comparison to compare types.
b4592b92 3757
014ab419
JW
37582011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
3759
3760 * c.opt: Add -Wdelete-non-virtual-dtor.
3761 * c-opts.c (c_common_handle_option): Include it in -Wall.
3762
4f60111f
NF
37632011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3764
3765 PR bootstrap/49190
3766
3767 Revert:
3768 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3769
3770 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3771 not tree_common.
3772
4cc4f2f4
JJ
37732011-05-27 Jakub Jelinek <jakub@redhat.com>
3774
3775 PR c++/49165
3776 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3777 C++ don't call c_common_truthvalue_conversion on void type arms.
3778
38e01f9e
NF
37792011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3780
3781 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3782 (stmt_list_stack): Define.
3783 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3784 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3785
92e948a8
NF
37862011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3787
3788 * c-common.c (warning_candidate_p): Check for BLOCKs.
3789
a2fc3e63
NF
37902011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3791
3792 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3793 not tree_common.
3794
0957c029
JJ
37952011-05-25 Jakub Jelinek <jakub@redhat.com>
3796
3797 * c-common.c (def_fn_type): Remove extra va_end.
3798
828fb3ba
JM
37992011-05-23 Jason Merrill <jason@redhat.com>
3800
3801 PR c++/48106
3802 * c-common.c (c_common_get_narrower): New.
3803 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3804
dde05067
NF
38052011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3806
3807 * c-common.h (check_function_arguments): Tweak prototype of
3808 check_function_arguments.
3809 * c-common.c (check_function_arguments): Likewise. Adjust
3810 calls to check_function_nonnull, check_function_format, and
3811 check_function_sentinel.
3812 (check_function_sentinel): Take a FUNCTION_TYPE rather than
3813 separate attributes and typelist arguments. Use
3814 FOREACH_FUNCTION_ARGS to iterate over argument types.
3815
3c0d13bf
PC
38162011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3817
3818 * c-common.c (c_common_reswords): Reorder.
3819 * c-common.h (rid): Likewise.
3820
8242dd04
NF
38212011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3822
3823 * c-common.c (def_fn_type): Don't call build_function_type, call
3824 build_function_type_array or build_varargs_function_type_array
3825 instead.
3826 (c_common_nodes_and_builtins): Likewise.
3827
3d528853
NF
38282011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3829
3830 * c-common.c (c_add_case_label): Omit the loc argument to
3831 build_case_label.
3832 * c-common.h (build_case_label): Remove.
3833 * c-semantics.c (build_case_label): Remove.
3834
a04a722b
JM
38352011-05-05 Joseph Myers <joseph@codesourcery.com>
3836
3837 * c-objc.h (objc_start_method_definition): Update prototype.
3838 * stub-objc.c (objc_start_method_definition): Add extra parameter.
3839
e19a18d4
NF
38402011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3841
3842 * c-common.c (check_main_parameter_types): Reindent. Don't use
3843 TYPE_ARG_TYPES directly.
3844 (handle_nonnull_attribute): Likewise.
3845 (sync_resolve_params): Likewise.
3846 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
3847 to check_format_string.
3848 (handle_format_attribute): Likewise.
3849 (check_format_string): Take a function type to examine instead of
3850 a type list. Use a function_arg_iterator to step through argument
3851 types.
3852
c62c040f
RG
38532011-05-04 Richard Guenther <rguenther@suse.de>
3854
3855 * c-common.c (fix_string_type): Use size_int for index type bounds.
3856 (start_fname_decls): Do not pass NULL to build_int_cst.
3857 (c_init_attributes): Likewise.
3858 * c-lex.c (c_lex_with_flags): Likewise.
3859
c12ff9d8
JM
38602011-04-27 Jason Merrill <jason@redhat.com>
3861
3862 * c-common.c (make_tree_vector_from_list): New.
3863 * c-common.h: Declare it.
3864
304dfbe3
RG
38652011-04-26 Richard Guenther <rguenther@suse.de>
3866
3867 PR preprocessor/48248
3868 * c-ppoutput.c (maybe_print_line): Always optimize newlines
3869 for output size with -P.
3870
3c0d13bf
PC
38712011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3872
3873 * c-common.c (struct c_common_resword): Add __underlying_type.
3874 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3875
04695783
JM
38762011-04-20 Jim Meyering <meyering@redhat.com>
3877
3878 * c-format.c (init_dollar_format_checking): Remove useless
3879 if-before-free.
3880
0dc33c3c
NP
38812011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3882
3883 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 3884 (objc_detect_field_duplicates): New.
0dc33c3c 3885 * stub-objc.c: Likewise.
3c0d13bf 3886
c59633d9
NP
38872011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3888
3889 * stub-objc.c (objc_declare_protocols): Renamed to
3890 objc_declare_protocol.
3891 * c-objc.h: Likewise.
3c0d13bf 3892
32dabdaf
NP
38932011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3894
3895 * stub-objc.c (objc_declare_class): Updated argument name.
3896
81f653d6
NF
38972011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3898
3899 * c-common.h (c_common_init_ts): Declare.
3900 * c-common.c (c_common_init_ts): Define.
3901
eb345401
NP
39022011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3903
3904 * c-objc.h (objc_build_message_expr): Updated prototype.
3905 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 3906
a358e188
MJ
39072011-04-12 Martin Jambor <mjambor@suse.cz>
3908
3909 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3910 of cgraph_node.
3911
e6313a78
RG
39122011-04-11 Richard Guenther <rguenther@suse.de>
3913
3914 * c-common.c (complete_array_type): Build a range type of
3915 proper type.
3916
dcf0c47e
NF
39172011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3918
3919 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3920 (handle_type_generic_attribute): Likewise.
3921
1ee44b26
JM
39222011-04-07 Jason Merrill <jason@redhat.com>
3923
3924 PR c++/48450
3925 * c-common.c (c_common_truthvalue_conversion): Don't ignore
3926 conversion from C++0x scoped enum.
3927
acce4e77
JM
39282011-04-06 Joseph Myers <joseph@codesourcery.com>
3929
3930 * c-target-def.h: New file.
3931 * c-target.def: New file.
3932 * c-target.h: New file.
3933 * c-common.c (targetcm): Don't define here.
3934 * c-common.h (default_handle_c_option): Declare.
3935 * c-format.c: Include c-target.h instead of target.h.
3936 * c-opts.c: Include c-target.h instead of target.h. Explicitly
3937 include tm.h.
3938 (default_handle_c_option): Move from targhooks.c.
3939
e2eefb55
JJ
39402011-03-29 Jakub Jelinek <jakub@redhat.com>
3941
3942 PR preprocessor/48248
3943 * c-ppoutput.c (print): Add src_file field.
3944 (init_pp_output): Initialize it.
3945 (maybe_print_line): Don't optimize by adding up to 8 newlines
3946 if map->to_file and print.src_file are different file.
3947 (print_line): Update print.src_file.
3948
ba78087b
KT
39492011-03-25 Kai Tietz <ktietz@redhat.com>
3950
3951 * c-ada-spec.c (compare_comment): Use filename_cmp
3952 instead of strcmp for filename.
3953
0edf1bb2
JL
39542011-03-25 Jeff Law <law@redhat.com>
3955
adfac8df 3956 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 3957
c7dc8804
JM
39582011-03-25 Jason Merrill <jason@redhat.com>
3959
3960 * c.opt: Add -std=c++03.
3961
d1d879b1
EB
39622011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3963
3964 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3965
62d784f7
KT
39662011-03-17 Kai Tietz
3967
3968 PR target/12171
5050afdf
KT
3969 * c-pretty-print.c (pp_c_specifier_qualifier_list):
3970 Display allowed attributes for function pointer types.
3971 (pp_c_attributes_display): New function to display
3972 attributes having affects_type_identity flag set to true.
3973 * c-pretty-print.h (pp_c_attributes_display): New prototype.
3974
62d784f7
KT
3975 * c-common.c (c_common_attribute_table):
3976 Add new element.
3977 (c_common_format_attribute_table): Likewise.
3978
82d37118
JM
39792011-03-18 Jason Merrill <jason@redhat.com>
3980
49a000c3
JM
3981 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3982 * c-common.h: Don't declare it here.
3983 * c-common.c: Or define it here.
3984 * c-opts.c (c_common_handle_option): Or set it here.
3985
82d37118
JM
3986 PR c++/35315
3987 * c-common.c (handle_transparent_union_attribute): Don't
3988 make a duplicate type in C++.
3989
17bc631c
JM
39902011-03-15 Jason Merrill <jason@redhat.com>
3991
3992 * c-common.c (max_constexpr_depth): New.
3993 * c-common.h: Declare it.
3994 * c-opts.c (c_common_handle_option): Set it.
3995 * c.opt (fconstexpr-depth): New option.
3996
1b9b91a6
JM
39972011-03-11 Jason Merrill <jason@redhat.com>
3998
f231b5ff
JM
3999 * c-common.c (attribute_takes_identifier_p): Add missing const.
4000
1b9b91a6
JM
4001 PR c++/46803
4002 * c-common.c (attribute_takes_identifier_p): Assume that an
4003 unknown attribute takes an identifier.
4004
a19e4d44
NF
40052011-03-07 Nathan Froyd <froydnj@codesourcery.com>
4006
4007 PR c/47786
4008 * c-common.c (c_type_hash): Call list_length instead of iterating
4009 through DECL_CHAIN. Rename 'i' to 'n_elements'.
4010
982d62f6
JJ
40112011-02-19 Jakub Jelinek <jakub@redhat.com>
4012
4013 PR c/47809
4014 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4015
0a256240
NP
40162011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4017
4018 * c.opt (fobjc-abi-version=) New.
4019 (fobjc-nilcheck): New.
4020
ba9e6dd5
NF
40212011-02-03 Nathan Froyd <froydnj@codesourcery.com>
4022
4023 PR c++/46890
4024 * c-common.h (keyword_is_decl_specifier): Declare.
4025 * c-common.c (keyword_is_decl_specifier): Define.
4026 (keyword_is_function_specifier): New function.
4027
7273813a
JJ
40282011-01-26 Jakub Jelinek <jakub@redhat.com>
4029
4030 PR c/47473
4031 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4032 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4033 REAL_TYPE.
4034
908ef79b
AC
40352011-01-26 Arnaud Charlet <charlet@adacore.com>
4036
4037 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4038
237e9384
JJ
40392011-01-26 Jakub Jelinek <jakub@redhat.com>
4040
4041 PR pch/47430
4042 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4043 after init_c_lex if pch_file is set.
4044
47ea1edf
DK
40452011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
4046
d4dba752 4047 PR c++/43601
47ea1edf
DK
4048 * c.opt (-fkeep-inline-dllexport): New switch.
4049
2aa9c6ae
RG
40502011-01-12 Richard Guenther <rguenther@suse.de>
4051
4052 PR middle-end/32511
4053 * c-common.c (handle_weak_attribute): Warn instead of error
4054 on declaring an inline function weak.
4055
7bd11157
TT
40562011-01-05 Tom Tromey <tromey@redhat.com>
4057
4058 * c-common.h (lvalue_error): Update.
4059 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
4060 not error.
4061
0e66e494 40622010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 4063
b4f588c4
NP
4064 PR objc/47075
4065 * c-objc.h (objc_finish_message_expr): Added argument to
4066 prototype.
4067
f4da8dce
NF
40682010-12-22 Nathan Froyd <froydnj@codesourcery.com>
4069
4070 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4071 Use prototype_p.
4072
46270f14
NP
40732010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
4074
4075 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 4076 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 4077
4816c593
NF
40782010-12-10 Nathan Froyd <froydnj@codesourcery.com>
4079
4080 * c-common.h (readonly_error): Declare.
4081 * c-common.c (readonly_error): Define.
4082
7a6daeb0
NF
40832010-12-09 Nathan Froyd <froydnj@codesourcery.com>
4084
4085 * c-common.h (invalid_indirection_error): Declare.
4086 * c-common.c (invalid_indirection_error): Define.
4087
892f6119
RG
40882010-12-03 Richard Guenther <rguenther@suse.de>
4089
4090 PR c/46745
4091 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4092 (pp_c_unary_expression): Likewise.
4093 (pp_c_expression): Likewise.
4094
6c39e757
NP
40952010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
4096
4097 * c-common.h (objc_finish_function): New.
4098 (objc_non_volatilized_type): Removed.
4099 (objc_type_quals_match): Removed.
4100 * stub-objc.c (objc_finish_function): New.
4101 (objc_non_volatilized_type): Removed.
4102 (objc_type_quals_match): Removed.
9faeb493 4103
7c475d11
JM
41042010-11-30 Joseph Myers <joseph@codesourcery.com>
4105
4106 * c-common.h (parse_optimize_options): Declare.
4107 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4108 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4109
71f3e391
JM
41102010-11-29 Joseph Myers <joseph@codesourcery.com>
4111
4112 * c-opts.c (check_deps_environment_vars): Use getenv instead of
4113 GET_ENVIRONMENT.
4114 * c-pch.c (O_BINARY): Don't define here.
4115 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4116
d5fabb58
JM
41172010-11-25 Joseph Myers <joseph@codesourcery.com>
4118
4119 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4120 targetm.except_unwind_info.
4121
299404a1
JM
41222010-11-23 Joseph Myers <joseph@codesourcery.com>
4123
4124 * c-opts.c (c_common_handle_option): Pass location to
4125 set_struct_debug_option.
4126
c98cd5bf
JM
41272010-11-23 Joseph Myers <joseph@codesourcery.com>
4128
4129 * c-common.c (visibility_options): Move from ../opts.c.
4130 * c-common.h (struct visibility_flags, visibility_options):
4131 Declare here.
4132 * c-opts.c (finish_options): Rename to c_finish_options.
4133 (c_common_init): Update call to finish_options.
4134
a9546771
NP
41352010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4136
4137 PR objc/34033
4138 * c-lex.c (lex_string): Check that each string in an Objective-C
4139 string concat sequence starts with either one or zero '@', and
4140 that there are no spurious '@' signs at the end.
4141
24a57808
JM
41422010-11-20 Joseph Myers <joseph@codesourcery.com>
4143
4144 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4145 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4146 HANDLE_PRAGMA_VISIBILITY.
4147 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4148 HANDLE_PRAGMA_VISIBILITY): Don't define.
4149 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4150
a9aa2c3a
NF
41512010-11-20 Nathan Froyd <froydnj@codesourcery.com>
4152
4153 PR c++/16189
4154 PR c++/36888
4155 PR c++/45331
4156 * c-common.h (keyword_begins_type_specifier): Declare.
4157 (keyword_is_storage_class_specifier): Declare.
4158 (keyword_is_type_qualifier): Declare.
4159 * c-common.c (keyword_begins_type_specifier): New function.
4160 (keyword_is_storage_class_specifier): New function.
4161 (keyword_is_type_qualifier): Declare.
4162
5386338c
JM
41632010-11-19 Joseph Myers <joseph@codesourcery.com>
4164
4165 PR c/46547
4166 * c-common.c (in_late_binary_op): Define.
4167 (c_common_truthvalue_conversion): Check in_late_binary_op before
4168 calling c_save_expr.
4169 * c-common.h (in_late_binary_op): Declare.
4170
69ccdddb
JM
41712010-11-19 Joseph Myers <joseph@codesourcery.com>
4172
4173 * c-opts.c (c_common_handle_option): Update calls to
4174 set_struct_debug_option.
4175
6b192a09
NP
41762010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
4177
4178 * c-common.h (objc_declare_protocols): Added additional argument.
4179 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 4180
fb52b50a
NF
41812010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4182
4183 PR c/33193
4184 * c-common.h (build_real_imag_expr): Declare.
4185 * c-semantics.c (build_real_imag_expr): Define.
4186
b37421c6
JM
41872010-11-17 Joseph Myers <joseph@codesourcery.com>
4188
4189 * c-opts.c (c_common_parse_file): Take no arguments.
4190 * c-common.h (c_common_parse_file): Update prototype.
4191
07078664
JJ
41922010-11-16 Jakub Jelinek <jakub@redhat.com>
4193
4194 PR c++/46401
4195 * c-common.c (warning_candidate_p): Don't track non-const calls
4196 or STRING_CSTs.
4197
c6a13190
ILT
41982010-11-15 Ian Lance Taylor <iant@google.com>
4199
4200 * c-lex.c (init_c_lex): Set macro debug callbacks if
4201 flag_dump_go_spec is set.
4202
925e8657
NP
42032010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4204
4205 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4206 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4207
bb0a9581
NF
42082010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4209
4210 PR preprocessor/45038
4211 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4212 dialects.
4213
c5fa0890
JM
42142010-11-12 Joseph Myers <joseph@codesourcery.com>
4215
4216 * c-common.h (c_family_lang_mask): Declare.
4217 * c-opts.c (c_family_lang_mask): Make extern.
4218 * c-pragma.c (handle_pragma_diagnostic): Use
4219 control_warning_option.
4220
a4d8c676
JM
42212010-11-12 Joseph Myers <joseph@codesourcery.com>
4222
4223 * c-common.c (parse_optimize_options): Update call to
4224 decode_options.
4225 * c-common.h (c_common_handle_option): Update prototype.
4226 * c-opts.c (c_common_handle_option): Take location_t parameter and
4227 pass it to other functions.
4228
f954bd2c
JM
42292010-11-11 Joseph Myers <joseph@codesourcery.com>
4230
4231 * c-opts.c (warning_as_error_callback): Remove.
4232 (c_common_initialize_diagnostics): Don't call
4233 register_warning_as_error_callback.
4234 (c_common_handle_option): Handle -Werror=normalized= here.
4235
d8a07487
JM
42362010-11-10 Joseph Myers <joseph@codesourcery.com>
4237
4238 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4239 in diagnostic.
4240 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4241 letter.
4242 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4243 Remove trailing '.' from diagnostics.
4244 * c.opt (Wwrite-strings_: Avoid '`' in help text.
4245
d5478783
JM
42462010-11-10 Joseph Myers <joseph@codesourcery.com>
4247
4248 * c-common.c (parse_optimize_options): Pass global_dc to
4249 decode_options.
4250 * c-opts.c (c_common_handle_option): Pass &global_options to
4251 set_Wstrict_aliasing.
4252 * c.opt (v): Don't mark Common or document here.
4253
91ebb981
IS
42542010-11-06 Iain Sandoe <iains@gcc.gnu.org>
4255
4256 PR target/44981
4257 * c-format.c (format_type): New type gcc_objc_string_format_type.
4258 (valid_stringptr_type_p): New.
4259 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 4260 (check_format_string): Pass expected type, use
91ebb981
IS
4261 valid_stringptr_type_p (), check that the format string types are
4262 consistent with the format specification.
4263 (decode_format_attr): Warn if NSString is used outside objective-c.
4264 (format_types_orig): Add NSString.
4265 (format_name): New.
4266 (format_flags): New.
4267 (check_format_arg): Handle format strings requiring an external parser.
4268 first_target_format_type: New variable.
4269 (handle_format_attribute): Set up first_target_format_type, pass the
4270 expected format arg string type to check_format_string().
4271 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
4272 * stub-objc.c (objc_string_ref_type_p): New.
4273 (objc_check_format_arg): New.
4274
bede2adc
NP
42752010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
4276
9faeb493 4277 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
4278 * c-common.h (objc_build_class_component_ref): New.
4279 * stub-objc.c (objc_build_class_component_ref): New.
4280
9a179d01
NP
42812010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4282
4283 * c.opt (Wproperty-assign-default): New option.
4284
22d8d616
NP
42852010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4286
4287 Implemented -fobjc-std=objc1 flag.
4288 * c.opt (fobjc-std=objc1): New option.
4289
2debdb4f
NP
42902010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
4291
4292 Implemented format and noreturn attributes for Objective-C methods.
4293 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4294 attribute for Objective-C methods.
4295
ec52b111
JM
42962010-10-31 Jason Merrill <jason@redhat.com>
4297
4298 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4299 EXPR_LOC_OR_HERE.
4300
46a88c12
NP
43012010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4302
4303 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4304 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4305 (objc_add_property_declaration): Removed arguments for copies and
4306 ivar.
4307 (objc_build_getter_call): Renamed to
4308 objc_maybe_build_component_ref.
4309 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4310 (objc_is_property_ref): New.
4311 * c-common.c (c_common_reswords): Removed copies and ivar.
4312 * stub-objc.c (objc_add_property_declaration): Removed arguments
4313 for copies and ivar.
4314 (objc_build_getter_call): Renamed to
4315 objc_maybe_build_component_ref.
4316 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4317 (objc_is_property_ref): New.
9faeb493 4318
1e4bf85b
AC
43192010-10-29 Arnaud Charlet <charlet@adacore.com>
4320 Matthew Gingell <gingell@adacore.com>
4321
4322 * c-ada-spec.c (separate_class_package): New function.
4323 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4324 name of their enclosing package.
4325 (print_ada_declaration): Use separate_class_package.
4326
81f0bab2
JM
43272010-10-27 Jason Merrill <jason@redhat.com>
4328
2b08f2c5
JM
4329 * c-common.c (c_common_reswords): Add __is_literal_type.
4330 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4331
81f0bab2
JM
4332 * c-common.c (check_case_value): Remove special C++ code.
4333
200290f2
NP
43342010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4335
4336 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4337 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4338 and RID_LAST_PATTR.
4339 (objc_add_property_declaration): Added additional arguments.
4340 (objc_property_attribute_kind): Removed.
4341 (objc_set_property_attr): Removed.
4342 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4343 copy and nonatomic.
4344 * stub-objc.c (objc_add_property_declaration): Added additional
4345 arguments.
4346 (objc_set_property_attr): Removed.
9faeb493 4347
f614132b
NP
43482010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4349
4350 * c-common.h (objc_add_property_variable): Renamed to
4351 objc_add_property_declaration. Added location argument.
4352 * stub-objc.c (objc_add_property_variable): Same change.
4353
b8a18805
NP
43542010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4355
4356 * c-common.h (objc_maybe_printable_name): New.
4357 * stub-objc.c (objc_maybe_printable_name): New.
4358
30cd1c5d
AS
43592010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4360 Andrew Pinski <pinskia@gmail.com>
4361
4362 * c-common.h (c_common_mark_addressable_vec): Declare.
4363 * c-common.c (c_common_mark_addressable_vec): New function.
4364
249a82c4
NP
43652010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4366
4367 * c-common.h (objc_set_method_type): Removed.
4368 (objc_add_method_declaration): Added boolean argument.
4369 (objc_start_method_definition): Same change.
4370 (objc_build_method_signature): Same change.
4371 * stub-objc.c (objc_set_method_type): Removed.
4372 (objc_add_method_declaration): Added boolean argument.
4373 (objc_start_method_definition): Same change.
4374 (objc_build_method_signature): Same change.
4375
977e30bc
NP
43762010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4377
4378 * c-common.h (finish_file): Removed.
4379 (objc_write_global_declarations): New.
4380 * c-opts.c (c_common_parse_file): Do not call finish_file.
4381 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 4382
da57d1b9
NP
43832010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4384
4385 Implemented parsing @synthesize and @dynamic for
4386 Objective-C/Objective-C++.
4387 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4388 (objc_add_synthesize_declaration): New.
4389 (objc_add_dynamic_declaration): New.
4390 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4391 * stub-objc.c (objc_add_synthesize_declaration): New.
4392 (objc_add_dynamic_declaration): New.
9faeb493 4393
0069111f
MM
43942010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4395
4396 PR target/46041
4397 * c-cppbuiltin.c (mode_has_fma): Move function here from
4398 builtins.c. Don't use the fma optab, instead just use the
4399 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4400 using -save-temps.
4401
e426b47b
NP
44022010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4403
4404 Merge from 'apple/trunk' branch on FSF servers.
0069111f 4405
e426b47b
NP
4406 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4407
9faeb493 4408 Radar 4330422
e426b47b
NP
4409 * c-common.h (objc_non_volatilized_type): New declaration
4410 * stub-objc.c (objc_non_volatilized_type): New stub.
4411
90fbfdc3
NP
44122010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4413
e426b47b 4414 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
4415
4416 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4417
9faeb493 4418 Radar 4133425
90fbfdc3 4419 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 4420 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 4421
c37d8c30
IS
44222010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4423
4424 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4425 * c-common.h (enum rid): Add RID_AT_PACKAGE.
4426 (objc_ivar_visibility_kind): New enum.
4427 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 4428 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
4429 visibility enum.
4430
1b1562a5
MM
44312010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4432
4433 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4434 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4435 has the appropriate fma builtins.
4436 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4437
668ea4b1
IS
44382010-10-14 Iain Sandoe <iains@gcc.gnu.org>
4439
1b1562a5 4440 merge from FSF apple 'trunk' branch.
668ea4b1 4441 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 4442
668ea4b1
IS
4443 Radars 4436866, 4505126, 4506903, 4517826
4444 * c-common.c (c_common_resword): Define @property and its attributes.
4445 * c-common.h: Define property attribute enum entries.
4446 (OBJC_IS_PATTR_KEYWORD): New.
4447 (objc_property_attribute_kind): New enum.
4448 Declare objc_set_property_attr (), objc_add_property_variable (),
4449 objc_build_getter_call () and objc_build_setter_call ().
4450 * stub-objc.c (objc_set_property_attr): New stub.
4451 (objc_add_property_variable): Likewise.
4452 (objc_build_getter_call): Likewise.
4453 (objc_build_setter_call) Likewise.
1b1562a5 4454
a1178b30
IS
44552010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4456
1b1562a5 4457 merge from FSF apple 'trunk' branch.
a1178b30
IS
4458 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4459
4460 Radar 3803157 (method attributes)
4461 * c-common.c (handle_deprecated_attribute): Recognize
4462 objc methods as valid declarations.
4463 * c-common.h: Declare objc_method_decl ().
1b1562a5 4464 * stub-objc.c (objc_method_decl): New stub.
a1178b30 4465
a75bfaa6
JM
44662010-10-08 Joseph Myers <joseph@codesourcery.com>
4467
4468 * c-common.c (parse_optimize_options): Call
4469 decode_cmdline_options_to_array_default_mask before
4470 decode_options. Update arguments to decode_options.
4471 * c-common.h (c_common_init_options_struct): Declare.
4472 * c-opts.c (c_common_init_options_struct): New. Split out from
4473 c_common_init_options.
4474
f05b9d93
NP
44752010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4476
4477 Implemented fast enumeration for Objective-C.
4478 * c-common.h (objc_finish_foreach_loop): New.
4479 * stub-objc.c (objc_finish_foreach_loop): New.
4480
1ebe4b4f
JM
44812010-10-05 Joseph Myers <joseph@codesourcery.com>
4482
4483 * c-common.h (struct diagnostic_context): Don't declare here.
4484 (c_common_initialize_diagnostics): Declare using
4485 diagnostic_context typedef.
4486 * c-opts.c (c_common_handle_option): Pass global_dc to
4487 handle_generated_option.
4488
d4d24ba4
JM
44892010-10-04 Joseph Myers <joseph@codesourcery.com>
4490
4491 * c-opts.c (c_common_handle_option): Pass &global_options_set to
4492 handle_generated_option.
4493
478a1c5b
ILT
44942010-10-03 Ian Lance Taylor <iant@google.com>
4495
4496 * c.opt (-fplan9-extensions): New option.
4497
82a1c2fe
FXC
44982010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4499
4500 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4501 Remove.
4502 (c_cpp_builtins): Call functions from cppbuiltin.c instead
4503 of duplicating code.
4504
92902b1b
IS
45052010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4506
4507 * c-common.c: Add two new entries for @optional
4508 and @required keywords.
4509
4510 merge from FSF 'apple/trunk' branch.
4511 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
4512
4513 Radar 4386773
4514 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4515 objective-c keywords.
4516 (objc_set_method_opt): New declaration.
4517 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 4518
46625112
JM
45192010-09-30 Joseph Myers <joseph@codesourcery.com>
4520
4521 * c-common.c (handle_optimize_attribute): Pass &global_options to
4522 cl_optimization_save and cl_optimization_restore.
4523 * c-opts.c (c_common_handle_option): Pass &global_options to
4524 handle_generated_option.
4525 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4526 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4527 &global_options to cl_optimization_restore.
4528
49b91f05
NP
45292010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4530
4531 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4532 Objective-C/Objective-C++ keywords.
4533
13ed556f 45342010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 4535
9faeb493
UB
4536 Merge from 'apple/trunk' branch on FSF servers.
4537
a6341d57
NP
4538 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4539
4540 Radar 4281748
4541 * c-common.h (objc_check_global_decl): New declaration.
4542 * stub-objc.c (objc_check_global_decl): New stub.
4543
f0036cca
JM
45442010-09-29 Joseph Myers <joseph@codesourcery.com>
4545
4546 * c.opt: Don't use VarExists.
4547
e3339d0f
JM
45482010-09-29 Joseph Myers <joseph@codesourcery.com>
4549
4550 * c-common.c (c_cpp_error): Update names of diagnostic_context
4551 members.
4552 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4553 cl_optimization members.
4554 * c-opts.c (warning_as_error_callback, c_common_handle_option,
4555 sanitize_cpp_opts, finish_options): Update names of cpp_options
4556 members.
4557
1973201f
NP
45582010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4559
4560 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
4561 (objc_is_reserved_word): Removed.
4562 * c-common.c: Updated comments.
4563 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4564 objc_is_reserved_word.
4565 * stub-objc.c (objc_is_reserved_word): Removed.
4566
f7e71da5
IS
45672010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4568
9faeb493 4569 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
4570 include attributes.
4571 (objc_start_method_definition): Likewise.
4572 (objc_build_keyword_decl): Likewise.
4573 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4574 (objc_start_method_definition): Likewise.
4575 (objc_build_keyword_decl): Likewise.
4576
c165dca7
IS
45772010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4578
4579 * c-common.h (objc_start_class_interface): Adjust prototype.
4580 (objc_start_category_interface): Likewise.
4581 (objc_start_protocol): Likewise.
4582 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4583 (objc_start_class_interface): Likewise.
4584 (objc_start_category_interface): Likewise.
4585
7458026b
ILT
45862010-09-27 Ian Lance Taylor <iant@google.com>
4587
4588 * c-common.c (c_common_attribute_table): Add no_split_stack.
4589 (handle_no_split_stack_attribute): New static function.
4590
b581b85b
NP
45912010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4592
9faeb493 4593 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
4594
4595 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
4596
9faeb493 4597 Radar 4229905
b581b85b
NP
4598 * c-common.h (objc_have_common_type): New declaration.
4599 * stub-objc.c (objc_have_common_type): New stub.
4600
4601 2005-06-22 Ziemowit Laski <zlaski@apple.com>
4602
4603 Radar 4154928
4604 * c-common.h (objc_common_type): New prototype.
9faeb493 4605 * stub-objc.c (objc_common_type): New stub.
b581b85b 4606
46a4da10
JH
46072010-09-24 Jan Hubicka <jh@suse.cz>
4608
4609 * c-common.c (handle_leaf_attribute): New function.
4610 (struct attribute_spec c_common_att): Add leaf.
4611
e200444e
JM
46122010-09-22 Joseph Myers <joseph@codesourcery.com>
4613
4614 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4615 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4616 -dump, -dump=, -imacros, -imacros=, -include, -include=,
4617 -include-barrier, -include-directory, -include-directory=,
4618 -include-directory-after, -include-directory-after=,
4619 -include-prefix, -include-prefix=, -include-with-prefix,
4620 -include-with-prefix=, -include-with-prefix-after,
4621 -include-with-prefix-after=, -include-with-prefix-before,
4622 -include-with-prefix-before=, -no-integrated-cpp,
4623 -no-line-commands, -no-standard-includes, -no-warnings, -output,
4624 -output=, -pedantic, -pedantic-errors, -preprocess,
4625 -print-missing-file-dependencies, -trace-includes, -traditional,
4626 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4627 -user-dependencies, -verbose, -write-dependencies,
4628 -write-user-dependencies, no-integrated-cpp, traditional): New.
4629
29a80ea6
NP
46302010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4631
4632 PR objc/23710
ac1fc2fc
NP
4633 * c-common.h (objc_start_method_definition): Return bool instead
4634 of void.
4635 * stub-objc.c (objc_start_method_definition): Return bool instead
4636 of void.
4637
46382010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4639
4640 PR objc/25965
4641 * c-common.h (objc_get_interface_ivars): New declaration.
4642 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 4643
de621752
ILT
46442010-09-15 Ian Lance Taylor <iant@google.com>
4645
4646 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 4647 messages. Remove period at end of warning message.
de621752 4648
ba885ec5
NS
46492010-09-09 Nathan Sidwell <nathan@codesourcery.com>
4650
4651 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4652 (handle_alias_attribute): ... here.
4653 (handle_ifunc_attribute): New.
4654
c5ee1358
MM
46552010-09-06 Mark Mitchell <mark@codesourcery.com>
4656
4657 * c-common.h (do_warn_double_promotion): Declare.
4658 * c-common.c (do_warn_double_promotion): Define.
4659
0a0b3574
MM
46602010-09-05 Mark Mitchell <mark@codesourcery.com>
4661
4662 * c.opt (Wdouble-promotion): New.
4663
d1779886
JM
46642010-09-02 Joseph Myers <joseph@codesourcery.com>
4665
4666 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4667 fvtable-thunks, fxref): Mark no longer supported in help text.
4668
2d2bd949
JM
46692010-09-02 Joseph Myers <joseph@codesourcery.com>
4670
4671 * c.opt (Wimport, fall-virtual, falt-external-templates,
4672 fdefault-inline, fenum-int-equiv, fexternal-templates,
4673 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4674 fname-mangling-version-, fnew-abi, fnonnull-objects,
4675 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4676 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4677 applicable.
4678 (fhandle-exceptions): Mark with Alias and Warn.
4679 * c-opts.c (c_common_handle_option): Don't handle options marked
4680 as ignored.
4681
5de8299c
JM
46822010-09-02 Joseph Myers <joseph@codesourcery.com>
4683
4684 * c.opt (Wcomments, Werror-implicit-function-declaration,
4685 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4686 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4687 aliases.
4688 * c-common.c (option_codes): Use OPT_Wcomment instead of
4689 OPT_Wcomments.
4690 * c-opts.c (warning_as_error_callback, c_common_handle_option):
4691 Don't handle options marked as aliases.
4692
0ceb0201
RG
46932010-08-25 Richard Guenther <rguenther@suse.de>
4694
4695 * c-common.c (c_common_get_alias_set): Remove special
4696 handling for pointers.
4697
ac47786e
NF
46982010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4699
4700 * c-common.c: Use FOR_EACH_VEC_ELT.
4701 * c-gimplify.c: Likewise.
4702 * c-pragma.c: Likewise.
4703
c878765b
JM
47042010-08-16 Joseph Myers <joseph@codesourcery.com>
4705
4706 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
4707 RejectDriver.
4708 (MMDX): Change back to MMD. Mark NoDriverArg instead of
4709 RejectDriver.
4710 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4711 instead of OPT_MDX and OPT_MMDX.
4712
603349bf
JM
47132010-08-16 Joseph Myers <joseph@codesourcery.com>
4714
4715 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4716
644fa7ac
JM
47172010-08-12 Joseph Myers <joseph@codesourcery.com>
4718
4719 * c.opt (MD, MMD): Change to MDX and MMDX.
4720 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4721
481e1176
JM
47222010-08-11 Joseph Myers <joseph@codesourcery.com>
4723
4724 * c-opts.c (c_common_handle_option): Call handle_generated_option
4725 instead of handle_option.
4726
ac8dc9f7
NF
47272010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4728
4729 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4730 (maybe_apply_renaming_pragma): Delete unneeded declarations.
4731
4f8c876d
NF
47322010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4733
4734 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
4735 (pending_redefine_extname): Change type to a VEC.
4736 (add_to_renaming_pragma_list): Update for new type of
4737 pending_redefine_extname.
ac8dc9f7 4738 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 4739
3b0c690e
AC
47402010-08-04 Arnaud Charlet <charlet@adacore.com>
4741
4742 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4743 visited.
4744 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4745 decide whether a type has already been declared/seen.
4746 Do not go to the original type.
4747 (dump_nested_types): New parameter forward.
4748 Generate forward declaration if needed and mark type as visited.
4749 (print_ada_declaration): Call dump_nested_types if not already done.
4750 Mark types as visited.
4751
1890bccc
JM
47522010-08-03 Joseph Myers <joseph@codesourcery.com>
4753
4754 * c.opt (-print-pch-checksum): Remove option.
4755 * c-opts.c (c_common_handle_option): Don't handle
4756 OPT_print_pch_checksum.
4757
5f20c657
JM
47582010-07-27 Joseph Myers <joseph@codesourcery.com>
4759
4760 * c-common.h (c_common_handle_option): Update prototype and return
4761 value type.
4762 * c-opts.c (c_common_handle_option): Update prototype and return
4763 value type. Update calls to handle_option and
4764 enable_warning_as_error.
4765
f551f80c
JJ
47662010-07-27 Jakub Jelinek <jakub@redhat.com>
4767
4768 PR c/45079
4769 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4770
61ff2bdc
JM
47712010-07-27 Joseph Myers <joseph@codesourcery.com>
4772
4773 * c-common.h (c_common_missing_argument): Remove.
4774 * c-opts.c (c_common_missing_argument): Remove.
4775 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4776 idirafter, imacros, include, isysroot, isystem, iquote): Add
4777 MissingArgError.
4778 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4779
7a9bf9a4
JM
47802010-07-27 Joseph Myers <joseph@codesourcery.com>
4781
4782 * c-common.h (c_common_option_lang_mask,
4783 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4784 New.
4785 (c_common_init_options): Update prototype.
4786 * c-opts.c (c_common_option_lang_mask): New.
4787 (c_common_initialize_diagnostics): Split out of
4788 c_common_init_options.
4789 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4790 New.
4791 (c_common_init_options): Update prototype. Use decoded options in
4792 search for -lang-asm.
4793
910ad8de
NF
47942010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4795
4796 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4797 * c-format.c: Likewise.
4798
718f9c0f
MLI
47992010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4800
4801 * c-common.h: Include diagnostic-core.h. Error if already
4802 included.
4803 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4804
4d451982
MLI
48052010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4806
adfac8df 4807 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
4808 Do not include expr.h
4809 (vector_mode_valid_p): Move here.
4810
119fe915
SB
48112010-06-21 DJ Delorie <dj@redhat.com>
4812
4813 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4814 allow these pragmas anywhere.
4815
48162010-06-14 Jakub Jelinek <jakub@redhat.com>
4817
4818 PR bootstrap/44509
4819 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4820 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4821 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4822 ggc_strdup instead of xstrdup.
4823
48242010-06-10 Jakub Jelinek <jakub@redhat.com>
4825
4826 * c-cppbuiltin.c: Include cpp-id-data.h.
4827 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4828 (lazy_hex_fp_value): New function.
4829 (builtin_define_with_hex_fp_value): Provide definitions lazily.
4830
6662d794
MLI
48312010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4832
4833 * c-gimplify.c: Do not include tree-flow.h
4834
38f8b050
JR
48352010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4836
4837 PR other/44034
4838 * c-common.c: Rename targetm member:
4839 targetm.enum_va_list -> targetm.enum_va_list_p
4840
9589f23e
AS
48412010-06-28 Anatoly Sokolov <aesok@post.ru>
4842
4843 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4844
3b06d379
SB
48452010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4846
4847 * c-cppbuiltin.c: Do not include except.h.
4848
d166d4c3
AK
48492010-06-24 Andi Kleen <ak@linux.intel.com>
4850
9faeb493
UB
4851 * c-common.c (warn_for_omitted_condop): New.
4852 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 4853
70cb8be6
JM
48542010-06-21 Joseph Myers <joseph@codesourcery.com>
4855
4856 * c.opt (lang-objc): Remove.
4857 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4858
a4c97feb
JR
48592010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
4860
4861 * c-opts.c: Include "tm_p.h".
4862
6e2f1956
JM
48632010-06-20 Joseph Myers <joseph@codesourcery.com>
4864
4865 * c-common.c (parse_optimize_options): Update call to
4866 decode_options.
4867
bc87224e
NF
48682010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4869
4870 * c-common.c (record_types_used_by_current_var_decl): Adjust for
4871 new type of types_used_by_cur_var_decl.
4872
b49cf425
JR
48732010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
4874
4875 PR bootstrap/44512
4876 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4877 for C++ standard compliance.
4878
59f9c2ed
JM
48792010-06-16 Jason Merrill <jason@redhat.com>
4880
4881 * c.opt: Add -Wnoexcept.
4882
33766b66
RG
48832010-06-16 Richard Guenther <rguenther@suse.de>
4884
4885 PR c/44555
4886 * c-common.c (c_common_truthvalue_conversion): Remove
4887 premature and wrong optimization concering ADDR_EXPRs.
4888
eff7e30c
AC
48892010-06-15 Arnaud Charlet <charlet@adacore.com>
4890
4891 * c-ada-spec.c (dump_sloc): Remove column info.
4892 (is_simple_enum): New function.
4893 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4894 enum types when relevant.
4895
6312e84d
MLI
48962010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4897
9faeb493 4898 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
4899 location.
4900
1cb42611
JM
49012010-06-10 Joseph Myers <joseph@codesourcery.com>
4902
4903 * c-opts.c (c_common_handle_option): Don't handle
4904 OPT_fshow_column.
4905
a9429e29
LB
49062010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4907
4908 * c-pragma.c (push_alignment): Use typed GC allocation.
4909 (handle_pragma_push_options): Likewise.
4910
4911 * c-common.c (parse_optimize_options): Likewise.
4912
4913 * c-common.h (struct sorted_fields_type): Add variable_size GTY
4914 option.
4915
5498f011
JM
49162010-06-07 Joseph Myers <joseph@codesourcery.com>
4917
4918 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4919 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4920 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4921 flag_signed_bitfields, warn_strict_null_sentinel,
4922 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4923 flag_gen_declaration, flag_no_gnu_keywords,
4924 flag_implement_inlines, flag_implicit_templates,
4925 flag_implicit_inline_templates, flag_optional_diags,
4926 flag_elide_constructors, flag_default_inline, flag_rtti,
4927 flag_conserve_space, flag_access_control, flag_check_new,
4928 flag_new_for_scope, flag_weak, flag_working_directory,
4929 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4930 flag_enforce_eh_specs, flag_threadsafe_statics,
4931 flag_pretty_templates): Remove.
4932 * c-common.h (flag_preprocess_only, flag_nil_receivers,
4933 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4934 flag_replace_objc_classes, flag_undef, flag_no_builtin,
4935 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4936 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4937 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4938 flag_no_gnu_keywords, flag_implement_inlines,
4939 flag_implicit_templates, flag_implicit_inline_templates,
4940 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4941 flag_rtti, flag_conserve_space, flag_access_control,
4942 flag_check_new, flag_new_for_scope, flag_weak,
4943 flag_working_directory, flag_use_cxa_atexit,
4944 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4945 flag_threadsafe_statics, flag_pretty_templates,
4946 warn_strict_null_sentinel): Remove.
4947 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4948 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4949 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4950 fimplicit-inline-templates, fimplicit-templates,
4951 flax-vector-conversions, fms-extensions, fnil-receivers,
4952 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4953 frtti, fshort-double, fshort-enums, fshort-wchar,
4954 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4955 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4956 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4957 gen-decls, undef): Use Var.
4958 (fdefault-inline, foptional-diags): Document as doing nothing.
4959 * c-opts.c (c_common_handle_option): Remove cases for options now
4960 using Var. Mark ignored options as such.
4961
39dabefd
SB
49622010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4963
9faeb493 4964 * c-common.c: Moved to here from parent directory.
39dabefd
SB
4965 * c-common.def: Likewise.
4966 * c-common.h: Likewise.
4967 * c-cppbuiltin.c: Likewise.
4968 * c-dump.c: Likewise.
4969 * c-format.c: Likewise.
4970 * c-format.h : Likewise.
4971 * c-gimplify.c: Likewise.
4972 * c-lex.c: Likewise.
4973 * c-omp.c: Likewise.
4974 * c.opt: Likewise.
4975 * c-opts.c: Likewise.
4976 * c-pch.c: Likewise.
4977 * c-ppoutput.c: Likewise.
4978 * c-pragma.c: Likewise.
4979 * c-pragma.h: Likewise.
4980 * c-pretty-print.c: Likewise.
4981 * c-pretty-print.h: Likewise.
4982 * c-semantics.c: Likewise.
4983 * stub-objc.c: Likewise.
4984
4985 * c-common.c: Include gt-c-family-c-common.h.
4986 * c-pragma.c: Include gt-c-family-c-pragma.h.
4987\f
5624e564 4988Copyright (C) 2010-2015 Free Software Foundation, Inc.
39dabefd
SB
4989
4990Copying and distribution of this file, with or without modification,
4991are permitted in any medium without royalty provided the copyright
4992notice and this notice are preserved.