]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
re PR c/64417 ([SH] FAIL: gcc.c-torture/compile/pr28865.c -O0 (test for excess...
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
2f42e5de
TS
12015-01-05 Trevor Saunders <tsaunders@mozilla.com>
2
3 PR c++/31397
4 * c.opt (Wsuggest-override): New option.
5
5624e564
JJ
62015-01-05 Jakub Jelinek <jakub@redhat.com>
7
8 Update copyright years.
9
5bd012f8
MP
102015-01-05 Marek Polacek <polacek@redhat.com>
11
12 PR c/64423
13 * c-common.c (warn_array_subscript_with_type_char): Add location_t
14 parameter. Use it.
15 * c-common.h (warn_array_subscript_with_type_char): Update
16 declaration.
17
a7fa8d18
ESR
182014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
19
20 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
21 Control macro with flag_sized_deallocation.
22
768952be
MU
232014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
24
25 * c.opt (Wdiscarded-array-qualifiers): New option.
26
1f8d3e84
JJ
272014-12-19 Jakub Jelinek <jakub@redhat.com>
28
29 PR preprocessor/63831
30 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
31 and __has_cpp_attribute here.
32 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
33 c_common_has_attribute.
34 * c-common.h (c_common_has_attribute): New prototype.
35 * c-lex.c (init_c_lex): Set cb->has_attribute to
36 c_common_has_attribute instead of cb_has_attribute.
37 (get_token_no_padding): New function.
38 (cb_has_attribute): Renamed to ...
39 (c_common_has_attribute): ... this. No longer static. Use
40 get_token_no_padding, require ()s, don't build TREE_LIST
41 unnecessarily, fix up formatting, adjust diagnostics, call
42 init_attributes.
43
20b06add
JM
442014-12-15 Jason Merrill <jason@redhat.com>
45
46 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
47 (-Wsized-deallocation): New.
48 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
49 to on in C++14 and up.
50
94a073b2
JM
512014-12-11 Jason Merrill <jason@redhat.com>
52
acaa5911
JM
53 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
54
94a073b2
JM
55 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
56 we aren't complaining about VLAs.
57
7fb66c15
MP
582014-12-06 Marek Polacek <polacek@redhat.com>
59
60 PR tree-optimization/64183
61 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
62 shift-expression if it is integer_type_node. Use types_compatible_p.
63
b731b390
JJ
642014-11-29 Jakub Jelinek <jakub@redhat.com>
65
66 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
67 last argument from create_tmp_var_raw and create_tmp_var calls.
68 * cilk.c (gimplify_cilk_spawn): Likewise.
69 * c-omp.c (c_finish_omp_atomic): Likewise.
70
6a4da643
MP
712014-11-28 Marek Polacek <polacek@redhat.com>
72
73 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
74 instead of unsigned_type_node.
75
541e35a6
MP
762014-11-28 Marek Polacek <polacek@redhat.com>
77
78 PR c/63862
79 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
80 to op1_utype.
81 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
82 expression to unsigned_type_node.
83
dcc97066
MW
842014-11-20 Mark Wielaard <mjw@redhat.com>
85
86 PR debug/38757
87 * c-opts.c (set_std_c89): Set lang_hooks.name.
88 (set_std_c99): Likewise.
89 (set_std_c11): Likewise.
90 (set_std_cxx98): Likewise.
91 (set_std_cxx11): Likewise.
92 (set_std_cxx14): Likewise.
93 (set_std_cxx1z): Likewise.
94
aa7da51a
JJ
952014-11-21 Jakub Jelinek <jakub@redhat.com>
96
97 PR target/63764
98 * c-common.h (convert_vector_to_pointer_for_subscript): Change
99 return type to bool.
009a3480 100 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
101 (convert_vector_to_pointer_for_subscript): Change return type to
102 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
103 and copy it into a TARGET_EXPR and use that instead of *vecp
104 directly.
105
538dd0b7
DM
1062014-11-19 David Malcolm <dmalcolm@redhat.com>
107
108 Merger of git branch "gimple-classes-v2-option-3".
109 * ChangeLog.gimple-classes: New.
110 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
111 from being just a vec<gimple> to a vec<gbind *>.
112
c39a5e99
JJ
1132014-11-18 Jakub Jelinek <jakub@redhat.com>
114
115 PR sanitizer/63813
116 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
117 argument to ptype, set type to TREE_TYPE (ptype). Don't call
118 get_pointer_alignment for non-pointers. Use ptype, or if it is
119 reference type, corresponding pointer type, as type of kind
120 argument.
121 (ubsan_maybe_instrument_reference,
122 ubsan_maybe_instrument_member_call): Adjust callers.
123
8537a4a9
MP
1242014-11-15 Marek Polacek <polacek@redhat.com>
125
126 PR middle-end/63884
127 * array-notation-common.c (is_sec_implicit_index_fn): Return false
128 for NULL fndecl.
129 (extract_array_notation_exprs): Return for NULL node.
130
2079956a
JM
1312014-11-12 Joseph Myers <joseph@codesourcery.com>
132
133 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
134 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
135
1304953e
JJ
1362014-11-12 Jakub Jelinek <jakub@redhat.com>
137
138 PR c/59708
139 * c-common.c (check_builtin_function_arguments): Handle
140 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
141
e5e44252
AK
1422014-11-10 Andi Kleen <ak@linux.intel.com>
143
144 PR c/60804
145 * c-common.h (check_no_cilk): Declare.
146 * cilk.c (get_error_location): New function.
147 (check_no_cilk): Dito.
148
e64b984d
AK
1492014-11-10 Andi Kleen <ak@linux.intel.com>
150
151 * cilk.c (recognize_spawn): Use expression location
152 for error message.
153
13c21655
PC
1542014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
155
156 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
157
42fd12b1
ESR
1582014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
159
160 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
161 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
162 (__cpp_range_based_for, __cpp_initializer_lists,
163 __cpp_delegating_constructors, __cpp_nsdmi,
164 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
165 for C++11; (__cpp_attribute_deprecated): Remove in favor of
166 __has_cpp_attribute.
167 * c-lex.c (cb_has_attribute): New callback CPP function;
168 (init_c_lex): Set has_attribute callback.
169
6f450181
RB
1702014-11-04 Richard Biener <rguenther@suse.de>
171
172 * c-common.c (shorten_compare): Do not shorten mixed
173 DFP and non-DFP compares.
174
26f0e1d6
ESR
1752014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
176
177 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
178 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
179 Commentary and rearrangement of tests.
180 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
181 Commentary and rearrangement of tests.
182 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
183 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
184
ef4bddc2
RS
1852014-10-29 Richard Sandiford <richard.sandiford@arm.com>
186
187 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
188 enum from machine_mode.
189
c582198b
AM
1902014-10-28 Andrew MacLeod <amacleod@redhat.com>
191
192 * c-family/c-common.c: Adjust include files.
193 * c-family/c-gimplify.c: Ditto.
194 * c-family/cilk.c: Ditto.
195 * c-family/c-pragma.c: Ditto.
196 * c-family/c-ubsan.c: Ditto.
197
60393bbc
AM
1982014-10-27 Andrew MacLeod <amacleod@redhat.com>
199
200 * c-gimplify.c: Adjust include files.
201
d723bb7c
MLI
2022014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
203
204 PR c++/53061
205 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
206 c_common_initialize_diagnostics.
207 * c-common.h: Likewise.
208
90f3520e
MP
2092014-10-24 Marek Polacek <polacek@redhat.com>
210
211 PR c/56980
212 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
213 print "struct"/"union"/"enum" for typedefed names.
214
59d7607a
MP
2152014-10-23 Marek Polacek <polacek@redhat.com>
216
217 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
218 in unsigned type.
219
d95a2703
JJ
2202014-10-22 Jakub Jelinek <jakub@redhat.com>
221 Yury Gribov <y.gribov@samsung.com>
222
223 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
224 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
225 instead of flag_sanitize_recover as bool flag.
226
8e6ef852
KY
2272014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
228
229 * cilk.c: Revert previous change.
230
948cf550
IZ
2312014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
232
233 PR c/63307
234 * cilk.c: Include vec.h.
235 (struct cilk_decls): New structure.
236 (wrapper_parm_cb): Split this function to...
237 (fill_decls_vec): ...this...
238 (create_parm_list): ...and this.
239 (compare_decls): New function.
240 (for_local_cb): Remove.
241 (wrapper_local_cb): Ditto.
242 (build_wrapper_type): For now first traverse and fill vector of
243 declarations then sort it and then deal with sorted vector.
244 (cilk_outline): Ditto.
245 (declare_one_free_variable): Ditto.
246
92574c7c
MP
2472014-10-17 Marek Polacek <polacek@redhat.com>
248
249 * c-opts.c (c_common_post_options): Set warn_implicit_int.
250 * c.opt (Wimplicit-int): Initialize to -1.
251
83685514
AM
2522014-10-16 Andrew MacLeod <amacleod@redhat.com>
253
254 * c-pragma.c: Adjust include files.
255 * c-semantics.c: Likewise.
256
5b8300ea
DD
2572014-10-16 DJ Delorie <dj@redhat.com>
258
259 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
260 multiples of bytes.
261
5f83e90b
JM
2622014-10-14 Jason Merrill <jason@redhat.com>
263
264 PR c++/63455
265 * c-common.h (CPP_PREPARSED_EXPR): New.
266 (N_CP_TTYPES): Adjust.
267
d73326ca
MP
2682014-10-15 Marek Polacek <polacek@redhat.com>
269
270 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
271
78a7c317
DD
2722014-10-14 DJ Delorie <dj@redhat.com>
273
274 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
275 types, not just __int128.
276 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
277 types, not just __int128.
278 (cpp_atomic_builtins): Round pointer sizes up.
279 (type_suffix): Use type precision, not specific types.
280 * c-common.c (c_common_reswords): Remove __int128 special case.
281 (c_common_type_for_size): Check for all __intN types, not just
282 __int128.
283 (c_common_type_for_mode): Likewise.
284 (c_common_signed_or_unsigned_type): Likewise.
285 (c_build_bitfield_integer_type): Likewise.
286 (c_common_nodes_and_builtins): Likewise.
287 (keyword_begins_type_specifier): Likewise.
288 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
289 __intN variants.
290
2a22f99c
TS
2912014-10-12 Trevor Saunders <tsaunders@mozilla.com>
292
293 * c-common.c: Use hash_table instead of hashtab.
294
2a8ef767
ESR
2952014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
296
297 * c-family/c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
298 C++11 section.
299
3c9aabbd
MG
3002014-10-03 Marc Glisse <marc.glisse@inria.fr>
301
302 PR c++/54427
303 PR c++/57198
304 PR c++/58845
305 * c-common.c (warn_logical_operator): Punt for vectors.
306
a15f7cb8
ESR
3072014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
308
309 Implement SD-6: SG10 Feature Test Recommendations
310 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
311 macros and the __has_header macro.
312
8d0cf15e
JM
3132014-09-30 Jason Merrill <jason@redhat.com>
314
dd5d5481
JM
315 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
316 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
317 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
318
b752325e
JM
319 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
320 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
321
8d0cf15e
JM
322 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
323 * c-common.c (c_common_reswords): Remove __is_convertible_to.
324
083e891e
MP
3252014-09-24 Marek Polacek <polacek@redhat.com>
326
327 PR c/61405
328 PR c/53874
329 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
330
7861b648
AK
3312014-09-23 Andi Kleen <ak@linux.intel.com>
332
333 * c-common.c (handle_no_reorder_attribute): New function.
334 (c_common_attribute_table): Add no_reorder attribute.
335
9a79452d
JM
3362014-09-22 Joseph Myers <joseph@codesourcery.com>
337
338 * c-cppbuiltin.c (c_cpp_builtins): Define
339 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
340 modes.
341
dd69f047
JM
3422014-09-18 Joseph Myers <joseph@codesourcery.com>
343
344 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
345 for supported floating-point modes.
346
737a4826
MLI
3472014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
348
349 * c.opt (Wpsabi): Use LangEnabledBy.
350 * c-opts.c (c_common_handle_option): Do not handle here.
351
8cc4b7a2
JM
3522014-09-12 Joseph Myers <joseph@codesourcery.com>
353
354 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
355 macros for floating-point modes.
356
179b5a55
MG
3572014-09-11 Marc Glisse <marc.glisse@inria.fr>
358
359 PR target/58757
360 * c-cppbuiltin.c (builtin_define_float_constants): Correct
361 __*_DENORM_MIN__ without denormals.
362
570a11fe
JJ
3632014-09-10 Jakub Jelinek <jakub@redhat.com>
364
365 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
366 ubsan_instrument_vla, ubsan_instrument_return): Adjust
367 ubsan_create_data callers.
368 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
369 index is constant or BIT_AND_EXPR with constant mask and is
370 small enough for the bound.
371 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
372 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
373
b559c810
MLI
3742014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
375
376 * c.opt: Add CppReason to various flags.
377 (Wdate-time): Re-sort.
378 * c-common.c: Include c-common.h earlier.
379 (struct reason_option_codes_t): Delete.
380 (c_option_controlling_cpp_error): Prefix global type and struct
381 with cpp_.
382
1ef33fd4
MLI
3832014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
384
385 * c.opt (Wnormalized): New.
386 (Wnormalized=): Use Enum and Reject Negative.
387 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
388
66bb34c0
JM
3892014-09-08 Joseph Myers <joseph@codesourcery.com>
390
391 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
392 digits of floating-point modes if -fbuilding-libgcc.
393
53d68b9f
JM
3942014-09-05 Joseph Myers <joseph@codesourcery.com>
395
396 * c-cppbuiltin.c (c_cpp_builtins): Also define
397 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
398 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
399 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
400 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
401 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
402 __LIBGCC_STACK_GROWS_DOWNWARD__,
403 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
404 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
405 __LIBGCC_DWARF_FRAME_REGISTERS__,
406 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
407 __LIBGCC_STACK_POINTER_REGNUM__ and
408 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
409 (builtin_define_with_value): Handle backslash-escaping in string
410 macro values.
411
f65586dc
RB
4122014-09-05 Richard Biener <rguenther@suse.de>
413
414 PR middle-end/63148
415 * c-format.c (check_format_arg): Properly handle
416 effectively signed POINTER_PLUS_EXPR offset.
417
2b71f4a4
MLI
4182014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
419
420 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
421 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
422 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
423 and Init.
424 * c-opts.c (c_common_handle_option): Do not handle here.
425 (sanitize_cpp_opts): Likewise.
426 * c-common.c (struct reason_option_codes_t): Handle
427 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
428
d2e4feca
MP
4292014-09-03 Marek Polacek <polacek@redhat.com>
430
431 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
432
9a771876
JJ
4332014-09-02 Jakub Jelinek <jakub@redhat.com>
434 Balaji V. Iyer <balaji.v.iyer@intel.com>
435 Igor Zamyatin <igor.zamyatin@intel.com>
436
437 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
438 * c-common.c (c_common_reswords): Added _Cilk_for.
439 * c-common.h (enum rid): Added RID_CILK_FOR.
440 (cilk_for_number_of_iterations): Add declaration.
441 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
442 CILK_FOR.
443 * c-pragma.c (init_pragma): Register "grainsize" pragma.
444 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
445
81b5d104
MLI
4462014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
447
448 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
449 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
450 Wundef): Use CPP, Var and Init.
451 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
452
b753b37b
MLI
4532014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
454
455 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
456 * c-opts.c (c_common_handle_option): Do not handle here.
457
028aee17
JM
4582014-08-25 Jason Merrill <jason@redhat.com>
459
460 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
461 -std=c++14 and -std=gnu++14, rather than the reverse.
462 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
463 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
464 * c-common.h (cxx_dialect): Remove cxx1y.
465
e4276ba5
ESR
4662014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
467
468 * c-common.h (enum cxx_dialect): Add cxx14.
469 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
470 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
471 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
472
a545cacd
JM
4732014-08-22 Jason Merrill <jason@redhat.com>
474
475 * c.opt (std=gnu++17): Fix alias.
476
59ea0364
MP
4772014-08-22 Marek Polacek <polacek@redhat.com>
478
479 PR c++/62199
480 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
481 check for vector types. Drop LHS argument.
482 * c-common.h (warn_logical_not_parentheses): Adjust.
483
596e808c
MLI
4842014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
485
486 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
487 (Wmultichar): Likewise.
488 (Wdate-time): Use C-family languages instead of Common. Use CPP
489 and Var.
490 * c-opts.c (c_common_handle_option): Do not handle the above
491 options here.
492 (sanitize_cpp_opts): Likewise.
493
18767f65
MLI
4942014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
495
496 PR fortran/44054
497 * c-opts.c: Include tree-diagnostics.h.
498 (c_diagnostic_finalizer): New.
499 (c_common_initialize_diagnostics): Use it.
500
b4413594
MLI
5012014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
502
503 PR preprocessor/51303
504 * c-common.c (struct reason_option_codes_t option_codes):
505 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
506
43f9a13c
MLI
5072014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
508
509 PR c/60975
510 PR c/53063
511 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
512 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
513 (c_common_post_options): Call init_global_opts_from_cpp.
514 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
515
04159acf
MP
5162014-08-19 Marek Polacek <polacek@redhat.com>
517
518 PR c++/62153
519 * c-common.c (maybe_warn_bool_compare): New function.
520 * c-common.h (maybe_warn_bool_compare): Declare.
521 * c.opt (Wbool-compare): New option.
522
35aff4fb
MP
5232014-08-19 Marek Polacek <polacek@redhat.com>
524
525 * c.opt (Wc99-c11-compat): New option.
526
177cce46
MP
5272014-08-19 Marek Polacek <polacek@redhat.com>
528
529 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
530 to warn_c90_c99_compat.
531 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
532 to -1.
533
6ae9194f
MLI
5342014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
535 Steven Bosscher <steven@gcc.gnu.org>
536
537 PR c/52952
538 * c-format.c: Add extra_arg_loc and format_string_loc to struct
539 format_check_results.
540 (check_function_format): Use true and add comment for boolean
541 argument.
542 (finish_dollar_format_checking): Use explicit location when warning.
543 (check_format_info): Likewise.
544 (check_format_arg): Set extra_arg_loc and format_string_loc.
545 (check_format_info_main): Use explicit location when warning.
546 (check_format_types): Pass explicit location.
547 (format_type_warning): Likewise.
548
8e54f6d3
MLI
5492014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
550
551 PR fortran/44054
552 * c-format.c: Handle Fortran flags.
553
cd4e76fc
IZ
5542014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
555
556 PR other/61962
557 * array-notation-common.c (find_rank): Added handling for other
558 types of references.
559
f3bede71
MP
5602014-08-10 Marek Polacek <polacek@redhat.com>
561
562 PR c/51849
563 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
564 * c.opt (Wc90-c99-compat): Add option.
565
9f25a338
TS
5662014-08-07 Trevor Saunders <tsaunders@mozilla.com>
567
568 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
569
62e4eb35
MP
5702014-08-03 Marek Polacek <polacek@redhat.com>
571
572 * c-common.c (check_case_value): Add location_t parameter. Use it.
573 (c_add_case_label): Pass loc to check_case_value.
574
b787e7a2
TS
5752014-08-02 Trevor Saunders <tsaunders@mozilla.com>
576
577 * cilk.c: Use hash_map instead of pointer_map.
578
6e2830c3
TS
5792014-08-02 Trevor Saunders <tsaunders@mozilla.com>
580
581 * c-gimplify.c: Use hash_set instead of pointer_set.
582
a7ee52fb
IZ
5832014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
584
585 PR middle-end/61455
586 * array-notation-common.c (extract_array_notation_exprs): Handling
587 of DECL_EXPR added.
588
944fa280
JJ
5892014-08-01 Jakub Jelinek <jakub@redhat.com>
590
591 * c-common.h (min_align_of_type): Removed prototype.
592 * c-common.c (min_align_of_type): Removed.
593 * c-ubsan.h (ubsan_maybe_instrument_reference,
594 ubsan_maybe_instrument_member_call): New prototypes.
595 * c-ubsan.c: Include stor-layout.h and builtins.h.
596 (ubsan_maybe_instrument_reference_or_call,
597 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
598 functions.
599
b4dfdc11
MG
6002014-07-31 Marc Glisse <marc.glisse@inria.fr>
601
602 PR c++/60517
603 * c.opt (-Wreturn-local-addr): Move to common.opt.
604
a41844e5
JM
6052014-07-30 Jason Merrill <jason@redhat.com>
606
607 PR c++/61659
608 PR c++/61687
609 Revert:
610 * c.opt (-fuse-all-virtuals): New.
611
976d5a22
TT
6122014-07-30 Tom Tromey <tromey@redhat.com>
613
614 PR c/59855
615 * c.opt (Wdesignated-init): New option.
616 * c-common.c (c_common_attribute_table): Add "designated_init".
617 (handle_designated_init): New function.
618
cdc94aca
MP
6192014-07-24 Marek Polacek <polacek@redhat.com>
620
621 PR c/57653
622 * c-opts.c (c_finish_options): If -imacros is in effect, return.
623
f41373b6
DS
6242014-07-16 Dodji Seketeli <dodji@redhat.com>
625
626 PR preprocessor/60723 - missing system-ness marks for macro tokens
627 * c-ppoutput.c (struct print::prev_was_system_token): New data
628 member.
629 (init_pp_output): Initialize it.
630 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
631 (do_line_change): Return a flag saying if a line marker was
632 emitted or not.
633 (scan_translation_unit): Detect if the system-ness of the token we
634 are about to emit is different from the one of the previously
635 emitted token. If so, emit a line marker. Avoid emitting useless
636 adjacent line markers. Avoid emitting line markers for tokens
637 originating from the expansion of built-in macros.
638 (scan_translation_unit_directives_only): Adjust.
639
4d661eaa
MP
6402014-07-15 Marek Polacek <polacek@redhat.com>
641
642 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
643 TYPE_MAX_VALUE is NULL.
644
b108f48f
JJ
6452014-07-14 Jakub Jelinek <jakub@redhat.com>
646
647 PR middle-end/61294
648 * c.opt (Wmemset-transposed-args): New warning.
649
c0221884
JM
6502014-07-10 Jason Merrill <jason@redhat.com>
651
652 PR c++/61659
653 PR c++/61687
654 * c.opt (-fuse-all-virtuals): New.
655
63dfbb95
RB
6562014-07-09 Richard Biener <rguenther@suse.de>
657
658 PR c-family/61741
659 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
660 using unsigned arithmetic if overflow does not wrap instead of
661 if overflow is undefined.
662
773ec47f
MP
6632014-07-06 Marek Polacek <polacek@redhat.com>
664
665 PR c/6940
666 * c.opt (Wsizeof-array-argument): New option.
667
00a7ba58
JJ
6682014-07-03 Jakub Jelinek <jakub@redhat.com>
669
670 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
671 comments->count <= 1, as comments->entries might be NULL.
672
52ec0ea3
MP
6732014-07-01 Marek Polacek <polacek@redhat.com>
674
675 * c.opt (Wint-conversion): New option.
676
d5c3d343
MP
6772014-07-01 Marek Polacek <polacek@redhat.com>
678
679 PR c/58286
680 * c.opt (Wincompatible-pointer-types): New option.
681
6e7ceb17
PC
6822014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
683
684 PR c++/51400
685 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
686 Do not discard TYPE_QUALS of type.
687
da73100b
JM
6882014-06-26 Jason Merrill <jason@redhat.com>
689
690 * c-common.h (enum cxx_dialect): Add cxx1z.
691 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
692 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
693
08eedf75
TJ
6942014-06-26 Teresa Johnson <tejohnson@google.com>
695
696 * c-common.h (get_dump_info): Declare.
697 * c-gimplify.c (c_genericize): Use saved dump files.
698 * c-opts.c (c_common_parse_file): Begin and end dumps
699 once around parsing invocation.
700 (get_dump_info): New function.
701
7b56b2f8
MP
7022014-06-23 Marek Polacek <polacek@redhat.com>
703 Andrew MacLeod <amacleod@redhat.com>
704
705 PR c/61553
706 * c-common.c (get_atomic_generic_size): Don't segfault if the
707 type doesn't have a size.
708
0e37a2f3
MP
7092014-06-20 Marek Polacek <polacek@redhat.com>
710
711 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
712 (ubsan_walk_array_refs_r): New function.
713 (c_genericize): Instrument array bounds.
714 * c-ubsan.c: Include "internal-fn.h".
715 (ubsan_instrument_division): Mark instrumented arrays as having
716 side effects. Adjust ubsan_type_descriptor call.
717 (ubsan_instrument_shift): Likewise.
718 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
719 (ubsan_instrument_bounds): New function.
720 (ubsan_array_ref_instrumented_p): New function.
721 (ubsan_maybe_instrument_array_ref): New function.
722 * c-ubsan.h (ubsan_instrument_bounds): Declare.
723 (ubsan_array_ref_instrumented_p): Declare.
724 (ubsan_maybe_instrument_array_ref): Declare.
725
7262014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
727
728 PR lto/61123
729 * c.opt (fshort-enums): Add to LTO.
730 * c.opt (fshort-wchar): Likewise.
731
5c3d09f7
MP
7322014-06-16 Marek Polacek <polacek@redhat.com>
733
734 PR c/60439
735 * c.opt (Wswitch-bool): Add Var.
736
9cf32741
JJ
7372014-06-12 Jakub Jelinek <jakub@redhat.com>
738
739 PR middle-end/61486
740 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
741 #pragma omp target teams or
742 #pragma omp {,target }teams distribute simd.
743
62984918
JM
7442014-06-12 Jason Merrill <jason@redhat.com>
745
746 * c.opt (Wabi=, fabi-compat-version): New.
747 * c-opts.c (c_common_handle_option): Handle -Wabi=.
748 (c_common_post_options): Handle flag_abi_compat_version default.
749 Disallow -fabi-compat-version=1.
750 * c-common.h (abi_version_crosses): New.
751
f961457f
JH
7522014-06-11 Jan Hubicka <hubicka@ucw.cz>
753
754 * c-family/c-common.c (handle_section_attribute): Update handling for
755 section names that are no longer trees.
756
92d28cbb
JJ
7572014-06-10 Jakub Jelinek <jakub@redhat.com>
758
759 PR fortran/60928
760 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
761 (omp_pragmas): ... back here.
762
742938c9
MP
7632014-06-05 Marek Polacek <polacek@redhat.com>
764
765 PR c/49706
766 * c-common.c (warn_logical_not_parentheses): New function.
767 * c-common.h (warn_logical_not_parentheses): Declare.
768 * c.opt (Wlogical-not-parentheses): New option.
769
9d548dfb
MP
7702014-06-04 Marek Polacek <polacek@redhat.com>
771
772 PR c/30020
773 * c-common.c (check_case_bounds): Add location parameter.
774 Use it.
775 (c_add_case_label): Pass loc to check_case_bounds.
776
fedfecef
MP
7772014-06-03 Marek Polacek <polacek@redhat.com>
778
779 PR c/60439
780 * c.opt (Wswitch-bool): New option.
781
f6a7cffc
TS
7822014-05-22 Thomas Schwinge <thomas@codesourcery.com>
783
040d18b6
TS
784 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
785 Remove prototypes.
786 (record_types_used_by_current_var_decl): Move prototype to where
787 it belongs.
788
f6a7cffc
TS
789 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
790 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
791 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
792
632f2871
RS
7932014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
794
795 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
796 * c-common.c (c_common_nodes_and_builtins): Don't initialize
797 void_zero_node.
798 * c-pretty-print.c (pp_c_void_constant): New function.
799 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
800 (c_pretty_printer::expression): Handle VOID_CST.
801 * cilk.c (extract_free_variables): Likewise.
802 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
803 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
804
766090c2
TS
8052014-05-17 Trevor Saunders <tsaunders@mozilla.com>
806
807 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
808 * c-pragma.c (push_alignment): Adjust.
809 (handle_pragma_push_options): Likewise.
810
661a0813
MP
8112014-05-09 Marek Polacek <polacek@redhat.com>
812
813 PR c/50459
814 * c-common.c (check_user_alignment): Return -1 if alignment is error
815 node.
816 (handle_aligned_attribute): Don't call default_conversion on
817 FUNCTION_DECLs.
818 (handle_vector_size_attribute): Likewise.
819 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
820 (handle_sentinel_attribute): Call default_conversion and allow even
821 integral types as an argument.
822
2793eeab
MP
8232014-05-08 Marek Polacek <polacek@redhat.com>
824
825 PR c/61053
826 * c-common.c (min_align_of_type): New function factored out from...
827 (c_sizeof_or_alignof_type): ...here.
828 * c-common.h (min_align_of_type): Declare.
829
f827930a
MP
8302014-05-08 Marek Polacek <polacek@redhat.com>
831
832 PR c/61077
833 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
834 parameter type of main.
835
ca49b74e
DD
8362014-05-07 DJ Delorie <dj@redhat.com>
837
838 * c-cppbuiltin.c (print_bits_of_hex): New.
839 (builtin_define_type_minmax): Print values using hex so as not to
840 require a pre-computed list of string values.
841
1d60af08
KZ
8422014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
843 Mike Stump <mikestump@comcast.net>
844 Richard Sandiford <rdsandiford@googlemail.com>
845
846 * c-ada-spec.c: Include wide-int.h.
847 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
848 (dump_generic_ada_node): Use wide-int interfaces.
849 * c-common.c: Include wide-int-print.h.
850 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
851 (pointer_int_sum): Use wide-int interfaces.
852 (c_common_nodes_and_builtins): Use make_int_cst.
853 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
854 (handle_alloc_size_attribute): Use wide-int interfaces.
855 (get_nonnull_operand): Likewise.
856 * c-format.c (get_constant): Use tree_fits_uhwi_p.
857 * c-lex.c: Include wide-int.h.
858 (narrowest_unsigned_type): Take a widest_int rather than two
859 HOST_WIDE_INTs.
860 (narrowest_signed_type): Likewise.
861 (interpret_integer): Update accordingly. Use wide-int interfaces.
862 (lex_charconst): Use wide-int interfaces.
863 * c-pretty-print.c: Include wide-int.h.
864 (pp_c_integer_constant): Use wide-int interfaces.
865 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
866 INT_CST_LT_UNSIGNED.
867
b15458be
RB
8682014-05-06 Richard Biener <rguenther@suse.de>
869
870 * c-opts.c (c_common_post_options): For -freestanding,
871 -fno-hosted and -fno-builtin disable pattern recognition
872 if not enabled explicitely.
873
6577374e
MP
8742014-05-02 Marek Polacek <polacek@redhat.com>
875
876 * c.opt (Wsizeof-pointer-memaccess): Describe option.
877
d00887e8
MP
8782014-05-01 Marek Polacek <polacek@redhat.com>
879
880 PR c/43245
881 * c.opt (Wdiscarded-qualifiers): Add.
882
f8ed5150
MP
8832014-04-30 Marek Polacek <polacek@redhat.com>
884
885 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
886 INT_MIN / -1 sanitization only for integer types.
887
45484dcf
MP
8882014-04-25 Marek Polacek <polacek@redhat.com>
889
890 PR c/18079
891 * c-common.c (handle_noinline_attribute): Warn if the attribute
892 conflicts with always_inline attribute.
893 (handle_always_inline_attribute): Warn if the attribute conflicts
894 with noinline attribute.
895
38e514c0
MP
8962014-04-25 Marek Polacek <polacek@redhat.com>
897
898 PR c/60156
899 * c-common.c (check_main_parameter_types): Warn about variadic main.
900
44875f92
MS
9012014-04-24 Mike Stump <mikestump@comcast.net>
902
903 * c.opt (Wshadow-ivar): Default to on.
904
dcaaa5a0
DP
9052014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
906
907 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
908
c07d7c02
MP
9092014-04-23 Marek Polacek <polacek@redhat.com>
910
911 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
912
1c33c9b7
JJ
9132014-04-22 Jakub Jelinek <jakub@redhat.com>
914
915 PR sanitizer/60275
916 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
917 if flag_sanitize_undefined_trap_on_error.
918 (ubsan_instrument_division, ubsan_instrument_shift,
919 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
920 if !flag_sanitize_recover.
921
793c625f
MG
9222014-04-22 Marc Glisse <marc.glisse@inria.fr>
923
924 PR libstdc++/43622
925 * c-common.c (registered_builtin_types): Make non-static.
926 * c-common.h (registered_builtin_types): Declare.
927
b0f1bf36
RB
9282014-04-14 Richard Biener <rguenther@suse.de>
929 Marc Glisse <marc.glisse@inria.fr>
930
931 PR c/60819
932 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
933 apply may-alias the scalar pointer type when applicable.
934
3b07fa4a
IZ
9352014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
936
937 PR middle-end/60467
938 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
939 as possible argument for Cilk_spawn.
940
cbbd2b1c
TB
9412014-04-11 Tobias Burnus <burnus@net-b.de>
942
943 PR c/60194
944 * c.opt (Wformat-signedness): Add
945 * c-format.c(check_format_types): Use it.
946
6415bd5d
JM
9472014-04-11 Jason Merrill <jason@redhat.com>
948
949 PR c++/57926
950 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
951 default_conversion for an array argument.
952
6525783a
MP
9532014-04-08 Marek Polacek <polacek@redhat.com>
954
955 PR sanitizer/60745
956 * c-ubsan.c: Include asan.h.
957 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
958
880a467b
NS
9592014-04-03 Nathan Sidwell <nathan@codesourcery.com>
960
961 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
962
7b59ff2d
MP
9632014-04-02 Marek Polacek <polacek@redhat.com>
964
965 * c-common.h (c_expand_expr): Remove declaration.
966
8edbfaa6
JJ
9672014-03-28 Jakub Jelinek <jakub@redhat.com>
968
969 PR c++/60689
970 * c-common.c (add_atomic_size_parameter): When creating new
971 params vector, push the size argument first.
972
07d72e1d
JJ
9732014-03-26 Jakub Jelinek <jakub@redhat.com>
974
975 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
976 ubsan_instrument_vla, ubsan_instrument_return): Adjust
977 ubsan_create_data callers.
978
b35e0fa0
JJ
9792014-03-22 Jakub Jelinek <jakub@redhat.com>
980
981 PR debug/60603
982 * c-opts.c (c_finish_options): Restore cb_file_change call to
983 <built-in>.
984
39a1ebb3
JJ
9852014-03-13 Jakub Jelinek <jakub@redhat.com>
986
987 PR middle-end/36282
988 * c-pragma.c (apply_pragma_weak): Only look at
989 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
990 DECL_ASSEMBLER_NAME_SET_P (decl).
991 (maybe_apply_pending_pragma_weaks): Exit early if
992 vec_safe_is_empty (pending_weaks) rather than only when
993 !pending_weaks.
994 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
995 set assembler name back to NULL afterwards.
996
a07f6ed2
JM
9972014-03-11 Jason Merrill <jason@redhat.com>
998
999 * c.opt: Add -std=gnu++14.
1000
75b107f5
IB
10012014-03-11 Ian Bolton <ian.bolton@arm.com>
1002
1003 * c-opts.c (c_common_post_options): Don't override
1004 -ffp-contract=fast if unsafe-math-optimizations is on.
1005
f42c637e
PM
10062014-03-08 Paulo Matos <paulo@matos-sorge.com>
1007
1008 * c.opt: Enable LTO FE for fshort-double.
1009
70e24808
JM
10102014-03-07 Jason Merrill <jason@redhat.com>
1011
1012 * c.opt: Add -std=c++14.
1013
3af9c5e9
MP
10142014-03-06 Marek Polacek <polacek@redhat.com>
1015
1016 PR c/60197
1017 * cilk.c (contains_cilk_spawn_stmt): New function.
1018 (contains_cilk_spawn_stmt_walker): Likewise.
1019 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1020 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1021
b3bdf019
JJ
10222014-03-03 Jakub Jelinek <jakub@redhat.com>
1023
1024 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1025 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1026 even when flag_preprocess_only.
1027
ca7e759d
JM
10282014-02-26 Jason Merrill <jason@redhat.com>
1029
1030 PR c++/59231
1031 PR c++/11586
1032 * c-common.c (shorten_compare): Don't check
1033 c_inhibit_evaluation_warnings.
1034
28e41874
JJ
10352014-02-19 Jakub Jelinek <jakub@redhat.com>
1036
cca615af
JJ
1037 PR c/37743
1038 * c-common.c (c_common_nodes_and_builtins): When initializing
1039 c_uint{16,32,64}_type_node, also set corresponding
1040 uint{16,32,64}_type_node to the same value.
1041
28e41874
JJ
1042 PR c++/60267
1043 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1044 for PRAGMA_IVDEP if flag_preprocess_only.
1045
c2bf53a1
JJ
10462014-02-12 Jakub Jelinek <jakub@redhat.com>
1047
1048 PR c/60101
1049 * c-common.c (merge_tlist): If copy is true, call new_tlist,
1050 if false, add ADD itself, rather than vice versa.
1051 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1052 copy. For SAVE_EXPR, only call merge_tlist once.
1053
8fcbce72
JJ
10542014-02-08 Jakub Jelinek <jakub@redhat.com>
1055
1056 PR middle-end/60092
1057 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1058 and tree_to_uhwi.
1059 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1060 functions.
1061 (c_common_attribute_table): Add alloc_align and assume_aligned
1062 attributes.
1063
0a756a3f
MP
10642014-02-06 Marek Polacek <polacek@redhat.com>
1065
1066 PR c/60087
1067 * c-common.c (warn_for_sign_compare): Call warning_at with location
1068 instead of warning.
1069
7ec4847a
MP
10702014-02-05 Marek Polacek <polacek@redhat.com>
1071
1072 PR c/53123
1073 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1074 statement.
1075
66f20604
MP
10762014-02-04 Marek Polacek <polacek@redhat.com>
1077
1078 PR c/60036
1079 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1080 SAVE_EXPR.
1081
5d77fb19
MG
10822014-02-03 Marc Glisse <marc.glisse@inria.fr>
1083
1084 PR c++/53017
1085 PR c++/59211
1086 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1087 handle_vector_size_attribute, handle_nonnull_attribute): Call
1088 default_conversion on the attribute argument.
1089 (handle_nonnull_attribute): Increment the argument number.
1090
81e5eca8
MP
10912014-01-31 Marek Polacek <polacek@redhat.com>
1092
1093 PR c/59963
1094 * c-common.c (add_atomic_size_parameter): Pass vNULL to
1095 build_function_call_vec.
1096 (resolve_overloaded_builtin): Likewise.
1097 * c-common.h (build_function_call_vec): Adjust declaration.
1098
68fca595
MP
10992014-01-30 Marek Polacek <polacek@redhat.com>
1100
1101 PR c/59940
1102 * c-common.h (unsafe_conversion_p): Adjust declaration.
1103 (warnings_for_convert_and_check): Likewise.
1104 (convert_and_check): Likewise.
1105 * c-common.c (unsafe_conversion_p): Add location parameter. Call
1106 expansion_point_location_if_in_system_header on it.
1107 (warnings_for_convert_and_check): Add location parameter. Call
1108 expansion_point_location_if_in_system_header on it. Use it.
1109 (convert_and_check): Add location parameter. Use it.
1110 (conversion_warning): Likewise.
1111 (c_add_case_label): Adjust convert_and_check calls.
1112 (scalar_to_vector): Adjust unsafe_conversion_p calls.
1113
b72271b9
BI
11142014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1115
1116 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1117 flag_cilkplus.
1118 * c-pragma.c (init_pragma): Likewise.
1119 * c.opt: Likewise.
1120
393e8e8b
MP
11212014-01-23 Marek Polacek <polacek@redhat.com>
1122
1123 PR c/59846
1124 * c-common.c (shorten_compare): Add location_t parameter.
1125 * c-common.h (shorten_binary_op): Adjust declaration.
1126
f04dda30
MP
11272014-01-23 Marek Polacek <polacek@redhat.com>
1128
1129 PR c/58346
1130 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1131 * c-common.h: Declare it.
1132
621955cb
EB
11332014-01-20 Eric Botcazou <ebotcazou@adacore.com>
1134
1135 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1136 * c-ada-spec.c (dump_ads): Likewise.
1137 (cpp_check): Likewise.
1138 (dump_ada_specs): Likewise.
1139
11402014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
1141
1142 PR c++/49718
1143 * c-common.c (handle_no_instrument_function_attribute): Allow
1144 no_instrument_function attribute in class member
1145 definition/declaration.
1146
241f845a
JJ
11472014-01-15 Jakub Jelinek <jakub@redhat.com>
1148
1149 PR c/58943
1150 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1151 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
1152 being COMPOUND_EXPR.
1153 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1154 operand a SAVE_EXPR and second MODIFY_EXPR.
1155
e83b8e2e
JJ
11562014-01-09 Jakub Jelinek <jakub@redhat.com>
1157
1158 PR target/58115
1159 * c-pch.c (c_common_write_pch): Call
1160 prepare_target_option_nodes_for_pch.
1161
23a5b65a
RS
11622014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1163
1164 Update copyright years
1165
f9030485
RS
11662014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1167
1168 * array-notation-common.c, c-cilkplus.c: Use the standard form for
1169 the copyright notice.
1170
f2aa696b
EB
11712013-12-28 Eric Botcazou <ebotcazou@adacore.com>
1172
1173 * c-ada-spec.c (print_constructor): New function.
1174 (print_destructor): Retrieve the origin of the destructor.
1175 (print_ada_declaration): Revamp handling of constructors/destructors.
1176
1f26ac87
JM
11772013-12-23 Stuart Hastings <stuart@apple.com>
1178 Bill Maddox <maddox@google.com>
1179 Jason Merrill <jason@redhat.com>
1180
1181 * c.opt: Add -fdeclone-ctor-dtor.
1182 * c-opts.c (c_common_post_options): Default to on iff -Os.
1183
41958c28
BI
11842013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1185
1186 * c-common.c (c_common_attribute_table): Added "cilk simd function"
1187 attribute.
1188 * c-pragma.h (enum pragma_cilk_clause): Remove.
1189 (enum pragma_omp_clause): Added the following fields:
1190 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1191 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1192 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1193 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1194 PRAGMA_CILK_CLAUSE_UNIFORM.
1195
1196
12893402
BI
11972013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1198
1199 * cilk.c (cilk_outline): Made this function non-static.
1200 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1201 (create_cilk_wrapper): Added a new parameter: a function pointer.
1202 (c_install_body_w_frame_cleanup): Remove
1203 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1204 * c-common.h (cilk_outline): New prototype.
1205 (gimplify_cilk_spawn): Removed two parameters.
1206 (cilk_install_body_with_frame_cleanup): New prototype.
1207 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1208 CILK_SPAWN_STMT case.
1209
085b42ed
BS
12102013-12-11 Bernd Schmidt <bernds@codesourcery.com>
1211
2ce064c3
BS
1212 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1213
085b42ed
BS
1214 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1215 (int_array_type_node): Remove.
1216 * c-common.c (c_common_nodes_and_builtins): Don't build it.
1217
9e36c9ed
MP
12182013-12-05 Marek Polacek <polacek@redhat.com>
1219
1220 PR c/52023
1221 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1222 [ADJUST_FIELD_ALIGN].
1223
296674db
JM
12242013-12-04 Joseph Myers <joseph@codesourcery.com>
1225
1226 PR c/52023
1227 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1228 and check field alignment if set.
1229 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1230 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1231
31e071ae
MP
12322013-12-04 Jakub Jelinek <jakub@redhat.com>
1233 Marek Polacek <polacek@redhat.com>
1234
1235 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1236 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1237
d7947e19
L
12382013-11-29 H.J. Lu <hongjiu.lu@intel.com>
1239
1240 PR c/59309
1241 * cilk.c (gimplify_cilk_spawn): Properly handle function without
1242 arguments.
1243
fad7652e
JJ
12442013-11-29 Jakub Jelinek <jakub@redhat.com>
1245
1246 PR c/59280
1247 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1248 goto invalid. If it is error_mark_node, don't issue further
1249 diagnostics.
1250
8b5e1202
SO
12512013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1252
1253 * c.opt (Wopenmp-simd): New.
1254
0a508bb6
JJ
12552013-11-22 Jakub Jelinek <jakub@redhat.com>
1256
1257 * c-ubsan.h (ubsan_instrument_return): New prototype.
1258 * c-ubsan.c (ubsan_instrument_return): New function.
1259
2fb9a547
AM
12602013-11-22 Andrew MacLeod <amacleod@redhat.com>
1261
1262 * c-common.c: Add required include files from gimple.h.
1263 * c-gimplify.c: Likewise
1264 * cilk.c: Likewise
1265
8400e75e
DM
12662013-11-22 David Malcolm <dmalcolm@redhat.com>
1267
1268 * c-common.c (unsafe_conversion_p): Remove use of
1269 EXPR_LOC_OR_HERE macro.
1270 (conversion_warning): Likewise.
1271 (warnings_for_convert_and_check): Likewise.
1272 (warn_for_collisions_1): Likewise.
1273 (shorten_compare): Likewise, and remove use of in_system_header
1274 macro, using the location from the former.
1275 * c-lex.c (dump_one_header): Remove use of input_filename macro.
1276 (cb_def_pragma): Remove use of in_system_header macro.
1277 (lex_string): Likewise.
1278 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1279
eb1ce453
KZ
12802013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1281 Mike Stump <mikestump@comcast.net>
1282 Richard Sandiford <rdsandiford@googlemail.com>
1283
1284 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1285 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1286 tree_fits_shwi_p or tree_fits_uhwi_p.
1287 (dump_generic_ada_node): Likewise.
1288 * c-format.c (check_format_arg): Likewise.
1289 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1290
6b3b8c27
KZ
12912013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1292
1293 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1294
49b0aa18
JC
12952013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
1296
1297 PR c/53001
1298 * c-common.c (unsafe_conversion_p): Make this function
1299 return an enumeration with more detail.
1300 (conversion_warning): Use the new return type of
1301 unsafe_conversion_p to separately warn either about conversions
1302 that lower floating point number precision or about the other
1303 kinds of conversions.
1304 * c-common.h (enum conversion_safety): New enumeration.
1305 (unsafe_conversion_p): switching return type to
1306 conversion_safety enumeration.
1307 * c.opt: Adding new warning -Wfloat-conversion and
1308 enabling it with -Wconversion.
1309
b826515a
BS
13102013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
1311
1312 * c-opts.c: Include plugin.h.
1313 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1314
b9a55b13
MP
13152013-11-19 Marek Polacek <polacek@redhat.com>
1316
1317 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1318 call.
1319 (ubsan_instrument_shift): Likewise.
1320 (ubsan_instrument_vla): Likewise.
1321
7d362f6c
RS
13222013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1323
1324 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1325 cast to unsigned type.
1326
386b1f1f
RS
13272013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1328
1329 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1330 tree_low_cst.
1331 (complete_array_type): Update comment to refer to tree_to_[su]hwi
1332 rather than tree_low_cst.
1333
ae7e9ddd
RS
13342013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1335
1336 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1337 tree_to_uhwi throughout.
1338
9439e9a1
RS
13392013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1340
1341 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1342 tree_low_cst (..., 0) with tree_to_shwi throughout.
1343
cc269bb6
RS
13442013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1345
1346 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1347 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1348
9541ffee
RS
13492013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1350
1351 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1352 host_integerp (..., 0) with tree_fits_shwi_p throughout.
1353
c02065fc
AH
13542013-11-15 Aldy Hernandez <aldyh@redhat.com>
1355
1356 * c-cilkplus.c: New file.
1357 * c-common.c (readonly_error): Add location argument.
1358 * c-common.h (readonly_error): Same.
1359 (c_finish_cilk_clauses): Protoize.
1360 (c_check_cilk_loop): Same.
1361 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1362 Do not fail on error_mark_node.
1363 Abstract increment canonicalization to here...
1364 (c_omp_for_incr_canonicalize_ptr): New.
1365 c-pragma.c (init_pragma): Register "simd" pragma.
1366 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1367 (enum pragma_cilk_clause): New.
1368
9cc65f15
RS
13692013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
1370
1371 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1372 wchar_type and host_integerp checks.
1373
18f429e2
AM
13742013-11-14 Andrew MacLeod <amacleod@redhat.com>
1375
1376 * c-common.c: Likewise.
1377 * c-gimplify.c: Likewise.
1378 * cilk.c: Likewise.
1379
d8a2d370
DN
13802013-11-14 Diego Novillo <dnovillo@google.com>
1381
1382 * c-common.c: Include fold-const.h.
1383 Include stor-layout.h.
1384 Include calls.h.
1385 Include stringpool.h.
1386 Include attribs.h.
1387 Include varasm.h.
1388 Include trans-mem.h.
1389 * c-cppbuiltin.c: Include stor-layout.h.
1390 Include stringpool.h.
1391 * c-format.c: Include stringpool.h.
1392 * c-lex.c: Include stringpool.h.
1393 Include stor-layout.h.
1394 * c-pragma.c: Include stringpool.h.
1395 Include attribs.h.
1396 Include varasm.h.
1397 Include gcc-symtab.h.
1398 * c-pretty-print.c: Include stor-layout.h.
1399 Include attribs.h.
1400 * cilk.c: Include stringpool.h.
1401 Include calls.h.
1402
38b7bc7f
JM
14032013-11-13 Joseph Myers <joseph@codesourcery.com>
1404
1405 * c-common.h (enum rid): Add RID_AUTO_TYPE.
1406 * c-common.c (c_common_reswords): Add __auto_type.
1407 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1408
45b0be94
AM
14092013-11-12 Andrew MacLeod <amacleod@redhat.com>
1410
18f429e2
AM
1411 * c-common.c: Include gimplify.h.
1412 * c-gimplify.c: Likewise.
1413 * cilk.c: Likewise.
1414 * c-omp.c: Include gimple-expr.h instead of gimple.h.
1415 * c-ubsan.c: Don't include gimple.h.
45b0be94 1416
582d9b50
JM
14172013-11-12 Joseph Myers <joseph@codesourcery.com>
1418
1419 * c-common.c (c_common_reswords): Add _Thread_local.
1420
6b28e197
JM
14212013-11-09 Joseph Myers <joseph@codesourcery.com>
1422
1423 * c-common.c (atomic_size_supported_p): New function.
1424 (resolve_overloaded_atomic_exchange)
1425 (resolve_overloaded_atomic_compare_exchange)
1426 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1427 Use it instead of comparing size with a local list of sizes.
1428
267bac10
JM
14292013-11-07 Andrew MacLeod <amacleod@redhat.com>
1430 Joseph Myers <joseph@codesourcery.com>
1431
1432 * c-common.h (enum rid): Add RID_ATOMIC.
1433 * c-common.c (c_common_reswords): Add _Atomic.
1434 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1435 (keyword_is_type_qualifier): Accept RID_ATOMIC.
1436 * c-format.c (check_format_types): Check for extra _Atomic
1437 qualifiers in format argument.
1438 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1439 (pp_c_type_qualifier_list): Mention _Atomic in comment.
1440
5157b91e
TB
14412013-11-06 Tobias Burnus <burnus@net-b.de>
1442
1443 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1444
6dbe0958
JM
14452013-11-06 Joseph Myers <joseph@codesourcery.com>
1446
1447 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1448 standards modes.
1449 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1450 to mean lack of IEEE 754 support.
1451
e8ff5196
TB
14522013-11-05 Tobias Burnus <burnus@net-b.de>
1453
1454 * c.opt (-Wdate-time): New option
1455 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1456
254a0760
JM
14572013-11-05 Joseph Myers <joseph@codesourcery.com>
1458
1459 * c-cppbuiltin.c (cpp_iec_559_value): Test
1460 flag_excess_precision_cmdline not flag_excess_precision.
1461
6d7f7e0a
TB
14622013-11-05 Tobias Burnus <burnus@net-b.de>
1463
1464 * c.opt (fopenmp-simd): New option.
1465 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1466 (omp_pragmas): ... this new struct.
1467 (c_pp_lookup_pragma): Also walk omp_pragmas.
1468 (init_pragma): Init pragmas for -fopenmp-simd.
1469
55a7f02f
MP
14702013-11-04 Marek Polacek <polacek@redhat.com>
1471
1472 PR c++/58979
1473 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1474
9193fb05
JM
14752013-11-04 Joseph Myers <joseph@codesourcery.com>
1476
1477 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1478 New functions.
1479 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1480
94159ecf
EB
14812013-11-04 Eric Botcazou <ebotcazou@adacore.com>
1482
1483 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1484 (dump_ada_specs): Adjust prototype of second callback.
1485 * c-ada-spec.c (cpp_check): New global variable.
1486 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1487 (print_generic_ada_decl): Likewise.
1488 (has_static_fields): Change return type to bool and add guard.
1489 (has_nontrivial_methods): New predicate.
1490 (is_tagged_type): Change return type to bool.
1491 (separate_class_package): Call has_nontrivial_methods.
1492 (pp_ada_tree_identifier): Minor tweaks.
1493 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1494 (dump_ada_array_domains): Likewise.
1495 (dump_ada_array_type): Likewise.
1496 (dump_template_types): Remove cpp_check parameter and do not pass it to
1497 dump_generic_ada_node.
1498 (dump_ada_template): Likewise.
1499 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1500 recursively.
1501 (print_ada_methods): Change return type to integer. Remove cpp_check
1502 parameter and do not pass it down.
1503 (dump_nested_types): Remove cpp_check parameter and do not pass it to
1504 dump_generic_ada_node.
1505 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
1506 accessing methods.
1507 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1508 down. Use has_nontrivial_methods to recognize C++ classes. Use return
1509 value of print_ada_methods.
1510 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1511 Set cpp_check to it before invoking dump_ada_nodes.
1512 (dump_ada_specs): Likewise.
1513
b906f4ca
MP
15142013-11-03 Marek Polacek <polacek@redhat.com>
1515
1516 * c-ubsan.c: Don't include hash-table.h.
1517 (ubsan_instrument_vla): New function.
1518 * c-ubsan.h: Declare it.
1519
5e20cdc9
DM
15202013-10-31 David Malcolm <dmalcolm@redhat.com>
1521
1522 Automated part of renaming of symtab_node_base to symtab_node.
1523
1524 Patch autogenerated by rename_symtab.py from
1525 https://github.com/davidmalcolm/gcc-refactoring-scripts
1526 revision 58bb219cc090b2f4516a9297d868c245495ee622
1527
1528 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1529 symtab_node_base to symtab_node.
1530
7057e645
ESR
15312013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
1532
1533 Implement C++14 digit separators.
1534 * c-lex.c (interpret_float): Remove digit separators from scratch string
1535 before building real literal.
1536
193ea7bc
JJ
15372013-10-30 Jakub Jelinek <jakub@redhat.com>
1538
1539 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1540
939b37da
BI
15412013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1542
1543 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1544 fields.
1545 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1546 enabled.
1547 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1548 (insert_cilk_frame): New prototype.
1549 (cilk_init_builtins): Likewise.
1550 (gimplify_cilk_spawn): Likewise.
1551 (c_cilk_install_body_w_frame_cleanup): Likewise.
1552 (cilk_detect_spawn_and_unwrap): Likewise.
1553 (cilk_set_spawn_marker): Likewise.
1554 (build_cilk_sync): Likewise.
1555 (build_cilk_spawn): Likewise.
1556 * cilk.c: New file.
1557
67348ccc
DM
15582013-10-29 David Malcolm <dmalcolm@redhat.com>
1559
1560 Patch autogenerated by refactor_symtab.py from
1561 https://github.com/davidmalcolm/gcc-refactoring-scripts
1562 revision 58bb219cc090b2f4516a9297d868c245495ee622
1563
1564 * c-gimplify.c (c_genericize): Update for conversion of symtab types
1565 to a true class hierarchy.
1566 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1567
d570872d
RS
15682013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
1569
1570 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1571
98906124
JL
15722013-10-26 Jeff Law <law@redhat.com>
1573
1574 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
1575 * c-family/c.opt: Ignore and warn for mudflap options.
1576
d73749df 15772013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
1578
1579 PR other/33426
1580 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1581 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1582
3f04b1bb
JM
15832013-10-23 Jason Merrill <jason@redhat.com>
1584
1585 * c-format.c (gcc_cxxdiag_char_table): Add %X.
1586
acf0174b
JJ
15872013-10-11 Jakub Jelinek <jakub@redhat.com>
1588
acd15a28
JJ
1589 * c-common.h (omp_clause_mask::operator !=): New method.
1590 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1591 instead of if (mask & something) tests everywhere.
1592
acf0174b
JJ
1593 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1594 201307 instead of 201107.
1595 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1596 (c_common_attribute_table): Add "omp declare target" and
1597 "omp declare simd" attributes.
1598 (handle_omp_declare_target_attribute,
1599 handle_omp_declare_simd_attribute): New functions.
1600 * c-omp.c: Include c-pragma.h.
1601 (c_finish_omp_taskgroup): New function.
1602 (c_finish_omp_atomic): Add swapped argument, if true,
1603 build the operation first with rhs, lhs arguments and use NOP_EXPR
1604 build_modify_expr.
1605 (c_finish_omp_for): Add code argument, pass it down to make_code.
1606 (c_omp_split_clauses): New function.
1607 (c_split_parallel_clauses): Removed.
1608 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1609 c_omp_declare_simd_clauses_to_decls): New functions.
1610 * c-common.h (omp_clause_mask): New type.
1611 (OMP_CLAUSE_MASK_1): Define.
1612 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1613 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1614 omp_clause_mask::operator |, omp_clause_mask::operator &,
1615 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1616 omp_clause_mask::operator ==): New methods.
1617 (enum c_omp_clause_split): New.
1618 (c_finish_omp_taskgroup): New prototype.
1619 (c_finish_omp_atomic): Add swapped argument.
1620 (c_finish_omp_for): Add code argument.
1621 (c_omp_split_clauses): New prototype.
1622 (c_split_parallel_clauses): Removed.
1623 (c_omp_declare_simd_clauses_to_numbers,
1624 c_omp_declare_simd_clauses_to_decls): New prototypes.
1625 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1626 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1627 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1628 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1629 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1630 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1631 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1632 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1633 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1634 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1635 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1636 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1637 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1638 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1639 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1640 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1641 PRAGMA_OMP_CLAUSE_UNIFORM.
1642
826cacfe
MG
16432013-10-09 Marc Glisse <marc.glisse@inria.fr>
1644
1645 PR tree-optimization/20318
1646 * c-common.c (handle_returns_nonnull_attribute): New function.
1647 (c_common_attribute_table): Add returns_nonnull.
1648
2284b034
MG
16492013-10-03 Marc Glisse <marc.glisse@inria.fr>
1650
1651 PR c++/19476
1652 * c.opt (fcheck-new): Move to common.opt.
1653
b56e9788
MP
16542013-09-25 Marek Polacek <polacek@redhat.com>
1655 Jakub Jelinek <jakub@redhat.com>
1656
1657 PR sanitizer/58413
1658 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1659 an expression if we can prove it is correct.
1660 (ubsan_instrument_division): Likewise. Remove unnecessary
1661 check.
1662
ce6923c5
MP
16632013-09-18 Marek Polacek <polacek@redhat.com>
1664
1665 PR sanitizer/58411
1666 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1667 Declare it.
1668 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1669
fb5610fb
IS
16702013-09-14 Iain Sandoe <iain@codesourcery.com>
1671
1672 PR target/48094
1673 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1674 fobjc-gc, freplace-objc-classes): Accept for LTO.
1675
88b0e79e
JC
16762013-09-13 Jacek Caban <jacek@codeweavers.com>
1677
1678 * c-target.def: New hook
1679
c9b0866a
PC
16802013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1681
1682 PR c++/43452
1683 * c.opt (Wdelete-incomplete): Add.
1684
0af94e6f
JR
16852013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1686
1687 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1688 (vector_types_compatible_elements_p): New function.
1689 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1690 declaration.
1691 (vector_types_compatible_elements_p): Declare.
1692
7c26172c
GDR
16932013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1694
1695 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1696 a virtual member function.
1697 (pp_simple_type_specifier): Remove.
1698 (pp_c_type_specifier): Likewise.
1699 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1700 Rename from pp_c_type_specifier. Adjust.
1701 (c_pretty_printer::c_pretty_printer): Do not assign to
1702 simple_type_specifier.
1703
20059c8b
GDR
17042013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1705
1706 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1707 member function.
1708 (c_pretty_printer::storage_class_specifier): Likewise.
1709 (c_pretty_printer::initializer): Likewise.
1710 (pp_declaration): Remove.
1711 (pp_declaration_specifiers): Likewise.
1712 (pp_abstract_declarator): Likewise.
1713 (pp_declarator): Likewise.
1714 (pp_type_id): Likewise.
1715 (pp_statement): Likewise.
1716 (pp_constant): Likewise.
1717 (pp_id_expression): Likewise.
1718 (pp_primary_expression): Likewise.
1719 (pp_unary_expression): Likewise.
1720 (pp_multiplicative_expression): Likewise.
1721 (pp_conditional_expression): Likewise.
1722 (pp_assignment_expression): Likewise.
1723 (pp_expression): Likewise.
1724 (pp_c_type_id): Likewise.
1725 (pp_c_storage_class_specifier): Likewise.
1726 * c-pretty-print.c (pp_c_type_cast): Tidy.
1727 (pp_c_pointer): Likewise.
1728 (pp_c_type_specifier): Likewise.
1729 (pp_c_parameter_type_list): Likewise.
1730 (pp_c_function_definition): Likewise.
1731 (pp_c_init_declarator): Likewise.
1732 (pp_c_initializer_list): Likewise.
1733 (pp_c_constructor_elts): Likewise.
1734 (c_pretty_printer::direct_abstract_declarator): Likewise.
1735 (c_pretty_printer::declaration_specifiers): Likewise.
1736 (c_pretty_printer::primary_expression): Likewise.
1737 (c_pretty_printer::postfix_expression): Likewise.
1738 (c_pretty_printer::type_id): Rename from pp_c_type_id.
1739 (c_pretty_printer::storage_class_specifier): Rename from
1740 pp_c_storage_class_specifier.
1741 (c_pretty_printer::initializer): Rename from pp_c_initializer.
1742 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1743 storage_class_specifier, initializer, offset_list, flags.
1744
de5a5fa1
MP
17452013-08-30 Marek Polacek <polacek@redhat.com>
1746
1747 * c-ubsan.c: New file.
1748 * c-ubsan.h: New file.
1749
8f0e4d72
GDR
17502013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1751
1752 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1753 member function.
1754 (c_pretty_printer::declaration_specifiers): Likewise.
1755 (c_pretty_printer::declarator): Likewise.
1756 (c_pretty_printer::abstract_declarator): Likewise.
1757 (c_pretty_printer::direct_abstract_declarator): Likewise.
1758 (c_pretty_printer::direct_declarator): Likewise.
1759 (c_pretty_printer::function_specifier): Likewise.
1760 (pp_declaration): Adjust.
1761 (pp_declaration_specifiers): Likewise.
1762 (pp_abstract_declarator): Likewise.
1763 (pp_direct_declarator): Likewise.
1764 (pp_function_specifier): Likewise.
1765 (pp_direct_abstract_declarator): Remove as unused.
1766 (pp_c_declaration): Remove.
1767 (pp_c_declaration_specifiers): Likewise.
1768 (pp_c_declarator): Likewise.
1769 (pp_c_direct_declarator): Likewise.
1770 (pp_c_function_specifier): Likewise.
1771 (pp_c_direct_abstract_declarator): Likewise.
1772 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1773 from pp_c_abstract_declarator. Adjust.
1774 (c_pretty_printer::direct_abstract_declarator): Rename from
1775 pp_c_direct_abstract_declarator. Adjust.
1776 (c_pretty_printer::function_specifier): Rename from
1777 pp_c_function_specifier. Adjust.
1778 (c_pretty_printer::declaration_specifiers): Rename from
1779 pp_c_declaration_specifiers. Adjust.
1780 (c_pretty_printer::direct_declarator): Rename from
1781 pp_c_direct_declarator. Adjust.
1782 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
1783 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
1784 (c_pretty_printer::c_pretty_printer): Do not assign to
1785 declaration, declaration_specifiers, declarator,
1786 direct_declarator, direct_abstract_declarator, function_specifier.
1787
00d34d3a
GDR
17882013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
1789
1790 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1791 virtual member function.
1792 (c_pretty_printer::multiplicative_expression): Likewise.
1793 (c_pretty_printer::conditional_expression): Likewise.
1794 (c_pretty_printer::assignment_expression): Likewise.
1795 (c_pretty_printer::expression): Likewise.
1796 (pp_unary_expression): Adjust.
1797 (pp_multiplicative_expression): Likewise.
1798 (pp_assignment_expression): Likewise.
1799 (pp_conditional_expression): Likewise.
1800 (pp_expression): Likewise.
1801 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1802 from pp_c_unary_expression. Adjust.
1803 (c_pretty_printer::multiplicative_expression): Rename from
1804 pp_c_multiplicative_expression. Adjust.
1805 (c_pretty_printer::conditional_expression): Rename from
1806 pp_c_conditional_expression. Adjust.
1807 (c_pretty_printer::assignment_expression): Rename from
1808 pp_c_assignment_expression. Adjust.
1809 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
1810 (c_pretty_printer::c_pretty_printer): Do not assign to
1811 unary_expression, multiplicative_expression,
1812 conditional_expression, expression.
1813
fb22178f
GDR
18142013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1815
1816 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1817 virtual member function.
1818 (pp_postfix_expression): Adjust.
1819 (pp_c_postfix_expression): Remove.
1820 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1821 from pp_c_postfix_expression. Adjust.
1822 (c_pretty_printer::c_pretty_printer): Do not assign to
1823 postfix_expression.
1824
7ecc2600
GDR
18252013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1826
1827 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1828 virtua member function.
1829 (pp_primary_expression): Adjust.
1830 (pp_c_primary_expression): Remove.
1831 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1832 from pp_c_primary_expression. Adjust.
1833 (pp_c_initializer_list): Use pp_primary_expression.
1834 (c_pretty_printer::c_pretty_printer): Do not assign to
1835 primary_expression.
1836
0691175f
GDR
18372013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1838
1839 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1840 * c-pretty-print.c (M_): Remove.
1841 (c_pretty_printer::translate_string): Define.
1842 (pp_c_type_specifier): Use it.
1843 (pp_c_primary_expression): Likewise.
1844 (pp_c_expression): Likewise.
1845
66dfe4c4
GDR
18462013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1847
1848 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1849 virtual function.
1850 (pp_c_id_expression): Remove.
1851 (pp_id_expression): Adjust.
1852 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1853 pp_c_id_expression. Adjust.
1854 (pp_c_postfix_expression): Use pp_id_expression.
1855 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1856
ca43e9d5
GDR
18572013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
1858
1859 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1860 member function.
1861 (pp_constant): Adjust.
1862 (pp_c_constant): Remove.
1863 * c-pretty-print.c (c_pretty_printer::constant): Rename from
1864 pp_c_constant. Adjust.
1865 (pp_c_constant)
1866 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1867 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1868
da6ca2b5
GDR
18692013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1870
1871 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1872 (c_pretty_printer::c_pretty_printer): Declare.
1873 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1874 c_pretty_printer_init. Adjust.
1875 (print_c_tree): Do not call c_pretty_printer_init.
1876 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1877
65a372f4
AC
18782013-08-09 Arnaud Charlet <charlet@adacore.com>
1879
1880 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1881
fd9b0f32
PC
18822013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
1883
1884 PR c++/58080
1885 * c-common.c (pointer_int_sum): Add bool parameter.
1886 * c-common.h (pointer_int_sum): Adjust declaration.
1887
e0aec1e9
GDR
18882013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1889
1890 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
1891 c_pretty_printer variable.
1892
b066401f
GDR
18932013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1894
1895 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1896 (pp_base): Remove.
1897 (pp_c_base): Likewise. Adjust users.
1898 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1899 (pp_c_whitespace): Do not call pp_base.
1900 (pp_c_left_paren): Likewise.
1901 (pp_c_right_paren): Likewise.
1902 (pp_c_left_brace): Likewise.
1903 (pp_c_right_brace): Likewise.
1904 (pp_c_left_bracket): Likewise.
1905 (pp_c_right_bracket): Likewise.
1906 (pp_c_dot): Likewise.
1907 (pp_c_ampersand): Likewise.
1908 (pp_c_star): Likewise.
1909 (pp_c_arrow): Likewise.
1910 (pp_c_semicolon): Likewise.
1911 (pp_c_complement): Likewise.
1912 (pp_c_exclamation): Likewise.
1913 (pp_c_direct_declarator): Likewise.
1914 (pp_c_ws_string): Likewise.
1915 (pp_c_identifier): Likewise.
1916 (pp_c_statement): Likewise.
1917 (print_c_tree): Likewise.
1918
65e5a578
ESR
19192013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
1920
1921 PR c++/58072
1922 * c-common.c (c_parse_error): Catch user-defined literal tokens and
1923 provide useful error strings.
1924
137a1a27
GDR
19252013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1926
1927 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1928 printer functions instead of pp_string or operators and punctuators.
1929 (dump_generic_ada_node): Likewise.
1930 * c-pretty-print.c (pp_c_type_specifier): Likewise.
1931 (pp_c_relational_expression): Likewise.
1932 (pp_c_logical_or_expression): Likewise.
1933
07838b13
GDR
19342013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1935
1936 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1937 functions instead of pp_character.
1938 (pp_ada_tree_identifier): Likewise.
1939 (dump_ada_double_name): Likewise.
1940 (dump_ada_function_declaration): Likewise.
1941 (dump_ada_array_domains): Likewise.
1942 (dump_template_types): Likewise.
1943 (dump_generic_ada_node): Likewise.
1944 (print_ada_declaration): Likewise.
1945 (print_ada_struct_decl): Likewise.
1946 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1947
433cc7b0
TT
19482013-07-23 Tom Tromey <tromey@redhat.com>
1949
1950 * c-common.h (enum rid) <RID_GENERIC>: New constant.
1951 * c-common.c (c_common_reswords): Add _Generic.
1952
688010ba
OB
19532013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
1954
1955 * c-common.c: Fix typos.
1956 * c-common.h: Likewise.
1957
2a99e5e6
LL
19582013-07-13 Lubos Lunak <l.lunak@suse.cz>
1959
1960 PR c++/55203
1961 * c-common.c (c_common_attribute_table): Add warn_unused.
1962 (handle_warn_unused_attribute): New.
1963
c26302d5
JJ
19642013-07-10 Jakub Jelinek <jakub@redhat.com>
1965
1966 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1967 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1968
dfeadaa0
PC
19692013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1970
1971 PR c++/57869
1972 * c.opt: Add Wconditionally-supported.
1973
6a2fa4b2
GS
19742013-07-08 Graham Stott <graham.stott@btinternet.com>
1975
1976 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1977 unused variables l_length and l_node.
1978
ecdbd01a 19792013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
1980
1981 PR c/57821
1982 * c-common.c (complete_array_type): Delay folding first index
1983 like other indices. When folding, check for index overflow.
1984
bedc293e
MG
19852013-06-27 Marc Glisse <marc.glisse@inria.fr>
1986
1987 PR c++/57509
1988 * c-common.h (c_build_vec_perm_expr): New complain argument.
1989 * c-common.c (c_build_vec_perm_expr): Likewise.
1990 Use save_expr also in C++.
1991
604b2bfc
GDR
19922013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1993
1994 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1995 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1996 * c-opts.c (c_common_post_options): Likewise.
1997
dfeadaa0 19982013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
1999
2000 * array-notation-common.c (length_mismatch_in_expr): Changed the
2001 parameter type's from a dynamic array to a vec_tree. Also removed
2002 the size parameters.
2003 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2004 the change above.
2005
2ce86d2e
BI
20062013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2007
2008 * c-common.h (struct cilkplus_an_parts): New structure.
2009 (struct cilkplus_an_loop_parts): Likewise.
2010 (cilkplus_extract_an_triplets): New prototype.
2011 (fix_sec_implicit_args): Likewise.
2012 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2013 (fix_sec_implicit_args): Likewise.
604b2bfc 2014
07a6825b
BI
20152013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2016
2017 * array-notation-common.c (find_inv_trees): Removed an unwanted
2018 typecasting.
2019 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2020 enum rid to enum tree_code.
2021
08346abd
JH
20222013-06-11 Jan Hubicka <jh@suse.cz>
2023
2024 * c-common.c (handle_alias_ifunc_attribute): Do not set
2025 DECL_EXTERNAL for weakref variables.
2026 * c-pragma.c (handle_pragma_weak): Make sure aliases
2027 are not declared as external.
2028
d60f1706
BI
20292013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2030
2031 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2032 function from c/c-array-notation.c.
2033 (is_cilkplus_reduce_builtin): Likewise.
2034 (find_rank): Likewise.
2035 (extract_array_notation_exprs): Likewise.
2036 (replace_array_notations): Likewise.
2037 (find_inv_trees): Likewise.
2038 (replace_inv_trees): Likewise.
2039 (contains_array_notation_expr): Likewise.
2040 (find_correct_array_notation_type): Likewise.
2041 * c-common.h (struct inv_list): Moved this struct from the file
2042 c/c-array-notation.c and added a new field called additional tcodes.
2043 (length_mismatch_in_expr_p): New prototype.
2044 (is_cilkplus_reduce_builtin): Likewise.
2045 (find_rank): Likewise.
2046 (extract_array_notation_exprs): Likewise.
2047 (replace_array_notation): Likewise.
2048 (find_inv_trees): Likewise.
2049 (replace_inv_trees): Likewise.
2050 (find_correct_array_notation_type): Likewise.
dfeadaa0 2051
36536d79
BI
20522013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2053
2054 * c-common.c (c_define_builtins): When cilkplus is enabled, the
2055 function array_notation_init_builtins is called.
2056 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2057 * c-common.def (ARRAY_NOTATION_REF): New tree.
2058 * c-common.h (build_array_notation_expr): New function declaration.
2059 (build_array_notation_ref): Likewise.
2060 (extract_sec_implicit_index_arg): New extern declaration.
2061 (is_sec_implicit_index_fn): Likewise.
2062 (ARRAY_NOTATION_CHECK): New define.
2063 (ARRAY_NOTATION_ARRAY): Likewise.
2064 (ARRAY_NOTATION_START): Likewise.
2065 (ARRAY_NOTATION_LENGTH): Likewise.
2066 (ARRAY_NOTATION_STRIDE): Likewise.
2067 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2068 ARRAY_NOTATION_REF.
2069 (pp_c_expression): Likewise.
2070 * c.opt (flag_enable_cilkplus): New flag.
2071 * array-notation-common.c: New file.
2072
f7716d57
JJ
20732013-05-14 Jakub Jelinek <jakub@redhat.com>
2074
2075 PR c++/57274
2076 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2077
a5e0cd1d
MG
20782013-05-10 Marc Glisse <marc.glisse@inria.fr>
2079
2080 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2081 vectors.
2082
f6bc1c4a
HS
20832013-05-07 Han Shen <shenhan@google.com>
2084
2085 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2086
3f12f6e9
SKS
20872013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2088
2089 * c-common.c (check_user_alignment): Emit error for negative values.
2090
61949153
PC
20912013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2092
2093 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2094
e93e18e9
PC
20952013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2096
2097 * c-cppbuiltin.c (c_cpp_builtins): Do not define
2098 __GXX_EXPERIMENTAL_CXX1Y__.
2099
44d90fe1
PC
21002013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2101 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2102
2103 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2104 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2105 to simply use OPT_Wpointer_arith.
2106 (c_sizeof_or_alignof_type): Likewise.
2107
13f39b2e
PC
21082013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2109
2110 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2111
4b84d650
JJ
21122013-04-12 Jakub Jelinek <jakub@redhat.com>
2113
2114 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2115 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2116 specifiers.
2117
fb037b5d
SB
21182013-04-07 Steven Bosscher <steven@gcc.gnu.org>
2119
2120 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2121
4e856798
PC
21222013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
2123
2124 * c-common.c (pointer_int_sum): Remove dead code.
2125
4b1baac8
RS
21262013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2127
2128 PR middle-end/56524
2129 * c-common.c (handle_optimize_attribute): Don't call
2130 save_optabs_if_changed.
2131
0b50e654
JJ
21322013-03-05 Jakub Jelinek <jakub@redhat.com>
2133
2134 PR middle-end/56461
2135 * c-pch.c (pch_init): Free target_validity at the end.
2136
48c41403
JJ
21372013-03-04 Jakub Jelinek <jakub@redhat.com>
2138
2139 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2140
e664c61c
KS
21412013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2142 Jakub Jelinek <jakub@redhat.com>
2143
2144 PR sanitizer/56454
2145 * c-common.c (handle_no_sanitize_address_attribute): New function.
2146 (c_common_attribute_table): Add no_sanitize_address attribute.
2147 (handle_no_address_safety_analysis_attribute): Add
2148 no_sanitize_address attribute, not no_address_safety_analysis
2149 attribute.
2150
a475fd3d 21512013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
2152
2153 PR target/52555
2154 * c-common.c (handle_optimize_attribute): Call
2155 save_optabs_if_changed.
2156
f6007d99
JJ
21572013-02-18 Jakub Jelinek <jakub@redhat.com>
2158 Steven Bosscher <steven@gcc.gnu.org>
2159
2160 PR pch/54117
2161 * c-opts.c (c_common_post_options): If debug info is enabled
2162 and non-dwarf*, refuse to load PCH files and when writing PCH
2163 file warn.
2164
cf35e2b1
JJ
21652013-02-05 Jakub Jelinek <jakub@redhat.com>
2166
2167 PR middle-end/56167
2168 * c-common.c (handle_error_attribute): Fix condition.
2169
32887460
JJ
21702013-01-30 Jakub Jelinek <jakub@redhat.com>
2171
2172 PR c++/55742
2173 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2174
5af057d8
JM
21752013-01-18 Jason Merrill <jason@redhat.com>
2176
2177 PR target/54908
2178 * c.opt (-fextern-tls-init): New.
2179 * c-opts.c (c_common_post_options): Handle it.
2180
cc83c823
JJ
21812013-01-09 Jakub Jelinek <jakub@redhat.com>
2182
2183 PR c/48418
2184 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2185 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2186 and is either negative or bigger or equal to type precision
2187 of the first operand.
2188
a859517f
MP
21892012-12-03 Marek Polacek <polacek@redhat.com>
2190
2191 PR c/55570
2192 * c-common.c (check_user_alignment): Swap order of tests,
2193 check TREE_CODE first.
2194
2d7aa578
ESR
21952012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
2196
2197 PR c++/52654
2198 * c-common.h (overflow_type): New enum.
2199 (build_userdef_literal): Add overflow_type argument.
2200 (tree_userdef_literal): Add overflow_type.
2201 (USERDEF_LITERAL_OVERFLOW): New access macro.
2202 * c-common.c (build_userdef_literal): Add overflow_type
2203 argument.
2204 * c-lex.c (c_lex_with_flags): Add overflow_type to
2205 build_userdef_literal calls.
2206 (interpret_integer, interpret_float): Add overflow_type argument.
2207
cc3c4f62
RB
22082012-11-28 Richard Biener <rguenther@suse.de>
2209
2210 PR c/35634
2211 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2212 here and use a type with proper overflow behavior for types that would
2213 need to be promoted for the arithmetic.
2214
77bc5132
JJ
22152012-11-23 Jakub Jelinek <jakub@redhat.com>
2216
2217 PR sanitizer/55435
2218 * c-common.c (handle_no_address_safety_analysis_attribute): New
2219 function.
2220 (c_common_attribute_table): Add no_address_safety_analysis.
2221
5dc99c46
SB
22222012-11-16 Simon Baldwin <simonb@google.com>
2223
2224 * c.opt: Add f[no-]canonical-system-headers.
2225 * c-opts.c (c_common_handle_option): Handle
2226 OPT_fcanonical_system_headers.
2227
a4a0016d
ESR
22282012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
2229
2230 PR c++/54413
2231 * c-opts.c (c_common_handle_option): Set new flags.
2232 * c.opt: Describe new flags.
2233
7dbb85a7
JM
22342012-11-09 Jason Merrill <jason@redhat.com>
2235
2236 * c.opt (Wabi-tag): New.
2237
ad7bac31
AK
22382012-11-09 Andi Kleen <ak@linux.intel.com>
2239
2240 PR 55139
2241 * c-common.c (get_atomic_generic_size): Mask with
2242 MEMMODEL_MASK
2243
7332899a
MLI
22442012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2245
2246 PR c/53063
2247 * c.opt (Wformat): Make it Alias Wformat=1.
2248 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2249 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2250 LangEnabledBy.
2251 (Wformat=): RejectNegative. Use LangEnabledBy.
2252 (Wnonnull): Use LangEnabledBy.
2253 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2254 * c-format.c (set_Wformat): Delete.
2255 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2256 (maybe_read_dollar_number): Likewise.
2257 (avoid_dollar_number): Likewise.
2258 (finish_dollar_format_checking): Likewise.
2259 (check_format_info): Likewise.
2260 (check_format_info_main): Likewise.
2261 (check_format_types): Likewise.
2262 (format_type_warning): Likewise.
2263 * c-common.c (int): Likewise.
2264 (check_function_sentinel): Likewise.
2265 * c-common.h (warn_format,set_Wformat): Do not declare here.
2266
34a180a6
MLI
22672012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2268
2269 PR c/53063
2270 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2271 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2272 Use LangEnabledBy.
2273 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2274 common.opt.
2275 (Wvariadic-macros): Init(1).
2276 * c-opts.c (c_common_handle_option): Do not handle them
2277 explicitly.
2278 (c_common_post_options): Likewise.
2279 (sanitize_cpp_opts): warn_unused_macros is now
2280 cpp_warn_unused_macros.
2281 (push_command_line_include): Likewise.
2282 * c-common.c (warn_unknown_pragmas): Do not define.
2283 * c-common.h (warn_unknown_pragmas): Do not declare.
2284
3f46d6a5
MLI
22852012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2286
2287 PR c/51294
2288 * c-common.c (conversion_warning): Handle conditional expressions.
2289
880661a4
JW
22902012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2291
2292 PR c++/54930
2293 * c.opt (Wreturn_local_addr): Define new option.
2294
4514a96b
JM
22952012-10-25 Jason Merrill <jason@redhat.com>
2296
f14edc1a
JM
2297 * c.opt (Wvirtual-move-assign): New.
2298
4514a96b
JM
2299 * c.opt (Winherited-variadic-ctor): New.
2300
93100c6b
MG
23012012-10-25 Marc Glisse <marc.glisse@inria.fr>
2302
2303 PR c++/54427
2304 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2305
1efcb8c6
JM
23062012-10-23 Joseph Myers <joseph@codesourcery.com>
2307
2308 * c-common.h (pch_cpp_save_state): Declare.
2309 * c-target.def (c_preinclude): New hook.
2310 * c-opts.c (done_preinclude): New.
2311 (push_command_line_include): Handle default preincluded header.
2312 (cb_file_change): Call pch_cpp_save_state when calling
2313 push_command_line_include.
2314 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2315 (pch_cpp_save_state): New.
2316 (pch_init): Call pch_cpp_save_state conditionally, instead of
2317 calling cpp_save_state.
2318
4a0ae68e
MLI
23192012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2320
2321 PR c/53063
2322 PR c/40989
2323 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2324 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2325 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2326 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2327 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2328 * c-opts.c (c_common_handle_option): Remove explicit handling from
2329 here.
2330 (c_common_post_options): Likewise.
2331
67e4210b
EB
23322012-10-18 Eric Botcazou <ebotcazou@adacore.com>
2333
2334 * c-ada-spec.c (LOCATION_COL): Delete.
2335 (compare_location): New function.
2336 (compare_node): Use it.
2337 (compare_comment): Likewise.
2338
65d4f2cd
MLI
23392012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2340
2341 PR c/53063
2342 PR c/40989
2343 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2344 * c-opts.c (c_common_handle_option): Do not set them here. Add
2345 comment.
2346 (c_common_post_options): Likewise.
2347
909881cb
EB
23482012-10-16 Eric Botcazou <ebotcazou@adacore.com>
2349
2350 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2351 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2352 Remove POINTER_TYPE handling, add large unsigned handling and use
2353 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2354
3a785c97
JJ
23552012-10-12 Jakub Jelinek <jakub@redhat.com>
2356
2357 PR c/54381
2358 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2359 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2360 locs and array of 3 trees instead of just single loc and single
2361 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
2362 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2363 For *cmp* builtins that take two sources strings report warnings
2364 about first and second source, not about destination and source.
2365
5e54f81d
MG
23662012-10-12 Marc Glisse <marc.glisse@inria.fr>
2367
2368 PR c++/53055
2369 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2370
f5b02f1e
EB
23712012-10-11 Eric Botcazou <ebotcazou@adacore.com>
2372
2373 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2374 declaring something coming from another file.
2375
b46dbc6c
AC
23762012-10-10 Arnaud Charlet <charlet@adacore.com>
2377
f5b02f1e 2378 PR ada/54845
b46dbc6c
AC
2379 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2380
5d9de0d0
PC
23812012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2382
2383 PR c++/54194
2384 * c-common.c (warn_about_parentheses): Add location_t parameter;
2385 use EXPR_LOC_OR_LOC.
2386 * c-common.h: Update declaration.
2387
a212e43f
MG
23882012-10-09 Marc Glisse <marc.glisse@inria.fr>
2389
2390 PR c++/54427
2391 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2392 more operations. Make error messages optional.
2393 * c-common.h (enum stv_conv): Moved from c-typeck.c.
2394 (scalar_to_vector): Declare.
2395
b1db7f91
JM
23962012-10-08 Jason Merrill <jason@redhat.com>
2397
2398 * c-common.c (c_common_reswords): Add thread_local.
2399
e28d52cf
DS
24002012-10-08 Dodji Seketeli <dodji@redhat.com>
2401
2402 PR c++/53528 C++11 attribute support
2403 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2404 new functions.
2405 * c-common.c (check_cxx_fundamental_alignment_constraints): New
2406 static function.
2407 (handle_aligned_attribute): In choose strictest alignment
2408 among many. Use new check_cxx_fundamental_alignment_constraints.
2409 (handle_transparent_union_attribute): In c++11 attribute syntax,
2410 don't look through typedefs.
2411
3b78de56
AC
24122012-10-04 Arnaud Charlet <charlet@adacore.com>
2413
2414 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2415 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2416 out of dumpfile.h.
2417
6040bb5f
DC
24182012-09-25 Dehao Chen <dehao@google.com>
2419
2420 PR middle-end/54645
3b78de56 2421 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
2422 map when read in the pch.
2423
0b07a57e
AC
24242012-09-18 Arnaud Charlet <charlet@adacore.com>
2425
2426 * c-ada-spec.c: Style fixes.
2427
da5182be
TQ
24282012-09-18 Thomas Quinot <quinot@adacore.com>
2429
2430 * c.opt (-fada-spec-parent): Define new command line switch.
2431 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2432 is specified, generate binding spec as a child of the specified unit.
2433
0ccb505d
PC
24342012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
2435 Manuel López-Ibáñez <manu@gcc.gnu.org>
2436
2437 PR c++/53210
2438 * c.opt ([Winit-self]): Enabled by -Wall in C++.
2439
c583af79
AC
24402012-08-23 Arnaud Charlet <charlet@adacore.com>
2441
2442 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2443 for pointers, and add missing Convention C pragma.
2444 (print_ada_struct_decl): Add missing aliased keyword.
2445 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2446
1a4049e7
JJ
24472012-08-17 Jakub Jelinek <jakub@redhat.com>
2448
2449 * c-common.c (sizeof_pointer_memaccess_warning): New function.
2450 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2451 * c-opts.c (c_common_handle_option): Enable it for -Wall.
2452 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2453 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2454
70b5e7dc
RG
24552012-08-10 Richard Guenther <rguenther@suse.de>
2456
2457 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2458
f8923f7e
SB
24592012-08-07 Steven Bosscher <steven@gcc.gnu.org>
2460
2461 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2462 instead of separate pp_newline and pp_flush.
2463 (print_c_tree): Likewise.
2464
e45abe1f
RH
24652012-07-26 Richard Henderson <rth@redhat.com>
2466
2467 * c-common.c (handle_hot_attribute): Allow labels.
2468 (handle_cold_attribute): Likewise.
2469
332f1d24
JJ
24702012-07-20 Jakub Jelinek <jakub@redhat.com>
2471
2472 PR c++/28656
2473 * c-common.c (check_function_nonnull): Handle multiple nonnull
2474 attributes properly.
2475
7ee2468b
SB
24762012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2477
2478 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2479 * c-ada-spec.c: Likewise.
2480 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2481
ee7b28eb
SB
24822012-07-14 Steven Bosscher <steven@gcc.gnu.org>
2483
2484 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2485 Remove code conditional on it.
2486
6bdf3519
SB
24872012-07-11 Steven Bosscher <steven@gcc.gnu.org>
2488
2489 * c-gimplify.c: Do not include basic-block.h.
2490 * c-common.c: Do not include linfuncs.h.
2491
532aafad
SB
24922012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2493
2494 * c-common.h: Include tree.h.
2495
8d0d1915
JM
24962012-07-02 Jason Merrill <jason@redhat.com>
2497
2498 PR c++/53524
2499 * c-common.c (get_priority): Call default_conversion.
2500
fbc873ad
UB
25012012-07-01 Uros Bizjak <ubizjak@gmail.com>
2502
2503 * c-pch.c (c_common_write_pch): Remove unused variables.
2504
d4a10d0a
SB
25052012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2506
2507 * cppspec.c: Moved from gcc/ to here.
2508
6f3a2e23
KT
25092012-06-27 Kai Tietz <ktietz@redhat.com>
2510
2511 PR preprocessor/37215
2512 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2513
8ca92d04
SB
25142012-06-21 Steven Bosscher <steven@gcc.gnu.org>
2515
2516 * c-common.h (c_common_print_pch_checksum): Remove.
2517 * c-pch.c: Do not include output.h.
2518 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2519 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2520 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2521 (struct c_pch_header): Remove.
2522 (get_ident): Update gpch version.
2523 (pch_init): Do not print executable_checksum to asm_out_file.
2524 Do not fail if there is no asm_out_file to read back from. Set
2525 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2526 (c_common_write_pch): Verify that nothing was written to asm_out_file
2527 since pch_init was called. Do not write a c_pch_header, and do not
2528 copy from asm_out_file to the PCH.
2529 (c_common_read_pch): Do not read a c_pch_header, and do not restore
2530 the content of asm_out_file from the PCH.
2531 (c_common_print_pch_checksum): Remove.
2532 * c-opts.c (c_common_init): Print out executable_checksum directly.
2533
70f42967
SB
25342012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2535
2536 * c-target.def (objc_declare_unresolved_class_reference,
2537 objc_declare_class_definition): Add new hooks.
2538
a8781821
SB
25392012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2540
2541 * c-lex.c: Do not include output.h.
2542 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2543 Remove uses of ASM_OUTPUT_IDENT.
2544
9e1a8dd1
RR
25452012-06-15 Marc Glisse <marc.glisse@inria.fr>
2546
2547 PR c++/51033
2548 * c-common.h (c_build_vec_perm_expr): Move decl here.
2549 * c-common.c (c_build_vec_perm_expr): Move definition
2550 here.
2551
6f07a821
SB
25522012-06-06 Steven Bosscher <steven@gcc.gnu.org>
2553
2554 * c.opt (fconserve-space): Turn into a no-op.
2555
9faeb493 25562012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
2557
2558 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2559 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2560 both the start and end of the function.
2561
a4b7d13c
SB
25622012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2563
2564 * c-common.c: Do not include output.h.
2565 * c-pragma.c: Likewise.
2566
c265f413
SA
25672012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2568
2569 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2570 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2571 (lang_decl_name): Handle namespace decls.
2572
be7a421e
SB
25732012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2574
2575 * c-ada-spec.c: Do not include output.h.
2576 * c-semantics.c: Likewise.
2577
65de6659
JM
25782012-05-29 Joseph Myers <joseph@codesourcery.com>
2579
2580 * c-common.c: Fix typo.
2581
ca5f4331
MM
25822012-05-29 Michael Matz <matz@suse.de>
2583
2584 * c-common.h (c_expand_decl): Remove prototype.
2585
4f7f7aca
MLI
25862012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2587
2588 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2589 * c-opts.c (c_common_handle_option): Remove code handling
2590 warn_missing_braces.
2591
4a792f9b
PC
25922012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2593
2594 PR c++/25137
2595 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2596 -Wmissing_braces.
2597
650dc14a
DS
25982012-05-22 Dodji Seketeli <dodji@redhat.com>
2599
2600 PR c++/53322
2601 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2602
9b095bf1
MLI
26032012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2604
2605 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2606 * c-opts.c (c_common_handle_option): Do not handle explicitly
2607 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2608
0b2c4be5
DS
26092012-05-16 Dodji Seketeli <dodji@redhat.com>
2610
2611 PR preprocessor/7263
2612 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
2613 to cpp_classify_number. For diagnostics, use the precise location
2614 instead of the global input_location.
2615
a1bde5af
PC
26162012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2617
d02924ef 2618 PR c++/11856
a1bde5af
PC
2619 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2620
d1ede5f4
BS
26212012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2622
a1bde5af 2623 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 2624
f2bc201f
MLI
26252012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2626
2627 PR 53063
2628 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2629 Wreorder): Use LangEnabledBy.
2630 * c-opts.c (c_common_handle_option): Do not enable them
2631 explicitly. Call lang-specific generated functions.
2632 (c_common_post_options): Do not set them here.
2633
95744782
MLI
26342012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2635
2636 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2637 Wmissing-field-initializers,Wmissing-parameter-type,
2638 Wold-style-declaration,Woverride-init): Use EnabledBy.
2639 * c-opts.c (c_common_post_options): Do not set here explicitly.
2640
7d5a5747
MLI
26412012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2642
2643 PR 53063
2644 * c-opts.c (c_common_handle_option): Use handle_generated_option
2645 to enable sub-options.
2646
5a3c9cf2
PC
26472012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
2648
2649 PR c++/53158
2650 * c-common.c (warnings_for_convert_and_check): Use warning_at.
2651
3ac8781c
RG
26522012-05-10 Richard Guenther <rguenther@suse.de>
2653
2654 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2655 adjust commentary about TYPE_IS_SIZETYPE types.
2656
1e537948
MLI
26572012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2658
2659 PR c++/53261
2660 * c-common.c (warn_logical_operator): Check that argument of
2661 integer_zerop is not NULL.
2662
f2c4a785
MLI
26632012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
2664
2665 PR c/43772
2666 * c-common.c (warn_logical_operator): Do not warn if either side
2667 is already true or false.
2668
50f305ca
MLI
26692012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2670
2671 PR c/51712
2672 * c-common.c (expr_original_type): New.
2673 (shorten_compare): Do not warn for enumeration types.
2674
0c3641b0
MLI
26752012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2676
2677 * c.opt (fpermissive): Add Var(flag_permissive).
2678
7edaa4d2
MG
26792012-04-30 Marc Glisse <marc.glisse@inria.fr>
2680
2681 PR c++/51033
2682 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2683 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2684
b9c8da34
DS
26852012-04-30 Dodji Seketeli <dodji@redhat.com>
2686
2687 Add -Wvarargs option
2688 * c.opt (Wvarargs): Define new option.
2689
e6c69da0
MLI
26902012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2691
2692 * c-common.c (check_function_arguments): Replace
2693 Wmissing-format-attribute with Wsuggest-attribute=format.
2694
90137d8f
MLI
26952012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2696
2697 * c.opt (Wsuggest-attribute=format): New. Alias of
2698 Wmissing-format-attribute.
2699 * c-format.c (decode_format_type): Replace
2700 Wmissing-format-attribute with Wsuggest-attribute=format.
2701 (check_function_format): Likewise.
2702
9faeb493 27032012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
2704
2705 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2706 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2707 * c.opt: Add Wliteral-suffix.
2708
c1771a20
MLI
27092012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2710
2711 PR c/44774
2712 * c.opt (Wpedantic): New.
2713 (pedantic): Alias Wpedantic.
2714 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2715 (c_common_post_options): Likewise.
2716 (sanitize_cpp_opts): Likewise.
2717 * c-lex.c (interpret_float): Likewise.
2718 * c-format.c (check_format_types): Likewise.
2719 * c-common.c (pointer_int_sum): Likewise.
2720 (c_sizeof_or_alignof_type): Likewise.
2721 (c_add_case_label): Likewise.
2722 (c_do_switch_warnings): Likewise.
2723 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2724
04b391c1
JM
27252012-04-15 Jason Merrill <jason@redhat.com>
2726
2727 PR c++/52818
2728 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2729 (C_STD_NAME): Distinguish between C++98 and C++11.
2730
ac868f29
EB
27312012-04-11 Eric Botcazou <ebotcazou@adacore.com>
2732
2733 PR target/52624
2734 * c-common.h (uint16_type_node): Rename into...
2735 (c_uint16_type_node): ...this.
2736 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2737 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2738
fd4116f4
MLI
27392012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
2740
2741 * c-common.c (warn_if_unused_value): Move definition to here.
2742 * c-common.h (warn_if_unused_value): Move declaration to here.
2743
573ac65e
WB
27442012-03-23 William Bader <williambader@hotmail.com>
2745
2746 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2747
552b8185
JM
27482012-03-20 Jason Merrill <jason@redhat.com>
2749
2750 * c-common.h (enum cxx_dialect): Add cxx1y.
2751 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2752 test.
2753 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2754 * c-opts.c (c_common_post_options): Likewise.
2755 (set_std_cxx1y): New.
2756 (c_common_handle_option): Call it.
2757 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2758
04398fa8
PC
27592012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
2760
2761 PR c++/14710
2762 * c.opt ([Wuseless-cast]): Add.
2763
d2a12ae7
RG
27642012-03-16 Richard Guenther <rguenther@suse.de>
2765
2766 * c-pretty-print.c (pp_c_initializer_list): Adjust.
2767
a12bf402
MLI
27682012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2769
2770 PR c++/44783
2771 * c.opt (ftemplate-backtrace-limit) Add.
2772
5c30094f
RO
27732012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2774
2775 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2776 handling.
2777 * c-pragma.c (handle_pragma_extern_prefix): Remove.
2778 (init_pragma): Don't register extern_prefix.
2779
21fa2faf
RG
27802012-03-12 Richard Guenther <rguenther@suse.de>
2781
2782 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2783 (builtin_type_for_size): Likewise.
2784
e3793c6f
JJ
27852012-02-13 Jakub Jelinek <jakub@redhat.com>
2786
2787 PR c++/52215
2788 * c-common.c (sync_resolve_params): Don't decide whether to convert
2789 or not based on TYPE_SIZE comparison, convert whenever arg_type
2790 is unsigned INTEGER_TYPE.
2791
93286335
PC
27922012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
2793
2794 PR c/52118
2795 * c.opt ([Wunused-local-typedefs]): Fix description.
2796
7a421706
MS
27972012-01-24 Mike Stump <mikestump@comcast.net>
2798
2799 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2800 exactly.
2801
ba9b1f11
RG
28022012-01-18 Richard Guenther <rguenther@suse.de>
2803
2804 * c-opts.c (c_common_post_options): Reset LTO flags if
2805 we are about to generate a PCH.
2806
465406be
PC
28072012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
2808
2809 PR c++/51777
2810 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2811 use pp_unsigned_wide_integer.
2812
aee15221
RG
28132012-01-10 Richard Guenther <rguenther@suse.de>
2814
2815 PR middle-end/51806
2816 * c-opts.c (c_common_handle_option): Move -Werror handling
2817 to language independent code.
2818
5720c0dc
RG
28192012-01-05 Richard Guenther <rguenther@suse.de>
2820
2821 PR middle-end/51764
2822 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2823 from common.opt.
2824
73ac190a
PC
28252011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
2826
2827 PR c++/51316
2828 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2829 of array types with an unknown bound.
2830
48b0b196
JM
28312011-12-20 Joseph Myers <joseph@codesourcery.com>
2832
2833 * c-common.c (flag_isoc99): Update comment to refer to C11.
2834 (flag_isoc1x): Change to flag_isoc11.
2835 * c-common.h (flag_isoc99): Update comment to refer to C11.
2836 (flag_isoc1x): Change to flag_isoc11.
2837 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2838 C11.
2839 * c-opts.c (set_std_c1x): Change to set_std_c11.
2840 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2841 Call set_std_c11.
2842 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2843 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2844 * c.opt (std=c1x): Change to std=c11. Document as non-draft
2845 standard.
2846 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2847 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
2848 (std=gnu1x): Make alias of std=gnu11.
2849
d58d6eb5
JM
28502011-12-19 Jason Merrill <jason@redhat.com>
2851
2852 PR c++/51228
2853 * c-common.c (handle_transparent_union_attribute): Check the first
2854 field if the type is complete.
2855
b3908fcc
JW
28562011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
2857
2858 PR libstdc++/51365
2859 * c-common.c (RID_IS_FINAL): Add.
2860 * c-common.h (RID_IS_FINAL): Add.
2861
fea3ca91
IS
28622011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2863
2864 * c.opt (fgnu-runtime): Provide full description.
2865 (fnext-runtime): Likewise.
2866 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2867
62bad7cd
AM
28682011-11-28 Andrew MacLeod <amacleod@redhat.com>
2869
2870 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
2871 predefines in one place. Add LOCK_FREE predefines.
2872 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2873 new func.
2874
c466c4ff
AM
28752011-11-24 Andrew MacLeod <amacleod@redhat.com>
2876
2877 PR c/51256
9faeb493 2878 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 2879 conditions
9faeb493
UB
2880 (resolve_overloaded_atomic_exchange,
2881 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
2882 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2883 error_mark_node for error conditions.
9faeb493 2884
a5952633
RG
28852011-11-08 Richard Guenther <rguenther@suse.de>
2886
2887 PR middle-end/51010
2888 c-family/
2889
0a35513e
AH
28902011-11-07 Richard Henderson <rth@redhat.com>
2891 Aldy Hernandez <aldyh@redhat.com>
2892 Torvald Riegel <triegel@redhat.com>
2893
2894 Merged from transactional-memory.
2895
2896 * c-common.c (handle_tm_wrap_attribute,
2897 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2898 (struct c_common_reswords): Added __transaction* keywords.
2899 (struct c_common_attribute_table): Added transaction* and tm_regparm
2900 attributes.
2901 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2902 masks.
2903 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2904 find_tm_attribute): Declare.
2905
6d87092d
JM
29062011-11-07 Jason Merrill <jason@redhat.com>
2907
2908 PR c++/35688
2909 * c-common.c, c-common.h: Revert yesterday's changes.
2910
8e7860a1
JM
29112011-11-06 Jason Merrill <jason@redhat.com>
2912
2913 PR c++/35688
2914 * c-common.c (decl_has_visibility_attr): Split out from...
2915 (c_determine_visibility): ...here.
2916 * c-common.h: Declare it.
2917
d19fa6b5
JM
29182011-11-06 Joseph Myers <joseph@codesourcery.com>
2919
2920 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2921 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2922 type.
2923 (check_user_alignment): New. Split out of
2924 handle_aligned_attribute. Disallow integer constants with
2925 noninteger types. Conditionally allow zero.
2926 (handle_aligned_attribute): Use check_user_alignment.
2927 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2928
86951993
AM
29292011-11-06 Andrew MacLeod <amacleod@redhat.com>
2930 Richard Henderson <rth@redhat.com>
2931
2932 Merged from cxx-mem-model.
2933
2934 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 2935 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
2936 parameters that are the same type size.
2937 (get_atomic_generic_size): New. Find size of generic
2938 atomic function parameters and do typechecking.
2939 (add_atomic_size_parameter): New. Insert size into parameter list.
2940 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2941 either __atomic_exchange_n or external library call.
9faeb493 2942 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 2943 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 2944 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
2945 __atomic_load_n or an external library call.
2946 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2947 __atomic_store_n or an external library call.
2948 (resolve_overloaded_builtin): Handle new __atomic builtins.
2949
cf9e9959
EB
29502011-11-04 Eric Botcazou <ebotcazou@adacore.com>
2951
2952 PR c++/50608
2953 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2954 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
2955 <INDIRECT_REF>: Return the argument.
2956 <ARRAY_REF>: Remove special code for negative offset.
2957 Call fold_build_pointer_plus instead of size_binop.
2958 (fold_offsetof): Remove STOP_REF argument and adjust.
2959 * c-common.h (fold_offsetof_1): Declare.
2960 (fold_offsetof): Remove STOP_REF argument.
2961
25339f10
JM
29622011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
2963
2964 PR c++/50810
2965 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2966 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2967 Wnarrowing for C++0x and C++98.
2968 * c.opt ([Wnarrowing]): Update.
2969
89401152
PC
29702011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2971
2972 PR c++/44277
2973 * c.opt: Add Wzero-as-null-pointer-constant.
2974
97e3ad20
JM
29752011-10-31 Jason Merrill <jason@redhat.com>
2976
15694fdd
JM
2977 * c.opt (-fdeduce-init-list): Off by default.
2978
97e3ad20
JM
2979 PR c++/50920
2980 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2981 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2982 and -Wc++11-compat.
2983 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2984
fb9120e3
RAV
29852011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2986
2987 PR c++/30066
2988 * c.opt (fvisibility-inlines-hidden): Description change.
2989
3ce4f9e4
ESR
29902011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
2991
2992 Implement C++11 user-defined literals.
2993 * c-common.c (build_userdef_literal): New.
2994 * c-common.def: New tree code.
2995 * c-common.h (tree_userdef_literal): New tree struct and accessors.
2996 * c-lex.c (interpret_float): Add suffix parm.
2997 (c_lex_with_flags): Build literal tokens.
2998
5f53c243
PC
29992011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3000
3001 PR c++/50841
3002 Revert:
3003 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3004
3005 PR c++/50810
3006 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3007 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3008 Wnarrowing for C++0x and C++98.
3009 * c.opt ([Wnarrowing]): Update.
3010
263734e1
PC
30112011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3012
3013 PR c++/50810
3014 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3015 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3016 Wnarrowing for C++0x and C++98.
3017 * c.opt ([Wnarrowing]): Update.
3018
d2e312d7
PC
30192011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3020
3021 PR c++/45385
3022 * c-common.c (conversion_warning): Remove code looking for
3023 artificial operands.
3024
d17687f6
DS
30252011-10-18 Dodji Seketeli <dodji@redhat.com>
3026
3027 PR bootstrap/50760
3028 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 3029 !NO_IMPLICIT_EXTERN_C.
d17687f6 3030
fc8396e9
PC
30312011-10-17 Michael Spertus <mike_spertus@symantec.com>
3032
3033 * c-common.c (c_common_reswords): Add __bases,
3034 __direct_bases.
3035 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3036
30372011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3038
3039 PR c++/50757
3040 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3041
847e697a
TT
30422011-10-15 Tom Tromey <tromey@redhat.com>
3043 Dodji Seketeli <dodji@redhat.com>
3044
3045 * c.opt (fdebug-cpp): New option.
3046 * c-opts.c (c_common_handle_option): Handle the option.
3047 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3048 output stream in parameter. Factorized from ...
3049 (maybe_print_line): ... this. Dump location debug information when
3050 -fdebug-cpp is in effect.
3051 (print_line_1): New static function. Takes an output stream in
3052 parameter. Factorized from ...
3053 (print_line): ... here. Dump location information when -fdebug-cpp
3054 is in effect.
3055 (scan_translation_unit): Dump location information when
3056 -fdebug-cpp is in effect.
3057
92582b75
TT
30582011-10-15 Tom Tromey <tromey@redhat.com>
3059 Dodji Seketeli <dodji@redhat.com>
3060
3061 * c.opt (ftrack-macro-expansion): New option. Handle it with and
3062 without argument.
3063 * c-opts.c (c_common_handle_option)<case
3064 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3065 cases. Handle -ftrack-macro-expansion with and without argument.
3066
46427374
TT
30672011-10-15 Tom Tromey <tromey@redhat.com>
3068 Dodji Seketeli <dodji@redhat.com>
3069
3070 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3071 (print_line, cb_define, do_line_change): Adjust to avoid touching
3072 the internals of struct line_map. Use the public API instead.
3073 * c-pch.c (c_common_read_pch): Likewise.
3074 * c-lex.c (fe_file_change): Likewise.
3075
fc8396e9
PC
30762011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
3077
3078 PR c++/17212
3079 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3080
30812011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
3082
3083 PR c++/33067
3084 * c-pretty-print.c (pp_c_floating_constant): Output
3085 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3086
e79983f4
MM
30872011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3088
3089 * c-common.c (def_builtin_1): Delete old interface with two
3090 parallel arrays to hold standard builtin declarations, and replace
3091 it with a function based interface that can support creating
3092 builtins on the fly in the future. Change all uses, and poison
3093 the old names. Make sure 0 is not a legitimate builtin index.
3094 * c-omp.c (c_finish_omp_barrier): Ditto.
3095 (c_finish_omp_taskwait): Ditto.
3096 (c_finish_omp_flush): Ditto.
3097
6637388f
TG
30982011-10-11 Tristan Gingold <gingold@adacore.com>
3099
3100 * c.opt: (fallow-parameterless-variadic-functions): New.
3101
3797cb21
DS
31022011-09-08 Dodji Seketeli <dodji@redhat.com>
3103
3104 PR c++/33255 - Support -Wunused-local-typedefs warning
3105 * c-common.h (struct c_language_function::local_typedefs): New
3106 field.
9faeb493
UB
3107 (record_locally_defined_typedef, maybe_record_typedef_use)
3108 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 3109 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
3110 (maybe_record_typedef_use)
3111 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
3112 * c.opt: Declare new -Wunused-local-typedefs flag.
3113
693ddb1b
EB
31142011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3115
3116 PR middle-end/50266
3117 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3118 computations.
3119
830c740f
RG
31202011-09-05 Richard Guenther <rguenther@suse.de>
3121
3122 * c-common.c (complete_array_type): Use ssize_int (-1) instead
3123 of integer_minus_one_node for empty array upper bounds.
3124
892a371f
DS
31252011-08-28 Dodji Seketeli <dodji@redhat.com>
3126
3127 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3128 it's the first time it's being called on this main TU.
3129
0e3fdb48
RB
31302011-08-24 Richard Guenther <rguenther@suse.de>
3131
3132 PR c/49396
3133 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3134
31352011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
3136
3137 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3138 defined in cpp_init_builtins and c_cpp_builtins.
3139
d4a83c10
JM
31402011-08-19 Joseph Myers <joseph@codesourcery.com>
3141
3142 * c-common.c (c_common_reswords): Add __builtin_complex.
3143 * c-common.h (RID_BUILTIN_COMPLEX): New.
3144
bbceee64
JM
31452011-08-18 Joseph Myers <joseph@codesourcery.com>
3146
3147 * c-common.c (c_common_reswords): Add _Noreturn.
3148 (keyword_is_function_specifier): Handle RID_NORETURN.
3149 * c-common.h (RID_NORETURN): New.
3150
0e3a99ae
AS
31512011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3152
3153 * c-common.c (unsafe_conversion_p): New function. Check if it is
3154 unsafe to convert an expression to the type.
3155 (conversion_warning): Adjust, use unsafe_conversion_p.
3156 * c-common.h (unsafe_conversion_p): New function declaration.
3157
20906c66
JJ
31582011-08-02 Jakub Jelinek <jakub@redhat.com>
3159
3160 * c-common.h (c_finish_omp_atomic): Adjust prototype.
3161 (c_finish_omp_taskyield): New prototype.
3162 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3163 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3164 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
3165 or RHS1 have side-effects, evaluate those too in the right spot,
3166 if it is a decl and LHS is also a decl, error out if they
3167 aren't the same.
3168 (c_finish_omp_taskyield): New function.
3169 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3170 * c-pragma.c (omp_pragmas): Add taskyield.
3171 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3172 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3173 PRAGMA_OMP_CLAUSE_MERGEABLE.
3174
770e5a2e
DS
31752011-07-25 Dodji Seketeli <dodji@redhat.com>
3176
3177 * c-common.h (set_underlying_type): Remove parm name from
3178 declaration.
3179
1baae426
RG
31802011-07-25 Romain Geissler <romain.geissler@gmail.com>
3181
3182 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 3183
fcb21722
JM
31842011-07-22 Jason Merrill <jason@redhat.com>
3185
76f86d00
JM
3186 PR c++/49793
3187 * c.opt (Wnarrowing): New.
3188
3a636414
JM
3189 PR c++/30112
3190 * c-common.h: Declare c_linkage_bindings.
3191 * c-pragma.c (handle_pragma_redefine_extname): Use it.
3192
fcb21722
JM
3193 PR c++/49813
3194 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3195 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3196 as flag_isoc99 for 'restrict'.
3197 (pp_c_specifier_qualifier_list): Likewise for _Complex.
3198
02614448
ILT
31992011-07-21 Ian Lance Taylor <iant@google.com>
3200
3201 PR middle-end/49705
3202 * c-common.c (c_disable_warnings): New static function.
3203 (c_enable_warnings): New static function.
3204 (c_fully_fold_internal): Change local unused_p to bool. Call
3205 c_disable_warnings and c_enable_warnings rather than change
3206 c_inhibit_evaluation_warnings.
3207
34429675
JM
32082011-07-20 Jason Merrill <jason@redhat.com>
3209
3210 PR c++/6709 (DR 743)
3211 PR c++/42603 (DR 950)
3212 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3213 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3214 (CPP_DECLTYPE): New.
3215 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3216
5d49b6a7
RG
32172011-07-19 Richard Guenther <rguenther@suse.de>
3218
3219 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3220 * c-omp.c (c_finish_omp_for): Likewise.
3221
e84a58ff
EB
32222011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3223
3224 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3225 body on the next line.
3226
329af3c7
JM
32272011-07-08 Jason Merrill <jason@redhat.com>
3228
4063e61b
JM
3229 PR c++/45437
3230 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3231
329af3c7
JM
3232 PR c++/49673
3233 * c-common.c (c_apply_type_quals_to_decl): Don't check
3234 TYPE_NEEDS_CONSTRUCTING.
3235
1a072294
RG
32362011-07-06 Richard Guenther <rguenther@suse.de>
3237
3238 * c-common.c (c_common_nodes_and_builtins):
3239 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3240
fce5dddd
RG
32412011-07-05 Richard Guenther <rguenther@suse.de>
3242
3243 * c-common.c (c_common_nodes_and_builtins): Build all common
3244 tree nodes first.
3245
45d439ac
JJ
32462011-06-27 Jakub Jelinek <jakub@redhat.com>
3247
56300785
JJ
3248 * c-common.h (c_tree_chain_next): New static inline function.
3249
45d439ac
JJ
3250 * c-common.c (check_builtin_function_arguments): Handle
3251 BUILT_IN_ASSUME_ALIGNED.
3252
e0a8ecf2
AM
32532011-06-21 Andrew MacLeod <amacleod@redhat.com>
3254
3255 * c-common.c: Add sync_ or SYNC__ to builtin names.
3256 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
3257
32582011-06-20 Pierre Vittet <piervit@pvittet.com>
3259
3260 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3261 handler.
3262 (gen_pragma_handler): New union.
3263 (internal_pragma_handler): New type.
3264 (c_register_pragma_with_data)
3265 (c_register_pragma_with_expansion_and_data): New functions.
3266
3267 * c-pragma.c (registered_pragmas, c_register_pragma_1)
3268 (c_register_pragma, c_register_pragma_with_expansion)
3269 (c_invoke_pragma_handler): Changed to work with
3270 internal_pragma_handler.
3271 (c_register_pragma_with_data)
3272 (c_register_pragma_with_expansion_and_data): New functions.
3273
677f3fa8
JM
32742011-06-14 Joseph Myers <joseph@codesourcery.com>
3275
3276 * c-common.c: Include common/common-target.h.
3277 (handle_section_attribute): Use
3278 targetm_common.have_named_sections.
3279 * c-cppbuiltin.c: Include common/common-target.h.
3280 (c_cpp_builtins): Use targetm_common.except_unwind_info.
3281
d7fc8c14
RG
32822011-06-10 Richard Guenther <rguenther@suse.de>
3283
3284 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3285 to print a IDENTIFIER_NODE.
3286
10e48e39
RO
32872011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3288 Joseph Myers <joseph@codesourcery.com>
3289
3290 * c.opt (fbuilding-libgcc): New option.
3291 * c-cppbuiltin.c (c_cpp_builtins): Define
3292 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3293
6976ae51
JM
32942011-06-07 Jason Merrill <jason@redhat.com>
3295
3ff60975
JM
3296 * c-common.c (max_tinst_depth): Lower default to 900.
3297
6976ae51
JM
3298 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3299
009db074
RG
33002011-06-07 Richard Guenther <rguenther@suse.de>
3301
3302 * c-common.c (c_common_nodes_and_builtins): Do not set
3303 size_type_node or call set_sizetype.
3304
b4592b92
DS
33052011-06-07 Dodji Seketeli <dodji@redhat.com>
3306
3307 PR debug/49130
3308 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 3309 type when using pointer comparison to compare types.
b4592b92 3310
014ab419
JW
33112011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
3312
3313 * c.opt: Add -Wdelete-non-virtual-dtor.
3314 * c-opts.c (c_common_handle_option): Include it in -Wall.
3315
4f60111f
NF
33162011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3317
3318 PR bootstrap/49190
3319
3320 Revert:
3321 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3322
3323 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3324 not tree_common.
3325
4cc4f2f4
JJ
33262011-05-27 Jakub Jelinek <jakub@redhat.com>
3327
3328 PR c++/49165
3329 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3330 C++ don't call c_common_truthvalue_conversion on void type arms.
3331
38e01f9e
NF
33322011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3333
3334 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3335 (stmt_list_stack): Define.
3336 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3337 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3338
92e948a8
NF
33392011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3340
3341 * c-common.c (warning_candidate_p): Check for BLOCKs.
3342
a2fc3e63
NF
33432011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3344
3345 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3346 not tree_common.
3347
0957c029
JJ
33482011-05-25 Jakub Jelinek <jakub@redhat.com>
3349
3350 * c-common.c (def_fn_type): Remove extra va_end.
3351
828fb3ba
JM
33522011-05-23 Jason Merrill <jason@redhat.com>
3353
3354 PR c++/48106
3355 * c-common.c (c_common_get_narrower): New.
3356 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3357
dde05067
NF
33582011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3359
3360 * c-common.h (check_function_arguments): Tweak prototype of
3361 check_function_arguments.
3362 * c-common.c (check_function_arguments): Likewise. Adjust
3363 calls to check_function_nonnull, check_function_format, and
3364 check_function_sentinel.
3365 (check_function_sentinel): Take a FUNCTION_TYPE rather than
3366 separate attributes and typelist arguments. Use
3367 FOREACH_FUNCTION_ARGS to iterate over argument types.
3368
3c0d13bf
PC
33692011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3370
3371 * c-common.c (c_common_reswords): Reorder.
3372 * c-common.h (rid): Likewise.
3373
8242dd04
NF
33742011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3375
3376 * c-common.c (def_fn_type): Don't call build_function_type, call
3377 build_function_type_array or build_varargs_function_type_array
3378 instead.
3379 (c_common_nodes_and_builtins): Likewise.
3380
3d528853
NF
33812011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3382
3383 * c-common.c (c_add_case_label): Omit the loc argument to
3384 build_case_label.
3385 * c-common.h (build_case_label): Remove.
3386 * c-semantics.c (build_case_label): Remove.
3387
a04a722b
JM
33882011-05-05 Joseph Myers <joseph@codesourcery.com>
3389
3390 * c-objc.h (objc_start_method_definition): Update prototype.
3391 * stub-objc.c (objc_start_method_definition): Add extra parameter.
3392
e19a18d4
NF
33932011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3394
3395 * c-common.c (check_main_parameter_types): Reindent. Don't use
3396 TYPE_ARG_TYPES directly.
3397 (handle_nonnull_attribute): Likewise.
3398 (sync_resolve_params): Likewise.
3399 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
3400 to check_format_string.
3401 (handle_format_attribute): Likewise.
3402 (check_format_string): Take a function type to examine instead of
3403 a type list. Use a function_arg_iterator to step through argument
3404 types.
3405
c62c040f
RG
34062011-05-04 Richard Guenther <rguenther@suse.de>
3407
3408 * c-common.c (fix_string_type): Use size_int for index type bounds.
3409 (start_fname_decls): Do not pass NULL to build_int_cst.
3410 (c_init_attributes): Likewise.
3411 * c-lex.c (c_lex_with_flags): Likewise.
3412
c12ff9d8
JM
34132011-04-27 Jason Merrill <jason@redhat.com>
3414
3415 * c-common.c (make_tree_vector_from_list): New.
3416 * c-common.h: Declare it.
3417
304dfbe3
RG
34182011-04-26 Richard Guenther <rguenther@suse.de>
3419
3420 PR preprocessor/48248
3421 * c-ppoutput.c (maybe_print_line): Always optimize newlines
3422 for output size with -P.
3423
3c0d13bf
PC
34242011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3425
3426 * c-common.c (struct c_common_resword): Add __underlying_type.
3427 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3428
04695783
JM
34292011-04-20 Jim Meyering <meyering@redhat.com>
3430
3431 * c-format.c (init_dollar_format_checking): Remove useless
3432 if-before-free.
3433
0dc33c3c
NP
34342011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3435
3436 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 3437 (objc_detect_field_duplicates): New.
0dc33c3c 3438 * stub-objc.c: Likewise.
3c0d13bf 3439
c59633d9
NP
34402011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3441
3442 * stub-objc.c (objc_declare_protocols): Renamed to
3443 objc_declare_protocol.
3444 * c-objc.h: Likewise.
3c0d13bf 3445
32dabdaf
NP
34462011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3447
3448 * stub-objc.c (objc_declare_class): Updated argument name.
3449
81f653d6
NF
34502011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3451
3452 * c-common.h (c_common_init_ts): Declare.
3453 * c-common.c (c_common_init_ts): Define.
3454
eb345401
NP
34552011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3456
3457 * c-objc.h (objc_build_message_expr): Updated prototype.
3458 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 3459
a358e188
MJ
34602011-04-12 Martin Jambor <mjambor@suse.cz>
3461
3462 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3463 of cgraph_node.
3464
e6313a78
RG
34652011-04-11 Richard Guenther <rguenther@suse.de>
3466
3467 * c-common.c (complete_array_type): Build a range type of
3468 proper type.
3469
dcf0c47e
NF
34702011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3471
3472 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3473 (handle_type_generic_attribute): Likewise.
3474
1ee44b26
JM
34752011-04-07 Jason Merrill <jason@redhat.com>
3476
3477 PR c++/48450
3478 * c-common.c (c_common_truthvalue_conversion): Don't ignore
3479 conversion from C++0x scoped enum.
3480
acce4e77
JM
34812011-04-06 Joseph Myers <joseph@codesourcery.com>
3482
3483 * c-target-def.h: New file.
3484 * c-target.def: New file.
3485 * c-target.h: New file.
3486 * c-common.c (targetcm): Don't define here.
3487 * c-common.h (default_handle_c_option): Declare.
3488 * c-format.c: Include c-target.h instead of target.h.
3489 * c-opts.c: Include c-target.h instead of target.h. Explicitly
3490 include tm.h.
3491 (default_handle_c_option): Move from targhooks.c.
3492
e2eefb55
JJ
34932011-03-29 Jakub Jelinek <jakub@redhat.com>
3494
3495 PR preprocessor/48248
3496 * c-ppoutput.c (print): Add src_file field.
3497 (init_pp_output): Initialize it.
3498 (maybe_print_line): Don't optimize by adding up to 8 newlines
3499 if map->to_file and print.src_file are different file.
3500 (print_line): Update print.src_file.
3501
ba78087b
KT
35022011-03-25 Kai Tietz <ktietz@redhat.com>
3503
3504 * c-ada-spec.c (compare_comment): Use filename_cmp
3505 instead of strcmp for filename.
3506
0edf1bb2
JL
35072011-03-25 Jeff Law <law@redhat.com>
3508
3509 * c-family/c-common.c (def_fn_type): Add missing va_end.
3510
c7dc8804
JM
35112011-03-25 Jason Merrill <jason@redhat.com>
3512
3513 * c.opt: Add -std=c++03.
3514
d1d879b1
EB
35152011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3516
3517 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3518
62d784f7
KT
35192011-03-17 Kai Tietz
3520
3521 PR target/12171
5050afdf
KT
3522 * c-pretty-print.c (pp_c_specifier_qualifier_list):
3523 Display allowed attributes for function pointer types.
3524 (pp_c_attributes_display): New function to display
3525 attributes having affects_type_identity flag set to true.
3526 * c-pretty-print.h (pp_c_attributes_display): New prototype.
3527
62d784f7
KT
3528 * c-common.c (c_common_attribute_table):
3529 Add new element.
3530 (c_common_format_attribute_table): Likewise.
3531
82d37118
JM
35322011-03-18 Jason Merrill <jason@redhat.com>
3533
49a000c3
JM
3534 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3535 * c-common.h: Don't declare it here.
3536 * c-common.c: Or define it here.
3537 * c-opts.c (c_common_handle_option): Or set it here.
3538
82d37118
JM
3539 PR c++/35315
3540 * c-common.c (handle_transparent_union_attribute): Don't
3541 make a duplicate type in C++.
3542
17bc631c
JM
35432011-03-15 Jason Merrill <jason@redhat.com>
3544
3545 * c-common.c (max_constexpr_depth): New.
3546 * c-common.h: Declare it.
3547 * c-opts.c (c_common_handle_option): Set it.
3548 * c.opt (fconstexpr-depth): New option.
3549
1b9b91a6
JM
35502011-03-11 Jason Merrill <jason@redhat.com>
3551
f231b5ff
JM
3552 * c-common.c (attribute_takes_identifier_p): Add missing const.
3553
1b9b91a6
JM
3554 PR c++/46803
3555 * c-common.c (attribute_takes_identifier_p): Assume that an
3556 unknown attribute takes an identifier.
3557
a19e4d44
NF
35582011-03-07 Nathan Froyd <froydnj@codesourcery.com>
3559
3560 PR c/47786
3561 * c-common.c (c_type_hash): Call list_length instead of iterating
3562 through DECL_CHAIN. Rename 'i' to 'n_elements'.
3563
982d62f6
JJ
35642011-02-19 Jakub Jelinek <jakub@redhat.com>
3565
3566 PR c/47809
3567 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3568
0a256240
NP
35692011-02-17 Iain Sandoe <iains@gcc.gnu.org>
3570
3571 * c.opt (fobjc-abi-version=) New.
3572 (fobjc-nilcheck): New.
3573
ba9e6dd5
NF
35742011-02-03 Nathan Froyd <froydnj@codesourcery.com>
3575
3576 PR c++/46890
3577 * c-common.h (keyword_is_decl_specifier): Declare.
3578 * c-common.c (keyword_is_decl_specifier): Define.
3579 (keyword_is_function_specifier): New function.
3580
7273813a
JJ
35812011-01-26 Jakub Jelinek <jakub@redhat.com>
3582
3583 PR c/47473
3584 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3585 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3586 REAL_TYPE.
3587
908ef79b
AC
35882011-01-26 Arnaud Charlet <charlet@adacore.com>
3589
3590 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3591
237e9384
JJ
35922011-01-26 Jakub Jelinek <jakub@redhat.com>
3593
3594 PR pch/47430
3595 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3596 after init_c_lex if pch_file is set.
3597
47ea1edf
DK
35982011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3599
d4dba752 3600 PR c++/43601
47ea1edf
DK
3601 * c.opt (-fkeep-inline-dllexport): New switch.
3602
2aa9c6ae
RG
36032011-01-12 Richard Guenther <rguenther@suse.de>
3604
3605 PR middle-end/32511
3606 * c-common.c (handle_weak_attribute): Warn instead of error
3607 on declaring an inline function weak.
3608
7bd11157
TT
36092011-01-05 Tom Tromey <tromey@redhat.com>
3610
3611 * c-common.h (lvalue_error): Update.
3612 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
3613 not error.
3614
0e66e494 36152010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 3616
b4f588c4
NP
3617 PR objc/47075
3618 * c-objc.h (objc_finish_message_expr): Added argument to
3619 prototype.
3620
f4da8dce
NF
36212010-12-22 Nathan Froyd <froydnj@codesourcery.com>
3622
3623 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3624 Use prototype_p.
3625
46270f14
NP
36262010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
3627
3628 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 3629 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 3630
4816c593
NF
36312010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3632
3633 * c-common.h (readonly_error): Declare.
3634 * c-common.c (readonly_error): Define.
3635
7a6daeb0
NF
36362010-12-09 Nathan Froyd <froydnj@codesourcery.com>
3637
3638 * c-common.h (invalid_indirection_error): Declare.
3639 * c-common.c (invalid_indirection_error): Define.
3640
892f6119
RG
36412010-12-03 Richard Guenther <rguenther@suse.de>
3642
3643 PR c/46745
3644 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3645 (pp_c_unary_expression): Likewise.
3646 (pp_c_expression): Likewise.
3647
6c39e757
NP
36482010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
3649
3650 * c-common.h (objc_finish_function): New.
3651 (objc_non_volatilized_type): Removed.
3652 (objc_type_quals_match): Removed.
3653 * stub-objc.c (objc_finish_function): New.
3654 (objc_non_volatilized_type): Removed.
3655 (objc_type_quals_match): Removed.
9faeb493 3656
7c475d11
JM
36572010-11-30 Joseph Myers <joseph@codesourcery.com>
3658
3659 * c-common.h (parse_optimize_options): Declare.
3660 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3661 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3662
71f3e391
JM
36632010-11-29 Joseph Myers <joseph@codesourcery.com>
3664
3665 * c-opts.c (check_deps_environment_vars): Use getenv instead of
3666 GET_ENVIRONMENT.
3667 * c-pch.c (O_BINARY): Don't define here.
3668 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3669
d5fabb58
JM
36702010-11-25 Joseph Myers <joseph@codesourcery.com>
3671
3672 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3673 targetm.except_unwind_info.
3674
299404a1
JM
36752010-11-23 Joseph Myers <joseph@codesourcery.com>
3676
3677 * c-opts.c (c_common_handle_option): Pass location to
3678 set_struct_debug_option.
3679
c98cd5bf
JM
36802010-11-23 Joseph Myers <joseph@codesourcery.com>
3681
3682 * c-common.c (visibility_options): Move from ../opts.c.
3683 * c-common.h (struct visibility_flags, visibility_options):
3684 Declare here.
3685 * c-opts.c (finish_options): Rename to c_finish_options.
3686 (c_common_init): Update call to finish_options.
3687
a9546771
NP
36882010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
3689
3690 PR objc/34033
3691 * c-lex.c (lex_string): Check that each string in an Objective-C
3692 string concat sequence starts with either one or zero '@', and
3693 that there are no spurious '@' signs at the end.
3694
24a57808
JM
36952010-11-20 Joseph Myers <joseph@codesourcery.com>
3696
3697 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3698 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3699 HANDLE_PRAGMA_VISIBILITY.
3700 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3701 HANDLE_PRAGMA_VISIBILITY): Don't define.
3702 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3703
a9aa2c3a
NF
37042010-11-20 Nathan Froyd <froydnj@codesourcery.com>
3705
3706 PR c++/16189
3707 PR c++/36888
3708 PR c++/45331
3709 * c-common.h (keyword_begins_type_specifier): Declare.
3710 (keyword_is_storage_class_specifier): Declare.
3711 (keyword_is_type_qualifier): Declare.
3712 * c-common.c (keyword_begins_type_specifier): New function.
3713 (keyword_is_storage_class_specifier): New function.
3714 (keyword_is_type_qualifier): Declare.
3715
5386338c
JM
37162010-11-19 Joseph Myers <joseph@codesourcery.com>
3717
3718 PR c/46547
3719 * c-common.c (in_late_binary_op): Define.
3720 (c_common_truthvalue_conversion): Check in_late_binary_op before
3721 calling c_save_expr.
3722 * c-common.h (in_late_binary_op): Declare.
3723
69ccdddb
JM
37242010-11-19 Joseph Myers <joseph@codesourcery.com>
3725
3726 * c-opts.c (c_common_handle_option): Update calls to
3727 set_struct_debug_option.
3728
6b192a09
NP
37292010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
3730
3731 * c-common.h (objc_declare_protocols): Added additional argument.
3732 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 3733
fb52b50a
NF
37342010-11-18 Nathan Froyd <froydnj@codesourcery.com>
3735
3736 PR c/33193
3737 * c-common.h (build_real_imag_expr): Declare.
3738 * c-semantics.c (build_real_imag_expr): Define.
3739
b37421c6
JM
37402010-11-17 Joseph Myers <joseph@codesourcery.com>
3741
3742 * c-opts.c (c_common_parse_file): Take no arguments.
3743 * c-common.h (c_common_parse_file): Update prototype.
3744
07078664
JJ
37452010-11-16 Jakub Jelinek <jakub@redhat.com>
3746
3747 PR c++/46401
3748 * c-common.c (warning_candidate_p): Don't track non-const calls
3749 or STRING_CSTs.
3750
c6a13190
ILT
37512010-11-15 Ian Lance Taylor <iant@google.com>
3752
3753 * c-lex.c (init_c_lex): Set macro debug callbacks if
3754 flag_dump_go_spec is set.
3755
925e8657
NP
37562010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
3757
3758 * c-common.h (objc_build_incr_expr_for_property_ref): New.
3759 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3760
bb0a9581
NF
37612010-11-15 Nathan Froyd <froydnj@codesourcery.com>
3762
3763 PR preprocessor/45038
3764 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3765 dialects.
3766
c5fa0890
JM
37672010-11-12 Joseph Myers <joseph@codesourcery.com>
3768
3769 * c-common.h (c_family_lang_mask): Declare.
3770 * c-opts.c (c_family_lang_mask): Make extern.
3771 * c-pragma.c (handle_pragma_diagnostic): Use
3772 control_warning_option.
3773
a4d8c676
JM
37742010-11-12 Joseph Myers <joseph@codesourcery.com>
3775
3776 * c-common.c (parse_optimize_options): Update call to
3777 decode_options.
3778 * c-common.h (c_common_handle_option): Update prototype.
3779 * c-opts.c (c_common_handle_option): Take location_t parameter and
3780 pass it to other functions.
3781
f954bd2c
JM
37822010-11-11 Joseph Myers <joseph@codesourcery.com>
3783
3784 * c-opts.c (warning_as_error_callback): Remove.
3785 (c_common_initialize_diagnostics): Don't call
3786 register_warning_as_error_callback.
3787 (c_common_handle_option): Handle -Werror=normalized= here.
3788
d8a07487
JM
37892010-11-10 Joseph Myers <joseph@codesourcery.com>
3790
3791 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3792 in diagnostic.
3793 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3794 letter.
3795 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3796 Remove trailing '.' from diagnostics.
3797 * c.opt (Wwrite-strings_: Avoid '`' in help text.
3798
d5478783
JM
37992010-11-10 Joseph Myers <joseph@codesourcery.com>
3800
3801 * c-common.c (parse_optimize_options): Pass global_dc to
3802 decode_options.
3803 * c-opts.c (c_common_handle_option): Pass &global_options to
3804 set_Wstrict_aliasing.
3805 * c.opt (v): Don't mark Common or document here.
3806
91ebb981
IS
38072010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3808
3809 PR target/44981
3810 * c-format.c (format_type): New type gcc_objc_string_format_type.
3811 (valid_stringptr_type_p): New.
3812 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 3813 (check_format_string): Pass expected type, use
91ebb981
IS
3814 valid_stringptr_type_p (), check that the format string types are
3815 consistent with the format specification.
3816 (decode_format_attr): Warn if NSString is used outside objective-c.
3817 (format_types_orig): Add NSString.
3818 (format_name): New.
3819 (format_flags): New.
3820 (check_format_arg): Handle format strings requiring an external parser.
3821 first_target_format_type: New variable.
3822 (handle_format_attribute): Set up first_target_format_type, pass the
3823 expected format arg string type to check_format_string().
3824 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
3825 * stub-objc.c (objc_string_ref_type_p): New.
3826 (objc_check_format_arg): New.
3827
bede2adc
NP
38282010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3829
9faeb493 3830 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
3831 * c-common.h (objc_build_class_component_ref): New.
3832 * stub-objc.c (objc_build_class_component_ref): New.
3833
9a179d01
NP
38342010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3835
3836 * c.opt (Wproperty-assign-default): New option.
3837
22d8d616
NP
38382010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3839
3840 Implemented -fobjc-std=objc1 flag.
3841 * c.opt (fobjc-std=objc1): New option.
3842
2debdb4f
NP
38432010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
3844
3845 Implemented format and noreturn attributes for Objective-C methods.
3846 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3847 attribute for Objective-C methods.
3848
ec52b111
JM
38492010-10-31 Jason Merrill <jason@redhat.com>
3850
3851 * c-common.c (conversion_warning, warn_for_collisions_1): Use
3852 EXPR_LOC_OR_HERE.
3853
46a88c12
NP
38542010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
3855
3856 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3857 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3858 (objc_add_property_declaration): Removed arguments for copies and
3859 ivar.
3860 (objc_build_getter_call): Renamed to
3861 objc_maybe_build_component_ref.
3862 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3863 (objc_is_property_ref): New.
3864 * c-common.c (c_common_reswords): Removed copies and ivar.
3865 * stub-objc.c (objc_add_property_declaration): Removed arguments
3866 for copies and ivar.
3867 (objc_build_getter_call): Renamed to
3868 objc_maybe_build_component_ref.
3869 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3870 (objc_is_property_ref): New.
9faeb493 3871
1e4bf85b
AC
38722010-10-29 Arnaud Charlet <charlet@adacore.com>
3873 Matthew Gingell <gingell@adacore.com>
3874
3875 * c-ada-spec.c (separate_class_package): New function.
3876 (pp_ada_tree_identifier): Prefix references to C++ classes with the
3877 name of their enclosing package.
3878 (print_ada_declaration): Use separate_class_package.
3879
81f0bab2
JM
38802010-10-27 Jason Merrill <jason@redhat.com>
3881
2b08f2c5
JM
3882 * c-common.c (c_common_reswords): Add __is_literal_type.
3883 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3884
81f0bab2
JM
3885 * c-common.c (check_case_value): Remove special C++ code.
3886
200290f2
NP
38872010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3888
3889 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3890 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
3891 and RID_LAST_PATTR.
3892 (objc_add_property_declaration): Added additional arguments.
3893 (objc_property_attribute_kind): Removed.
3894 (objc_set_property_attr): Removed.
3895 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3896 copy and nonatomic.
3897 * stub-objc.c (objc_add_property_declaration): Added additional
3898 arguments.
3899 (objc_set_property_attr): Removed.
9faeb493 3900
f614132b
NP
39012010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
3902
3903 * c-common.h (objc_add_property_variable): Renamed to
3904 objc_add_property_declaration. Added location argument.
3905 * stub-objc.c (objc_add_property_variable): Same change.
3906
b8a18805
NP
39072010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
3908
3909 * c-common.h (objc_maybe_printable_name): New.
3910 * stub-objc.c (objc_maybe_printable_name): New.
3911
30cd1c5d
AS
39122010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3913 Andrew Pinski <pinskia@gmail.com>
3914
3915 * c-common.h (c_common_mark_addressable_vec): Declare.
3916 * c-common.c (c_common_mark_addressable_vec): New function.
3917
249a82c4
NP
39182010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3919
3920 * c-common.h (objc_set_method_type): Removed.
3921 (objc_add_method_declaration): Added boolean argument.
3922 (objc_start_method_definition): Same change.
3923 (objc_build_method_signature): Same change.
3924 * stub-objc.c (objc_set_method_type): Removed.
3925 (objc_add_method_declaration): Added boolean argument.
3926 (objc_start_method_definition): Same change.
3927 (objc_build_method_signature): Same change.
3928
977e30bc
NP
39292010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
3930
3931 * c-common.h (finish_file): Removed.
3932 (objc_write_global_declarations): New.
3933 * c-opts.c (c_common_parse_file): Do not call finish_file.
3934 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 3935
da57d1b9
NP
39362010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3937
3938 Implemented parsing @synthesize and @dynamic for
3939 Objective-C/Objective-C++.
3940 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3941 (objc_add_synthesize_declaration): New.
3942 (objc_add_dynamic_declaration): New.
3943 * c-common.c (c_common_reswords): Add synthesize and dynamic.
3944 * stub-objc.c (objc_add_synthesize_declaration): New.
3945 (objc_add_dynamic_declaration): New.
9faeb493 3946
0069111f
MM
39472010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3948
3949 PR target/46041
3950 * c-cppbuiltin.c (mode_has_fma): Move function here from
3951 builtins.c. Don't use the fma optab, instead just use the
3952 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3953 using -save-temps.
3954
e426b47b
NP
39552010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3956
3957 Merge from 'apple/trunk' branch on FSF servers.
0069111f 3958
e426b47b
NP
3959 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
3960
9faeb493 3961 Radar 4330422
e426b47b
NP
3962 * c-common.h (objc_non_volatilized_type): New declaration
3963 * stub-objc.c (objc_non_volatilized_type): New stub.
3964
90fbfdc3
NP
39652010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3966
e426b47b 3967 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
3968
3969 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3970
9faeb493 3971 Radar 4133425
90fbfdc3 3972 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 3973 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 3974
c37d8c30
IS
39752010-10-17 Iain Sandoe <iains@gcc.gnu.org>
3976
3977 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3978 * c-common.h (enum rid): Add RID_AT_PACKAGE.
3979 (objc_ivar_visibility_kind): New enum.
3980 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 3981 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
3982 visibility enum.
3983
1b1562a5
MM
39842010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3985
3986 * c-cppbuiltin.c (builtin_define_float_constants): Emit
3987 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3988 has the appropriate fma builtins.
3989 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3990
668ea4b1
IS
39912010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3992
1b1562a5 3993 merge from FSF apple 'trunk' branch.
668ea4b1 3994 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 3995
668ea4b1
IS
3996 Radars 4436866, 4505126, 4506903, 4517826
3997 * c-common.c (c_common_resword): Define @property and its attributes.
3998 * c-common.h: Define property attribute enum entries.
3999 (OBJC_IS_PATTR_KEYWORD): New.
4000 (objc_property_attribute_kind): New enum.
4001 Declare objc_set_property_attr (), objc_add_property_variable (),
4002 objc_build_getter_call () and objc_build_setter_call ().
4003 * stub-objc.c (objc_set_property_attr): New stub.
4004 (objc_add_property_variable): Likewise.
4005 (objc_build_getter_call): Likewise.
4006 (objc_build_setter_call) Likewise.
1b1562a5 4007
a1178b30
IS
40082010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4009
1b1562a5 4010 merge from FSF apple 'trunk' branch.
a1178b30
IS
4011 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4012
4013 Radar 3803157 (method attributes)
4014 * c-common.c (handle_deprecated_attribute): Recognize
4015 objc methods as valid declarations.
4016 * c-common.h: Declare objc_method_decl ().
1b1562a5 4017 * stub-objc.c (objc_method_decl): New stub.
a1178b30 4018
a75bfaa6
JM
40192010-10-08 Joseph Myers <joseph@codesourcery.com>
4020
4021 * c-common.c (parse_optimize_options): Call
4022 decode_cmdline_options_to_array_default_mask before
4023 decode_options. Update arguments to decode_options.
4024 * c-common.h (c_common_init_options_struct): Declare.
4025 * c-opts.c (c_common_init_options_struct): New. Split out from
4026 c_common_init_options.
4027
f05b9d93
NP
40282010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4029
4030 Implemented fast enumeration for Objective-C.
4031 * c-common.h (objc_finish_foreach_loop): New.
4032 * stub-objc.c (objc_finish_foreach_loop): New.
4033
1ebe4b4f
JM
40342010-10-05 Joseph Myers <joseph@codesourcery.com>
4035
4036 * c-common.h (struct diagnostic_context): Don't declare here.
4037 (c_common_initialize_diagnostics): Declare using
4038 diagnostic_context typedef.
4039 * c-opts.c (c_common_handle_option): Pass global_dc to
4040 handle_generated_option.
4041
d4d24ba4
JM
40422010-10-04 Joseph Myers <joseph@codesourcery.com>
4043
4044 * c-opts.c (c_common_handle_option): Pass &global_options_set to
4045 handle_generated_option.
4046
478a1c5b
ILT
40472010-10-03 Ian Lance Taylor <iant@google.com>
4048
4049 * c.opt (-fplan9-extensions): New option.
4050
82a1c2fe
FXC
40512010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4052
4053 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4054 Remove.
4055 (c_cpp_builtins): Call functions from cppbuiltin.c instead
4056 of duplicating code.
4057
92902b1b
IS
40582010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4059
4060 * c-common.c: Add two new entries for @optional
4061 and @required keywords.
4062
4063 merge from FSF 'apple/trunk' branch.
4064 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
4065
4066 Radar 4386773
4067 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4068 objective-c keywords.
4069 (objc_set_method_opt): New declaration.
4070 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 4071
46625112
JM
40722010-09-30 Joseph Myers <joseph@codesourcery.com>
4073
4074 * c-common.c (handle_optimize_attribute): Pass &global_options to
4075 cl_optimization_save and cl_optimization_restore.
4076 * c-opts.c (c_common_handle_option): Pass &global_options to
4077 handle_generated_option.
4078 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4079 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4080 &global_options to cl_optimization_restore.
4081
49b91f05
NP
40822010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4083
4084 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4085 Objective-C/Objective-C++ keywords.
4086
13ed556f 40872010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 4088
9faeb493
UB
4089 Merge from 'apple/trunk' branch on FSF servers.
4090
a6341d57
NP
4091 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4092
4093 Radar 4281748
4094 * c-common.h (objc_check_global_decl): New declaration.
4095 * stub-objc.c (objc_check_global_decl): New stub.
4096
f0036cca
JM
40972010-09-29 Joseph Myers <joseph@codesourcery.com>
4098
4099 * c.opt: Don't use VarExists.
4100
e3339d0f
JM
41012010-09-29 Joseph Myers <joseph@codesourcery.com>
4102
4103 * c-common.c (c_cpp_error): Update names of diagnostic_context
4104 members.
4105 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4106 cl_optimization members.
4107 * c-opts.c (warning_as_error_callback, c_common_handle_option,
4108 sanitize_cpp_opts, finish_options): Update names of cpp_options
4109 members.
4110
1973201f
NP
41112010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4112
4113 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
4114 (objc_is_reserved_word): Removed.
4115 * c-common.c: Updated comments.
4116 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4117 objc_is_reserved_word.
4118 * stub-objc.c (objc_is_reserved_word): Removed.
4119
f7e71da5
IS
41202010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4121
9faeb493 4122 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
4123 include attributes.
4124 (objc_start_method_definition): Likewise.
4125 (objc_build_keyword_decl): Likewise.
4126 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4127 (objc_start_method_definition): Likewise.
4128 (objc_build_keyword_decl): Likewise.
4129
c165dca7
IS
41302010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4131
4132 * c-common.h (objc_start_class_interface): Adjust prototype.
4133 (objc_start_category_interface): Likewise.
4134 (objc_start_protocol): Likewise.
4135 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4136 (objc_start_class_interface): Likewise.
4137 (objc_start_category_interface): Likewise.
4138
7458026b
ILT
41392010-09-27 Ian Lance Taylor <iant@google.com>
4140
4141 * c-common.c (c_common_attribute_table): Add no_split_stack.
4142 (handle_no_split_stack_attribute): New static function.
4143
b581b85b
NP
41442010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4145
9faeb493 4146 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
4147
4148 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
4149
9faeb493 4150 Radar 4229905
b581b85b
NP
4151 * c-common.h (objc_have_common_type): New declaration.
4152 * stub-objc.c (objc_have_common_type): New stub.
4153
4154 2005-06-22 Ziemowit Laski <zlaski@apple.com>
4155
4156 Radar 4154928
4157 * c-common.h (objc_common_type): New prototype.
9faeb493 4158 * stub-objc.c (objc_common_type): New stub.
b581b85b 4159
46a4da10
JH
41602010-09-24 Jan Hubicka <jh@suse.cz>
4161
4162 * c-common.c (handle_leaf_attribute): New function.
4163 (struct attribute_spec c_common_att): Add leaf.
4164
e200444e
JM
41652010-09-22 Joseph Myers <joseph@codesourcery.com>
4166
4167 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4168 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4169 -dump, -dump=, -imacros, -imacros=, -include, -include=,
4170 -include-barrier, -include-directory, -include-directory=,
4171 -include-directory-after, -include-directory-after=,
4172 -include-prefix, -include-prefix=, -include-with-prefix,
4173 -include-with-prefix=, -include-with-prefix-after,
4174 -include-with-prefix-after=, -include-with-prefix-before,
4175 -include-with-prefix-before=, -no-integrated-cpp,
4176 -no-line-commands, -no-standard-includes, -no-warnings, -output,
4177 -output=, -pedantic, -pedantic-errors, -preprocess,
4178 -print-missing-file-dependencies, -trace-includes, -traditional,
4179 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4180 -user-dependencies, -verbose, -write-dependencies,
4181 -write-user-dependencies, no-integrated-cpp, traditional): New.
4182
29a80ea6
NP
41832010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4184
4185 PR objc/23710
ac1fc2fc
NP
4186 * c-common.h (objc_start_method_definition): Return bool instead
4187 of void.
4188 * stub-objc.c (objc_start_method_definition): Return bool instead
4189 of void.
4190
41912010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4192
4193 PR objc/25965
4194 * c-common.h (objc_get_interface_ivars): New declaration.
4195 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 4196
de621752
ILT
41972010-09-15 Ian Lance Taylor <iant@google.com>
4198
4199 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 4200 messages. Remove period at end of warning message.
de621752 4201
ba885ec5
NS
42022010-09-09 Nathan Sidwell <nathan@codesourcery.com>
4203
4204 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4205 (handle_alias_attribute): ... here.
4206 (handle_ifunc_attribute): New.
4207
c5ee1358
MM
42082010-09-06 Mark Mitchell <mark@codesourcery.com>
4209
4210 * c-common.h (do_warn_double_promotion): Declare.
4211 * c-common.c (do_warn_double_promotion): Define.
4212
0a0b3574
MM
42132010-09-05 Mark Mitchell <mark@codesourcery.com>
4214
4215 * c.opt (Wdouble-promotion): New.
4216
d1779886
JM
42172010-09-02 Joseph Myers <joseph@codesourcery.com>
4218
4219 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4220 fvtable-thunks, fxref): Mark no longer supported in help text.
4221
2d2bd949
JM
42222010-09-02 Joseph Myers <joseph@codesourcery.com>
4223
4224 * c.opt (Wimport, fall-virtual, falt-external-templates,
4225 fdefault-inline, fenum-int-equiv, fexternal-templates,
4226 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4227 fname-mangling-version-, fnew-abi, fnonnull-objects,
4228 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4229 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4230 applicable.
4231 (fhandle-exceptions): Mark with Alias and Warn.
4232 * c-opts.c (c_common_handle_option): Don't handle options marked
4233 as ignored.
4234
5de8299c
JM
42352010-09-02 Joseph Myers <joseph@codesourcery.com>
4236
4237 * c.opt (Wcomments, Werror-implicit-function-declaration,
4238 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4239 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4240 aliases.
4241 * c-common.c (option_codes): Use OPT_Wcomment instead of
4242 OPT_Wcomments.
4243 * c-opts.c (warning_as_error_callback, c_common_handle_option):
4244 Don't handle options marked as aliases.
4245
0ceb0201
RG
42462010-08-25 Richard Guenther <rguenther@suse.de>
4247
4248 * c-common.c (c_common_get_alias_set): Remove special
4249 handling for pointers.
4250
ac47786e
NF
42512010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4252
4253 * c-common.c: Use FOR_EACH_VEC_ELT.
4254 * c-gimplify.c: Likewise.
4255 * c-pragma.c: Likewise.
4256
c878765b
JM
42572010-08-16 Joseph Myers <joseph@codesourcery.com>
4258
4259 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
4260 RejectDriver.
4261 (MMDX): Change back to MMD. Mark NoDriverArg instead of
4262 RejectDriver.
4263 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4264 instead of OPT_MDX and OPT_MMDX.
4265
603349bf
JM
42662010-08-16 Joseph Myers <joseph@codesourcery.com>
4267
4268 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4269
644fa7ac
JM
42702010-08-12 Joseph Myers <joseph@codesourcery.com>
4271
4272 * c.opt (MD, MMD): Change to MDX and MMDX.
4273 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4274
481e1176
JM
42752010-08-11 Joseph Myers <joseph@codesourcery.com>
4276
4277 * c-opts.c (c_common_handle_option): Call handle_generated_option
4278 instead of handle_option.
4279
ac8dc9f7
NF
42802010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4281
4282 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4283 (maybe_apply_renaming_pragma): Delete unneeded declarations.
4284
4f8c876d
NF
42852010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4286
4287 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
4288 (pending_redefine_extname): Change type to a VEC.
4289 (add_to_renaming_pragma_list): Update for new type of
4290 pending_redefine_extname.
ac8dc9f7 4291 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 4292
3b0c690e
AC
42932010-08-04 Arnaud Charlet <charlet@adacore.com>
4294
4295 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4296 visited.
4297 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4298 decide whether a type has already been declared/seen.
4299 Do not go to the original type.
4300 (dump_nested_types): New parameter forward.
4301 Generate forward declaration if needed and mark type as visited.
4302 (print_ada_declaration): Call dump_nested_types if not already done.
4303 Mark types as visited.
4304
1890bccc
JM
43052010-08-03 Joseph Myers <joseph@codesourcery.com>
4306
4307 * c.opt (-print-pch-checksum): Remove option.
4308 * c-opts.c (c_common_handle_option): Don't handle
4309 OPT_print_pch_checksum.
4310
5f20c657
JM
43112010-07-27 Joseph Myers <joseph@codesourcery.com>
4312
4313 * c-common.h (c_common_handle_option): Update prototype and return
4314 value type.
4315 * c-opts.c (c_common_handle_option): Update prototype and return
4316 value type. Update calls to handle_option and
4317 enable_warning_as_error.
4318
f551f80c
JJ
43192010-07-27 Jakub Jelinek <jakub@redhat.com>
4320
4321 PR c/45079
4322 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4323
61ff2bdc
JM
43242010-07-27 Joseph Myers <joseph@codesourcery.com>
4325
4326 * c-common.h (c_common_missing_argument): Remove.
4327 * c-opts.c (c_common_missing_argument): Remove.
4328 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4329 idirafter, imacros, include, isysroot, isystem, iquote): Add
4330 MissingArgError.
4331 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4332
7a9bf9a4
JM
43332010-07-27 Joseph Myers <joseph@codesourcery.com>
4334
4335 * c-common.h (c_common_option_lang_mask,
4336 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4337 New.
4338 (c_common_init_options): Update prototype.
4339 * c-opts.c (c_common_option_lang_mask): New.
4340 (c_common_initialize_diagnostics): Split out of
4341 c_common_init_options.
4342 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4343 New.
4344 (c_common_init_options): Update prototype. Use decoded options in
4345 search for -lang-asm.
4346
910ad8de
NF
43472010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4348
4349 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4350 * c-format.c: Likewise.
4351
718f9c0f
MLI
43522010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4353
4354 * c-common.h: Include diagnostic-core.h. Error if already
4355 included.
4356 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4357
4d451982
MLI
43582010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4359
4360 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
4361 Do not include expr.h
4362 (vector_mode_valid_p): Move here.
4363
119fe915
SB
43642010-06-21 DJ Delorie <dj@redhat.com>
4365
4366 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4367 allow these pragmas anywhere.
4368
43692010-06-14 Jakub Jelinek <jakub@redhat.com>
4370
4371 PR bootstrap/44509
4372 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4373 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4374 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4375 ggc_strdup instead of xstrdup.
4376
43772010-06-10 Jakub Jelinek <jakub@redhat.com>
4378
4379 * c-cppbuiltin.c: Include cpp-id-data.h.
4380 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4381 (lazy_hex_fp_value): New function.
4382 (builtin_define_with_hex_fp_value): Provide definitions lazily.
4383
6662d794
MLI
43842010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4385
4386 * c-gimplify.c: Do not include tree-flow.h
4387
38f8b050
JR
43882010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4389
4390 PR other/44034
4391 * c-common.c: Rename targetm member:
4392 targetm.enum_va_list -> targetm.enum_va_list_p
4393
9589f23e
AS
43942010-06-28 Anatoly Sokolov <aesok@post.ru>
4395
4396 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4397
3b06d379
SB
43982010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4399
4400 * c-cppbuiltin.c: Do not include except.h.
4401
d166d4c3
AK
44022010-06-24 Andi Kleen <ak@linux.intel.com>
4403
9faeb493
UB
4404 * c-common.c (warn_for_omitted_condop): New.
4405 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 4406
70cb8be6
JM
44072010-06-21 Joseph Myers <joseph@codesourcery.com>
4408
4409 * c.opt (lang-objc): Remove.
4410 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4411
a4c97feb
JR
44122010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
4413
4414 * c-opts.c: Include "tm_p.h".
4415
6e2f1956
JM
44162010-06-20 Joseph Myers <joseph@codesourcery.com>
4417
4418 * c-common.c (parse_optimize_options): Update call to
4419 decode_options.
4420
bc87224e
NF
44212010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4422
4423 * c-common.c (record_types_used_by_current_var_decl): Adjust for
4424 new type of types_used_by_cur_var_decl.
4425
b49cf425
JR
44262010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
4427
4428 PR bootstrap/44512
4429 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4430 for C++ standard compliance.
4431
59f9c2ed
JM
44322010-06-16 Jason Merrill <jason@redhat.com>
4433
4434 * c.opt: Add -Wnoexcept.
4435
33766b66
RG
44362010-06-16 Richard Guenther <rguenther@suse.de>
4437
4438 PR c/44555
4439 * c-common.c (c_common_truthvalue_conversion): Remove
4440 premature and wrong optimization concering ADDR_EXPRs.
4441
eff7e30c
AC
44422010-06-15 Arnaud Charlet <charlet@adacore.com>
4443
4444 * c-ada-spec.c (dump_sloc): Remove column info.
4445 (is_simple_enum): New function.
4446 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4447 enum types when relevant.
4448
6312e84d
MLI
44492010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4450
9faeb493 4451 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
4452 location.
4453
1cb42611
JM
44542010-06-10 Joseph Myers <joseph@codesourcery.com>
4455
4456 * c-opts.c (c_common_handle_option): Don't handle
4457 OPT_fshow_column.
4458
a9429e29
LB
44592010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4460
4461 * c-pragma.c (push_alignment): Use typed GC allocation.
4462 (handle_pragma_push_options): Likewise.
4463
4464 * c-common.c (parse_optimize_options): Likewise.
4465
4466 * c-common.h (struct sorted_fields_type): Add variable_size GTY
4467 option.
4468
5498f011
JM
44692010-06-07 Joseph Myers <joseph@codesourcery.com>
4470
4471 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4472 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4473 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4474 flag_signed_bitfields, warn_strict_null_sentinel,
4475 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4476 flag_gen_declaration, flag_no_gnu_keywords,
4477 flag_implement_inlines, flag_implicit_templates,
4478 flag_implicit_inline_templates, flag_optional_diags,
4479 flag_elide_constructors, flag_default_inline, flag_rtti,
4480 flag_conserve_space, flag_access_control, flag_check_new,
4481 flag_new_for_scope, flag_weak, flag_working_directory,
4482 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4483 flag_enforce_eh_specs, flag_threadsafe_statics,
4484 flag_pretty_templates): Remove.
4485 * c-common.h (flag_preprocess_only, flag_nil_receivers,
4486 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4487 flag_replace_objc_classes, flag_undef, flag_no_builtin,
4488 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4489 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4490 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4491 flag_no_gnu_keywords, flag_implement_inlines,
4492 flag_implicit_templates, flag_implicit_inline_templates,
4493 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4494 flag_rtti, flag_conserve_space, flag_access_control,
4495 flag_check_new, flag_new_for_scope, flag_weak,
4496 flag_working_directory, flag_use_cxa_atexit,
4497 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4498 flag_threadsafe_statics, flag_pretty_templates,
4499 warn_strict_null_sentinel): Remove.
4500 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4501 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4502 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4503 fimplicit-inline-templates, fimplicit-templates,
4504 flax-vector-conversions, fms-extensions, fnil-receivers,
4505 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4506 frtti, fshort-double, fshort-enums, fshort-wchar,
4507 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4508 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4509 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4510 gen-decls, undef): Use Var.
4511 (fdefault-inline, foptional-diags): Document as doing nothing.
4512 * c-opts.c (c_common_handle_option): Remove cases for options now
4513 using Var. Mark ignored options as such.
4514
39dabefd
SB
45152010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4516
9faeb493 4517 * c-common.c: Moved to here from parent directory.
39dabefd
SB
4518 * c-common.def: Likewise.
4519 * c-common.h: Likewise.
4520 * c-cppbuiltin.c: Likewise.
4521 * c-dump.c: Likewise.
4522 * c-format.c: Likewise.
4523 * c-format.h : Likewise.
4524 * c-gimplify.c: Likewise.
4525 * c-lex.c: Likewise.
4526 * c-omp.c: Likewise.
4527 * c.opt: Likewise.
4528 * c-opts.c: Likewise.
4529 * c-pch.c: Likewise.
4530 * c-ppoutput.c: Likewise.
4531 * c-pragma.c: Likewise.
4532 * c-pragma.h: Likewise.
4533 * c-pretty-print.c: Likewise.
4534 * c-pretty-print.h: Likewise.
4535 * c-semantics.c: Likewise.
4536 * stub-objc.c: Likewise.
4537
4538 * c-common.c: Include gt-c-family-c-common.h.
4539 * c-pragma.c: Include gt-c-family-c-pragma.h.
4540\f
5624e564 4541Copyright (C) 2010-2015 Free Software Foundation, Inc.
39dabefd
SB
4542
4543Copying and distribution of this file, with or without modification,
4544are permitted in any medium without royalty provided the copyright
4545notice and this notice are preserved.
This page took 1.675291 seconds and 5 git commands to generate.