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