]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
c-common.h (enum cxx_dialect): Add cxx_unset.
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
381bf11e
JM
12015-05-09 Jason Merrill <jason@redhat.com>
2
129211bc
JM
3 * c-common.h (enum cxx_dialect): Add cxx_unset.
4 * c-common.c (cxx_dialect): Initialize to cxx_unset.
5 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
6
381bf11e
JM
7 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
8 (std=gnu++0x): Mark as Undocumented.
9 (std=gnu++1y): Add deprecated message.
10
fe191308
JM
112015-05-08 Jason Merrill <jason@redhat.com>
12
765189ff
JM
13 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
14 * c-opts.c: Adjust.
15
fe191308
JM
16 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
17
755e528f
MP
182015-05-08 Marek Polacek <polacek@redhat.com>
19
20 PR c/64918
21 * c.opt (Woverride-init-side-effects): New option.
22
0173bd2a
MP
232015-05-07 Marek Polacek <polacek@redhat.com>
24
25 PR c/65179
26 * c-common.c (c_fully_fold_internal): Warn when left shifting a
27 negative value.
28 * c.opt (Wshift-negative-value): New option.
29 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
30 when -Wextra and C99/C++11 mode.
31
e0f0d3b9
MP
322015-05-07 Marek Polacek <polacek@redhat.com>
33 Martin Uecker <uecker@eecs.berkeley.edu>
34
35 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
36 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
37
8243e2a9
JM
382015-05-05 Jason Merrill <jason@redhat.com>
39
40 * c.opt (Wterminate): New.
41
577cd070
MP
422015-04-30 Marek Polacek <polacek@redhat.com>
43
44 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
45 require that the non-constant be of a boolean type.
46
0373796b
JT
472015-04-29 Josh Triplett <josh@joshtriplett.org>
48
e0f0d3b9
MP
49 * c-common.c (handle_section_attribute): Refactor to reduce
50 nesting and distinguish between error cases.
0373796b 51
716c0ba6
MP
522015-04-29 Marek Polacek <polacek@redhat.com>
53
54 PR c/64610
55 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
56 with 0/1.
57
8848828b
JJ
582015-04-29 Jakub Jelinek <jakub@redhat.com>
59
60 * c-common.h (omp_clause_mask): Unconditionally define as a class.
61 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
62 HOST_BITS_PER_WIDE_INT.
63
ecd0e562
TV
642015-04-28 Tom de Vries <tom@codesourcery.com>
65
66 PR tree-optimization/65887
67 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
68
2a877204 692015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 70 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
71
72 * c-ada-spec.c (in_function): Delete.
73 (dump_generic_ada_node): Do not change in_function and remove the
74 redundant code dealing with it.
75 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
76 (print_ada_methods): Output the static member functions in a nested
77 package after the regular methods as well as associated renamings.
78
4853031e
MP
792015-04-24 Marek Polacek <polacek@redhat.com>
80
81 PR c/65830
82 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
83 and OPT_Wshift_count_overflow.
84
8c2b7f79
MP
85 PR c/63357
86 * c-common.c (warn_logical_operator): Warn if the operands have the
87 same expressions.
88
b8787813
MP
892015-04-24 Marek Polacek <polacek@redhat.com>
90
91 PR c/61534
92 * c-common.c (warn_logical_operator): Bail if either operand comes
93 from a macro expansion.
94
8fba1830
BRF
952015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
96
97 PR target/55143
98 * c-common.c (c_default_pointer_mode): Add definition.
99 * c-common.h (c_default_pointer_mode): Add declaration.
100
17958621
JJ
1012015-03-11 Jakub Jelinek <jakub@redhat.com>
102
103 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
104 on record_builtin_type argument.
105
7ccb1a11
JJ
1062015-03-10 Jakub Jelinek <jakub@redhat.com>
107
108 PR c/65120
109 * c-common.c (warn_logical_not_parentheses): Don't warn for
110 !x == 0 or !x != 0.
111
04fd785e
MP
1122015-03-07 Marek Polacek <polacek@redhat.com>
113
114 PR sanitizer/65280
115 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
116 before trying to figure out whether we have a flexible array member.
117
a4e26206
EB
1182015-03-06 Eric Botcazou <ebotcazou@adacore.com>
119 Jonathan Wakely <jwakely.gcc@gmail.com>
120
121 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
122
0d2489f4
EB
1232015-03-05 Eric Botcazou <ebotcazou@adacore.com>
124
125 PR ada/65319
126 * c-ada-spec.c (print_destructor): Remove obsolete code.
127
83ed54d7
EB
1282015-03-01 Eric Botcazou <ebotcazou@adacore.com>
129
130 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
131 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
132 DECL_TEMPLATE_RESULT emulations.
133 (dump_ada_template)): Add guard for TYPE_METHODS.
134
7631f0e2
MP
1352015-02-27 Marek Polacek <polacek@redhat.com>
136
137 PR c/65040
138 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
139
d1783ae5
KT
1402015-02-27 Kai Tietz <ktietz@redhat.com>
141
142 PR c/35330
143 * c-pragma.c (handle_pragma_weak): Do not try to create
144 weak/alias of declarations not being function, or variable
145 declarations.
146
56a9f6bc
TS
1472015-02-24 Thomas Schwinge <thomas@codesourcery.com>
148
149 PR libgomp/64625
150 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
151 Remove macros.
152 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
153
3d5cb23d
MP
1542015-02-16 Marek Polacek <polacek@redhat.com>
155
156 PR c/65066
157 * c-format.c (check_format_types): Handle null param.
158
fa008882
MP
1592015-02-13 Marek Polacek <polacek@redhat.com>
160
161 PR c/65040
162 * c-format.c (check_format_types): Don't warn about different
163 signedness if the original value is in the range of WANTED_TYPE.
164
785f21af
JM
1652015-02-12 Jason Merrill <jason@redhat.com>
166
167 PR c++/64956
168 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
169 to the current highest version.
170 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
171
4886ec8e
JJ
1722015-02-04 Jakub Jelinek <jakub@redhat.com>
173
174 PR c/64824
175 PR c/64868
176 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
177 instead of RDIV_EXPR. Use build_binary_op instead of
178 build2_loc.
179
40fecdd6
JM
1802015-01-30 Joseph Myers <joseph@codesourcery.com>
181
182 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
183 to pass input_location as first argument.
184
a0c88d06
TV
1852015-01-23 Tom de Vries <tom@codesourcery.com>
186
187 PR libgomp/64672
188 * c.opt (fopenacc): Mark as LTO option.
189
1506ae0e
TV
1902015-01-23 Tom de Vries <tom@codesourcery.com>
191
192 PR libgomp/64707
193 * c.opt (fopenmp): Mark as LTO option.
194
31be63ab
JJ
1952015-01-21 Jakub Jelinek <jakub@redhat.com>
196
197 PR c/63307
198 * cilk.c (fill_decls_vec): Only put decls into vector v.
199 (compare_decls): Fix up formatting.
200
2012015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
202
203 PR c/63307
204 * cilk.c: Include vec.h.
205 (struct cilk_decls): New structure.
206 (wrapper_parm_cb): Split this function to...
207 (fill_decls_vec): ...this...
208 (create_parm_list): ...and this.
209 (compare_decls): New function.
210 (for_local_cb): Remove.
211 (wrapper_local_cb): Ditto.
212 (build_wrapper_type): For now first traverse and fill vector of
213 declarations then sort it and then deal with sorted vector.
214 (cilk_outline): Ditto.
215 (declare_one_free_variable): Ditto.
216
6875457f
JM
2172015-01-21 Jason Merrill <jason@redhat.com>
218
219 PR c++/64629
220 * c-format.c (check_format_arg): Call decl_constant_value.
221
185c9e56
ML
2222015-01-19 Martin Liska <mliska@suse.cz>
223
224 * c-common.c (handle_noicf_attribute): New function.
225
41dbbb37
TS
2262015-01-15 Thomas Schwinge <thomas@codesourcery.com>
227 Bernd Schmidt <bernds@codesourcery.com>
228 James Norris <jnorris@codesourcery.com>
229 Cesar Philippidis <cesar@codesourcery.com>
230 Ilmir Usmanov <i.usmanov@samsung.com>
231 Jakub Jelinek <jakub@redhat.com>
232
233 * c.opt (fopenacc): New option.
234 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
235 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
236 New macros.
237 * c-common.h (c_finish_oacc_wait): New prototype.
238 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
239 (c_finish_oacc_wait): New function.
240 * c-pragma.c (oacc_pragmas): New variable.
241 (c_pp_lookup_pragma, init_pragma): Handle it.
242 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
243 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
244 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
245 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
246 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
247 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
248 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
249 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
250 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
251 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
252 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
253 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
254 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
255 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
256 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
257 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
258 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
259 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
260 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
261 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
262 PRAGMA_OACC_CLAUSE_WORKER.
263
5434dc07
MD
2642015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
265
266 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
267 for the new option fstack-protector_explicit.
268 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
269 (handle_stack_protect_attribute): New function.
270
de1b5c17
MU
2712015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
272
273 * c.opt: New option -Warray-bounds=.
274
adfac8df
JJ
2752015-01-09 Michael Collison <michael.collison@linaro.org>
276
277 * array-notation-common.c: Include hash-set.h, machmode.h,
278 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
279 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
280 * c-ada-spec.c: Ditto.
281 * c-cilkplus.c: Ditto.
282 * c-common.c: Include input.h due to flattening of tree.h.
283 Define macro GCC_C_COMMON_C.
284 * c-common.h: Flatten tree.h header files into c-common.h.
285 Remove include of tree-core.h.
286 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
287 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
288 fold-const.h, wide-int.h, and inchash.h due to
289 flattening of tree.h.
290 * c-dump.c: Ditto.
291 * c-format.c: Flatten tree.h header files into c-common.h.
292 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
293 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
294 fold-const.h, wide-int.h, and inchash.h due to
295 flattening of tree.h.
296 * c-dump.c: Include hash-set.h, machmode.h,
297 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
298 fold-const.h, wide-int.h, and inchash.h due to
299 flattening of tree.h.
300 * c-format.c: Include hash-set.h, machmode.h,
301 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
302 fold-const.h, wide-int.h, inchash.h and real.h due to
303 flattening of tree.h.
304 * c-gimplify.c: Include hash-set.h, machmode.h,
305 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
306 fold-const.h, wide-int.h, and inchash.h due to
307 flattening of tree.h.
308 * cilk.c: Ditto.
309 * c-lex.c: Ditto.
310 * c-omp.c: Ditto.
311 * c-opts.c: Ditto.
312 * c-pch.c: Ditto.
313 * c-ppoutput.c: Ditto.
314 * c-pragma.c: Ditto.
315 * c-pretty-print.c: Ditto.
316 * c-semantics.c: Ditto.
317 * c-ubsan.c: Ditto.
318 * stub-objc.c: Ditto.
319
f5481fc4
JM
3202015-01-08 Jason Merrill <jason@redhat.com>
321
322 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
323 do_ubsan_in_current_function.
324 (ubsan_maybe_instrument_reference_or_call): Likewise.
325 * c-ubsan.h: Declare it.
326
de35aa66
MS
3272015-01-08 Mike Stump <mikestump@comcast.net>
328
329 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
330
4a9a42ab
MP
3312015-01-07 Marek Polacek <polacek@redhat.com>
332
333 PR c/64440
334 * c-common.c (c_fully_fold_internal): Warn for division and modulo
335 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
336
2f42e5de
TS
3372015-01-05 Trevor Saunders <tsaunders@mozilla.com>
338
339 PR c++/31397
340 * c.opt (Wsuggest-override): New option.
341
5624e564
JJ
3422015-01-05 Jakub Jelinek <jakub@redhat.com>
343
344 Update copyright years.
345
5bd012f8
MP
3462015-01-05 Marek Polacek <polacek@redhat.com>
347
348 PR c/64423
349 * c-common.c (warn_array_subscript_with_type_char): Add location_t
350 parameter. Use it.
351 * c-common.h (warn_array_subscript_with_type_char): Update
352 declaration.
353
a7fa8d18
ESR
3542014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
355
356 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
357 Control macro with flag_sized_deallocation.
358
768952be
MU
3592014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
360
361 * c.opt (Wdiscarded-array-qualifiers): New option.
362
1f8d3e84
JJ
3632014-12-19 Jakub Jelinek <jakub@redhat.com>
364
365 PR preprocessor/63831
366 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
367 and __has_cpp_attribute here.
368 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
369 c_common_has_attribute.
370 * c-common.h (c_common_has_attribute): New prototype.
371 * c-lex.c (init_c_lex): Set cb->has_attribute to
372 c_common_has_attribute instead of cb_has_attribute.
373 (get_token_no_padding): New function.
374 (cb_has_attribute): Renamed to ...
375 (c_common_has_attribute): ... this. No longer static. Use
376 get_token_no_padding, require ()s, don't build TREE_LIST
377 unnecessarily, fix up formatting, adjust diagnostics, call
378 init_attributes.
379
20b06add
JM
3802014-12-15 Jason Merrill <jason@redhat.com>
381
382 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
383 (-Wsized-deallocation): New.
384 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
385 to on in C++14 and up.
386
94a073b2
JM
3872014-12-11 Jason Merrill <jason@redhat.com>
388
acaa5911
JM
389 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
390
94a073b2
JM
391 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
392 we aren't complaining about VLAs.
393
7fb66c15
MP
3942014-12-06 Marek Polacek <polacek@redhat.com>
395
396 PR tree-optimization/64183
397 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
398 shift-expression if it is integer_type_node. Use types_compatible_p.
399
b731b390
JJ
4002014-11-29 Jakub Jelinek <jakub@redhat.com>
401
402 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
403 last argument from create_tmp_var_raw and create_tmp_var calls.
404 * cilk.c (gimplify_cilk_spawn): Likewise.
405 * c-omp.c (c_finish_omp_atomic): Likewise.
406
6a4da643
MP
4072014-11-28 Marek Polacek <polacek@redhat.com>
408
409 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
410 instead of unsigned_type_node.
411
541e35a6
MP
4122014-11-28 Marek Polacek <polacek@redhat.com>
413
414 PR c/63862
415 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
416 to op1_utype.
417 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
418 expression to unsigned_type_node.
419
dcc97066
MW
4202014-11-20 Mark Wielaard <mjw@redhat.com>
421
422 PR debug/38757
423 * c-opts.c (set_std_c89): Set lang_hooks.name.
424 (set_std_c99): Likewise.
425 (set_std_c11): Likewise.
426 (set_std_cxx98): Likewise.
427 (set_std_cxx11): Likewise.
428 (set_std_cxx14): Likewise.
429 (set_std_cxx1z): Likewise.
430
aa7da51a
JJ
4312014-11-21 Jakub Jelinek <jakub@redhat.com>
432
433 PR target/63764
434 * c-common.h (convert_vector_to_pointer_for_subscript): Change
435 return type to bool.
009a3480 436 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
437 (convert_vector_to_pointer_for_subscript): Change return type to
438 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
439 and copy it into a TARGET_EXPR and use that instead of *vecp
440 directly.
441
538dd0b7
DM
4422014-11-19 David Malcolm <dmalcolm@redhat.com>
443
444 Merger of git branch "gimple-classes-v2-option-3".
445 * ChangeLog.gimple-classes: New.
446 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
447 from being just a vec<gimple> to a vec<gbind *>.
448
c39a5e99
JJ
4492014-11-18 Jakub Jelinek <jakub@redhat.com>
450
451 PR sanitizer/63813
452 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
453 argument to ptype, set type to TREE_TYPE (ptype). Don't call
454 get_pointer_alignment for non-pointers. Use ptype, or if it is
455 reference type, corresponding pointer type, as type of kind
456 argument.
457 (ubsan_maybe_instrument_reference,
458 ubsan_maybe_instrument_member_call): Adjust callers.
459
8537a4a9
MP
4602014-11-15 Marek Polacek <polacek@redhat.com>
461
462 PR middle-end/63884
463 * array-notation-common.c (is_sec_implicit_index_fn): Return false
464 for NULL fndecl.
465 (extract_array_notation_exprs): Return for NULL node.
466
2079956a
JM
4672014-11-12 Joseph Myers <joseph@codesourcery.com>
468
469 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
470 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
471
1304953e
JJ
4722014-11-12 Jakub Jelinek <jakub@redhat.com>
473
474 PR c/59708
475 * c-common.c (check_builtin_function_arguments): Handle
476 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
477
e5e44252
AK
4782014-11-10 Andi Kleen <ak@linux.intel.com>
479
480 PR c/60804
481 * c-common.h (check_no_cilk): Declare.
482 * cilk.c (get_error_location): New function.
483 (check_no_cilk): Dito.
484
e64b984d
AK
4852014-11-10 Andi Kleen <ak@linux.intel.com>
486
487 * cilk.c (recognize_spawn): Use expression location
488 for error message.
489
13c21655
PC
4902014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
491
492 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
493
42fd12b1
ESR
4942014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
495
496 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
497 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
498 (__cpp_range_based_for, __cpp_initializer_lists,
499 __cpp_delegating_constructors, __cpp_nsdmi,
500 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
501 for C++11; (__cpp_attribute_deprecated): Remove in favor of
502 __has_cpp_attribute.
503 * c-lex.c (cb_has_attribute): New callback CPP function;
504 (init_c_lex): Set has_attribute callback.
505
6f450181
RB
5062014-11-04 Richard Biener <rguenther@suse.de>
507
508 * c-common.c (shorten_compare): Do not shorten mixed
509 DFP and non-DFP compares.
510
26f0e1d6
ESR
5112014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
512
513 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
514 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
515 Commentary and rearrangement of tests.
516 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
517 Commentary and rearrangement of tests.
518 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
519 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
520
ef4bddc2
RS
5212014-10-29 Richard Sandiford <richard.sandiford@arm.com>
522
523 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
524 enum from machine_mode.
525
c582198b
AM
5262014-10-28 Andrew MacLeod <amacleod@redhat.com>
527
adfac8df
JJ
528 * c-common.c: Adjust include files.
529 * c-gimplify.c: Ditto.
530 * cilk.c: Ditto.
531 * c-pragma.c: Ditto.
532 * c-ubsan.c: Ditto.
c582198b 533
60393bbc
AM
5342014-10-27 Andrew MacLeod <amacleod@redhat.com>
535
536 * c-gimplify.c: Adjust include files.
537
d723bb7c
MLI
5382014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
539
540 PR c++/53061
541 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
542 c_common_initialize_diagnostics.
543 * c-common.h: Likewise.
544
90f3520e
MP
5452014-10-24 Marek Polacek <polacek@redhat.com>
546
547 PR c/56980
548 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
549 print "struct"/"union"/"enum" for typedefed names.
550
59d7607a
MP
5512014-10-23 Marek Polacek <polacek@redhat.com>
552
553 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
554 in unsigned type.
555
d95a2703
JJ
5562014-10-22 Jakub Jelinek <jakub@redhat.com>
557 Yury Gribov <y.gribov@samsung.com>
558
559 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
560 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
561 instead of flag_sanitize_recover as bool flag.
562
8e6ef852
KY
5632014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
564
565 * cilk.c: Revert previous change.
566
948cf550
IZ
5672014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
568
569 PR c/63307
570 * cilk.c: Include vec.h.
571 (struct cilk_decls): New structure.
572 (wrapper_parm_cb): Split this function to...
573 (fill_decls_vec): ...this...
574 (create_parm_list): ...and this.
575 (compare_decls): New function.
576 (for_local_cb): Remove.
577 (wrapper_local_cb): Ditto.
578 (build_wrapper_type): For now first traverse and fill vector of
579 declarations then sort it and then deal with sorted vector.
580 (cilk_outline): Ditto.
581 (declare_one_free_variable): Ditto.
582
92574c7c
MP
5832014-10-17 Marek Polacek <polacek@redhat.com>
584
585 * c-opts.c (c_common_post_options): Set warn_implicit_int.
586 * c.opt (Wimplicit-int): Initialize to -1.
587
83685514
AM
5882014-10-16 Andrew MacLeod <amacleod@redhat.com>
589
590 * c-pragma.c: Adjust include files.
591 * c-semantics.c: Likewise.
592
5b8300ea
DD
5932014-10-16 DJ Delorie <dj@redhat.com>
594
595 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
596 multiples of bytes.
597
5f83e90b
JM
5982014-10-14 Jason Merrill <jason@redhat.com>
599
600 PR c++/63455
601 * c-common.h (CPP_PREPARSED_EXPR): New.
602 (N_CP_TTYPES): Adjust.
603
d73326ca
MP
6042014-10-15 Marek Polacek <polacek@redhat.com>
605
606 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
607
78a7c317
DD
6082014-10-14 DJ Delorie <dj@redhat.com>
609
610 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
611 types, not just __int128.
612 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
613 types, not just __int128.
614 (cpp_atomic_builtins): Round pointer sizes up.
615 (type_suffix): Use type precision, not specific types.
616 * c-common.c (c_common_reswords): Remove __int128 special case.
617 (c_common_type_for_size): Check for all __intN types, not just
618 __int128.
619 (c_common_type_for_mode): Likewise.
620 (c_common_signed_or_unsigned_type): Likewise.
621 (c_build_bitfield_integer_type): Likewise.
622 (c_common_nodes_and_builtins): Likewise.
623 (keyword_begins_type_specifier): Likewise.
624 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
625 __intN variants.
626
2a22f99c
TS
6272014-10-12 Trevor Saunders <tsaunders@mozilla.com>
628
629 * c-common.c: Use hash_table instead of hashtab.
630
2a8ef767
ESR
6312014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
632
adfac8df 633 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
634 C++11 section.
635
3c9aabbd
MG
6362014-10-03 Marc Glisse <marc.glisse@inria.fr>
637
638 PR c++/54427
639 PR c++/57198
640 PR c++/58845
641 * c-common.c (warn_logical_operator): Punt for vectors.
642
a15f7cb8
ESR
6432014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
644
645 Implement SD-6: SG10 Feature Test Recommendations
646 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
647 macros and the __has_header macro.
648
8d0cf15e
JM
6492014-09-30 Jason Merrill <jason@redhat.com>
650
dd5d5481
JM
651 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
652 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
653 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
654
b752325e
JM
655 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
656 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
657
8d0cf15e
JM
658 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
659 * c-common.c (c_common_reswords): Remove __is_convertible_to.
660
083e891e
MP
6612014-09-24 Marek Polacek <polacek@redhat.com>
662
663 PR c/61405
664 PR c/53874
665 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
666
7861b648
AK
6672014-09-23 Andi Kleen <ak@linux.intel.com>
668
669 * c-common.c (handle_no_reorder_attribute): New function.
670 (c_common_attribute_table): Add no_reorder attribute.
671
9a79452d
JM
6722014-09-22 Joseph Myers <joseph@codesourcery.com>
673
674 * c-cppbuiltin.c (c_cpp_builtins): Define
675 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
676 modes.
677
dd69f047
JM
6782014-09-18 Joseph Myers <joseph@codesourcery.com>
679
680 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
681 for supported floating-point modes.
682
737a4826
MLI
6832014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
684
685 * c.opt (Wpsabi): Use LangEnabledBy.
686 * c-opts.c (c_common_handle_option): Do not handle here.
687
8cc4b7a2
JM
6882014-09-12 Joseph Myers <joseph@codesourcery.com>
689
690 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
691 macros for floating-point modes.
692
179b5a55
MG
6932014-09-11 Marc Glisse <marc.glisse@inria.fr>
694
695 PR target/58757
696 * c-cppbuiltin.c (builtin_define_float_constants): Correct
697 __*_DENORM_MIN__ without denormals.
698
570a11fe
JJ
6992014-09-10 Jakub Jelinek <jakub@redhat.com>
700
701 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
702 ubsan_instrument_vla, ubsan_instrument_return): Adjust
703 ubsan_create_data callers.
704 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
705 index is constant or BIT_AND_EXPR with constant mask and is
706 small enough for the bound.
707 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
708 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
709
b559c810
MLI
7102014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
711
712 * c.opt: Add CppReason to various flags.
713 (Wdate-time): Re-sort.
714 * c-common.c: Include c-common.h earlier.
715 (struct reason_option_codes_t): Delete.
716 (c_option_controlling_cpp_error): Prefix global type and struct
717 with cpp_.
718
1ef33fd4
MLI
7192014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
720
721 * c.opt (Wnormalized): New.
722 (Wnormalized=): Use Enum and Reject Negative.
723 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
724
66bb34c0
JM
7252014-09-08 Joseph Myers <joseph@codesourcery.com>
726
727 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
728 digits of floating-point modes if -fbuilding-libgcc.
729
53d68b9f
JM
7302014-09-05 Joseph Myers <joseph@codesourcery.com>
731
732 * c-cppbuiltin.c (c_cpp_builtins): Also define
733 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
734 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
735 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
736 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
737 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
738 __LIBGCC_STACK_GROWS_DOWNWARD__,
739 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
740 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
741 __LIBGCC_DWARF_FRAME_REGISTERS__,
742 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
743 __LIBGCC_STACK_POINTER_REGNUM__ and
744 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
745 (builtin_define_with_value): Handle backslash-escaping in string
746 macro values.
747
f65586dc
RB
7482014-09-05 Richard Biener <rguenther@suse.de>
749
750 PR middle-end/63148
751 * c-format.c (check_format_arg): Properly handle
752 effectively signed POINTER_PLUS_EXPR offset.
753
2b71f4a4
MLI
7542014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
755
756 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
757 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
758 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
759 and Init.
760 * c-opts.c (c_common_handle_option): Do not handle here.
761 (sanitize_cpp_opts): Likewise.
762 * c-common.c (struct reason_option_codes_t): Handle
763 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
764
d2e4feca
MP
7652014-09-03 Marek Polacek <polacek@redhat.com>
766
767 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
768
9a771876
JJ
7692014-09-02 Jakub Jelinek <jakub@redhat.com>
770 Balaji V. Iyer <balaji.v.iyer@intel.com>
771 Igor Zamyatin <igor.zamyatin@intel.com>
772
773 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
774 * c-common.c (c_common_reswords): Added _Cilk_for.
775 * c-common.h (enum rid): Added RID_CILK_FOR.
776 (cilk_for_number_of_iterations): Add declaration.
777 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
778 CILK_FOR.
779 * c-pragma.c (init_pragma): Register "grainsize" pragma.
780 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
781
81b5d104
MLI
7822014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
783
784 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
785 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
786 Wundef): Use CPP, Var and Init.
787 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
788
b753b37b
MLI
7892014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
790
791 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
792 * c-opts.c (c_common_handle_option): Do not handle here.
793
028aee17
JM
7942014-08-25 Jason Merrill <jason@redhat.com>
795
796 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
797 -std=c++14 and -std=gnu++14, rather than the reverse.
798 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
799 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
800 * c-common.h (cxx_dialect): Remove cxx1y.
801
e4276ba5
ESR
8022014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
803
804 * c-common.h (enum cxx_dialect): Add cxx14.
805 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
806 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
807 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
808
a545cacd
JM
8092014-08-22 Jason Merrill <jason@redhat.com>
810
811 * c.opt (std=gnu++17): Fix alias.
812
59ea0364
MP
8132014-08-22 Marek Polacek <polacek@redhat.com>
814
815 PR c++/62199
816 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
817 check for vector types. Drop LHS argument.
818 * c-common.h (warn_logical_not_parentheses): Adjust.
819
596e808c
MLI
8202014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
821
822 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
823 (Wmultichar): Likewise.
824 (Wdate-time): Use C-family languages instead of Common. Use CPP
825 and Var.
826 * c-opts.c (c_common_handle_option): Do not handle the above
827 options here.
828 (sanitize_cpp_opts): Likewise.
829
18767f65
MLI
8302014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
831
832 PR fortran/44054
833 * c-opts.c: Include tree-diagnostics.h.
834 (c_diagnostic_finalizer): New.
835 (c_common_initialize_diagnostics): Use it.
836
b4413594
MLI
8372014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
838
839 PR preprocessor/51303
840 * c-common.c (struct reason_option_codes_t option_codes):
841 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
842
43f9a13c
MLI
8432014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
844
845 PR c/60975
846 PR c/53063
847 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
848 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
849 (c_common_post_options): Call init_global_opts_from_cpp.
850 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
851
04159acf
MP
8522014-08-19 Marek Polacek <polacek@redhat.com>
853
854 PR c++/62153
855 * c-common.c (maybe_warn_bool_compare): New function.
856 * c-common.h (maybe_warn_bool_compare): Declare.
857 * c.opt (Wbool-compare): New option.
858
35aff4fb
MP
8592014-08-19 Marek Polacek <polacek@redhat.com>
860
861 * c.opt (Wc99-c11-compat): New option.
862
177cce46
MP
8632014-08-19 Marek Polacek <polacek@redhat.com>
864
865 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
866 to warn_c90_c99_compat.
867 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
868 to -1.
869
6ae9194f
MLI
8702014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
871 Steven Bosscher <steven@gcc.gnu.org>
872
873 PR c/52952
874 * c-format.c: Add extra_arg_loc and format_string_loc to struct
875 format_check_results.
876 (check_function_format): Use true and add comment for boolean
877 argument.
878 (finish_dollar_format_checking): Use explicit location when warning.
879 (check_format_info): Likewise.
880 (check_format_arg): Set extra_arg_loc and format_string_loc.
881 (check_format_info_main): Use explicit location when warning.
882 (check_format_types): Pass explicit location.
883 (format_type_warning): Likewise.
884
8e54f6d3
MLI
8852014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
886
887 PR fortran/44054
888 * c-format.c: Handle Fortran flags.
889
cd4e76fc
IZ
8902014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
891
892 PR other/61962
893 * array-notation-common.c (find_rank): Added handling for other
894 types of references.
895
f3bede71
MP
8962014-08-10 Marek Polacek <polacek@redhat.com>
897
898 PR c/51849
899 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
900 * c.opt (Wc90-c99-compat): Add option.
901
9f25a338
TS
9022014-08-07 Trevor Saunders <tsaunders@mozilla.com>
903
904 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
905
62e4eb35
MP
9062014-08-03 Marek Polacek <polacek@redhat.com>
907
908 * c-common.c (check_case_value): Add location_t parameter. Use it.
909 (c_add_case_label): Pass loc to check_case_value.
910
b787e7a2
TS
9112014-08-02 Trevor Saunders <tsaunders@mozilla.com>
912
913 * cilk.c: Use hash_map instead of pointer_map.
914
6e2830c3
TS
9152014-08-02 Trevor Saunders <tsaunders@mozilla.com>
916
917 * c-gimplify.c: Use hash_set instead of pointer_set.
918
a7ee52fb
IZ
9192014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
920
921 PR middle-end/61455
922 * array-notation-common.c (extract_array_notation_exprs): Handling
923 of DECL_EXPR added.
924
944fa280
JJ
9252014-08-01 Jakub Jelinek <jakub@redhat.com>
926
927 * c-common.h (min_align_of_type): Removed prototype.
928 * c-common.c (min_align_of_type): Removed.
929 * c-ubsan.h (ubsan_maybe_instrument_reference,
930 ubsan_maybe_instrument_member_call): New prototypes.
931 * c-ubsan.c: Include stor-layout.h and builtins.h.
932 (ubsan_maybe_instrument_reference_or_call,
933 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
934 functions.
935
b4dfdc11
MG
9362014-07-31 Marc Glisse <marc.glisse@inria.fr>
937
938 PR c++/60517
939 * c.opt (-Wreturn-local-addr): Move to common.opt.
940
a41844e5
JM
9412014-07-30 Jason Merrill <jason@redhat.com>
942
943 PR c++/61659
944 PR c++/61687
945 Revert:
946 * c.opt (-fuse-all-virtuals): New.
947
976d5a22
TT
9482014-07-30 Tom Tromey <tromey@redhat.com>
949
950 PR c/59855
951 * c.opt (Wdesignated-init): New option.
952 * c-common.c (c_common_attribute_table): Add "designated_init".
953 (handle_designated_init): New function.
954
cdc94aca
MP
9552014-07-24 Marek Polacek <polacek@redhat.com>
956
957 PR c/57653
958 * c-opts.c (c_finish_options): If -imacros is in effect, return.
959
f41373b6
DS
9602014-07-16 Dodji Seketeli <dodji@redhat.com>
961
962 PR preprocessor/60723 - missing system-ness marks for macro tokens
963 * c-ppoutput.c (struct print::prev_was_system_token): New data
964 member.
965 (init_pp_output): Initialize it.
966 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
967 (do_line_change): Return a flag saying if a line marker was
968 emitted or not.
969 (scan_translation_unit): Detect if the system-ness of the token we
970 are about to emit is different from the one of the previously
971 emitted token. If so, emit a line marker. Avoid emitting useless
972 adjacent line markers. Avoid emitting line markers for tokens
973 originating from the expansion of built-in macros.
974 (scan_translation_unit_directives_only): Adjust.
975
4d661eaa
MP
9762014-07-15 Marek Polacek <polacek@redhat.com>
977
978 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
979 TYPE_MAX_VALUE is NULL.
980
b108f48f
JJ
9812014-07-14 Jakub Jelinek <jakub@redhat.com>
982
983 PR middle-end/61294
984 * c.opt (Wmemset-transposed-args): New warning.
985
c0221884
JM
9862014-07-10 Jason Merrill <jason@redhat.com>
987
988 PR c++/61659
989 PR c++/61687
990 * c.opt (-fuse-all-virtuals): New.
991
63dfbb95
RB
9922014-07-09 Richard Biener <rguenther@suse.de>
993
994 PR c-family/61741
995 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
996 using unsigned arithmetic if overflow does not wrap instead of
997 if overflow is undefined.
998
773ec47f
MP
9992014-07-06 Marek Polacek <polacek@redhat.com>
1000
1001 PR c/6940
1002 * c.opt (Wsizeof-array-argument): New option.
1003
00a7ba58
JJ
10042014-07-03 Jakub Jelinek <jakub@redhat.com>
1005
1006 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
1007 comments->count <= 1, as comments->entries might be NULL.
1008
52ec0ea3
MP
10092014-07-01 Marek Polacek <polacek@redhat.com>
1010
1011 * c.opt (Wint-conversion): New option.
1012
d5c3d343
MP
10132014-07-01 Marek Polacek <polacek@redhat.com>
1014
1015 PR c/58286
1016 * c.opt (Wincompatible-pointer-types): New option.
1017
6e7ceb17
PC
10182014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1019
1020 PR c++/51400
1021 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1022 Do not discard TYPE_QUALS of type.
1023
da73100b
JM
10242014-06-26 Jason Merrill <jason@redhat.com>
1025
1026 * c-common.h (enum cxx_dialect): Add cxx1z.
1027 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1028 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1029
08eedf75
TJ
10302014-06-26 Teresa Johnson <tejohnson@google.com>
1031
1032 * c-common.h (get_dump_info): Declare.
1033 * c-gimplify.c (c_genericize): Use saved dump files.
1034 * c-opts.c (c_common_parse_file): Begin and end dumps
1035 once around parsing invocation.
1036 (get_dump_info): New function.
1037
7b56b2f8
MP
10382014-06-23 Marek Polacek <polacek@redhat.com>
1039 Andrew MacLeod <amacleod@redhat.com>
1040
1041 PR c/61553
1042 * c-common.c (get_atomic_generic_size): Don't segfault if the
1043 type doesn't have a size.
1044
0e37a2f3
MP
10452014-06-20 Marek Polacek <polacek@redhat.com>
1046
1047 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1048 (ubsan_walk_array_refs_r): New function.
1049 (c_genericize): Instrument array bounds.
1050 * c-ubsan.c: Include "internal-fn.h".
1051 (ubsan_instrument_division): Mark instrumented arrays as having
1052 side effects. Adjust ubsan_type_descriptor call.
1053 (ubsan_instrument_shift): Likewise.
1054 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1055 (ubsan_instrument_bounds): New function.
1056 (ubsan_array_ref_instrumented_p): New function.
1057 (ubsan_maybe_instrument_array_ref): New function.
1058 * c-ubsan.h (ubsan_instrument_bounds): Declare.
1059 (ubsan_array_ref_instrumented_p): Declare.
1060 (ubsan_maybe_instrument_array_ref): Declare.
1061
10622014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
1063
1064 PR lto/61123
1065 * c.opt (fshort-enums): Add to LTO.
1066 * c.opt (fshort-wchar): Likewise.
1067
5c3d09f7
MP
10682014-06-16 Marek Polacek <polacek@redhat.com>
1069
1070 PR c/60439
1071 * c.opt (Wswitch-bool): Add Var.
1072
9cf32741
JJ
10732014-06-12 Jakub Jelinek <jakub@redhat.com>
1074
1075 PR middle-end/61486
1076 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1077 #pragma omp target teams or
1078 #pragma omp {,target }teams distribute simd.
1079
62984918
JM
10802014-06-12 Jason Merrill <jason@redhat.com>
1081
1082 * c.opt (Wabi=, fabi-compat-version): New.
1083 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1084 (c_common_post_options): Handle flag_abi_compat_version default.
1085 Disallow -fabi-compat-version=1.
1086 * c-common.h (abi_version_crosses): New.
1087
f961457f
JH
10882014-06-11 Jan Hubicka <hubicka@ucw.cz>
1089
adfac8df 1090 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
1091 section names that are no longer trees.
1092
92d28cbb
JJ
10932014-06-10 Jakub Jelinek <jakub@redhat.com>
1094
1095 PR fortran/60928
1096 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1097 (omp_pragmas): ... back here.
1098
742938c9
MP
10992014-06-05 Marek Polacek <polacek@redhat.com>
1100
1101 PR c/49706
1102 * c-common.c (warn_logical_not_parentheses): New function.
1103 * c-common.h (warn_logical_not_parentheses): Declare.
1104 * c.opt (Wlogical-not-parentheses): New option.
1105
9d548dfb
MP
11062014-06-04 Marek Polacek <polacek@redhat.com>
1107
1108 PR c/30020
1109 * c-common.c (check_case_bounds): Add location parameter.
1110 Use it.
1111 (c_add_case_label): Pass loc to check_case_bounds.
1112
fedfecef
MP
11132014-06-03 Marek Polacek <polacek@redhat.com>
1114
1115 PR c/60439
1116 * c.opt (Wswitch-bool): New option.
1117
f6a7cffc
TS
11182014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1119
040d18b6
TS
1120 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1121 Remove prototypes.
1122 (record_types_used_by_current_var_decl): Move prototype to where
1123 it belongs.
1124
f6a7cffc
TS
1125 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1126 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1127 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1128
632f2871
RS
11292014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1130
1131 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1132 * c-common.c (c_common_nodes_and_builtins): Don't initialize
1133 void_zero_node.
1134 * c-pretty-print.c (pp_c_void_constant): New function.
1135 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1136 (c_pretty_printer::expression): Handle VOID_CST.
1137 * cilk.c (extract_free_variables): Likewise.
1138 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1139 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1140
766090c2
TS
11412014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1142
1143 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1144 * c-pragma.c (push_alignment): Adjust.
1145 (handle_pragma_push_options): Likewise.
1146
661a0813
MP
11472014-05-09 Marek Polacek <polacek@redhat.com>
1148
1149 PR c/50459
1150 * c-common.c (check_user_alignment): Return -1 if alignment is error
1151 node.
1152 (handle_aligned_attribute): Don't call default_conversion on
1153 FUNCTION_DECLs.
1154 (handle_vector_size_attribute): Likewise.
1155 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1156 (handle_sentinel_attribute): Call default_conversion and allow even
1157 integral types as an argument.
1158
2793eeab
MP
11592014-05-08 Marek Polacek <polacek@redhat.com>
1160
1161 PR c/61053
1162 * c-common.c (min_align_of_type): New function factored out from...
1163 (c_sizeof_or_alignof_type): ...here.
1164 * c-common.h (min_align_of_type): Declare.
1165
f827930a
MP
11662014-05-08 Marek Polacek <polacek@redhat.com>
1167
1168 PR c/61077
1169 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1170 parameter type of main.
1171
ca49b74e
DD
11722014-05-07 DJ Delorie <dj@redhat.com>
1173
1174 * c-cppbuiltin.c (print_bits_of_hex): New.
1175 (builtin_define_type_minmax): Print values using hex so as not to
1176 require a pre-computed list of string values.
1177
1d60af08
KZ
11782014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1179 Mike Stump <mikestump@comcast.net>
1180 Richard Sandiford <rdsandiford@googlemail.com>
1181
1182 * c-ada-spec.c: Include wide-int.h.
1183 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1184 (dump_generic_ada_node): Use wide-int interfaces.
1185 * c-common.c: Include wide-int-print.h.
1186 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1187 (pointer_int_sum): Use wide-int interfaces.
1188 (c_common_nodes_and_builtins): Use make_int_cst.
1189 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1190 (handle_alloc_size_attribute): Use wide-int interfaces.
1191 (get_nonnull_operand): Likewise.
1192 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1193 * c-lex.c: Include wide-int.h.
1194 (narrowest_unsigned_type): Take a widest_int rather than two
1195 HOST_WIDE_INTs.
1196 (narrowest_signed_type): Likewise.
1197 (interpret_integer): Update accordingly. Use wide-int interfaces.
1198 (lex_charconst): Use wide-int interfaces.
1199 * c-pretty-print.c: Include wide-int.h.
1200 (pp_c_integer_constant): Use wide-int interfaces.
1201 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1202 INT_CST_LT_UNSIGNED.
1203
b15458be
RB
12042014-05-06 Richard Biener <rguenther@suse.de>
1205
1206 * c-opts.c (c_common_post_options): For -freestanding,
1207 -fno-hosted and -fno-builtin disable pattern recognition
1208 if not enabled explicitely.
1209
6577374e
MP
12102014-05-02 Marek Polacek <polacek@redhat.com>
1211
1212 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1213
d00887e8
MP
12142014-05-01 Marek Polacek <polacek@redhat.com>
1215
1216 PR c/43245
1217 * c.opt (Wdiscarded-qualifiers): Add.
1218
f8ed5150
MP
12192014-04-30 Marek Polacek <polacek@redhat.com>
1220
1221 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
1222 INT_MIN / -1 sanitization only for integer types.
1223
45484dcf
MP
12242014-04-25 Marek Polacek <polacek@redhat.com>
1225
1226 PR c/18079
1227 * c-common.c (handle_noinline_attribute): Warn if the attribute
1228 conflicts with always_inline attribute.
1229 (handle_always_inline_attribute): Warn if the attribute conflicts
1230 with noinline attribute.
1231
38e514c0
MP
12322014-04-25 Marek Polacek <polacek@redhat.com>
1233
1234 PR c/60156
1235 * c-common.c (check_main_parameter_types): Warn about variadic main.
1236
44875f92
MS
12372014-04-24 Mike Stump <mikestump@comcast.net>
1238
1239 * c.opt (Wshadow-ivar): Default to on.
1240
dcaaa5a0
DP
12412014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1242
1243 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1244
c07d7c02
MP
12452014-04-23 Marek Polacek <polacek@redhat.com>
1246
1247 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1248
1c33c9b7
JJ
12492014-04-22 Jakub Jelinek <jakub@redhat.com>
1250
1251 PR sanitizer/60275
1252 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1253 if flag_sanitize_undefined_trap_on_error.
1254 (ubsan_instrument_division, ubsan_instrument_shift,
1255 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1256 if !flag_sanitize_recover.
1257
793c625f
MG
12582014-04-22 Marc Glisse <marc.glisse@inria.fr>
1259
1260 PR libstdc++/43622
1261 * c-common.c (registered_builtin_types): Make non-static.
1262 * c-common.h (registered_builtin_types): Declare.
1263
b0f1bf36
RB
12642014-04-14 Richard Biener <rguenther@suse.de>
1265 Marc Glisse <marc.glisse@inria.fr>
1266
1267 PR c/60819
1268 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1269 apply may-alias the scalar pointer type when applicable.
1270
3b07fa4a
IZ
12712014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1272
1273 PR middle-end/60467
1274 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1275 as possible argument for Cilk_spawn.
1276
cbbd2b1c
TB
12772014-04-11 Tobias Burnus <burnus@net-b.de>
1278
1279 PR c/60194
1280 * c.opt (Wformat-signedness): Add
1281 * c-format.c(check_format_types): Use it.
1282
6415bd5d
JM
12832014-04-11 Jason Merrill <jason@redhat.com>
1284
1285 PR c++/57926
1286 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1287 default_conversion for an array argument.
1288
6525783a
MP
12892014-04-08 Marek Polacek <polacek@redhat.com>
1290
1291 PR sanitizer/60745
1292 * c-ubsan.c: Include asan.h.
1293 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1294
880a467b
NS
12952014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1296
1297 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1298
7b59ff2d
MP
12992014-04-02 Marek Polacek <polacek@redhat.com>
1300
1301 * c-common.h (c_expand_expr): Remove declaration.
1302
8edbfaa6
JJ
13032014-03-28 Jakub Jelinek <jakub@redhat.com>
1304
1305 PR c++/60689
1306 * c-common.c (add_atomic_size_parameter): When creating new
1307 params vector, push the size argument first.
1308
07d72e1d
JJ
13092014-03-26 Jakub Jelinek <jakub@redhat.com>
1310
1311 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1312 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1313 ubsan_create_data callers.
1314
b35e0fa0
JJ
13152014-03-22 Jakub Jelinek <jakub@redhat.com>
1316
1317 PR debug/60603
1318 * c-opts.c (c_finish_options): Restore cb_file_change call to
1319 <built-in>.
1320
39a1ebb3
JJ
13212014-03-13 Jakub Jelinek <jakub@redhat.com>
1322
1323 PR middle-end/36282
1324 * c-pragma.c (apply_pragma_weak): Only look at
1325 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1326 DECL_ASSEMBLER_NAME_SET_P (decl).
1327 (maybe_apply_pending_pragma_weaks): Exit early if
1328 vec_safe_is_empty (pending_weaks) rather than only when
1329 !pending_weaks.
1330 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
1331 set assembler name back to NULL afterwards.
1332
a07f6ed2
JM
13332014-03-11 Jason Merrill <jason@redhat.com>
1334
1335 * c.opt: Add -std=gnu++14.
1336
75b107f5
IB
13372014-03-11 Ian Bolton <ian.bolton@arm.com>
1338
1339 * c-opts.c (c_common_post_options): Don't override
1340 -ffp-contract=fast if unsafe-math-optimizations is on.
1341
f42c637e
PM
13422014-03-08 Paulo Matos <paulo@matos-sorge.com>
1343
1344 * c.opt: Enable LTO FE for fshort-double.
1345
70e24808
JM
13462014-03-07 Jason Merrill <jason@redhat.com>
1347
1348 * c.opt: Add -std=c++14.
1349
3af9c5e9
MP
13502014-03-06 Marek Polacek <polacek@redhat.com>
1351
1352 PR c/60197
1353 * cilk.c (contains_cilk_spawn_stmt): New function.
1354 (contains_cilk_spawn_stmt_walker): Likewise.
1355 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1356 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1357
b3bdf019
JJ
13582014-03-03 Jakub Jelinek <jakub@redhat.com>
1359
1360 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1361 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1362 even when flag_preprocess_only.
1363
ca7e759d
JM
13642014-02-26 Jason Merrill <jason@redhat.com>
1365
1366 PR c++/59231
1367 PR c++/11586
1368 * c-common.c (shorten_compare): Don't check
1369 c_inhibit_evaluation_warnings.
1370
28e41874
JJ
13712014-02-19 Jakub Jelinek <jakub@redhat.com>
1372
cca615af
JJ
1373 PR c/37743
1374 * c-common.c (c_common_nodes_and_builtins): When initializing
1375 c_uint{16,32,64}_type_node, also set corresponding
1376 uint{16,32,64}_type_node to the same value.
1377
28e41874
JJ
1378 PR c++/60267
1379 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1380 for PRAGMA_IVDEP if flag_preprocess_only.
1381
c2bf53a1
JJ
13822014-02-12 Jakub Jelinek <jakub@redhat.com>
1383
1384 PR c/60101
1385 * c-common.c (merge_tlist): If copy is true, call new_tlist,
1386 if false, add ADD itself, rather than vice versa.
1387 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1388 copy. For SAVE_EXPR, only call merge_tlist once.
1389
8fcbce72
JJ
13902014-02-08 Jakub Jelinek <jakub@redhat.com>
1391
1392 PR middle-end/60092
1393 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1394 and tree_to_uhwi.
1395 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1396 functions.
1397 (c_common_attribute_table): Add alloc_align and assume_aligned
1398 attributes.
1399
0a756a3f
MP
14002014-02-06 Marek Polacek <polacek@redhat.com>
1401
1402 PR c/60087
1403 * c-common.c (warn_for_sign_compare): Call warning_at with location
1404 instead of warning.
1405
7ec4847a
MP
14062014-02-05 Marek Polacek <polacek@redhat.com>
1407
1408 PR c/53123
1409 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1410 statement.
1411
66f20604
MP
14122014-02-04 Marek Polacek <polacek@redhat.com>
1413
1414 PR c/60036
1415 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1416 SAVE_EXPR.
1417
5d77fb19
MG
14182014-02-03 Marc Glisse <marc.glisse@inria.fr>
1419
1420 PR c++/53017
1421 PR c++/59211
1422 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1423 handle_vector_size_attribute, handle_nonnull_attribute): Call
1424 default_conversion on the attribute argument.
1425 (handle_nonnull_attribute): Increment the argument number.
1426
81e5eca8
MP
14272014-01-31 Marek Polacek <polacek@redhat.com>
1428
1429 PR c/59963
1430 * c-common.c (add_atomic_size_parameter): Pass vNULL to
1431 build_function_call_vec.
1432 (resolve_overloaded_builtin): Likewise.
1433 * c-common.h (build_function_call_vec): Adjust declaration.
1434
68fca595
MP
14352014-01-30 Marek Polacek <polacek@redhat.com>
1436
1437 PR c/59940
1438 * c-common.h (unsafe_conversion_p): Adjust declaration.
1439 (warnings_for_convert_and_check): Likewise.
1440 (convert_and_check): Likewise.
1441 * c-common.c (unsafe_conversion_p): Add location parameter. Call
1442 expansion_point_location_if_in_system_header on it.
1443 (warnings_for_convert_and_check): Add location parameter. Call
1444 expansion_point_location_if_in_system_header on it. Use it.
1445 (convert_and_check): Add location parameter. Use it.
1446 (conversion_warning): Likewise.
1447 (c_add_case_label): Adjust convert_and_check calls.
1448 (scalar_to_vector): Adjust unsafe_conversion_p calls.
1449
b72271b9
BI
14502014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1451
1452 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1453 flag_cilkplus.
1454 * c-pragma.c (init_pragma): Likewise.
1455 * c.opt: Likewise.
1456
393e8e8b
MP
14572014-01-23 Marek Polacek <polacek@redhat.com>
1458
1459 PR c/59846
1460 * c-common.c (shorten_compare): Add location_t parameter.
1461 * c-common.h (shorten_binary_op): Adjust declaration.
1462
f04dda30
MP
14632014-01-23 Marek Polacek <polacek@redhat.com>
1464
1465 PR c/58346
1466 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1467 * c-common.h: Declare it.
1468
621955cb
EB
14692014-01-20 Eric Botcazou <ebotcazou@adacore.com>
1470
1471 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1472 * c-ada-spec.c (dump_ads): Likewise.
1473 (cpp_check): Likewise.
1474 (dump_ada_specs): Likewise.
1475
14762014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
1477
1478 PR c++/49718
1479 * c-common.c (handle_no_instrument_function_attribute): Allow
1480 no_instrument_function attribute in class member
1481 definition/declaration.
1482
241f845a
JJ
14832014-01-15 Jakub Jelinek <jakub@redhat.com>
1484
1485 PR c/58943
1486 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1487 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
1488 being COMPOUND_EXPR.
1489 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1490 operand a SAVE_EXPR and second MODIFY_EXPR.
1491
e83b8e2e
JJ
14922014-01-09 Jakub Jelinek <jakub@redhat.com>
1493
1494 PR target/58115
1495 * c-pch.c (c_common_write_pch): Call
1496 prepare_target_option_nodes_for_pch.
1497
23a5b65a
RS
14982014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1499
1500 Update copyright years
1501
f9030485
RS
15022014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1503
1504 * array-notation-common.c, c-cilkplus.c: Use the standard form for
1505 the copyright notice.
1506
f2aa696b
EB
15072013-12-28 Eric Botcazou <ebotcazou@adacore.com>
1508
1509 * c-ada-spec.c (print_constructor): New function.
1510 (print_destructor): Retrieve the origin of the destructor.
1511 (print_ada_declaration): Revamp handling of constructors/destructors.
1512
1f26ac87
JM
15132013-12-23 Stuart Hastings <stuart@apple.com>
1514 Bill Maddox <maddox@google.com>
1515 Jason Merrill <jason@redhat.com>
1516
1517 * c.opt: Add -fdeclone-ctor-dtor.
1518 * c-opts.c (c_common_post_options): Default to on iff -Os.
1519
41958c28
BI
15202013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1521
1522 * c-common.c (c_common_attribute_table): Added "cilk simd function"
1523 attribute.
1524 * c-pragma.h (enum pragma_cilk_clause): Remove.
1525 (enum pragma_omp_clause): Added the following fields:
1526 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1527 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1528 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1529 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1530 PRAGMA_CILK_CLAUSE_UNIFORM.
1531
1532
12893402
BI
15332013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1534
1535 * cilk.c (cilk_outline): Made this function non-static.
1536 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1537 (create_cilk_wrapper): Added a new parameter: a function pointer.
1538 (c_install_body_w_frame_cleanup): Remove
1539 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1540 * c-common.h (cilk_outline): New prototype.
1541 (gimplify_cilk_spawn): Removed two parameters.
1542 (cilk_install_body_with_frame_cleanup): New prototype.
1543 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1544 CILK_SPAWN_STMT case.
1545
085b42ed
BS
15462013-12-11 Bernd Schmidt <bernds@codesourcery.com>
1547
2ce064c3
BS
1548 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1549
085b42ed
BS
1550 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1551 (int_array_type_node): Remove.
1552 * c-common.c (c_common_nodes_and_builtins): Don't build it.
1553
9e36c9ed
MP
15542013-12-05 Marek Polacek <polacek@redhat.com>
1555
1556 PR c/52023
1557 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1558 [ADJUST_FIELD_ALIGN].
1559
296674db
JM
15602013-12-04 Joseph Myers <joseph@codesourcery.com>
1561
1562 PR c/52023
1563 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1564 and check field alignment if set.
1565 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1566 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1567
31e071ae
MP
15682013-12-04 Jakub Jelinek <jakub@redhat.com>
1569 Marek Polacek <polacek@redhat.com>
1570
1571 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1572 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1573
d7947e19
L
15742013-11-29 H.J. Lu <hongjiu.lu@intel.com>
1575
1576 PR c/59309
1577 * cilk.c (gimplify_cilk_spawn): Properly handle function without
1578 arguments.
1579
fad7652e
JJ
15802013-11-29 Jakub Jelinek <jakub@redhat.com>
1581
1582 PR c/59280
1583 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1584 goto invalid. If it is error_mark_node, don't issue further
1585 diagnostics.
1586
8b5e1202
SO
15872013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1588
1589 * c.opt (Wopenmp-simd): New.
1590
0a508bb6
JJ
15912013-11-22 Jakub Jelinek <jakub@redhat.com>
1592
1593 * c-ubsan.h (ubsan_instrument_return): New prototype.
1594 * c-ubsan.c (ubsan_instrument_return): New function.
1595
2fb9a547
AM
15962013-11-22 Andrew MacLeod <amacleod@redhat.com>
1597
1598 * c-common.c: Add required include files from gimple.h.
1599 * c-gimplify.c: Likewise
1600 * cilk.c: Likewise
1601
8400e75e
DM
16022013-11-22 David Malcolm <dmalcolm@redhat.com>
1603
1604 * c-common.c (unsafe_conversion_p): Remove use of
1605 EXPR_LOC_OR_HERE macro.
1606 (conversion_warning): Likewise.
1607 (warnings_for_convert_and_check): Likewise.
1608 (warn_for_collisions_1): Likewise.
1609 (shorten_compare): Likewise, and remove use of in_system_header
1610 macro, using the location from the former.
1611 * c-lex.c (dump_one_header): Remove use of input_filename macro.
1612 (cb_def_pragma): Remove use of in_system_header macro.
1613 (lex_string): Likewise.
1614 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1615
eb1ce453
KZ
16162013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1617 Mike Stump <mikestump@comcast.net>
1618 Richard Sandiford <rdsandiford@googlemail.com>
1619
1620 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1621 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1622 tree_fits_shwi_p or tree_fits_uhwi_p.
1623 (dump_generic_ada_node): Likewise.
1624 * c-format.c (check_format_arg): Likewise.
1625 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1626
6b3b8c27
KZ
16272013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1628
1629 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1630
49b0aa18
JC
16312013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
1632
1633 PR c/53001
1634 * c-common.c (unsafe_conversion_p): Make this function
1635 return an enumeration with more detail.
1636 (conversion_warning): Use the new return type of
1637 unsafe_conversion_p to separately warn either about conversions
1638 that lower floating point number precision or about the other
1639 kinds of conversions.
1640 * c-common.h (enum conversion_safety): New enumeration.
1641 (unsafe_conversion_p): switching return type to
1642 conversion_safety enumeration.
1643 * c.opt: Adding new warning -Wfloat-conversion and
1644 enabling it with -Wconversion.
1645
b826515a
BS
16462013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
1647
1648 * c-opts.c: Include plugin.h.
1649 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1650
b9a55b13
MP
16512013-11-19 Marek Polacek <polacek@redhat.com>
1652
1653 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1654 call.
1655 (ubsan_instrument_shift): Likewise.
1656 (ubsan_instrument_vla): Likewise.
1657
7d362f6c
RS
16582013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1659
1660 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1661 cast to unsigned type.
1662
386b1f1f
RS
16632013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1664
1665 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1666 tree_low_cst.
1667 (complete_array_type): Update comment to refer to tree_to_[su]hwi
1668 rather than tree_low_cst.
1669
ae7e9ddd
RS
16702013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1671
1672 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1673 tree_to_uhwi throughout.
1674
9439e9a1
RS
16752013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1676
1677 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1678 tree_low_cst (..., 0) with tree_to_shwi throughout.
1679
cc269bb6
RS
16802013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1681
1682 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1683 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1684
9541ffee
RS
16852013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1686
1687 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1688 host_integerp (..., 0) with tree_fits_shwi_p throughout.
1689
c02065fc
AH
16902013-11-15 Aldy Hernandez <aldyh@redhat.com>
1691
1692 * c-cilkplus.c: New file.
1693 * c-common.c (readonly_error): Add location argument.
1694 * c-common.h (readonly_error): Same.
1695 (c_finish_cilk_clauses): Protoize.
1696 (c_check_cilk_loop): Same.
1697 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1698 Do not fail on error_mark_node.
1699 Abstract increment canonicalization to here...
1700 (c_omp_for_incr_canonicalize_ptr): New.
1701 c-pragma.c (init_pragma): Register "simd" pragma.
1702 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1703 (enum pragma_cilk_clause): New.
1704
9cc65f15
RS
17052013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
1706
1707 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1708 wchar_type and host_integerp checks.
1709
18f429e2
AM
17102013-11-14 Andrew MacLeod <amacleod@redhat.com>
1711
1712 * c-common.c: Likewise.
1713 * c-gimplify.c: Likewise.
1714 * cilk.c: Likewise.
1715
d8a2d370
DN
17162013-11-14 Diego Novillo <dnovillo@google.com>
1717
1718 * c-common.c: Include fold-const.h.
1719 Include stor-layout.h.
1720 Include calls.h.
1721 Include stringpool.h.
1722 Include attribs.h.
1723 Include varasm.h.
1724 Include trans-mem.h.
1725 * c-cppbuiltin.c: Include stor-layout.h.
1726 Include stringpool.h.
1727 * c-format.c: Include stringpool.h.
1728 * c-lex.c: Include stringpool.h.
1729 Include stor-layout.h.
1730 * c-pragma.c: Include stringpool.h.
1731 Include attribs.h.
1732 Include varasm.h.
1733 Include gcc-symtab.h.
1734 * c-pretty-print.c: Include stor-layout.h.
1735 Include attribs.h.
1736 * cilk.c: Include stringpool.h.
1737 Include calls.h.
1738
38b7bc7f
JM
17392013-11-13 Joseph Myers <joseph@codesourcery.com>
1740
1741 * c-common.h (enum rid): Add RID_AUTO_TYPE.
1742 * c-common.c (c_common_reswords): Add __auto_type.
1743 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1744
45b0be94
AM
17452013-11-12 Andrew MacLeod <amacleod@redhat.com>
1746
18f429e2
AM
1747 * c-common.c: Include gimplify.h.
1748 * c-gimplify.c: Likewise.
1749 * cilk.c: Likewise.
1750 * c-omp.c: Include gimple-expr.h instead of gimple.h.
1751 * c-ubsan.c: Don't include gimple.h.
45b0be94 1752
582d9b50
JM
17532013-11-12 Joseph Myers <joseph@codesourcery.com>
1754
1755 * c-common.c (c_common_reswords): Add _Thread_local.
1756
6b28e197
JM
17572013-11-09 Joseph Myers <joseph@codesourcery.com>
1758
1759 * c-common.c (atomic_size_supported_p): New function.
1760 (resolve_overloaded_atomic_exchange)
1761 (resolve_overloaded_atomic_compare_exchange)
1762 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1763 Use it instead of comparing size with a local list of sizes.
1764
267bac10
JM
17652013-11-07 Andrew MacLeod <amacleod@redhat.com>
1766 Joseph Myers <joseph@codesourcery.com>
1767
1768 * c-common.h (enum rid): Add RID_ATOMIC.
1769 * c-common.c (c_common_reswords): Add _Atomic.
1770 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1771 (keyword_is_type_qualifier): Accept RID_ATOMIC.
1772 * c-format.c (check_format_types): Check for extra _Atomic
1773 qualifiers in format argument.
1774 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1775 (pp_c_type_qualifier_list): Mention _Atomic in comment.
1776
5157b91e
TB
17772013-11-06 Tobias Burnus <burnus@net-b.de>
1778
1779 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1780
6dbe0958
JM
17812013-11-06 Joseph Myers <joseph@codesourcery.com>
1782
1783 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1784 standards modes.
1785 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1786 to mean lack of IEEE 754 support.
1787
e8ff5196
TB
17882013-11-05 Tobias Burnus <burnus@net-b.de>
1789
1790 * c.opt (-Wdate-time): New option
1791 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1792
254a0760
JM
17932013-11-05 Joseph Myers <joseph@codesourcery.com>
1794
1795 * c-cppbuiltin.c (cpp_iec_559_value): Test
1796 flag_excess_precision_cmdline not flag_excess_precision.
1797
6d7f7e0a
TB
17982013-11-05 Tobias Burnus <burnus@net-b.de>
1799
1800 * c.opt (fopenmp-simd): New option.
1801 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1802 (omp_pragmas): ... this new struct.
1803 (c_pp_lookup_pragma): Also walk omp_pragmas.
1804 (init_pragma): Init pragmas for -fopenmp-simd.
1805
55a7f02f
MP
18062013-11-04 Marek Polacek <polacek@redhat.com>
1807
1808 PR c++/58979
1809 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1810
9193fb05
JM
18112013-11-04 Joseph Myers <joseph@codesourcery.com>
1812
1813 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1814 New functions.
1815 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1816
94159ecf
EB
18172013-11-04 Eric Botcazou <ebotcazou@adacore.com>
1818
1819 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1820 (dump_ada_specs): Adjust prototype of second callback.
1821 * c-ada-spec.c (cpp_check): New global variable.
1822 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1823 (print_generic_ada_decl): Likewise.
1824 (has_static_fields): Change return type to bool and add guard.
1825 (has_nontrivial_methods): New predicate.
1826 (is_tagged_type): Change return type to bool.
1827 (separate_class_package): Call has_nontrivial_methods.
1828 (pp_ada_tree_identifier): Minor tweaks.
1829 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1830 (dump_ada_array_domains): Likewise.
1831 (dump_ada_array_type): Likewise.
1832 (dump_template_types): Remove cpp_check parameter and do not pass it to
1833 dump_generic_ada_node.
1834 (dump_ada_template): Likewise.
1835 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1836 recursively.
1837 (print_ada_methods): Change return type to integer. Remove cpp_check
1838 parameter and do not pass it down.
1839 (dump_nested_types): Remove cpp_check parameter and do not pass it to
1840 dump_generic_ada_node.
1841 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
1842 accessing methods.
1843 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1844 down. Use has_nontrivial_methods to recognize C++ classes. Use return
1845 value of print_ada_methods.
1846 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1847 Set cpp_check to it before invoking dump_ada_nodes.
1848 (dump_ada_specs): Likewise.
1849
b906f4ca
MP
18502013-11-03 Marek Polacek <polacek@redhat.com>
1851
1852 * c-ubsan.c: Don't include hash-table.h.
1853 (ubsan_instrument_vla): New function.
1854 * c-ubsan.h: Declare it.
1855
5e20cdc9
DM
18562013-10-31 David Malcolm <dmalcolm@redhat.com>
1857
1858 Automated part of renaming of symtab_node_base to symtab_node.
1859
1860 Patch autogenerated by rename_symtab.py from
1861 https://github.com/davidmalcolm/gcc-refactoring-scripts
1862 revision 58bb219cc090b2f4516a9297d868c245495ee622
1863
1864 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1865 symtab_node_base to symtab_node.
1866
7057e645
ESR
18672013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
1868
1869 Implement C++14 digit separators.
1870 * c-lex.c (interpret_float): Remove digit separators from scratch string
1871 before building real literal.
1872
193ea7bc
JJ
18732013-10-30 Jakub Jelinek <jakub@redhat.com>
1874
1875 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1876
939b37da
BI
18772013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1878
1879 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1880 fields.
1881 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1882 enabled.
1883 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1884 (insert_cilk_frame): New prototype.
1885 (cilk_init_builtins): Likewise.
1886 (gimplify_cilk_spawn): Likewise.
1887 (c_cilk_install_body_w_frame_cleanup): Likewise.
1888 (cilk_detect_spawn_and_unwrap): Likewise.
1889 (cilk_set_spawn_marker): Likewise.
1890 (build_cilk_sync): Likewise.
1891 (build_cilk_spawn): Likewise.
1892 * cilk.c: New file.
1893
67348ccc
DM
18942013-10-29 David Malcolm <dmalcolm@redhat.com>
1895
1896 Patch autogenerated by refactor_symtab.py from
1897 https://github.com/davidmalcolm/gcc-refactoring-scripts
1898 revision 58bb219cc090b2f4516a9297d868c245495ee622
1899
1900 * c-gimplify.c (c_genericize): Update for conversion of symtab types
1901 to a true class hierarchy.
1902 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1903
d570872d
RS
19042013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
1905
1906 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1907
98906124
JL
19082013-10-26 Jeff Law <law@redhat.com>
1909
adfac8df
JJ
1910 * c-common.c (c_define_builtins): Remove mudflap support.
1911 * c.opt: Ignore and warn for mudflap options.
98906124 1912
d73749df 19132013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
1914
1915 PR other/33426
1916 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1917 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1918
3f04b1bb
JM
19192013-10-23 Jason Merrill <jason@redhat.com>
1920
1921 * c-format.c (gcc_cxxdiag_char_table): Add %X.
1922
acf0174b
JJ
19232013-10-11 Jakub Jelinek <jakub@redhat.com>
1924
acd15a28
JJ
1925 * c-common.h (omp_clause_mask::operator !=): New method.
1926 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1927 instead of if (mask & something) tests everywhere.
1928
acf0174b
JJ
1929 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1930 201307 instead of 201107.
1931 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1932 (c_common_attribute_table): Add "omp declare target" and
1933 "omp declare simd" attributes.
1934 (handle_omp_declare_target_attribute,
1935 handle_omp_declare_simd_attribute): New functions.
1936 * c-omp.c: Include c-pragma.h.
1937 (c_finish_omp_taskgroup): New function.
1938 (c_finish_omp_atomic): Add swapped argument, if true,
1939 build the operation first with rhs, lhs arguments and use NOP_EXPR
1940 build_modify_expr.
1941 (c_finish_omp_for): Add code argument, pass it down to make_code.
1942 (c_omp_split_clauses): New function.
1943 (c_split_parallel_clauses): Removed.
1944 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1945 c_omp_declare_simd_clauses_to_decls): New functions.
1946 * c-common.h (omp_clause_mask): New type.
1947 (OMP_CLAUSE_MASK_1): Define.
1948 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1949 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1950 omp_clause_mask::operator |, omp_clause_mask::operator &,
1951 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1952 omp_clause_mask::operator ==): New methods.
1953 (enum c_omp_clause_split): New.
1954 (c_finish_omp_taskgroup): New prototype.
1955 (c_finish_omp_atomic): Add swapped argument.
1956 (c_finish_omp_for): Add code argument.
1957 (c_omp_split_clauses): New prototype.
1958 (c_split_parallel_clauses): Removed.
1959 (c_omp_declare_simd_clauses_to_numbers,
1960 c_omp_declare_simd_clauses_to_decls): New prototypes.
1961 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1962 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1963 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1964 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1965 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1966 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1967 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1968 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1969 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1970 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1971 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1972 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1973 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1974 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1975 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1976 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1977 PRAGMA_OMP_CLAUSE_UNIFORM.
1978
826cacfe
MG
19792013-10-09 Marc Glisse <marc.glisse@inria.fr>
1980
1981 PR tree-optimization/20318
1982 * c-common.c (handle_returns_nonnull_attribute): New function.
1983 (c_common_attribute_table): Add returns_nonnull.
1984
2284b034
MG
19852013-10-03 Marc Glisse <marc.glisse@inria.fr>
1986
1987 PR c++/19476
1988 * c.opt (fcheck-new): Move to common.opt.
1989
b56e9788
MP
19902013-09-25 Marek Polacek <polacek@redhat.com>
1991 Jakub Jelinek <jakub@redhat.com>
1992
1993 PR sanitizer/58413
1994 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1995 an expression if we can prove it is correct.
1996 (ubsan_instrument_division): Likewise. Remove unnecessary
1997 check.
1998
ce6923c5
MP
19992013-09-18 Marek Polacek <polacek@redhat.com>
2000
2001 PR sanitizer/58411
2002 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2003 Declare it.
2004 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2005
fb5610fb
IS
20062013-09-14 Iain Sandoe <iain@codesourcery.com>
2007
2008 PR target/48094
2009 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2010 fobjc-gc, freplace-objc-classes): Accept for LTO.
2011
88b0e79e
JC
20122013-09-13 Jacek Caban <jacek@codeweavers.com>
2013
2014 * c-target.def: New hook
2015
c9b0866a
PC
20162013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2017
2018 PR c++/43452
2019 * c.opt (Wdelete-incomplete): Add.
2020
0af94e6f
JR
20212013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2022
2023 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2024 (vector_types_compatible_elements_p): New function.
2025 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2026 declaration.
2027 (vector_types_compatible_elements_p): Declare.
2028
7c26172c
GDR
20292013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2030
2031 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2032 a virtual member function.
2033 (pp_simple_type_specifier): Remove.
2034 (pp_c_type_specifier): Likewise.
2035 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2036 Rename from pp_c_type_specifier. Adjust.
2037 (c_pretty_printer::c_pretty_printer): Do not assign to
2038 simple_type_specifier.
2039
20059c8b
GDR
20402013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2041
2042 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2043 member function.
2044 (c_pretty_printer::storage_class_specifier): Likewise.
2045 (c_pretty_printer::initializer): Likewise.
2046 (pp_declaration): Remove.
2047 (pp_declaration_specifiers): Likewise.
2048 (pp_abstract_declarator): Likewise.
2049 (pp_declarator): Likewise.
2050 (pp_type_id): Likewise.
2051 (pp_statement): Likewise.
2052 (pp_constant): Likewise.
2053 (pp_id_expression): Likewise.
2054 (pp_primary_expression): Likewise.
2055 (pp_unary_expression): Likewise.
2056 (pp_multiplicative_expression): Likewise.
2057 (pp_conditional_expression): Likewise.
2058 (pp_assignment_expression): Likewise.
2059 (pp_expression): Likewise.
2060 (pp_c_type_id): Likewise.
2061 (pp_c_storage_class_specifier): Likewise.
2062 * c-pretty-print.c (pp_c_type_cast): Tidy.
2063 (pp_c_pointer): Likewise.
2064 (pp_c_type_specifier): Likewise.
2065 (pp_c_parameter_type_list): Likewise.
2066 (pp_c_function_definition): Likewise.
2067 (pp_c_init_declarator): Likewise.
2068 (pp_c_initializer_list): Likewise.
2069 (pp_c_constructor_elts): Likewise.
2070 (c_pretty_printer::direct_abstract_declarator): Likewise.
2071 (c_pretty_printer::declaration_specifiers): Likewise.
2072 (c_pretty_printer::primary_expression): Likewise.
2073 (c_pretty_printer::postfix_expression): Likewise.
2074 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2075 (c_pretty_printer::storage_class_specifier): Rename from
2076 pp_c_storage_class_specifier.
2077 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2078 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2079 storage_class_specifier, initializer, offset_list, flags.
2080
de5a5fa1
MP
20812013-08-30 Marek Polacek <polacek@redhat.com>
2082
2083 * c-ubsan.c: New file.
2084 * c-ubsan.h: New file.
2085
8f0e4d72
GDR
20862013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2087
2088 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2089 member function.
2090 (c_pretty_printer::declaration_specifiers): Likewise.
2091 (c_pretty_printer::declarator): Likewise.
2092 (c_pretty_printer::abstract_declarator): Likewise.
2093 (c_pretty_printer::direct_abstract_declarator): Likewise.
2094 (c_pretty_printer::direct_declarator): Likewise.
2095 (c_pretty_printer::function_specifier): Likewise.
2096 (pp_declaration): Adjust.
2097 (pp_declaration_specifiers): Likewise.
2098 (pp_abstract_declarator): Likewise.
2099 (pp_direct_declarator): Likewise.
2100 (pp_function_specifier): Likewise.
2101 (pp_direct_abstract_declarator): Remove as unused.
2102 (pp_c_declaration): Remove.
2103 (pp_c_declaration_specifiers): Likewise.
2104 (pp_c_declarator): Likewise.
2105 (pp_c_direct_declarator): Likewise.
2106 (pp_c_function_specifier): Likewise.
2107 (pp_c_direct_abstract_declarator): Likewise.
2108 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2109 from pp_c_abstract_declarator. Adjust.
2110 (c_pretty_printer::direct_abstract_declarator): Rename from
2111 pp_c_direct_abstract_declarator. Adjust.
2112 (c_pretty_printer::function_specifier): Rename from
2113 pp_c_function_specifier. Adjust.
2114 (c_pretty_printer::declaration_specifiers): Rename from
2115 pp_c_declaration_specifiers. Adjust.
2116 (c_pretty_printer::direct_declarator): Rename from
2117 pp_c_direct_declarator. Adjust.
2118 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
2119 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
2120 (c_pretty_printer::c_pretty_printer): Do not assign to
2121 declaration, declaration_specifiers, declarator,
2122 direct_declarator, direct_abstract_declarator, function_specifier.
2123
00d34d3a
GDR
21242013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
2125
2126 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2127 virtual member function.
2128 (c_pretty_printer::multiplicative_expression): Likewise.
2129 (c_pretty_printer::conditional_expression): Likewise.
2130 (c_pretty_printer::assignment_expression): Likewise.
2131 (c_pretty_printer::expression): Likewise.
2132 (pp_unary_expression): Adjust.
2133 (pp_multiplicative_expression): Likewise.
2134 (pp_assignment_expression): Likewise.
2135 (pp_conditional_expression): Likewise.
2136 (pp_expression): Likewise.
2137 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2138 from pp_c_unary_expression. Adjust.
2139 (c_pretty_printer::multiplicative_expression): Rename from
2140 pp_c_multiplicative_expression. Adjust.
2141 (c_pretty_printer::conditional_expression): Rename from
2142 pp_c_conditional_expression. Adjust.
2143 (c_pretty_printer::assignment_expression): Rename from
2144 pp_c_assignment_expression. Adjust.
2145 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
2146 (c_pretty_printer::c_pretty_printer): Do not assign to
2147 unary_expression, multiplicative_expression,
2148 conditional_expression, expression.
2149
fb22178f
GDR
21502013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2151
2152 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2153 virtual member function.
2154 (pp_postfix_expression): Adjust.
2155 (pp_c_postfix_expression): Remove.
2156 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2157 from pp_c_postfix_expression. Adjust.
2158 (c_pretty_printer::c_pretty_printer): Do not assign to
2159 postfix_expression.
2160
7ecc2600
GDR
21612013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2162
2163 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2164 virtua member function.
2165 (pp_primary_expression): Adjust.
2166 (pp_c_primary_expression): Remove.
2167 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2168 from pp_c_primary_expression. Adjust.
2169 (pp_c_initializer_list): Use pp_primary_expression.
2170 (c_pretty_printer::c_pretty_printer): Do not assign to
2171 primary_expression.
2172
0691175f
GDR
21732013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2174
2175 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2176 * c-pretty-print.c (M_): Remove.
2177 (c_pretty_printer::translate_string): Define.
2178 (pp_c_type_specifier): Use it.
2179 (pp_c_primary_expression): Likewise.
2180 (pp_c_expression): Likewise.
2181
66dfe4c4
GDR
21822013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2183
2184 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2185 virtual function.
2186 (pp_c_id_expression): Remove.
2187 (pp_id_expression): Adjust.
2188 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2189 pp_c_id_expression. Adjust.
2190 (pp_c_postfix_expression): Use pp_id_expression.
2191 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2192
ca43e9d5
GDR
21932013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2194
2195 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2196 member function.
2197 (pp_constant): Adjust.
2198 (pp_c_constant): Remove.
2199 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2200 pp_c_constant. Adjust.
2201 (pp_c_constant)
2202 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2203 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2204
da6ca2b5
GDR
22052013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2206
2207 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2208 (c_pretty_printer::c_pretty_printer): Declare.
2209 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2210 c_pretty_printer_init. Adjust.
2211 (print_c_tree): Do not call c_pretty_printer_init.
2212 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2213
65a372f4
AC
22142013-08-09 Arnaud Charlet <charlet@adacore.com>
2215
2216 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2217
fd9b0f32
PC
22182013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
2219
2220 PR c++/58080
2221 * c-common.c (pointer_int_sum): Add bool parameter.
2222 * c-common.h (pointer_int_sum): Adjust declaration.
2223
e0aec1e9
GDR
22242013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2225
2226 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2227 c_pretty_printer variable.
2228
b066401f
GDR
22292013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2230
2231 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2232 (pp_base): Remove.
2233 (pp_c_base): Likewise. Adjust users.
2234 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2235 (pp_c_whitespace): Do not call pp_base.
2236 (pp_c_left_paren): Likewise.
2237 (pp_c_right_paren): Likewise.
2238 (pp_c_left_brace): Likewise.
2239 (pp_c_right_brace): Likewise.
2240 (pp_c_left_bracket): Likewise.
2241 (pp_c_right_bracket): Likewise.
2242 (pp_c_dot): Likewise.
2243 (pp_c_ampersand): Likewise.
2244 (pp_c_star): Likewise.
2245 (pp_c_arrow): Likewise.
2246 (pp_c_semicolon): Likewise.
2247 (pp_c_complement): Likewise.
2248 (pp_c_exclamation): Likewise.
2249 (pp_c_direct_declarator): Likewise.
2250 (pp_c_ws_string): Likewise.
2251 (pp_c_identifier): Likewise.
2252 (pp_c_statement): Likewise.
2253 (print_c_tree): Likewise.
2254
65e5a578
ESR
22552013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2256
2257 PR c++/58072
2258 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2259 provide useful error strings.
2260
137a1a27
GDR
22612013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2262
2263 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2264 printer functions instead of pp_string or operators and punctuators.
2265 (dump_generic_ada_node): Likewise.
2266 * c-pretty-print.c (pp_c_type_specifier): Likewise.
2267 (pp_c_relational_expression): Likewise.
2268 (pp_c_logical_or_expression): Likewise.
2269
07838b13
GDR
22702013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2271
2272 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2273 functions instead of pp_character.
2274 (pp_ada_tree_identifier): Likewise.
2275 (dump_ada_double_name): Likewise.
2276 (dump_ada_function_declaration): Likewise.
2277 (dump_ada_array_domains): Likewise.
2278 (dump_template_types): Likewise.
2279 (dump_generic_ada_node): Likewise.
2280 (print_ada_declaration): Likewise.
2281 (print_ada_struct_decl): Likewise.
2282 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2283
433cc7b0
TT
22842013-07-23 Tom Tromey <tromey@redhat.com>
2285
2286 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2287 * c-common.c (c_common_reswords): Add _Generic.
2288
688010ba
OB
22892013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
2290
2291 * c-common.c: Fix typos.
2292 * c-common.h: Likewise.
2293
2a99e5e6
LL
22942013-07-13 Lubos Lunak <l.lunak@suse.cz>
2295
2296 PR c++/55203
2297 * c-common.c (c_common_attribute_table): Add warn_unused.
2298 (handle_warn_unused_attribute): New.
2299
c26302d5
JJ
23002013-07-10 Jakub Jelinek <jakub@redhat.com>
2301
2302 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2303 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2304
dfeadaa0
PC
23052013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
2306
2307 PR c++/57869
2308 * c.opt: Add Wconditionally-supported.
2309
6a2fa4b2
GS
23102013-07-08 Graham Stott <graham.stott@btinternet.com>
2311
adfac8df 2312 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
2313 unused variables l_length and l_node.
2314
ecdbd01a 23152013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
2316
2317 PR c/57821
2318 * c-common.c (complete_array_type): Delay folding first index
2319 like other indices. When folding, check for index overflow.
2320
bedc293e
MG
23212013-06-27 Marc Glisse <marc.glisse@inria.fr>
2322
2323 PR c++/57509
2324 * c-common.h (c_build_vec_perm_expr): New complain argument.
2325 * c-common.c (c_build_vec_perm_expr): Likewise.
2326 Use save_expr also in C++.
2327
604b2bfc
GDR
23282013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2329
2330 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2331 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2332 * c-opts.c (c_common_post_options): Likewise.
2333
dfeadaa0 23342013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
2335
2336 * array-notation-common.c (length_mismatch_in_expr): Changed the
2337 parameter type's from a dynamic array to a vec_tree. Also removed
2338 the size parameters.
2339 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2340 the change above.
2341
2ce86d2e
BI
23422013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2343
2344 * c-common.h (struct cilkplus_an_parts): New structure.
2345 (struct cilkplus_an_loop_parts): Likewise.
2346 (cilkplus_extract_an_triplets): New prototype.
2347 (fix_sec_implicit_args): Likewise.
2348 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2349 (fix_sec_implicit_args): Likewise.
604b2bfc 2350
07a6825b
BI
23512013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2352
2353 * array-notation-common.c (find_inv_trees): Removed an unwanted
2354 typecasting.
2355 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2356 enum rid to enum tree_code.
2357
08346abd
JH
23582013-06-11 Jan Hubicka <jh@suse.cz>
2359
2360 * c-common.c (handle_alias_ifunc_attribute): Do not set
2361 DECL_EXTERNAL for weakref variables.
2362 * c-pragma.c (handle_pragma_weak): Make sure aliases
2363 are not declared as external.
2364
d60f1706
BI
23652013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2366
2367 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2368 function from c/c-array-notation.c.
2369 (is_cilkplus_reduce_builtin): Likewise.
2370 (find_rank): Likewise.
2371 (extract_array_notation_exprs): Likewise.
2372 (replace_array_notations): Likewise.
2373 (find_inv_trees): Likewise.
2374 (replace_inv_trees): Likewise.
2375 (contains_array_notation_expr): Likewise.
2376 (find_correct_array_notation_type): Likewise.
2377 * c-common.h (struct inv_list): Moved this struct from the file
2378 c/c-array-notation.c and added a new field called additional tcodes.
2379 (length_mismatch_in_expr_p): New prototype.
2380 (is_cilkplus_reduce_builtin): Likewise.
2381 (find_rank): Likewise.
2382 (extract_array_notation_exprs): Likewise.
2383 (replace_array_notation): Likewise.
2384 (find_inv_trees): Likewise.
2385 (replace_inv_trees): Likewise.
2386 (find_correct_array_notation_type): Likewise.
dfeadaa0 2387
36536d79
BI
23882013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2389
2390 * c-common.c (c_define_builtins): When cilkplus is enabled, the
2391 function array_notation_init_builtins is called.
2392 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2393 * c-common.def (ARRAY_NOTATION_REF): New tree.
2394 * c-common.h (build_array_notation_expr): New function declaration.
2395 (build_array_notation_ref): Likewise.
2396 (extract_sec_implicit_index_arg): New extern declaration.
2397 (is_sec_implicit_index_fn): Likewise.
2398 (ARRAY_NOTATION_CHECK): New define.
2399 (ARRAY_NOTATION_ARRAY): Likewise.
2400 (ARRAY_NOTATION_START): Likewise.
2401 (ARRAY_NOTATION_LENGTH): Likewise.
2402 (ARRAY_NOTATION_STRIDE): Likewise.
2403 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2404 ARRAY_NOTATION_REF.
2405 (pp_c_expression): Likewise.
2406 * c.opt (flag_enable_cilkplus): New flag.
2407 * array-notation-common.c: New file.
2408
f7716d57
JJ
24092013-05-14 Jakub Jelinek <jakub@redhat.com>
2410
2411 PR c++/57274
2412 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2413
a5e0cd1d
MG
24142013-05-10 Marc Glisse <marc.glisse@inria.fr>
2415
2416 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2417 vectors.
2418
f6bc1c4a
HS
24192013-05-07 Han Shen <shenhan@google.com>
2420
2421 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2422
3f12f6e9
SKS
24232013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2424
2425 * c-common.c (check_user_alignment): Emit error for negative values.
2426
61949153
PC
24272013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2428
2429 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2430
e93e18e9
PC
24312013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2432
2433 * c-cppbuiltin.c (c_cpp_builtins): Do not define
2434 __GXX_EXPERIMENTAL_CXX1Y__.
2435
44d90fe1
PC
24362013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2437 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2438
2439 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2440 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2441 to simply use OPT_Wpointer_arith.
2442 (c_sizeof_or_alignof_type): Likewise.
2443
13f39b2e
PC
24442013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2445
2446 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2447
4b84d650
JJ
24482013-04-12 Jakub Jelinek <jakub@redhat.com>
2449
2450 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2451 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2452 specifiers.
2453
fb037b5d
SB
24542013-04-07 Steven Bosscher <steven@gcc.gnu.org>
2455
2456 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2457
4e856798
PC
24582013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
2459
2460 * c-common.c (pointer_int_sum): Remove dead code.
2461
4b1baac8
RS
24622013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2463
2464 PR middle-end/56524
2465 * c-common.c (handle_optimize_attribute): Don't call
2466 save_optabs_if_changed.
2467
0b50e654
JJ
24682013-03-05 Jakub Jelinek <jakub@redhat.com>
2469
2470 PR middle-end/56461
2471 * c-pch.c (pch_init): Free target_validity at the end.
2472
48c41403
JJ
24732013-03-04 Jakub Jelinek <jakub@redhat.com>
2474
2475 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2476
e664c61c
KS
24772013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2478 Jakub Jelinek <jakub@redhat.com>
2479
2480 PR sanitizer/56454
2481 * c-common.c (handle_no_sanitize_address_attribute): New function.
2482 (c_common_attribute_table): Add no_sanitize_address attribute.
2483 (handle_no_address_safety_analysis_attribute): Add
2484 no_sanitize_address attribute, not no_address_safety_analysis
2485 attribute.
2486
a475fd3d 24872013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
2488
2489 PR target/52555
2490 * c-common.c (handle_optimize_attribute): Call
2491 save_optabs_if_changed.
2492
f6007d99
JJ
24932013-02-18 Jakub Jelinek <jakub@redhat.com>
2494 Steven Bosscher <steven@gcc.gnu.org>
2495
2496 PR pch/54117
2497 * c-opts.c (c_common_post_options): If debug info is enabled
2498 and non-dwarf*, refuse to load PCH files and when writing PCH
2499 file warn.
2500
cf35e2b1
JJ
25012013-02-05 Jakub Jelinek <jakub@redhat.com>
2502
2503 PR middle-end/56167
2504 * c-common.c (handle_error_attribute): Fix condition.
2505
32887460
JJ
25062013-01-30 Jakub Jelinek <jakub@redhat.com>
2507
2508 PR c++/55742
2509 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2510
5af057d8
JM
25112013-01-18 Jason Merrill <jason@redhat.com>
2512
2513 PR target/54908
2514 * c.opt (-fextern-tls-init): New.
2515 * c-opts.c (c_common_post_options): Handle it.
2516
cc83c823
JJ
25172013-01-09 Jakub Jelinek <jakub@redhat.com>
2518
2519 PR c/48418
2520 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2521 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2522 and is either negative or bigger or equal to type precision
2523 of the first operand.
2524
a859517f
MP
25252012-12-03 Marek Polacek <polacek@redhat.com>
2526
2527 PR c/55570
2528 * c-common.c (check_user_alignment): Swap order of tests,
2529 check TREE_CODE first.
2530
2d7aa578
ESR
25312012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
2532
2533 PR c++/52654
2534 * c-common.h (overflow_type): New enum.
2535 (build_userdef_literal): Add overflow_type argument.
2536 (tree_userdef_literal): Add overflow_type.
2537 (USERDEF_LITERAL_OVERFLOW): New access macro.
2538 * c-common.c (build_userdef_literal): Add overflow_type
2539 argument.
2540 * c-lex.c (c_lex_with_flags): Add overflow_type to
2541 build_userdef_literal calls.
2542 (interpret_integer, interpret_float): Add overflow_type argument.
2543
cc3c4f62
RB
25442012-11-28 Richard Biener <rguenther@suse.de>
2545
2546 PR c/35634
2547 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2548 here and use a type with proper overflow behavior for types that would
2549 need to be promoted for the arithmetic.
2550
77bc5132
JJ
25512012-11-23 Jakub Jelinek <jakub@redhat.com>
2552
2553 PR sanitizer/55435
2554 * c-common.c (handle_no_address_safety_analysis_attribute): New
2555 function.
2556 (c_common_attribute_table): Add no_address_safety_analysis.
2557
5dc99c46
SB
25582012-11-16 Simon Baldwin <simonb@google.com>
2559
2560 * c.opt: Add f[no-]canonical-system-headers.
2561 * c-opts.c (c_common_handle_option): Handle
2562 OPT_fcanonical_system_headers.
2563
a4a0016d
ESR
25642012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
2565
2566 PR c++/54413
2567 * c-opts.c (c_common_handle_option): Set new flags.
2568 * c.opt: Describe new flags.
2569
7dbb85a7
JM
25702012-11-09 Jason Merrill <jason@redhat.com>
2571
2572 * c.opt (Wabi-tag): New.
2573
ad7bac31
AK
25742012-11-09 Andi Kleen <ak@linux.intel.com>
2575
2576 PR 55139
2577 * c-common.c (get_atomic_generic_size): Mask with
2578 MEMMODEL_MASK
2579
7332899a
MLI
25802012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2581
2582 PR c/53063
2583 * c.opt (Wformat): Make it Alias Wformat=1.
2584 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2585 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2586 LangEnabledBy.
2587 (Wformat=): RejectNegative. Use LangEnabledBy.
2588 (Wnonnull): Use LangEnabledBy.
2589 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2590 * c-format.c (set_Wformat): Delete.
2591 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2592 (maybe_read_dollar_number): Likewise.
2593 (avoid_dollar_number): Likewise.
2594 (finish_dollar_format_checking): Likewise.
2595 (check_format_info): Likewise.
2596 (check_format_info_main): Likewise.
2597 (check_format_types): Likewise.
2598 (format_type_warning): Likewise.
2599 * c-common.c (int): Likewise.
2600 (check_function_sentinel): Likewise.
2601 * c-common.h (warn_format,set_Wformat): Do not declare here.
2602
34a180a6
MLI
26032012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2604
2605 PR c/53063
2606 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2607 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2608 Use LangEnabledBy.
2609 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2610 common.opt.
2611 (Wvariadic-macros): Init(1).
2612 * c-opts.c (c_common_handle_option): Do not handle them
2613 explicitly.
2614 (c_common_post_options): Likewise.
2615 (sanitize_cpp_opts): warn_unused_macros is now
2616 cpp_warn_unused_macros.
2617 (push_command_line_include): Likewise.
2618 * c-common.c (warn_unknown_pragmas): Do not define.
2619 * c-common.h (warn_unknown_pragmas): Do not declare.
2620
3f46d6a5
MLI
26212012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2622
2623 PR c/51294
2624 * c-common.c (conversion_warning): Handle conditional expressions.
2625
880661a4
JW
26262012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2627
2628 PR c++/54930
2629 * c.opt (Wreturn_local_addr): Define new option.
2630
4514a96b
JM
26312012-10-25 Jason Merrill <jason@redhat.com>
2632
f14edc1a
JM
2633 * c.opt (Wvirtual-move-assign): New.
2634
4514a96b
JM
2635 * c.opt (Winherited-variadic-ctor): New.
2636
93100c6b
MG
26372012-10-25 Marc Glisse <marc.glisse@inria.fr>
2638
2639 PR c++/54427
2640 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2641
1efcb8c6
JM
26422012-10-23 Joseph Myers <joseph@codesourcery.com>
2643
2644 * c-common.h (pch_cpp_save_state): Declare.
2645 * c-target.def (c_preinclude): New hook.
2646 * c-opts.c (done_preinclude): New.
2647 (push_command_line_include): Handle default preincluded header.
2648 (cb_file_change): Call pch_cpp_save_state when calling
2649 push_command_line_include.
2650 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2651 (pch_cpp_save_state): New.
2652 (pch_init): Call pch_cpp_save_state conditionally, instead of
2653 calling cpp_save_state.
2654
4a0ae68e
MLI
26552012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2656
2657 PR c/53063
2658 PR c/40989
2659 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2660 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2661 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2662 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2663 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2664 * c-opts.c (c_common_handle_option): Remove explicit handling from
2665 here.
2666 (c_common_post_options): Likewise.
2667
67e4210b
EB
26682012-10-18 Eric Botcazou <ebotcazou@adacore.com>
2669
2670 * c-ada-spec.c (LOCATION_COL): Delete.
2671 (compare_location): New function.
2672 (compare_node): Use it.
2673 (compare_comment): Likewise.
2674
65d4f2cd
MLI
26752012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2676
2677 PR c/53063
2678 PR c/40989
2679 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2680 * c-opts.c (c_common_handle_option): Do not set them here. Add
2681 comment.
2682 (c_common_post_options): Likewise.
2683
909881cb
EB
26842012-10-16 Eric Botcazou <ebotcazou@adacore.com>
2685
2686 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2687 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2688 Remove POINTER_TYPE handling, add large unsigned handling and use
2689 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2690
3a785c97
JJ
26912012-10-12 Jakub Jelinek <jakub@redhat.com>
2692
2693 PR c/54381
2694 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2695 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2696 locs and array of 3 trees instead of just single loc and single
2697 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
2698 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2699 For *cmp* builtins that take two sources strings report warnings
2700 about first and second source, not about destination and source.
2701
5e54f81d
MG
27022012-10-12 Marc Glisse <marc.glisse@inria.fr>
2703
2704 PR c++/53055
2705 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2706
f5b02f1e
EB
27072012-10-11 Eric Botcazou <ebotcazou@adacore.com>
2708
2709 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2710 declaring something coming from another file.
2711
b46dbc6c
AC
27122012-10-10 Arnaud Charlet <charlet@adacore.com>
2713
f5b02f1e 2714 PR ada/54845
b46dbc6c
AC
2715 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2716
5d9de0d0
PC
27172012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2718
2719 PR c++/54194
2720 * c-common.c (warn_about_parentheses): Add location_t parameter;
2721 use EXPR_LOC_OR_LOC.
2722 * c-common.h: Update declaration.
2723
a212e43f
MG
27242012-10-09 Marc Glisse <marc.glisse@inria.fr>
2725
2726 PR c++/54427
2727 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2728 more operations. Make error messages optional.
2729 * c-common.h (enum stv_conv): Moved from c-typeck.c.
2730 (scalar_to_vector): Declare.
2731
b1db7f91
JM
27322012-10-08 Jason Merrill <jason@redhat.com>
2733
2734 * c-common.c (c_common_reswords): Add thread_local.
2735
e28d52cf
DS
27362012-10-08 Dodji Seketeli <dodji@redhat.com>
2737
2738 PR c++/53528 C++11 attribute support
2739 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2740 new functions.
2741 * c-common.c (check_cxx_fundamental_alignment_constraints): New
2742 static function.
2743 (handle_aligned_attribute): In choose strictest alignment
2744 among many. Use new check_cxx_fundamental_alignment_constraints.
2745 (handle_transparent_union_attribute): In c++11 attribute syntax,
2746 don't look through typedefs.
2747
3b78de56
AC
27482012-10-04 Arnaud Charlet <charlet@adacore.com>
2749
2750 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2751 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2752 out of dumpfile.h.
2753
6040bb5f
DC
27542012-09-25 Dehao Chen <dehao@google.com>
2755
2756 PR middle-end/54645
3b78de56 2757 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
2758 map when read in the pch.
2759
0b07a57e
AC
27602012-09-18 Arnaud Charlet <charlet@adacore.com>
2761
2762 * c-ada-spec.c: Style fixes.
2763
da5182be
TQ
27642012-09-18 Thomas Quinot <quinot@adacore.com>
2765
2766 * c.opt (-fada-spec-parent): Define new command line switch.
2767 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2768 is specified, generate binding spec as a child of the specified unit.
2769
0ccb505d
PC
27702012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
2771 Manuel López-Ibáñez <manu@gcc.gnu.org>
2772
2773 PR c++/53210
2774 * c.opt ([Winit-self]): Enabled by -Wall in C++.
2775
c583af79
AC
27762012-08-23 Arnaud Charlet <charlet@adacore.com>
2777
2778 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2779 for pointers, and add missing Convention C pragma.
2780 (print_ada_struct_decl): Add missing aliased keyword.
2781 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2782
1a4049e7
JJ
27832012-08-17 Jakub Jelinek <jakub@redhat.com>
2784
2785 * c-common.c (sizeof_pointer_memaccess_warning): New function.
2786 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2787 * c-opts.c (c_common_handle_option): Enable it for -Wall.
2788 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2789 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2790
70b5e7dc
RG
27912012-08-10 Richard Guenther <rguenther@suse.de>
2792
2793 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2794
f8923f7e
SB
27952012-08-07 Steven Bosscher <steven@gcc.gnu.org>
2796
2797 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2798 instead of separate pp_newline and pp_flush.
2799 (print_c_tree): Likewise.
2800
e45abe1f
RH
28012012-07-26 Richard Henderson <rth@redhat.com>
2802
2803 * c-common.c (handle_hot_attribute): Allow labels.
2804 (handle_cold_attribute): Likewise.
2805
332f1d24
JJ
28062012-07-20 Jakub Jelinek <jakub@redhat.com>
2807
2808 PR c++/28656
2809 * c-common.c (check_function_nonnull): Handle multiple nonnull
2810 attributes properly.
2811
7ee2468b
SB
28122012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2813
2814 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2815 * c-ada-spec.c: Likewise.
2816 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2817
ee7b28eb
SB
28182012-07-14 Steven Bosscher <steven@gcc.gnu.org>
2819
2820 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2821 Remove code conditional on it.
2822
6bdf3519
SB
28232012-07-11 Steven Bosscher <steven@gcc.gnu.org>
2824
2825 * c-gimplify.c: Do not include basic-block.h.
2826 * c-common.c: Do not include linfuncs.h.
2827
532aafad
SB
28282012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2829
2830 * c-common.h: Include tree.h.
2831
8d0d1915
JM
28322012-07-02 Jason Merrill <jason@redhat.com>
2833
2834 PR c++/53524
2835 * c-common.c (get_priority): Call default_conversion.
2836
fbc873ad
UB
28372012-07-01 Uros Bizjak <ubizjak@gmail.com>
2838
2839 * c-pch.c (c_common_write_pch): Remove unused variables.
2840
d4a10d0a
SB
28412012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2842
2843 * cppspec.c: Moved from gcc/ to here.
2844
6f3a2e23
KT
28452012-06-27 Kai Tietz <ktietz@redhat.com>
2846
2847 PR preprocessor/37215
2848 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2849
8ca92d04
SB
28502012-06-21 Steven Bosscher <steven@gcc.gnu.org>
2851
2852 * c-common.h (c_common_print_pch_checksum): Remove.
2853 * c-pch.c: Do not include output.h.
2854 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2855 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2856 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2857 (struct c_pch_header): Remove.
2858 (get_ident): Update gpch version.
2859 (pch_init): Do not print executable_checksum to asm_out_file.
2860 Do not fail if there is no asm_out_file to read back from. Set
2861 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2862 (c_common_write_pch): Verify that nothing was written to asm_out_file
2863 since pch_init was called. Do not write a c_pch_header, and do not
2864 copy from asm_out_file to the PCH.
2865 (c_common_read_pch): Do not read a c_pch_header, and do not restore
2866 the content of asm_out_file from the PCH.
2867 (c_common_print_pch_checksum): Remove.
2868 * c-opts.c (c_common_init): Print out executable_checksum directly.
2869
70f42967
SB
28702012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2871
2872 * c-target.def (objc_declare_unresolved_class_reference,
2873 objc_declare_class_definition): Add new hooks.
2874
a8781821
SB
28752012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2876
2877 * c-lex.c: Do not include output.h.
2878 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2879 Remove uses of ASM_OUTPUT_IDENT.
2880
9e1a8dd1
RR
28812012-06-15 Marc Glisse <marc.glisse@inria.fr>
2882
2883 PR c++/51033
2884 * c-common.h (c_build_vec_perm_expr): Move decl here.
2885 * c-common.c (c_build_vec_perm_expr): Move definition
2886 here.
2887
6f07a821
SB
28882012-06-06 Steven Bosscher <steven@gcc.gnu.org>
2889
2890 * c.opt (fconserve-space): Turn into a no-op.
2891
9faeb493 28922012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
2893
2894 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2895 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2896 both the start and end of the function.
2897
a4b7d13c
SB
28982012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2899
2900 * c-common.c: Do not include output.h.
2901 * c-pragma.c: Likewise.
2902
c265f413
SA
29032012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2904
2905 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2906 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2907 (lang_decl_name): Handle namespace decls.
2908
be7a421e
SB
29092012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2910
2911 * c-ada-spec.c: Do not include output.h.
2912 * c-semantics.c: Likewise.
2913
65de6659
JM
29142012-05-29 Joseph Myers <joseph@codesourcery.com>
2915
2916 * c-common.c: Fix typo.
2917
ca5f4331
MM
29182012-05-29 Michael Matz <matz@suse.de>
2919
2920 * c-common.h (c_expand_decl): Remove prototype.
2921
4f7f7aca
MLI
29222012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2923
2924 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2925 * c-opts.c (c_common_handle_option): Remove code handling
2926 warn_missing_braces.
2927
4a792f9b
PC
29282012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2929
2930 PR c++/25137
2931 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2932 -Wmissing_braces.
2933
650dc14a
DS
29342012-05-22 Dodji Seketeli <dodji@redhat.com>
2935
2936 PR c++/53322
2937 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2938
9b095bf1
MLI
29392012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2940
2941 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2942 * c-opts.c (c_common_handle_option): Do not handle explicitly
2943 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2944
0b2c4be5
DS
29452012-05-16 Dodji Seketeli <dodji@redhat.com>
2946
2947 PR preprocessor/7263
2948 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
2949 to cpp_classify_number. For diagnostics, use the precise location
2950 instead of the global input_location.
2951
a1bde5af
PC
29522012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2953
d02924ef 2954 PR c++/11856
a1bde5af
PC
2955 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2956
d1ede5f4
BS
29572012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2958
a1bde5af 2959 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 2960
f2bc201f
MLI
29612012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2962
2963 PR 53063
2964 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2965 Wreorder): Use LangEnabledBy.
2966 * c-opts.c (c_common_handle_option): Do not enable them
2967 explicitly. Call lang-specific generated functions.
2968 (c_common_post_options): Do not set them here.
2969
95744782
MLI
29702012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2971
2972 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2973 Wmissing-field-initializers,Wmissing-parameter-type,
2974 Wold-style-declaration,Woverride-init): Use EnabledBy.
2975 * c-opts.c (c_common_post_options): Do not set here explicitly.
2976
7d5a5747
MLI
29772012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2978
2979 PR 53063
2980 * c-opts.c (c_common_handle_option): Use handle_generated_option
2981 to enable sub-options.
2982
5a3c9cf2
PC
29832012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
2984
2985 PR c++/53158
2986 * c-common.c (warnings_for_convert_and_check): Use warning_at.
2987
3ac8781c
RG
29882012-05-10 Richard Guenther <rguenther@suse.de>
2989
2990 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2991 adjust commentary about TYPE_IS_SIZETYPE types.
2992
1e537948
MLI
29932012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2994
2995 PR c++/53261
2996 * c-common.c (warn_logical_operator): Check that argument of
2997 integer_zerop is not NULL.
2998
f2c4a785
MLI
29992012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3000
3001 PR c/43772
3002 * c-common.c (warn_logical_operator): Do not warn if either side
3003 is already true or false.
3004
50f305ca
MLI
30052012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3006
3007 PR c/51712
3008 * c-common.c (expr_original_type): New.
3009 (shorten_compare): Do not warn for enumeration types.
3010
0c3641b0
MLI
30112012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3012
3013 * c.opt (fpermissive): Add Var(flag_permissive).
3014
7edaa4d2
MG
30152012-04-30 Marc Glisse <marc.glisse@inria.fr>
3016
3017 PR c++/51033
3018 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3019 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3020
b9c8da34
DS
30212012-04-30 Dodji Seketeli <dodji@redhat.com>
3022
3023 Add -Wvarargs option
3024 * c.opt (Wvarargs): Define new option.
3025
e6c69da0
MLI
30262012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3027
3028 * c-common.c (check_function_arguments): Replace
3029 Wmissing-format-attribute with Wsuggest-attribute=format.
3030
90137d8f
MLI
30312012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3032
3033 * c.opt (Wsuggest-attribute=format): New. Alias of
3034 Wmissing-format-attribute.
3035 * c-format.c (decode_format_type): Replace
3036 Wmissing-format-attribute with Wsuggest-attribute=format.
3037 (check_function_format): Likewise.
3038
9faeb493 30392012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
3040
3041 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3042 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3043 * c.opt: Add Wliteral-suffix.
3044
c1771a20
MLI
30452012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3046
3047 PR c/44774
3048 * c.opt (Wpedantic): New.
3049 (pedantic): Alias Wpedantic.
3050 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3051 (c_common_post_options): Likewise.
3052 (sanitize_cpp_opts): Likewise.
3053 * c-lex.c (interpret_float): Likewise.
3054 * c-format.c (check_format_types): Likewise.
3055 * c-common.c (pointer_int_sum): Likewise.
3056 (c_sizeof_or_alignof_type): Likewise.
3057 (c_add_case_label): Likewise.
3058 (c_do_switch_warnings): Likewise.
3059 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3060
04b391c1
JM
30612012-04-15 Jason Merrill <jason@redhat.com>
3062
3063 PR c++/52818
3064 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3065 (C_STD_NAME): Distinguish between C++98 and C++11.
3066
ac868f29
EB
30672012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3068
3069 PR target/52624
3070 * c-common.h (uint16_type_node): Rename into...
3071 (c_uint16_type_node): ...this.
3072 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3073 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3074
fd4116f4
MLI
30752012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3076
3077 * c-common.c (warn_if_unused_value): Move definition to here.
3078 * c-common.h (warn_if_unused_value): Move declaration to here.
3079
573ac65e
WB
30802012-03-23 William Bader <williambader@hotmail.com>
3081
3082 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3083
552b8185
JM
30842012-03-20 Jason Merrill <jason@redhat.com>
3085
3086 * c-common.h (enum cxx_dialect): Add cxx1y.
3087 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3088 test.
3089 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3090 * c-opts.c (c_common_post_options): Likewise.
3091 (set_std_cxx1y): New.
3092 (c_common_handle_option): Call it.
3093 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3094
04398fa8
PC
30952012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3096
3097 PR c++/14710
3098 * c.opt ([Wuseless-cast]): Add.
3099
d2a12ae7
RG
31002012-03-16 Richard Guenther <rguenther@suse.de>
3101
3102 * c-pretty-print.c (pp_c_initializer_list): Adjust.
3103
a12bf402
MLI
31042012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3105
3106 PR c++/44783
3107 * c.opt (ftemplate-backtrace-limit) Add.
3108
5c30094f
RO
31092012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3110
3111 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3112 handling.
3113 * c-pragma.c (handle_pragma_extern_prefix): Remove.
3114 (init_pragma): Don't register extern_prefix.
3115
21fa2faf
RG
31162012-03-12 Richard Guenther <rguenther@suse.de>
3117
3118 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3119 (builtin_type_for_size): Likewise.
3120
e3793c6f
JJ
31212012-02-13 Jakub Jelinek <jakub@redhat.com>
3122
3123 PR c++/52215
3124 * c-common.c (sync_resolve_params): Don't decide whether to convert
3125 or not based on TYPE_SIZE comparison, convert whenever arg_type
3126 is unsigned INTEGER_TYPE.
3127
93286335
PC
31282012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
3129
3130 PR c/52118
3131 * c.opt ([Wunused-local-typedefs]): Fix description.
3132
7a421706
MS
31332012-01-24 Mike Stump <mikestump@comcast.net>
3134
3135 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3136 exactly.
3137
ba9b1f11
RG
31382012-01-18 Richard Guenther <rguenther@suse.de>
3139
3140 * c-opts.c (c_common_post_options): Reset LTO flags if
3141 we are about to generate a PCH.
3142
465406be
PC
31432012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3144
3145 PR c++/51777
3146 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3147 use pp_unsigned_wide_integer.
3148
aee15221
RG
31492012-01-10 Richard Guenther <rguenther@suse.de>
3150
3151 PR middle-end/51806
3152 * c-opts.c (c_common_handle_option): Move -Werror handling
3153 to language independent code.
3154
5720c0dc
RG
31552012-01-05 Richard Guenther <rguenther@suse.de>
3156
3157 PR middle-end/51764
3158 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3159 from common.opt.
3160
73ac190a
PC
31612011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
3162
3163 PR c++/51316
3164 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3165 of array types with an unknown bound.
3166
48b0b196
JM
31672011-12-20 Joseph Myers <joseph@codesourcery.com>
3168
3169 * c-common.c (flag_isoc99): Update comment to refer to C11.
3170 (flag_isoc1x): Change to flag_isoc11.
3171 * c-common.h (flag_isoc99): Update comment to refer to C11.
3172 (flag_isoc1x): Change to flag_isoc11.
3173 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3174 C11.
3175 * c-opts.c (set_std_c1x): Change to set_std_c11.
3176 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3177 Call set_std_c11.
3178 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3179 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3180 * c.opt (std=c1x): Change to std=c11. Document as non-draft
3181 standard.
3182 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3183 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3184 (std=gnu1x): Make alias of std=gnu11.
3185
d58d6eb5
JM
31862011-12-19 Jason Merrill <jason@redhat.com>
3187
3188 PR c++/51228
3189 * c-common.c (handle_transparent_union_attribute): Check the first
3190 field if the type is complete.
3191
b3908fcc
JW
31922011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3193
3194 PR libstdc++/51365
3195 * c-common.c (RID_IS_FINAL): Add.
3196 * c-common.h (RID_IS_FINAL): Add.
3197
fea3ca91
IS
31982011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3199
3200 * c.opt (fgnu-runtime): Provide full description.
3201 (fnext-runtime): Likewise.
3202 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3203
62bad7cd
AM
32042011-11-28 Andrew MacLeod <amacleod@redhat.com>
3205
3206 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3207 predefines in one place. Add LOCK_FREE predefines.
3208 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3209 new func.
3210
c466c4ff
AM
32112011-11-24 Andrew MacLeod <amacleod@redhat.com>
3212
3213 PR c/51256
9faeb493 3214 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 3215 conditions
9faeb493
UB
3216 (resolve_overloaded_atomic_exchange,
3217 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
3218 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3219 error_mark_node for error conditions.
9faeb493 3220
a5952633
RG
32212011-11-08 Richard Guenther <rguenther@suse.de>
3222
3223 PR middle-end/51010
3224 c-family/
3225
0a35513e
AH
32262011-11-07 Richard Henderson <rth@redhat.com>
3227 Aldy Hernandez <aldyh@redhat.com>
3228 Torvald Riegel <triegel@redhat.com>
3229
3230 Merged from transactional-memory.
3231
3232 * c-common.c (handle_tm_wrap_attribute,
3233 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3234 (struct c_common_reswords): Added __transaction* keywords.
3235 (struct c_common_attribute_table): Added transaction* and tm_regparm
3236 attributes.
3237 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3238 masks.
3239 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3240 find_tm_attribute): Declare.
3241
6d87092d
JM
32422011-11-07 Jason Merrill <jason@redhat.com>
3243
3244 PR c++/35688
3245 * c-common.c, c-common.h: Revert yesterday's changes.
3246
8e7860a1
JM
32472011-11-06 Jason Merrill <jason@redhat.com>
3248
3249 PR c++/35688
3250 * c-common.c (decl_has_visibility_attr): Split out from...
3251 (c_determine_visibility): ...here.
3252 * c-common.h: Declare it.
3253
d19fa6b5
JM
32542011-11-06 Joseph Myers <joseph@codesourcery.com>
3255
3256 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3257 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3258 type.
3259 (check_user_alignment): New. Split out of
3260 handle_aligned_attribute. Disallow integer constants with
3261 noninteger types. Conditionally allow zero.
3262 (handle_aligned_attribute): Use check_user_alignment.
3263 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3264
86951993
AM
32652011-11-06 Andrew MacLeod <amacleod@redhat.com>
3266 Richard Henderson <rth@redhat.com>
3267
3268 Merged from cxx-mem-model.
3269
3270 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 3271 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
3272 parameters that are the same type size.
3273 (get_atomic_generic_size): New. Find size of generic
3274 atomic function parameters and do typechecking.
3275 (add_atomic_size_parameter): New. Insert size into parameter list.
3276 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3277 either __atomic_exchange_n or external library call.
9faeb493 3278 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 3279 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 3280 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
3281 __atomic_load_n or an external library call.
3282 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3283 __atomic_store_n or an external library call.
3284 (resolve_overloaded_builtin): Handle new __atomic builtins.
3285
cf9e9959
EB
32862011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3287
3288 PR c++/50608
3289 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3290 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3291 <INDIRECT_REF>: Return the argument.
3292 <ARRAY_REF>: Remove special code for negative offset.
3293 Call fold_build_pointer_plus instead of size_binop.
3294 (fold_offsetof): Remove STOP_REF argument and adjust.
3295 * c-common.h (fold_offsetof_1): Declare.
3296 (fold_offsetof): Remove STOP_REF argument.
3297
25339f10
JM
32982011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3299
3300 PR c++/50810
3301 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3302 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3303 Wnarrowing for C++0x and C++98.
3304 * c.opt ([Wnarrowing]): Update.
3305
89401152
PC
33062011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
3307
3308 PR c++/44277
3309 * c.opt: Add Wzero-as-null-pointer-constant.
3310
97e3ad20
JM
33112011-10-31 Jason Merrill <jason@redhat.com>
3312
15694fdd
JM
3313 * c.opt (-fdeduce-init-list): Off by default.
3314
97e3ad20
JM
3315 PR c++/50920
3316 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3317 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3318 and -Wc++11-compat.
3319 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3320
fb9120e3
RAV
33212011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3322
3323 PR c++/30066
3324 * c.opt (fvisibility-inlines-hidden): Description change.
3325
3ce4f9e4
ESR
33262011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
3327
3328 Implement C++11 user-defined literals.
3329 * c-common.c (build_userdef_literal): New.
3330 * c-common.def: New tree code.
3331 * c-common.h (tree_userdef_literal): New tree struct and accessors.
3332 * c-lex.c (interpret_float): Add suffix parm.
3333 (c_lex_with_flags): Build literal tokens.
3334
5f53c243
PC
33352011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3336
3337 PR c++/50841
3338 Revert:
3339 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3340
3341 PR c++/50810
3342 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3343 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3344 Wnarrowing for C++0x and C++98.
3345 * c.opt ([Wnarrowing]): Update.
3346
263734e1
PC
33472011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3348
3349 PR c++/50810
3350 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3351 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3352 Wnarrowing for C++0x and C++98.
3353 * c.opt ([Wnarrowing]): Update.
3354
d2e312d7
PC
33552011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3356
3357 PR c++/45385
3358 * c-common.c (conversion_warning): Remove code looking for
3359 artificial operands.
3360
d17687f6
DS
33612011-10-18 Dodji Seketeli <dodji@redhat.com>
3362
3363 PR bootstrap/50760
3364 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 3365 !NO_IMPLICIT_EXTERN_C.
d17687f6 3366
fc8396e9
PC
33672011-10-17 Michael Spertus <mike_spertus@symantec.com>
3368
3369 * c-common.c (c_common_reswords): Add __bases,
3370 __direct_bases.
3371 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3372
33732011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3374
3375 PR c++/50757
3376 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3377
847e697a
TT
33782011-10-15 Tom Tromey <tromey@redhat.com>
3379 Dodji Seketeli <dodji@redhat.com>
3380
3381 * c.opt (fdebug-cpp): New option.
3382 * c-opts.c (c_common_handle_option): Handle the option.
3383 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3384 output stream in parameter. Factorized from ...
3385 (maybe_print_line): ... this. Dump location debug information when
3386 -fdebug-cpp is in effect.
3387 (print_line_1): New static function. Takes an output stream in
3388 parameter. Factorized from ...
3389 (print_line): ... here. Dump location information when -fdebug-cpp
3390 is in effect.
3391 (scan_translation_unit): Dump location information when
3392 -fdebug-cpp is in effect.
3393
92582b75
TT
33942011-10-15 Tom Tromey <tromey@redhat.com>
3395 Dodji Seketeli <dodji@redhat.com>
3396
3397 * c.opt (ftrack-macro-expansion): New option. Handle it with and
3398 without argument.
3399 * c-opts.c (c_common_handle_option)<case
3400 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3401 cases. Handle -ftrack-macro-expansion with and without argument.
3402
46427374
TT
34032011-10-15 Tom Tromey <tromey@redhat.com>
3404 Dodji Seketeli <dodji@redhat.com>
3405
3406 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3407 (print_line, cb_define, do_line_change): Adjust to avoid touching
3408 the internals of struct line_map. Use the public API instead.
3409 * c-pch.c (c_common_read_pch): Likewise.
3410 * c-lex.c (fe_file_change): Likewise.
3411
fc8396e9
PC
34122011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
3413
3414 PR c++/17212
3415 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3416
34172011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
3418
3419 PR c++/33067
3420 * c-pretty-print.c (pp_c_floating_constant): Output
3421 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3422
e79983f4
MM
34232011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3424
3425 * c-common.c (def_builtin_1): Delete old interface with two
3426 parallel arrays to hold standard builtin declarations, and replace
3427 it with a function based interface that can support creating
3428 builtins on the fly in the future. Change all uses, and poison
3429 the old names. Make sure 0 is not a legitimate builtin index.
3430 * c-omp.c (c_finish_omp_barrier): Ditto.
3431 (c_finish_omp_taskwait): Ditto.
3432 (c_finish_omp_flush): Ditto.
3433
6637388f
TG
34342011-10-11 Tristan Gingold <gingold@adacore.com>
3435
3436 * c.opt: (fallow-parameterless-variadic-functions): New.
3437
3797cb21
DS
34382011-09-08 Dodji Seketeli <dodji@redhat.com>
3439
3440 PR c++/33255 - Support -Wunused-local-typedefs warning
3441 * c-common.h (struct c_language_function::local_typedefs): New
3442 field.
9faeb493
UB
3443 (record_locally_defined_typedef, maybe_record_typedef_use)
3444 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 3445 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
3446 (maybe_record_typedef_use)
3447 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
3448 * c.opt: Declare new -Wunused-local-typedefs flag.
3449
693ddb1b
EB
34502011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3451
3452 PR middle-end/50266
3453 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3454 computations.
3455
830c740f
RG
34562011-09-05 Richard Guenther <rguenther@suse.de>
3457
3458 * c-common.c (complete_array_type): Use ssize_int (-1) instead
3459 of integer_minus_one_node for empty array upper bounds.
3460
892a371f
DS
34612011-08-28 Dodji Seketeli <dodji@redhat.com>
3462
3463 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3464 it's the first time it's being called on this main TU.
3465
0e3fdb48
RB
34662011-08-24 Richard Guenther <rguenther@suse.de>
3467
3468 PR c/49396
3469 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3470
34712011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
3472
3473 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3474 defined in cpp_init_builtins and c_cpp_builtins.
3475
d4a83c10
JM
34762011-08-19 Joseph Myers <joseph@codesourcery.com>
3477
3478 * c-common.c (c_common_reswords): Add __builtin_complex.
3479 * c-common.h (RID_BUILTIN_COMPLEX): New.
3480
bbceee64
JM
34812011-08-18 Joseph Myers <joseph@codesourcery.com>
3482
3483 * c-common.c (c_common_reswords): Add _Noreturn.
3484 (keyword_is_function_specifier): Handle RID_NORETURN.
3485 * c-common.h (RID_NORETURN): New.
3486
0e3a99ae
AS
34872011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3488
3489 * c-common.c (unsafe_conversion_p): New function. Check if it is
3490 unsafe to convert an expression to the type.
3491 (conversion_warning): Adjust, use unsafe_conversion_p.
3492 * c-common.h (unsafe_conversion_p): New function declaration.
3493
20906c66
JJ
34942011-08-02 Jakub Jelinek <jakub@redhat.com>
3495
3496 * c-common.h (c_finish_omp_atomic): Adjust prototype.
3497 (c_finish_omp_taskyield): New prototype.
3498 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3499 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3500 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
3501 or RHS1 have side-effects, evaluate those too in the right spot,
3502 if it is a decl and LHS is also a decl, error out if they
3503 aren't the same.
3504 (c_finish_omp_taskyield): New function.
3505 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3506 * c-pragma.c (omp_pragmas): Add taskyield.
3507 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3508 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3509 PRAGMA_OMP_CLAUSE_MERGEABLE.
3510
770e5a2e
DS
35112011-07-25 Dodji Seketeli <dodji@redhat.com>
3512
3513 * c-common.h (set_underlying_type): Remove parm name from
3514 declaration.
3515
1baae426
RG
35162011-07-25 Romain Geissler <romain.geissler@gmail.com>
3517
3518 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 3519
fcb21722
JM
35202011-07-22 Jason Merrill <jason@redhat.com>
3521
76f86d00
JM
3522 PR c++/49793
3523 * c.opt (Wnarrowing): New.
3524
3a636414
JM
3525 PR c++/30112
3526 * c-common.h: Declare c_linkage_bindings.
3527 * c-pragma.c (handle_pragma_redefine_extname): Use it.
3528
fcb21722
JM
3529 PR c++/49813
3530 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3531 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3532 as flag_isoc99 for 'restrict'.
3533 (pp_c_specifier_qualifier_list): Likewise for _Complex.
3534
02614448
ILT
35352011-07-21 Ian Lance Taylor <iant@google.com>
3536
3537 PR middle-end/49705
3538 * c-common.c (c_disable_warnings): New static function.
3539 (c_enable_warnings): New static function.
3540 (c_fully_fold_internal): Change local unused_p to bool. Call
3541 c_disable_warnings and c_enable_warnings rather than change
3542 c_inhibit_evaluation_warnings.
3543
34429675
JM
35442011-07-20 Jason Merrill <jason@redhat.com>
3545
3546 PR c++/6709 (DR 743)
3547 PR c++/42603 (DR 950)
3548 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3549 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3550 (CPP_DECLTYPE): New.
3551 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3552
5d49b6a7
RG
35532011-07-19 Richard Guenther <rguenther@suse.de>
3554
3555 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3556 * c-omp.c (c_finish_omp_for): Likewise.
3557
e84a58ff
EB
35582011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3559
3560 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3561 body on the next line.
3562
329af3c7
JM
35632011-07-08 Jason Merrill <jason@redhat.com>
3564
4063e61b
JM
3565 PR c++/45437
3566 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3567
329af3c7
JM
3568 PR c++/49673
3569 * c-common.c (c_apply_type_quals_to_decl): Don't check
3570 TYPE_NEEDS_CONSTRUCTING.
3571
1a072294
RG
35722011-07-06 Richard Guenther <rguenther@suse.de>
3573
3574 * c-common.c (c_common_nodes_and_builtins):
3575 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3576
fce5dddd
RG
35772011-07-05 Richard Guenther <rguenther@suse.de>
3578
3579 * c-common.c (c_common_nodes_and_builtins): Build all common
3580 tree nodes first.
3581
45d439ac
JJ
35822011-06-27 Jakub Jelinek <jakub@redhat.com>
3583
56300785
JJ
3584 * c-common.h (c_tree_chain_next): New static inline function.
3585
45d439ac
JJ
3586 * c-common.c (check_builtin_function_arguments): Handle
3587 BUILT_IN_ASSUME_ALIGNED.
3588
e0a8ecf2
AM
35892011-06-21 Andrew MacLeod <amacleod@redhat.com>
3590
3591 * c-common.c: Add sync_ or SYNC__ to builtin names.
3592 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
3593
35942011-06-20 Pierre Vittet <piervit@pvittet.com>
3595
3596 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3597 handler.
3598 (gen_pragma_handler): New union.
3599 (internal_pragma_handler): New type.
3600 (c_register_pragma_with_data)
3601 (c_register_pragma_with_expansion_and_data): New functions.
3602
3603 * c-pragma.c (registered_pragmas, c_register_pragma_1)
3604 (c_register_pragma, c_register_pragma_with_expansion)
3605 (c_invoke_pragma_handler): Changed to work with
3606 internal_pragma_handler.
3607 (c_register_pragma_with_data)
3608 (c_register_pragma_with_expansion_and_data): New functions.
3609
677f3fa8
JM
36102011-06-14 Joseph Myers <joseph@codesourcery.com>
3611
3612 * c-common.c: Include common/common-target.h.
3613 (handle_section_attribute): Use
3614 targetm_common.have_named_sections.
3615 * c-cppbuiltin.c: Include common/common-target.h.
3616 (c_cpp_builtins): Use targetm_common.except_unwind_info.
3617
d7fc8c14
RG
36182011-06-10 Richard Guenther <rguenther@suse.de>
3619
3620 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3621 to print a IDENTIFIER_NODE.
3622
10e48e39
RO
36232011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3624 Joseph Myers <joseph@codesourcery.com>
3625
3626 * c.opt (fbuilding-libgcc): New option.
3627 * c-cppbuiltin.c (c_cpp_builtins): Define
3628 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3629
6976ae51
JM
36302011-06-07 Jason Merrill <jason@redhat.com>
3631
3ff60975
JM
3632 * c-common.c (max_tinst_depth): Lower default to 900.
3633
6976ae51
JM
3634 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3635
009db074
RG
36362011-06-07 Richard Guenther <rguenther@suse.de>
3637
3638 * c-common.c (c_common_nodes_and_builtins): Do not set
3639 size_type_node or call set_sizetype.
3640
b4592b92
DS
36412011-06-07 Dodji Seketeli <dodji@redhat.com>
3642
3643 PR debug/49130
3644 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 3645 type when using pointer comparison to compare types.
b4592b92 3646
014ab419
JW
36472011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
3648
3649 * c.opt: Add -Wdelete-non-virtual-dtor.
3650 * c-opts.c (c_common_handle_option): Include it in -Wall.
3651
4f60111f
NF
36522011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3653
3654 PR bootstrap/49190
3655
3656 Revert:
3657 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3658
3659 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3660 not tree_common.
3661
4cc4f2f4
JJ
36622011-05-27 Jakub Jelinek <jakub@redhat.com>
3663
3664 PR c++/49165
3665 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3666 C++ don't call c_common_truthvalue_conversion on void type arms.
3667
38e01f9e
NF
36682011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3669
3670 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3671 (stmt_list_stack): Define.
3672 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3673 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3674
92e948a8
NF
36752011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3676
3677 * c-common.c (warning_candidate_p): Check for BLOCKs.
3678
a2fc3e63
NF
36792011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3680
3681 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3682 not tree_common.
3683
0957c029
JJ
36842011-05-25 Jakub Jelinek <jakub@redhat.com>
3685
3686 * c-common.c (def_fn_type): Remove extra va_end.
3687
828fb3ba
JM
36882011-05-23 Jason Merrill <jason@redhat.com>
3689
3690 PR c++/48106
3691 * c-common.c (c_common_get_narrower): New.
3692 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3693
dde05067
NF
36942011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3695
3696 * c-common.h (check_function_arguments): Tweak prototype of
3697 check_function_arguments.
3698 * c-common.c (check_function_arguments): Likewise. Adjust
3699 calls to check_function_nonnull, check_function_format, and
3700 check_function_sentinel.
3701 (check_function_sentinel): Take a FUNCTION_TYPE rather than
3702 separate attributes and typelist arguments. Use
3703 FOREACH_FUNCTION_ARGS to iterate over argument types.
3704
3c0d13bf
PC
37052011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3706
3707 * c-common.c (c_common_reswords): Reorder.
3708 * c-common.h (rid): Likewise.
3709
8242dd04
NF
37102011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3711
3712 * c-common.c (def_fn_type): Don't call build_function_type, call
3713 build_function_type_array or build_varargs_function_type_array
3714 instead.
3715 (c_common_nodes_and_builtins): Likewise.
3716
3d528853
NF
37172011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3718
3719 * c-common.c (c_add_case_label): Omit the loc argument to
3720 build_case_label.
3721 * c-common.h (build_case_label): Remove.
3722 * c-semantics.c (build_case_label): Remove.
3723
a04a722b
JM
37242011-05-05 Joseph Myers <joseph@codesourcery.com>
3725
3726 * c-objc.h (objc_start_method_definition): Update prototype.
3727 * stub-objc.c (objc_start_method_definition): Add extra parameter.
3728
e19a18d4
NF
37292011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3730
3731 * c-common.c (check_main_parameter_types): Reindent. Don't use
3732 TYPE_ARG_TYPES directly.
3733 (handle_nonnull_attribute): Likewise.
3734 (sync_resolve_params): Likewise.
3735 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
3736 to check_format_string.
3737 (handle_format_attribute): Likewise.
3738 (check_format_string): Take a function type to examine instead of
3739 a type list. Use a function_arg_iterator to step through argument
3740 types.
3741
c62c040f
RG
37422011-05-04 Richard Guenther <rguenther@suse.de>
3743
3744 * c-common.c (fix_string_type): Use size_int for index type bounds.
3745 (start_fname_decls): Do not pass NULL to build_int_cst.
3746 (c_init_attributes): Likewise.
3747 * c-lex.c (c_lex_with_flags): Likewise.
3748
c12ff9d8
JM
37492011-04-27 Jason Merrill <jason@redhat.com>
3750
3751 * c-common.c (make_tree_vector_from_list): New.
3752 * c-common.h: Declare it.
3753
304dfbe3
RG
37542011-04-26 Richard Guenther <rguenther@suse.de>
3755
3756 PR preprocessor/48248
3757 * c-ppoutput.c (maybe_print_line): Always optimize newlines
3758 for output size with -P.
3759
3c0d13bf
PC
37602011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3761
3762 * c-common.c (struct c_common_resword): Add __underlying_type.
3763 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3764
04695783
JM
37652011-04-20 Jim Meyering <meyering@redhat.com>
3766
3767 * c-format.c (init_dollar_format_checking): Remove useless
3768 if-before-free.
3769
0dc33c3c
NP
37702011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3771
3772 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 3773 (objc_detect_field_duplicates): New.
0dc33c3c 3774 * stub-objc.c: Likewise.
3c0d13bf 3775
c59633d9
NP
37762011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3777
3778 * stub-objc.c (objc_declare_protocols): Renamed to
3779 objc_declare_protocol.
3780 * c-objc.h: Likewise.
3c0d13bf 3781
32dabdaf
NP
37822011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3783
3784 * stub-objc.c (objc_declare_class): Updated argument name.
3785
81f653d6
NF
37862011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3787
3788 * c-common.h (c_common_init_ts): Declare.
3789 * c-common.c (c_common_init_ts): Define.
3790
eb345401
NP
37912011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3792
3793 * c-objc.h (objc_build_message_expr): Updated prototype.
3794 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 3795
a358e188
MJ
37962011-04-12 Martin Jambor <mjambor@suse.cz>
3797
3798 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3799 of cgraph_node.
3800
e6313a78
RG
38012011-04-11 Richard Guenther <rguenther@suse.de>
3802
3803 * c-common.c (complete_array_type): Build a range type of
3804 proper type.
3805
dcf0c47e
NF
38062011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3807
3808 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3809 (handle_type_generic_attribute): Likewise.
3810
1ee44b26
JM
38112011-04-07 Jason Merrill <jason@redhat.com>
3812
3813 PR c++/48450
3814 * c-common.c (c_common_truthvalue_conversion): Don't ignore
3815 conversion from C++0x scoped enum.
3816
acce4e77
JM
38172011-04-06 Joseph Myers <joseph@codesourcery.com>
3818
3819 * c-target-def.h: New file.
3820 * c-target.def: New file.
3821 * c-target.h: New file.
3822 * c-common.c (targetcm): Don't define here.
3823 * c-common.h (default_handle_c_option): Declare.
3824 * c-format.c: Include c-target.h instead of target.h.
3825 * c-opts.c: Include c-target.h instead of target.h. Explicitly
3826 include tm.h.
3827 (default_handle_c_option): Move from targhooks.c.
3828
e2eefb55
JJ
38292011-03-29 Jakub Jelinek <jakub@redhat.com>
3830
3831 PR preprocessor/48248
3832 * c-ppoutput.c (print): Add src_file field.
3833 (init_pp_output): Initialize it.
3834 (maybe_print_line): Don't optimize by adding up to 8 newlines
3835 if map->to_file and print.src_file are different file.
3836 (print_line): Update print.src_file.
3837
ba78087b
KT
38382011-03-25 Kai Tietz <ktietz@redhat.com>
3839
3840 * c-ada-spec.c (compare_comment): Use filename_cmp
3841 instead of strcmp for filename.
3842
0edf1bb2
JL
38432011-03-25 Jeff Law <law@redhat.com>
3844
adfac8df 3845 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 3846
c7dc8804
JM
38472011-03-25 Jason Merrill <jason@redhat.com>
3848
3849 * c.opt: Add -std=c++03.
3850
d1d879b1
EB
38512011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3852
3853 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3854
62d784f7
KT
38552011-03-17 Kai Tietz
3856
3857 PR target/12171
5050afdf
KT
3858 * c-pretty-print.c (pp_c_specifier_qualifier_list):
3859 Display allowed attributes for function pointer types.
3860 (pp_c_attributes_display): New function to display
3861 attributes having affects_type_identity flag set to true.
3862 * c-pretty-print.h (pp_c_attributes_display): New prototype.
3863
62d784f7
KT
3864 * c-common.c (c_common_attribute_table):
3865 Add new element.
3866 (c_common_format_attribute_table): Likewise.
3867
82d37118
JM
38682011-03-18 Jason Merrill <jason@redhat.com>
3869
49a000c3
JM
3870 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3871 * c-common.h: Don't declare it here.
3872 * c-common.c: Or define it here.
3873 * c-opts.c (c_common_handle_option): Or set it here.
3874
82d37118
JM
3875 PR c++/35315
3876 * c-common.c (handle_transparent_union_attribute): Don't
3877 make a duplicate type in C++.
3878
17bc631c
JM
38792011-03-15 Jason Merrill <jason@redhat.com>
3880
3881 * c-common.c (max_constexpr_depth): New.
3882 * c-common.h: Declare it.
3883 * c-opts.c (c_common_handle_option): Set it.
3884 * c.opt (fconstexpr-depth): New option.
3885
1b9b91a6
JM
38862011-03-11 Jason Merrill <jason@redhat.com>
3887
f231b5ff
JM
3888 * c-common.c (attribute_takes_identifier_p): Add missing const.
3889
1b9b91a6
JM
3890 PR c++/46803
3891 * c-common.c (attribute_takes_identifier_p): Assume that an
3892 unknown attribute takes an identifier.
3893
a19e4d44
NF
38942011-03-07 Nathan Froyd <froydnj@codesourcery.com>
3895
3896 PR c/47786
3897 * c-common.c (c_type_hash): Call list_length instead of iterating
3898 through DECL_CHAIN. Rename 'i' to 'n_elements'.
3899
982d62f6
JJ
39002011-02-19 Jakub Jelinek <jakub@redhat.com>
3901
3902 PR c/47809
3903 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3904
0a256240
NP
39052011-02-17 Iain Sandoe <iains@gcc.gnu.org>
3906
3907 * c.opt (fobjc-abi-version=) New.
3908 (fobjc-nilcheck): New.
3909
ba9e6dd5
NF
39102011-02-03 Nathan Froyd <froydnj@codesourcery.com>
3911
3912 PR c++/46890
3913 * c-common.h (keyword_is_decl_specifier): Declare.
3914 * c-common.c (keyword_is_decl_specifier): Define.
3915 (keyword_is_function_specifier): New function.
3916
7273813a
JJ
39172011-01-26 Jakub Jelinek <jakub@redhat.com>
3918
3919 PR c/47473
3920 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3921 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3922 REAL_TYPE.
3923
908ef79b
AC
39242011-01-26 Arnaud Charlet <charlet@adacore.com>
3925
3926 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3927
237e9384
JJ
39282011-01-26 Jakub Jelinek <jakub@redhat.com>
3929
3930 PR pch/47430
3931 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3932 after init_c_lex if pch_file is set.
3933
47ea1edf
DK
39342011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3935
d4dba752 3936 PR c++/43601
47ea1edf
DK
3937 * c.opt (-fkeep-inline-dllexport): New switch.
3938
2aa9c6ae
RG
39392011-01-12 Richard Guenther <rguenther@suse.de>
3940
3941 PR middle-end/32511
3942 * c-common.c (handle_weak_attribute): Warn instead of error
3943 on declaring an inline function weak.
3944
7bd11157
TT
39452011-01-05 Tom Tromey <tromey@redhat.com>
3946
3947 * c-common.h (lvalue_error): Update.
3948 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
3949 not error.
3950
0e66e494 39512010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 3952
b4f588c4
NP
3953 PR objc/47075
3954 * c-objc.h (objc_finish_message_expr): Added argument to
3955 prototype.
3956
f4da8dce
NF
39572010-12-22 Nathan Froyd <froydnj@codesourcery.com>
3958
3959 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3960 Use prototype_p.
3961
46270f14
NP
39622010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
3963
3964 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 3965 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 3966
4816c593
NF
39672010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3968
3969 * c-common.h (readonly_error): Declare.
3970 * c-common.c (readonly_error): Define.
3971
7a6daeb0
NF
39722010-12-09 Nathan Froyd <froydnj@codesourcery.com>
3973
3974 * c-common.h (invalid_indirection_error): Declare.
3975 * c-common.c (invalid_indirection_error): Define.
3976
892f6119
RG
39772010-12-03 Richard Guenther <rguenther@suse.de>
3978
3979 PR c/46745
3980 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3981 (pp_c_unary_expression): Likewise.
3982 (pp_c_expression): Likewise.
3983
6c39e757
NP
39842010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
3985
3986 * c-common.h (objc_finish_function): New.
3987 (objc_non_volatilized_type): Removed.
3988 (objc_type_quals_match): Removed.
3989 * stub-objc.c (objc_finish_function): New.
3990 (objc_non_volatilized_type): Removed.
3991 (objc_type_quals_match): Removed.
9faeb493 3992
7c475d11
JM
39932010-11-30 Joseph Myers <joseph@codesourcery.com>
3994
3995 * c-common.h (parse_optimize_options): Declare.
3996 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3997 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3998
71f3e391
JM
39992010-11-29 Joseph Myers <joseph@codesourcery.com>
4000
4001 * c-opts.c (check_deps_environment_vars): Use getenv instead of
4002 GET_ENVIRONMENT.
4003 * c-pch.c (O_BINARY): Don't define here.
4004 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4005
d5fabb58
JM
40062010-11-25 Joseph Myers <joseph@codesourcery.com>
4007
4008 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4009 targetm.except_unwind_info.
4010
299404a1
JM
40112010-11-23 Joseph Myers <joseph@codesourcery.com>
4012
4013 * c-opts.c (c_common_handle_option): Pass location to
4014 set_struct_debug_option.
4015
c98cd5bf
JM
40162010-11-23 Joseph Myers <joseph@codesourcery.com>
4017
4018 * c-common.c (visibility_options): Move from ../opts.c.
4019 * c-common.h (struct visibility_flags, visibility_options):
4020 Declare here.
4021 * c-opts.c (finish_options): Rename to c_finish_options.
4022 (c_common_init): Update call to finish_options.
4023
a9546771
NP
40242010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4025
4026 PR objc/34033
4027 * c-lex.c (lex_string): Check that each string in an Objective-C
4028 string concat sequence starts with either one or zero '@', and
4029 that there are no spurious '@' signs at the end.
4030
24a57808
JM
40312010-11-20 Joseph Myers <joseph@codesourcery.com>
4032
4033 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4034 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4035 HANDLE_PRAGMA_VISIBILITY.
4036 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4037 HANDLE_PRAGMA_VISIBILITY): Don't define.
4038 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4039
a9aa2c3a
NF
40402010-11-20 Nathan Froyd <froydnj@codesourcery.com>
4041
4042 PR c++/16189
4043 PR c++/36888
4044 PR c++/45331
4045 * c-common.h (keyword_begins_type_specifier): Declare.
4046 (keyword_is_storage_class_specifier): Declare.
4047 (keyword_is_type_qualifier): Declare.
4048 * c-common.c (keyword_begins_type_specifier): New function.
4049 (keyword_is_storage_class_specifier): New function.
4050 (keyword_is_type_qualifier): Declare.
4051
5386338c
JM
40522010-11-19 Joseph Myers <joseph@codesourcery.com>
4053
4054 PR c/46547
4055 * c-common.c (in_late_binary_op): Define.
4056 (c_common_truthvalue_conversion): Check in_late_binary_op before
4057 calling c_save_expr.
4058 * c-common.h (in_late_binary_op): Declare.
4059
69ccdddb
JM
40602010-11-19 Joseph Myers <joseph@codesourcery.com>
4061
4062 * c-opts.c (c_common_handle_option): Update calls to
4063 set_struct_debug_option.
4064
6b192a09
NP
40652010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
4066
4067 * c-common.h (objc_declare_protocols): Added additional argument.
4068 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 4069
fb52b50a
NF
40702010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4071
4072 PR c/33193
4073 * c-common.h (build_real_imag_expr): Declare.
4074 * c-semantics.c (build_real_imag_expr): Define.
4075
b37421c6
JM
40762010-11-17 Joseph Myers <joseph@codesourcery.com>
4077
4078 * c-opts.c (c_common_parse_file): Take no arguments.
4079 * c-common.h (c_common_parse_file): Update prototype.
4080
07078664
JJ
40812010-11-16 Jakub Jelinek <jakub@redhat.com>
4082
4083 PR c++/46401
4084 * c-common.c (warning_candidate_p): Don't track non-const calls
4085 or STRING_CSTs.
4086
c6a13190
ILT
40872010-11-15 Ian Lance Taylor <iant@google.com>
4088
4089 * c-lex.c (init_c_lex): Set macro debug callbacks if
4090 flag_dump_go_spec is set.
4091
925e8657
NP
40922010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4093
4094 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4095 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4096
bb0a9581
NF
40972010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4098
4099 PR preprocessor/45038
4100 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4101 dialects.
4102
c5fa0890
JM
41032010-11-12 Joseph Myers <joseph@codesourcery.com>
4104
4105 * c-common.h (c_family_lang_mask): Declare.
4106 * c-opts.c (c_family_lang_mask): Make extern.
4107 * c-pragma.c (handle_pragma_diagnostic): Use
4108 control_warning_option.
4109
a4d8c676
JM
41102010-11-12 Joseph Myers <joseph@codesourcery.com>
4111
4112 * c-common.c (parse_optimize_options): Update call to
4113 decode_options.
4114 * c-common.h (c_common_handle_option): Update prototype.
4115 * c-opts.c (c_common_handle_option): Take location_t parameter and
4116 pass it to other functions.
4117
f954bd2c
JM
41182010-11-11 Joseph Myers <joseph@codesourcery.com>
4119
4120 * c-opts.c (warning_as_error_callback): Remove.
4121 (c_common_initialize_diagnostics): Don't call
4122 register_warning_as_error_callback.
4123 (c_common_handle_option): Handle -Werror=normalized= here.
4124
d8a07487
JM
41252010-11-10 Joseph Myers <joseph@codesourcery.com>
4126
4127 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4128 in diagnostic.
4129 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4130 letter.
4131 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4132 Remove trailing '.' from diagnostics.
4133 * c.opt (Wwrite-strings_: Avoid '`' in help text.
4134
d5478783
JM
41352010-11-10 Joseph Myers <joseph@codesourcery.com>
4136
4137 * c-common.c (parse_optimize_options): Pass global_dc to
4138 decode_options.
4139 * c-opts.c (c_common_handle_option): Pass &global_options to
4140 set_Wstrict_aliasing.
4141 * c.opt (v): Don't mark Common or document here.
4142
91ebb981
IS
41432010-11-06 Iain Sandoe <iains@gcc.gnu.org>
4144
4145 PR target/44981
4146 * c-format.c (format_type): New type gcc_objc_string_format_type.
4147 (valid_stringptr_type_p): New.
4148 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 4149 (check_format_string): Pass expected type, use
91ebb981
IS
4150 valid_stringptr_type_p (), check that the format string types are
4151 consistent with the format specification.
4152 (decode_format_attr): Warn if NSString is used outside objective-c.
4153 (format_types_orig): Add NSString.
4154 (format_name): New.
4155 (format_flags): New.
4156 (check_format_arg): Handle format strings requiring an external parser.
4157 first_target_format_type: New variable.
4158 (handle_format_attribute): Set up first_target_format_type, pass the
4159 expected format arg string type to check_format_string().
4160 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
4161 * stub-objc.c (objc_string_ref_type_p): New.
4162 (objc_check_format_arg): New.
4163
bede2adc
NP
41642010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
4165
9faeb493 4166 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
4167 * c-common.h (objc_build_class_component_ref): New.
4168 * stub-objc.c (objc_build_class_component_ref): New.
4169
9a179d01
NP
41702010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4171
4172 * c.opt (Wproperty-assign-default): New option.
4173
22d8d616
NP
41742010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4175
4176 Implemented -fobjc-std=objc1 flag.
4177 * c.opt (fobjc-std=objc1): New option.
4178
2debdb4f
NP
41792010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
4180
4181 Implemented format and noreturn attributes for Objective-C methods.
4182 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4183 attribute for Objective-C methods.
4184
ec52b111
JM
41852010-10-31 Jason Merrill <jason@redhat.com>
4186
4187 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4188 EXPR_LOC_OR_HERE.
4189
46a88c12
NP
41902010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4191
4192 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4193 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4194 (objc_add_property_declaration): Removed arguments for copies and
4195 ivar.
4196 (objc_build_getter_call): Renamed to
4197 objc_maybe_build_component_ref.
4198 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4199 (objc_is_property_ref): New.
4200 * c-common.c (c_common_reswords): Removed copies and ivar.
4201 * stub-objc.c (objc_add_property_declaration): Removed arguments
4202 for copies and ivar.
4203 (objc_build_getter_call): Renamed to
4204 objc_maybe_build_component_ref.
4205 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4206 (objc_is_property_ref): New.
9faeb493 4207
1e4bf85b
AC
42082010-10-29 Arnaud Charlet <charlet@adacore.com>
4209 Matthew Gingell <gingell@adacore.com>
4210
4211 * c-ada-spec.c (separate_class_package): New function.
4212 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4213 name of their enclosing package.
4214 (print_ada_declaration): Use separate_class_package.
4215
81f0bab2
JM
42162010-10-27 Jason Merrill <jason@redhat.com>
4217
2b08f2c5
JM
4218 * c-common.c (c_common_reswords): Add __is_literal_type.
4219 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4220
81f0bab2
JM
4221 * c-common.c (check_case_value): Remove special C++ code.
4222
200290f2
NP
42232010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4224
4225 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4226 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4227 and RID_LAST_PATTR.
4228 (objc_add_property_declaration): Added additional arguments.
4229 (objc_property_attribute_kind): Removed.
4230 (objc_set_property_attr): Removed.
4231 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4232 copy and nonatomic.
4233 * stub-objc.c (objc_add_property_declaration): Added additional
4234 arguments.
4235 (objc_set_property_attr): Removed.
9faeb493 4236
f614132b
NP
42372010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4238
4239 * c-common.h (objc_add_property_variable): Renamed to
4240 objc_add_property_declaration. Added location argument.
4241 * stub-objc.c (objc_add_property_variable): Same change.
4242
b8a18805
NP
42432010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4244
4245 * c-common.h (objc_maybe_printable_name): New.
4246 * stub-objc.c (objc_maybe_printable_name): New.
4247
30cd1c5d
AS
42482010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4249 Andrew Pinski <pinskia@gmail.com>
4250
4251 * c-common.h (c_common_mark_addressable_vec): Declare.
4252 * c-common.c (c_common_mark_addressable_vec): New function.
4253
249a82c4
NP
42542010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4255
4256 * c-common.h (objc_set_method_type): Removed.
4257 (objc_add_method_declaration): Added boolean argument.
4258 (objc_start_method_definition): Same change.
4259 (objc_build_method_signature): Same change.
4260 * stub-objc.c (objc_set_method_type): Removed.
4261 (objc_add_method_declaration): Added boolean argument.
4262 (objc_start_method_definition): Same change.
4263 (objc_build_method_signature): Same change.
4264
977e30bc
NP
42652010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4266
4267 * c-common.h (finish_file): Removed.
4268 (objc_write_global_declarations): New.
4269 * c-opts.c (c_common_parse_file): Do not call finish_file.
4270 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 4271
da57d1b9
NP
42722010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4273
4274 Implemented parsing @synthesize and @dynamic for
4275 Objective-C/Objective-C++.
4276 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4277 (objc_add_synthesize_declaration): New.
4278 (objc_add_dynamic_declaration): New.
4279 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4280 * stub-objc.c (objc_add_synthesize_declaration): New.
4281 (objc_add_dynamic_declaration): New.
9faeb493 4282
0069111f
MM
42832010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4284
4285 PR target/46041
4286 * c-cppbuiltin.c (mode_has_fma): Move function here from
4287 builtins.c. Don't use the fma optab, instead just use the
4288 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4289 using -save-temps.
4290
e426b47b
NP
42912010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4292
4293 Merge from 'apple/trunk' branch on FSF servers.
0069111f 4294
e426b47b
NP
4295 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4296
9faeb493 4297 Radar 4330422
e426b47b
NP
4298 * c-common.h (objc_non_volatilized_type): New declaration
4299 * stub-objc.c (objc_non_volatilized_type): New stub.
4300
90fbfdc3
NP
43012010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4302
e426b47b 4303 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
4304
4305 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4306
9faeb493 4307 Radar 4133425
90fbfdc3 4308 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 4309 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 4310
c37d8c30
IS
43112010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4312
4313 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4314 * c-common.h (enum rid): Add RID_AT_PACKAGE.
4315 (objc_ivar_visibility_kind): New enum.
4316 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 4317 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
4318 visibility enum.
4319
1b1562a5
MM
43202010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4321
4322 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4323 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4324 has the appropriate fma builtins.
4325 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4326
668ea4b1
IS
43272010-10-14 Iain Sandoe <iains@gcc.gnu.org>
4328
1b1562a5 4329 merge from FSF apple 'trunk' branch.
668ea4b1 4330 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 4331
668ea4b1
IS
4332 Radars 4436866, 4505126, 4506903, 4517826
4333 * c-common.c (c_common_resword): Define @property and its attributes.
4334 * c-common.h: Define property attribute enum entries.
4335 (OBJC_IS_PATTR_KEYWORD): New.
4336 (objc_property_attribute_kind): New enum.
4337 Declare objc_set_property_attr (), objc_add_property_variable (),
4338 objc_build_getter_call () and objc_build_setter_call ().
4339 * stub-objc.c (objc_set_property_attr): New stub.
4340 (objc_add_property_variable): Likewise.
4341 (objc_build_getter_call): Likewise.
4342 (objc_build_setter_call) Likewise.
1b1562a5 4343
a1178b30
IS
43442010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4345
1b1562a5 4346 merge from FSF apple 'trunk' branch.
a1178b30
IS
4347 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4348
4349 Radar 3803157 (method attributes)
4350 * c-common.c (handle_deprecated_attribute): Recognize
4351 objc methods as valid declarations.
4352 * c-common.h: Declare objc_method_decl ().
1b1562a5 4353 * stub-objc.c (objc_method_decl): New stub.
a1178b30 4354
a75bfaa6
JM
43552010-10-08 Joseph Myers <joseph@codesourcery.com>
4356
4357 * c-common.c (parse_optimize_options): Call
4358 decode_cmdline_options_to_array_default_mask before
4359 decode_options. Update arguments to decode_options.
4360 * c-common.h (c_common_init_options_struct): Declare.
4361 * c-opts.c (c_common_init_options_struct): New. Split out from
4362 c_common_init_options.
4363
f05b9d93
NP
43642010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4365
4366 Implemented fast enumeration for Objective-C.
4367 * c-common.h (objc_finish_foreach_loop): New.
4368 * stub-objc.c (objc_finish_foreach_loop): New.
4369
1ebe4b4f
JM
43702010-10-05 Joseph Myers <joseph@codesourcery.com>
4371
4372 * c-common.h (struct diagnostic_context): Don't declare here.
4373 (c_common_initialize_diagnostics): Declare using
4374 diagnostic_context typedef.
4375 * c-opts.c (c_common_handle_option): Pass global_dc to
4376 handle_generated_option.
4377
d4d24ba4
JM
43782010-10-04 Joseph Myers <joseph@codesourcery.com>
4379
4380 * c-opts.c (c_common_handle_option): Pass &global_options_set to
4381 handle_generated_option.
4382
478a1c5b
ILT
43832010-10-03 Ian Lance Taylor <iant@google.com>
4384
4385 * c.opt (-fplan9-extensions): New option.
4386
82a1c2fe
FXC
43872010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4388
4389 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4390 Remove.
4391 (c_cpp_builtins): Call functions from cppbuiltin.c instead
4392 of duplicating code.
4393
92902b1b
IS
43942010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4395
4396 * c-common.c: Add two new entries for @optional
4397 and @required keywords.
4398
4399 merge from FSF 'apple/trunk' branch.
4400 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
4401
4402 Radar 4386773
4403 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4404 objective-c keywords.
4405 (objc_set_method_opt): New declaration.
4406 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 4407
46625112
JM
44082010-09-30 Joseph Myers <joseph@codesourcery.com>
4409
4410 * c-common.c (handle_optimize_attribute): Pass &global_options to
4411 cl_optimization_save and cl_optimization_restore.
4412 * c-opts.c (c_common_handle_option): Pass &global_options to
4413 handle_generated_option.
4414 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4415 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4416 &global_options to cl_optimization_restore.
4417
49b91f05
NP
44182010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4419
4420 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4421 Objective-C/Objective-C++ keywords.
4422
13ed556f 44232010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 4424
9faeb493
UB
4425 Merge from 'apple/trunk' branch on FSF servers.
4426
a6341d57
NP
4427 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4428
4429 Radar 4281748
4430 * c-common.h (objc_check_global_decl): New declaration.
4431 * stub-objc.c (objc_check_global_decl): New stub.
4432
f0036cca
JM
44332010-09-29 Joseph Myers <joseph@codesourcery.com>
4434
4435 * c.opt: Don't use VarExists.
4436
e3339d0f
JM
44372010-09-29 Joseph Myers <joseph@codesourcery.com>
4438
4439 * c-common.c (c_cpp_error): Update names of diagnostic_context
4440 members.
4441 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4442 cl_optimization members.
4443 * c-opts.c (warning_as_error_callback, c_common_handle_option,
4444 sanitize_cpp_opts, finish_options): Update names of cpp_options
4445 members.
4446
1973201f
NP
44472010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4448
4449 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
4450 (objc_is_reserved_word): Removed.
4451 * c-common.c: Updated comments.
4452 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4453 objc_is_reserved_word.
4454 * stub-objc.c (objc_is_reserved_word): Removed.
4455
f7e71da5
IS
44562010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4457
9faeb493 4458 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
4459 include attributes.
4460 (objc_start_method_definition): Likewise.
4461 (objc_build_keyword_decl): Likewise.
4462 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4463 (objc_start_method_definition): Likewise.
4464 (objc_build_keyword_decl): Likewise.
4465
c165dca7
IS
44662010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4467
4468 * c-common.h (objc_start_class_interface): Adjust prototype.
4469 (objc_start_category_interface): Likewise.
4470 (objc_start_protocol): Likewise.
4471 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4472 (objc_start_class_interface): Likewise.
4473 (objc_start_category_interface): Likewise.
4474
7458026b
ILT
44752010-09-27 Ian Lance Taylor <iant@google.com>
4476
4477 * c-common.c (c_common_attribute_table): Add no_split_stack.
4478 (handle_no_split_stack_attribute): New static function.
4479
b581b85b
NP
44802010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4481
9faeb493 4482 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
4483
4484 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
4485
9faeb493 4486 Radar 4229905
b581b85b
NP
4487 * c-common.h (objc_have_common_type): New declaration.
4488 * stub-objc.c (objc_have_common_type): New stub.
4489
4490 2005-06-22 Ziemowit Laski <zlaski@apple.com>
4491
4492 Radar 4154928
4493 * c-common.h (objc_common_type): New prototype.
9faeb493 4494 * stub-objc.c (objc_common_type): New stub.
b581b85b 4495
46a4da10
JH
44962010-09-24 Jan Hubicka <jh@suse.cz>
4497
4498 * c-common.c (handle_leaf_attribute): New function.
4499 (struct attribute_spec c_common_att): Add leaf.
4500
e200444e
JM
45012010-09-22 Joseph Myers <joseph@codesourcery.com>
4502
4503 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4504 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4505 -dump, -dump=, -imacros, -imacros=, -include, -include=,
4506 -include-barrier, -include-directory, -include-directory=,
4507 -include-directory-after, -include-directory-after=,
4508 -include-prefix, -include-prefix=, -include-with-prefix,
4509 -include-with-prefix=, -include-with-prefix-after,
4510 -include-with-prefix-after=, -include-with-prefix-before,
4511 -include-with-prefix-before=, -no-integrated-cpp,
4512 -no-line-commands, -no-standard-includes, -no-warnings, -output,
4513 -output=, -pedantic, -pedantic-errors, -preprocess,
4514 -print-missing-file-dependencies, -trace-includes, -traditional,
4515 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4516 -user-dependencies, -verbose, -write-dependencies,
4517 -write-user-dependencies, no-integrated-cpp, traditional): New.
4518
29a80ea6
NP
45192010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4520
4521 PR objc/23710
ac1fc2fc
NP
4522 * c-common.h (objc_start_method_definition): Return bool instead
4523 of void.
4524 * stub-objc.c (objc_start_method_definition): Return bool instead
4525 of void.
4526
45272010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4528
4529 PR objc/25965
4530 * c-common.h (objc_get_interface_ivars): New declaration.
4531 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 4532
de621752
ILT
45332010-09-15 Ian Lance Taylor <iant@google.com>
4534
4535 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 4536 messages. Remove period at end of warning message.
de621752 4537
ba885ec5
NS
45382010-09-09 Nathan Sidwell <nathan@codesourcery.com>
4539
4540 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4541 (handle_alias_attribute): ... here.
4542 (handle_ifunc_attribute): New.
4543
c5ee1358
MM
45442010-09-06 Mark Mitchell <mark@codesourcery.com>
4545
4546 * c-common.h (do_warn_double_promotion): Declare.
4547 * c-common.c (do_warn_double_promotion): Define.
4548
0a0b3574
MM
45492010-09-05 Mark Mitchell <mark@codesourcery.com>
4550
4551 * c.opt (Wdouble-promotion): New.
4552
d1779886
JM
45532010-09-02 Joseph Myers <joseph@codesourcery.com>
4554
4555 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4556 fvtable-thunks, fxref): Mark no longer supported in help text.
4557
2d2bd949
JM
45582010-09-02 Joseph Myers <joseph@codesourcery.com>
4559
4560 * c.opt (Wimport, fall-virtual, falt-external-templates,
4561 fdefault-inline, fenum-int-equiv, fexternal-templates,
4562 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4563 fname-mangling-version-, fnew-abi, fnonnull-objects,
4564 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4565 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4566 applicable.
4567 (fhandle-exceptions): Mark with Alias and Warn.
4568 * c-opts.c (c_common_handle_option): Don't handle options marked
4569 as ignored.
4570
5de8299c
JM
45712010-09-02 Joseph Myers <joseph@codesourcery.com>
4572
4573 * c.opt (Wcomments, Werror-implicit-function-declaration,
4574 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4575 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4576 aliases.
4577 * c-common.c (option_codes): Use OPT_Wcomment instead of
4578 OPT_Wcomments.
4579 * c-opts.c (warning_as_error_callback, c_common_handle_option):
4580 Don't handle options marked as aliases.
4581
0ceb0201
RG
45822010-08-25 Richard Guenther <rguenther@suse.de>
4583
4584 * c-common.c (c_common_get_alias_set): Remove special
4585 handling for pointers.
4586
ac47786e
NF
45872010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4588
4589 * c-common.c: Use FOR_EACH_VEC_ELT.
4590 * c-gimplify.c: Likewise.
4591 * c-pragma.c: Likewise.
4592
c878765b
JM
45932010-08-16 Joseph Myers <joseph@codesourcery.com>
4594
4595 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
4596 RejectDriver.
4597 (MMDX): Change back to MMD. Mark NoDriverArg instead of
4598 RejectDriver.
4599 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4600 instead of OPT_MDX and OPT_MMDX.
4601
603349bf
JM
46022010-08-16 Joseph Myers <joseph@codesourcery.com>
4603
4604 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4605
644fa7ac
JM
46062010-08-12 Joseph Myers <joseph@codesourcery.com>
4607
4608 * c.opt (MD, MMD): Change to MDX and MMDX.
4609 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4610
481e1176
JM
46112010-08-11 Joseph Myers <joseph@codesourcery.com>
4612
4613 * c-opts.c (c_common_handle_option): Call handle_generated_option
4614 instead of handle_option.
4615
ac8dc9f7
NF
46162010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4617
4618 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4619 (maybe_apply_renaming_pragma): Delete unneeded declarations.
4620
4f8c876d
NF
46212010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4622
4623 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
4624 (pending_redefine_extname): Change type to a VEC.
4625 (add_to_renaming_pragma_list): Update for new type of
4626 pending_redefine_extname.
ac8dc9f7 4627 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 4628
3b0c690e
AC
46292010-08-04 Arnaud Charlet <charlet@adacore.com>
4630
4631 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4632 visited.
4633 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4634 decide whether a type has already been declared/seen.
4635 Do not go to the original type.
4636 (dump_nested_types): New parameter forward.
4637 Generate forward declaration if needed and mark type as visited.
4638 (print_ada_declaration): Call dump_nested_types if not already done.
4639 Mark types as visited.
4640
1890bccc
JM
46412010-08-03 Joseph Myers <joseph@codesourcery.com>
4642
4643 * c.opt (-print-pch-checksum): Remove option.
4644 * c-opts.c (c_common_handle_option): Don't handle
4645 OPT_print_pch_checksum.
4646
5f20c657
JM
46472010-07-27 Joseph Myers <joseph@codesourcery.com>
4648
4649 * c-common.h (c_common_handle_option): Update prototype and return
4650 value type.
4651 * c-opts.c (c_common_handle_option): Update prototype and return
4652 value type. Update calls to handle_option and
4653 enable_warning_as_error.
4654
f551f80c
JJ
46552010-07-27 Jakub Jelinek <jakub@redhat.com>
4656
4657 PR c/45079
4658 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4659
61ff2bdc
JM
46602010-07-27 Joseph Myers <joseph@codesourcery.com>
4661
4662 * c-common.h (c_common_missing_argument): Remove.
4663 * c-opts.c (c_common_missing_argument): Remove.
4664 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4665 idirafter, imacros, include, isysroot, isystem, iquote): Add
4666 MissingArgError.
4667 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4668
7a9bf9a4
JM
46692010-07-27 Joseph Myers <joseph@codesourcery.com>
4670
4671 * c-common.h (c_common_option_lang_mask,
4672 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4673 New.
4674 (c_common_init_options): Update prototype.
4675 * c-opts.c (c_common_option_lang_mask): New.
4676 (c_common_initialize_diagnostics): Split out of
4677 c_common_init_options.
4678 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4679 New.
4680 (c_common_init_options): Update prototype. Use decoded options in
4681 search for -lang-asm.
4682
910ad8de
NF
46832010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4684
4685 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4686 * c-format.c: Likewise.
4687
718f9c0f
MLI
46882010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4689
4690 * c-common.h: Include diagnostic-core.h. Error if already
4691 included.
4692 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4693
4d451982
MLI
46942010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4695
adfac8df 4696 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
4697 Do not include expr.h
4698 (vector_mode_valid_p): Move here.
4699
119fe915
SB
47002010-06-21 DJ Delorie <dj@redhat.com>
4701
4702 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4703 allow these pragmas anywhere.
4704
47052010-06-14 Jakub Jelinek <jakub@redhat.com>
4706
4707 PR bootstrap/44509
4708 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4709 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4710 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4711 ggc_strdup instead of xstrdup.
4712
47132010-06-10 Jakub Jelinek <jakub@redhat.com>
4714
4715 * c-cppbuiltin.c: Include cpp-id-data.h.
4716 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4717 (lazy_hex_fp_value): New function.
4718 (builtin_define_with_hex_fp_value): Provide definitions lazily.
4719
6662d794
MLI
47202010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4721
4722 * c-gimplify.c: Do not include tree-flow.h
4723
38f8b050
JR
47242010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4725
4726 PR other/44034
4727 * c-common.c: Rename targetm member:
4728 targetm.enum_va_list -> targetm.enum_va_list_p
4729
9589f23e
AS
47302010-06-28 Anatoly Sokolov <aesok@post.ru>
4731
4732 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4733
3b06d379
SB
47342010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4735
4736 * c-cppbuiltin.c: Do not include except.h.
4737
d166d4c3
AK
47382010-06-24 Andi Kleen <ak@linux.intel.com>
4739
9faeb493
UB
4740 * c-common.c (warn_for_omitted_condop): New.
4741 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 4742
70cb8be6
JM
47432010-06-21 Joseph Myers <joseph@codesourcery.com>
4744
4745 * c.opt (lang-objc): Remove.
4746 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4747
a4c97feb
JR
47482010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
4749
4750 * c-opts.c: Include "tm_p.h".
4751
6e2f1956
JM
47522010-06-20 Joseph Myers <joseph@codesourcery.com>
4753
4754 * c-common.c (parse_optimize_options): Update call to
4755 decode_options.
4756
bc87224e
NF
47572010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4758
4759 * c-common.c (record_types_used_by_current_var_decl): Adjust for
4760 new type of types_used_by_cur_var_decl.
4761
b49cf425
JR
47622010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
4763
4764 PR bootstrap/44512
4765 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4766 for C++ standard compliance.
4767
59f9c2ed
JM
47682010-06-16 Jason Merrill <jason@redhat.com>
4769
4770 * c.opt: Add -Wnoexcept.
4771
33766b66
RG
47722010-06-16 Richard Guenther <rguenther@suse.de>
4773
4774 PR c/44555
4775 * c-common.c (c_common_truthvalue_conversion): Remove
4776 premature and wrong optimization concering ADDR_EXPRs.
4777
eff7e30c
AC
47782010-06-15 Arnaud Charlet <charlet@adacore.com>
4779
4780 * c-ada-spec.c (dump_sloc): Remove column info.
4781 (is_simple_enum): New function.
4782 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4783 enum types when relevant.
4784
6312e84d
MLI
47852010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4786
9faeb493 4787 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
4788 location.
4789
1cb42611
JM
47902010-06-10 Joseph Myers <joseph@codesourcery.com>
4791
4792 * c-opts.c (c_common_handle_option): Don't handle
4793 OPT_fshow_column.
4794
a9429e29
LB
47952010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4796
4797 * c-pragma.c (push_alignment): Use typed GC allocation.
4798 (handle_pragma_push_options): Likewise.
4799
4800 * c-common.c (parse_optimize_options): Likewise.
4801
4802 * c-common.h (struct sorted_fields_type): Add variable_size GTY
4803 option.
4804
5498f011
JM
48052010-06-07 Joseph Myers <joseph@codesourcery.com>
4806
4807 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4808 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4809 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4810 flag_signed_bitfields, warn_strict_null_sentinel,
4811 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4812 flag_gen_declaration, flag_no_gnu_keywords,
4813 flag_implement_inlines, flag_implicit_templates,
4814 flag_implicit_inline_templates, flag_optional_diags,
4815 flag_elide_constructors, flag_default_inline, flag_rtti,
4816 flag_conserve_space, flag_access_control, flag_check_new,
4817 flag_new_for_scope, flag_weak, flag_working_directory,
4818 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4819 flag_enforce_eh_specs, flag_threadsafe_statics,
4820 flag_pretty_templates): Remove.
4821 * c-common.h (flag_preprocess_only, flag_nil_receivers,
4822 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4823 flag_replace_objc_classes, flag_undef, flag_no_builtin,
4824 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4825 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4826 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4827 flag_no_gnu_keywords, flag_implement_inlines,
4828 flag_implicit_templates, flag_implicit_inline_templates,
4829 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4830 flag_rtti, flag_conserve_space, flag_access_control,
4831 flag_check_new, flag_new_for_scope, flag_weak,
4832 flag_working_directory, flag_use_cxa_atexit,
4833 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4834 flag_threadsafe_statics, flag_pretty_templates,
4835 warn_strict_null_sentinel): Remove.
4836 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4837 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4838 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4839 fimplicit-inline-templates, fimplicit-templates,
4840 flax-vector-conversions, fms-extensions, fnil-receivers,
4841 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4842 frtti, fshort-double, fshort-enums, fshort-wchar,
4843 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4844 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4845 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4846 gen-decls, undef): Use Var.
4847 (fdefault-inline, foptional-diags): Document as doing nothing.
4848 * c-opts.c (c_common_handle_option): Remove cases for options now
4849 using Var. Mark ignored options as such.
4850
39dabefd
SB
48512010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4852
9faeb493 4853 * c-common.c: Moved to here from parent directory.
39dabefd
SB
4854 * c-common.def: Likewise.
4855 * c-common.h: Likewise.
4856 * c-cppbuiltin.c: Likewise.
4857 * c-dump.c: Likewise.
4858 * c-format.c: Likewise.
4859 * c-format.h : Likewise.
4860 * c-gimplify.c: Likewise.
4861 * c-lex.c: Likewise.
4862 * c-omp.c: Likewise.
4863 * c.opt: Likewise.
4864 * c-opts.c: Likewise.
4865 * c-pch.c: Likewise.
4866 * c-ppoutput.c: Likewise.
4867 * c-pragma.c: Likewise.
4868 * c-pragma.h: Likewise.
4869 * c-pretty-print.c: Likewise.
4870 * c-pretty-print.h: Likewise.
4871 * c-semantics.c: Likewise.
4872 * stub-objc.c: Likewise.
4873
4874 * c-common.c: Include gt-c-family-c-common.h.
4875 * c-pragma.c: Include gt-c-family-c-pragma.h.
4876\f
5624e564 4877Copyright (C) 2010-2015 Free Software Foundation, Inc.
39dabefd
SB
4878
4879Copying and distribution of this file, with or without modification,
4880are permitted in any medium without royalty provided the copyright
4881notice and this notice are preserved.
This page took 1.737379 seconds and 5 git commands to generate.