]>
Commit | Line | Data |
---|---|---|
d508d708 GA |
1 | 2024-05-08 Marek Polacek <polacek@redhat.com> |
2 | ||
3 | PR c++/113582 | |
4 | * c-warn.cc (warn_for_unused_label): Don't warn if -Wunused-label has | |
5 | been suppressed for the label. | |
6 | ||
7 | 2024-05-07 Andrew Pinski <quic_apinski@quicinc.com> | |
8 | ||
9 | PR c++/89224 | |
10 | * c-common.cc (convert_vector_to_array_for_subscript): Call build_qualified_type | |
11 | for the inner type. | |
12 | ||
13 | 2024-05-07 Jakub Jelinek <jakub@redhat.com> | |
14 | ||
15 | PR c++/114459 | |
16 | * c-cppbuiltin.cc (c_cpp_builtins): Predefine | |
17 | __cpp_variadic_friend=202403L for C++26. | |
18 | ||
19 | 2024-05-07 Richard Biener <rguenther@suse.de> | |
20 | ||
21 | PR middle-end/114931 | |
22 | * c-common.cc (complete_array_type): Set TYPE_STRUCTURAL_EQUALITY_P | |
23 | before probing with type_hash_canon. | |
24 | ||
f2d01160 GA |
25 | 2024-05-02 Jakub Jelinek <jakub@redhat.com> |
26 | ||
27 | PR c++/114458 | |
28 | * c-cppbuiltin.cc (c_cpp_builtins): Predefine | |
29 | __cpp_deleted_function=202403L for C++26. | |
30 | ||
610415bb GA |
31 | 2024-04-30 Jakub Jelinek <jakub@redhat.com> |
32 | ||
33 | PR c++/114456 | |
34 | * c-cppbuiltin.cc (c_cpp_builtins): Predefine | |
35 | __cpp_structured_bindings for C++26 to 202403L rather than | |
36 | 201606L. | |
37 | ||
3091f1df GA |
38 | 2024-04-23 Jakub Jelinek <jakub@redhat.com> |
39 | ||
40 | * c-attribs.cc (handle_objc_nullability_attribute): Spelling fix: | |
41 | recognised -> recognized. | |
42 | ||
43 | 2024-04-23 Jakub Jelinek <jakub@redhat.com> | |
44 | ||
45 | * c.opt (Wstrict-flex-arrays): Spelling fix: inproper -> improper. | |
46 | ||
90ded751 GA |
47 | 2024-04-19 Jakub Jelinek <jakub@redhat.com> |
48 | ||
49 | PR c/114780 | |
50 | * c-common.cc (check_function_sentinel): Allow as sentinel any | |
51 | argument of NULLPTR_TYPE. | |
52 | ||
3319d1a4 GA |
53 | 2024-04-13 Mark Wielaard <mark@klomp.org> |
54 | ||
55 | * c.opt.urls: Regenerate. | |
56 | ||
1667962a GA |
57 | 2024-04-12 Jason Merrill <jason@redhat.com> |
58 | Patrick Palka <ppalka@redhat.com> | |
59 | ||
60 | PR c++/113141 | |
61 | * c.opt: Add -Wcast-user-defined. | |
62 | ||
1a96eb0a GA |
63 | 2024-04-05 Marek Polacek <polacek@redhat.com> |
64 | ||
65 | * c-warn.cc (warn_about_parentheses): Remove an #undef. | |
66 | ||
feafff04 GA |
67 | 2024-03-27 Jakub Jelinek <jakub@redhat.com> |
68 | ||
69 | PR tree-optimization/114469 | |
70 | * c-common.cc (resolve_overloaded_builtin): For _BitInt result | |
71 | on !extended targets convert result to the _BitInt type before | |
72 | using VIEW_CONVERT_EXPR. | |
73 | ||
4b8e7b57 GA |
74 | 2024-03-26 Jakub Jelinek <jakub@redhat.com> |
75 | ||
76 | PR c++/112724 | |
77 | * c-pretty-print.cc (pp_c_cast_expression, | |
78 | c_pretty_printer::expression): Handle EXCESS_PRECISION_EXPR like | |
79 | NOP_EXPR. | |
80 | ||
cc606a91 GA |
81 | 2024-03-19 Jakub Jelinek <jakub@redhat.com> |
82 | ||
83 | PR c/114364 | |
84 | * c-omp.cc (enum check_loop_binding_expr_ctx): New type. | |
85 | (check_loop_binding_expr): Remove context argument, add ctx | |
86 | argument with check_loop_binding_expr_ctx type at the end. Don't | |
87 | create diagnostic message from multiple pieces. | |
88 | (c_omp_check_loop_binding_exprs): Adjust callers. | |
89 | ||
c775a030 GA |
90 | 2024-03-08 Jakub Jelinek <jakub@redhat.com> |
91 | ||
92 | * c-common.cc (resolve_overloaded_atomic_exchange): Instead of setting | |
93 | p1 to VIEW_CONVERT_EXPR<I_type> (*p1), set it to MEM_REF with p1 and | |
94 | (typeof (p1)) 0 operands and I_type type. | |
95 | (resolve_overloaded_atomic_compare_exchange): Similarly for p2. | |
96 | ||
214dadf3 GA |
97 | 2024-03-05 Mark Wielaard <mark@klomp.org> |
98 | ||
99 | * c.opt.urls: Regenerate. | |
100 | ||
101 | 2024-03-05 Patrick Palka <ppalka@redhat.com> | |
102 | ||
103 | * c.opt (Wglobal-module): New warning. | |
104 | ||
264e3ad4 GA |
105 | 2024-03-04 Mark Wielaard <mark@klomp.org> |
106 | ||
107 | * c.opt.urls: Regenerate. | |
108 | ||
77de8b72 GA |
109 | 2024-02-22 Jakub Jelinek <jakub@redhat.com> |
110 | ||
111 | PR c/114007 | |
112 | * c-lex.cc (c_common_has_attribute): Parse 2 CPP_COLONs with | |
113 | the first one with COLON_SCOPE flag the same as CPP_SCOPE. | |
114 | ||
67d5b10e GA |
115 | 2024-02-10 Marek Polacek <polacek@redhat.com> |
116 | ||
117 | DR 2237 | |
118 | PR c++/107126 | |
119 | PR c++/97202 | |
120 | * c-opts.cc (c_common_post_options): In C++20 or with -Wc++20-compat, | |
121 | turn on -Wtemplate-id-cdtor. | |
122 | * c.opt (Wtemplate-id-cdtor): New. | |
123 | ||
124 | 2024-02-10 Jakub Jelinek <jakub@redhat.com> | |
125 | ||
126 | * c-format.cc (gcc_diag_length_specs): Add t and z modifiers. | |
127 | (PP_FORMAT_CHAR_TABLE, gcc_gfc_char_table): Add entries for t and | |
128 | z modifiers. | |
129 | ||
130 | 2024-02-10 Jakub Jelinek <jakub@redhat.com> | |
131 | ||
132 | * c-ada-spec.cc (dump_template_types): Use HOST_SIZE_T_PRINT_UNSIGNED | |
133 | and casts to fmt_size_t instead of "%lu" and casts to unsigned long. | |
134 | ||
e2554540 GA |
135 | 2024-02-01 Lewis Hyatt <lhyatt@gmail.com> |
136 | ||
137 | PR preprocessor/105608 | |
138 | * c-pch.cc (c_common_read_pch): Adjust line map so that libcpp | |
139 | assigns a location to restored macros which is the same location | |
140 | that triggered the PCH include. | |
141 | ||
dd3455f6 GA |
142 | 2024-01-31 Marek Polacek <polacek@redhat.com> |
143 | ||
144 | * c-opts.cc (c_common_post_options): Add an inform saying that | |
145 | -fconcepts-ts is deprecated and will be removed in GCC 15. | |
146 | ||
3979171d GA |
147 | 2024-01-27 Lewis Hyatt <lhyatt@gmail.com> |
148 | ||
149 | PR preprocessor/105608 | |
150 | * c-pch.cc (c_common_read_pch): Start a new line map before asking | |
151 | libcpp to restore macros defined prior to reading the PCH, instead | |
152 | of afterward. | |
153 | ||
3128786c GA |
154 | 2024-01-23 Jakub Jelinek <jakub@redhat.com> |
155 | ||
156 | PR c/113518 | |
157 | * c-common.cc (atomic_bitint_fetch_using_cas_loop): Call c_fully_fold | |
158 | on lhs_addr, val and model for C. | |
159 | ||
160 | 2024-01-23 Sandra Loosemore <sandra@codesourcery.com> | |
161 | ||
162 | * c.opt: Improve sorting of warning options. | |
163 | ||
1a177974 GA |
164 | 2024-01-16 Eric Botcazou <ebotcazou@adacore.com> |
165 | ||
166 | PR ada/113397 | |
167 | * c-ada-spec.cc (check_type_name_conflict): Add guard for the | |
168 | presence of DECL_NAME on a TYPE_DECL. | |
169 | ||
1a80e955 GA |
170 | 2024-01-11 Julian Brown <julian@codesourcery.com> |
171 | ||
172 | * c-pretty-print.cc (c_pretty_printer::postfix_expression, | |
173 | c_pretty_printer::expression): Add OMP_ARRAY_SECTION support. | |
174 | ||
73ce73fc GA |
175 | 2024-01-09 waffl3x <waffl3x@protonmail.com> |
176 | ||
177 | PR c++/102609 | |
178 | PR c++/102609 | |
179 | C++23 P0847R7 (deducing this) - diagnostics. | |
180 | * c-cppbuiltin.cc (c_cpp_builtins): Define | |
181 | __cpp_explicit_this_parameter=202110L feature test macro. | |
182 | ||
183 | 2024-01-09 Jakub Jelinek <jakub@redhat.com> | |
184 | ||
185 | PR c/113262 | |
186 | * c-attribs.cc (handle_copy_attribute): Don't use | |
187 | DECL_SOURCE_LOCATION (decl) if decl is not DECL_P, use input_location | |
188 | instead. Formatting fixes. | |
189 | ||
190 | 2024-01-09 Julian Brown <julian@codesourcery.com> | |
191 | ||
192 | * c-common.h (c_omp_address_inspector): Remove static from get_origin | |
193 | and maybe_unconvert_ref methods. | |
194 | * c-omp.cc (c_omp_split_clauses): Support OMP_ARRAY_SECTION. | |
195 | (c_omp_address_inspector::map_supported_p): Handle OMP_ARRAY_SECTION. | |
196 | (c_omp_address_inspector::get_origin): Avoid dereferencing possibly | |
197 | NULL type when processing template decls. | |
198 | (c_omp_address_inspector::maybe_unconvert_ref): Likewise. | |
199 | ||
81d1a6e9 GA |
200 | 2024-01-04 David Malcolm <dmalcolm@redhat.com> |
201 | ||
202 | * c.opt.urls: New file, autogenerated by regenerate-opt-urls.py. | |
203 | ||
cdfaa4aa GA |
204 | 2023-12-21 Jakub Jelinek <jakub@redhat.com> |
205 | ||
206 | * c.opt (Walloc-size): Enable also for C++ and ObjC++. | |
207 | ||
208 | 2023-12-21 Jakub Jelinek <jakub@redhat.com> | |
209 | ||
210 | PR sanitizer/113092 | |
211 | * c-ubsan.cc (ubsan_instrument_shift): Workaround for missing | |
212 | ubsan _BitInt support for the shift count. | |
213 | ||
7ad9058c GA |
214 | 2023-12-20 Florian Weimer <fweimer@redhat.com> |
215 | ||
216 | PR c/113050 | |
217 | * c-common.cc (get_atomic_generic_size): Use | |
218 | OPT_Wdiscarded_qualifiers instead of | |
219 | OPT_Wincompatible_pointer_types. | |
220 | ||
221 | 2023-12-20 Jakub Jelinek <jakub@redhat.com> | |
222 | ||
223 | * c.opt (Wcalloc-transposed-args): New warning. | |
224 | * c-common.h (warn_for_calloc, warn_for_alloc_size): Declare. | |
225 | * c-warn.cc (warn_for_calloc, warn_for_alloc_size): New functions. | |
226 | ||
7e6f0faa GA |
227 | 2023-12-16 Andrew Carlotti <andrew.carlotti@arm.com> |
228 | ||
229 | * c-attribs.cc (attr_target_exclusions): Make | |
230 | target/target_clones exclusion target-dependent. | |
231 | (attr_target_clones_exclusions): Ditto, and add target_version. | |
232 | (attr_target_version_exclusions): New. | |
233 | (c_common_attribute_table): Add target_version. | |
234 | (handle_target_version_attribute): New. | |
235 | (handle_target_attribute): Amend comment. | |
236 | (handle_target_clones_attribute): Ditto. | |
237 | ||
238 | 2023-12-16 Andrew Carlotti <andrew.carlotti@arm.com> | |
239 | ||
240 | * c-attribs.cc (attr_always_inline_exclusions): New. | |
241 | (attr_target_exclusions): Ditto. | |
242 | (attr_target_clones_exclusions): Ditto. | |
243 | (c_common_attribute_table): Add new exclusion lists. | |
244 | (handle_noinline_attribute): Remove custom exclusion handling. | |
245 | (handle_always_inline_attribute): Ditto. | |
246 | (handle_target_attribute): Ditto. | |
247 | (handle_target_clones_attribute): Ditto. | |
248 | ||
e8018ccf GA |
249 | 2023-12-13 Patrick Palka <ppalka@redhat.com> |
250 | ||
251 | * c.opt: Add -fdiagnostics-all-candidates. | |
252 | ||
253 | 2023-12-13 Jason Merrill <jason@redhat.com> | |
254 | ||
255 | * c-warn.cc (check_address_or_pointer_of_packed_member): | |
256 | Rename to check_address_of_packed_member. | |
257 | (check_and_warn_address_or_pointer_of_packed_member): | |
258 | Rename to check_and_warn_address_of_packed_member. | |
259 | (warn_for_address_or_pointer_of_packed_member): | |
260 | Rename to warn_for_address_of_packed_member. | |
261 | * c-common.h: Adjust. | |
262 | ||
263 | 2023-12-13 Jason Merrill <jason@redhat.com> | |
264 | ||
265 | * c-warn.cc (check_address_or_pointer_of_packed_member): | |
266 | Remove warning based on TYPE_PACKED. | |
267 | ||
268 | 2023-12-13 Julian Brown <julian@codesourcery.com> | |
269 | ||
270 | * c-common.h (c_omp_region_type): Add C_ORT_EXIT_DATA, | |
271 | C_ORT_OMP_EXIT_DATA and C_ORT_ACC_TARGET. | |
272 | (omp_addr_token): Add forward declaration. | |
273 | (c_omp_address_inspector): New class. | |
274 | * c-omp.cc (c_omp_adjust_map_clauses): Mark decls addressable here, but | |
275 | do not change any mapping node types. | |
276 | (c_omp_address_inspector::unconverted_ref_origin, | |
277 | c_omp_address_inspector::component_access_p, | |
278 | c_omp_address_inspector::check_clause, | |
279 | c_omp_address_inspector::get_root_term, | |
280 | c_omp_address_inspector::map_supported_p, | |
281 | c_omp_address_inspector::get_origin, | |
282 | c_omp_address_inspector::maybe_unconvert_ref, | |
283 | c_omp_address_inspector::maybe_zero_length_array_section, | |
284 | c_omp_address_inspector::expand_array_base, | |
285 | c_omp_address_inspector::expand_component_selector, | |
286 | c_omp_address_inspector::expand_map_clause): New methods. | |
287 | (omp_expand_access_chain): New function. | |
288 | ||
8a5d6ce0 GA |
289 | 2023-12-12 Richard Biener <rguenther@suse.de> |
290 | ||
291 | PR ipa/92606 | |
292 | * c-attribs.cc (handle_noicf_attribute): Also allow the | |
293 | attribute on global variables. | |
294 | ||
4a6613e2 GA |
295 | 2023-12-10 Ken Matsui <kmatsui@gcc.gnu.org> |
296 | Patrick Palka <ppalka@redhat.com> | |
297 | ||
298 | * c-common.cc (c_common_reswords): Remove all mappings of | |
299 | built-in traits. | |
300 | * c-common.h (enum rid): Remove all RID values for built-in | |
301 | traits. | |
302 | ||
08f89e5e GA |
303 | 2023-12-07 Andrew Pinski <pinskia@gmail.com> |
304 | Jakub Jelinek <jakub@redhat.com> | |
305 | ||
306 | PR preprocessor/111965 | |
307 | * c-opts.cc (c_common_handle_option) <case OPT_fdebug_cpp>: Set | |
308 | cpp_opts->debug to value rather than 1. | |
309 | ||
ae9e48e5 GA |
310 | 2023-12-06 David Malcolm <dmalcolm@redhat.com> |
311 | ||
312 | * c-opts.cc (c_diagnostic_finalizer): Make "diagnostic" param | |
313 | const. | |
314 | ||
3dd09cd9 GA |
315 | 2023-12-06 Alexandre Oliva <oliva@adacore.com> |
316 | ||
317 | * c-attribs.cc: Include ipa-strub.h. | |
318 | (handle_strub_attribute): New. | |
319 | (c_common_attribute_table): Add strub. | |
320 | ||
321 | 2023-12-05 Richard Sandiford <richard.sandiford@arm.com> | |
322 | ||
323 | * c-attribs.cc (c_common_gnu_attribute_table): Add extra | |
324 | braces to work around PR 16333 in older compilers. | |
325 | ||
326 | 2023-12-05 Richard Biener <rguenther@suse.de> | |
327 | ||
328 | PR c/89270 | |
329 | * c-common.cc (c_common_type_for_size): Consider | |
330 | registered_builtin_types. | |
331 | ||
332 | 2023-12-05 Marek Polacek <polacek@redhat.com> | |
333 | ||
334 | PR c++/107687 | |
335 | PR c++/110997 | |
336 | * c-cppbuiltin.cc (c_cpp_builtins): Update __cpp_consteval. | |
337 | * c-opts.cc (c_common_post_options): Pre-C++20, unset | |
338 | flag_immediate_escalation. | |
339 | * c.opt (fimmediate-escalation): New option. | |
340 | ||
04d4a494 GA |
341 | 2023-12-02 Richard Sandiford <richard.sandiford@arm.com> |
342 | ||
343 | * c-common.h (c_common_attribute_table): Replace with... | |
344 | (c_common_gnu_attribute_table): ...this. | |
345 | (c_common_format_attribute_table): Change type to | |
346 | scoped_attribute_specs. | |
347 | * c-attribs.cc (c_common_attribute_table): Replace with... | |
348 | (c_common_gnu_attributes, c_common_gnu_attribute_table): ...these | |
349 | new globals. | |
350 | (c_common_format_attribute_table): Change type to | |
351 | scoped_attribute_specs, using... | |
352 | (c_common_format_attributes): ...this as the underlying array. | |
353 | ||
2e0f3f97 GA |
354 | 2023-12-01 Florian Weimer <fweimer@redhat.com> |
355 | ||
356 | * c.opt (Wdeclaration-missing-parameter-type): New. | |
357 | ||
8428bcd7 GA |
358 | 2023-11-30 Jakub Jelinek <jakub@redhat.com> |
359 | ||
360 | PR c++/110349 | |
361 | * c-cppbuiltin.cc (c_cpp_builtins): Predefine | |
362 | __cpp_placeholder_variables=202306L for C++26. | |
363 | ||
31d8cf17 GA |
364 | 2023-11-29 Alexandre Oliva <oliva@adacore.com> |
365 | ||
366 | * c-attribs.cc (c_common_attribute_table): Add hardbool. | |
367 | (handle_hardbool_attribute): New. | |
368 | (type_valid_for_vector_size): Reject hardbool. | |
369 | * c-common.cc (convert_and_check): Skip warnings for convert | |
370 | and check for hardbool. | |
371 | (c_hardbool_type_attr_1): New. | |
372 | * c-common.h (c_hardbool_type_attr): New. | |
373 | ||
ad3e759c GA |
374 | 2023-11-27 Alex Coplan <alex.coplan@arm.com> |
375 | Iain Sandoe <iain@sandoe.co.uk> | |
376 | ||
377 | PR c++/60512 | |
378 | * c-common.cc (struct hf_feature_info): New. | |
379 | (c_common_register_feature): New. | |
380 | (init_has_feature): New. | |
381 | (has_feature_p): New. | |
382 | * c-common.h (c_common_has_feature): New. | |
383 | (c_family_register_lang_features): New. | |
384 | (c_common_register_feature): New. | |
385 | (has_feature_p): New. | |
386 | * c-lex.cc (init_c_lex): Plumb through has_feature callback. | |
387 | (c_common_has_builtin): Generalize and move common part ... | |
388 | (c_common_lex_availability_macro): ... here. | |
389 | (c_common_has_feature): New. | |
390 | * c-ppoutput.cc (init_pp_output): Plumb through has_feature. | |
391 | ||
77cf1dba GA |
392 | 2023-11-24 Lewis Hyatt <lhyatt@gmail.com> |
393 | ||
394 | PR pch/112319 | |
395 | * c-ppoutput.cc (cb_read_pch): Reinitialize the frontend parser | |
396 | after loading a PCH. | |
397 | ||
398 | 2023-11-24 Tobias Burnus <tobias@codesourcery.com> | |
399 | ||
400 | * c.opt (-Wopenmp): Add missing tailing '.'. | |
401 | ||
402 | 2023-11-24 Tobias Burnus <tobias@codesourcery.com> | |
403 | ||
404 | * c.opt (Wopenmp): Add, enable by default. | |
405 | ||
6fb55db0 GA |
406 | 2023-11-23 Marek Polacek <polacek@redhat.com> |
407 | ||
408 | * c-opts.cc: Include "target.h". | |
409 | (c_finish_options): Maybe cpp_define _FORTIFY_SOURCE | |
410 | and _GLIBCXX_ASSERTIONS. | |
411 | ||
412 | 2023-11-23 Jakub Jelinek <jakub@redhat.com> | |
413 | ||
414 | * c-common.h (enum rid): Add RID_BUILTIN_STDC: New. | |
415 | * c-common.cc (c_common_reswords): Add __builtin_stdc_bit_ceil, | |
416 | __builtin_stdc_bit_floor, __builtin_stdc_bit_width, | |
417 | __builtin_stdc_count_ones, __builtin_stdc_count_zeros, | |
418 | __builtin_stdc_first_leading_one, __builtin_stdc_first_leading_zero, | |
419 | __builtin_stdc_first_trailing_one, __builtin_stdc_first_trailing_zero, | |
420 | __builtin_stdc_has_single_bit, __builtin_stdc_leading_ones, | |
421 | __builtin_stdc_leading_zeros, __builtin_stdc_trailing_ones and | |
422 | __builtin_stdc_trailing_zeros. Move __builtin_assoc_barrier | |
423 | alphabetically earlier. | |
424 | ||
425 | 2023-11-23 Jakub Jelinek <jakub@redhat.com> | |
426 | ||
427 | PR c++/110348 | |
428 | * c.opt (Wc++26-extensions): New option. | |
429 | * c-cppbuiltin.cc (c_cpp_builtins): For C++26 predefine | |
430 | __cpp_static_assert to 202306L rather than 201411L. | |
431 | ||
b54b3800 GA |
432 | 2023-11-19 David Malcolm <dmalcolm@redhat.com> |
433 | ||
434 | * c-lex.cc: Include "rich-location.h". | |
435 | ||
9d58d2d8 GA |
436 | 2023-11-18 Sebastian Huber <sebastian.huber@embedded-brains.de> |
437 | ||
438 | * c-cppbuiltin.cc (c_cpp_builtins): Define | |
439 | __LIBGCC_HAVE_LIBATOMIC for libgcov. | |
440 | ||
441 | 2023-11-18 Sebastian Huber <sebastian.huber@embedded-brains.de> | |
442 | ||
443 | Revert: | |
444 | 2021-08-16 Sebastian Huber <sebastian.huber@embedded-brains.de> | |
445 | ||
446 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
447 | __LIBGCC_GCOV_TYPE_SIZE if flag_building_libgcc is true. | |
448 | ||
c63a0bbc GA |
449 | 2023-11-17 Jakub Jelinek <jakub@redhat.com> |
450 | ||
451 | PR c++/107571 | |
452 | * c-gimplify.cc (genericize_c_loop): For C++ mark IFN_FALLTHROUGH | |
453 | call at the end of loop body as TREE_NOTHROW. | |
454 | ||
eaedb56a GA |
455 | 2023-11-14 Lewis Hyatt <lhyatt@gmail.com> |
456 | ||
457 | PR pch/9471 | |
458 | PR pch/47857 | |
459 | * c-opts.cc (c_common_post_options): Set cpp_opts->main_search | |
460 | so libcpp knows it is compiling a header file separately. | |
461 | ||
462 | 2023-11-14 David Malcolm <dmalcolm@redhat.com> | |
463 | ||
464 | * c-warn.cc (conversion_warning): Update call to | |
465 | global_dc->m_option_enabled to use option_enabled_p. | |
466 | ||
467 | 2023-11-14 David Malcolm <dmalcolm@redhat.com> | |
468 | ||
469 | * c-common.cc (c_get_substring_location): Use global_dc's | |
470 | file_cache. | |
471 | * c-format.cc (get_corrected_substring): Likewise. | |
472 | * c-indentation.cc (get_visual_column): Add file_cache param. | |
473 | (get_first_nws_vis_column): Likewise. | |
474 | (detect_intervening_unindent): Likewise. | |
475 | (should_warn_for_misleading_indentation): Use global_dc's | |
476 | file_cache. | |
477 | (assert_get_visual_column_succeeds): Add file_cache param. | |
478 | (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): Likewise. | |
479 | (assert_get_visual_column_fails): Likewise. | |
480 | (define ASSERT_GET_VISUAL_COLUMN_FAILS): Likewise. | |
481 | (selftest::test_get_visual_column): Create and use a temporary | |
482 | file_cache. | |
483 | ||
b9fd8399 GA |
484 | 2023-11-14 Jakub Jelinek <jakub@redhat.com> |
485 | ||
486 | PR c/111309 | |
487 | * c-common.cc (check_builtin_function_arguments): Handle | |
488 | BUILT_IN_{CLZ,CTZ,CLRSB,FFS,PARITY,POPCOUNT}G. | |
489 | * c-gimplify.cc (c_gimplify_expr): If __builtin_c[lt]zg second | |
490 | argument hasn't been folded into constant yet, transform it to one | |
491 | argument call inside of a COND_EXPR which for first argument 0 | |
492 | returns the second argument. | |
493 | ||
494 | 2023-11-11 Martin Uecker <uecker@tugraz.at> | |
495 | ||
496 | PR c/110815 | |
497 | PR c/112428 | |
498 | * c-attribs.cc (build_attr_access_from_parms): Synthesize | |
499 | nonnull attribute for parameters declared with `static`. | |
500 | ||
501 | 2023-11-09 Florian Weimer <fweimer@redhat.com> | |
502 | ||
503 | * c.opt (Wreturn-mismatch): New. | |
504 | ||
3e9461a3 GA |
505 | 2023-11-08 Florian Weimer <fweimer@redhat.com> |
506 | ||
507 | * c.opt (fpermissive): Enable for C and ObjC. | |
508 | * c-opts.cc (c_common_post_options): Enable -fpermissive. | |
509 | ||
c48f1056 GA |
510 | 2023-11-07 Joseph Myers <joseph@codesourcery.com> |
511 | ||
512 | * c-format.h (T2X_UI): Rename to T23_UI. | |
513 | (T2X_UL): Rename to T23_UL. | |
514 | (T2X_ULL): Rename to T23_ULL. | |
515 | (T2X_US): Rename to T23_US. | |
516 | (T2X_UC): Rename to T23_UC. | |
517 | (T2X_ST): Rename to T23_ST. | |
518 | (T2X_UPD): Rename to T23_UPD. | |
519 | (T2X_UIM): Rename to T23_UIM. | |
520 | (T2X_D32): Rename to T23_D32. | |
521 | (T2X_D64): Rename to T23_D64. | |
522 | (T2X_D128): Rename to T23_D128. | |
523 | (T2X_I8): Rename to T23_I8. | |
524 | (T2X_I16): Rename to T23_I16. | |
525 | (T2X_I32): Rename to T23_I32. | |
526 | (T2X_I64): Rename to T23_I64. | |
527 | (T2X_U8): Rename to T23_U8. | |
528 | (T2X_U16): Rename to T23_U16. | |
529 | (T2X_U32): Rename to T23_U32. | |
530 | (T2X_U64): Rename to T23_U64. | |
531 | (T2X_IF8): Rename to T23_IF8. | |
532 | (T2X_IF16): Rename to T23_IF16. | |
533 | (T2X_IF32): Rename to T23_IF32. | |
534 | (T2X_IF64): Rename to T23_IF64. | |
535 | (T2X_UF8): Rename to T23_UF8. | |
536 | (T2X_UF16): Rename to T23_UF16. | |
537 | (T2X_UF32): Rename to T23_UF32. | |
538 | (T2X_UF64): Rename to T23_UF64. | |
539 | * c-format.cc: Update all uses of T2X_* macros to use T23_*. | |
540 | ||
541 | 2023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com> | |
542 | ||
543 | * c-attribs.cc (c_common_attribute_table): Add attribute for | |
544 | indirect functions. | |
545 | * c-pragma.h (enum parma_omp_clause): Add entry for indirect clause. | |
546 | ||
547 | 2023-11-07 Joseph Myers <joseph@codesourcery.com> | |
548 | ||
549 | * c-common.cc (flag_isoc2x): Rename to flag_isoc23. | |
550 | (c_common_reswords): Use D_C23 instead of D_C2X. | |
551 | * c-common.h: Refer throughout to C23 instead of C2X in comments. | |
552 | (D_C2X): Rename to D_C23. | |
553 | (flag_isoc2x): Rename to flag_isoc23. | |
554 | * c-cppbuiltin.cc (builtin_define_float_constants): Use | |
555 | flag_isoc23 instead of flag_isoc2x. Refer to C23 instead of C2x | |
556 | in comments. | |
557 | * c-format.cc: Use STD_C23 instead of STD_C2X and flag_isoc23 | |
558 | instead of flag_isoc2x. Refer to C23 instead of C2X in comments. | |
559 | * c-format.h: Use STD_C23 instead of STD_C2X. | |
560 | * c-lex.cc: Use warn_c11_c23_compat instead of warn_c11_c2x_compat | |
561 | and flag_isoc23 instead of flag_isoc2x. Refer to C23 instead of | |
562 | C2X in diagnostics. | |
563 | * c-opts.cc: Use flag_isoc23 instead of flag_isoc2x. Refer to C23 | |
564 | instead of C2X in comments. | |
565 | (set_std_c2x): Rename to set_std_c23. | |
566 | * c.opt (Wc11-c23-compat): Use CPP(cpp_warn_c11_c23_compat) | |
567 | CppReason(CPP_W_C11_C23_COMPAT) Var(warn_c11_c23_compat) instead | |
568 | of CPP(cpp_warn_c11_c2x_compat) CppReason(CPP_W_C11_C2X_COMPAT) | |
569 | Var(warn_c11_c2x_compat). | |
570 | ||
2cca6ae6 GA |
571 | 2023-11-06 Joseph Myers <joseph@codesourcery.com> |
572 | ||
573 | PR c/107954 | |
574 | * c.opt (Wc11-c2x-compat): Rename to Wc11-c23-compat and make into | |
575 | a deprecated alias of Wc11-c23-compat. | |
576 | (std=c2x): Rename to std=c23 and make into a deprecated alias of | |
577 | std=c23. | |
578 | (std=gnu2x): Rename to std=gnu23 and make into a deprecated alias | |
579 | of std=gnu23. | |
580 | (std=iso9899:2024): New option. Alias of std=c23. | |
581 | * c-lex.cc (interpret_float): Use OPT_Wc11_c23_compat instead of | |
582 | OPT_Wc11_c2x_compat. | |
583 | * c-opts.cc (c_common_handle_option): Use OPT_std_c23 instead of | |
584 | OPT_std_c2x and OPT_std_gnu23 instead of OPT_std_gnu2x. | |
585 | ||
459866ea GA |
586 | 2023-11-05 Jakub Jelinek <jakub@redhat.com> |
587 | ||
588 | * c-lex.cc (c_common_has_attribute): Return 1 for omp::directive | |
589 | and omp::sequence with -fopenmp or -fopenmp-simd also for C, not | |
590 | just for C++. Return 1 for omp::decl with -fopenmp or -fopenmp-simd | |
591 | for both C and C++. | |
592 | ||
eb4e1b62 GA |
593 | 2023-11-04 David Malcolm <dmalcolm@redhat.com> |
594 | ||
595 | * c-pragma.cc:: (handle_pragma_push_options): Fix missing "GCC" in | |
596 | name of pragma in "junk" message. | |
597 | (handle_pragma_pop_options): Likewise. | |
598 | ||
599 | 2023-11-04 David Malcolm <dmalcolm@redhat.com> | |
600 | ||
601 | * c-common.cc: Update for changes to diagnostic_context. | |
602 | * c-indentation.cc: Likewise. | |
603 | * c-opts.cc: Likewise. | |
604 | * c-warn.cc: Likewise. | |
605 | ||
c73d2d49 GA |
606 | 2023-11-01 Martin Uecker <uecker@tugraz.at> |
607 | ||
608 | PR c/71219 | |
609 | * c.opt (Walloc-size): New option. | |
610 | ||
eac0917b GA |
611 | 2023-10-31 David Malcolm <dmalcolm@redhat.com> |
612 | ||
613 | * c-warn.cc (warn_for_multistatement_macros): Update for removal | |
614 | of MACRO_MAP_EXPANSION_POINT_LOCATION. | |
615 | ||
7f974c5f GA |
616 | 2023-10-27 Lewis Hyatt <lhyatt@gmail.com> |
617 | ||
618 | PR preprocessor/87299 | |
619 | * c-pragma.cc (init_pragma): Register `#pragma GCC target' and | |
620 | related pragmas in preprocess-only mode, and enable early handling. | |
621 | (c_reset_target_pragmas): New function refactoring code from... | |
622 | (handle_pragma_reset_options): ...here. | |
623 | * c-pragma.h (c_reset_target_pragmas): Declare. | |
624 | ||
ecca503b GA |
625 | 2023-10-26 David Malcolm <dmalcolm@redhat.com> |
626 | ||
627 | * c-attribs.cc (c_common_attribute_table): Add | |
628 | "null_terminated_string_arg". | |
629 | (handle_null_terminated_string_arg_attribute): New. | |
630 | ||
9cf2e744 GA |
631 | 2023-10-23 Lewis Hyatt <lhyatt@gmail.com> |
632 | ||
633 | PR preprocessor/36887 | |
634 | * c-opts.cc (c_common_init_options): Pass new extra hash map | |
635 | argument to cpp_create_reader(). | |
636 | ||
6f684dd2 GA |
637 | 2023-10-20 Marek Polacek <polacek@redhat.com> |
638 | ||
639 | PR c/111884 | |
640 | * c-common.cc (c_common_get_alias_set): Return -1 for char8_t only | |
641 | in C++. | |
642 | ||
643 | 2023-10-20 Patrick Palka <ppalka@redhat.com> | |
644 | ||
645 | * c-warn.cc (check_address_or_pointer_of_packed_member): Handle | |
646 | type-dependent callee of CALL_EXPR. | |
647 | ||
648 | 2023-10-20 Alexandre Oliva <oliva@adacore.com> | |
649 | ||
650 | * c-attribs.cc (handle_expected_throw_attribute): New. | |
651 | (c_common_attribute_table): Add expected_throw. | |
652 | ||
c85f7481 GA |
653 | 2023-10-19 Lewis Hyatt <lhyatt@gmail.com> |
654 | ||
655 | PR c++/89038 | |
656 | * c-pragma.cc (handle_pragma_diagnostic_impl): Handle | |
657 | -Wunknown-pragmas during early processing. | |
658 | ||
d5cfabc6 GA |
659 | 2023-10-15 Jakub Jelinek <jakub@redhat.com> |
660 | ||
661 | PR tree-optimization/111800 | |
662 | * c-warn.cc (match_case_to_enum_1): Assert w.get_precision () | |
663 | is smaller or equal to WIDE_INT_MAX_INL_PRECISION rather than | |
664 | w.get_len () is smaller or equal to WIDE_INT_MAX_INL_ELTS. | |
665 | ||
f9ef2e6d GA |
666 | 2023-10-12 Jakub Jelinek <jakub@redhat.com> |
667 | ||
668 | PR c/102989 | |
669 | * c-warn.cc (match_case_to_enum_1): Use wi::to_wide just once instead | |
670 | of 3 times, assert get_len () is smaller than WIDE_INT_MAX_INL_ELTS. | |
671 | ||
41d1c9a9 GA |
672 | 2023-10-02 David Malcolm <dmalcolm@redhat.com> |
673 | ||
674 | * c-common.cc (maybe_add_include_fixit): Update for renaming of | |
675 | diagnostic_context's show_caret to m_source_printing.enabled. | |
676 | * c-opts.cc (c_common_init_options): Update for renaming of | |
677 | diagnostic_context's colorize_source_p to | |
678 | m_source_printing.colorize_source_p. | |
679 | ||
4907d220 GA |
680 | 2023-09-20 Jakub Jelinek <jakub@redhat.com> |
681 | ||
682 | PR c++/111392 | |
683 | * c-omp.cc (c_omp_directives): Add commented out groupprivate | |
684 | directive entry. | |
685 | ||
590a8bec GA |
686 | 2023-09-19 Ben Boeckel <ben.boeckel@kitware.com> |
687 | ||
688 | * c-opts.cc (c_common_handle_option): Add fdeps_file variable and | |
689 | -fdeps-format=, -fdeps-file=, and -fdeps-target= parsing. | |
690 | * c.opt: Add -fdeps-format=, -fdeps-file=, and -fdeps-target= | |
691 | flags. | |
692 | ||
693 | 2023-09-19 Javier Martinez <javier.martinez.bugzilla@gmail.com> | |
694 | ||
695 | * c-attribs.cc (handle_hot_attribute): remove warning on | |
696 | RECORD_TYPE and UNION_TYPE when in c_dialect_xx. | |
697 | (handle_cold_attribute): Likewise. | |
698 | ||
699 | 2023-09-19 Jakub Jelinek <jakub@redhat.com> | |
700 | ||
701 | * c-common.cc (c_common_signed_or_unsigned_type): Return INTEGER_TYPE | |
702 | for signed variant of unsigned _BitInt(1). | |
703 | ||
a134b6ce GA |
704 | 2023-09-06 Jakub Jelinek <jakub@redhat.com> |
705 | ||
706 | PR c/102989 | |
707 | * c-attribs.cc (type_valid_for_vector_size): Reject vector types | |
708 | with BITINT_TYPE elements even if they have mode precision and | |
709 | suitable size. | |
710 | ||
711 | 2023-09-06 Jakub Jelinek <jakub@redhat.com> | |
712 | ||
713 | PR c/102989 | |
714 | * c-common.cc (c_common_reswords): Add _BitInt as keyword. | |
715 | (unsafe_conversion_p): Handle BITINT_TYPE like INTEGER_TYPE. | |
716 | (c_common_signed_or_unsigned_type): Handle BITINT_TYPE. | |
717 | (c_common_truthvalue_conversion, c_common_get_alias_set, | |
718 | check_builtin_function_arguments): Handle BITINT_TYPE like | |
719 | INTEGER_TYPE. | |
720 | (sync_resolve_size): Add ORIG_FORMAT argument. If | |
721 | FETCH && !ORIG_FORMAT, type is BITINT_TYPE, return -1 if size isn't | |
722 | one of 1, 2, 4, 8 or 16 or if it is 16 but TImode is not supported. | |
723 | (atomic_bitint_fetch_using_cas_loop): New function. | |
724 | (resolve_overloaded_builtin): Adjust sync_resolve_size caller. If | |
725 | -1 is returned, use atomic_bitint_fetch_using_cas_loop to lower it. | |
726 | Formatting fix. | |
727 | (keyword_begins_type_specifier): Handle RID_BITINT. | |
728 | * c-common.h (enum rid): Add RID_BITINT enumerator. | |
729 | * c-cppbuiltin.cc (c_cpp_builtins): For C call | |
730 | targetm.c.bitint_type_info and predefine __BITINT_MAXWIDTH__ | |
731 | and for -fbuilding-libgcc also __LIBGCC_BITINT_LIMB_WIDTH__ and | |
732 | __LIBGCC_BITINT_ORDER__ macros if _BitInt is supported. | |
733 | * c-lex.cc (interpret_integer): Handle CPP_N_BITINT. | |
734 | * c-pretty-print.cc (c_pretty_printer::simple_type_specifier, | |
735 | c_pretty_printer::direct_abstract_declarator, | |
736 | c_pretty_printer::direct_declarator, c_pretty_printer::declarator): | |
737 | Handle BITINT_TYPE. | |
738 | (pp_c_integer_constant): Handle printing of large precision wide_ints | |
739 | which would buffer overflow digit_buffer. | |
740 | * c-warn.cc (conversion_warning, warnings_for_convert_and_check, | |
741 | warnings_for_convert_and_check): Handle BITINT_TYPE like | |
742 | INTEGER_TYPE. | |
743 | ||
744 | 2023-09-06 Jakub Jelinek <jakub@redhat.com> | |
745 | ||
746 | PR c/102989 | |
747 | * c-ubsan.cc (ubsan_instrument_shift): Use UBSAN_PRINT_FORCE_INT | |
748 | for type0 type descriptor. | |
749 | ||
750 | 2023-09-06 Jakub Jelinek <jakub@redhat.com> | |
751 | ||
752 | * c-lex.cc (interpret_float): For C diagnostics on FN and FNx suffixes | |
753 | append " before C2X" to diagnostics text and follow behavior of | |
754 | pedwarn_c11. | |
755 | ||
80907b03 GA |
756 | 2023-09-01 Jakub Jelinek <jakub@redhat.com> |
757 | ||
758 | PR c++/111069 | |
759 | * c-opts.cc (c_common_post_options): Change latest_abi_version to 19. | |
760 | ||
65c36ecc GA |
761 | 2023-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
762 | ||
763 | * c.opt: Change spelling to macOS. | |
764 | ||
765 | 2023-08-31 Richard Biener <rguenther@suse.de> | |
766 | ||
767 | PR middle-end/111253 | |
768 | * c-pretty-print.cc (c_pretty_printer::primary_expression): | |
769 | Only dump gimple_assign_single_p SSA def RHS. | |
770 | ||
b8863640 GA |
771 | 2023-08-25 Sandra Loosemore <sandra@codesourcery.com> |
772 | ||
773 | * c-common.h (c_omp_check_loop_binding_exprs): Declare. | |
774 | * c-omp.cc: Include tree-iterator.h. | |
775 | (find_binding_in_body): New. | |
776 | (check_loop_binding_expr_r): New. | |
777 | (LOCATION_OR): New. | |
778 | (check_looop_binding_expr): New. | |
779 | (c_omp_check_loop_binding_exprs): New. | |
780 | ||
781 | 2023-08-25 Uros Bizjak <ubizjak@gmail.com> | |
782 | ||
783 | * c-format.cc (read_any_format_width): | |
784 | Rename TRUE/FALSE to true/false. | |
785 | ||
a7593210 GA |
786 | 2023-08-20 Martin Uecker <uecker@tugraz.at> |
787 | ||
788 | * c-format.cc: Fix identation. | |
789 | ||
790 | 2023-08-20 Tomas Kalibera <tomas.kalibera@gmail.com> | |
791 | ||
792 | PR c/95130 | |
793 | * c-format.cc: skip default format for printf symbol if | |
794 | explicitly declared by prototype. | |
795 | ||
1eb2433f GA |
796 | 2023-08-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
797 | ||
798 | PR c/106537 | |
799 | * c.opt (Wcompare-distinct-pointer-types): New option. | |
800 | ||
3cc78cf2 GA |
801 | 2023-08-14 Jason Merrill <jason@redhat.com> |
802 | ||
803 | * c-cppbuiltin.cc (c_cpp_builtins): Adjust __cpp_concepts. | |
804 | ||
886afed6 GA |
805 | 2023-08-11 Jakub Jelinek <jakub@redhat.com> |
806 | ||
807 | * c-common.cc (c_common_reswords): Add __typeof_unqual | |
808 | and __typeof_unqual__ spellings of typeof_unqual. | |
809 | ||
810 | 2023-08-11 Martin Uecker <uecker@tugraz.at> | |
811 | ||
812 | PR c/84510 | |
813 | * c.opt: Enable warning for C and ObjC. | |
814 | ||
87b0749c GA |
815 | 2023-08-05 Martin Uecker <uecker@tugraz.at> |
816 | ||
817 | PR c/98536 | |
818 | * c-warn.cc (warn_parm_array_mismatch): Do not warn if more | |
819 | bounds are specified. | |
820 | ||
5b42ee2c GA |
821 | 2023-08-04 Tamar Christina <tamar.christina@arm.com> |
822 | ||
823 | * c-pragma.h (enum pragma_kind): Add PRAGMA_NOVECTOR. | |
824 | * c-pragma.cc (init_pragma): Use it. | |
825 | ||
cf58b896 GA |
826 | 2023-08-01 Lewis Hyatt <lhyatt@gmail.com> |
827 | ||
828 | * c-common.h (c_init_preprocess): Declare new function. | |
829 | * c-opts.cc (c_common_init): Call it. | |
830 | * c-lex.cc (cb_def_pragma): Add a comment. | |
831 | (get_token): New function wrapping cpp_get_token. | |
832 | (c_lex_with_flags): Use the new wrapper function to support | |
833 | obtaining tokens in preprocess_only mode. | |
834 | (lex_string): Likewise. | |
835 | * c-pragma.cc (pragma_diagnostic_lex_normal): Rename to... | |
836 | (pragma_diagnostic_lex): ...this. | |
837 | (pragma_diagnostic_lex_pp): Remove. | |
838 | (handle_pragma_diagnostic_impl): Call pragma_diagnostic_lex () in | |
839 | all modes. | |
840 | (c_pp_invoke_early_pragma_handler): Adapt to support pragma_lex () | |
841 | usage. | |
842 | * c-pragma.h (pragma_lex_discard_to_eol): Declare. | |
843 | ||
a2f31d79 GA |
844 | 2023-07-31 Hamza Mahfooz <someguy@effective-light.com> |
845 | ||
846 | PR c/65213 | |
847 | * c.opt (-Wmissing-variable-declarations): New option. | |
848 | ||
e2bf82d5 GA |
849 | 2023-07-20 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
850 | ||
851 | PR middle-end/77928 | |
852 | * c-common.cc (check_builtin_function_arguments): | |
853 | Handle BUILT_IN_ISEQSIG. | |
854 | ||
5158918a GA |
855 | 2023-07-05 Robin Dapp <rdapp@ventanamicro.com> |
856 | Juzhe-Zhong <juzhe.zhong@rivai.ai> | |
857 | ||
858 | * c-common.cc (c_common_type_for_mode): Use GET_MODE_PRECISION. | |
859 | ||
14bfda60 GA |
860 | 2023-06-29 Qing Zhao <qing.zhao@oracle.com> |
861 | ||
862 | PR c/77650 | |
863 | * c.opt: New option -Wflex-array-member-not-at-end. | |
864 | ||
5f590ee3 GA |
865 | 2023-06-28 Jason Merrill <jason@redhat.com> |
866 | ||
867 | PR c++/110344 | |
868 | * c-cppbuiltin.cc (c_cpp_builtins): Update __cpp_constexpr. | |
869 | ||
267e1fea GA |
870 | 2023-06-26 Richard Biener <rguenther@suse.de> |
871 | ||
872 | * c-common.cc (shorten_binary_op): Exit early for VECTOR_TYPE | |
873 | operations. | |
874 | ||
6f78df4c GA |
875 | 2023-06-23 Marek Polacek <polacek@redhat.com> |
876 | ||
877 | * c-common.h (cxx_dialect): Add cxx26 as a dialect. | |
878 | * c-opts.cc (set_std_cxx26): New. | |
879 | (c_common_handle_option): Set options when -std={c,gnu}++2{c,6} is | |
880 | enabled. | |
881 | (c_common_post_options): Adjust comments. | |
882 | * c.opt: Add options for -std=c++26, std=c++2c, -std=gnu++26, | |
883 | and -std=gnu++2c. | |
884 | (std=c++2b): Mark as Undocumented. | |
885 | (std=c++23): No longer Undocumented. | |
886 | ||
80e9ca0e GA |
887 | 2023-06-21 Alexander Monakov <amonakov@ispras.ru> |
888 | ||
889 | * c-gimplify.cc (fma_supported_p): New helper. | |
890 | (c_gimplify_expr) [PLUS_EXPR, MINUS_EXPR]: Implement FMA | |
891 | contraction. | |
892 | ||
f10a4ce0 GA |
893 | 2023-06-16 Alex Coplan <alex.coplan@arm.com> |
894 | ||
895 | * c.opt (Welaborated-enum-base): New. | |
896 | ||
532fb120 GA |
897 | 2023-06-13 David Malcolm <dmalcolm@redhat.com> |
898 | ||
899 | PR c/84890 | |
900 | * known-headers.cc | |
901 | (suggest_missing_header::~suggest_missing_header): Reword note to | |
902 | avoid negative tone of "forgetting". | |
903 | ||
8c5b1365 GA |
904 | 2023-06-07 Jason Merrill <jason@redhat.com> |
905 | ||
906 | PR c++/58487 | |
907 | * c.opt: Add -Wnrvo. | |
908 | ||
6e6bb373 GA |
909 | 2023-05-26 Martin Uecker <uecker@tugraz.at> |
910 | ||
911 | * c-attribs.cc (build_attr_access_from_parms): Split loop to first | |
912 | record all parameters. | |
913 | ||
b2776076 GA |
914 | 2023-05-18 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
915 | ||
916 | * c-ada-spec.cc (has_static_fields): Use _P() defines from tree.h. | |
917 | (dump_ada_declaration): Ditto. | |
918 | (dump_ada_structure): Ditto. | |
919 | * c-common.cc (unsafe_conversion_p): Ditto. | |
920 | (shorten_compare): Ditto. | |
921 | (pointer_int_sum): Ditto. | |
922 | (c_common_truthvalue_conversion): Ditto. | |
923 | (scalar_to_vector): Ditto. | |
924 | * c-common.h (gnu_vector_type_p): Ditto. | |
925 | * c-omp.cc (c_omp_depend_t_p): Ditto. | |
926 | (c_omp_split_clauses): Ditto. | |
927 | * c-ubsan.cc (ubsan_instrument_division): Ditto. | |
928 | * c-warn.cc (conversion_warning): Ditto. | |
929 | (warnings_for_convert_and_check): Ditto. | |
930 | ||
ff2dcddf GA |
931 | 2023-05-18 Joseph Myers <joseph@codesourcery.com> |
932 | ||
933 | * c-format.cc (print_char_table): Handle %B like %b. | |
934 | ||
3427b51b GA |
935 | 2023-05-15 Joseph Myers <joseph@codesourcery.com> |
936 | ||
937 | * c-lex.cc (c_common_has_attribute): Use 202311 as | |
938 | __has_c_attribute return for all C2x attributes. | |
939 | ||
940 | 2023-05-15 Patrick Palka <ppalka@redhat.com> | |
941 | ||
942 | * c-cppbuiltin.cc (c_cpp_builtins): Predefine __cpp_auto_cast | |
943 | for C++23. | |
944 | ||
1fc8da95 GA |
945 | 2023-05-01 Marek Polacek <polacek@redhat.com> |
946 | ||
947 | * c-ubsan.cc (ubsan_maybe_instrument_array_ref): Don't copy_node. | |
948 | ||
579cdc1e GA |
949 | 2023-03-28 David Malcolm <dmalcolm@redhat.com> |
950 | ||
951 | PR c/107002 | |
952 | * c-common.h (check_for_xor_used_as_pow): Add "rhs_loc" param. | |
953 | * c-warn.cc (check_for_xor_used_as_pow): Add "rhs_loc" param. | |
954 | Reject cases where involving macro expansions. | |
955 | ||
956 | 2023-03-28 Jason Merrill <jason@redhat.com> | |
957 | ||
958 | PR c++/107163 | |
959 | * c-common.cc (verify_tree): Don't use sequenced handling | |
960 | for COMPONENT_REF. | |
961 | ||
454a4d50 GA |
962 | 2023-03-17 Jakub Jelinek <jakub@redhat.com> |
963 | ||
964 | PR c/109151 | |
965 | * c-ubsan.cc (ubsan_instrument_division): Handle all scalar integral | |
966 | types rather than just INTEGER_TYPE. | |
967 | ||
c8065441 GA |
968 | 2023-03-10 Marek Polacek <polacek@redhat.com> |
969 | ||
970 | PR sanitizer/108060 | |
971 | PR sanitizer/109050 | |
972 | * c-gimplify.cc (ubsan_walk_array_refs_r): For a MODIFY_EXPR, instrument | |
973 | the RHS before the LHS. | |
974 | ||
2858bf16 GA |
975 | 2023-03-04 Jakub Jelinek <jakub@redhat.com> |
976 | ||
977 | PR c/107465 | |
978 | * c-warn.cc (warn_for_sign_compare): Don't warn for unset bits | |
979 | above innermost zero extension of BIT_NOT_EXPR result. | |
980 | ||
981 | 2023-03-04 Jakub Jelinek <jakub@redhat.com> | |
982 | ||
983 | PR c/107465 | |
984 | * c-warn.cc (warn_for_sign_compare): If c_common_get_narrower | |
985 | doesn't return a narrower result, use TYPE_UNSIGNED to set unsignedp0 | |
986 | and unsignedp1. For the one BIT_NOT_EXPR case vs. one without, | |
987 | only check for constant in the non-BIT_NOT_EXPR operand, use std::swap | |
988 | to simplify the code, only warn if BIT_NOT_EXPR operand is extended | |
989 | from narrower unsigned, fix up computation of mask for the constant | |
990 | cases and for unsigned other operand case handle differently | |
991 | BIT_NOT_EXPR result being sign vs. zero extended. | |
992 | ||
993 | 2023-03-04 Jakub Jelinek <jakub@redhat.com> | |
994 | ||
995 | PR c/107846 | |
996 | * c-warn.cc: Include langhooks.h. | |
997 | (maybe_warn_shift_overflow): Set type0 to what TREE_TYPE (op0) | |
998 | promotes to rather than TREE_TYPE (op0) itself, if TREE_TYPE (op0) | |
999 | is narrower than type0 and unsigned, use wi::min_precision with | |
1000 | UNSIGNED and fold_convert op0 to type0 before emitting the warning. | |
1001 | ||
2aa6673e GA |
1002 | 2023-03-03 Alexandre Oliva <oliva@adacore.com> |
1003 | ||
1004 | * c-common.cc (c_common_nodes_and_builtins): Take | |
1005 | wchar_type_node for wint_type_node when aliased. | |
1006 | (c_stddef_cpp_builtins): Define __WINT_TYPE__, when aliased to | |
1007 | wchar_t, to the underlying type rather than wchar_t in | |
1008 | non-C++. | |
1009 | * c-cppbuiltin.cc (type_suffix): Handle wchar_type_node. | |
1010 | ||
6f9e2f14 GA |
1011 | 2023-02-28 Marek Polacek <polacek@redhat.com> |
1012 | ||
1013 | PR c++/107938 | |
1014 | * c-warn.cc (check_address_or_pointer_of_packed_member): Check | |
1015 | POINTER_TYPE_P. | |
1016 | ||
1017 | 2023-02-28 Jakub Jelinek <jakub@redhat.com> | |
1018 | ||
1019 | PR sanitizer/108894 | |
1020 | * c-common.h (c_strict_flex_array_level_of): Declare. | |
1021 | * c-common.cc (c_strict_flex_array_level_of): New function, | |
1022 | moved and renamed from c-decl.cc's strict_flex_array_level_of. | |
1023 | * c-ubsan.cc (ubsan_instrument_bounds): Fix comment typo. For | |
1024 | C check c_strict_flex_array_level_of whether a trailing array | |
1025 | should be treated as flexible member like. Handle C [0] arrays. | |
1026 | Add 1 + index_off_by_one rather than index_off_by_one to bounds | |
1027 | and use tree_int_cst_lt rather than tree_int_cst_le for idx vs. | |
1028 | bounds comparison. | |
1029 | ||
e2b20ed3 GA |
1030 | 2023-02-23 Jakub Jelinek <jakub@redhat.com> |
1031 | ||
1032 | PR translation/108890 | |
1033 | * c.opt (fcontracts): Fix description. | |
1034 | ||
b6f98991 GA |
1035 | 2023-02-22 Marek Polacek <polacek@redhat.com> |
1036 | ||
1037 | PR c/108880 | |
1038 | * c-gimplify.cc (c_genericize_control_stmt) <case STATEMENT_LIST>: Pass | |
1039 | pset to walk_tree_1. | |
1040 | (c_genericize): Call walk_tree with an explicit pset. | |
1041 | ||
0263e9d5 GA |
1042 | 2023-02-18 Martin Uecker <uecker@tugraz.at> |
1043 | ||
1044 | PR c/105660 | |
1045 | * c-attribs.cc (append_access_attr): Use order of arguments when | |
1046 | construction string. | |
1047 | (append_access_attr_idxs): Rename and make static. | |
1048 | * c-warn.cc (warn_parm_array_mismatch): Add assertion. | |
1049 | ||
88cc4495 GA |
1050 | 2023-02-16 Patrick Palka <ppalka@redhat.com> |
1051 | ||
1052 | * c-common.h: Mechanically drop static from static inline | |
1053 | functions via s/^static inline/inline/g. | |
1054 | ||
0a251e74 GA |
1055 | 2023-02-01 Jason Merrill <jason@redhat.com> |
1056 | ||
1057 | * c.opt: Add -Wno-changes-meaning. | |
1058 | ||
317525b0 GA |
1059 | 2023-01-31 Marek Polacek <polacek@redhat.com> |
1060 | ||
1061 | PR c++/107593 | |
1062 | PR c++/108597 | |
1063 | * c-common.h (instantiation_dependent_expression_p): Declare. | |
1064 | * c-warn.cc (warn_duplicated_cond_add_or_warn): If the condition | |
1065 | is dependent, invalidate the chain. | |
1066 | ||
2371d100 GA |
1067 | 2023-01-26 Marek Polacek <polacek@redhat.com> |
1068 | ||
1069 | PR c++/105300 | |
1070 | * c-pragma.cc (handle_pragma_message): Warn for CPP_STRING_USERDEF. | |
1071 | ||
9f98cfa5 GA |
1072 | 2023-01-18 Marek Polacek <polacek@redhat.com> |
1073 | ||
1074 | PR c/108424 | |
1075 | * c-common.cc (check_case_value): Check INTEGRAL_TYPE_P. | |
1076 | ||
5013c3bb GA |
1077 | 2023-01-14 Jakub Jelinek <jakub@redhat.com> |
1078 | ||
1079 | PR c++/108365 | |
1080 | * c-common.h (may_shorten_divmod): New static inline function. | |
1081 | ||
1082 | 2023-01-13 Eric Botcazou <ebotcazou@adacore.com> | |
1083 | ||
1084 | * c-ada-spec.cc (is_float32): New function. | |
1085 | (is_float64): Likewise. | |
1086 | (is_float128): Tweak. | |
1087 | (dump_ada_node) <REAL_TYPE>: Call them to recognize more types. | |
1088 | ||
81ed98bc GA |
1089 | 2023-01-12 Lewis Hyatt <lhyatt@gmail.com> |
1090 | ||
1091 | PR preprocessor/108244 | |
1092 | * c-pragma.cc (c_register_pragma_1): Don't attempt to register any | |
1093 | deferred pragmas if -fdirectives-only. | |
1094 | (init_pragma): Likewise. | |
1095 | ||
84723aca GA |
1096 | 2023-01-09 Martin Liska <mliska@suse.cz> |
1097 | ||
1098 | PR c/107993 | |
1099 | * c-attribs.cc (handle_target_clones_attribute): Check for | |
1100 | string constant for all target_clone attribute values. | |
1101 | ||
0f8fbb57 GA |
1102 | 2023-01-03 Florian Weimer <fweimer@redhat.com> |
1103 | ||
1104 | * c-cppbuiltin.cc (c_cpp_builtins): Define | |
1105 | __LIBGCC_DWARF_CIE_DATA_ALIGNMENT__. | |
1106 | ||
1107 | 2023-01-03 Florian Weimer <fweimer@redhat.com> | |
1108 | ||
1109 | Revert: | |
1110 | 2023-01-03 Florian Weimer <fweimer@redhat.com> | |
1111 | ||
1112 | * c-cppbuiltin.cc (__LIBGCC_DWARF_REG_SIZES_CONSTANT__): | |
1113 | Define if constant is known. | |
1114 | ||
1115 | 2023-01-03 Florian Weimer <fweimer@redhat.com> | |
1116 | ||
1117 | Revert: | |
1118 | 2023-01-02 Florian Weimer <fweimer@redhat.com> | |
1119 | ||
1120 | * c-cppbuiltin.cc (c_cpp_builtins): Define | |
1121 | __LIBGCC_DWARF_CIE_DATA_ALIGNMENT__. | |
1122 | ||
fee53a31 GA |
1123 | 2023-01-02 Florian Weimer <fweimer@redhat.com> |
1124 | ||
1125 | * c-cppbuiltin.cc (c_cpp_builtins): Define | |
1126 | __LIBGCC_DWARF_CIE_DATA_ALIGNMENT__. | |
1127 | ||
1128 | 2023-01-02 Florian Weimer <fweimer@redhat.com> | |
1129 | ||
1130 | * c-cppbuiltin.cc (__LIBGCC_DWARF_REG_SIZES_CONSTANT__): | |
1131 | Define if constant is known. | |
1132 | ||
d2ef2327 GA |
1133 | 2022-12-19 Marek Polacek <polacek@redhat.com> |
1134 | ||
1135 | PR c/98487 | |
1136 | * c-format.cc (check_function_format): Use get_attribute_name. | |
1137 | ||
5fb1e674 GA |
1138 | 2022-12-16 Qing Zhao <qing.zhao@oracle.com> |
1139 | ||
1140 | * c.opt (Wstrict-flex-arrays): New option. | |
1141 | ||
596dbfff GA |
1142 | 2022-12-02 Andrew MacLeod <amacleod@redhat.com> |
1143 | ||
1144 | * c-attribs.cc (handle_deprecated_attribute): Use type when | |
1145 | using TYPE_NAME. | |
1146 | ||
b35680ec GA |
1147 | 2022-12-02 Jakub Jelinek <jakub@redhat.com> |
1148 | ||
1149 | PR c++/84469 | |
1150 | * c-omp.cc (c_omp_is_loop_iterator): For range for with structured | |
1151 | binding return TREE_VEC_LENGTH (d->declv) even if decl is equal | |
1152 | to any of the structured binding decls. | |
1153 | ||
6eea85a9 GA |
1154 | 2022-11-30 Iskander Shakirzyanov <iskander@ispras.ru> |
1155 | Franz Sirl <Franz.Sirl-kernel@lauterbach.com> | |
1156 | ||
1157 | PR driver/107787 | |
1158 | * c-common.cc (fold_offsetof, | |
1159 | convert_vector_to_array_for_subscript): Use OPT_Warray_bounds_ | |
1160 | instead of OPT_Warray_bounds. | |
1161 | ||
9a1b4f1d GA |
1162 | 2022-11-24 Jakub Jelinek <jakub@redhat.com> |
1163 | ||
1164 | * c.opt (fcontract-role=, fcontract-semantic=): Terminate descriptions | |
1165 | with a dot. | |
1166 | ||
8761284f GA |
1167 | 2022-11-23 Andrew Pinski <apinski@marvell.com> |
1168 | Jakub Jelinek <jakub@redhat.com> | |
1169 | ||
1170 | PR c/107127 | |
1171 | * c-gimplify.cc (c_genericize): Use walk_tree_without_duplicates | |
1172 | instead of walk_tree for c_genericize_control_r. | |
1173 | ||
1174 | 2022-11-23 Jakub Jelinek <jakub@redhat.com> | |
1175 | ||
1176 | * c.opt (fcontract-assumption-mode=, fcontract-continuation-mode=, | |
1177 | fcontract-role=, fcontract-semantic=): Add RejectNegative. | |
1178 | (fcontract-build-level=): Terminate description with dot. | |
1179 | ||
fb98ede8 GA |
1180 | 2022-11-19 Jakub Jelinek <jakub@redhat.com> |
1181 | ||
1182 | * c-cppbuiltin.cc (c_cpp_builtins): Bump __cpp_constexpr | |
1183 | value from 202207L to 202211L. | |
1184 | ||
1185 | 2022-11-19 Jeff Chapman II <jchapman@lock3software.com> | |
1186 | Andrew Sutton <asutton@lock3software.com> | |
1187 | Andrew Marmaduke <amarmaduke@lock3software.com> | |
1188 | Michael Lopez <mlopez@lock3software.com> | |
1189 | Jason Merrill <jason@redhat.com> | |
1190 | ||
1191 | * c.opt: Add contracts flags. | |
1192 | * c-cppbuiltin.cc (c_cpp_builtins): Add contracts feature-test | |
1193 | macros. | |
1194 | ||
80909529 GA |
1195 | 2022-11-16 Marek Polacek <polacek@redhat.com> |
1196 | ||
1197 | PR c++/106649 | |
1198 | * c-cppbuiltin.cc (c_cpp_builtins): Update value of __cpp_constexpr for | |
1199 | C++23. | |
1200 | * c-opts.cc (c_common_post_options): Set warn_invalid_constexpr | |
1201 | depending on cxx_dialect. | |
1202 | * c.opt (Winvalid-constexpr): New option. | |
1203 | ||
1204 | 2022-11-16 Jakub Jelinek <jakub@redhat.com> | |
1205 | ||
1206 | * c-common.def (CONCEPT_DECL): New tree, moved here from | |
1207 | cp-tree.def. | |
1208 | * c-common.cc (c_common_init_ts): Handle CONCEPT_DECL. | |
1209 | * c-attribs.cc (handle_deprecated_attribute): Allow deprecated | |
1210 | attribute on CONCEPT_DECL. | |
1211 | ||
cdc34229 GA |
1212 | 2022-11-15 Lewis Hyatt <lhyatt@gmail.com> |
1213 | ||
1214 | * c-opts.cc (c_finish_options): Use special_fname_builtin () rather | |
1215 | than a hard-coded string. | |
1216 | ||
83d400bd GA |
1217 | 2022-11-15 Jakub Jelinek <jakub@redhat.com> |
1218 | ||
1219 | * c-cppbuiltin.cc (c_cpp_builtins): Bump C++23 | |
1220 | __cpp_multidimensional_subscript macro value to 202211L. | |
1221 | ||
1222 | 2022-11-15 Patrick Palka <ppalka@redhat.com> | |
1223 | ||
1224 | PR c++/107638 | |
1225 | * c-lex.cc (c_common_has_attribute): Return 1 for init_priority | |
1226 | iff SUPPORTS_INIT_PRIORITY. | |
1227 | ||
1228 | 2022-11-14 Martin Liska <mliska@suse.cz> | |
1229 | ||
1230 | Revert: | |
1231 | 2022-11-09 Martin Liska <mliska@suse.cz> | |
1232 | ||
1233 | * c-target.def: Port to RST. | |
1234 | ||
30d77d49 GA |
1235 | 2022-11-12 Joseph Myers <joseph@codesourcery.com> |
1236 | ||
1237 | * c-common.cc (c_common_reswords): Use D_C2X instead of D_CXXONLY. | |
1238 | ||
5b6ce16a GA |
1239 | 2022-11-11 Jonathan Wakely <jwakely@redhat.com> |
1240 | ||
1241 | PR c/85487 | |
1242 | * c-pragma.cc (handle_pragma_ignore): New function. | |
1243 | (init_pragma): Register region and endregion pragmas. | |
1244 | ||
1cdfd0e5 GA |
1245 | 2022-11-09 Martin Liska <mliska@suse.cz> |
1246 | ||
1247 | * c-target.def: Port to RST. | |
1248 | ||
05788e9b GA |
1249 | 2022-11-05 Lewis Hyatt <lhyatt@gmail.com> |
1250 | ||
1251 | PR preprocessor/55971 | |
1252 | * c-ppoutput.cc (adjust_for_newlines): Update comment. | |
1253 | ||
d29260ce GA |
1254 | 2022-11-03 Jason Merrill <jason@redhat.com> |
1255 | ||
1256 | * c-opts.cc (c_common_post_options): -fconcepts no longer implies | |
1257 | -fconcepts-ts before C++20. | |
1258 | ||
3055829a GA |
1259 | 2022-10-28 Joseph Myers <joseph@codesourcery.com> |
1260 | ||
1261 | * c-common.cc (def_fn_type): Call build_function_type for | |
1262 | zero-argument variable-argument function. | |
1263 | (c_common_nodes_and_builtins): Build default_function_type with | |
1264 | build_function_type. | |
1265 | * c.opt (fallow-parameterless-variadic-functions): Mark as ignored | |
1266 | option. | |
1267 | ||
1268 | 2022-10-28 Joseph Myers <joseph@codesourcery.com> | |
1269 | ||
1270 | PR c/61469 | |
1271 | * c-common.h (ENUM_UNDERLYING_TYPE, ENUM_FIXED_UNDERLYING_TYPE_P): | |
1272 | New. Moved from cp/cp-tree.h. | |
1273 | * c-warn.cc (warnings_for_convert_and_check): Do not consider | |
1274 | conversions to enum with underlying type bool to overflow. | |
1275 | ||
486a5037 GA |
1276 | 2022-10-26 Marek Polacek <polacek@redhat.com> |
1277 | ||
1278 | PR c++/106393 | |
1279 | * c.opt (Wdangling-reference): New. | |
1280 | ||
87f9c4a4 GA |
1281 | 2022-10-19 Joseph Myers <joseph@codesourcery.com> |
1282 | ||
1283 | * c-format.h (enum format_lengths): Add FMT_LEN_w8, FMT_LEN_w16, | |
1284 | FMT_LEN_w32, FMT_LEN_w64, FMT_LEN_wf8, FMT_LEN_wf16, FMT_LEN_wf32 | |
1285 | and FMT_LEN_wf64. | |
1286 | (NOARGUMENTS, NOLENGTHS): Update definitions. | |
1287 | (T_I8, T2X_I8, T_I16, T2X_I16, T_I32, T2X_I32, T_I64, T2X_I64) | |
1288 | (T_U8, T2X_U8, T_U16, T2X_U16, T_U32, T2X_U32, T_U64, T2X_U64) | |
1289 | (T_IF8, T2X_IF8, T_IF16, T2X_IF16, T_IF32, T2X_IF32, T_IF64) | |
1290 | (T2X_IF64, T_UF8, T2X_UF8, T_UF16, T2X_UF16, T_UF32, T2X_UF32) | |
1291 | (T_UF64, T2X_UF64): New macros. | |
1292 | * c-format.cc (printf_length_specs, scanf_length_specs): Add wN | |
1293 | and wfN length modifiers. | |
1294 | (print_char_table, scan_char_table): Add entries using wN and wfN | |
1295 | length modifiers. | |
1296 | ||
21de009f GA |
1297 | 2022-10-18 Joseph Myers <joseph@codesourcery.com> |
1298 | ||
1299 | PR c/36113 | |
1300 | * c-common.cc (c_common_type_for_size): Add fallback to | |
1301 | widest_unsigned_literal_type_node or | |
1302 | widest_integer_literal_type_node for precision that may not | |
1303 | exactly match the precision of those types. | |
1304 | ||
baeec7cc GA |
1305 | 2022-10-14 Jakub Jelinek <jakub@redhat.com> |
1306 | ||
1307 | * c-cppbuiltin.cc (c_cpp_builtins): If bfloat16_type_node, | |
1308 | predefine __BFLT16_*__ macros and for C++23 also | |
1309 | __STDCPP_BFLOAT16_T__. Predefine bfloat16_type_node related | |
1310 | macros for -fbuilding-libgcc. | |
1311 | * c-lex.cc (interpret_float): Handle CPP_N_BFLOAT16. | |
1312 | ||
1313 | 2022-10-14 Jakub Jelinek <jakub@redhat.com> | |
1314 | ||
1315 | PR middle-end/323 | |
1316 | PR c++/107097 | |
1317 | * c-common.def (EXCESS_PRECISION_EXPR): Remove comment part about | |
1318 | the tree being specific to C/ObjC. | |
1319 | * c-opts.cc (c_common_post_options): Handle flag_excess_precision | |
1320 | in C++ the same as in C. | |
1321 | * c-lex.cc (interpret_float): Set const_type to excess_precision () | |
1322 | even for C++. | |
1323 | ||
621a911d GA |
1324 | 2022-10-13 Joseph Myers <joseph@codesourcery.com> |
1325 | ||
1326 | * c-cppbuiltin.cc (builtin_define_float_constants): Do not use | |
1327 | value 2 for *_IS_IEC_60559. | |
1328 | ||
781f477a GA |
1329 | 2022-10-12 Lewis Hyatt <lhyatt@gmail.com> |
1330 | ||
1331 | PR preprocessor/60014 | |
1332 | PR preprocessor/60723 | |
1333 | * c-ppoutput.cc (class token_streamer): Remove member | |
1334 | line_marker_emitted to... | |
1335 | (token_streamer::stream): ...a local variable here. Set | |
1336 | print.prev_was_system_token on all code paths. | |
1337 | ||
27bfe54e GA |
1338 | 2022-10-10 Nathan Sidwell <nathan@acm.org> |
1339 | ||
1340 | * c-opts.cc (c_common_post_options): Bump abi to 18. | |
1341 | ||
1342 | 2022-10-10 Marek Polacek <polacek@redhat.com> | |
1343 | ||
1344 | PR c++/106937 | |
1345 | * c-pretty-print.cc (pp_c_specifier_qualifier_list): Print only GNU | |
1346 | attributes here. | |
1347 | (c_pretty_printer::direct_abstract_declarator): Print the standard [[]] | |
1348 | attributes here. | |
1349 | (pp_c_attributes): Remove. | |
1350 | (pp_c_attributes_display): Print the [[]] form if appropriate. Use | |
1351 | get_attribute_name. Don't print a trailing space when printing the | |
1352 | [[]] form. | |
1353 | * c-pretty-print.h (pp_c_attributes): Remove. | |
1354 | ||
9ff6c33e GA |
1355 | 2022-10-07 Qing Zhao <qing.zhao@oracle.com> |
1356 | ||
1357 | * c-attribs.cc (handle_strict_flex_array_attribute): New function. | |
1358 | (c_common_attribute_table): New item for strict_flex_array. | |
1359 | * c.opt: (fstrict-flex-arrays): New option. | |
1360 | (fstrict-flex-arrays=): New option. | |
1361 | ||
1362 | 2022-10-07 Martin Liska <mliska@suse.cz> | |
1363 | ||
1364 | * name-hint.h: Use std::move. | |
1365 | ||
1366 | 2022-10-07 Jakub Jelinek <jakub@redhat.com> | |
1367 | ||
1368 | * c-common.cc (attribute_fallthrough_p): Lookup fallthrough attribute | |
1369 | only in gnu namespace or as standard attribute, treat fallthrough | |
1370 | attributes in other namespaces like any other unknown attribute. | |
1371 | ||
629d04d3 GA |
1372 | 2022-10-06 Joseph Myers <joseph@codesourcery.com> |
1373 | ||
1374 | * c-common.cc (c_common_reswords): Mark typeof as D_EXT11. Add | |
1375 | typeof_unqual. | |
1376 | * c-common.h (enum rid): Add RID_TYPEOF_UNQUAL. | |
1377 | (D_EXT11): New macro. Values of subsequent macros updated. | |
1378 | ||
1379 | 2022-10-06 Jakub Jelinek <jakub@redhat.com> | |
1380 | ||
1381 | PR c++/106654 | |
1382 | * c-attribs.cc (handle_assume_attribute): New function. | |
1383 | (c_common_attribute_table): Add entry for assume attribute. | |
1384 | * c-lex.cc (c_common_has_attribute): Handle | |
1385 | __have_cpp_attribute (assume). | |
1386 | ||
85872a69 GA |
1387 | 2022-10-04 Jakub Jelinek <jakub@redhat.com> |
1388 | ||
1389 | * c-omp.cc (c_omp_directives): Uncomment begin declare target | |
1390 | entry. | |
1391 | ||
69fd6dcc GA |
1392 | 2022-10-03 Patrick Palka <ppalka@redhat.com> |
1393 | ||
1394 | * c-common.cc (c_common_reswords): Use RID_IS_SAME instead of | |
1395 | RID_IS_SAME_AS. | |
1396 | ||
1397 | 2022-10-03 Joseph Myers <joseph@codesourcery.com> | |
1398 | ||
1399 | * c-cppbuiltin.cc (builtin_define_float_constants): Do not | |
1400 | special-case __*_EPSILON__ setting for IBM long double for C2x. | |
1401 | ||
3a221b73 GA |
1402 | 2022-09-30 Patrick Palka <ppalka@redhat.com> |
1403 | ||
1404 | * c-common.cc (c_common_reswords): Use cp/cp-trait.def to handle | |
1405 | C++ traits. | |
1406 | * c-common.h (enum rid): Likewise. | |
1407 | ||
bbdcdf5c GA |
1408 | 2022-09-29 Joseph Myers <joseph@codesourcery.com> |
1409 | ||
1410 | * c-lex.cc (c_common_has_attribute): Handle noreturn attribute for | |
1411 | C. | |
1412 | ||
1413 | 2022-09-29 Patrick Palka <ppalka@redhat.com> | |
1414 | ||
1415 | * c-common.cc (c_common_reswords): Add __remove_cv, | |
1416 | __remove_reference and __remove_cvref. | |
1417 | * c-common.h (enum rid): Add RID_REMOVE_CV, RID_REMOVE_REFERENCE | |
1418 | and RID_REMOVE_CVREF. | |
1419 | ||
1f16a020 GA |
1420 | 2022-09-27 Marek Polacek <polacek@redhat.com> |
1421 | ||
1422 | PR c++/101165 | |
1423 | PR c++/106882 | |
1424 | * c-cppbuiltin.cc (c_cpp_builtins): Define __cpp_implicit_move. | |
1425 | ||
1426 | 2022-09-27 Marek Polacek <polacek@redhat.com> | |
1427 | ||
1428 | * c-format.cc (c_keywords): Drop nothrow. | |
1429 | ||
1430 | 2022-09-27 Jakub Jelinek <jakub@redhat.com> | |
1431 | ||
1432 | PR c++/106651 | |
1433 | * c-cppbuiltin.cc (c_cpp_builtins): Predefine | |
1434 | __cpp_static_call_operator=202207L for C++23. | |
1435 | ||
1436 | 2022-09-27 Jakub Jelinek <jakub@redhat.com> | |
1437 | ||
1438 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ASSUME, | |
1439 | PRAGMA_OMP_ASSUMES and PRAGMA_OMP_BEGIN. Rename | |
1440 | PRAGMA_OMP_END_DECLARE_TARGET to PRAGMA_OMP_END. | |
1441 | * c-pragma.cc (omp_pragmas): Add assumes and begin. | |
1442 | For end rename PRAGMA_OMP_END_DECLARE_TARGET to PRAGMA_OMP_END. | |
1443 | (omp_pragmas_simd): Add assume. | |
1444 | * c-common.h (c_omp_directives): Declare. | |
1445 | * c-omp.cc (omp_directives): Rename to ... | |
1446 | (c_omp_directives): ... this. No longer static. Uncomment | |
1447 | assume, assumes, begin assumes and end assumes entries. | |
1448 | In end declare target entry rename PRAGMA_OMP_END_DECLARE_TARGET | |
1449 | to PRAGMA_OMP_END. | |
1450 | (c_omp_categorize_directive): Adjust for omp_directives to | |
1451 | c_omp_directives renaming. | |
1452 | ||
1453 | 2022-09-27 Jakub Jelinek <jakub@redhat.com> | |
1454 | ||
1455 | PR c++/106652 | |
1456 | PR c++/85518 | |
1457 | * c-common.cc (c_common_reswords): Change _Float{16,32,64,128} and | |
1458 | _Float{32,64,128}x flags from D_CONLY to 0. | |
1459 | (shorten_binary_op): Punt if common_type returns error_mark_node. | |
1460 | (shorten_compare): Likewise. | |
1461 | (c_common_nodes_and_builtins): For C++ record _Float{16,32,64,128} | |
1462 | and _Float{32,64,128}x builtin types if available. For C++ | |
1463 | clear float128t_type_node. | |
1464 | * c-cppbuiltin.cc (c_cpp_builtins): Predefine | |
1465 | __STDCPP_FLOAT{16,32,64,128}_T__ for C++23 if supported. | |
1466 | * c-lex.cc (interpret_float): For q/Q suffixes prefer | |
1467 | float128t_type_node over float128_type_node. Allow | |
1468 | {f,F}{16,32,64,128} suffixes for C++ if supported with pedwarn | |
1469 | for C++20 and older. Allow {f,F}{32,64,128}x suffixes for C++ | |
1470 | with pedwarn. Don't call excess_precision_type for C++. | |
1471 | ||
220c4d8e GA |
1472 | 2022-09-26 Marek Polacek <polacek@redhat.com> |
1473 | ||
1474 | PR c++/106656 | |
1475 | * c-cppbuiltin.cc (c_cpp_builtins): Update value of __cpp_char8_t | |
1476 | for C++20. | |
1477 | ||
4afaeaab GA |
1478 | 2022-09-23 Marek Polacek <polacek@redhat.com> |
1479 | ||
1480 | PR c++/106784 | |
1481 | * c-common.cc (c_common_reswords): Add __is_convertible and | |
1482 | __is_nothrow_convertible. | |
1483 | * c-common.h (enum rid): Add RID_IS_CONVERTIBLE and | |
1484 | RID_IS_NOTHROW_CONVERTIBLE. | |
1485 | ||
279c6715 GA |
1486 | 2022-09-22 David Malcolm <dmalcolm@redhat.com> |
1487 | ||
1488 | PR c/106830 | |
1489 | * c-warn.cc (check_for_xor_used_as_pow): Don't try checking | |
1490 | values that don't fit in uhwi. | |
1491 | ||
d0fc05e8 GA |
1492 | 2022-09-15 Richard Biener <rguenther@suse.de> |
1493 | ||
1494 | * c-common.h (build_void_list_node): Remove. | |
1495 | * c-common.cc (c_common_nodes_and_builtins): Do not initialize | |
1496 | void_list_node. | |
1497 | ||
861d1a11 GA |
1498 | 2022-09-09 Jan-Benedict Glaw <jbglaw@lug-owl.de> |
1499 | ||
1500 | * c-format.cc (convert_format_name_to_system_name): Fix warning. | |
1501 | ||
fe2a8ce9 GA |
1502 | 2022-09-07 Joseph Myers <joseph@codesourcery.com> |
1503 | ||
1504 | * c-common.cc (c_common_reswords): Use D_C2X instead of D_CXXONLY | |
1505 | for alignas, alignof, bool, false, static_assert, thread_local and | |
1506 | true. | |
1507 | ||
1508 | 2022-09-07 Jakub Jelinek <jakub@redhat.com> | |
1509 | ||
1510 | * c.opt (Winvalid-utf8): Use ObjC instead of objC. Remove | |
1511 | " in comments" from description. | |
1512 | (Wunicode): New option. | |
1513 | ||
25aeb922 GA |
1514 | 2022-09-06 Jakub Jelinek <jakub@redhat.com> |
1515 | ||
1516 | PR c/106836 | |
1517 | * c-omp.cc (c_omp_split_clauses): Handle OMP_CLAUSE_DOACROSS. | |
1518 | ||
83f2f228 GA |
1519 | 2022-09-03 Jakub Jelinek <jakub@redhat.com> |
1520 | ||
1521 | * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_DOACROSS. | |
1522 | * c-omp.cc (c_finish_omp_depobj): Check also for OMP_CLAUSE_DOACROSS | |
1523 | clause and diagnose it. Don't handle OMP_CLAUSE_DEPEND_SOURCE and | |
1524 | OMP_CLAUSE_DEPEND_SINK. Assert kind is not OMP_CLAUSE_DEPEND_INVALID. | |
1525 | ||
c64b0947 GA |
1526 | 2022-09-02 David Malcolm <dmalcolm@redhat.com> |
1527 | ||
1528 | PR c/90885 | |
1529 | * c-common.h (check_for_xor_used_as_pow): New decl. | |
1530 | * c-lex.cc (c_lex_with_flags): Add DECIMAL_INT to flags as appropriate. | |
1531 | * c-warn.cc (check_for_xor_used_as_pow): New. | |
1532 | * c.opt (Wxor-used-as-pow): New. | |
1533 | ||
bb0a1556 GA |
1534 | 2022-09-01 Jason Merrill <jason@redhat.com> |
1535 | ||
1536 | * c-common.cc (c_common_nodes_and_builtins): Set TREE_STRING_FLAG on | |
1537 | char8_t. | |
1538 | (braced_list_to_string): Check for char-sized elements. | |
1539 | ||
1540 | 2022-09-01 Jakub Jelinek <jakub@redhat.com> | |
1541 | ||
1542 | PR c++/106655 | |
1543 | * c.opt (-Winvalid-utf8): New warning. | |
1544 | * c-opts.cc (c_common_handle_option) <case OPT_finput_charset_>: | |
1545 | Set cpp_opts->cpp_input_charset_explicit. | |
1546 | (c_common_post_options): If -finput-charset=UTF-8 is explicit | |
1547 | in C++23, enable -Winvalid-utf8 by default and if -pedantic | |
1548 | or -pedantic-errors, make it a pedwarn. | |
1549 | ||
542c60c4 GA |
1550 | 2022-08-31 Joseph Myers <joseph@codesourcery.com> |
1551 | ||
1552 | * c-attribs.cc (handle_deprecated_attribute): Check and pedwarn | |
1553 | for LABEL_DECL. | |
1554 | * c-common.cc (c_add_case_label): Add argument ATTRS. Call | |
1555 | decl_attributes. | |
1556 | * c-common.h (do_case, c_add_case_label): Update declarations. | |
1557 | * c-lex.cc (c_common_has_attribute): For C, produce a result of | |
1558 | 201910 for fallthrough and 202106 for maybe_unused. | |
1559 | ||
16f542d6 GA |
1560 | 2022-08-26 Marek Polacek <polacek@redhat.com> |
1561 | ||
1562 | PR c++/81159 | |
1563 | * c.opt (Wself-move): New option. | |
1564 | ||
1565 | 2022-08-26 Jakub Jelinek <jakub@redhat.com> | |
1566 | ||
1567 | * c-common.cc (check_builtin_function_arguments): Handle | |
1568 | BUILT_IN_ISSIGNALING. | |
1569 | ||
1570 | 2022-08-26 Jakub Jelinek <jakub@redhat.com> | |
1571 | ||
1572 | PR c++/106648 | |
1573 | * c-cppbuiltin.cc (c_cpp_builtins): Predefine | |
1574 | __cpp_named_character_escapes to 202207L. | |
1575 | ||
5d4389dc GA |
1576 | 2022-08-25 Marek Polacek <polacek@redhat.com> |
1577 | ||
1578 | * c-common.cc (c_common_reswords): Enable nullptr in C2X. | |
1579 | (c_common_nodes_and_builtins): Create the built-in node for nullptr. | |
1580 | * c-common.h (enum c_tree_index): Add CTI_NULLPTR, CTI_NULLPTR_TYPE. | |
1581 | (struct c_common_resword): Resize the disable member. | |
1582 | (D_C2X): Add. | |
1583 | (nullptr_node): Define. | |
1584 | (nullptr_type_node): Define. | |
1585 | (NULLPTR_TYPE_P): Define. | |
1586 | * c-pretty-print.cc (c_pretty_printer::simple_type_specifier): Handle | |
1587 | NULLPTR_TYPE. | |
1588 | (c_pretty_printer::direct_abstract_declarator): Likewise. | |
1589 | (c_pretty_printer::constant): Likewise. | |
1590 | ||
47a61e65 GA |
1591 | 2022-08-16 Tom Honermann <tom@honermann.net> |
1592 | ||
1593 | PR c++/106423 | |
1594 | * c-opts.cc (c_common_post_options): Disable -Wc++20-compat | |
1595 | diagnostics in C++20 and later. | |
1596 | * c.opt (Wc++20-compat): Enable hooks for the preprocessor. | |
1597 | ||
5cd525f0 GA |
1598 | 2022-08-11 Marek Polacek <polacek@redhat.com> |
1599 | ||
1600 | PR middle-end/102633 | |
1601 | * c-gimplify.cc (c_gimplify_expr) <case DECL_EXPR>: Don't call | |
1602 | suppress_warning here. | |
1603 | ||
5f17badb GA |
1604 | 2022-08-08 Tom Honermann <tom@honermann.net> |
1605 | ||
1606 | PR preprocessor/106426 | |
1607 | * c-opts.cc (c_common_post_options): Assign cpp_opts->unsigned_utf8char | |
1608 | subject to -fchar8_t, -fsigned-char, and/or -funsigned-char. | |
1609 | ||
1610 | 2022-08-08 Tom Honermann <tom@honermann.net> | |
1611 | ||
1612 | * c-lex.cc (lex_string, lex_charconst): Use char8_t as the type | |
1613 | of CPP_UTF8CHAR and CPP_UTF8STRING when char8_t support is | |
1614 | enabled. | |
1615 | * c-opts.cc (c_common_post_options): Set flag_char8_t if | |
1616 | targeting C2x. | |
1617 | ||
4a7274dd GA |
1618 | 2022-07-31 Lewis Hyatt <lhyatt@gmail.com> |
1619 | ||
1620 | PR c++/66290 | |
1621 | * c-common.h: Rename global done_lexing to | |
1622 | override_libcpp_locations. | |
1623 | * c-common.cc (c_cpp_diagnostic): Likewise. | |
1624 | * c-opts.cc (c_common_finish): Set override_libcpp_locations | |
1625 | (formerly done_lexing) immediately prior to calling cpp_finish (). | |
1626 | ||
1e2c5f4c GA |
1627 | 2022-07-27 Lewis Hyatt <lhyatt@gmail.com> |
1628 | ||
1629 | * c-ppoutput.cc (token_streamer::stream): Update input_location | |
1630 | prior to streaming each token. | |
1631 | ||
0e6fa997 GA |
1632 | 2022-07-23 Immad Mir <mirimmad@outlook.com> |
1633 | ||
1634 | * c-attribs.cc: (c_common_attribute_table): add three new attributes | |
1635 | namely: fd_arg, fd_arg_read and fd_arg_write. | |
1636 | (handle_fd_arg_attribute): New. | |
1637 | ||
bdc7b765 GA |
1638 | 2022-07-15 Marek Polacek <polacek@redhat.com> |
1639 | ||
1640 | PR c++/104477 | |
1641 | * c-common.cc (c_common_reswords): Add | |
1642 | __reference_constructs_from_temporary and | |
1643 | __reference_converts_from_temporary. | |
1644 | * c-common.h (enum rid): Add RID_REF_CONSTRUCTS_FROM_TEMPORARY and | |
1645 | RID_REF_CONVERTS_FROM_TEMPORARY. | |
1646 | ||
1647 | 2022-07-15 Jonathan Wakely <jwakely@redhat.com> | |
1648 | ||
1649 | * c-format.cc (class range_label_for_format_type_mismatch): | |
1650 | Adjust to new label_text API. | |
1651 | ||
c72d4714 GA |
1652 | 2022-07-11 Lewis Hyatt <lhyatt@gmail.com> |
1653 | ||
1654 | PR preprocessor/106252 | |
1655 | * c-pragma.cc (handle_pragma_diagnostic_impl): Don't look up the | |
1656 | option argument prior to verifying the option was found. | |
1657 | ||
6345c414 GA |
1658 | 2022-07-07 David Malcolm <dmalcolm@redhat.com> |
1659 | ||
1660 | * c-format.cc (range_label_for_format_type_mismatch::get_text): | |
1661 | Update for removal of label_text::maybe_free in favor of automatic | |
1662 | memory management. | |
1663 | ||
4bc92c3b GA |
1664 | 2022-07-06 Lewis Hyatt <lhyatt@gmail.com> |
1665 | ||
1666 | PR preprocessor/53920 | |
1667 | PR c++/53431 | |
1668 | * c-common.cc (c_option_is_from_cpp_diagnostics): New function. | |
1669 | * c-common.h (c_option_is_from_cpp_diagnostics): Declare. | |
1670 | (c_pp_stream_token): Declare. | |
1671 | * c-ppoutput.cc (init_pp_output): Refactor logic about skipping | |
1672 | pragmas to... | |
1673 | (should_output_pragmas): ...here. New function. | |
1674 | (token_streamer::stream): Support handling early pragmas. | |
1675 | (do_line_change): Likewise. | |
1676 | (c_pp_stream_token): New function. | |
1677 | * c-pragma.cc (struct pragma_diagnostic_data): New helper class. | |
1678 | (pragma_diagnostic_lex_normal): New function. Moved logic for | |
1679 | interpreting GCC diagnostic pragmas here. | |
1680 | (pragma_diagnostic_lex_pp): New function for parsing diagnostic pragmas | |
1681 | directly from libcpp. | |
1682 | (handle_pragma_diagnostic): Refactor into helper function... | |
1683 | (handle_pragma_diagnostic_impl): ...here. New function. | |
1684 | (handle_pragma_diagnostic_early): New function. | |
1685 | (handle_pragma_diagnostic_early_pp): New function. | |
1686 | (struct pragma_ns_name): Renamed to... | |
1687 | (struct pragma_pp_data): ...this. Add new "early_handler" member. | |
1688 | (c_register_pragma_1): Support early pragmas in the preprocessor. | |
1689 | (c_register_pragma_with_early_handler): New function. | |
1690 | (c_register_pragma): Support the new early handlers in struct | |
1691 | internal_pragma_handler. | |
1692 | (c_register_pragma_with_data): Likewise. | |
1693 | (c_register_pragma_with_expansion): Likewise. | |
1694 | (c_register_pragma_with_expansion_and_data): Likewise. | |
1695 | (c_invoke_early_pragma_handler): New function. | |
1696 | (c_pp_invoke_early_pragma_handler): New function. | |
1697 | (init_pragma): Add early pragma support for diagnostic pragmas. | |
1698 | * c-pragma.h (struct internal_pragma_handler): Add new early handler | |
1699 | members. | |
1700 | (c_register_pragma_with_early_handler): Declare. | |
1701 | (c_invoke_early_pragma_handler): Declare. | |
1702 | (c_pp_invoke_early_pragma_handler): Declare. | |
1703 | ||
d1f3a3ff GA |
1704 | 2022-07-05 Marek Polacek <polacek@redhat.com> |
1705 | ||
1706 | PR c++/105626 | |
1707 | * c-format.cc (check_format_arg): Don't emit -Wformat warnings with | |
1708 | u8 strings. | |
1709 | ||
ed974488 GA |
1710 | 2022-07-01 Marek Polacek <polacek@redhat.com> |
1711 | ||
1712 | PR c++/106111 | |
1713 | * c-common.h (enum rid): Update RID_LAST_CXX20. | |
1714 | ||
976196b3 GA |
1715 | 2022-06-30 Jonathan Wakely <jwakely@redhat.com> |
1716 | ||
1717 | * known-headers.cc (get_stdlib_header_for_name): Add <time.h> | |
1718 | names. | |
1719 | ||
84c2131d GA |
1720 | 2022-06-24 Jason Merrill <jason@redhat.com> |
1721 | ||
1722 | PR c++/87729 | |
1723 | PR c++/20423 | |
1724 | * c.opt (Woverloaded-virtual): Add levels, include in -Wall. | |
1725 | ||
4390e7bf GA |
1726 | 2022-06-18 Jakub Jelinek <jakub@redhat.com> |
1727 | ||
1728 | * c-ubsan.cc (ubsan_instrument_division, ubsan_instrument_shift): | |
1729 | Use flag_sanitize_trap & SANITIZE_??? instead of | |
1730 | flag_sanitize_undefined_trap_on_error. If 2 sanitizers are involved | |
1731 | and flag_sanitize_trap differs for them, emit __builtin_trap only | |
1732 | for the comparison where trap is requested. | |
1733 | (ubsan_instrument_vla, ubsan_instrument_return): Use | |
1734 | lag_sanitize_trap & SANITIZE_??? instead of | |
1735 | flag_sanitize_undefined_trap_on_error. | |
1736 | ||
c3642271 GA |
1737 | 2022-06-13 Jason Merrill <jason@redhat.com> |
1738 | ||
1739 | * c-ubsan.cc (ubsan_instrument_return): Use BUILTINS_LOCATION. | |
1740 | ||
d9176e64 GA |
1741 | 2022-05-27 Marek Polacek <polacek@redhat.com> |
1742 | ||
1743 | PR c/90658 | |
1744 | * c-attribs.cc (get_priority): Check FUNCTION_DECL. | |
1745 | ||
1746 | 2022-05-27 Jakub Jelinek <jakub@redhat.com> | |
1747 | ||
1748 | * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ENTER. | |
1749 | ||
57f2ce6a GA |
1750 | 2022-05-20 David Malcolm <dmalcolm@redhat.com> |
1751 | ||
1752 | * c-format.cc: Replace uses of "FINAL" and "OVERRIDE" with "final" | |
1753 | and "override". | |
1754 | * c-pretty-print.h: Likewise. | |
1755 | ||
1cda629f GA |
1756 | 2022-05-18 Marek Polacek <polacek@redhat.com> |
1757 | ||
1758 | PR c/105131 | |
1759 | * c.opt (Wenum-int-mismatch): New. | |
1760 | ||
1761 | 2022-05-18 Marek Polacek <polacek@redhat.com> | |
1762 | ||
1763 | PR c++/105497 | |
1764 | * c-warn.cc (c_do_switch_warnings): Don't warn about unhandled | |
1765 | enumerator when it was marked with attribute unused. | |
1766 | ||
1767 | 2022-05-18 Eric Botcazou <ebotcazou@adacore.com> | |
1768 | ||
1769 | * c-ada-spec.cc (dump_ada_node) <COMPLEX_TYPE>: Deal with usual | |
1770 | floating-point complex types. | |
1771 | <POINTER_TYPE>: Do not use limited_with clause if the designated | |
1772 | type is a scalar type. | |
1773 | ||
3d9439b1 GA |
1774 | 2022-05-17 Jakub Jelinek <jakub@redhat.com> |
1775 | ||
1776 | * c-omp.cc (c_finish_omp_depobj): Handle | |
1777 | OMP_CLAUSE_DEPEND_INOUTSET. | |
1778 | ||
702bd11f GA |
1779 | 2022-05-16 Jason Merrill <jason@redhat.com> |
1780 | ||
1781 | PR c/105492 | |
1782 | * c-attribs.cc (handle_mode_attribute): Don't fix broken typedefs | |
1783 | here. | |
1784 | ||
1785 | 2022-05-16 Martin Liska <mliska@suse.cz> | |
1786 | ||
1787 | * c-common.cc (ARRAY_SIZE): Use ARRAY_SIZE. | |
1788 | (c_common_nodes_and_builtins): Likewise. | |
1789 | * c-format.cc (check_tokens): Likewise. | |
1790 | (check_plain): Likewise. | |
1791 | * c-pragma.cc (c_pp_lookup_pragma): Likewise. | |
1792 | (init_pragma): Likewise. | |
1793 | * known-headers.cc (get_string_macro_hint): Likewise. | |
1794 | (get_stdlib_header_for_name): Likewise. | |
1795 | * c-attribs.cc: Likewise. | |
1796 | ||
9df4ffe4 GA |
1797 | 2022-05-13 Richard Biener <rguenther@suse.de> |
1798 | ||
1799 | * c-omp.cc: Remove gimple-fold.h include. | |
1800 | ||
49ace834 GA |
1801 | 2022-05-12 Jakub Jelinek <jakub@redhat.com> |
1802 | ||
1803 | * c-common.h (enum rid): Add RID_OMP_ALL_MEMORY. | |
1804 | * c-omp.cc (c_finish_omp_depobj): Don't build_fold_addr_expr | |
1805 | if null_pointer_node. | |
1806 | ||
d0d513b5 GA |
1807 | 2022-05-11 Martin Liska <mliska@suse.cz> |
1808 | ||
1809 | PR target/105355 | |
1810 | * c-opts.cc (c_common_handle_option): Change option name. | |
1811 | * c.opt: Remove Joined and use Separate option. | |
1812 | ||
bd022ff9 GA |
1813 | 2022-05-09 Alex Coplan <alex.coplan@arm.com> |
1814 | ||
1815 | * c-common.h (get_dump_info): Delete. | |
1816 | * c-gimplify.cc (c_genericize): Get TDI_original dump file info | |
1817 | from the global dump_manager instead of the (now obsolete) | |
1818 | get_dump_info. | |
1819 | * c-opts.cc (original_dump_file): Delete. | |
1820 | (original_dump_flags): Delete. | |
1821 | (c_common_parse_file): Switch to using global dump_manager to | |
1822 | manage the original dump file; fix leak of dump file. | |
1823 | (get_dump_info): Delete. | |
1824 | ||
a1947c92 GA |
1825 | 2022-05-07 Marek Polacek <polacek@redhat.com> |
1826 | ||
1827 | PR c++/101833 | |
1828 | PR c++/47634 | |
1829 | * c-attribs.cc (positional_argument): Pass POS by reference. Deal | |
1830 | with FN being either a function declaration or function type. Use | |
1831 | maybe_adjust_arg_pos_for_attribute. | |
1832 | * c-common.cc (check_function_arguments): Maybe pass FNDECL down to | |
1833 | check_function_format. | |
1834 | * c-common.h (maybe_adjust_arg_pos_for_attribute): Declare. | |
1835 | (positional_argument): Adjust. | |
1836 | * c-format.cc (get_constant): Rename to ... | |
1837 | (validate_constant): ... this. Take EXPR by reference. Return bool | |
1838 | instead of tree. | |
1839 | (handle_format_arg_attribute): Don't overwrite FORMAT_NUM_EXPR by the | |
1840 | return value of validate_constant. | |
1841 | (decode_format_attr): Don't overwrite FORMAT_NUM_EXPR and | |
1842 | FIRST_ARG_NUM_EXPR by the return value of validate_constant. | |
1843 | (check_function_format): Adjust a parameter name. | |
1844 | (handle_format_attribute): Maybe pass FNDECL down to decode_format_attr. | |
1845 | ||
3e7db517 GA |
1846 | 2022-05-04 Marek Polacek <polacek@redhat.com> |
1847 | ||
1848 | * c-warn.cc (warnings_for_convert_and_check): Convert constants of type | |
1849 | char to int. | |
1850 | ||
95874f95 GA |
1851 | 2022-04-30 Jason Merrill <jason@redhat.com> |
1852 | ||
1853 | PR c/100545 | |
1854 | * c-attribs.cc (handle_mode_attribute): Copy attributes, aligned, | |
1855 | and typedef. | |
1856 | * c-common.cc (set_underlying_type): Add assert. | |
1857 | ||
01ad093b GA |
1858 | 2022-04-26 Patrick Palka <ppalka@redhat.com> |
1859 | ||
1860 | PR c++/105304 | |
1861 | * c-common.cc (verify_tree) [restart]: Move up to before the | |
1862 | NULL test. | |
1863 | ||
da066c42 GA |
1864 | 2022-04-11 Jakub Jelinek <jakub@redhat.com> |
1865 | ||
1866 | PR c++/105186 | |
1867 | * c-common.cc (c_common_nodes_and_builtins): After registering __int%d | |
1868 | and __int%d__ builtin types, initialize corresponding ridpointers | |
1869 | entry. | |
1870 | ||
150ab50f GA |
1871 | 2022-03-30 Marek Polacek <polacek@redhat.com> |
1872 | ||
1873 | PR c++/101030 | |
1874 | * c-warn.cc (conversion_warning) <case COND_EXPR>: Don't call | |
1875 | conversion_warning when OP1 is null. | |
1876 | ||
1877 | 2022-03-30 Thomas Schwinge <thomas@codesourcery.com> | |
1878 | ||
1879 | * c.opt (Wc++11-extensions, Wc++14-extensions, Wc++17-extensions) | |
1880 | (Wc++20-extensions, Wc++23-extensions): Remove 'LangEnabledBy' | |
1881 | option properties. | |
1882 | ||
1883 | 2022-03-30 Thomas Schwinge <thomas@codesourcery.com> | |
1884 | ||
1885 | * c.opt (Wuse-after-free): Remove. | |
1886 | ||
1887 | 2022-03-30 Thomas Schwinge <thomas@codesourcery.com> | |
1888 | ||
1889 | * c.opt (Warray-bounds): Remove. | |
1890 | ||
d2906412 GA |
1891 | 2022-03-26 Thomas Schwinge <thomas@codesourcery.com> |
1892 | ||
1893 | * c.opt: Properly quote comment. | |
1894 | ||
31e989a2 GA |
1895 | 2022-03-25 Eric Botcazou <ebotcazou@adacore.com> |
1896 | ||
1897 | * c-ada-spec.cc (dump_ada_import): Deal with the "section" attribute | |
1898 | (dump_ada_node) <POINTER_TYPE>: Do not modify and pass the name, but | |
1899 | the referenced type instead. Deal with the anonymous original type | |
1900 | of a typedef'ed type. In the actual access case, follow the chain | |
1901 | of external subtypes. | |
1902 | <TYPE_DECL>: Tidy up control flow. | |
1903 | ||
d156bb87 GA |
1904 | 2022-03-21 Qian Jianhua <qianjh@cn.fujitsu.com> |
1905 | ||
1906 | * c-ada-spec.cc: Change array length | |
1907 | ||
d7f00da1 GA |
1908 | 2022-03-19 Arthur Cohen <arthur.cohen@embecosm.com> |
1909 | ||
1910 | * c-common.cc (c_family_tests): Call the new tests. | |
1911 | * c-common.h (c_diagnostic_tests): Declare. | |
1912 | (c_opt_problem_cc_tests): Likewise. | |
1913 | ||
1914 | 2022-03-19 Jakub Jelinek <jakub@redhat.com> | |
1915 | ||
1916 | PR c++/101515 | |
1917 | * c-pretty-print.cc (c_fold_indirect_ref_for_warn): For C++ don't | |
1918 | return COMPONENT_REFs with FIELD_DECLs whose containing scope can't | |
1919 | be printed. | |
1920 | ||
9fc8f278 GA |
1921 | 2022-03-16 Christophe Lyon <christophe.lyon@arm.com> |
1922 | Roger Sayle <roger@nextmovesoftware.com> | |
1923 | ||
1924 | PR c/98198 | |
1925 | * c-attribs.cc (decl_or_type_attrs): Add error_mark_node check. | |
1926 | ||
1927 | 2022-03-16 Patrick Palka <ppalka@redhat.com> | |
1928 | ||
1929 | PR c++/96780 | |
1930 | * c.opt: Add -ffold-simple-inlines. | |
1931 | ||
b9756c08 GA |
1932 | 2022-03-13 Tobias Burnus <tobias@codesourcery.com> |
1933 | ||
1934 | * c-target.def (check_string_object_format_arg): Fix description typo. | |
1935 | ||
57eeedda GA |
1936 | 2022-03-12 Thomas Schwinge <thomas@codesourcery.com> |
1937 | ||
1938 | PR other/65095 | |
1939 | * c-common.h (c_omp_map_clause_name): Remove. | |
1940 | * c-omp.cc (c_omp_map_clause_name): Remove. | |
1941 | ||
8cc4f9cd GA |
1942 | 2022-03-09 Jakub Jelinek <jakub@redhat.com> |
1943 | ||
1944 | PR c/104711 | |
1945 | * c-opts.cc (c_common_post_options): Don't enable | |
1946 | -Wshift-negative-value from -Wextra for C++20 or later. | |
1947 | * c-ubsan.cc (ubsan_instrument_shift): Adjust comments. | |
1948 | * c-warn.cc (maybe_warn_shift_overflow): Use TYPE_OVERFLOW_WRAPS | |
1949 | instead of TYPE_UNSIGNED. | |
1950 | ||
e6533e2e GA |
1951 | 2022-03-07 Jakub Jelinek <jakub@redhat.com> |
1952 | ||
1953 | * c-attribs.cc: Fix up duplicated word issue in a comment. | |
1954 | ||
12d4552e GA |
1955 | 2022-03-01 Martin Liska <mliska@suse.cz> |
1956 | ||
1957 | PR ipa/104533 | |
1958 | * c-attribs.cc (handle_target_clones_attribute): Use | |
1959 | get_target_clone_attr_len and report warning soon. | |
1960 | ||
0bdb0498 GA |
1961 | 2022-02-17 Jonathan Wakely <jwakely@redhat.com> |
1962 | ||
1963 | * c-pragma.cc (handle_pragma_pack): Remove parameter name. | |
1964 | (handle_pragma_weak): Likewise. | |
1965 | (handle_pragma_scalar_storage_order): Likewise. | |
1966 | (handle_pragma_redefine_extname): Likewise. | |
1967 | (handle_pragma_visibility): Likewise. | |
1968 | (handle_pragma_diagnostic): Likewise. | |
1969 | (handle_pragma_target): Likewise. | |
1970 | (handle_pragma_optimize): Likewise. | |
1971 | (handle_pragma_push_options): Likewise. | |
1972 | (handle_pragma_pop_options): Likewise. | |
1973 | (handle_pragma_reset_options): Likewise. | |
1974 | (handle_pragma_message): Likewise. | |
1975 | (handle_pragma_float_const_decimal64): Likewise. | |
1976 | ||
cb3afcd2 GA |
1977 | 2022-02-16 Jakub Jelinek <jakub@redhat.com> |
1978 | ||
1979 | PR c/104531 | |
1980 | * c-omp.cc (c_finish_omp_atomic): For MIN_EXPR/MAX_EXPR, try first | |
1981 | build_binary_op with LT_EXPR and only if that doesn't return | |
1982 | error_mark_node call build_modify_expr. | |
1983 | ||
1984 | 2022-02-16 Jakub Jelinek <jakub@redhat.com> | |
1985 | ||
1986 | PR c/104510 | |
1987 | * c-common.cc (shorten_compare): Convert original arguments to | |
1988 | the original *restype_ptr when mixing binary and decimal float. | |
1989 | ||
1f8a09d2 GA |
1990 | 2022-02-14 Richard Biener <rguenther@suse.de> |
1991 | ||
1992 | PR c/104505 | |
1993 | * c-pretty-print.cc (c_pretty_printer::postfix_expression): Handle | |
1994 | internal function calls. | |
1995 | ||
e8d68f0a GA |
1996 | 2022-02-11 Richard Biener <rguenther@suse.de> |
1997 | ||
1998 | * c-attribs.cc (c_common_attribute_table): Add entry for | |
1999 | vector_mask. | |
2000 | (handle_vector_mask_attribute): New. | |
2001 | ||
a645583d GA |
2002 | 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com> |
2003 | ||
2004 | * c-omp.cc (c_omp_split_clauses): Added OMP_CLAUSE_HAS_DEVICE_ADDR case. | |
2005 | * c-pragma.h (enum pragma_kind): Added 5.1 in comment. | |
2006 | (enum pragma_omp_clause): Added PRAGMA_OMP_CLAUSE_HAS_DEVICE_ADDR. | |
2007 | ||
3adf509f GA |
2008 | 2022-02-09 Jason Merrill <jason@redhat.com> |
2009 | ||
2010 | * c-cppbuiltin.cc (c_cpp_builtins): Update values | |
2011 | of __cpp_constexpr and __cpp_concepts for C++20. | |
2012 | ||
bb99171b GA |
2013 | 2022-01-24 Marek Polacek <polacek@redhat.com> |
2014 | ||
2015 | PR preprocessor/104030 | |
2016 | * c.opt (Wbidi-chars): Mark as EnumSet. Also accept =ucn. | |
2017 | ||
9dd44357 GA |
2018 | 2022-01-21 Jakub Jelinek <jakub@redhat.com> |
2019 | ||
2020 | PR c++/104148 | |
2021 | * c-common.h (check_function_arguments_recurse): Add for_format | |
2022 | arg. | |
2023 | * c-common.cc (check_function_nonnull): Pass false to | |
2024 | check_function_arguments_recurse's last argument. | |
2025 | (check_function_arguments_recurse): Add for_format argument, | |
2026 | if true, don't stop on warning_suppressed_p. | |
2027 | * c-format.cc (check_format_info): Pass true to | |
2028 | check_function_arguments_recurse's last argument. | |
2029 | ||
fe1ad141 GA |
2030 | 2022-01-19 David Malcolm <dmalcolm@redhat.com> |
2031 | ||
2032 | * c-common.cc (c_common_c_tests): Rename to... | |
2033 | (c_common_cc_tests): ...this. | |
2034 | (c_family_tests): Update calls for .c to .cc renaming. | |
2035 | * c-common.h (c_format_c_tests): Rename to... | |
2036 | (c_format_cc_tests): ...this. | |
2037 | (c_indentation_c_tests): Rename to... | |
2038 | (c_indentation_cc_tests): ...this. | |
2039 | (c_pretty_print_c_tests): Rename to... | |
2040 | (c_pretty_print_cc_tests): ...this. | |
2041 | * c-format.cc (c_format_c_tests): Rename to... | |
2042 | (c_format_cc_tests): ...this. | |
2043 | * c-indentation.cc (c_indentation_c_tests): Rename to... | |
2044 | (c_indentation_cc_tests): ...this. | |
2045 | * c-pretty-print.cc (c_pretty_print_c_tests): Rename to... | |
2046 | (c_pretty_print_cc_tests): ...this. | |
2047 | ||
fc829782 GA |
2048 | 2022-01-17 Martin Liska <mliska@suse.cz> |
2049 | ||
2050 | * c-ada-spec.cc: Rename .c names to .cc. | |
2051 | * c-ada-spec.h: Likewise. | |
2052 | * c-common.cc (c_build_vec_convert): Likewise. | |
2053 | (warning_candidate_p): Likewise. | |
2054 | * c-common.h (enum rid): Likewise. | |
2055 | (build_real_imag_expr): Likewise. | |
2056 | (finish_label_address_expr): Likewise. | |
2057 | (c_get_substring_location): Likewise. | |
2058 | (c_build_bind_expr): Likewise. | |
2059 | (conflict_marker_get_final_tok_kind): Likewise. | |
2060 | (c_parse_error): Likewise. | |
2061 | (check_missing_format_attribute): Likewise. | |
2062 | (invalid_array_size_error): Likewise. | |
2063 | (warn_for_multistatement_macros): Likewise. | |
2064 | (build_attr_access_from_parms): Likewise. | |
2065 | * c-cppbuiltin.cc (c_cpp_builtins): Likewise. | |
2066 | * c-format.cc: Likewise. | |
2067 | * c-gimplify.cc (c_gimplify_expr): Likewise. | |
2068 | * c-indentation.h: Likewise. | |
2069 | * c-objc.h (objc_prop_attr_kind_for_rid): Likewise. | |
2070 | * c-omp.cc (c_omp_predetermined_mapping): Likewise. | |
2071 | * c-opts.cc (c_common_post_options): Likewise. | |
2072 | (set_std_cxx23): Likewise. | |
2073 | * c-pragma.cc (handle_pragma_redefine_extname): Likewise. | |
2074 | * c-pretty-print.h: Likewise. | |
2075 | ||
2076 | 2022-01-17 Martin Liska <mliska@suse.cz> | |
2077 | ||
2078 | * c-ada-spec.c: Moved to... | |
2079 | * c-ada-spec.cc: ...here. | |
2080 | * c-attribs.c: Moved to... | |
2081 | * c-attribs.cc: ...here. | |
2082 | * c-common.c: Moved to... | |
2083 | * c-common.cc: ...here. | |
2084 | * c-cppbuiltin.c: Moved to... | |
2085 | * c-cppbuiltin.cc: ...here. | |
2086 | * c-dump.c: Moved to... | |
2087 | * c-dump.cc: ...here. | |
2088 | * c-format.c: Moved to... | |
2089 | * c-format.cc: ...here. | |
2090 | * c-gimplify.c: Moved to... | |
2091 | * c-gimplify.cc: ...here. | |
2092 | * c-indentation.c: Moved to... | |
2093 | * c-indentation.cc: ...here. | |
2094 | * c-lex.c: Moved to... | |
2095 | * c-lex.cc: ...here. | |
2096 | * c-omp.c: Moved to... | |
2097 | * c-omp.cc: ...here. | |
2098 | * c-opts.c: Moved to... | |
2099 | * c-opts.cc: ...here. | |
2100 | * c-pch.c: Moved to... | |
2101 | * c-pch.cc: ...here. | |
2102 | * c-ppoutput.c: Moved to... | |
2103 | * c-ppoutput.cc: ...here. | |
2104 | * c-pragma.c: Moved to... | |
2105 | * c-pragma.cc: ...here. | |
2106 | * c-pretty-print.c: Moved to... | |
2107 | * c-pretty-print.cc: ...here. | |
2108 | * c-semantics.c: Moved to... | |
2109 | * c-semantics.cc: ...here. | |
2110 | * c-ubsan.c: Moved to... | |
2111 | * c-ubsan.cc: ...here. | |
2112 | * c-warn.c: Moved to... | |
2113 | * c-warn.cc: ...here. | |
2114 | * cppspec.c: Moved to... | |
2115 | * cppspec.cc: ...here. | |
2116 | * stub-objc.c: Moved to... | |
2117 | * stub-objc.cc: ...here. | |
2118 | ||
9248ee41 GA |
2119 | 2022-01-15 Martin Sebor <msebor@redhat.com> |
2120 | ||
2121 | PR c/63272 | |
2122 | * c.opt (-Wdangling-pointer): New option. | |
2123 | ||
2124 | 2022-01-15 Martin Sebor <msebor@redhat.com> | |
2125 | ||
2126 | PR tree-optimization/80532 | |
2127 | * c.opt (-Wuse-after-free): New options. | |
2128 | ||
617db51d GA |
2129 | 2022-01-14 David Malcolm <dmalcolm@redhat.com> |
2130 | ||
2131 | * c-attribs.c (c_common_attribute_table): Add "tainted_args". | |
2132 | (handle_tainted_args_attribute): New. | |
2133 | ||
ad3f0d08 GA |
2134 | 2022-01-13 Anthony Sharp <anthonysharp15@gmail.com> |
2135 | Jason Merrill <jason@redhat.com> | |
2136 | ||
2137 | PR c++/70417 | |
2138 | * c.opt: Added -Wmissing-template-keyword. | |
2139 | ||
2140 | 2022-01-13 Richard Biener <rguenther@suse.de> | |
2141 | ||
2142 | PR c/104002 | |
2143 | * c-common.c (c_common_mark_addressable_vec): Handle TARGET_EXPR. | |
2144 | ||
02a8a01b GA |
2145 | 2022-01-12 Martin Liska <mliska@suse.cz> |
2146 | ||
2147 | PR target/103804 | |
2148 | * c-attribs.c (handle_optimize_attribute): Do not call | |
2149 | cl_optimization_compare if we seen an error. | |
2150 | ||
01a254e3 GA |
2151 | 2022-01-11 Jakub Jelinek <jakub@redhat.com> |
2152 | ||
2153 | PR c/101537 | |
2154 | PR c/103881 | |
2155 | * c-warn.c (conversion_warning): Handle BIT_AND_EXPR, BIT_IOR_EXPR | |
2156 | and BIT_XOR_EXPR. | |
2157 | ||
d9450aa0 GA |
2158 | 2022-01-10 Richard Biener <rguenther@suse.de> |
2159 | ||
2160 | PR middle-end/101530 | |
2161 | * c-common.c (c_build_shufflevector): Wrap the BIT_FIELD_REF | |
2162 | in a TARGET_EXPR to force a temporary. | |
2163 | ||
11ce8d04 GA |
2164 | 2022-01-06 Marek Polacek <polacek@redhat.com> |
2165 | ||
2166 | PR c++/103758 | |
2167 | * c-pragma.c (handle_pragma_scalar_storage_order): Use %< %> in | |
2168 | diagnostic messages. | |
2169 | (handle_pragma_diagnostic): Likewise. | |
2170 | ||
a4ae8c37 GA |
2171 | 2022-01-03 Marek Polacek <polacek@redhat.com> |
2172 | ||
2173 | PR c++/103758 | |
2174 | * c-format.c (check_tokens): Accept "decl-specifier*". | |
2175 | ||
2176 | 2022-01-03 Jakub Jelinek <jakub@redhat.com> | |
2177 | ||
2178 | PR c++/103600 | |
2179 | * c-attribs.c (handle_non_overlapping_attribute): New function. | |
2180 | (c_common_attribute_table): Add "non overlapping" attribute. | |
2181 | ||
84790a9d GA |
2182 | 2021-12-30 Jakub Jelinek <jakub@redhat.com> |
2183 | ||
2184 | PR c++/103012 | |
2185 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Perform | |
2186 | cpp_define_unused/cpp_undef calls with forced token locations | |
2187 | BUILTINS_LOCATION. | |
2188 | ||
d1e111da GA |
2189 | 2021-12-27 Patrick Palka <ppalka@redhat.com> |
2190 | ||
2191 | PR c++/103700 | |
2192 | * c-common.c (pointer_int_sum): When quiet, return | |
2193 | error_mark_node for an incomplete pointed-to type and don't | |
2194 | call size_in_bytes_loc. | |
2195 | ||
2554e2da GA |
2196 | 2021-12-17 Jason Merrill <jason@redhat.com> |
2197 | ||
2198 | PR c++/103681 | |
2199 | * c-opts.c (c_common_post_options): Update defaults. | |
2200 | ||
774269aa GA |
2201 | 2021-12-16 Martin Liska <mliska@suse.cz> |
2202 | ||
2203 | PR target/103709 | |
2204 | * c-pragma.c (handle_pragma_pop_options): Do not check | |
2205 | global options modification when an error is seen in parsing | |
2206 | of options (pragmas or attributes). | |
2207 | ||
c8dcf64b GA |
2208 | 2021-12-12 Jonathan Wakely <jwakely@redhat.com> |
2209 | ||
2210 | * known-headers.cc: Define INCLUDE_MEMORY instead of | |
2211 | INCLUDE_UNIQUE_PTR. | |
2212 | * name-hint.h: Likewise. | |
2213 | (class name_hint): Use std::unique_ptr instead of gnu::unique_ptr. | |
2214 | ||
4b4839e3 GA |
2215 | 2021-12-09 Jakub Jelinek <jakub@redhat.com> |
2216 | ||
2217 | PR pch/71934 | |
2218 | * c-pch.c (c_common_no_more_pch): Pass a temporary void * var | |
2219 | with NULL value instead of NULL to host_hooks.gt_pch_use_address. | |
2220 | ||
03a9bd05 GA |
2221 | 2021-12-03 Jakub Jelinek <jakub@redhat.com> |
2222 | ||
2223 | PR pch/71934 | |
2224 | * c-pch.c (struct c_pch_validity): Remove pch_init member. | |
2225 | (pch_init): Don't initialize v.pch_init. | |
2226 | (c_common_valid_pch): Don't warn and punt if .text addresses change. | |
2227 | ||
40fa651e GA |
2228 | 2021-12-01 Jason Merrill <jason@redhat.com> |
2229 | ||
2230 | PR c++/103310 | |
2231 | * c.opt: Add -fconstexpr-fp-except. | |
2232 | ||
87cd82c8 GA |
2233 | 2021-11-29 Richard Biener <rguenther@suse.de> |
2234 | ||
2235 | * c-format.c (check_format_string): Remove spurious | |
2236 | gcc_unreachable. | |
2237 | ||
2238 | 2021-11-29 Richard Biener <rguenther@suse.de> | |
2239 | ||
2240 | * c-opts.c (c_common_post_options): Remove unreachable return. | |
2241 | * c-pragma.c (handle_pragma_target): Likewise. | |
2242 | (handle_pragma_optimize): Likewise. | |
2243 | ||
091ccc06 GA |
2244 | 2021-11-25 Jakub Jelinek <jakub@redhat.com> |
2245 | ||
2246 | PR c++/102611 | |
2247 | * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by | |
2248 | default for C++23 regardless of warn_deprecated. | |
2249 | * c-cppbuiltin.c (c_cpp_builtins): Predefine | |
2250 | __cpp_multidimensional_subscript=202110L for C++23. | |
2251 | ||
e1d43592 GA |
2252 | 2021-11-23 Martin Sebor <msebor@redhat.com> |
2253 | ||
2254 | PR middle-end/88232 | |
2255 | * c.opt: Add -Winfinite-recursion. | |
2256 | ||
9c077398 GA |
2257 | 2021-11-19 Martin Sebor <msebor@redhat.com> |
2258 | ||
2259 | PR c++/33925 | |
2260 | PR c/102867 | |
2261 | * c-common.c (decl_with_nonnull_addr_p): Call maybe_nonzero_address | |
2262 | and improve handling tof defined symbols. | |
2263 | ||
2264 | 2021-11-19 Martin Liska <mliska@suse.cz> | |
2265 | ||
2266 | Revert: | |
2267 | 2021-11-18 Martin Liska <mliska@suse.cz> | |
2268 | ||
2269 | * c-gimplify.c (genericize_c_loop): Use option directly. | |
2270 | ||
483092d3 GA |
2271 | 2021-11-18 Matthias Kretz <m.kretz@gsi.de> |
2272 | ||
2273 | * c-common.c (c_common_reswords): Add __builtin_assoc_barrier. | |
2274 | * c-common.h (enum rid): Add RID_BUILTIN_ASSOC_BARRIER. | |
2275 | ||
2276 | 2021-11-18 Martin Liska <mliska@suse.cz> | |
2277 | ||
2278 | * c-gimplify.c (genericize_c_loop): Use option directly. | |
2279 | ||
280d2838 GA |
2280 | 2021-11-17 Martin Uecker <uecker@gcc.gnu.org> |
2281 | ||
2282 | PR c/91038 | |
2283 | PR c/29970 | |
2284 | * c-common.c (pointer_int_sum): Make sure pointer expressions | |
2285 | are evaluated first when the size expression depends on for | |
2286 | variably-modified types. | |
2287 | ||
2288 | 2021-11-17 Marek Polacek <polacek@redhat.com> | |
2289 | ||
2290 | PR preprocessor/103026 | |
2291 | * c.opt (Wbidi-chars, Wbidi-chars=): New option. | |
2292 | ||
6b1695f4 GA |
2293 | 2021-11-16 Jason Merrill <jason@redhat.com> |
2294 | ||
2295 | * c-common.c (release_tree_vector): Only cache vecs smaller than | |
2296 | 16 elements. | |
2297 | ||
e2b57363 GA |
2298 | 2021-11-15 Jason Merrill <jason@redhat.com> |
2299 | ||
2300 | * c.opt: Add -fimplicit-constexpr. | |
2301 | * c-cppbuiltin.c: Define __cpp_implicit_constexpr. | |
2302 | * c-opts.c (c_common_post_options): Disable below C++14. | |
2303 | ||
2304 | 2021-11-15 Jakub Jelinek <jakub@redhat.com> | |
2305 | ||
2306 | * c-omp.c (c_omp_split_clauses) <case OMP_CLAUSE_THREAD_LIMIT>: | |
2307 | Duplicate to both OMP_TARGET and OMP_TEAMS. | |
2308 | ||
8d36a0d2 GA |
2309 | 2021-11-10 Marek Polacek <polacek@redhat.com> |
2310 | ||
2311 | PR c++/101940 | |
2312 | * c-pragma.c (handle_pragma_diagnostic): Handle #pragma GCC diagnostic | |
2313 | ignored_attributes. | |
2314 | ||
c9b1334e GA |
2315 | 2021-11-09 David Malcolm <dmalcolm@redhat.com> |
2316 | ||
2317 | * c-pragma.c (GCC_BAD_AT): New macro. | |
2318 | (GCC_BAD2_AT): New macro. | |
2319 | (handle_pragma_pack): Use the location of the pertinent token when | |
2320 | issuing diagnostics about invalid constants/actions, and trailing | |
2321 | junk. | |
2322 | (handle_pragma_target): Likewise for non-string "GCC option". | |
2323 | (handle_pragma_message): Likewise for trailing junk. | |
2324 | ||
18ae471f GA |
2325 | 2021-11-03 Joseph Myers <joseph@codesourcery.com> |
2326 | ||
2327 | PR c/103031 | |
2328 | * c-common.c (convert_and_check): Add argument init_const. Call | |
2329 | convert_init if init_const. | |
2330 | * c-common.h (convert_and_check): Update prototype. | |
2331 | (convert_init): New prototype. | |
2332 | ||
cf82e8d9 GA |
2333 | 2021-11-01 David Malcolm <dmalcolm@redhat.com> |
2334 | ||
2335 | * c-lex.c (c_lex_with_flags): When complaining about non-printable | |
2336 | CPP_OTHER tokens, set the "escape on output" flag. | |
2337 | ||
04a2cf3f GA |
2338 | 2021-10-27 Jakub Jelinek <jakub@redhat.com> |
2339 | ||
2340 | * c-omp.c (c_omp_check_loop_iv_r): Don't clear 3rd bit for | |
2341 | POINTER_PLUS_EXPR. | |
2342 | (c_omp_check_nonrect_loop_iv): Handle POINTER_PLUS_EXPR. | |
2343 | (c_omp_check_loop_iv): Set kind even if the iterator is non-integral. | |
2344 | ||
2345 | 2021-10-27 Jakub Jelinek <jakub@redhat.com> | |
2346 | ||
2347 | PR c++/102854 | |
2348 | * c-common.h (c_omp_check_loop_iv_exprs): Add enum tree_code argument. | |
2349 | * c-omp.c (c_omp_check_loop_iv_r): For trees other than decls, | |
2350 | TREE_VEC, PLUS_EXPR, MINUS_EXPR, MULT_EXPR, POINTER_PLUS_EXPR or | |
2351 | conversions temporarily clear the 3rd bit from d->kind while walking | |
2352 | subtrees. | |
2353 | (c_omp_check_loop_iv_exprs): Add CODE argument. Or in 4 into data.kind | |
2354 | if possibly non-rectangular. | |
2355 | ||
ae5c5406 GA |
2356 | 2021-10-21 Jakub Jelinek <jakub@redhat.com> |
2357 | ||
2358 | PR middle-end/64888 | |
2359 | * c-omp.c (c_omp_predefined_variable): Return true also for | |
2360 | ubsan_create_data created artificial variables. | |
2361 | ||
5d5885c9 GA |
2362 | 2021-10-14 Joseph Myers <joseph@codesourcery.com> |
2363 | ||
2364 | * c-format.c (printf_length_specs, scanf_length_specs) | |
2365 | (print_char_table, scan_char_table): Support DFP formats for C2X. | |
2366 | * c-format.h (TEX_D32, TEX_D64, TEX_D128): Remove. | |
2367 | (T2X_D32, T2X_D64, T2X_D128): New macros. | |
2368 | ||
2369 | 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com> | |
2370 | ||
2371 | * c-omp.c (c_omp_check_context_selector): Rename to | |
2372 | omp_check_context_selector and move to omp-general.c. | |
2373 | (c_omp_mark_declare_variant): Rename to omp_mark_declare_variant and | |
2374 | move to omp-general.c. | |
2375 | ||
52055987 GA |
2376 | 2021-10-12 Joseph Myers <joseph@codesourcery.com> |
2377 | ||
2378 | * c-format.c (print_char_table): Add %b and %B formats. | |
2379 | (scan_char_table): Add %b format. | |
2380 | * c-format.h (T2X_UI, T2X_UL, T2X_ULL, T2X_US, T2X_UC, T2X_ST) | |
2381 | (T2X_UPD, T2X_UIM): New macros. | |
2382 | ||
2383 | 2021-10-12 Jakub Jelinek <jakub@redhat.com> | |
2384 | ||
2385 | * c-omp.c (c_finish_omp_atomic): Use | |
2386 | clear_padding_type_may_have_padding_p. | |
2387 | ||
ce6eec39 GA |
2388 | 2021-10-08 Martin Liska <mliska@suse.cz> |
2389 | ||
2390 | * c-opts.c (c_common_post_options): Use new macro | |
2391 | OPTION_SET_P. | |
2392 | ||
50e20ee6 GA |
2393 | 2021-10-07 Martin Liska <mliska@suse.cz> |
2394 | ||
2395 | * c-common.c (parse_optimize_options): Make | |
2396 | save_opt_decoded_options a pointer type. | |
2397 | ||
57c7ec62 GA |
2398 | 2021-10-06 Jakub Jelinek <jakub@redhat.com> |
2399 | ||
2400 | PR tree-optimization/102571 | |
2401 | * c-omp.c (c_finish_omp_atomic): Optimize the case where type has | |
2402 | padding, but the non-padding bits are contiguous set of bytes | |
2403 | by adjusting the memcmp call arguments instead of emitting | |
2404 | __builtin_clear_padding and then comparing all the type's bytes. | |
2405 | ||
2406 | 2021-10-06 Jakub Jelinek <jakub@redhat.com> | |
2407 | ||
2408 | PR c++/102612 | |
2409 | * c-cppbuiltin.c (c_cpp_builtins): For -std=c++23 predefine | |
2410 | __cpp_constexpr to 202110L rather than 201907L. | |
2411 | ||
da9c5f78 GA |
2412 | 2021-10-04 Marek Polacek <polacek@redhat.com> |
2413 | ||
2414 | PR c++/97573 | |
2415 | * c-common.h (do_warn_array_compare): Declare. | |
2416 | * c-warn.c (do_warn_array_compare): New. | |
2417 | * c.opt (Warray-compare): New option. | |
2418 | ||
e3e07b89 GA |
2419 | 2021-10-02 Iain Sandoe <iain@sandoe.co.uk> |
2420 | ||
2421 | * c-format.c: Remove a test of TARGET_FORMAT_TYPES with | |
2422 | NULL, this is not needed. | |
2423 | ||
9d116bcc GA |
2424 | 2021-10-01 Martin Sebor <msebor@redhat.com> |
2425 | ||
2426 | PR c/102103 | |
2427 | * c-common.c (decl_with_nonnull_addr_p): Handle members. | |
2428 | Check and perform warning suppression. | |
2429 | (c_common_truthvalue_conversion): Enhance warning suppression. | |
2430 | ||
2431 | 2021-10-01 Martin Liska <mliska@suse.cz> | |
2432 | ||
2433 | PR target/102552 | |
2434 | * c-common.c (parse_optimize_options): decoded_options[0] is | |
3d3b561f ML |
2435 | used for program name, so merged_decoded_options should also |
2436 | respect that. | |
9d116bcc GA |
2437 | |
2438 | 2021-10-01 Jakub Jelinek <jakub@redhat.com> | |
2439 | Richard Biener <rguenther@suse.de> | |
2440 | ||
2441 | PR sanitizer/102515 | |
2442 | * c-ubsan.c (ubsan_instrument_division): Check the right | |
2443 | flag_sanitize_recover bit, depending on which sanitization | |
2444 | is done. Sanitize INT_MIN / -1 under SANITIZE_SI_OVERFLOW | |
2445 | rather than SANITIZE_DIVIDE. If both SANITIZE_SI_OVERFLOW | |
2446 | and SANITIZE_DIVIDE is enabled, neither check is known | |
2447 | to be false and flag_sanitize_recover bits for those two | |
2448 | aren't the same, emit both __ubsan_handle_divrem_overflow | |
2449 | and __ubsan_handle_divrem_overflow_abort calls. | |
2450 | ||
2451 | 2021-10-01 Martin Liska <mliska@suse.cz> | |
2452 | ||
2453 | * c-common.c (parse_optimize_options): Combine optimize | |
2454 | options with what was provided on the command line. | |
2455 | ||
2456 | 2021-10-01 Jakub Jelinek <jakub@redhat.com> | |
2457 | ||
2458 | * c-omp.c (c_omp_split_clauses): Also copy | |
2459 | OMP_CLAUSE_ORDER_REPRODUCIBLE. | |
2460 | ||
cf966403 GA |
2461 | 2021-09-27 Martin Liska <mliska@suse.cz> |
2462 | ||
2463 | * c-opts.c (c_common_init_options_struct): Set also | |
3d3b561f | 2464 | x_flag_default_complex_method. |
cf966403 | 2465 | |
e4777439 GA |
2466 | 2021-09-22 Jakub Jelinek <jakub@redhat.com> |
2467 | ||
2468 | * c-omp.c (c_omp_split_clauses): Copy over OMP_CLAUSE_ALLOCATE_ALIGN. | |
2469 | ||
62498024 GA |
2470 | 2021-09-20 Matthias Kretz <m.kretz@gsi.de> |
2471 | ||
2472 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define or | |
2473 | undefine __RECIPROCAL_MATH__, __NO_SIGNED_ZEROS__, | |
2474 | __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__, and | |
2475 | __ROUNDING_MATH__ according to the new optimization flags. | |
2476 | ||
cf74e7b5 GA |
2477 | 2021-09-18 Jakub Jelinek <jakub@redhat.com> |
2478 | ||
2479 | * c-omp.c (c_omp_split_clauses): Split order clause also to | |
2480 | distribute construct. Copy over OMP_CLAUSE_ORDER_UNCONSTRAINED. | |
2481 | ||
0a4cb439 GA |
2482 | 2021-09-17 Jakub Jelinek <jakub@redhat.com> |
2483 | ||
2484 | * c-omp.c (c_finish_omp_atomic): Avoid creating | |
2485 | TARGET_EXPR if test is true, use create_tmp_var_raw instead of | |
2486 | create_tmp_var and add a zero initializer to TARGET_EXPRs that | |
2487 | had NULL initializer. When omitting operands after v = x, | |
2488 | use type of v rather than type of x. Fix type of vtmp | |
2489 | TARGET_EXPR. | |
2490 | ||
07985c47 GA |
2491 | 2021-09-13 Jason Merrill <jason@redhat.com> |
2492 | ||
2493 | * c.opt: Add -Winterference-size. | |
2494 | * c-cppbuiltin.c (cpp_atomic_builtins): Add __GCC_DESTRUCTIVE_SIZE | |
2495 | and __GCC_CONSTRUCTIVE_SIZE. | |
2496 | ||
a26206ec GA |
2497 | 2021-09-10 Jakub Jelinek <jakub@redhat.com> |
2498 | ||
2499 | * c-common.h (c_finish_omp_atomic): Add r and weak arguments. | |
2500 | * c-omp.c: Include gimple-fold.h. | |
2501 | (c_finish_omp_atomic): Add r and weak arguments. Add support for | |
2502 | OpenMP 5.1 atomics. | |
2503 | ||
f84e2f0b GA |
2504 | 2021-09-09 qing zhao <qing.zhao@oracle.com> |
2505 | ||
2506 | * c-attribs.c (handle_uninitialized_attribute): New function. | |
2507 | (c_common_attribute_table): Add "uninitialized" attribute. | |
2508 | ||
b6db7cd4 GA |
2509 | 2021-09-08 liuhongt <hongtao.liu@intel.com> |
2510 | ||
2511 | * c-common.c (excess_precision_mode_join): Update below comments. | |
2512 | (c_ts18661_flt_eval_method): Set excess_precision_type to | |
2513 | EXCESS_PRECISION_TYPE_FLOAT16 when -fexcess-precision=16. | |
2514 | * c-cppbuiltin.c (cpp_atomic_builtins): Update below comments. | |
2515 | (c_cpp_flt_eval_method_iec_559): Set excess_precision_type to | |
2516 | EXCESS_PRECISION_TYPE_FLOAT16 when -fexcess-precision=16. | |
2517 | ||
b2748138 GA |
2518 | 2021-09-07 Marcel Vollweiler <marcel@codesourcery.com> |
2519 | ||
2520 | * c-omp.c (c_finish_omp_flush): Handle MEMMODEL_SEQ_CST. | |
2521 | ||
7b739540 GA |
2522 | 2021-09-03 Eric Botcazou <ebotcazou@adacore.com> |
2523 | ||
2524 | * c-ada-spec.c (dump_ads): Generate pragmas to disable style checks | |
2525 | and -gnatwu warning for the package specification. | |
2526 | ||
e11c6046 GA |
2527 | 2021-09-01 Iain Sandoe <iain@sandoe.co.uk> |
2528 | ||
2529 | * c-attribs.c (handle_unavailable_attribute): New. | |
2530 | ||
1e2f030b GA |
2531 | 2021-08-30 Jason Merrill <jason@redhat.com> |
2532 | ||
2533 | * c.opt: Add -Wmissing-requires. | |
2534 | ||
85d77ac4 GA |
2535 | 2021-08-25 Lewis Hyatt <lhyatt@gmail.com> |
2536 | ||
2537 | PR other/93067 | |
2538 | * c-opts.c (c_common_input_charset_cb): New function. | |
2539 | (c_common_post_options): Call new function | |
2540 | diagnostic_initialize_input_context(). | |
2541 | ||
7c9e1645 GA |
2542 | 2021-08-20 Tobias Burnus <tobias@codesourcery.com> |
2543 | ||
2544 | * c-format.c (gcc_gfc_length_specs): Add 'll' and 'w'. | |
2545 | (gcc_gfc_char_table): Add T9L_LL and T9L_ULL to | |
2546 | "di" and "u", respecitively; fill with BADLEN to match | |
2547 | size of 'types'. | |
2548 | (get_init_dynamic_hwi): Split off from ... | |
2549 | (init_dynamic_diag_info): ... here. Call it. | |
2550 | (init_dynamic_gfc_info): Call it. | |
2551 | ||
2552 | 2021-08-20 Jakub Jelinek <jakub@redhat.com> | |
2553 | ||
2554 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ERROR. | |
2555 | * c-pragma.c (omp_pragmas): Add error directive. | |
2556 | * c-omp.c (omp_directives): Uncomment error directive entry. | |
2557 | ||
6e529985 GA |
2558 | 2021-08-18 Jakub Jelinek <jakub@redhat.com> |
2559 | ||
2560 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_NOTHING. | |
2561 | * c-pragma.c (omp_pragmas): Add nothing directive. | |
2562 | * c-omp.c (omp_directives): Uncomment nothing directive entry. | |
2563 | ||
2d14d64b GA |
2564 | 2021-08-17 Jakub Jelinek <jakub@redhat.com> |
2565 | ||
2566 | PR c++/101539 | |
2567 | * c-common.h (enum rid): Add RID_IS_LAYOUT_COMPATIBLE. | |
2568 | * c-common.c (c_common_reswords): Add __is_layout_compatible. | |
2569 | ||
2570 | 2021-08-17 Matt Jacobson <mhjacobson@me.com> | |
2571 | ||
2572 | * c-opts.c (c_common_post_options): Default to | |
2573 | flag_objc_sjlj_exceptions = 1 only when flag_objc_abi < 2. | |
2574 | ||
2575 | 2021-08-17 Jakub Jelinek <jakub@redhat.com> | |
2576 | ||
2577 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCOPE. | |
2578 | * c-pragma.c (omp_pragmas): Add scope construct. | |
2579 | * c-omp.c (omp_directives): Uncomment scope directive entry. | |
2580 | ||
9d1d9fc8 GA |
2581 | 2021-08-16 Sebastian Huber <sebastian.huber@embedded-brains.de> |
2582 | ||
2583 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
2584 | __LIBGCC_GCOV_TYPE_SIZE if flag_building_libgcc is true. | |
2585 | ||
72be20e2 GA |
2586 | 2021-08-12 Jakub Jelinek <jakub@redhat.com> |
2587 | ||
2588 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_MASKED. | |
2589 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FILTER. | |
2590 | * c-pragma.c (omp_pragmas_simd): Add masked construct. | |
2591 | * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_MASKED | |
2592 | enumerator. | |
2593 | (c_finish_omp_masked): Declare. | |
2594 | * c-omp.c (c_finish_omp_masked): New function. | |
2595 | (c_omp_split_clauses): Handle combined masked constructs. | |
2596 | ||
4d17ca1b GA |
2597 | 2021-07-30 Jakub Jelinek <jakub@redhat.com> |
2598 | ||
2599 | PR c++/101539 | |
2600 | * c-common.h (enum rid): Add RID_IS_POINTER_INTERCONVERTIBLE_BASE_OF. | |
2601 | * c-common.c (c_common_reswords): Add | |
2602 | __is_pointer_interconvertible_base_of. | |
2603 | ||
2604 | 2021-07-29 Richard Biener <rguenther@suse.de> | |
2605 | ||
2606 | PR c/101512 | |
2607 | * c-common.c (c_common_mark_addressable_vec): Look through | |
2608 | C_MAYBE_CONST_EXPR even if not at the toplevel. | |
2609 | ||
af3f12e6 GA |
2610 | 2021-07-27 Martin Sebor <msebor@redhat.com> |
2611 | ||
2612 | PR c/101585 | |
2613 | * c-warn.c (warn_parm_ptrarray_mismatch): Use OEP_DECL_NAME. | |
2614 | ||
ead235f6 GA |
2615 | 2021-07-23 Jakub Jelinek <jakub@redhat.com> |
2616 | ||
2617 | * c-lex.c (c_common_has_attribute): Call canonicalize_attr_name also | |
2618 | on attr_id. Return 1 for omp::directive or omp::sequence in C++11 | |
2619 | and later. | |
2620 | ||
2621 | 2021-07-23 Jakub Jelinek <jakub@redhat.com> | |
2622 | ||
2623 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP__START_ and | |
2624 | PRAGMA_OMP__LAST_ enumerators. | |
2625 | ||
419c6c68 GA |
2626 | 2021-07-21 Thomas Schwinge <thomas@codesourcery.com> |
2627 | Joseph Myers <joseph@codesourcery.com> | |
2628 | Cesar Philippidis <cesar@codesourcery.com> | |
2629 | ||
2630 | * c-pragma.h (pragma_omp_clause): Add 'PRAGMA_OACC_CLAUSE_NOHOST'. | |
2631 | ||
92d45509 GA |
2632 | 2021-07-20 Martin Sebor <msebor@redhat.com> |
2633 | ||
2634 | * c-common.c (c_build_shufflevector): Adjust by-value argument to | |
2635 | by-const-reference. | |
2636 | * c-common.h (c_build_shufflevector): Same. | |
2637 | ||
87277b6a GA |
2638 | 2021-07-16 Andrew Pinski <apinski@marvell.com> |
2639 | ||
2640 | PR c/101453 | |
2641 | * c-common.c (parse_optimize_options): Use the correct | |
2642 | size for buffer. | |
2643 | ||
d97d71a1 GA |
2644 | 2021-07-15 Martin Sebor <msebor@redhat.com> |
2645 | ||
2646 | PR c/101289 | |
2647 | PR c/97548 | |
2648 | * c-warn.c (warn_parm_array_mismatch): Use OEP_DECL_NAME. | |
2649 | ||
c4fee1c6 GA |
2650 | 2021-07-14 Jason Merrill <jason@redhat.com> |
2651 | ||
2652 | * c-opts.c (c_common_post_options): Set -fdelete-dead-exceptions. | |
2653 | ||
6fba0eea GA |
2654 | 2021-07-06 Martin Sebor <msebor@redhat.com> |
2655 | ||
2656 | * c-format.c (gcc_tdiag_char_table): Remove support for %G and %K. | |
3d3b561f ML |
2657 | (gcc_cdiag_char_table): Same. |
2658 | (gcc_cxxdiag_char_table): Same. | |
6fba0eea | 2659 | |
7a60a6e8 GA |
2660 | 2021-07-02 Jakub Jelinek <jakub@redhat.com> |
2661 | ||
2662 | * c-common.h (enum c_omp_directive_kind): New enum. | |
2663 | (struct c_omp_directive): New type. | |
2664 | (c_omp_categorize_directive): Declare. | |
2665 | * c-omp.c (omp_directives): New variable. | |
2666 | (c_omp_categorize_directive): New function. | |
2667 | ||
bea7c16a GA |
2668 | 2021-07-01 Eric Botcazou <ebotcazou@adacore.com> |
2669 | ||
2670 | * c-ada-spec.c (packed_layout): New global variable. | |
2671 | (dump_ada_declaration): Set it upon seeing a packed record type. | |
2672 | Do not put the "aliased" keyword if it is set. | |
2673 | (dump_ada_structure): Add Pack aspect if it is set and clear it. | |
2674 | ||
2675 | 2021-07-01 Eric Botcazou <ebotcazou@adacore.com> | |
2676 | ||
2677 | * c-ada-spec.c (check_name): Rename into... | |
2678 | (check_type_name_conflict): ...this. Minor tweak. | |
2679 | (dump_ada_function_declaration): Adjust to above renaming. | |
2680 | (dump_ada_array_domains): Fix oversight. | |
2681 | (dump_ada_declaration): Call check_type_name_conflict for variables. | |
2682 | ||
90708f87 GA |
2683 | 2021-06-25 Martin Sebor <msebor@redhat.com> |
2684 | ||
2685 | * c-common.c (c_wrap_maybe_const): Remove TREE_NO_WARNING. | |
2686 | (c_common_truthvalue_conversion): Replace direct uses of | |
2687 | TREE_NO_WARNING with warning_suppressed_p, suppress_warning, and | |
2688 | copy_no_warning. | |
2689 | (check_function_arguments_recurse): Same. | |
2690 | * c-gimplify.c (c_gimplify_expr): Same. | |
2691 | * c-warn.c (overflow_warning): Same. | |
2692 | (warn_logical_operator): Same. | |
2693 | (warn_if_unused_value): Same. | |
2694 | (do_warn_unused_parameter): Same. | |
2695 | ||
9aa8327e GA |
2696 | 2021-06-24 Jakub Jelinek <jakub@redhat.com> |
2697 | ||
2698 | * c-common.h (enum c_omp_region_type): Add C_ORT_TARGET and | |
2699 | C_ORT_OMP_TARGET. | |
2700 | * c-omp.c (c_omp_split_clauses): For OMP_CLAUSE_IN_REDUCTION on | |
2701 | combined target constructs also add map (always, tofrom:) clause. | |
2702 | ||
ede6c356 GA |
2703 | 2021-06-15 Robin Dapp <rdapp@linux.ibm.com> |
2704 | ||
2705 | * c-attribs.c (common_handle_aligned_attribute): Remove short | |
2706 | circuit and dead code. | |
2707 | ||
8dc48181 GA |
2708 | 2021-06-14 Jonathan Wakely <jwakely@redhat.com> |
2709 | ||
2710 | PR c++/101052 | |
2711 | * known-headers.cc (get_stdlib_header_for_name): Add known | |
2712 | headers for EXIT_FAILURE, EXIT_SUCCESS, abort, atexit, calloc, | |
2713 | exit, and getenv. | |
2714 | ||
8b8c3912 GA |
2715 | 2021-06-12 Jason Merrill <jason@redhat.com> |
2716 | ||
2717 | * c-attribs.c (handle_unused_attribute): Handle FIELD_DECL. | |
2718 | ||
f16f65f8 GA |
2719 | 2021-06-11 Jakub Jelinek <jakub@redhat.com> |
2720 | ||
2721 | PR c++/100974 | |
2722 | * c-cppbuiltin.c (c_cpp_builtins): Predefine __cpp_if_consteval for | |
2723 | -std=c++2b for P1938R3 consteval if support. | |
2724 | ||
4f625f47 GA |
2725 | 2021-06-09 Jason Merrill <jason@redhat.com> |
2726 | ||
2727 | PR c++/100879 | |
2728 | * c-warn.c (warn_for_sign_compare): Remove C++ enum mismatch | |
2729 | warning. | |
2730 | ||
438aac59 GA |
2731 | 2021-06-07 Martin Liska <mliska@suse.cz> |
2732 | ||
2733 | * c-target.def: Split long lines and replace them | |
2734 | with '\n\'. | |
2735 | ||
600f90cb GA |
2736 | 2021-06-04 Martin Sebor <msebor@redhat.com> |
2737 | ||
2738 | PR c/100783 | |
2739 | * c-attribs.c (positional_argument): Bail on erroneous types. | |
2740 | ||
2741 | 2021-06-04 Martin Sebor <msebor@redhat.com> | |
2742 | ||
2743 | * c-warn.c (warn_parm_array_mismatch): Check TREE_PURPOSE to test | |
2744 | for element presence. | |
2745 | ||
440c8a0a GA |
2746 | 2021-06-03 Eric Botcazou <ebotcazou@adacore.com> |
2747 | ||
2748 | * c-ada-spec.c (dump_ada_macros): Minor tweaks. | |
2749 | (dump_ada_decl_name): Likewise. | |
2750 | (dump_anonymous_type_name): Remove parent parameter and adjust. | |
2751 | (dump_sloc): Minor tweak. | |
2752 | (dump_ada_array_type): Remove type parameter and adjust. | |
2753 | (dump_ada_enum_type): Remove parent parameter and adjust. | |
2754 | (dump_ada_node): Adjust calls to above functions. | |
2755 | (dumped_anonymous_types): New global variable. | |
2756 | (dump_nested_types_1): Rename into... | |
2757 | (dump_nested_types): ...this. | |
2758 | (dump_nested_type): Remove parent and dumped_types parameters. | |
2759 | <ARRAY_TYPE>: Replace dumped_types with dumped_anonymous_types. | |
2760 | Adjust calls to dump_anonymous_type_name and dump_ada_array_type. | |
2761 | (dump_ada_specs): Initialize and free dumped_anonymous_types. | |
2762 | ||
2763 | 2021-06-03 Eric Botcazou <ebotcazou@adacore.com> | |
2764 | ||
2765 | * c-ada-spec.c (pp_ada_tree_identifier): Tidy up. | |
2766 | (dump_ada_node) <POINTER_TYPE>: Deal specially with external subtypes. | |
2767 | ||
2768 | 2021-06-03 Eric Botcazou <ebotcazou@adacore.com> | |
2769 | ||
2770 | * c-ada-spec.c (dump_ada_enum_type): Dump a prefix for constants. | |
2771 | (htable_t): New typedef. | |
2772 | (overloaded_names): Use it. | |
2773 | (add_name): New function. | |
2774 | (init_overloaded_names): Use add_name to populate the table and add | |
2775 | special cases for sigaction and stat. | |
2776 | (overloaded_name_p): Rename into... | |
2777 | (overloading_index): ...this. Do not initialize overloaded_names table | |
2778 | here. Return the index or zero. | |
2779 | (dump_ada_declaration): Minor tweaks. Do not skip overloaded functions | |
2780 | but add an overloading suffix instead. | |
2781 | (dump_ada_specs): Initialize overloaded_names tables here. | |
2782 | ||
b75978d1 GA |
2783 | 2021-06-01 Martin Liska <mliska@suse.cz> |
2784 | ||
2785 | PR other/100759 | |
2786 | * c-attribs.c (handle_optimize_attribute): Limit sanity check | |
2787 | to a situation where we are not in processing of an optimize | |
2788 | pragma. | |
2789 | * c-pragma.c (handle_pragma_pop_options): Restore target | |
2790 | options. | |
2791 | ||
ee682192 GA |
2792 | 2021-05-31 Indu Bhagat <indu.bhagat@oracle.com> |
2793 | ||
2794 | PR testsuite/100749 | |
2795 | * c-pch.c (c_common_valid_pch): Use xstrdup for debug format set names. | |
2796 | ||
2797 | 2021-05-31 Richard Biener <rguenther@suse.de> | |
2798 | ||
2799 | PR c++/88601 | |
2800 | * c-common.c: Include tree-vector-builder.h and | |
2801 | vec-perm-indices.h. | |
2802 | (c_common_reswords): Add __builtin_shufflevector. | |
2803 | (c_build_shufflevector): New funtion. | |
2804 | * c-common.h (enum rid): Add RID_BUILTIN_SHUFFLEVECTOR. | |
2805 | (c_build_shufflevector): Declare. | |
2806 | ||
48166757 GA |
2807 | 2021-05-28 Jakub Jelinek <jakub@redhat.com> |
2808 | ||
2809 | PR middle-end/99928 | |
2810 | * c-omp.c (c_omp_split_clauses): For reduction clause if combined with | |
2811 | target add a map tofrom clause with OMP_CLAUSE_MAP_IMPLICIT. | |
2812 | ||
2813 | 2021-05-28 Tobias Burnus <tobias@codesourcery.com> | |
2814 | ||
2815 | * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_AFFINITY. | |
2816 | ||
2bc6dace GA |
2817 | 2021-05-25 Martin Liska <mliska@suse.cz> |
2818 | ||
2819 | PR tree-optimization/92860 | |
2820 | PR target/99592 | |
2821 | * c-attribs.c (handle_optimize_attribute): Save target node | |
2822 | before calling parse_optimize_options and save it in case | |
2823 | it changes. | |
2824 | * c-pragma.c (handle_pragma_target): Similarly for pragma. | |
2825 | (handle_pragma_pop_options): Likewise here. | |
2826 | ||
2827 | 2021-05-25 Martin Liska <mliska@suse.cz> | |
2828 | ||
2829 | * c-attribs.c (handle_no_sanitize_coverage_attribute): New. | |
2830 | ||
2831 | 2021-05-25 Jakub Jelinek <jakub@redhat.com> | |
2832 | ||
2833 | PR middle-end/99928 | |
2834 | * c-omp.c (c_omp_split_clauses): Copy reduction to teams when teams is | |
2835 | combined with simd and not with taskloop or for. | |
2836 | ||
2832d51b GA |
2837 | 2021-05-21 Jakub Jelinek <jakub@redhat.com> |
2838 | ||
2839 | PR middle-end/99928 | |
2840 | * c-omp.c (c_omp_split_clauses): Set OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT | |
2841 | on firstprivate clause copy going to target construct, and for | |
2842 | target simd set also OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET bit. | |
2843 | ||
ea34e2ed GA |
2844 | 2021-05-20 Jonathan Wakely <jwakely@redhat.com> |
2845 | ||
2846 | * c.opt (Wc++11-extensions, Wc++14-extensions) | |
2847 | (Wc++17-extensions, Wc++20-extensions, Wc++23-extensions): New | |
2848 | options. | |
2849 | ||
2850 | 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com> | |
2851 | ||
2852 | * c-lex.c (init_c_lex): Use dwarf_debuginfo_p. | |
2853 | ||
2854 | 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com> | |
2855 | ||
2856 | * c-opts.c (c_common_post_options): Adjust access to debug_type_names. | |
2857 | * c-pch.c (struct c_pch_validity): Use type uint32_t. | |
2858 | (pch_init): Renamed member. | |
2859 | (c_common_valid_pch): Adjust access to debug_type_names. | |
2860 | ||
65f32e5d GA |
2861 | 2021-05-19 Martin Sebor <msebor@redhat.com> |
2862 | ||
2863 | PR c/100619 | |
2864 | * c-attribs.c (build_attr_access_from_parms): Handle arbitrarily many | |
2865 | bounds. | |
2866 | ||
a8daf9a1 GA |
2867 | 2021-05-18 Richard Biener <rguenther@suse.de> |
2868 | ||
2869 | PR c/100547 | |
2870 | * c-attribs.c (type_valid_for_vector_size): Reject too large nunits. | |
2871 | Reword existing nunit diagnostic. | |
2872 | ||
a7ffc1ef GA |
2873 | 2021-05-17 Joern Rennecke <joern.rennecke@embecosm.com> |
2874 | ||
2875 | * c-common.c (braced_list_to_string): Return CTOR unchanged | |
2876 | if host and target character sizes don't match. | |
2877 | ||
87a7d10c GA |
2878 | 2021-05-14 Martin Liska <mliska@suse.cz> |
2879 | ||
2880 | * c.opt: Add Warning keyword for 2 options. | |
2881 | ||
f9af11c7 GA |
2882 | 2021-05-13 Martin Liska <mliska@suse.cz> |
2883 | ||
2884 | PR middle-end/100504 | |
2885 | * c-attribs.c (handle_target_clones_attribute): Expect a string | |
2886 | argument to target_clone argument. | |
2887 | ||
037e3661 GA |
2888 | 2021-05-11 Joseph Myers <joseph@codesourcery.com> |
2889 | ||
2890 | * c-lex.c (interpret_float): Handle digit separators for C2X. | |
2891 | ||
aa891c56 GA |
2892 | 2021-05-10 Martin Liska <mliska@suse.cz> |
2893 | ||
2894 | * c-ada-spec.c (print_destructor): Use startswith | |
2895 | function instead of strncmp. | |
2896 | (dump_ada_declaration): Likewise. | |
2897 | * c-common.c (disable_builtin_function): Likewise. | |
2898 | (def_builtin_1): Likewise. | |
2899 | * c-format.c (check_tokens): Likewise. | |
2900 | (check_plain): Likewise. | |
2901 | (convert_format_name_to_system_name): Likewise. | |
2902 | ||
e4ff4ffb GA |
2903 | 2021-04-28 Patrick McGehearty <patrick.mcgehearty@oracle.com> |
2904 | ||
2905 | * c-cppbuiltin.c (c_cpp_builtins): Add supporting macros for new | |
2906 | complex divide | |
2907 | ||
c0fa3f2f GA |
2908 | 2021-04-26 Thomas Schwinge <thomas@codesourcery.com> |
2909 | Nathan Sidwell <nathan@codesourcery.com> | |
2910 | Tom de Vries <vries@codesourcery.com> | |
2911 | Julian Brown <julian@codesourcery.com> | |
2912 | Kwok Cheung Yeung <kcy@codesourcery.com> | |
2913 | ||
2914 | * c.opt (Wopenacc-parallelism): New. | |
2915 | ||
6e81e015 GA |
2916 | 2021-04-19 Thomas Schwinge <thomas@codesourcery.com> |
2917 | ||
2918 | * c.opt (fopenacc-kernels=): Remove. | |
2919 | ||
019a9220 GA |
2920 | 2021-04-08 Jakub Jelinek <jakub@redhat.com> |
2921 | ||
2922 | * c-warn.c (do_warn_double_promotion): Fix comment typo, | |
2923 | occured -> occurred. | |
2924 | (check_alignment_of_packed_member): Fix a comment typo, | |
2925 | memeber -> member. | |
2926 | (warn_parm_ptrarray_mismatch): Fix comment typos, os -> of | |
2927 | and onless -> unless. | |
2928 | (warn_parm_array_mismatch): Fix comment typos, declaratation | |
2929 | -> declaration and woud -> would. Fix up comment indentation. | |
2930 | ||
2931 | 2021-04-08 Martin Sebor <msebor@redhat.com> | |
2932 | ||
2933 | PR middle-end/99883 | |
2934 | * c.opt (Wmismatched-new-delete): Correct spelling. | |
2935 | ||
b1da9916 GA |
2936 | 2021-04-05 Eric Botcazou <ebotcazou@adacore.com> |
2937 | ||
2938 | * c-ada-spec.c (is_simple_enum): Minor tweaks. | |
2939 | (dump_ada_enum_type): Add TYPE and PARENT parameters. For non-simple | |
2940 | enumeral types use again the type name for the enumeration constants. | |
2941 | (dump_ada_node): Adjust call to dump_ada_enum_type. | |
2942 | (dump_nested_type): Likewise. | |
2943 | ||
f1607029 GA |
2944 | 2021-04-01 Jason Merrill <jason@redhat.com> |
2945 | ||
2946 | PR c++/98481 | |
2947 | * c-opts.c (c_common_post_options): Bump latest_abi_version. | |
2948 | ||
4493b1c1 GA |
2949 | 2021-03-25 Jakub Jelinek <jakub@redhat.com> |
2950 | ||
2951 | PR c++/99565 | |
2952 | * c-warn.c (do_warn_duplicated_branches): Pass also | |
2953 | OEP_ADDRESS_OF_SAME_FIELD to operand_equal_p. | |
2954 | ||
6af7b307 GA |
2955 | 2021-03-20 Jakub Jelinek <jakub@redhat.com> |
2956 | ||
2957 | PR debug/99230 | |
2958 | * c-gimplify.c (c_genericize_control_stmt): Handle STATEMENT_LIST. | |
2959 | ||
ceae9533 GA |
2960 | 2021-03-05 Eric Botcazou <ebotcazou@adacore.com> |
2961 | ||
2962 | * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Dump nested types | |
2963 | after entering the separate class package, if any. | |
2964 | ||
67f10d28 GA |
2965 | 2021-03-04 Richard Biener <rguenther@suse.de> |
2966 | ||
2967 | * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator): | |
2968 | Handle ERROR_MARK. | |
2969 | ||
2970 | 2021-03-04 Jakub Jelinek <jakub@redhat.com> | |
2971 | ||
2972 | PR c/99325 | |
2973 | * c-ppoutput.c (print): Change src_line type from int to unsigned. | |
2974 | (token_streamer::stream) Likewise. | |
2975 | (maybe_print_line_1): Likewise. Don't strcmp src_file if src_loc is | |
2976 | UNKNOWN_LOCATION. | |
2977 | ||
f3641ac7 GA |
2978 | 2021-03-03 Jakub Jelinek <jakub@redhat.com> |
2979 | ||
2980 | PR c/99324 | |
2981 | * c-common.c (build_va_arg): Call c_common_mark_addressable_vec | |
2982 | instead of mark_addressable. Fix a comment typo - | |
2983 | neutrallly -> neutrally. | |
2984 | ||
2c83c3fb GA |
2985 | 2021-02-28 Jakub Jelinek <jakub@redhat.com> |
2986 | ||
2987 | PR c/99304 | |
2988 | * c-attribs.c (handle_malloc_attribute): Fix a typo in inform | |
2989 | message - refernced -> referenced. Remove superfluous space before | |
2990 | closing paren of function calls. | |
2991 | ||
daa68844 GA |
2992 | 2021-02-25 Nathan Sidwell <nathan@acm.org> |
2993 | ||
2994 | PR c++/99166 | |
2995 | * c.opt (-flang-info-module-cmi): Renamed option. | |
2996 | ||
50352c6c GA |
2997 | 2021-02-19 Nathan Sidwell <nathan@acm.org> |
2998 | ||
2999 | * c.opt (flang-info-module-read, flang-info-module-read=): New. | |
3000 | ||
bf81237e GA |
3001 | 2021-02-18 H.J. Lu <hjl.tools@gmail.com> |
3002 | ||
3003 | PR target/99113 | |
3004 | * c-attribs.c (c_common_attribute_table): Add the "retain" | |
3005 | attribute. | |
3006 | (handle_retain_attribute): New function. | |
3007 | ||
0e804ce3 GA |
3008 | 2021-02-16 Marek Polacek <polacek@redhat.com> |
3009 | ||
3010 | PR c++/99062 | |
3011 | * c-attribs.c (handle_assume_aligned_attribute): Check that the | |
3012 | alignment argument is non-negative. Tweak a warning message. | |
3013 | ||
fab095da GA |
3014 | 2021-02-12 Martin Sebor <msebor@redhat.com> |
3015 | ||
3016 | PR c/99055 | |
3017 | * c-warn.c (warn_parm_array_mismatch): Free strings returned from | |
3018 | print_generic_expr_to_str. | |
3019 | ||
4b37c3ea GA |
3020 | 2021-02-10 Richard Biener <rguenther@suse.de> |
3021 | ||
3022 | * c-common.c (parse_optimize_options): Free decoded_options. | |
3023 | ||
a19dd5e6 GA |
3024 | 2021-02-04 emsr <3dw4rd@verizon.net> |
3025 | ||
3026 | * c-cppbuiltin.c (c_cpp_builtins): __cpp_size_t_suffix=202011L. | |
3027 | ||
9faaa807 GA |
3028 | 2021-02-03 Ed Smith-Rowland <3dw4rd@verizon.net> |
3029 | ||
3030 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_size_t_suffix. | |
3031 | * c-lex.c (interpret_integer): Set node type for size literal. | |
3032 | ||
85d04a2e GA |
3033 | 2021-01-28 Jakub Jelinek <jakub@redhat.com> |
3034 | ||
3035 | * c.opt (-std=c++2a, -std=c++20, -std=gnu++2a, -std=gnu++20): Remove | |
3036 | draft from description. | |
3037 | (-std=c++2b): Fix a pasto, 2020 -> 2023. | |
3038 | ||
e62bb7f0 GA |
3039 | 2021-01-26 Paul Fee <paul.f.fee@gmail.com> |
3040 | ||
3041 | * c-common.h (cxx_dialect): Add cxx23 as a dialect. | |
3042 | * c.opt: Add options for -std=c++23, std=c++2b, -std=gnu++23 | |
3043 | and -std=gnu++2b | |
3044 | * c-opts.c (set_std_cxx23): New. | |
3045 | (c_common_handle_option): Set options when -std=c++23 is enabled. | |
3046 | (c_common_post_options): Adjust comments. | |
3047 | (set_std_cxx20): Likewise. | |
3048 | ||
161e4c08 GA |
3049 | 2021-01-25 Martin Sebor <msebor@redhat.com> |
3050 | ||
3051 | PR c++/98646 | |
3052 | * c-common.c (check_nonnull_arg): Adjust warning text. | |
3053 | ||
4c9bcd5c GA |
3054 | 2021-01-17 Martin Sebor <msebor@redhat.com> |
3055 | ||
3056 | * c-pretty-print.c (c_pretty_printer::primary_expression): Don't | |
3057 | assume SSA_NAME_IDENTIFIER evaluates to nonzero. | |
3058 | ||
59cf67d1 GA |
3059 | 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com> |
3060 | ||
3061 | * c-pragma.h (pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_DETACH. | |
3062 | Redefine PRAGMA_OACC_CLAUSE_DETACH. | |
3063 | ||
2f7f0d32 GA |
3064 | 2021-01-15 Jakub Jelinek <jakub@redhat.com> |
3065 | ||
3066 | PR tree-optimization/98597 | |
3067 | * c-pretty-print.c: Include options.h. | |
3068 | (c_fold_indirect_ref_for_warn): New function. | |
3069 | (print_mem_ref): Use it. If it returns something that has compatible | |
3070 | type and is TBAA compatible with zero offset, print it and return, | |
3071 | otherwise print it using offsetof syntax or array ref syntax. Fix up | |
3072 | printing if MEM_REFs first operand is ADDR_EXPR, or when the first | |
3073 | argument has pointer to array type. Print pointers using the standard | |
3074 | formatting. | |
3075 | ||
6851dda2 GA |
3076 | 2021-01-12 Martin Sebor <msebor@redhat.com> |
3077 | ||
3078 | PR c/98597 | |
3079 | PR c/98592 | |
3080 | * c-pretty-print.c (print_mem_ref): Avoid assuming MEM_REF operand | |
3081 | has pointer type. Remove redundant code. Avoid calling | |
3082 | gimple_canonical_types_compatible_p. | |
3083 | ||
7d187e4f GA |
3084 | 2021-01-07 Martin Sebor <msebor@redhat.com> |
3085 | ||
3086 | PR middle-end/98578 | |
3087 | * c-pretty-print.c (print_mem_ref): Strip array from access type. | |
3088 | Avoid assuming acces type's size is constant. Correct condition | |
3089 | guarding the printing of a parenthesis. | |
3090 | ||
942ae5be GA |
3091 | 2021-01-06 Martin Sebor <msebor@redhat.com> |
3092 | ||
3093 | PR c++/95768 | |
3094 | * c-pretty-print.c (c_pretty_printer::primary_expression): For | |
3095 | SSA_NAMEs print VLA names and GIMPLE defining statements. | |
3096 | (print_mem_ref): New function. | |
3097 | (c_pretty_printer::unary_expression): Call it. | |
3098 | ||
3099 | 2021-01-06 Richard Biener <rguenther@suse.de> | |
3100 | ||
3101 | PR tree-optimization/95582 | |
3102 | * c-attribs.c (c_common_attribute_table): Add entry for | |
3103 | signed_bool_precision. | |
3104 | (handle_signed_bool_precision_attribute): New. | |
3105 | ||
8daa719b GA |
3106 | 2020-12-24 Iain Sandoe <iain@sandoe.co.uk> |
3107 | ||
3108 | * c.opt: Add -stdlib= option and enumerations for | |
3109 | libstdc++ and libc++. | |
3110 | ||
eefe499f GA |
3111 | 2020-12-16 Martin Liska <mliska@suse.cz> |
3112 | ||
3113 | * c.opt: Remove usage of Report. | |
3114 | ||
d52945ce GA |
3115 | 2020-12-14 Martin Sebor <msebor@redhat.com> |
3116 | ||
3117 | PR middle-end/98166 | |
3118 | PR c++/57111 | |
3119 | PR middle-end/98160 | |
3120 | * c-attribs.c (maybe_add_noinline): New function. | |
3121 | (handle_malloc_attribute): Call it. Use ATTR_FLAG_INTERNAL. | |
3122 | Implicitly add attribute noinline to functions not declared inline | |
3123 | and warn on those. | |
3124 | ||
ca2bd949 GA |
3125 | 2020-12-09 Tobias Burnus <tobias@codesourcery.com> |
3126 | ||
3127 | * c-pragma.c (omp_pragmas): Add 'allocate'. | |
3128 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_ALLOCATE. | |
3129 | ||
f6e8e279 GA |
3130 | 2020-12-08 Jakub Jelinek <jakub@redhat.com> |
3131 | ||
3132 | PR c++/98187 | |
3133 | * c-pragma.c (omp_pragmas): Remove "master". | |
3134 | (omp_pragmas_simd): Add "master". | |
3135 | ||
bc8a7013 GA |
3136 | 2020-12-07 Marek Polacek <polacek@redhat.com> |
3137 | ||
3138 | PR c++/98126 | |
3139 | * c-common.c (verify_tree_lim_r): New function. | |
3140 | (verify_sequence_points): Use it. Use nullptr instead of 0. | |
3141 | ||
b8dd0ef7 GA |
3142 | 2020-12-03 Martin Sebor <msebor@redhat.com> |
3143 | ||
3144 | PR c++/90629 | |
3145 | PR middle-end/94527 | |
3146 | * c-attribs.c (handle_dealloc_attribute): New function. | |
3147 | (handle_malloc_attribute): Handle argument forms of attribute. | |
3148 | * c.opt (-Wmismatched-dealloc): New option. | |
3149 | (-Wmismatched-new-delete): New option. | |
3150 | ||
3151 | 2020-12-03 Jakub Jelinek <jakub@redhat.com> | |
3152 | ||
3153 | PR libstdc++/93121 | |
3154 | * c-common.h (enum rid): Add RID_BUILTIN_BIT_CAST. | |
3155 | * c-common.c (c_common_reswords): Add __builtin_bit_cast. | |
3156 | ||
e0f5e792 GA |
3157 | 2020-12-01 JeanHeyd Meneide <phdofthehouse@gmail.com> |
3158 | ||
3159 | * c-cppbuiltin.c (c_cpp_builtins): Add predefined | |
3160 | {__GNUC_EXECUTION_CHARSET_NAME} and | |
3161 | _WIDE_EXECUTION_CHARSET_NAME} macros. | |
3162 | ||
3163 | 2020-12-01 Nathan Sidwell <nathan@acm.org> | |
3164 | ||
3165 | * c-common.c (module, import, export): New internal tokens (with | |
3166 | trailing space). | |
3167 | * c-common.h (RID__MODULE, RID__IMPORT & RID__EXPORT): Enumerate | |
3168 | them. | |
3169 | (D_CXX_MODULES, D_CXX_MODULES_FLAGS): Enable them. | |
3170 | * c-cppbuiltin.c (c_cpp_builtins): Feature macro. | |
3171 | ||
3172 | 2020-12-01 Nathan Sidwell <nathan@acm.org> | |
3173 | ||
3174 | * c-opts.c (c_common_init_options): Ask for module dependencies. | |
3175 | (c_common_handle_option): Handle -Mmodules -Mno-modules. | |
3176 | * c-pch.c (c_common_valid_pch): ... does not play with C++ | |
3177 | modules. | |
3178 | * c.opt (Mmodules, Mno-modules): New preprocessor dependency | |
3179 | options. | |
3180 | (fmodules-ts, fmodule-header, fmodule-implicit-inline) | |
3181 | (fmodule-only, fmodule-mapper, fmodule-lazy) | |
3182 | (fmodule-version-ignore, Winvalid-imported-macros) | |
3183 | (flang-info-include-translate, flang-info-include-translate-not): | |
3184 | New options | |
3185 | ||
5fbf0ecb GA |
3186 | 2020-11-28 Eric Botcazou <ebotcazou@adacore.com> |
3187 | ||
3188 | * c-ada-spec.c (dump_nested_type) <RECORD_TYPE>: Remove obsolete code. | |
3189 | (dump_ada_structure): Also deal with convention, unchecked union and | |
3190 | bit-field for nested types. In the latter case, print an Alignment | |
3191 | aspect along with the Pack aspect. | |
3192 | ||
360258da GA |
3193 | 2020-11-25 Martin Sebor <msebor@redhat.com> |
3194 | ||
3195 | PR bootstrap/94982 | |
3196 | * c-attribs.c (handle_patchable_function_entry_attribute): Avoid | |
3197 | -Wformat-diag. | |
3198 | ||
1e2c9a27 GA |
3199 | 2020-11-24 Martin Sebor <msebor@redhat.com> |
3200 | ||
3201 | * c-warn.c (warn_parm_array_mismatch): Avoid invalid redeclarations. | |
3202 | ||
8e6198d0 GA |
3203 | 2020-11-23 Jozef Lawrynowicz <jozef.l@mittosystems.com> |
3204 | ||
3205 | * c-attribs.c (handle_special_var_sec_attribute): New. | |
3206 | (handle_noinit_attribute): Remove. | |
3207 | (attr_noinit_exclusions): Rename to... | |
3208 | (attr_section_exclusions): ...this, and add "persistent" attribute | |
3209 | exclusion. | |
3210 | (c_common_attribute_table): Add "persistent" attribute. | |
3211 | ||
7a97e2fc GA |
3212 | 2020-11-21 Aaron Sawdey <acsawdey@linux.ibm.com> |
3213 | ||
3214 | * c-pretty-print.c (c_pretty_printer::simple_type_specifier): | |
3215 | Treat opaque types like other types. | |
3216 | (c_pretty_printer::direct_abstract_declarator): Opaque types are | |
3217 | supported types. | |
3218 | ||
82e5048e GA |
3219 | 2020-11-20 Martin Sebor <msebor@redhat.com> |
3220 | ||
3221 | * c-warn.c (warn_parm_array_mismatch): Bail on invalid redeclarations | |
3222 | with fewer arguments. | |
3223 | ||
3224 | 2020-11-20 Martin Sebor <msebor@redhat.com> | |
3225 | ||
3226 | PR middle-end/97879 | |
3227 | * c-attribs.c (handle_access_attribute): Handle ATTR_FLAG_INTERNAL. | |
3228 | Error out on invalid modes. | |
3229 | ||
3230 | 2020-11-20 Jakub Jelinek <jakub@redhat.com> | |
3231 | ||
3232 | PR libstdc++/88101 | |
3233 | * c-common.c (check_builtin_function_arguments): Handle | |
3234 | BUILT_IN_CLEAR_PADDING. | |
3235 | ||
25bb75f8 GA |
3236 | 2020-11-18 Nathan Sidwell <nathan@acm.org> |
3237 | ||
3238 | * c-lex.c (c_lex_with_flags): CPP_HEADER_NAMEs can now be seen. | |
3239 | ||
4dabb037 GA |
3240 | 2020-11-17 Nathan Sidwell <nathan@acm.org> |
3241 | ||
3242 | * c-common.h (enum c_tree_index): Reorder to place lazy fields | |
3243 | after newly-added CTI_MODULE_HWM. | |
3244 | ||
3245 | 2020-11-17 Joseph Myers <joseph@codesourcery.com> | |
3246 | ||
3247 | * c-cppbuiltin.c (builtin_define_float_constants): Define | |
3248 | "*_IS_IEC_60559__" macros. | |
3249 | ||
3250 | 2020-11-17 Nathan Sidwell <nathan@acm.org> | |
3251 | ||
3252 | * c-lex.c: #include "langhooks.h". | |
3253 | (cb_undef): Maybe call preprocess_undef lang hook. | |
3254 | * c-opts.c (c_common_post_options): Maybe call preprocess_options | |
3255 | lang hook. | |
3256 | (push_command_line_include): Maybe call preprocess_main_file lang | |
3257 | hook. | |
3258 | (cb_file_change): Likewise. | |
3259 | * c-ppoutput.c: #include "langhooks.h. | |
3260 | (scan_translation_unit): Maybe call preprocess_token lang hook. | |
3261 | (class do_streamer): New, derive from token_streamer. | |
3262 | (directives_only_cb): Data pointer is do_streamer, call | |
3263 | preprocess_token lang hook. | |
3264 | (scan_translation_unit_directives_only): Use do_streamer. | |
3265 | (print_line_1): Move src_line recording to after string output. | |
3266 | (cb_undef): Maybe call preprocess_undef lang hook. | |
3267 | ||
3268 | 2020-11-17 Nathan Sidwell <nathan@acm.org> | |
3269 | ||
3270 | * c-ppoutput.c (scan_translation_unit): Use token_streamer, remove | |
3271 | code duplicating that functionality. | |
3272 | ||
3273 | 2020-11-17 Jakub Jelinek <jakub@redhat.com> | |
3274 | ||
3275 | PR c/90628 | |
3276 | * c-common.c (check_builtin_function_arguments) | |
3277 | <case BUILT_IN_ADD_OVERFLOW>: Diagnose when last argument is pointer | |
3278 | to _Atomic. For the TYPE_READONLY case, adjust message to be usable | |
3279 | for more builtins and argument positions. | |
3280 | ||
29c5d9ce GA |
3281 | 2020-11-16 Iain Sandoe <iain@sandoe.co.uk> |
3282 | ||
3283 | PR objc/97854 | |
3284 | * stub-objc.c: Include c-common.h to declare enum rid. | |
3285 | ||
77f67db2 GA |
3286 | 2020-11-13 Jakub Jelinek <jakub@redhat.com> |
3287 | ||
3288 | PR c++/63287 | |
3289 | * c-cppbuiltin.c: Include configargs.h. | |
3290 | (c_cpp_builtins): For C++11 and later if THREAD_MODEL_SPEC is not | |
3291 | defined, predefine __STDCPP_THREADS__ to 1 unless thread_model is | |
3292 | "single". | |
3293 | ||
3294 | 2020-11-13 Gergö Barany <gergo@codesourcery.com> | |
3295 | Thomas Schwinge <thomas@codesourcery.com> | |
3296 | ||
3297 | * c.opt (fopenacc-kernels): Add. | |
3298 | ||
3299 | 2020-11-13 Jason Merrill <jason@redhat.com> | |
3300 | ||
3301 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_using_enum. | |
3302 | ||
3303 | 2020-11-13 Piotr H. Dabrowski <phd@phd.re> | |
3304 | ||
3305 | PR c++/91318 | |
3306 | * c-cppbuiltin.c: c_cpp_builtins_optimize_pragma(): use cpp_define_unused() | |
3307 | ||
3308 | 2020-11-13 Martin Liska <mliska@suse.cz> | |
3309 | ||
3310 | * c-attribs.c (build_attr_access_from_parms): Format properly. | |
3311 | ||
3312 | 2020-11-13 Iain Sandoe <iain@sandoe.co.uk> | |
3313 | ||
3314 | PR objc/90707 | |
3315 | * c-common.c (c_common_reswords): null_unspecified, nullable, | |
3316 | nonnull, null_resettable: New keywords. | |
3317 | * c-common.h (enum rid): RID_NULL_UNSPECIFIED, RID_NULLABLE, | |
3318 | RID_NONNULL, RID_NULL_RESETTABLE: New. | |
3319 | (OBJC_IS_PATTR_KEYWORD): Include nullability keywords in the | |
3320 | ranges accepted for property attributes. | |
3321 | * c-attribs.c (handle_objc_nullability_attribute): New. | |
3322 | * c-objc.h (enum objc_property_attribute_group): Add | |
3323 | OBJC_PROPATTR_GROUP_NULLABLE. | |
3324 | (enum objc_property_attribute_kind):Add | |
3325 | OBJC_PROPERTY_ATTR_NULL_UNSPECIFIED, OBJC_PROPERTY_ATTR_NULLABLE, | |
3326 | OBJC_PROPERTY_ATTR_NONNULL, OBJC_PROPERTY_ATTR_NULL_RESETTABLE. | |
3327 | ||
3328 | 2020-11-13 Iain Sandoe <iain@sandoe.co.uk> | |
3329 | ||
3330 | PR objc/77404 | |
3331 | * c-attribs.c (handle_objc_root_class_attribute): New | |
3332 | * c-objc.h (objc_start_class_interface): Add a location | |
3333 | value for the position of the class name. | |
3334 | * c.opt: Add Wobjc-root-class. | |
3335 | * stub-objc.c (objc_start_class_interface): Add a location | |
3336 | value for the position of the class name. | |
3337 | ||
a5a11525 GA |
3338 | 2020-11-12 Joseph Myers <joseph@codesourcery.com> |
3339 | ||
3340 | * c-lex.c (c_common_has_attribute): Take argument std_syntax. | |
3341 | Allow scope for C. Handle standard attributes for C. Do not | |
3342 | accept unscoped attributes if std_syntax and not handled as | |
3343 | standard attributes. | |
3344 | * c-common.h (c_common_has_attribute): Update prototype. | |
3345 | ||
3346 | 2020-11-12 Nicholas Guriev <guriev-ns@ya.ru> | |
3347 | ||
3348 | PR pch/86674 | |
3349 | * c-pch.c (c_common_valid_pch): Use cpp_warning with CPP_W_INVALID_PCH | |
3350 | reason to fix -Werror=invalid-pch and -Wno-error=invalid-pch switches. | |
3351 | ||
0f5f9ed5 GA |
3352 | 2020-11-11 Patrick Palka <ppalka@redhat.com> |
3353 | ||
3354 | PR c++/88115 | |
3355 | * c-opts.c (c_common_post_options): Update latest_abi_version. | |
3356 | ||
bb622641 GA |
3357 | 2020-11-10 Jakub Jelinek <jakub@redhat.com> |
3358 | ||
3359 | PR c/97748 | |
3360 | * c-common.h (warn_if_unused_value): Add quiet argument defaulted | |
3361 | to false. | |
3362 | * c-warn.c (warn_if_unused_value): Likewise. Pass it down | |
3363 | recursively and just return true instead of warning if it is true. | |
3364 | Handle COMPLEX_EXPR. | |
3365 | ||
3366 | 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com> | |
3367 | ||
3368 | * c-common.h (c_omp_adjust_map_clauses): New declaration. | |
3369 | * c-omp.c (struct map_clause): Helper type for c_omp_adjust_map_clauses. | |
3370 | (c_omp_adjust_map_clauses): New function. | |
3371 | ||
2bee28dd GA |
3372 | 2020-11-09 Marek Polacek <polacek@redhat.com> |
3373 | ||
3374 | DR 1914 | |
3375 | * c-common.c (attribute_fallthrough_p): Tweak the warning | |
3376 | message. | |
3377 | ||
3378 | 2020-11-09 Patrick Palka <ppalka@redhat.com> | |
3379 | ||
3380 | * c-pragma.c (handle_pragma_diagnostic): Split the | |
3381 | unknown-option -Wpragmas diagnostic into a warning and a | |
3382 | subsequent note containing a spelling suggestion. Avoid | |
3383 | computing the suggestion if -Wpragmas warnings are being | |
3384 | suppressed. | |
3385 | ||
3386 | 2020-11-09 Patrick Palka <ppalka@redhat.com> | |
3387 | ||
3388 | PR testsuite/97117 | |
3389 | * c-indentation.c (get_visual_column): Remove location_t | |
3390 | parameter. Move the column-tracking diagnostic code from here | |
3391 | to ... | |
3392 | (should_warn_for_misleading_indentation): ... here, before the | |
3393 | early exit for when the loci are not all distinct. Don't pass a | |
3394 | location_t argument to get_visual_column. | |
3395 | (assert_get_visual_column_succeeds): Don't pass a location_t | |
3396 | argument to get_visual_column. | |
3397 | (assert_get_visual_column_fails): Likewise. | |
3398 | ||
fb95de7a GA |
3399 | 2020-11-08 Iain Sandoe <iain@sandoe.co.uk> |
3400 | ||
3401 | * c-common.h (OBJC_IS_PATTR_KEYWORD): Add class to the list | |
3402 | of keywords accepted in @property attribute contexts. | |
3403 | * c-objc.h (enum objc_property_attribute_group): Add | |
3404 | OBJC_PROPATTR_GROUP_CLASS. | |
3405 | (enum objc_property_attribute_kind): Add | |
3406 | OBJC_PROPERTY_ATTR_CLASS. | |
3407 | ||
2da7ee05 GA |
3408 | 2020-11-07 Iain Sandoe <iain@sandoe.co.uk> |
3409 | ||
3410 | * c-common.c (c_common_reswords): Add 'atomic' property | |
3411 | attribute. | |
3412 | * c-common.h (enum rid): Add RID_PROPATOMIC for atomic | |
3413 | property attributes. | |
3414 | ||
3415 | 2020-11-07 Iain Sandoe <iain@sandoe.co.uk> | |
3416 | ||
3417 | * c-attribs.c (handle_nsobject_attribute): New. | |
3418 | * c.opt: Add WNSObject-attribute. | |
3419 | ||
44cab2d8 GA |
3420 | 2020-11-06 Iain Sandoe <iain@sandoe.co.uk> |
3421 | ||
3422 | * c-objc.h (enum objc_property_attribute_group): New | |
3423 | (enum objc_property_attribute_kind): New. | |
3424 | (OBJC_PROPATTR_GROUP_MASK): New. | |
3425 | (struct property_attribute_info): Small class encapsulating | |
3426 | parser output from property attributes. | |
3427 | (objc_prop_attr_kind_for_rid): New | |
3428 | (objc_add_property_declaration): Simplify interface. | |
3429 | * stub-objc.c (enum rid): Dummy type. | |
3430 | (objc_add_property_declaration): Simplify interface. | |
3431 | (objc_prop_attr_kind_for_rid): New. | |
3432 | ||
3433 | 2020-11-06 Nathan Sidwell <nathan@acm.org> | |
3434 | ||
3435 | * c-ada-spec.c (collect_ada_nodes): Rename | |
3436 | DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN. | |
3437 | (collect_ada_node): Likewise. | |
3438 | (dump_forward_type): Likewise. | |
3439 | * c-common.c (set_underlying_type): Rename | |
3440 | DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN. | |
3441 | (user_facing_original_type, c_common_finalize_early_debug): Likewise. | |
3442 | ||
3443 | 2020-11-06 Jakub Jelinek <jakub@redhat.com> | |
3444 | ||
3445 | * c-common.c (verify_sequence_points): Remove DEBUG_FUNCTION. | |
3446 | ||
0cfd9109 GA |
3447 | 2020-11-05 Marek Polacek <polacek@redhat.com> |
3448 | ||
3449 | PR c++/97675 | |
3450 | * c.opt (Wexceptions): New option. | |
3451 | ||
3452 | 2020-11-05 Marek Polacek <polacek@redhat.com> | |
3453 | ||
3454 | PR c++/25814 | |
3455 | * c.opt (Wvexing-parse): New option. | |
3456 | ||
35c125cb GA |
3457 | 2020-11-04 Jakub Jelinek <jakub@redhat.com> |
3458 | ||
3459 | PR c++/97670 | |
3460 | * c-omp.c (c_omp_split_clauses): Look through array reductions to find | |
3461 | underlying decl to clear in the allocate_head bitmap. | |
3462 | ||
3463 | 2020-11-04 Iain Sandoe <iain@sandoe.co.uk> | |
3464 | ||
3465 | * c-objc.h (objc_non_constant_expr_p): New. | |
3466 | * stub-objc.c (objc_non_constant_expr_p): New. | |
3467 | ||
fd2325ea GA |
3468 | 2020-11-03 Nathan Sidwell <nathan@acm.org> |
3469 | ||
3470 | * c.opt (MQ,MT): Reword description to be make-agnostic. | |
3471 | ||
88ce3d5f GA |
3472 | 2020-11-02 Nathan Sidwell <nathan@acm.org> |
3473 | ||
3474 | * c-opts.c (c_common_post_options): Move var decl to its | |
3475 | initialization point. | |
3476 | ||
3477 | 2020-11-01 Iain Sandoe <iain@sandoe.co.uk> | |
3478 | ||
3479 | * c-lex.c (c_lex_with_flags): When combining '@' with a | |
3480 | keyword for Objective-C, combine the location ranges too. | |
3481 | ||
3482 | 2020-10-30 Qing Zhao <qing.zhao@oracle.com> | |
3483 | H.J.Lu <hjl.tools@gmail.com> | |
3484 | ||
3485 | * c-attribs.c (c_common_attribute_table): Add new attribute | |
3486 | zero_call_used_regs. | |
3487 | (handle_zero_call_used_regs_attribute): New function. | |
3488 | ||
e93aae4a GA |
3489 | 2020-10-28 Marek Polacek <polacek@redhat.com> |
3490 | ||
3491 | PR c++/97573 | |
3492 | * c-opts.c (c_common_post_options): In C++20, turn on | |
3493 | -Wdeprecated-enum-enum-conversion and | |
3494 | -Wdeprecated-enum-float-conversion. | |
3495 | * c.opt (Wdeprecated-enum-enum-conversion, | |
3496 | Wdeprecated-enum-float-conversion): New options. | |
3497 | (Wenum-conversion): Allow for C++ too. | |
3498 | ||
3499 | 2020-10-28 Jakub Jelinek <jakub@redhat.com> | |
3500 | ||
3501 | * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALLOCATE. | |
3502 | * c-omp.c: Include bitmap.h. | |
3503 | (c_omp_split_clauses): Handle OMP_CLAUSE_ALLOCATE. | |
3504 | ||
f19e7c8d GA |
3505 | 2020-10-26 Ville Voutilainen <ville.voutilainen@gmail.com> |
3506 | ||
3507 | * c-common.c (__is_nothrow_assignable): New. | |
3508 | (__is_nothrow_constructible): Likewise. | |
3509 | * c-common.h (RID_IS_NOTHROW_ASSIGNABLE): New. | |
3510 | (RID_IS_NOTHROW_CONSTRUCTIBLE): Likewise. | |
3511 | ||
efe71fcc GA |
3512 | 2020-10-23 Jan Hubicka <hubicka@ucw.cz> |
3513 | ||
3514 | * c-common.c (c_common_finalize_early_debug): Update for new thunk api. | |
3515 | ||
3516 | 2020-10-23 Marek Polacek <polacek@redhat.com> | |
3517 | ||
3518 | PR c++/91741 | |
3519 | * c-common.c (verify_tree): Handle PAREN_SIZEOF_EXPR. | |
3520 | (c_common_init_ts): Likewise. | |
3521 | * c-common.def (PAREN_SIZEOF_EXPR): New tree code. | |
3522 | * c-common.h (maybe_warn_sizeof_array_div): Declare. | |
3523 | * c-warn.c (sizeof_pointer_memaccess_warning): Unwrap NOP_EXPRs. | |
3524 | (maybe_warn_sizeof_array_div): New function. | |
3525 | * c.opt (Wsizeof-array-div): New option. | |
3526 | ||
3527 | 2020-10-23 Martin Sebor <msebor@redhat.com> | |
3528 | ||
3529 | PR c/97463 | |
3530 | * c-warn.c (warn_parm_ptrarray_mismatch): Move null test earlier. | |
3531 | ||
56ddd5e2 GA |
3532 | 2020-10-22 Martin Liska <mliska@suse.cz> |
3533 | ||
3534 | PR c/94722 | |
3535 | * c-attribs.c (handle_no_stack_protect_function_attribute): New. | |
3536 | (handle_stack_protect_attribute): Add error message for a | |
3537 | no_stack_protector function. | |
3538 | ||
3539 | 2020-10-22 Martin Liska <mliska@suse.cz> | |
3540 | ||
3541 | * c-cppbuiltin.c (c_cpp_builtins): Use the stack_protector enum. | |
3542 | ||
3543 | 2020-10-22 Jan Hubicka <hubicka@ucw.cz> | |
3544 | ||
3545 | * c-gimplify.c: Include tree-nested.h | |
3546 | (c_genericize): Update for new nested function info. | |
3547 | ||
b2698c21 GA |
3548 | 2020-10-14 Martin Sebor <msebor@redhat.com> |
3549 | ||
3550 | PR c/97413 | |
3551 | * c-attribs.c (build_attr_access_from_parms): Wrap chain of VLA | |
3552 | bounds in an extra list. | |
3553 | ||
7e9282ae GA |
3554 | 2020-10-05 Richard Biener <rguenther@suse.de> |
3555 | Jakub Jelinek <jakub@redhat.com> | |
3556 | ||
3557 | PR c++/97197 | |
3558 | * c-pretty-print.c: Include langhooks.h. | |
3559 | (c_pretty_printer::postfix_expression): Handle TARGET_MEM_REF as | |
3560 | expression. | |
3561 | (c_pretty_printer::expression): Handle TARGET_MEM_REF as | |
3562 | unary_expression. | |
3563 | (c_pretty_printer::unary_expression): Handle TARGET_MEM_REF. | |
3564 | ||
660bfe61 GA |
3565 | 2020-09-30 Martin Sebor <msebor@redhat.com> |
3566 | ||
3567 | PR middle-end/97189 | |
3568 | * c-attribs.c (append_access_attr): Use the function declaration | |
3569 | location for a warning about an attribute access argument. | |
3570 | ||
93bca37c GA |
3571 | 2020-09-29 Marek Polacek <polacek@redhat.com> |
3572 | ||
3573 | PR c++/94695 | |
3574 | * c.opt (Wrange-loop-construct): New option. | |
3575 | ||
82b77dee GA |
3576 | 2020-09-23 Martin Sebor <msebor@redhat.com> |
3577 | ||
3578 | PR c/97131 | |
3579 | * c-warn.c (warn_parm_ptrarray_mismatch): Handle more invalid input. | |
3580 | ||
3581 | 2020-09-23 Marek Polacek <polacek@redhat.com> | |
3582 | ||
3583 | PR c/97125 | |
3584 | * c-gimplify.c (c_genericize): Only call do_warn_duplicated_branches_r | |
3585 | after loops and other structured control constructs have been lowered. | |
3586 | ||
521d2711 GA |
3587 | 2020-09-22 Jakub Jelinek <jakub@redhat.com> |
3588 | ||
3589 | * c.opt (Wbuiltin-declaration-mismatch): Fix typo in variable name: | |
3590 | warn_builtin_declaraion_mismatch -> warn_builtin_declaration_mismatch. | |
3591 | ||
44135373 GA |
3592 | 2020-09-21 Marek Polacek <polacek@redhat.com> |
3593 | ||
3594 | * c.opt (Wctad-maybe-unsupported): New option. | |
3595 | ||
2fe5b7d1 GA |
3596 | 2020-09-19 Martin Sebor <msebor@redhat.com> |
3597 | ||
3598 | PR c/50584 | |
3599 | * c-common.h (warn_parm_array_mismatch): Declare new function. | |
3600 | (has_attribute): Move declaration of an existing function. | |
3601 | (build_attr_access_from_parms): Declare new function. | |
3602 | * c-warn.c (parm_array_as_string): Define new function. | |
3603 | (plus_one): Define new function. | |
3604 | (warn_parm_ptrarray_mismatch): Define new function. | |
3605 | (warn_parm_array_mismatch): Define new function. | |
3606 | (vla_bound_parm_decl): New function. | |
3607 | * c.opt (-Warray-parameter, -Wvla-parameter): New options. | |
3608 | * c-pretty-print.c (pp_c_type_qualifier_list): Don't print array type | |
3609 | qualifiers here... | |
3610 | (c_pretty_printer::direct_abstract_declarator): ...but instead print | |
3611 | them in brackets here. Also print [static]. Strip extraneous | |
3612 | expressions from VLA bounds. | |
3613 | ||
3614 | 2020-09-19 Martin Sebor <msebor@redhat.com> | |
3615 | ||
3616 | PR c/50584 | |
3617 | * c-attribs.c (c_common_attribute_table): Add "arg spec" attribute. | |
3618 | (handle_argspec_attribute): New function. | |
3619 | (get_argument, get_argument_type): New functions. | |
3620 | (append_access_attrs): Add overload. Handle internal attribute | |
3621 | representation in addition to external. | |
3622 | (handle_access_attribute): Handle internal attribute representation | |
3623 | in addition to external. | |
3624 | (build_attr_access_from_parms): New function. | |
3625 | ||
3626 | 2020-09-19 Sandra Loosemore <sandra@codesourcery.com> | |
3627 | ||
3628 | * c-gimplify.c (genericize_c_loop): Rewrite to match | |
3629 | c_finish_loop in c-typeck.c. | |
3630 | ||
3631 | 2020-09-19 Sandra Loosemore <sandra@codesourcery.com> | |
3632 | ||
3633 | * c-common.c (c_block_may_fallthrough): New, split from | |
3634 | cxx_block_may_fallthrough in the cp front end. | |
3635 | (c_common_init_ts): Move handling of loop and switch-related | |
3636 | statements here from the cp front end. | |
3637 | * c-common.def (FOR_STMT, WHILE_STMT, DO_STMT): Move here from | |
3638 | cp front end. | |
3639 | (BREAK_STMT, CONTINUE_STMT, SWITCH_STMT): Likewise. | |
3640 | * c-common.h (c_block_may_fallthru): Declare. | |
3641 | (bc_state_t): Move here from cp front end. | |
3642 | (save_bc_state, restore_bc_state): Declare. | |
3643 | (c_genericize_control_stmt): Declare. | |
3644 | (WHILE_COND, WHILE_BODY): Likewise. | |
3645 | (DO_COND, DO_BODY): Likewise. | |
3646 | (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY, FOR_SCOPE): Likewise. | |
3647 | (SWITCH_STMT_COND, SWITCH_STMT_BODY): Likewise. | |
3648 | (SWITCH_STMT_TYPE, SWITCH_STMT_SCOPE): Likewise. | |
3649 | (SWITCH_STMT_ALL_CASES_P, SWITCH_STMT_NO_BREAK_P): Likewise. | |
3650 | (LABEL_DECL_BREAK, LABEL_DECL_CONTINUE): Likewise. | |
3651 | * c-dump.c (dump_stmt): Copy from cp front end. | |
3652 | (c_dump_tree): Move code to handle structured loop and switch | |
3653 | tree nodes here from cp front end. | |
3654 | * c-gimplify.c: Adjust includes. | |
3655 | (enum bc_t, bc_label, begin_bc_block, finish_bc_block): Move from | |
3656 | cp front end. | |
3657 | (save_bc_state, restore_bc_state): New functions using old code | |
3658 | from cp front end. | |
3659 | (get_bc_label, expr_loc_or_loc): Move from cp front end. | |
3660 | (genericize_c_loop): Move from cp front end. | |
3661 | (genericize_for_stmt, genericize_while_stmt): Likewise. | |
3662 | (genericize_do_stmt, genericize_switch_stmt): Likewise. | |
3663 | (genericize_continue_stmt, genericize_break_stmt): Likewise. | |
3664 | (genericize_omp_for_stmt): Likewise. | |
3665 | (c_genericize_control_stmt): New function using code split from | |
3666 | cp front end. | |
3667 | (c_genericize_control_r): New. | |
3668 | (c_genericize): Call walk_tree with c_genericize_control_r. | |
3669 | * c-pretty-print.c (c_pretty_printer::statement): Move code to handle | |
3670 | structured loop and switch tree nodes here from cp front end. | |
3671 | ||
2aad20c0 GA |
3672 | 2020-09-17 Patrick Palka <ppalka@redhat.com> |
3673 | ||
3674 | PR c/80076 | |
3675 | * c-indentation.c (should_warn_for_misleading_indentation): Move | |
3676 | declarations of local variables closer to their first use. | |
3677 | Handle virtual token locations by resolving them to their | |
3678 | respective macro expansion points. If all three tokens are | |
3679 | produced from the same macro expansion, then instead use their | |
3680 | loci within the macro definition. | |
3681 | ||
ecde1b0a GA |
3682 | 2020-09-16 Martin Sebor <msebor@redhat.com> |
3683 | ||
3684 | PR c/78666 | |
3685 | PR c/96126 | |
3686 | * c-attribs.c (validate_attr_args): New function. | |
3687 | (validate_attr_arg): Same. | |
3688 | (handle_section_attribute): Call it. Introduce a local variable. | |
3689 | (handle_alloc_size_attribute): Same. | |
3690 | (handle_alloc_align_attribute): Same. | |
3691 | ||
50a71cd0 GA |
3692 | 2020-09-14 Jakub Jelinek <jakub@redhat.com> |
3693 | ||
3694 | * c-attribs.c (handle_optimize_attribute): Adjust | |
3695 | cl_optimization_save, cl_optimization_restore and | |
3696 | build_optimization_node callers. | |
3697 | * c-pragma.c (handle_pragma_optimize): Adjust | |
3698 | build_optimization_node caller. | |
3699 | (handle_pragma_push_options): Adjust | |
3700 | build_optimization_node and build_target_option_node callers. | |
3701 | (handle_pragma_pop_options, handle_pragma_reset_options): | |
3702 | Adjust cl_optimization_restore callers. | |
3703 | ||
8f7ea26a GA |
3704 | 2020-08-28 Martin Sebor <msebor@redhat.com> |
3705 | ||
3706 | * c.opt (Wstringop-overread): New option. | |
3707 | ||
a6493809 GA |
3708 | 2020-08-11 Jakub Jelinek <jakub@redhat.com> |
3709 | ||
3710 | PR c/96545 | |
3711 | * c-common.c (get_atomic_generic_size): Require that first argument's | |
3712 | type points to a complete type and use tree_fits_uhwi_p instead of | |
3713 | just INTEGER_CST TREE_CODE check for the TYPE_SIZE_UNIT. | |
3714 | ||
48cc2e46 GA |
3715 | 2020-07-31 Martin Sebor <msebor@redhat.com> |
3716 | ||
3717 | PR c++/96003 | |
3718 | * c-common.c (check_function_arguments_recurse): Return early when | |
3719 | no-warning bit is set. | |
3720 | ||
3721 | 2020-07-31 Richard Biener <rguenther@suse.de> | |
3722 | ||
3723 | PR debug/96383 | |
3724 | * c-common.h (c_common_finalize_early_debug): Declare. | |
3725 | * c-common.c: Include debug.h. | |
3726 | (c_common_finalize_early_debug): finalize_early_debug langhook | |
3727 | implementation generating debug for extern declarations. | |
3728 | ||
e71dab87 GA |
3729 | 2020-07-27 Nathan Sidwell <nathan@acm.org> |
3730 | ||
3731 | * c-common.c (try_to_locate_new_include_insertion_point): Use | |
3732 | strcmp, not pointer equality. | |
3733 | ||
ae2e0bc1 GA |
3734 | 2020-07-25 Martin Sebor <msebor@redhat.com> |
3735 | ||
3736 | PR c++/96310 | |
3737 | * c-common.c (check_nonnull_arg): Print note only when warning was | |
3738 | issued. | |
3739 | ||
3ea9abca GA |
3740 | 2020-07-22 Tobias Burnus <tobias@codesourcery.com> |
3741 | ||
3742 | * c-omp.c (c_finish_omp_critical): Check for no name but | |
3743 | nonzero hint provided. | |
3744 | ||
0933f508 GA |
3745 | 2020-07-20 Jason Merrill <jason@redhat.com> |
3746 | ||
3747 | * c-cppbuiltin.c (c_cpp_builtins): Update | |
3748 | __cpp_nontype_template_args for C++20. | |
3749 | ||
3750 | 2020-07-20 Martin Sebor <msebor@redhat.com> | |
3751 | ||
3752 | PR c/96249 | |
3753 | * c.opt: Remove stray text. | |
3754 | ||
8ca07a30 GA |
3755 | 2020-07-14 Lewis Hyatt <lhyatt@gmail.com> |
3756 | ||
3757 | PR other/86904 | |
3758 | * c-indentation.c (should_warn_for_misleading_indentation): Get | |
3759 | global tabstop from the new source. | |
3760 | * c-opts.c (c_common_handle_option): Remove handling of -ftabstop, which | |
3761 | is now a common option. | |
3762 | * c.opt: Likewise. | |
3763 | ||
a82c4c4c | 3764 | 2020-07-08 Eric Botcazou <ebotcazou@adacore.com> |
50873cc5 GA |
3765 | |
3766 | * c.opt (Wscalar-storage-order): Add explicit variable. | |
3767 | ||
f60ee68d GA |
3768 | 2020-07-07 Nathan Sidwell <nathan@acm.org> |
3769 | ||
3770 | * c-opts.c (c_common_post_options): Add 'injecting' arg to | |
3771 | cpp_read_main_file. | |
3772 | (c_finish_options): Add linemap_line_start calls for builtin and cmd | |
3773 | maps. Force token position to line_table's highest line. | |
3774 | * c-ppoutput.c (print_line_1): Refactor, print line zero. | |
3775 | (cb_define): Always increment source line. | |
3776 | ||
4077d74c GA |
3777 | 2020-07-06 Martin Sebor <msebor@redhat.com> |
3778 | ||
3779 | PR c++/95984 | |
3780 | * c-common.c (check_function_nonnull): Avoid checking syntesized calls | |
3781 | to stub lambda objects with null this pointer. | |
3782 | (check_nonnull_arg): Handle C++ nullptr. | |
3783 | ||
b5f24739 GA |
3784 | 2020-07-02 Jason Merrill <jason@redhat.com> |
3785 | Jakub Jelinek <jakub@redhat.com> | |
3786 | ||
3787 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_consteval. | |
3788 | ||
46fbb6c6 GA |
3789 | 2020-06-30 Jakub Jelinek <jakub@redhat.com> |
3790 | ||
3791 | PR c++/95963 | |
3792 | * c-common.c (check_function_arguments_recurse): Don't crash on | |
3793 | calls to internal functions. | |
3794 | ||
69273534 GA |
3795 | 2020-06-28 Martin Sebor <msebor@redhat.com> |
3796 | ||
3797 | PR c++/86568 | |
3798 | * c-common.c (struct nonnull_arg_ctx): Add members. | |
3799 | (check_function_nonnull): Use nonnull_arg_ctx as argument. Handle | |
3800 | C++ member functions specially. Consider the this pointer implicitly | |
3801 | nonnull. | |
3802 | (check_nonnull_arg): Use location of argument when available. | |
3803 | (check_function_arguments): Use nonnull_arg_ctx as argument. | |
3804 | ||
9a33c41f GA |
3805 | 2020-06-27 Jakub Jelinek <jakub@redhat.com> |
3806 | ||
3807 | PR middle-end/95903 | |
3808 | * c-common.c (pointer_int_sum): Use TYPE_OVERFLOW_UNDEFINED instead of | |
3809 | !TYPE_UNSIGNED check to see if we can apply distributive law and handle | |
3810 | smaller precision intop operands separately. | |
3811 | ||
c9c05f73 GA |
3812 | 2020-06-26 Marek Polacek <polacek@redhat.com> |
3813 | ||
3814 | * c-opts.c (c_common_init_options): Default to gnu++17. | |
3815 | ||
aff95ee7 GA |
3816 | 2020-06-17 Jonathan Wakely <jwakely@redhat.com> |
3817 | ||
bd0a89dc | 3818 | PR c/95378 |
aff95ee7 GA |
3819 | * c-common.c (get_atomic_generic_size): Check cv-qualifiers in |
3820 | pointer arguments. | |
3821 | ||
56638b9b GA |
3822 | 2020-06-16 Jakub Jelinek <jakub@redhat.com> |
3823 | ||
3824 | * c-common.h (c_omp_check_loop_iv_exprs): Add an int argument. | |
3825 | * c-omp.c (struct c_omp_check_loop_iv_data): Add maybe_nonrect and | |
3826 | idx members. | |
3827 | (c_omp_is_loop_iterator): New function. | |
3828 | (c_omp_check_loop_iv_r): Use it. Add support for silent scanning | |
3829 | if outer loop iterator is present. Perform duplicate checking through | |
3830 | hash_set in the function rather than expecting caller to do that. | |
3831 | Pass NULL instead of d->ppset to walk_tree_1. | |
3832 | (c_omp_check_nonrect_loop_iv): New function. | |
3833 | (c_omp_check_loop_iv): Use it. Fill in new members, allow | |
3834 | non-rectangular loop forms, diagnose multiple associated loops with | |
3835 | the same iterator. Pass NULL instead of &pset to walk_tree_1. | |
3836 | (c_omp_check_loop_iv_exprs): Likewise. | |
3837 | ||
ec6ffbb9 GA |
3838 | 2020-06-10 Martin Liska <mliska@suse.cz> |
3839 | ||
3840 | PR tree-optimization/92860 | |
3841 | * c-attribs.c (handle_optimize_attribute): | |
3842 | Save global options and compare it after parsing of function | |
3843 | attribute. | |
3844 | * c-pragma.c (opt_stack::saved_global_options): New field. | |
3845 | (handle_pragma_push_options): Save global_options. | |
3846 | (handle_pragma_pop_options): Compare them after pop. | |
3847 | ||
b952c2cf GA |
3848 | 2020-06-09 Jakub Jelinek <jakub@redhat.com> |
3849 | ||
3850 | PR c/95580 | |
3851 | * c-pretty-print.c (c_pretty_printer::unary_expression): Handle the | |
3852 | case when MEM_REF's first argument has type pointer to incomplete type. | |
3853 | ||
1a59f3db GA |
3854 | 2020-06-05 Jason Merrill <jason@redhat.com> |
3855 | ||
3856 | * c-pretty-print.c (pp_c_additive_expression): Handle negative | |
3857 | operand to POINTER_PLUS_EXPR. | |
3858 | ||
3add3425 GA |
3859 | 2020-06-04 Martin Sebor <msebor@redhat.com> |
3860 | ||
3861 | PR middle-end/10138 | |
3862 | PR middle-end/95136 | |
3863 | * c-attribs.c (append_access_attrs): Handle attr_access::none. | |
3864 | (handle_access_attribute): Same. | |
3865 | ||
9a5b7438 GA |
3866 | 2020-06-03 Mark Wielaard <mark@klomp.org> |
3867 | ||
3868 | * known-headers.cc (get_cp_stdlib_header_for_string_macro_name): | |
3869 | New function. | |
3870 | * known-headers.h (get_cp_stdlib_header_for_string_macro_name): | |
3871 | New function declaration. | |
3872 | ||
3873 | 2020-06-03 Mark Wielaard <mark@klomp.org> | |
3874 | ||
3875 | * known-headers.cc (get_string_macro_hint): New function. | |
3876 | (get_stdlib_header_for_name): Use get_string_macro_hint. | |
3877 | (get_c_stdlib_header_for_string_macro_name): New function. | |
3878 | * known-headers.h (get_c_stdlib_header_for_string_macro_name): | |
3879 | New function declaration. | |
3880 | ||
3881 | 2020-06-03 Tobias Burnus <tobias@codesourcery.com> | |
3882 | ||
3883 | * c-common.h (c_omp_predetermined_mapping): Declare. | |
3884 | * c-omp.c (c_omp_predetermined_mapping): New. | |
3885 | ||
af114c38 MW |
3886 | 2020-05-22 Mark Wielaard <mark@klomp.org> |
3887 | ||
3888 | * known-headers.cc (get_stdlib_header_for_name): Add a new | |
3889 | stdlib_hint array for stdbool and stdint. | |
3890 | ||
45c50b6a MW |
3891 | 2020-05-22 Mark Wielaard <mark@klomp.org> |
3892 | ||
3893 | * known-headers.cc (get_stdlib_header_for_name): Return | |
3894 | "<stdbool.h>" for "bool", "true" or "false" when STDLIB_C and | |
3895 | flag_isoc99. | |
3896 | ||
c22027a0 NS |
3897 | 2020-05-20 Nathan Sidwell <nathan@acm.org> |
3898 | ||
38a4db21 NS |
3899 | * c-common.c (try_to_locate_new_include_insertion_point): Revert change. |
3900 | ||
c22027a0 NS |
3901 | * c-common.c (try_to_locate_new_include_insertion_point): Use |
3902 | strcmp to compare filenames. | |
3903 | * c-lex.c (init_c_lex): Move declaration to initialization. | |
3904 | * c-opts.c (handle_deferred_opts): Move cpp_get_deps call into | |
3905 | deferred count loop. | |
3906 | ||
29f0e90d JM |
3907 | 2020-05-15 Jason Merrill <jason@redhat.com> |
3908 | ||
3909 | * c-opts.c (set_std_cxx20): Set flag_coroutines. | |
3910 | ||
b04445d4 JM |
3911 | 2020-05-13 Jason Merrill <jason@redhat.com> |
3912 | ||
3913 | * c.opt (std=c++20): Make c++2a the alias. | |
3914 | (std=gnu++20): Likewise. | |
3915 | * c-common.h (cxx_dialect): Change cxx2a to cxx20. | |
3916 | * c-opts.c: Adjust. | |
3917 | * c-cppbuiltin.c: Adjust. | |
3918 | * c-ubsan.c: Adjust. | |
3919 | * c-warn.c: Adjust. | |
3920 | ||
11dd3be5 EB |
3921 | 2020-05-12 Eric Botcazou <ebotcazou@adacore.com> |
3922 | ||
3923 | * c-ada-spec.c (dump_ads): Output pragma Warnings ("U"); on entry. | |
3924 | ||
b224c376 NS |
3925 | 2020-05-08 Nathan Sidwell <nathan@acm.org> |
3926 | ||
3927 | Reimplement directives only processing. | |
3928 | * c-ppoutput.c (token_streamer): Ne. | |
3929 | (directives_only_cb): New. Swallow ... | |
3930 | (print_lines_directives_only): ... this. | |
3931 | (scan_translation_unit_directives_only): Reimplment using the | |
3932 | published interface. | |
3933 | ||
f1d94677 MP |
3934 | 2020-05-07 Marek Polacek <polacek@redhat.com> |
3935 | ||
3936 | * c-format.c (badwords): Add "nonstatic". | |
3937 | ||
9b95bb52 JJ |
3938 | 202-05-07 Jakub Jelinek <jakub@redhat.com> |
3939 | ||
3940 | PR c/94968 | |
3941 | * c-common.c (speculation_safe_value_resolve_params): Return false if | |
3942 | error_operand_p (val2). | |
3943 | (resolve_overloaded_builtin) <case BUILT_IN_SPECULATION_SAFE_VALUE_N>: | |
3944 | Remove extraneous semicolon. | |
3945 | ||
530b4409 | 3946 | 2020-05-06 qing zhao <qing.zhao@oracle.com> |
3947 | ||
3948 | PR c/94230 | |
3949 | * c-indentation.c (get_visual_column): Add a hint to use the new | |
3950 | -flarge-source-files option. | |
3951 | ||
b776bdca SSF |
3952 | 2020-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com> |
3953 | ||
3954 | * c-attribs.c (handle_vector_size_attribute): Add attribute | |
3955 | nonnull for argument args in order to silence warning of | |
3956 | uninitialized variable usage. Since this is local to the | |
3957 | compilation unit and thus cannot be checked at call sides by the | |
3958 | compiler, added an assert statement in order to verify this. | |
3959 | ||
6607bdd9 L |
3960 | 2020-05-01 H.J. Lu <hongjiu.lu@intel.com> |
3961 | ||
3962 | PR target/93492 | |
3963 | * c-attribs.c (handle_patchable_function_entry_attribute): Limit | |
3964 | value to USHRT_MAX (65535). | |
3965 | ||
691eeb65 JJ |
3966 | 2020-04-29 Jakub Jelinek <jakub@redhat.com> |
3967 | ||
3968 | * c-format.c (PP_FORMAT_CHAR_TABLE): Add %{ and %}. | |
3969 | ||
26d76be7 JJ |
3970 | 2020-04-27 Jakub Jelinek <jakub@redhat.com> |
3971 | ||
3972 | PR c/94755 | |
3973 | * c-common.c (resolve_overloaded_builtin): Return error_mark_node for | |
3974 | fncode == BUILT_IN_NONE before initialization of first_param. | |
3975 | ||
7291b2ed MP |
3976 | 2020-04-23 Marek Polacek <polacek@redhat.com> |
3977 | ||
3978 | PR c++/94733 | |
3979 | * c-attribs.c (find_tm_attribute): Use get_attribute_name instead of | |
3980 | TREE_PURPOSE. | |
3981 | ||
58a29af8 PP |
3982 | 2020-04-14 Patrick Palka <ppalka@redhat.com> |
3983 | ||
3984 | PR c++/85278 | |
3985 | * c-pretty-print.c (pp_c_pointer) <case REFERENCE_TYPE>: Print a double | |
3986 | ampersand if it's an rvalue reference type. | |
3987 | ||
09f04139 MS |
3988 | 2020-04-13 Martin Sebor <msebor@redhat.com> |
3989 | ||
3990 | PR c/92326 | |
3991 | * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator): Avoid | |
3992 | printing array bound for flexible array members. | |
3993 | ||
ee26baf4 IS |
3994 | 2020-04-13 Iain Sandoe <iain@sandoe.co.uk> |
3995 | ||
3996 | * c-cppbuiltin.c (c_cpp_builtins): Update coroutines builtin | |
3997 | define, per n4861. | |
3998 | ||
75efe9cb RB |
3999 | 2020-04-02 Richard Biener <rguenther@suse.de> |
4000 | ||
4001 | PR c/94392 | |
4002 | * c-opts.c (c_common_post_options): Enable -ffinite-loops | |
4003 | for -O2 and C++11 or newer. | |
4004 | ||
75defde9 PP |
4005 | 2020-03-28 Patrick Palka <ppalka@redhat.com> |
4006 | ||
4007 | * c.opt: Add -fconcepts-diagnostics-depth. | |
4008 | ||
52f24a9e MS |
4009 | 2020-03-27 Martin Sebor <msebor@redhat.com> |
4010 | ||
4011 | PR c++/94346 | |
4012 | * c-attribs.c (handle_copy_attribute): Avoid passing expressions | |
4013 | to decl_attributes. Make handling of different kinds of entities | |
4014 | more robust. | |
4015 | ||
ccacf77b MS |
4016 | 2020-03-27 Martin Sebor <msebor@redhat.com> |
4017 | ||
4018 | PR c++/94098 | |
4019 | * c-attribs.c (handle_access_attribute): Avoid setting TYPE_ATTRIBUTES | |
4020 | here. | |
4021 | ||
ca6c7225 JJ |
4022 | 2020-03-23 Jakub Jelinek <jakub@redhat.com> |
4023 | ||
4024 | PR c++/91993 | |
4025 | * c-warn.c (warnings_for_convert_and_check): For expr and/or | |
4026 | result being COMPOUND_EXPRs, skip to ultimate rhs. | |
4027 | ||
1aa22b19 RS |
4028 | 2020-03-20 Richard Sandiford <richard.sandiford@arm.com> |
4029 | ||
4030 | PR middle-end/94072 | |
4031 | * c-common.c (c_common_type_for_mode): Before using a registered | |
4032 | built-in type, check that the vectorness of the type matches | |
4033 | the vectorness of the mode. | |
4034 | ||
700d4cb0 JJ |
4035 | 2020-03-17 Jakub Jelinek <jakub@redhat.com> |
4036 | ||
4037 | * c-common.c (resolve_overloaded_builtin): Fix up duplicated word | |
4038 | issue in a diagnostic message. | |
4039 | ||
b408e010 LH |
4040 | 2020-03-15 Lewis Hyatt <lhyatt@gmail.com> |
4041 | ||
4042 | * c.opt: Avoid redundancy in the help text. | |
4043 | ||
e78e50d5 MP |
4044 | 2020-03-02 Marek Polacek <polacek@redhat.com> |
4045 | ||
4046 | PR c++/93958 - add missing -std=gnu++20. | |
4047 | * c.opt: Add -std=gnu++20. | |
4048 | ||
649e1741 MS |
4049 | 2020-03-01 Martin Sebor <msebor@redhat.com> |
4050 | ||
4051 | PR c++/92721 | |
4052 | * c-attribs.c (append_access_attrs): Correctly handle attribute. | |
4053 | (handle_access_attribute): Same. | |
4054 | ||
7b60f3ba JJ |
4055 | 2020-02-25 Jakub Jelinek <jakub@redhat.com> |
4056 | ||
4057 | PR c/93858 | |
4058 | * c-pragma.c (handle_pragma_diagnostic): Add missing ? after | |
4059 | "did you mean" hint in diagnostics. | |
4060 | ||
fb260504 JM |
4061 | 2020-02-15 Jason Merrill <jason@redhat.com> |
4062 | ||
4063 | * c.opt: Add -std=c++20. | |
4064 | ||
1d757b09 EB |
4065 | 2020-02-14 Eric Botcazou <ebotcazou@adacore.com> |
4066 | ||
4067 | * c-ada-spec.c: Include bitmap.h. | |
4068 | (dump_ada_double_name): Rename into... | |
4069 | (dump_anonymous_type_name): ...this. Always use the TYPE_UID. | |
4070 | (dump_ada_array_type): Adjust to above renaming. Robustify. | |
4071 | (dump_nested_types_1): New function copied from... Add dumped_types | |
4072 | parameter and pass it down to dump_nested_type. | |
4073 | (dump_nested_types): ...this. Remove parent parameter. Just call | |
4074 | dump_nested_types_1 on an automatic bitmap. | |
4075 | (dump_nested_type): Add dumped_types parameter. | |
4076 | <ARRAY_TYPE>: Do not dump it if already present in dumped_types. | |
4077 | Adjust recursive calls and adjust to above renaming. | |
4078 | (dump_ada_declaration): Adjust call to dump_nested_types. | |
4079 | Tidy up and adjust to above renaming. | |
4080 | (dump_ada_specs): Initialize and release bitmap obstack. | |
4081 | ||
0cc575e4 MS |
4082 | 2020-02-10 Martin Sebor <msebor@redhat.com> |
4083 | ||
4084 | PR c/93640 | |
4085 | * c-attribs.c (handle_access_attribute): Correct off-by-one mistakes. | |
4086 | ||
a59aa302 JJ |
4087 | 2020-02-10 Jakub Jelinek <jakub@redhat.com> |
4088 | ||
4089 | PR other/93641 | |
4090 | * c-format.c (check_plain): Fix up last argument of strncasecmp. | |
4091 | Remove useless extra test. | |
4092 | ||
e464fc90 TB |
4093 | 2020-02-03 Julian Brown <julian@codesourcery.com> |
4094 | Tobias Burnus <tobias@codesourcery.com> | |
4095 | ||
4096 | * c-cppbuiltin.c (c_cpp_builtins): Update _OPENACC define to 201711. | |
4097 | ||
e3b6c052 JM |
4098 | 2020-01-29 Jason Merrill <jason@redhat.com> |
4099 | ||
4100 | PR c++/89357 | |
4101 | * c-attribs.c (check_cxx_fundamental_alignment_constraints): Remove. | |
4102 | ||
6d00f052 JM |
4103 | 2020-01-23 Jason Merrill <jason@redhat.com> |
4104 | ||
4105 | * c-warn.c (conversion_warning): Change -Wsign-conversion handling. | |
4106 | ||
8a990ffa MS |
4107 | 2020-01-23 Martin Sebor <msebor@redhat.com> |
4108 | ||
4109 | PR c/84919 | |
4110 | * c-common.c (check_function_arguments): Avoid overlap checking | |
4111 | of sprintf functions. | |
4112 | ||
55b7df8b JM |
4113 | 2020-01-22 Jason Merrill <jason@redhat.com> |
4114 | ||
4115 | PR testsuite/93391 - PR 40752 test fails with unsigned plain char. | |
4116 | PR c++/40752 | |
4117 | * c-warn.c (conversion_warning): Check operands only after checking | |
4118 | the whole expression. Don't check second operand of + for sign. | |
4119 | ||
c77074d0 JM |
4120 | 2020-01-21 Jason Merrill <jason@redhat.com> |
4121 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
4122 | ||
4123 | PR c++/40752 - useless -Wconversion with short +=. | |
4124 | * c.opt (-Warith-conversion): New. | |
4125 | * c-warn.c (conversion_warning): Recurse for operands of | |
4126 | operators. Only warn about the whole expression with | |
4127 | -Warith-conversion. | |
4128 | ||
731dbfc3 JM |
4129 | 2020-01-21 Jason Merrill <jason@redhat.com> |
4130 | ||
4131 | * c-common.c (unsafe_conversion_p): Don't warn, return UNSAFE_SIGN. | |
4132 | * c-warn.c (conversion_warning): Warn about UNSAFE_SIGN. | |
4133 | ||
ad1a3914 NS |
4134 | 2020-01-20 Nathan Sidwell <nathan@acm.org> |
4135 | ||
4136 | PR preprocessor/80005 | |
4137 | * c-cppbuiltins.c (c_cpp_builtins): Don't define __has_include{,_next}. | |
4138 | ||
49789fd0 IS |
4139 | 2020-01-18 Iain Sandoe <iain@sandoe.co.uk> |
4140 | ||
4141 | * c-common.c (co_await, co_yield, co_return): New. | |
4142 | * c-common.h (RID_CO_AWAIT, RID_CO_YIELD, | |
4143 | RID_CO_RETURN): New enumeration values. | |
4144 | (D_CXX_COROUTINES): Bit to identify coroutines are active. | |
4145 | (D_CXX_COROUTINES_FLAGS): Guard for coroutine keywords. | |
4146 | * c-cppbuiltin.c (__cpp_coroutines): New cpp define. | |
4147 | * c.opt (fcoroutines): New command-line switch. | |
4148 | ||
4bc1899b DM |
4149 | 2020-01-10 David Malcolm <dmalcolm@redhat.com> |
4150 | ||
4151 | * c-format.c (local_event_ptr_node): New. | |
4152 | (PP_FORMAT_CHAR_TABLE): Add entry for "%@". | |
4153 | (init_dynamic_diag_info): Initialize local_event_ptr_node. | |
4154 | * c-format.h (T_EVENT_PTR): New define. | |
4155 | ||
f25e33fa MS |
4156 | 2020-01-10 Martin Sebor <msebor@redhat.com> |
4157 | ||
4158 | PR c/93132 | |
4159 | * c-attribs.c (append_access_attrs): Validate against the translated | |
4160 | access string rather than the human-readable representation. | |
4161 | ||
8d9254fc JJ |
4162 | 2020-01-01 Jakub Jelinek <jakub@redhat.com> |
4163 | ||
4164 | Update copyright years. | |
4165 | ||
39292e25 EB |
4166 | 2019-12-20 Eric Botcazou <ebotcazou@adacore.com> |
4167 | ||
4168 | * c-ada-spec.h (decl_sloc): Delete. | |
4169 | * c-ada-spec.c (decl_sloc): Make static. | |
4170 | ||
519d7496 JB |
4171 | 2019-12-19 Julian Brown <julian@codesourcery.com> |
4172 | ||
4173 | * c-common.h (c_omp_map_clause_name): Add prototype. | |
4174 | * c-omp.c (c_omp_map_clause_name): New function. | |
4175 | * c-pragma.h (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ATTACH and | |
4176 | PRAGMA_OACC_CLAUSE_DETACH. | |
4177 | ||
a6163563 JB |
4178 | 2019-12-19 Julian Brown <julian@codesourcery.com> |
4179 | Maciej W. Rozycki <macro@codesourcery.com> | |
4180 | Tobias Burnus <tobias@codesourcery.com> | |
4181 | Thomas Schwinge <thomas@codesourcery.com> | |
4182 | ||
4183 | * c-pragma.h (pragma_omp_clause): Add | |
4184 | PRAGMA_OACC_CLAUSE_NO_CREATE. | |
4185 | ||
e8f1ade2 MS |
4186 | 2019-12-17 Martin Sebor <msebor@redhat.com> |
4187 | ||
4188 | PR c++/61339 | |
4189 | * c.opt (-Wmismatched-tags, -Wredundant-tags): New options. | |
4190 | ||
368877a1 DM |
4191 | 2019-12-11 David Malcolm <dmalcolm@redhat.com> |
4192 | ||
4193 | * c-pretty-print.c (c_pretty_printer::clone): New vfunc | |
4194 | implementation. | |
4195 | * c-pretty-print.h (c_pretty_printer::clone): New vfunc decl. | |
4196 | ||
d68f5d45 DM |
4197 | 2019-12-09 David Malcolm <dmalcolm@redhat.com> |
4198 | ||
4199 | * c-format.c (range_label_for_format_type_mismatch::get_text): | |
4200 | Replace label_text ctor called with true with label_text::take. | |
4201 | ||
d3e28653 DM |
4202 | 2019-12-09 David Malcolm <dmalcolm@redhat.com> |
4203 | ||
4204 | * c-format.c (selftest::test_type_mismatch_range_labels): Remove | |
4205 | initial newline from expected outputs. | |
4206 | * c-opts.c (c_diagnostic_finalizer): Add pp_newline call before | |
4207 | call to diagnostic_show_locus. | |
4208 | ||
abd6d8cc JJ |
4209 | 2019-12-06 Jakub Jelinek <jakub@redhat.com> |
4210 | ||
4211 | * c-cppbuiltin.c (c_cpp_builtins): Don't define __cpp_consteval for | |
4212 | now. | |
4213 | ||
7906797e MP |
4214 | 2019-12-05 Marek Polacek <polacek@redhat.com> |
4215 | Jakub Jelinek <jakub@redhat.com> | |
4216 | ||
4217 | PR c++/91353 - P1331R2: Allow trivial default init in constexpr contexts. | |
4218 | * c-cppbuiltin.c (c_cpp_builtins): Adjust the value of __cpp_constexpr. | |
4219 | ||
5c04da88 MP |
4220 | 2019-12-05 Marek Polacek <polacek@redhat.com> |
4221 | ||
4222 | PR c++/92271 - make __is_same alias for __is_same_as. | |
4223 | * c-common.c: Add __is_same, an alias for __is_same_as. | |
4224 | ||
43aae289 MP |
4225 | 2019-12-03 Marek Polacek <polacek@redhat.com> |
4226 | ||
4227 | PR c++/91363 - P0960R3: Parenthesized initialization of aggregates. | |
4228 | * c-cppbuiltin.c (c_cpp_builtins): Predefine | |
4229 | __cpp_aggregate_paren_init=201902 for -std=c++2a. | |
4230 | ||
d7ddfbcb JH |
4231 | 2019-11-30 Jan Hubicka <hubicka@ucw.cz> |
4232 | ||
4233 | * c-attribs.c (handle_symver_attribute): New function | |
4234 | (c_common_attributes): Add symver. | |
4235 | ||
65ef05d0 RS |
4236 | 2019-11-30 Richard Sandiford <richard.sandiford@arm.com> |
4237 | ||
4238 | * c-common.c (pointer_int_sum): Use verify_type_context to check | |
4239 | whether the target allows pointer arithmetic for the types involved. | |
4240 | (c_sizeof_or_alignof_type, c_alignof_expr): Use verify_type_context | |
4241 | to check whether the target allows sizeof and alignof operations | |
4242 | for the types involved. | |
4243 | ||
1a291106 JM |
4244 | 2019-11-27 Jason Merrill <jason@redhat.com> |
4245 | ||
4246 | * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides. | |
4247 | ||
05d6cb1a JJ |
4248 | 2019-11-26 Jakub Jelinek <jakub@redhat.com> |
4249 | ||
4250 | PR c++/61414 | |
4251 | * c-attribs.c (handle_mode_attribute): Add mode attribute to | |
4252 | ENUMERAL_TYPEs. | |
4253 | ||
5b8d9367 JM |
4254 | 2019-11-25 Joseph Myers <joseph@codesourcery.com> |
4255 | ||
4256 | PR c/91985 | |
4257 | * c-common.c (c_common_type_for_mode): Handle decimal | |
4258 | floating-point types being NULL_TREE. | |
4259 | * c-format.c (get_format_for_type_1): Handle specified types being | |
4260 | NULL_TREE. | |
4261 | * c-lex.c (interpret_float): Give an error for decimal | |
4262 | floating-point constants when decimal floating-point not | |
4263 | supported. | |
4264 | ||
1fbf51cb JJ |
4265 | 2019-11-23 Jakub Jelinek <jakub@redhat.com> |
4266 | ||
4267 | PR middle-end/83859 | |
4268 | * c-attribs.c (append_access_attrs): Avoid buffer overflow. Avoid | |
4269 | memory leak. Use XNEWVEC macro. Use auto_diagnostic_group to | |
4270 | group warning with inform together. | |
4271 | (handle_access_attribute): Formatting fix. | |
4272 | ||
761df906 JJ |
4273 | 2019-11-22 Jakub Jelinek <jakub@redhat.com> |
4274 | ||
bdaf8be1 JJ |
4275 | PR c/90677 |
4276 | * c-common.h (identifier_global_tag): Declare. | |
4277 | * c-format.c (get_pointer_to_named_type): Renamed to ... | |
4278 | (get_named_type): ... this. Use identifier_global_tag instead of | |
4279 | identifier_global_value, handle the return value being a TYPE_P. | |
4280 | (init_dynamic_diag_info): Adjust get_pointer_to_named_type callers | |
4281 | to call get_named_type instead. Formatting fixes. | |
4282 | ||
c2ecce6d | 4283 | Implement P1902R1, Missing feature-test macros 2017-2019. |
761df906 JJ |
4284 | * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_init_captures |
4285 | and __cpp_generic_lambdas for -std=c++2a. Define | |
4286 | __cpp_designated_initializers, __cpp_constexpr_in_decltype and | |
4287 | __cpp_consteval for -std=c++2a. Remove a FIXME comment about | |
4288 | __cpp_concepts for -std=c++2a. | |
4289 | ||
54aa6b58 MS |
4290 | 2019-11-22 Martin Sebor <msebor@redhat.com> |
4291 | ||
4292 | PR middle-end/83859 | |
4293 | * c-attribs.c (handle_access_attribute): New function. | |
4294 | (c_common_attribute_table): Add new attribute. | |
4295 | (get_argument_type): New function. | |
4296 | (append_access_attrs): New function. | |
4297 | (get_nonnull_operand): Rename... | |
4298 | (get_attribute_operand): ...to this. | |
4299 | * c-common.c (get_nonnull_operand): Rename... | |
4300 | (get_attribute_operand): ...to this. | |
4301 | ||
6c80b1b5 JM |
4302 | 2019-11-21 Joseph Myers <joseph@codesourcery.com> |
4303 | ||
4304 | * c-attribs.c (handle_fallthrough_attribute): Use pedwarn instead | |
4305 | of warning. | |
4306 | ||
192961ff JM |
4307 | 2019-11-19 Joseph Myers <joseph@codesourcery.com> |
4308 | ||
4309 | * c-common.c (attribute_fallthrough_p): In C, use pedwarn not | |
4310 | warning for standard attributes mixed with fallthrough attributes. | |
4311 | ||
f8aea5e3 JM |
4312 | 2019-11-15 Joseph Myers <joseph@codesourcery.com> |
4313 | ||
4314 | * c-attribs.c (handle_fallthrough_attribute): Remove static. | |
4315 | * c-common.h (handle_fallthrough_attribute): Declare. | |
4316 | ||
2cc94aa8 JM |
4317 | 2019-11-15 Joseph Myers <joseph@codesourcery.com> |
4318 | ||
4319 | * c-attribs.c (handle_deprecated_attribute): Remove static. | |
4320 | * c-common.h (handle_deprecated_attribute): Declare. | |
4321 | ||
7c5890cc JM |
4322 | 2019-11-14 Joseph Myers <joseph@codesourcery.com> |
4323 | ||
4324 | * c-lex.c (lex_charconst): Make CPP_UTF8CHAR constants unsigned | |
4325 | char for C. | |
4326 | ||
b2417b59 JJ |
4327 | 2019-11-14 Jakub Jelinek <jakub@redhat.com> |
4328 | ||
d0ec7c93 JJ |
4329 | * c-omp.c (c_omp_check_context_selector): Add nvidia to the list of |
4330 | valid vendors. | |
4331 | ||
b2417b59 JJ |
4332 | * c-omp.c (c_omp_check_context_selector): Handle name lists |
4333 | containing string literals. Don't diagnose atomic_default_mem_order | |
4334 | with multiple props. | |
4335 | ||
00be2a5f JM |
4336 | 2019-11-13 Joseph Myers <joseph@codesourcery.com> |
4337 | ||
4338 | * c-cppbuiltin.c (builtin_define_float_constants): Also define | |
4339 | NORM_MAX constants. Update call to get_max_float. | |
4340 | (LAZY_HEX_FP_VALUES_CNT): Update value to include NORM_MAX | |
4341 | constants. | |
4342 | ||
2dbad62d EB |
4343 | 2019-11-13 Eric Botcazou <ebotcazou@adacore.com> |
4344 | ||
4345 | * c-ada-spec.c (get_underlying_decl): Do not look through typedefs. | |
4346 | (dump_forward_type): Do not generate a declaration for function types. | |
4347 | (dump_nested_type) <ARRAY_TYPE>: Do not generate a nested declaration | |
4348 | of the component type if it is declared in another file. | |
4349 | ||
6ed76044 ML |
4350 | 2019-11-12 Martin Liska <mliska@suse.cz> |
4351 | ||
4352 | * c-opts.c (c_common_post_options): | |
4353 | Use SET_OPTION_IF_UNSET. | |
4354 | ||
62aee289 MR |
4355 | 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com> |
4356 | Frederik Harwath <frederik@codesourcery.com> | |
4357 | ||
4358 | gcc/c-family/ | |
4359 | * c-pragma.h (pragma_kind): Add PRAGMA_OACC_SERIAL enumeration | |
4360 | constant. | |
4361 | * c-pragma.c (oacc_pragmas): Add "serial" entry. | |
4362 | ||
f486280c RS |
4363 | 2019-11-08 Richard Sandiford <richard.sandiford@arm.com> |
4364 | ||
4365 | * c-common.h (gnu_vector_type_p): New function. | |
4366 | * c-common.c (c_build_vec_perm_expr): Require __builtin_shuffle | |
4367 | vectors to satisfy gnu_vector_type_p. | |
4368 | (c_build_vec_convert): Likewise __builtin_convertvector. | |
4369 | (convert_vector_to_array_for_subscript): Likewise when applying | |
4370 | implicit vector to array conversion. | |
4371 | (scalar_to_vector): Likewise when converting vector-scalar | |
4372 | operations to vector-vector operations. | |
4373 | ||
017c6491 JM |
4374 | 2019-11-08 Joseph Myers <joseph@codesourcery.com> |
4375 | ||
4376 | * c.opt (Wold-style-definition): Initialize to -1. | |
4377 | * c-opts.c (c_common_post_options): Set warn_old_style_definition | |
4378 | to flag_isoc2x if not set explicitly. | |
4379 | ||
c01bd174 JM |
4380 | 2019-11-07 Joseph Myers <joseph@codesourcery.com> |
4381 | ||
4382 | * c-attribs.c (parse_tm_stmt_attr): Handle scoped attributes. | |
4383 | ||
0df65305 JM |
4384 | 2019-11-05 Jason Merrill <jason@redhat.com> |
4385 | ||
4386 | * c-opts.c (c_common_post_options): -fconcepts-ts implies | |
4387 | -fconcepts. | |
4388 | ||
e0c866dd KK |
4389 | 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com> |
4390 | ||
4391 | * c-opts.c (c_common_post_options): Update | |
4392 | latest_abi_version. | |
4393 | ||
f968ef9b JJ |
4394 | 2019-11-02 Jakub Jelinek <jakub@redhat.com> |
4395 | ||
d0c464d2 JJ |
4396 | * c-common.h (c_omp_get_context_selector): Remove. |
4397 | * c-omp.c (c_omp_get_context_selector): Moved to omp-general.c | |
4398 | and renamed to omp_get_context_selector. | |
4399 | ||
917dd789 JJ |
4400 | * c-omp.c (c_omp_mark_declare_variant): Use |
4401 | omp_context_selector_set_compare. | |
4402 | ||
f968ef9b JJ |
4403 | PR c++/88335 - Implement P1073R3: Immediate functions |
4404 | * c-common.h (enum rid): Add RID_CONSTEVAL. | |
4405 | * c-common.c (c_common_reswords): Add consteval. | |
4406 | ||
5f6705b7 JJ |
4407 | 2019-11-01 Martin Sebor <msebor@redhat.com> |
4408 | ||
4409 | PR middle-end/91679 | |
4410 | PR middle-end/91647 | |
4411 | PR middle-end/91463 | |
4412 | PR middle-end/92312 | |
4413 | * c-pretty-print.c (direct_abstract_declarator): Print | |
4414 | bound in zero-length arrays. | |
4415 | * c.opt (-Wzero-length-bounds): New option. | |
4416 | ||
43f1814c NS |
4417 | 2019-10-30 Nathan Sidwell <nathan@acm.org> |
4418 | ||
4419 | * c-cppbuiltin.c (c_cpp_builtins): Add 'L' suffix to feature | |
4420 | macros. | |
4421 | ||
ad1539d5 MS |
4422 | 2019-10-28 Martin Sebor <msebor@redhat.com> |
4423 | ||
4424 | PR c/66970 | |
4425 | * c-common.c (c_common_nodes_and_builtins): Call c_define_builtins | |
4426 | even when only preprocessing. | |
4427 | * c-common.h (names_builtin_p): Declare new function. | |
4428 | * c-lex.c (init_c_lex): Set has_builtin. | |
4429 | (c_common_has_builtin): Define a new function. | |
4430 | * c-ppoutput.c (init_pp_output): Set has_builtin. | |
4431 | ||
135df52c JJ |
4432 | 2019-10-24 Jakub Jelinek <jakub@redhat.com> |
4433 | ||
4434 | * c-common.h (c_omp_context_selector_matches): Remove. | |
4435 | * c-omp.c (c_omp_context_selector_matches): Remove. | |
4436 | * c-attribs.c (c_common_attribute_table): Add | |
4437 | "omp declare target {host,nohost,block}" attributes. | |
4438 | ||
8ad0c477 JM |
4439 | 2019-10-17 JeanHeyd Meneide <phdofthehouse@gmail.com> |
4440 | ||
4441 | * c-lex.c (c_common_has_attribute): Update nodiscard value. | |
4442 | ||
56898e43 RS |
4443 | 2019-10-14 Richard Sandiford <richard.sandiford@arm.com> |
4444 | ||
4445 | * c-common.h (user_facing_original_type_p): Declare. | |
4446 | * c-common.c: Include c-spellcheck.h. | |
4447 | (user_facing_original_type_p): New function. | |
4448 | ||
20de9568 JJ |
4449 | 2019-10-12 Jakub Jelinek <jakub@redhat.com> |
4450 | ||
4451 | * c-common.h (c_omp_mark_declare_variant, | |
4452 | c_omp_context_selector_matches): Declare. | |
4453 | * c-omp.c: Include attribs.h, gimplify.h, cgraph.h, symbol-summary.h | |
4454 | and hsa-common.h. | |
4455 | (c_omp_get_context_selector): Support second argument NULL. | |
4456 | (c_omp_mark_declare_variant, c_omp_context_selector_matches): New | |
4457 | functions. | |
4458 | * c-attribs.c (c_common_attribute_table): Remove "omp declare variant" | |
4459 | attribute, add "omp declare variant base" and | |
4460 | "omp declare variant variant" attributes. | |
4461 | ||
175a85b2 JM |
4462 | 2019-10-11 Joseph Myers <joseph@codesourcery.com> |
4463 | ||
4464 | * c.opt (Wc11-c2x-compat): Add CPP(cpp_warn_c11_c2x_compat) | |
4465 | CppReason(CPP_W_C11_C2X_COMPAT). | |
4466 | ||
fe2bc27c JM |
4467 | 2019-10-11 Joseph Myers <joseph@codesourcery.com> |
4468 | ||
4469 | * c-common.c (c_common_reswords): Do not use D_EXT for _Decimal32, | |
4470 | _Decimal64 and _Decimal128. | |
4471 | ||
27dfdc0f JM |
4472 | 2019-10-10 Joseph Myers <joseph@codesourcery.com> |
4473 | ||
4474 | * c-cppbuiltin.c (c_cpp_builtins): Do not define macros for DFP | |
4475 | types if DFP not supported. | |
4476 | ||
94e7f906 JJ |
4477 | 2019-10-10 Jakub Jelinek <jakub@redhat.com> |
4478 | ||
4479 | * c-common.h (c_omp_check_context_selector, | |
4480 | c_omp_get_context_selector): Declare. | |
4481 | * c-omp.c (c_omp_declare_simd_clauses_to_numbers): Fix spelling | |
4482 | in diagnostic message. | |
4483 | (c_omp_check_context_selector, c_omp_get_context_selector): New | |
4484 | functions. | |
4485 | * c-attribs.c (c_common_attribute_table): Add "omp declare variant" | |
4486 | attribute. | |
4487 | (handle_omp_declare_variant_attribute): New function. | |
4488 | ||
a7160771 MS |
4489 | 2019-10-09 Martin Sebor <msebor@redhat.com> |
4490 | ||
4491 | PR tree-optimization/90879 | |
4492 | * c.opt (-Wstring-compare): New option. | |
4493 | ||
cb57504a JM |
4494 | 2019-10-08 Andrew Sutton <asutton@lock3software.com> |
4495 | Jason Merrill <jason@redhat.com> | |
4496 | ||
4497 | Update the concepts implementation to conform to the C++20 | |
4498 | specification, improve compile times, and generally clean up | |
4499 | the implementation. | |
4500 | ||
4501 | * c-cppbuiltin.c (c_cpp_builtins): Use new feature test values for | |
4502 | concepts when -std=c++2a. Bump __cpp_concepts to 201907. | |
4503 | * c.opt: Add -Wconcepts-ts. | |
4504 | * c-opts.c (c_common_post_options): Warn when -fconcepts is used | |
4505 | with -std=c++2a. Disable warning for -fconcepts in C++20 mode. | |
4506 | (set_std_cxx2a): Enable concepts by default. | |
4507 | ||
fbb2a6dc JM |
4508 | 2019-10-08 Joseph Myers <joseph@codesourcery.com> |
4509 | ||
4510 | * c-opts.c (c_common_post_options): Set | |
4511 | -fno-fp-int-builtin-inexact for C2X. | |
4512 | ||
8e007055 JJ |
4513 | 2019-10-05 Jakub Jelinek <jakub@redhat.com> |
4514 | ||
4515 | PR c++/91369 - Implement P0784R7: constexpr new | |
4516 | * c-cppbuiltin.c (c_cpp_builtins): Predefine | |
4517 | __cpp_constexpr_dynamic_alloc=201907 for -std=c++2a. | |
4518 | ||
843f104d JM |
4519 | 2019-10-04 Joseph Myers <joseph@codesourcery.com> |
4520 | ||
4521 | PR c/82752 | |
4522 | * c-format.c (C_STD_VER): Handle C2x. | |
4523 | (C_STD_NAME): Likewise. | |
4524 | (strftime_flag_specs): Add 'O' modifier with 'p' flag. | |
4525 | (time_char_table): Use separate entry for 'B' and 'b', with 'O' | |
4526 | modifier allowed and 'p' flag. | |
4527 | * c-format.h (enum format_std_version): Add STD_C2X. | |
4528 | (struct format_char_info): Mention 'p' in comment on flags2. | |
4529 | ||
e9c9a142 DM |
4530 | 2019-10-01 David Malcolm <dmalcolm@redhat.com> |
4531 | ||
4532 | * c-opts.c (c_diagnostic_finalizer): Temporarily clear prefix when | |
4533 | calling diagnostic_show_locus, rather than destroying it afterwards. | |
4534 | ||
7552c36a JJ |
4535 | 2019-10-01 Jakub Jelinek <jakub@redhat.com> |
4536 | ||
4537 | PR c++/91925 | |
4538 | * c-warn.c (check_alignment_of_packed_member): Ignore FIELD_DECLs | |
4539 | with NULL DECL_FIELD_OFFSET. | |
4540 | ||
8209db25 RS |
4541 | 2019-10-01 Richard Sandiford <richard.sandiford@arm.com> |
4542 | ||
4543 | * c-pretty-print.c (pp_c_specifier_qualifier_list): If a vector type | |
4544 | has a type name, use it in preference to the __vector syntax. | |
4545 | ||
9343bf99 RS |
4546 | 2019-09-30 Richard Sandiford <richard.sandiford@arm.com> |
4547 | ||
4548 | * c-pretty-print.c (pp_c_parameter_type_list): Avoid printing | |
4549 | two spaces between a comma and "...". | |
4550 | ||
59bc434a JJ |
4551 | 2019-09-27 Jakub Jelinek <jakub@redhat.com> |
4552 | ||
4553 | PR c++/88203 | |
4554 | * c-common.h (c_omp_predefined_variable): Declare. | |
4555 | * c-omp.c (c_omp_predefined_variable): New function. | |
4556 | (c_omp_predetermined_sharing): Return OMP_CLAUSE_DEFAULT_SHARED | |
4557 | for predefined variables. | |
4558 | ||
c6447c20 RS |
4559 | 2019-09-27 Richard Sandiford <richard.sandiford@arm.com> |
4560 | ||
4561 | * c-common.h (build_function_call_vec): Take the original | |
4562 | function decl as an optional final parameter. | |
4563 | (check_builtin_function_arguments): Take the original function decl. | |
4564 | * c-common.c (check_builtin_function_arguments): Likewise. | |
4565 | Handle all built-in functions, not just BUILT_IN_NORMAL ones. | |
4566 | Use targetm.check_builtin_call to check BUILT_IN_MD functions. | |
4567 | ||
c4438114 JM |
4568 | 2019-09-15 Jason Merrill <jason@redhat.com> |
4569 | ||
4570 | * c-warn.c (warn_logical_operator): Strip location wrappers. Don't | |
4571 | fold_for_warn in "|| mask" warning. | |
4572 | ||
68a57628 ML |
4573 | 2019-09-10 Martin Liska <mliska@suse.cz> |
4574 | ||
4575 | * c.opt: Use newly added WarnRemoved. | |
4576 | ||
f48ef52e ML |
4577 | 2019-09-09 Martin Liska <mliska@suse.cz> |
4578 | ||
4579 | * c.opt: Update comment of removed | |
4580 | options that are preserved only for backward | |
4581 | compatibility. | |
4582 | ||
67f6e649 ML |
4583 | 2019-09-06 Martin Liska <mliska@suse.cz> |
4584 | ||
4585 | PR c++/91125 | |
4586 | * c-common.c: Remove definition of flag_use_repository. | |
4587 | * c-common.h: Likewise. | |
4588 | * c-opts.c (c_common_handle_option): | |
4589 | Do not handle OPT_frepo option. | |
4590 | * c.opt: Mark the option with Deprecated. | |
4591 | ||
db9d2274 MP |
4592 | 2019-09-04 Marek Polacek <polacek@redhat.com> |
4593 | ||
4594 | * c.opt (fdeduce-init-list): Ignored. | |
4595 | ||
68e2c199 PK |
4596 | 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
4597 | ||
4598 | PR c/78736 | |
4599 | * c.opt (Wenum-conversion): New option. | |
4600 | ||
7a4418a5 JL |
4601 | 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com> |
4602 | ||
4603 | * c-attribs.c (handle_section_attribute): Call the | |
4604 | handle_generic_attribute target hook after performing target | |
4605 | independent processing. | |
4606 | (handle_noinit_attribute): Likewise. | |
4607 | ||
5f76ab15 ILT |
4608 | 2019-09-03 Ian Lance Taylor <iant@golang.org> |
4609 | ||
4610 | * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Always expand | |
4611 | when using -fgo-dump-spec. | |
4612 | ||
ae0d3f6a ML |
4613 | 2019-09-02 Martin Liska <mliska@suse.cz> |
4614 | ||
4615 | PR c++/91155 | |
4616 | * c-common.c (fname_as_string): Use cxx_printable_name for | |
4617 | __PRETTY_FUNCTION__ same as was used before r265711. | |
4618 | ||
8a902edb MP |
4619 | 2019-08-28 Marek Polacek <polacek@redhat.com> |
4620 | ||
4621 | Implement P1152R4: Deprecating some uses of volatile. | |
4622 | PR c++/91361 | |
4623 | * c-opts.c (c_common_post_options): Enable -Wvolatile by | |
4624 | default for C++2a, unless -Wno-deprecated. | |
4625 | * c.opt (Wvolatile): New warning. | |
4626 | ||
4742dbe7 MP |
4627 | 2019-08-28 Marek Polacek <polacek@redhat.com> |
4628 | ||
4629 | PR c++/91360 - Implement C++20 P1143R2: constinit. | |
4630 | * c-common.c (c_common_reswords): Add constinit and __constinit. | |
4631 | (keyword_is_decl_specifier): Handle RID_CONSTINIT. | |
4632 | * c-common.h (enum rid): Add RID_CONSTINIT, RID_FIRST_CXX20, and | |
4633 | RID_LAST_CXX20. | |
4634 | (D_CXX20): Define. | |
4635 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_constinit. | |
4636 | * c-format.c (cxx_keywords): Add "constinit". | |
4637 | * c.opt (Wc++2a-compat, Wc++20-compat): New options. | |
4638 | ||
6a074892 JJ |
4639 | 2019-08-27 Jakub Jelinek <jakub@redhat.com> |
4640 | ||
4641 | PR c++/91415 | |
4642 | * c-common.c (verify_tree): For LSHIFT_EXPR, RSHIFT_EXPR, | |
4643 | COMPONENT_REF and ARRAY_REF in cxx_dialect >= cxx17 mode handle it | |
4644 | like COMPOUND_EXPR rather than normal expression. | |
4645 | ||
22f8849d IS |
4646 | 2019-08-23 Iain Sandoe <iain@sandoe.co.uk> |
4647 | ||
4648 | PR pch/61250 | |
4649 | * c-lex.c (c_lex_with_flags): Don't call | |
4650 | c_common_no_more_pch () from here. | |
4651 | ||
df375b03 JJ |
4652 | 2019-08-23 Jakub Jelinek <jakub@redhat.com> |
4653 | ||
4654 | PR middle-end/91283 | |
4655 | * c-common.c (c_ts18661_flt_eval_method): Use flag_excess_precision | |
4656 | instead of flag_excess_precision_cmdline. | |
4657 | * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): Likewise. | |
4658 | * c-opts.c (c_common_post_options): Likewise. | |
4659 | ||
14b7950f MS |
4660 | 2019-08-22 Martin Sebor <msebor@redhat.com> |
4661 | ||
4662 | PR middle-end/91490 | |
4663 | * c-common.c (braced_list_to_string): Add argument and overload. | |
4664 | Handle flexible length arrays and unions. | |
4665 | ||
8bb2ee59 EB |
4666 | 2019-08-21 Eric Botcazou <ebotcazou@adacore.com> |
4667 | ||
4668 | * c-ada-spec.c (dump_ada_function_declaration): Be prepared for broken | |
4669 | function declarations where arguments are missing. Rename variables. | |
4670 | ||
21c1e205 RB |
4671 | 2019-08-15 Richard Biener <rguenther@suse.de> |
4672 | ||
4673 | * c-common.c (c_stddef_cpp_builtins): When the GIMPLE FE is | |
4674 | enabled, define __SIZETYPE__. | |
4675 | ||
f0033821 CL |
4676 | 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org> |
4677 | ||
4678 | * c-attribs.c (c_common_attribute_table): Add "noinit" entry. Add | |
4679 | exclusion with "section" attribute. | |
4680 | (attr_noinit_exclusions): New table. | |
4681 | (handle_noinit_attribute): New function. | |
4682 | ||
4d732405 RS |
4683 | 2019-08-13 Richard Sandiford <richard.sandiford@arm.com> |
4684 | ||
4685 | PR middle-end/91421 | |
4686 | * c-common.c (resolve_overloaded_builtin): Use | |
4687 | copy_decl_built_in_function. | |
4688 | ||
51ad8481 MS |
4689 | 2019-08-13 Martin Sebor <msebor@redhat.com> |
4690 | ||
4691 | PR c/80619 | |
4692 | * c-format.c (printf_length_specs): Set FMT_LEN_w for "w". | |
4693 | (asm_fprintf_length_spec): Same. | |
4694 | * c-format.h (format_lengths): Add FMT_LEN_w. | |
4695 | ||
77eb117f JJ |
4696 | 2019-08-10 Jakub Jelinek <jakub@redhat.com> |
4697 | ||
4698 | * c-pragma.h (enum pragma_omp_clause): Add | |
4699 | PRAGMA_OMP_CLAUSE_DEVICE_TYPE. | |
4700 | ||
398e3feb JJ |
4701 | 2019-08-07 Jakub Jelinek <jakub@redhat.com> |
4702 | ||
4703 | * c-pragma.h (enum pragma_omp_clause): Add | |
4704 | PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR. Set PRAGMA_OACC_CLAUSE_USE_DEVICE | |
4705 | equal to PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR instead of being a separate | |
4706 | enumeration value. | |
4707 | ||
ab574db6 MP |
4708 | 2019-08-05 Marek Polacek <polacek@redhat.com> |
4709 | ||
4710 | PR c++/91338 - Implement P1161R3: Deprecate a[b,c]. | |
4711 | * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by | |
4712 | default for C++2a, unless -Wno-deprecated. | |
4713 | * c.opt (Wcomma-subscript): New warning. | |
4714 | ||
554a530f JJ |
4715 | 2019-07-20 Jakub Jelinek <jakub@redhat.com> |
4716 | ||
4717 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_LOOP. | |
4718 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_BIND. | |
4719 | * c-pragma.c (omp_pragmas_simd): Add PRAGMA_OMP_LOOP entry. | |
4720 | * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_LOOP. | |
4721 | * c-omp.c (c_omp_split_clauses): Add support for 4 new combined | |
4722 | constructs with the loop construct. | |
4723 | ||
1a888209 JJ |
4724 | 2019-07-13 Jakub Jelinek <jakub@redhat.com> |
4725 | ||
4726 | PR c/91149 | |
4727 | * c-omp.c (c_omp_split_clauses): Fix a pasto in | |
4728 | OMP_CLAUSE_REDUCTION_TASK handling. | |
4729 | ||
1fdd6f04 JJ |
4730 | 2019-07-12 Jakub Jelinek <jakub@redhat.com> |
4731 | ||
4732 | * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ORDER. | |
4733 | * c-omp.c (c_omp_split_clauses): Handle splitting of OMP_CLAUSE_ORDER. | |
4734 | ||
99b1c316 MS |
4735 | 2019-07-09 Martin Sebor <msebor@redhat.com> |
4736 | ||
4737 | PR c++/61339 | |
1fdd6f04 | 4738 | * c-opts.c (handle_deferred_opts): Change class-key of PODs to struct |
99b1c316 MS |
4739 | and others to class. |
4740 | * c-pretty-print.h: Same. | |
4741 | ||
6c1dae73 MS |
4742 | 2019-07-09 Martin Sebor <msebor@redhat.com> |
4743 | ||
4744 | PR c++/61339 | |
4745 | * c-format.c (check_argument_type): Change class-key from class to | |
4746 | struct and vice versa to match convention and avoid -Wclass-is-pod | |
4747 | and -Wstruct-no-pod. | |
4748 | * c-pretty-print.h: Same. | |
4749 | ||
8ba6ea87 ML |
4750 | 2019-07-03 Martin Liska <mliska@suse.cz> |
4751 | ||
4752 | * c-common.c (try_to_locate_new_include_insertion_point): Remove | |
4753 | dead assignemts. | |
4754 | ||
83eb9522 JJ |
4755 | 2019-07-03 Jakub Jelinek <jakub@redhat.com> |
4756 | ||
4757 | * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_REDUCTION_INSCAN | |
4758 | clauses on OMP_FOR rather than OMP_PARALLEL when OMP_FOR is combined | |
4759 | with OMP_PARALLEL. | |
4760 | ||
1c6ffbab QZ |
4761 | 2019-07-02 qing zhao <qing.zhao@oracle.com> |
4762 | ||
4763 | PR preprocessor/90581 | |
4764 | * c-opts.c (c_common_handle_option): Handle -fmax-include-depth. | |
4765 | * c.opt: Add new option -fmax-include-depth. | |
4766 | ||
7ffc7de5 JM |
4767 | 2019-06-26 Jason Merrill <jason@redhat.com> |
4768 | ||
4769 | PR c++/55442 - memory-hog with highly recursive constexpr. | |
4770 | * c.opt (fconstexpr-loop-limit): New. | |
4771 | ||
361af3e4 JJ |
4772 | 2019-06-25 Jakub Jelinek <jakub@redhat.com> |
4773 | ||
4774 | PR sanitizer/90954 | |
4775 | * c-omp.c (c_finish_omp_atomic): Allow tree_invariant_p in addition | |
4776 | to SAVE_EXPR in first operand of a COMPOUND_EXPR. | |
4777 | ||
ab20d992 JJ |
4778 | 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com> |
4779 | ||
4780 | * c-common.c (c_common_nodes_and_builtins): Define | |
4781 | alternate "__intN__" name for "__intN" types. | |
4782 | ||
f4af4019 JH |
4783 | 2019-06-24 Jan Hubicka <jh@suse.cz> |
4784 | ||
4785 | * c-common.c (braced_lists_to_strings): Check that | |
4786 | type is array or integer prior checking string flag. | |
4787 | ||
da9e9b57 MB |
4788 | 2019-06-21 Matthew Beliveau <mbelivea@redhat.com> |
4789 | ||
4790 | PR c++/90875 - added -Wswitch-outside-range option | |
4791 | * c.opt (Wswitch-outside-range): Added new option. | |
4792 | * c-warn.c (c_do_switch_warnings): Use OPT_Wswitch-outside-range. | |
4793 | ||
3f3d6a6f MP |
4794 | 2019-06-21 Marek Polacek <polacek@redhat.com> |
4795 | ||
4796 | PR c++/90953 - ICE with -Wmissing-format-attribute. | |
4797 | * c-common.c (check_function_arguments_recurse): Use | |
4798 | get_attribute_name. | |
4799 | (check_missing_format_attribute): Likewise. | |
4800 | ||
1bf32c11 MP |
4801 | 2019-06-19 Marek Polacek <polacek@redhat.com> |
4802 | ||
4803 | PR c++/60364 - noreturn after first decl not diagnosed. | |
4804 | * c-attribs.c (handle_noreturn_attribute): No longer static. | |
4805 | * c-common.h (handle_noreturn_attribute, attr_noreturn_exclusions): | |
4806 | Declare. | |
4807 | * c-format.c (check_function_format): Use get_attribute_name. | |
4808 | ||
a04c0734 MS |
4809 | 2019-06-19 Martin Sebor <msebor@redhat.com> |
4810 | ||
4811 | PR translation/90156 | |
4812 | * c-format.c (function_format_info::format_type): Adjust type. | |
4813 | (function_format_info::is_raw): New member. | |
4814 | (decode_format_type): Adjust signature. Handle "raw" diag attributes. | |
4815 | (decode_format_attr): Adjust call to decode_format_type. | |
4816 | Avoid a redundant call to convert_format_name_to_system_name. | |
4817 | Avoid abbreviating the word "arguments" in a diagnostic. | |
4818 | (format_warning_substr): New function. | |
4819 | (avoid_dollar_number): Quote dollar sign in a diagnostic. | |
4820 | (finish_dollar_format_checking): Same. | |
4821 | (check_format_info): Same. | |
4822 | (struct baltoks_t): New. | |
4823 | (c_opers, c_keywords, cxx_keywords, badwords, contrs): New arrays. | |
4824 | (maybe_diag_unbalanced_tokens, check_tokens, check_plain): New | |
4825 | functions. | |
4826 | (check_format_info_main): Call check_plain. Use baltoks_t. Call | |
4827 | maybe_diag_unbalanced_tokens. | |
4828 | (handle_format_attribute): Spell out the word "arguments" in | |
4829 | a diagnostic. | |
4830 | ||
d3786ebb MB |
4831 | 2019-06-11 Matthew Beliveau <mbelivea@redhat.com> |
4832 | ||
4833 | PR c++/90449 - add -Winaccessible-base option. | |
4834 | * c.opt (Winaccessible-base): New option. | |
4835 | ||
bf38f7e9 JJ |
4836 | 2019-06-10 Jakub Jelinek <jakub@redhat.com> |
4837 | ||
4838 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCAN. | |
4839 | * c-pragma.c (omp_pragmas_simd): Add #pragma omp scan. | |
4840 | * c-omp.c (c_omp_split_clauses): Diagnose inscan reductions on | |
4841 | combined/composite constructs where it is not allowed. Copy over | |
4842 | OMP_CLAUSE_REDUCTION_INSCAN. | |
4843 | ||
0ecf545c MS |
4844 | 2019-06-05 Martin Sebor <msebor@redhat.com> |
4845 | ||
4846 | * c-attribs.c (handle_mode_attribute): Adjust quoting and hyphenation. | |
4847 | (handle_alias_ifunc_attribute): Same. | |
4848 | (handle_copy_attribute): Same. | |
4849 | (handle_weakref_attribute): Same. | |
4850 | (handle_nonnull_attribute): Same. | |
4851 | * c-warn.c (warn_for_sign_compare): Same. | |
4852 | (warn_for_restrict): Same. | |
4853 | * c.opt: Same. | |
4854 | ||
36b34127 MS |
4855 | 2019-06-05 Martin Sebor <msebor@redhat.com> |
4856 | ||
4857 | * c-pragma.c (handle_pragma_weak): Adjust quoting in a diagnostic. | |
4858 | * c.opt (-Wformat-diag): Remove a spurious period. | |
4859 | ||
357a352f JJ |
4860 | 2019-05-29 Jakub Jelinek <jakub@redhat.com> |
4861 | ||
4862 | PR c/90628 | |
4863 | * c-common.c (check_builtin_function_arguments) | |
4864 | <case BUILTIN_*_OVERFLOW>: Diagnose pointer to const qualified integer | |
4865 | as last argument. | |
4866 | ||
2b8235ea EB |
4867 | 2019-05-23 Eric Botcazou <ebotcazou@adacore.com> |
4868 | ||
4869 | * c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort. | |
4870 | ||
6d86ddc4 ML |
4871 | 2019-05-22 Martin Liska <mliska@suse.cz> |
4872 | ||
4873 | PR lto/90500 | |
4874 | * c-attribs.c (handle_copy_attribute): Do not copy | |
4875 | target_clones attribute. | |
4876 | ||
419ba5b9 EB |
4877 | 2019-05-21 Eric Botcazou <ebotcazou@adacore.com> |
4878 | ||
4879 | * c-ada-spec.h (enum cpp_operation): Add IS_ASSIGNMENT_OPERATOR. | |
4880 | * c-ada-spec.c (print_assignment_operator): New function. | |
4881 | (dump_ada_declaration) <FUNCTION_DECL>: Call it do dump explicit copy | |
4882 | assignment operators declared as methods and filter out the others. | |
4883 | ||
e03436e7 TS |
4884 | 2019-05-17 Thomas Schwinge <thomas@codesourcery.com> |
4885 | ||
4886 | PR c/89433 | |
4887 | * c-attribs.c (c_common_attribute_table): Set min_len to -1 for | |
4888 | "omp declare target". | |
4889 | ||
a9c697b8 MS |
4890 | 2019-05-16 Martin Sebor <msebor@redhat.com> |
4891 | ||
ab20d992 JJ |
4892 | * c-attribs.c (handle_no_sanitize_attribute): Quote identifiers, |
4893 | keywords, operators, and types in diagnostics. | |
4894 | (handle_scalar_storage_order_attribute): Same. | |
4895 | (handle_mode_attribute): Same. | |
4896 | (handle_visibility_attribute): Same. | |
4897 | (handle_assume_aligned_attribute): Same. | |
4898 | (handle_no_split_stack_attribute): Same. | |
4899 | * c-common.c (shorten_compare): Same. | |
4900 | (c_common_truthvalue_conversion): Same. | |
4901 | (cb_get_source_date_epoch): Same. | |
4902 | * c-lex.c (cb_def_pragma): Quote keywords, operators, and types | |
4903 | in diagnostics. | |
4904 | (interpret_float): Same. | |
4905 | * c-omp.c (c_finish_omp_for): Same. | |
4906 | * c-opts.c (c_common_post_options): Same. | |
4907 | * c-pch.c (c_common_pch_pragma): Same. | |
4908 | * c-pragma.c (pop_alignment): Same. | |
4909 | (handle_pragma_pack): Same. | |
4910 | (apply_pragma_weak): Same. | |
4911 | (handle_pragma_weak): Same. | |
4912 | (handle_pragma_scalar_storage_order): Same. | |
4913 | (handle_pragma_redefine_extname): Same. | |
4914 | (add_to_renaming_pragma_list): Same. | |
4915 | (maybe_apply_renaming_pragma): Same. | |
4916 | (push_visibility): Same. | |
4917 | (handle_pragma_visibility): Same. | |
4918 | (handle_pragma_optimize): Same. | |
4919 | (handle_pragma_message): Same. | |
4920 | * c-warn.c (warn_for_omitted_condop): Same. | |
4921 | (lvalue_error): Same. | |
a9c697b8 | 4922 | |
6b943512 RB |
4923 | 2019-05-15 Richard Biener <rguenther@suse.de> |
4924 | ||
4925 | PR c/90474 | |
4926 | * c-common.c (c_common_mark_addressable_vec): Also mark | |
4927 | a COMPOUND_LITERAL_EXPR_DECL addressable similar to | |
4928 | c_mark_addressable. | |
ab20d992 | 4929 | |
b744fc85 NS |
4930 | 2019-05-06 Nathan Sidwell <nathan@acm.org> |
4931 | ||
4932 | * c-opts.c (handle_defered_opts): Rename struct deps to struc mkdeps. | |
4933 | ||
598f50d7 NS |
4934 | 2019-04-30 Nathan Sidwell <nathan@acm.org> |
4935 | ||
4936 | * c-common.c (c_common_init_ts): Use MARK_TS_EXP. Mark SIZEOF_EXPR. | |
4937 | ||
5bcc5a3b ML |
4938 | 2019-04-30 Martin Liska <mliska@suse.cz> |
4939 | ||
4940 | * c-pragma.c (handle_pragma_diagnostic): Provide hints | |
4941 | for unknown options. | |
4942 | ||
e78a87f7 RS |
4943 | 2019-04-26 Richard Sandiford <richard.sandiford@arm.com> |
4944 | ||
4945 | * c-warn.c (strict_aliasing_warning): Apply COMPLETE_TYPE_P to | |
4946 | the pointer target rather than the pointer itself. | |
4947 | ||
c280b7ee JJ |
4948 | 2019-04-19 Jakub Jelinek <jakub@redhat.com> |
4949 | ||
4950 | PR c/89888 | |
4951 | * c-common.h (c_add_case_label): Remove orig_type and outside_range_p | |
4952 | arguments. | |
4953 | (c_do_switch_warnings): Remove outside_range_p argument. | |
4954 | * c-common.c (check_case_bounds): Removed. | |
4955 | (c_add_case_label): Remove orig_type and outside_range_p arguments. | |
4956 | Don't call check_case_bounds. Fold low_value as well as high_value. | |
4957 | * c-warn.c (c_do_switch_warnings): Remove outside_range_p argument. | |
4958 | Check for case labels outside of range of original type here and | |
4959 | adjust them. | |
4960 | ||
8e8225e6 JJ |
4961 | 2019-04-12 Jakub Jelinek <jakub@redhat.com> |
4962 | ||
63b8a166 JJ |
4963 | PR translation/90041 |
4964 | * c.opt (-fhandle-exceptions): Use %< and %> around option names | |
4965 | in the Warn diagnostics. | |
4966 | ||
8e8225e6 JJ |
4967 | PR c/89946 |
4968 | * c-attribs.c (handle_patchable_function_entry_attribute): Add | |
4969 | function comment. Warn if arguments of the attribute are not positive | |
4970 | integer constants. | |
4971 | ||
53a3f614 EB |
4972 | 2019-04-09 Eric Botcazou <ebotcazou@adacore.com> |
4973 | ||
4974 | * c-ada-spec.c (print_destructor): Deal with deleting destructors. | |
4975 | (dump_ada_declaration) <FUNCTION_DECL>: Likewise. | |
4976 | ||
22be5873 EB |
4977 | 2019-04-07 Eric Botcazou <ebotcazou@adacore.com> |
4978 | ||
4979 | * c-ada-spec.c (is_float128): New predicate extracted from... | |
4980 | (dump_ada_node) <COMPLEX_TYPE>: Use it to recognize __cfloat128. | |
4981 | <REAL_TYPE>: ...here. Call it. | |
4982 | ||
34facf20 DM |
4983 | 2019-04-05 David Malcolm <dmalcolm@redhat.com> |
4984 | ||
4985 | PR c/89985 | |
4986 | * c-warn.c (check_address_or_pointer_of_packed_member): Add | |
4987 | auto_diagnostic_group. Guard inform calls by result of | |
4988 | warning_at call. | |
4989 | ||
05564120 MP |
4990 | 2019-04-05 Marek Polacek <polacek@redhat.com> |
4991 | ||
ab20d992 | 4992 | PR c++/89973 - -Waddress-of-packed-member ICE with invalid conversion. |
05564120 MP |
4993 | * c-warn.c (check_address_or_pointer_of_packed_member): Check the type |
4994 | of RHS. | |
4995 | ||
7a506c3c JM |
4996 | 2019-04-03 Jason Merrill <jason@redhat.com> |
4997 | ||
4998 | PR c++/86586 - -fcompare-debug=-Wsign-compare. | |
4999 | * c-warn.c (warn_for_sign_compare): Call fold_for_warn. | |
5000 | ||
ddeae8c8 MS |
5001 | 2019-04-01 Martin Sebor <msebor@redhat.com> |
5002 | ||
5003 | PR c/89685 | |
5004 | * c-attribs.c (handle_copy_attribute): Handle references and | |
5005 | non-constant expressions. | |
5006 | ||
a15ffa22 JJ |
5007 | 2019-03-22 Jakub Jelinek <jakub@redhat.com> |
5008 | ||
5009 | PR c++/87481 | |
5010 | * c.opt (-fconstexpr-ops-limit=): New option. | |
5011 | ||
36a3a7a3 JJ |
5012 | 2019-03-21 Jakub Jelinek <jakub@redhat.com> |
5013 | ||
5014 | * c-common.c (per_file_includes_t): Use false as Lazy in hash_set | |
5015 | template param. | |
5016 | ||
bec1da64 MS |
5017 | 2019-03-19 Martin Sebor <msebor@redhat.com> |
5018 | ||
5019 | PR tree-optimization/89688 | |
5020 | * c-common.c (braced_list_to_string): Make static. | |
5021 | (braced_lists_to_strings): Define new function. | |
5022 | * c-common.h (braced_list_to_string): Remove. | |
5023 | (braced_lists_to_strings): Declare. | |
5024 | ||
1fe61adf ML |
5025 | 2019-03-12 Martin Liska <mliska@suse.cz> |
5026 | ||
5027 | * c-opts.c (c_common_handle_option): Wrap option with %< and %>. | |
5028 | ||
93964ebd ML |
5029 | 2019-03-11 Martin Liska <mliska@suse.cz> |
5030 | ||
5031 | * c-opts.c (c_common_post_options): Wrap apostrophes | |
5032 | in gcc internal format with %'. | |
5033 | ||
a3f9f006 ML |
5034 | 2019-03-11 Martin Liska <mliska@suse.cz> |
5035 | ||
5036 | * c-attribs.c (handle_nocf_check_attribute): Wrap an option name | |
5037 | in a string format message and fix GNU coding style. | |
5038 | * c-common.c (vector_types_convertible_p): Likewise. | |
5039 | (c_build_vec_perm_expr): Likewise. | |
5040 | * c-indentation.c (get_visual_column): Likewise. | |
5041 | * c-opts.c (c_common_handle_option): Likewise. | |
5042 | (c_common_post_options): Likewise. | |
5043 | (sanitize_cpp_opts): Likewise. | |
5044 | * c-pch.c (c_common_pch_pragma): Likewise. | |
5045 | * c-pragma.c (handle_pragma_pack): Likewise. | |
5046 | ||
1db01ff9 JJ |
5047 | 2019-03-08 Jakub Jelinek <jakub@redhat.com> |
5048 | ||
5049 | PR tree-optimization/89550 | |
5050 | * c-common.c (c_common_truthvalue_conversion): Only set | |
5051 | TREE_NO_WARNING if warning_at returned true. | |
5052 | * c-warn.c (overflow_warning, warn_logical_operator): Likewise. | |
5053 | ||
ba790e6f JJ |
5054 | 2019-02-25 Sandra Loosemore <sandra@codesourcery.com> |
5055 | Martin Sebor <msebor@gmail.com> | |
5056 | ||
5057 | * c.opt (Wmissing-attributes): Clean up doc string. | |
5058 | ||
7da73ba7 JJ |
5059 | 2019-02-25 Jakub Jelinek <jakub@redhat.com> |
5060 | ||
5061 | PR c/89495 | |
5062 | * c-format.c (maybe_read_dollar_number): Compute nargnum in | |
5063 | HOST_WIDE_INT type to avoid overflows and change overflow_flag | |
5064 | checking. | |
5065 | ||
921bb9d1 RB |
5066 | 2019-02-22 Richard Biener <rguenther@suse.de> |
5067 | ||
5068 | * c-pch.c (no_checksum): Remove. | |
5069 | (pch_init): Remove assertion that executable_checksum is not | |
5070 | all zero. | |
5071 | (c_common_valid_pch): Likewise. | |
5072 | ||
e2ebb05c MS |
5073 | 2019-02-18 Martin Sebor <msebor@redhat.com> |
5074 | ||
5075 | PR middle-end/89294 | |
5076 | * c-common.c (invalid_array_size_error): Handle cst_size_not_constant. | |
5077 | ||
3fe53000 DM |
5078 | 2019-02-16 David Malcolm <dmalcolm@redhat.com> |
5079 | ||
5080 | PR c++/88680 | |
5081 | * c-common.c (shorten_compare): Call fold_for_warn on op0 when | |
5082 | implementing -Wtype-limits. | |
5083 | ||
28a8cef1 MS |
5084 | 2019-02-11 Martin Sebor <msebor@redhat.com> |
5085 | ||
5086 | PR c++/87996 | |
5087 | * c-common.c (invalid_array_size_error): New function. | |
5088 | (valid_array_size_p): Call it. Handle size as well as type. | |
5089 | * c-common.h (valid_constant_size_p): New function. | |
5090 | (enum cst_size_error): New type. | |
5091 | ||
ec2be203 DM |
5092 | 2019-01-31 David Malcolm <dmalcolm@redhat.com> |
5093 | ||
5094 | PR c/89122 | |
5095 | * known-headers.cc (get_stdlib_header_for_name): Add | |
5096 | {FLT|DBL|LDBL}_{MAX|MIN} to "hints" array. | |
5097 | ||
8936f047 JJ |
5098 | 2019-01-31 Jakub Jelinek <jakub@redhat.com> |
5099 | ||
5100 | PR libstdc++/88170 | |
5101 | * c-pretty-print.c (pp_c_enumeration_constant): Print always as | |
5102 | a C cast in pp_c_flag_gnu_v3 mode. | |
5103 | ||
6a335b96 JJ |
5104 | 2019-01-29 Jakub Jelinek <jakub@redhat.com> |
5105 | ||
5106 | PR c/86125 | |
5107 | * c-common.c (c_common_nodes_and_builtins): Build type variants for | |
5108 | builtin_structptr_types types even for C. | |
5109 | ||
2a06eba5 BE |
5110 | 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de> |
5111 | ||
5112 | * c-warn.c (check_address_or_pointer_of_packed_member): Handle the case | |
5113 | when rhs is of array type correctly. Fix handling of nested structures. | |
5114 | Fix handling of indirect_ref together with nop_expr and/or addr_expr. | |
5115 | (check_and_warn_address_or_pointer_of_packed_member): Fix handling of | |
5116 | type casts within nested compound expressions. | |
5117 | ||
18a23298 JJ |
5118 | 2019-01-22 Jakub Jelinek <jakub@redhat.com> |
5119 | ||
5120 | PR middle-end/88968 | |
5121 | * c-omp.c (c_finish_omp_atomic): For bitfield atomics, update type | |
5122 | variable after using BIT_FIELD_REF. | |
5123 | ||
420183d9 L |
5124 | 2019-01-18 H.J. Lu <hongjiu.lu@intel.com> |
5125 | ||
5126 | PR c/51628 | |
5127 | PR c/88664 | |
5128 | * c-common.h (warn_for_address_or_pointer_of_packed_member): | |
5129 | Remove the boolean argument. | |
5130 | * c-warn.c (check_address_of_packed_member): Renamed to ... | |
5131 | (check_address_or_pointer_of_packed_member): This. Also | |
5132 | warn pointer conversion. | |
5133 | (check_and_warn_address_of_packed_member): Renamed to ... | |
5134 | (check_and_warn_address_or_pointer_of_packed_member): This. | |
5135 | Also warn pointer conversion. | |
5136 | (warn_for_address_or_pointer_of_packed_member): Remove the | |
5137 | boolean argument. Don't check pointer conversion here. | |
5138 | ||
99063eee RS |
5139 | 2019-01-15 Richard Sandiford <richard.sandiford@arm.com> |
5140 | ||
5141 | PR inline-asm/52813 | |
5142 | * c.opt (Wdeprecated): Move documentation and variable to common.opt. | |
5143 | ||
a30d0196 JJ |
5144 | 2019-01-14 Jakub Jelinek <jakub@redhat.com> |
5145 | ||
5146 | * c-cppbuiltin.c (c_cpp_builtin): Define __cpp_guaranteed_copy_elision | |
5147 | and __cpp_nontype_template_parameter_auto. Add a comment that | |
5148 | __cpp_template_auto is deprecated. | |
5149 | ||
2d91f79d TH |
5150 | 2019-01-14 Tom Honermann <tom@honermann.net> |
5151 | ||
5152 | Implement P0482R5, char8_t: A type for UTF-8 characters and strings | |
5153 | * c-common.c (c_common_reswords): Add char8_t. | |
5154 | (fix_string_type): Use char8_t for the type of u8 string literals. | |
5155 | (c_common_get_alias_set): char8_t doesn't alias. | |
5156 | (c_common_nodes_and_builtins): Define char8_t as a builtin type in | |
5157 | C++. | |
5158 | (c_stddef_cpp_builtins): Add __CHAR8_TYPE__. | |
5159 | (keyword_begins_type_specifier): Add RID_CHAR8. | |
5160 | * c-common.h (rid): Add RID_CHAR8. | |
5161 | (c_tree_index): Add CTI_CHAR8_TYPE and CTI_CHAR8_ARRAY_TYPE. | |
5162 | Define D_CXX_CHAR8_T and D_CXX_CHAR8_T_FLAGS. | |
5163 | Define char8_type_node and char8_array_type_node. | |
5164 | * c-cppbuiltin.c (cpp_atomic_builtins): Predefine | |
5165 | __GCC_ATOMIC_CHAR8_T_LOCK_FREE. | |
5166 | (c_cpp_builtins): Predefine __cpp_char8_t. | |
5167 | * c-lex.c (lex_string): Use char8_array_type_node as the type of | |
5168 | CPP_UTF8STRING. | |
5169 | (lex_charconst): Use char8_type_node as the type of CPP_UTF8CHAR. | |
5170 | * c-opts.c: If not otherwise specified, enable -fchar8_t when | |
5171 | targeting C++2a. | |
5172 | * c.opt: Add the -fchar8_t command line option. | |
5173 | ||
23db6ced MS |
5174 | 2019-01-14 Martin Sebor <msebor@redhat.com> |
5175 | ||
5176 | PR target/88638 | |
5177 | * c-attribs.c (positional_argument): Call valid_format_string_type_p | |
5178 | and issue errors if it fails. | |
5179 | * c-common.h (valid_format_string_type_p): Declare. | |
5180 | * c-format.c (valid_stringptr_type_p): Rename... | |
5181 | (valid_format_string_type_p): ...to this and make extern. | |
5182 | (handle_format_arg_attribute): Adjust to new name. | |
5183 | (check_format_string): Same. | |
5184 | ||
234c3818 L |
5185 | 2019-01-13 H.J. Lu <hongjiu.lu@intel.com> |
5186 | ||
5187 | * c-warn.c (warn_for_address_or_pointer_of_packed_member): | |
5188 | Replace "may may" with "may" in warning message. | |
5189 | ||
d8fcab68 JJ |
5190 | 2019-01-07 Jakub Jelinek <jakub@redhat.com> |
5191 | ||
5192 | PR c++/85052 | |
5193 | * c-common.h (enum rid): Add RID_BUILTIN_CONVERTVECTOR. | |
5194 | (c_build_vec_convert): Declare. | |
5195 | * c-common.c (c_build_vec_convert): New function. | |
5196 | ||
29d24852 MS |
5197 | 2019-01-04 Martin Sebor <msebor@redhat.com> |
5198 | ||
5199 | PR c/88546 | |
5200 | * c-attribs.c (handle_copy_attribute): Avoid copying attribute leaf. | |
5201 | Handle C++ empty throw specification and C11 _Noreturn. | |
5202 | (has_attribute): Also handle C11 _Noreturn. | |
5203 | ||
9069a4c9 MS |
5204 | 2019-01-04 Martin Sebor <msebor@redhat.com> |
5205 | ||
5206 | PR c/88363 | |
5207 | * c-attribs.c (positional_argument): Also accept enumerated types. | |
5208 | ||
a5544970 JJ |
5209 | 2019-01-01 Jakub Jelinek <jakub@redhat.com> |
5210 | ||
5211 | Update copyright years. | |
5212 | ||
da77eace L |
5213 | 2018-12-20 H.J. Lu <hongjiu.lu@intel.com> |
5214 | ||
5215 | PR c/51628 | |
5216 | * c-common.h (warn_for_address_or_pointer_of_packed_member): New. | |
5217 | * c-warn.c (check_alignment_of_packed_member): New function. | |
5218 | (check_address_of_packed_member): Likewise. | |
5219 | (check_and_warn_address_of_packed_member): Likewise. | |
5220 | (warn_for_address_or_pointer_of_packed_member): Likewise. | |
5221 | * c.opt: Add -Wno-address-of-packed-member. | |
5222 | ||
573767d4 DM |
5223 | 2018-12-20 David Malcolm <dmalcolm@redhat.com> |
5224 | ||
5225 | PR c++/87504 | |
5226 | * c-warn.c (get_outermost_macro_expansion): New function. | |
5227 | (spelled_the_same_p): Use it to unwind the macro expansions, and | |
5228 | compare the outermost macro in each nested expansion, rather than | |
5229 | the innermost. | |
5230 | ||
a14feb3c DM |
5231 | 2018-12-19 David Malcolm <dmalcolm@redhat.com> |
5232 | ||
5233 | PR c++/87504 | |
5234 | * c-common.h (warn_tautological_cmp): Convert 1st param from | |
5235 | location_t to const op_location_t &. | |
5236 | * c-warn.c (find_array_ref_with_const_idx_r): Call fold_for_warn | |
5237 | when testing for INTEGER_CST. | |
5238 | (warn_tautological_bitwise_comparison): Convert 1st param from | |
5239 | location_t to const op_location_t &; use it to build a | |
5240 | binary_op_rich_location, and use this. | |
5241 | (spelled_the_same_p): New function. | |
5242 | (warn_tautological_cmp): Convert 1st param from location_t to | |
5243 | const op_location_t &. Warn for macro expansions if | |
5244 | spelled_the_same_p. Use binary_op_rich_location. | |
5245 | ||
dfd7fdca DM |
5246 | 2018-12-19 David Malcolm <dmalcolm@redhat.com> |
5247 | ||
5248 | PR c++/43064 | |
5249 | PR c++/43486 | |
5250 | * c-common.c (unsafe_conversion_p): Fold any location wrapper. | |
5251 | (verify_tree): Handle location wrappers. | |
5252 | (c_common_truthvalue_conversion): Strip any location wrapper. | |
5253 | Handle CONST_DECL. | |
5254 | (fold_offsetof): Strip any location wrapper. | |
5255 | (complete_array_type): Likewise for initial_value. | |
5256 | (convert_vector_to_array_for_subscript): Call fold_for_warn on the | |
5257 | index before checking for INTEGER_CST. | |
5258 | * c-pretty-print.c (c_pretty_printer::primary_expression): Don't | |
5259 | print parentheses around location wrappers. | |
5260 | * c-warn.c (warn_logical_operator): Call fold_for_warn on op_right | |
5261 | before checking for INTEGER_CST. | |
5262 | (warn_tautological_bitwise_comparison): Call | |
5263 | tree_strip_any_location_wrapper on lhs, rhs, and bitop's operand | |
5264 | before checking for INTEGER_CST. | |
5265 | (readonly_error): Strip any location wrapper. | |
5266 | (warn_array_subscript_with_type_char): Strip location wrappers | |
5267 | before checking for INTEGER_CST. Use the location of the index if | |
5268 | available. | |
5269 | ||
5c8b3702 JM |
5270 | 2018-12-06 Jason Merrill <jason@redhat.com> |
5271 | ||
5272 | PR c++/88136 - -Wdeprecated-copy false positives | |
5273 | * c.opt (Wdeprecated-copy-dtor): New. | |
5274 | (Wdeprecated-copy): Move to -Wextra. | |
5275 | ||
673670da MS |
5276 | 2018-11-29 Martin Sebor <msebor@redhat.com> |
5277 | ||
5278 | PR c/88172 | |
5279 | PR testsuite/88208 | |
5280 | * c-attribs.c (common_handle_aligned_attribute): Silently avoid setting | |
5281 | alignments to values less than the target requires. | |
5282 | (has_attribute): For attribute aligned consider both the attribute | |
5283 | and the alignment bits. | |
5284 | * c-common.c (c_init_attributes): Optionally issue a warning for | |
5285 | zero alignment. | |
5286 | ||
04864ec8 MS |
5287 | 2018-11-28 Martin Sebor <msebor@redhat.com> |
5288 | ||
5289 | PR c/88065 | |
5290 | PR c/87297 | |
5291 | * c-warn.c (sizeof_pointer_memaccess_warning): Bail if source | |
5292 | or destination is an error. | |
5293 | ||
ace83db0 JJ |
5294 | 2018-11-28 Jakub Jelinek <jakub@redhat.com> |
5295 | ||
5296 | PR c++/88215 | |
5297 | * c-ubsan.c: Include langhooks.h. | |
5298 | (ubsan_instrument_division): Change gcc_assert that main variants | |
5299 | of op0 and op1 types are equal to gcc_checking_assert that the | |
5300 | main variants are compatible types. | |
5301 | ||
da193a27 EB |
5302 | 2018-11-27 Eric Botcazou <ebotcazou@adacore.com> |
5303 | ||
5304 | * c-ada-spec.c: Include stringpool.h. | |
5305 | (has_static_fields): Return false for incomplete types. | |
5306 | (is_tagged_type): Likewise. | |
5307 | (has_nontrivial_methods): Likewise. | |
5308 | (dump_ada_node) <INTEGER_TYPE>: Deal specifically with __int128. | |
5309 | (struct overloaded_name_hash): New structure. | |
5310 | (struct overloaded_name_hasher): Likewise. | |
5311 | (overloaded_names): New global variable. | |
5312 | (init_overloaded_names): New static function. | |
5313 | (overloaded_name_p): New predicate. | |
5314 | (dump_ada_declaration) <TYPE_DECL>: Tidy up and set TREE_VISITED | |
5315 | on the TYPE_STUB_DECL of the original type of a typedef, if any. | |
5316 | <FUNCTION_DECL>: Bail out for an unsupported overloaded name. | |
5317 | Remove always-true condition and dump forward types. | |
5318 | (dump_ada_specs): Delete overloaded_names. | |
5319 | ||
98f08eb8 MS |
5320 | 2018-11-20 Martin Sebor <msebor@redhat.com> |
5321 | ||
5322 | * c-attribs.c (type_for_vector_size): New function. | |
5323 | (type_valid_for_vector_size): Same. | |
5324 | (handle_vector_size_attribute): Move code to the functions above | |
5325 | and call them. | |
5326 | (validate_attribute, has_attribute): New functions. | |
5327 | * c-common.h (has_attribute): Declare. | |
5328 | (rid): Add RID_HAS_ATTRIBUTE_EXPRESSION. | |
5329 | * c-common.c (c_common_resword): Same. | |
5330 | ||
2674fa47 JM |
5331 | 2018-11-16 Jason Merrill <jason@redhat.com> |
5332 | ||
5333 | * c-lex.c (c_common_has_attribute): Handle likely/unlikely. | |
5334 | * c-attribs.c (attr_cold_hot_exclusions): Make public. | |
5335 | ||
258b3854 JJ |
5336 | 2018-11-16 Jakub Jelinek <jakub@redhat.com> |
5337 | ||
5338 | PR middle-end/87854 | |
5339 | * c-common.c (fix_string_type): Reject string literals larger than | |
5340 | TYPE_MAX_VALUE (ssizetype) bytes. | |
5341 | ||
1d249509 MS |
5342 | 2018-11-15 Martin Sebor <msebor@redhat.com> |
5343 | ||
5344 | PR c++/87541 | |
5345 | PR c++/87542 | |
5346 | * c-attribs.c (positional_argument): New function. | |
5347 | (handle_alloc_size_attribute): Use it and simplify. | |
5348 | (handle_alloc_align_attribute): Same. | |
5349 | (handle_assume_aligned_attribute): Same. | |
5350 | (handle_nonnull_attribute): Same. | |
5351 | * c-common.c (check_function_arguments): Pass fntype to | |
5352 | check_function_format. | |
5353 | * c-common.h (check_function_format): Add an argument. | |
5354 | (PosArgFlags, positional_argument): Declare new type and function. | |
5355 | * c-format.c (decode_format_attr): Add arguments. | |
5356 | (check_format_string, get_constant): Same. | |
5357 | (convert_format_name_to_system_name): Adjust. | |
5358 | ||
478dd60d DM |
5359 | 2018-11-15 David Malcolm <dmalcolm@redhat.com> |
5360 | ||
5361 | PR other/19165 | |
5362 | * c-opts.c (c_diagnostic_finalizer): Add diagnostic_t param. | |
5363 | ||
8cca0163 JJ |
5364 | 2018-11-14 Jakub Jelinek <jakub@redhat.com> |
5365 | ||
8ee09943 JJ |
5366 | P1236R1 - Signed integers are two's complement |
5367 | * c-warn.c (maybe_warn_shift_overflow): Don't warn for c++2a. | |
5368 | * c-ubsan.c (ubsan_instrument_shift): Make signed shifts | |
5369 | with in-range second operand well defined for -std=c++2a. | |
5370 | ||
8cca0163 JJ |
5371 | PR other/88007 |
5372 | * c-common.c (parse_optimize_options): Allocate option string from | |
5373 | opts_obstack rather than as GC memory. Move the allocation after | |
5374 | warning for invalid option. | |
5375 | ||
620e594b DM |
5376 | 2018-11-13 David Malcolm <dmalcolm@redhat.com> |
5377 | ||
5378 | * c-common.c (c_get_substring_location): Update for renaming of | |
5379 | get_source_location_for_substring to get_location_within_string. | |
5380 | * c-lex.c: Replace "source_location" with "location_t". | |
5381 | * c-opts.c: Likewise. | |
5382 | * c-ppoutput.c: Likewise. | |
5383 | ||
f9731de3 MS |
5384 | 2018-11-13 Martin Sebor <msebor@redhat.com> |
5385 | ||
5386 | PR middle-end/81824 | |
5387 | * c-attribs.c (handle_copy_attribute): Exclude inlining attributes. | |
5388 | (handle_tls_model_attribute): Improve diagnostics. | |
5389 | ||
e4bd6d5e JM |
5390 | 2018-11-12 Jason Merrill <jason@redhat.com> |
5391 | ||
a6bb6b07 JM |
5392 | * c-cppbuiltin.c (c_cpp_builtins): Define |
5393 | __cpp_impl_destroying_delete. | |
5394 | ||
e4bd6d5e JM |
5395 | * c-cppbuiltin.c (c_cpp_builtins): Change __cpp_explicit_bool to |
5396 | __cpp_conditional_explicit. | |
5397 | ||
79a2c428 MS |
5398 | 2018-11-09 Martin Sebor <msebor@redhat.com> |
5399 | ||
5400 | PR middle-end/81824 | |
5401 | * c-attribs.c (handle_copy_attribute): New function. | |
5402 | ||
4c7bd361 MS |
5403 | 2018-11-09 Martin Sebor <msebor@redhat.com> |
5404 | ||
5405 | PR c/87795 | |
5406 | * c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT. | |
5407 | ||
28567c40 JJ |
5408 | 2018-11-08 Jakub Jelinek <jakub@redhat.com> |
5409 | ||
5410 | * c-common.h (c_finish_omp_taskgroup): Add CLAUSES argument. | |
5411 | (c_finish_omp_atomic): Replace bool SEQ_CST argument with | |
5412 | enum omp_memory_order MEMORY_ORDER. | |
5413 | (c_finish_omp_flush): Add MO argument. | |
5414 | (c_omp_depend_t_p, c_finish_omp_depobj): Declare. | |
5415 | (c_finish_omp_for): Add FINAL_P argument. | |
5416 | * c-omp.c: Include memmodel.h. | |
5417 | (c_finish_omp_taskgroup): Add CLAUSES argument. Set | |
5418 | OMP_TASKGROUP_CLAUSES to it. | |
5419 | (c_finish_omp_atomic): Replace bool SEQ_CST argument with | |
5420 | enum omp_memory_order MEMORY_ORDER. Set OMP_ATOMIC_MEMORY_ORDER | |
5421 | instead of OMP_ATOMIC_SEQ_CST. | |
5422 | (c_omp_depend_t_p, c_finish_omp_depobj): New functions. | |
5423 | (c_finish_omp_flush): Add MO argument, if not MEMMODEL_LAST, emit | |
5424 | __atomic_thread_fence call with the given value. | |
5425 | (check_omp_for_incr_expr): Formatting fixes. | |
5426 | (c_finish_omp_for): Add FINAL_P argument. Allow NE_EXPR | |
5427 | even in OpenMP loops, diagnose if NE_EXPR and incr expression | |
5428 | is not constant expression 1 or -1. Transform NE_EXPR loops | |
5429 | with iterators pointers to VLA into LT_EXPR or GT_EXPR loops. | |
5430 | (c_omp_check_loop_iv_r): Look for orig decl of C++ range for | |
5431 | loops too. | |
5432 | (c_omp_split_clauses): Add support for combined | |
5433 | #pragma omp parallel master and | |
5434 | #pragma omp {,parallel }master taskloop{, simd} constructs. | |
5435 | Handle OMP_CLAUSE_IN_REDUCTION. Handle OMP_CLAUSE_REDUCTION_TASK. | |
5436 | Handle OMP_CLAUSE_NONTEMPORAL. Handle splitting OMP_CLAUSE_IF | |
5437 | also to OMP_SIMD. Copy OMP_CLAUSE_LASTPRIVATE_CONDITIONAL. | |
5438 | (c_omp_predetermined_sharing): Don't return | |
5439 | OMP_CLAUSE_DEFAULT_SHARED for const qualified decls. | |
5440 | * c-pragma.c (omp_pragmas): Add PRAGMA_OMP_DEPOBJ and | |
5441 | PRAGMA_OMP_REQUIRES. | |
5442 | * c-pragma.h (enum pragma_kind): Likewise. | |
5443 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_NONTEMPORAL | |
5444 | and PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION. | |
5445 | ||
204839e7 DM |
5446 | 2018-11-08 David Malcolm <dmalcolm@redhat.com> |
5447 | ||
5448 | * c-format.c (gcc_dump_printf_char_table): Add entry for %f. | |
5449 | ||
d8010ee4 DM |
5450 | 2018-11-08 David Malcolm <dmalcolm@redhat.com> |
5451 | ||
5452 | * c-format.c (local_cgraph_node_ptr_node): New variable. | |
5453 | (gcc_dump_printf_char_table): Add entry for %C. | |
5454 | (get_pointer_to_named_type): New function, taken from the handling | |
5455 | code for "gimple *" from... | |
5456 | (init_dynamic_diag_info): ...here. Add handling for | |
5457 | "cgraph_node *". | |
5458 | * c-format.h (T_CGRAPH_NODE): New. | |
5459 | ||
4be5c72c JM |
5460 | 2018-10-19 Jason Merrill <jason@redhat.com> |
5461 | ||
5462 | * c-cppbuiltin.c (c_cpp_builtins): Add | |
5463 | __cpp_nontype_template_parameter_class. | |
5464 | ||
f3f6029d NS |
5465 | 2018-10-31 Nathan Sidwell <nathan@acm.org> |
5466 | ||
ab5324fb NS |
5467 | * c-opts.c (c_finish_options): Force command line macro |
5468 | location. Refactor to avoid repeating main debug hook. | |
5469 | (push_command_line_include): Clarify comment. | |
5470 | ||
f3f6029d NS |
5471 | * c-opts.c (c_finish_options): Adjust cpp_force_token_locations call. |
5472 | ||
91e3ec29 MS |
5473 | 2018-10-30 Martin Sebor <msebor@redhat.com> |
5474 | ||
5475 | PR middle-end/87041 | |
5476 | * c-format.c (check_format_types): Avoid diagnosing null pointer | |
5477 | arguments to printf-family of functions. | |
5478 | ||
b5ff4f5c MP |
5479 | 2018-10-30 Marek Polacek <polacek@redhat.com> |
5480 | ||
5481 | Implement P0892R2, explicit(bool). | |
5482 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_explicit_bool. | |
5483 | ||
7e2de6df DM |
5484 | 2018-10-29 David Malcolm <dmalcolm@redhat.com> |
5485 | ||
5486 | * name-hint.h (name_hint::take_deferred): New member function. | |
5487 | ||
b2bf438c DM |
5488 | 2018-10-29 David Malcolm <dmalcolm@redhat.com> |
5489 | ||
5490 | PR c++/56856 | |
5491 | * c-common.c (check_function_sentinel): Call fold_for_warn on the | |
5492 | argument. | |
5493 | (check_function_restrict): Rename param "argarray" to | |
5494 | "unfolded_argarray", and make a copy named "argarray", calling | |
5495 | fold_for_warn on each argument. | |
5496 | (check_function_arguments): Add note about responsibility for | |
5497 | folding the arguments. | |
5498 | ||
9f936c86 JM |
5499 | 2018-10-17 Joseph Myers <joseph@codesourcery.com> |
5500 | ||
5501 | * c-common.c (flag_isoc2x): New variable. | |
5502 | * c-common.h (clk_c): Update comment to reference C2X. | |
5503 | (flag_isoc99, flag_isoc11): Update comments to reference future | |
5504 | standard versions in general. | |
5505 | (flag_isoc2x): Declare. | |
5506 | * c-opts.c (set_std_c2x): New function. | |
5507 | (c_common_handle_option): Handle -std=c2x and -std=gnu2x. | |
5508 | (set_std_c89, set_std_c99, set_std_c11, set_std_c17): Set | |
5509 | flag_isoc2x to 0. | |
5510 | * c.opt (Wc11-c2x-compat, std=c2x, std=gnu2x): New options. | |
5511 | ||
7a8a92c4 JM |
5512 | 2018-10-17 Joseph Myers <joseph@codesourcery.com> |
5513 | ||
5514 | * c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017) | |
5515 | (std=iso9899:2018): Document C17 as published in 2018. | |
5516 | ||
4dc003ff CL |
5517 | 2018-10-12 Christophe Lyon <christophe.lyon@linaro.org> |
5518 | ||
5519 | PR c++/87364 | |
5520 | * c-pretty-print.c (c_pretty_printer::constant): Fix typo. | |
5521 | ||
79371671 WW |
5522 | 2018-10-11 Will Wray <wjwray@gmail.com> |
5523 | ||
5524 | PR c++/87364 | |
5525 | * c-pretty-print.h (pp_c_type_cast): Prototype. | |
5526 | (pp_c_integer_constant): Likewise. | |
5527 | * c-pretty-print.c (pp_c_type_cast): No longer static. | |
5528 | (pp_c_integer_constant): Likewise. | |
5529 | (pp_c_enumeration_constant): Fix loop termination when finding | |
5530 | name of constant. No longer returns a value. Call | |
5531 | pp_c_integer_constant. | |
5532 | (c_pretty_printer::constant): Update for changes to | |
5533 | pp_c_enumeration_constant. | |
5534 | ||
46c62690 JJ |
5535 | 2018-10-11 Jakub Jelinek <jakub@redhat.com> |
5536 | ||
5537 | * c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312 | |
5538 | for no_unique_address. | |
5539 | ||
c24300ba DM |
5540 | 2018-10-09 David Malcolm <dmalcolm@redhat.com> |
5541 | ||
5542 | * c-common.c (c_option_controlling_cpp_error): Rename to... | |
5543 | (c_option_controlling_cpp_diagnostic): ...this, and convert | |
5544 | "reason" from int to enum. | |
5545 | (c_cpp_error): Rename to... | |
5546 | (c_cpp_diagnostic): ...this, converting level and reason to enums. | |
5547 | * c-common.h (c_cpp_error): Rename to... | |
5548 | (c_cpp_diagnostic): ...this, converting level and reason to enums. | |
5549 | * c-opts.c (c_common_init_options): Update for renaming. | |
5550 | ||
8656dafa RS |
5551 | 2018-10-08 Richard Sandiford <richard.sandiford@arm.com> |
5552 | ||
5553 | PR c/87286 | |
5554 | * c-common.c (vector_types_compatible_elements_p): Use | |
5555 | INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE. | |
5556 | ||
8cff0652 VK |
5557 | 2018-10-04 Vinay Kumar <vinay.kumar@blackfigtech.com> |
5558 | ||
5559 | * c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor | |
5560 | to generate constructor destructor priority warning. | |
5561 | * c.opt (-Wprio-ctor-dtor): New option. | |
5562 | ||
bedf03a2 JM |
5563 | 2018-10-01 Jason Merrill <jason@redhat.com> |
5564 | ||
5565 | * c-lex.c (c_common_has_attribute): Add no_unique_address. | |
5566 | ||
6cc430c1 EB |
5567 | 2018-10-01 Eric Botcazou <ebotcazou@adacore.com> |
5568 | ||
5569 | * c-ada-spec.c (get_underlying_decl): Get to the main type variant. | |
5570 | (dump_ada_node): Add const keyword. | |
5571 | ||
87677ac7 ML |
5572 | 2018-09-25 Martin Liska <mliska@suse.cz> |
5573 | ||
5574 | * c-common.c (c_common_truthvalue_conversion): | |
5575 | Remove Pascal from documentation. | |
5576 | ||
518196cb EB |
5577 | 2018-09-21 Eric Botcazou <ebotcazou@adacore.com> |
5578 | ||
5579 | * c-ada-spec.c: Include diagnostic.h. | |
5580 | (dump_ada_declaration) <RECORD_TYPE>: Issue a warning on packed layout. | |
5581 | ||
a599af84 MP |
5582 | 2018-09-19 Marek Polacek <polacek@redhat.com> |
5583 | ||
5584 | * c.opt (Wclass-conversion): New. | |
5585 | ||
9c4a4b3c DM |
5586 | 2018-09-17 David Malcolm <dmalcolm@redhat.com> |
5587 | ||
5588 | * c-format.c (range_label_for_format_type_mismatch::get_text): | |
5589 | Update for new param. | |
5590 | ||
c896ecfe DM |
5591 | 2018-09-17 David Malcolm <dmalcolm@redhat.com> |
5592 | ||
5593 | * c-format.c (format_warning_at_char): Update for introduction of | |
5594 | format_string_diagnostic_t. | |
5595 | (format_type_warning): Likewise. | |
5596 | ||
80c6d1f4 MJ |
5597 | 2018-09-17 Martin Jambor <mjambor@suse.cz> |
5598 | ||
5599 | PR c/63886 | |
5600 | * c.opt (Wabsolute-value): New. | |
5601 | ||
6d900107 BE |
5602 | 2018-09-06 Bernd Edlinger <bernd.edlinger@hotmail.de> |
5603 | ||
5604 | * c-common.c (complete_flexible_array_elts): New helper function. | |
5605 | * c-common.h (complete_flexible_array_elts): Declare. | |
5606 | ||
b5764229 BE |
5607 | 2018-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de> |
5608 | ||
5609 | * c-common.c (braced_list_to_string): Remove eval parameter. | |
5610 | Add some more checks. Always create zero-terminated STRING_CST. | |
5611 | * c-common.h (braced_list_to_string): Adjust prototype. | |
5612 | ||
85204e23 DM |
5613 | 2018-08-27 David Malcolm <dmalcolm@redhat.com> |
5614 | ||
5615 | PR 87091 | |
5616 | * c-common.c (c_cpp_error): Update for conversion of show_caret_p | |
5617 | to a tri-state. | |
5618 | (maybe_suggest_missing_token_insertion): Likewise. | |
5619 | (maybe_add_include_fixit): Add param "override_location". If set, | |
5620 | and source-printing is enabled, then override the rich_location's | |
5621 | primary location with that of the insertion point for the fix-it | |
5622 | hint, marking it with SHOW_LINES_WITHOUT_RANGE. | |
5623 | * c-common.h (extern void maybe_add_include_fixit): Add bool | |
5624 | param. | |
5625 | * c-format.c (selftest::test_type_mismatch_range_labels): Update | |
5626 | for conversion of show_caret_p to a tri-state. | |
5627 | * c-warn.c (warn_for_restrict): Likewise. | |
5628 | * known-headers.cc | |
5629 | (suggest_missing_header::~suggest_missing_header): Update call to | |
5630 | maybe_add_include_fixit to suggest overriding the location, as it | |
5631 | is for a note. | |
5632 | ||
3d78e008 ML |
5633 | 2018-08-27 Martin Liska <mliska@suse.cz> |
5634 | ||
5635 | * c-common.c (check_function_restrict): Use new function | |
92a285c1 ML |
5636 | fndecl_built_in_p and remove check for FUNCTION_DECL if |
5637 | possible. | |
3d78e008 ML |
5638 | (check_builtin_function_arguments): Likewise. |
5639 | (reject_gcc_builtin): Likewise. | |
5640 | * c-warn.c (sizeof_pointer_memaccess_warning): Likewise. | |
5641 | ||
b5be6d0c MP |
5642 | 2018-08-26 Marek Polacek <polacek@redhat.com> |
5643 | ||
5644 | PR c++/87029, Implement -Wredundant-move. | |
5645 | * c.opt (Wredundant-move): New option. | |
5646 | ||
79ca9c35 MP |
5647 | 2018-08-21 Marek Polacek <polacek@redhat.com> |
5648 | ||
5649 | PR c++/86981, Implement -Wpessimizing-move. | |
5650 | * c.opt (Wpessimizing-move): New option. | |
5651 | ||
097f82ec DM |
5652 | 2018-08-20 David Malcolm <dmalcolm@redhat.com> |
5653 | ||
5654 | PR other/84889 | |
5655 | * c-attribs.c (common_handle_aligned_attribute): Add | |
5656 | auto_diagnostic_group instance. | |
5657 | * c-indentation.c (warn_for_misleading_indentation): Likewise. | |
5658 | * c-opts.c (c_common_post_options): Likewise. | |
5659 | * c-warn.c (warn_logical_not_parentheses): Likewise. | |
5660 | (warn_duplicated_cond_add_or_warn): Likewise. | |
5661 | (warn_for_multistatement_macros): Likewise. | |
5662 | ||
3fb558b1 NS |
5663 | 2018-08-20 Nathan Sidwell <nathan@acm.org> |
5664 | ||
5665 | * c-ada-spec.c (macro_length, dump_ada_macros): Adjust macro parm | |
5666 | access. | |
5667 | ||
800c0e98 NS |
5668 | 2018-08-17 Nathan Sidwell <nathan@acm.org> |
5669 | ||
5670 | * c-cppbuiltin.c (struct lazy_hex_fp_value_struct): Remove macro | |
5671 | field. | |
5672 | (laxy_hex_fp_value_count): Make unsigned. | |
5673 | (lazy_hex_fp_value): Provided with macro & lazy number. Directly | |
5674 | manipulate the macro. | |
5675 | (builtin_defin_with_hex_fp_value): Adjust callback name, use | |
5676 | cpp_define_lazily. | |
5677 | ||
6f795a92 DM |
5678 | 2018-08-17 David Malcolm <dmalcolm@redhat.com> |
5679 | ||
5680 | * c-format.c (enum format_type): Add gcc_dump_printf_format_type. | |
5681 | (gcc_dump_printf_length_specs): New. | |
5682 | (gcc_dump_printf_flag_pairs): New. | |
5683 | (gcc_dump_printf_flag_specs): New. | |
5684 | (gcc_dump_printf_char_table): New. | |
5685 | (format_types_orig): Add entry for "gcc_dump_printf". | |
5686 | (init_dynamic_diag_info): Set up length_char_specs and | |
5687 | conversion_specs for gcc_dump_printf_format_type. | |
5688 | (handle_format_attribute): Handle gcc_dump_printf_format_type. | |
5689 | ||
c5d725c0 NS |
5690 | 2018-08-17 Nathan Sidwell <nathan@acm.org> |
5691 | ||
10f04917 NS |
5692 | * c-ada-spec.c (macro_length, dump_ada_macros): Constify. |
5693 | ||
c5d725c0 NS |
5694 | * c-ada-spec.c: Don't #include "cpp-id-data.h" |
5695 | * c-cppbuiltin.c: Likewise. | |
5696 | ||
c0c12356 ML |
5697 | 2018-08-17 Martin Liska <mliska@suse.cz> |
5698 | ||
5699 | * c.opt: Remove Warn, Init and Report for options with | |
92a285c1 ML |
5700 | Ignore/Deprecated flag. Warning is done automatically for |
5701 | Deprecated flags. | |
c0c12356 | 5702 | |
10fcc142 DM |
5703 | 2018-08-16 David Malcolm <dmalcolm@redhat.com> |
5704 | ||
5705 | PR c++/70693 | |
5706 | * c-common.c (selftest::c_family_tests): Call | |
5707 | selftest::c_indentation_c_tests. | |
5708 | * c-common.h (selftest::c_indentation_c_tests): New decl. | |
5709 | * c-indentation.c: Include "selftest.h". | |
5710 | (next_tab_stop): Add "tab_width" param, rather than accessing | |
5711 | cpp_opts. | |
5712 | (get_visual_column): Likewise. Clarify comment. Bulletproof | |
5713 | against reading past the end of the line. | |
5714 | (get_first_nws_vis_column): Add "tab_width" param. | |
5715 | (detect_intervening_unindent): Likewise. | |
5716 | (should_warn_for_misleading_indentation): Read tab width from | |
5717 | cpp_opts and pass around. | |
5718 | (selftest::test_next_tab_stop): New test. | |
5719 | (selftest::assert_get_visual_column_succeeds): New function. | |
5720 | (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro. | |
5721 | (selftest::assert_get_visual_column_fails): New function. | |
5722 | (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro. | |
5723 | (selftest::test_get_visual_column): New test. | |
5724 | (selftest::c_indentation_c_tests): New function. | |
5725 | ||
3f6677f4 NS |
5726 | 2018-08-16 Nathan Sidwell <nathan@acm.org> |
5727 | ||
5728 | * c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p. | |
5729 | (store_ada_macro): Likewise. | |
5730 | * c-ppoutput.c (cb_used_define, dump_macro): Likewise. | |
5731 | * c-spellcheck.cc (should-suggest_as_macro_p): Likewise, | |
5732 | ||
96e6ae57 DM |
5733 | 2018-08-15 David Malcolm <dmalcolm@redhat.com> |
5734 | ||
5735 | * c-format.c: Include "selftest-diagnostic.h" and | |
5736 | "gcc-rich-location.h". | |
5737 | (format_warning_at_char): Pass NULL for new label params of | |
5738 | format_warning_va. | |
5739 | (class indirection_suffix): New class. | |
5740 | (class range_label_for_format_type_mismatch): New class. | |
5741 | (format_type_warning): Move logic for generating "*" suffix to | |
5742 | class indirection_suffix. Create "fmt_label" and "param_label" | |
5743 | to show their types, and pass them to the | |
5744 | format_warning_at_substring calls. | |
5745 | (selftest::test_type_mismatch_range_labels): New test. | |
5746 | (selftest::c_format_c_tests): Call it. | |
5747 | ||
23aa9f7c MS |
5748 | 2018-08-13 Martin Sebor <msebor@redhat.com> |
5749 | ||
5750 | PR tree-optimization/71625 | |
5751 | * c-common.c (braced_list_to_string): New function. | |
5752 | * c-common.h (braced_list_to_string): Declare it. | |
5753 | ||
f10a9135 NS |
5754 | 2018-08-08 Nathan Sidwell <nathan@acm.org> |
5755 | ||
5756 | * c-common.c (try_to_locate_new_include_inertion_point): Use | |
5757 | linemap_included_from_linemap. | |
5758 | * c-lex.c (fe_file_change): Use linemap_included_from. | |
5759 | * c-ppoutput.c (pp_file_change): Likewise. | |
5760 | ||
8a45b051 MS |
5761 | 2018-08-01 Martin Sebor <msebor@redhat.com> |
5762 | ||
5763 | PR tree-optimization/86650 | |
ab20d992 | 5764 | * c-format.c (gcc_tdiag_char_table): Update comment for "%G". |
8a45b051 MS |
5765 | (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same. |
5766 | (init_dynamic_diag_info): Update from "gcall *" to "gimple *". | |
5767 | * c-format.h (T89_G): Update to be "gimple *" rather than | |
5768 | "gcall *". | |
5769 | (local_gcall_ptr_node): Rename... | |
5770 | (local_gimple_ptr_node): ...to this. | |
5771 | ||
e540ccc0 DM |
5772 | 2018-07-31 David Malcolm <dmalcolm@redhat.com> |
5773 | ||
5774 | * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing | |
5775 | table entries for gcc_diag_char_table, and the 'Z' entry from | |
5776 | gcc_tdiag_char_table, changing the "chain" entry for 'Z' from | |
5777 | &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0]. | |
5778 | (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly | |
5779 | adding missing "Z" for this table. Remove erroneous "G" and "K" | |
5780 | entries. | |
5781 | (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v". | |
5782 | (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE. | |
5783 | (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v". | |
5784 | ||
425fc685 RE |
5785 | 2018-07-31 Richard Earnshaw <rearnsha@arm.com> |
5786 | ||
5787 | * c-common.c (speculation_safe_resolve_call): New function. | |
5788 | (speculation_safe_resolve_params): New function. | |
5789 | (speculation_safe_resolve_return): New function. | |
5790 | (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value. | |
5791 | * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for | |
5792 | __HAVE_SPECULATION_SAFE_VALUE. | |
5793 | ||
181463c2 DM |
5794 | 2018-07-20 David Malcolm <dmalcolm@redhat.com> |
5795 | ||
5796 | * c-common.c (c_cpp_error): Remove redundant "line_table" | |
5797 | parameter from call to rich_location::set_range. | |
5798 | (maybe_suggest_missing_token_insertion): Likewise. | |
5799 | ||
0d7f9065 MS |
5800 | 2018-07-20 Martin Sebor <msebor@redhat.com> |
5801 | ||
5802 | PR middle-end/82063 | |
ab20d992 | 5803 | * c.opt (-Warray-bounds): Remove redundant -Wall. |
0d7f9065 | 5804 | |
00abf86c MS |
5805 | 2018-07-20 Martin Sebor <msebor@redhat.com> |
5806 | ||
5807 | PR middle-end/82063 | |
5808 | * c-common.h (c_common_handle_option): Change function argument | |
5809 | to HOST_WIDE_INT. | |
5810 | * c-opts.c (c_common_init_options): Same. | |
5811 | (c_common_handle_option): Same. Remove special handling of | |
5812 | OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_. | |
5813 | * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change | |
5814 | options to take a HOST_WIDE_INT argument and accept a byte-size | |
5815 | suffix. Initialize. | |
5816 | (-Wvla-larger-than): Same. | |
5817 | (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New. | |
5818 | (-Wno-vla-larger-than): Same. | |
5819 | ||
9b452033 JJ |
5820 | 2018-07-12 Jakub Jelinek <jakub@redhat.com> |
5821 | ||
5822 | * c-attribs.c (c_common_attribute_table): Add | |
5823 | "omp declare target implicit" attribute. | |
5824 | ||
cd0762f3 RB |
5825 | 2018-07-12 Richard Biener <rguenther@suse.de> |
5826 | ||
5827 | PR c/86453 | |
5828 | * c-attribs.c (handle_packed_attribute): Do not build a variant | |
5829 | type with TYPE_PACKED, instead ignore the attribute if we may | |
5830 | not apply to the original type. | |
5831 | ||
0b27c3ed JJ |
5832 | 2018-07-10 Jakub Jelinek <jakub@redhat.com> |
5833 | ||
5834 | PR c++/86443 | |
5835 | * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv | |
5836 | to contain TREE_LIST for both the original class iterator and the | |
5837 | "last" helper var. | |
5838 | ||
e730a0ef EB |
5839 | 2018-07-07 Eric Botcazou <ebotcazou@adacore.com> |
5840 | ||
5841 | * c-ada-spec.c (to_ada_name): Remove index parameter. | |
5842 | (pp_ada_tree_identifier): Likewise. | |
5843 | (dump_ada_macros): Adjust call to to_ada_name. | |
5844 | (struct overloaded_name_hash): Delete. | |
5845 | (struct overloaded_name_hasher): Likewise. | |
5846 | (overloaded_names): Likewise. | |
5847 | (compute_overloading_index): Likewise. | |
5848 | (dump_ada_decl_name): Do not call compute_overloading_index and | |
5849 | adjust calls to pp_ada_tree_identifier. | |
5850 | (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier. | |
5851 | (dump_ada_import): Add spc parameter and switch to aspect syntax. | |
5852 | (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier. | |
5853 | (dump_ada_enum_type): Remove type and display_convention parameters. | |
5854 | Adjust calls to pp_ada_tree_identifier. | |
5855 | (dump_ada_node): Likewise and for dump_ada_structure. | |
5856 | (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type | |
5857 | and tidy up. | |
5858 | <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect | |
5859 | syntax. | |
5860 | (print_constructor): Adjust call to pp_ada_tree_identifier. | |
5861 | (print_destructor): Likewise. | |
5862 | (dump_ada_declaration): Switch to aspect syntax. | |
5863 | (dump_ada_structure): Likewise and tidy up. Replace display_convention | |
5864 | parameter with nested parameter. | |
5865 | (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005. | |
5866 | (dump_ada_specs): Do not delete overloaded_names table. | |
5867 | ||
8de583fc PB |
5868 | 2018-07-06 Peter Bergner <bergner@linux.ibm.com> |
5869 | ||
5870 | PR target/86324 | |
e730a0ef | 5871 | * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute |
8de583fc PB |
5872 | target hook. |
5873 | ||
09cff37b NS |
5874 | 2018-07-05 Nathan Sidwell <nathan@acm.org> |
5875 | ||
5876 | * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not | |
5877 | NO_IMPLICIT_EXTERN_C. | |
5878 | ||
98086b2b ML |
5879 | 2018-06-28 Martin Liska <mliska@suse.cz> |
5880 | ||
5881 | * cppspec.c: Include opt-suggestions.h. | |
5882 | ||
ab20d992 JJ |
5883 | 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com> |
5884 | Thomas Schwinge <thomas@codesourcery.com> | |
829c6349 CLT |
5885 | Cesar Philippidis <cesar@codesourcery.com> |
5886 | ||
5887 | * c-pragma.h (enum pragma_omp_clause): Add | |
5888 | PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove | |
5889 | PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}. | |
5890 | ||
f41b7612 JJ |
5891 | 2018-06-20 Jakub Jelinek <jakub@redhat.com> |
5892 | ||
5893 | PR c++/86210 | |
5894 | * c-common.c (check_nonnull_arg): Use fold_for_warn. Adjust obsolete | |
5895 | comment. | |
5896 | ||
4252ccd7 MS |
5897 | 2018-06-18 Martin Sebor <msebor@redhat.com> |
5898 | ||
5899 | PR middle-end/85602 | |
5900 | * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute | |
5901 | nonstring. | |
5902 | ||
e197e64e KV |
5903 | 2018-06-16 Kugan Vivekanandarajah <kuganv@linaro.org> |
5904 | ||
5905 | * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR. | |
5906 | ||
34a7a230 JM |
5907 | 2018-06-13 Jason Merrill <jason@redhat.com> |
5908 | ||
5cef3733 JM |
5909 | * c-opts.c (c_common_post_options): Warn about useless -Wabi. |
5910 | (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version | |
5911 | handling. | |
5912 | ||
34a7a230 JM |
5913 | PR c++/86094 - wrong code with defaulted move ctor. |
5914 | * c-opts.c (c_common_post_options): Bump the current ABI version to | |
5915 | 13. Set warn_abi_version and flag_abi_compat_version to the current | |
5916 | version rather than 0. Fix defaulting flag_abi_compat_version from | |
5917 | warn_abi_version. | |
5918 | ||
bb0f14ae MS |
5919 | 2018-06-12 Martin Sebor <msebor@redhat.com> |
5920 | ||
5921 | PR c/85931 | |
5922 | * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when | |
5923 | sizeof source and destination yields the same value. | |
5924 | ||
3713f2e2 ML |
5925 | 2018-06-12 Martin Liska <mliska@suse.cz> |
5926 | ||
5927 | * c.opt: Make MPX-related options as Deprecated. | |
5928 | ||
4af78ef8 DM |
5929 | 2018-06-08 David Malcolm <dmalcolm@redhat.com> |
5930 | ||
5931 | * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE | |
5932 | rather than 0. | |
5933 | ||
31db0fe0 ML |
5934 | 2018-06-08 Martin Liska <mliska@suse.cz> |
5935 | ||
5936 | * c-attribs.c (handle_bnd_variable_size_attribute): Remove support | |
5937 | for MPX (macros, related functions, fields in cgraph_node, ...). | |
5938 | (handle_bnd_legacy): Likewise. | |
5939 | (handle_bnd_instrument): Likewise. | |
5940 | * c.opt: Likewise. | |
5941 | ||
fe16acf2 JJ |
5942 | 2018-06-06 Jakub Jelinek <jakub@redhat.com> |
5943 | ||
5944 | PR c++/86068 | |
5945 | * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set | |
5946 | __cpp_transactional_memory to 201500 instead of 210500. | |
5947 | ||
4dbdb49b JM |
5948 | 2018-06-06 Jason Merrill <jason@redhat.com> |
5949 | ||
5950 | PR c++/85710 - ICE with -Wmemset-elt-size. | |
5951 | * c-warn.c (warn_for_memset): Don't crash on incomplete element type. | |
5952 | ||
f8ad043f JM |
5953 | 2018-06-01 Jason Merrill <jason@redhat.com> |
5954 | ||
5955 | * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to | |
5956 | 201703. | |
5957 | ||
abc24d93 EB |
5958 | 2018-06-01 Eric Botcazou <ebotcazou@adacore.com> |
5959 | ||
5960 | * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward | |
5961 | declaration for a typedef independently of whether the declaration of | |
5962 | the subtype is generated. | |
5963 | ||
d258f4aa MS |
5964 | 2018-05-31 Martin Sebor <msebor@redhat.com> |
5965 | ||
5966 | PR c/82063 | |
5967 | * c.opt (-Wno-alloc-size-larger-than): New option. | |
5968 | ||
b67b9225 DP |
5969 | 2018-04-22 David Pagan <dave.pagan@oracle.com> |
5970 | ||
5971 | PR c/55976 | |
5972 | * c-opts.c (c_common_post_options): Set default for warn_return_type | |
ab20d992 | 5973 | for C++/C++ with ObjC extensions only. For C, makes it possible to |
b67b9225 DP |
5974 | differentiate between default (no option), -Wreturn-type, and |
5975 | -Wno-return-type. | |
5976 | ||
04eb9c55 JM |
5977 | 2018-05-29 Jason Merrill <jason@redhat.com> |
5978 | ||
5979 | * c.opt (Winit-list-lifetime): New flag. | |
5980 | ||
b0c31bc6 BE |
5981 | 2018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de> |
5982 | ||
5983 | * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and | |
5984 | splay_tree_delete_pointers. | |
5985 | ||
44284983 JJ |
5986 | 2018-05-26 Jakub Jelinek <jakub@redhat.com> |
5987 | ||
5988 | PR bootstrap/85921 | |
5989 | * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary | |
5990 | noinline variable to workaround broken kernel headers. | |
5991 | ||
b46b715d JM |
5992 | 2018-05-18 Jason Merrill <jason@redhat.com> |
5993 | ||
5994 | * c.opt (Wdeprecated-copy): New flag. | |
5995 | ||
40659769 ML |
5996 | 2018-05-17 Martin Liska <mliska@suse.cz> |
5997 | ||
5998 | * c-warn.c (overflow_warning): Do not use | |
5999 | space in between 'G_' and '('. | |
6000 | ||
403962ea JM |
6001 | 2018-05-09 Jason Merrill <jason@redhat.com> |
6002 | ||
6003 | * c-common.c (valid_array_size_p): Add complain parameter. | |
6004 | * c-common.h: ...which defaults to true. | |
6005 | ||
1c9ee609 JJ |
6006 | 2018-05-11 Jakub Jelinek <jakub@redhat.com> |
6007 | ||
6008 | PR c/85696 | |
6009 | * c-omp.c (c_omp_predetermined_sharing): Return | |
6010 | OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type. | |
6011 | ||
19916065 ML |
6012 | 2018-05-11 Martin Liska <mliska@suse.cz> |
6013 | ||
92a285c1 | 6014 | PR sanitizer/85556 |
19916065 ML |
6015 | * c-attribs.c (handle_no_sanitize_attribute): Iterate all |
6016 | TREE_LIST values. | |
6017 | ||
79e7b1fe JJ |
6018 | 2018-05-10 Jakub Jelinek <jakub@redhat.com> |
6019 | ||
6020 | PR c++/85662 | |
6021 | * c-common.h (fold_offsetof_1): Removed. | |
6022 | (fold_offsetof): Add TYPE argument defaulted to size_type_node and | |
6023 | CTX argument defaulted to ERROR_MARK. | |
6024 | * c-common.c (fold_offsetof_1): Renamed to ... | |
6025 | (fold_offsetof): ... this. Remove wrapper function. Add TYPE | |
6026 | argument, convert the pointer constant to TYPE and use size_binop | |
6027 | with PLUS_EXPR instead of fold_build_pointer_plus if type is not | |
6028 | a pointer type. Adjust recursive calls. | |
6029 | ||
86c12f76 EB |
6030 | 2018-05-10 Eric Botcazou <ebotcazou@adacore.com> |
6031 | ||
6032 | PR c++/85400 | |
6033 | * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs. | |
6034 | ||
ee336e84 NS |
6035 | 2018-05-07 Nathan Sidwell <nathan@acm.org> |
6036 | ||
6037 | * c.opt (ffor-scope): Remove functionality, issue warning. | |
6038 | ||
6c072e21 NS |
6039 | 2018-05-03 Nathan Sidwell <nathan@acm.org> |
6040 | ||
6041 | * c.opt (ffriend-injection): Remove functionality, issue warning. | |
6042 | ||
2cc7d3a7 DM |
6043 | 2018-05-01 David Malcolm <dmalcolm@redhat.com> |
6044 | ||
6045 | PR c/84258 | |
6046 | * c-format.c (struct format_check_results): Add field | |
6047 | "number_non_char". | |
6048 | (check_format_info): Initialize it, and warn if encountered. | |
6049 | (check_format_arg): Distinguish between wide char and | |
6050 | everything else when detecting arrays of non-char. | |
6051 | ||
7761dfbe DM |
6052 | 2018-04-30 David Malcolm <dmalcolm@redhat.com> |
6053 | ||
6054 | * c-format.c (get_corrected_substring): Update for | |
6055 | location_get_source_line returning a char_span. Use a char_span | |
6056 | when handling the prefix of the correction. | |
6057 | * c-indentation.c (get_visual_column): Update for | |
6058 | location_get_source_line returning a char_span. | |
6059 | (get_first_nws_vis_column): Likewise. | |
6060 | ||
62e98ef1 DM |
6061 | 2018-03-29 David Malcolm <dmalcolm@redhat.com> |
6062 | ||
6063 | PR c++/84269 | |
6064 | * known-headers.cc (get_stdlib_header_for_name): Add various names | |
6065 | from <assert.h>, <string.h>, and <memory.h>; add more names from | |
6066 | <stdio.h>. | |
6067 | ||
a7dea617 JJ |
6068 | 2018-03-27 Jakub Jelinek <jakub@redhat.com> |
6069 | ||
6070 | PR c++/85061 | |
6071 | * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that | |
6072 | get_base_address of the second operand is a VAR_P, rather than the | |
6073 | operand itself, and use gcc_checking_assert instead of gcc_assert. | |
6074 | ||
889a3a30 MP |
6075 | 2018-03-23 Marek Polacek <polacek@redhat.com> |
6076 | ||
6077 | PR c++/85045 | |
6078 | * c-pretty-print.c (c_pretty_printer::multiplicative_expression) | |
6079 | <case RDIV_EXPR>: Tweak condition. | |
6080 | ||
452154b9 EB |
6081 | 2018-03-20 Eric Botcazou <ebotcazou@adacore.com> |
6082 | ||
6083 | * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool. | |
6084 | ||
63ecb626 JJ |
6085 | 2018-03-16 Jakub Jelinek <jakub@redhat.com> |
6086 | ||
ce811fc4 JJ |
6087 | PR c/84909 |
6088 | * c-warn.c (conversion_warning): Replace "to to" with "to" in | |
6089 | diagnostics. | |
6090 | ||
63ecb626 JJ |
6091 | PR c/84910 |
6092 | * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from | |
6093 | diagnostics. | |
6094 | ||
a1295eec RB |
6095 | 2018-03-16 Richard Biener <rguenther@suse.de> |
6096 | ||
6097 | PR c/84873 | |
6098 | * c-gimplify.c (c_gimplify_expr): Revert previous change. Instead | |
6099 | unshare the possibly folded expression. | |
6100 | ||
919674fb RB |
6101 | 2018-03-15 Richard Biener <rguenther@suse.de> |
6102 | ||
6103 | PR c/84873 | |
6104 | * c-gimplify.c (c_gimplify_expr): Do not fold expressions. | |
6105 | ||
f99309b2 MS |
6106 | 2018-03-13 Martin Sebor <msebor@redhat.com> |
6107 | ||
6108 | PR tree-optimization/84725 | |
6109 | * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring | |
6110 | with all three narrow character types, including their qualified forms. | |
6111 | ||
e9b9fa4c MS |
6112 | 2018-03-12 Martin Sebor <msebor@redhat.com> |
6113 | ||
6114 | PR tree-optimization/83456 | |
ab20d992 | 6115 | * c-common.c (check_function_restrict): Return bool. |
e9b9fa4c MS |
6116 | Restore checking of bounded built-in functions. |
6117 | (check_function_arguments): Also return the result | |
6118 | of warn_for_restrict. | |
ab20d992 JJ |
6119 | * c-common.c (check_function_restrict): Return bool. |
6120 | * c-warn.c (warn_for_restrict): Return bool. | |
e9b9fa4c | 6121 | |
0805d020 MP |
6122 | 2018-03-02 Marek Polacek <polacek@redhat.com> |
6123 | ||
6124 | PR c++/84171 | |
6125 | * c-warn.c (warn_for_sign_compare): Bail out if any of the operands | |
6126 | is erroneous. | |
6127 | ||
ed2a2f08 TS |
6128 | 2018-03-02 Thomas Schwinge <thomas@codesourcery.com> |
6129 | ||
6130 | * c-attribs.c (c_common_attribute_table): Remove "cilk simd | |
6131 | function". | |
6132 | ||
90abdde0 MP |
6133 | 2018-03-01 Marek Polacek <polacek@redhat.com> |
6134 | ||
6135 | PR c++/84639 | |
6136 | * c-attribs.c (common_handle_aligned_attribute): Don't use invalid | |
6137 | alignment in computation. | |
6138 | ||
c6db43fa EB |
6139 | 2018-02-28 Eric Botcazou <ebotcazou@adacore.com> |
6140 | ||
6141 | * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case. | |
6142 | <REAL_TYPE>: Deal specifically with _Float128/__float128. | |
6143 | ||
9e25c7ed EB |
6144 | 2018-02-28 Eric Botcazou <ebotcazou@adacore.com> |
6145 | ||
6146 | * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case. | |
6147 | (is_char_array): Take a type instead of a declaration. | |
6148 | (dump_ada_array_type): Likewise. | |
6149 | (is_simple_enum): Minor tweak. | |
6150 | (dump_ada_enum_type): New function extracted from... | |
6151 | (dump_ada_node) <ENUMERAL_TYPE>: ...here. Invoke it. | |
6152 | <INTEGER_TYPE>: Remove unreachable code. | |
6153 | <RECORD_TYPE>: Likewise. Minor tweaks. | |
6154 | (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes. | |
6155 | <ENUMERAL_TYPE>: New case. | |
6156 | <RECORD_TYPE>: Factor out common code. | |
6157 | (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes. | |
6158 | Minor tweaks. Deal with enumeral types. | |
6159 | (dump_ada_structure): Minor tweaks. | |
6160 | ||
09de3550 EB |
6161 | 2018-02-28 Eric Botcazou <ebotcazou@adacore.com> |
6162 | ||
6163 | * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic | |
6164 | address for incomplete structures. | |
6165 | (dump_forward_type): Do not bail out for incomplete structures. | |
6166 | (dump_ada_declaration): Do not special-case incomplete structures | |
6167 | for subtypes. Dump them as null records for types. | |
6168 | ||
095d8d4b EB |
6169 | 2018-02-28 Eric Botcazou <ebotcazou@adacore.com> |
6170 | ||
6171 | * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting. | |
6172 | (is_char_array): Fix formatting. | |
6173 | (dump_template_types): Likewise. | |
6174 | (dump_generic_ada_node): Rename into... | |
6175 | (dump_ada_node): ...this. | |
6176 | <POINTER_TYPE>: Remove superfluous space. Use generic address for | |
6177 | incomplete structures and not for empty structures. Do not use it | |
6178 | when forward declarations are needed. | |
6179 | (dump_forward_type): New function. | |
6180 | (dump_nested_types): Remove FORWARD parameter. Do not consider | |
6181 | TREE_VISITED and do not generate a forward declaration. Only dump | |
6182 | original nested types for nested declaration. | |
6183 | (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type. | |
6184 | <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer. | |
6185 | <RECORD_TYPE>: Do not consider TREE_VISITED. | |
6186 | (dump_ada_declaration): Use booleans and fix formatting throughout. | |
6187 | <TYPE_DECL>: Skip incomplete structures and not empty structures. | |
6188 | Call dump_forward_type instead of dump_nested_types for a typedef. | |
6189 | Remove superfluous check and adjust call to dump_nested_types. | |
6190 | <POINTER_TYPE>: Call dump_forward_type and fall through. | |
6191 | (dump_ada_struct_decl): Rename into... | |
6192 | (dump_ada_structure): ...this. Do not special-case empty structures. | |
6193 | ||
d4cfd486 MS |
6194 | 2018-02-27 Martin Sebor <msebor@redhat.com> |
6195 | ||
6196 | PR c++/83871 | |
6197 | * c.opt (-Wmissing-attributes): New option. | |
6198 | ||
b22dbd03 ML |
6199 | 2018-02-21 Martin Liska <mliska@suse.cz> |
6200 | ||
6201 | * c.opt (Wcatch-value=): Add IntegerRange. | |
6202 | ||
883dfe2a JM |
6203 | 2018-02-15 Jason Merrill <jason@redhat.com> |
6204 | ||
6205 | * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides. | |
6206 | ||
0444aa9c NS |
6207 | 2018-02-09 Nathan Sidwell <nathan@acm.org> |
6208 | ||
6209 | PR c/84293 | |
6210 | * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC | |
6211 | arg. | |
6212 | * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC | |
6213 | arg. Adjust. | |
6214 | ||
cea71f0a MS |
6215 | 2018-02-09 Martin Sebor <msebor@redhat.com> |
6216 | ||
6217 | PR lto/84212 | |
6218 | * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO. | |
6219 | (-Walloc-size-larger-than, -Wformat-truncation=): Same. | |
6220 | (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same. | |
6221 | (-Wstrict-overflow, -Wsuggest-attribute): Same. | |
6222 | (-Wuninitialized): Same. | |
6223 | ||
8c8b7be5 EB |
6224 | 2018-02-09 Eric Botcazou <ebotcazou@adacore.com> |
6225 | ||
6226 | * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant' | |
6227 | keyword for components. | |
6228 | ||
7c30b12a PC |
6229 | 2018-02-02 Paolo Carlini <paolo.carlini@oracle.com> |
6230 | ||
6231 | * c-common.h (DECL_UNNAMED_BIT_FIELD): New. | |
6232 | ||
eece7fe5 JK |
6233 | 2018-02-02 Julia Koval <julia.koval@intel.com> |
6234 | ||
6235 | * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h. | |
6236 | ||
7d07a93a MP |
6237 | 2018-01-29 Marek Polacek <polacek@redhat.com> |
6238 | ||
6239 | PR c/83966 | |
6240 | * c-format.c (check_function_format): Check current_function_decl. | |
6241 | ||
53723269 JJ |
6242 | 2018-01-27 Jakub Jelinek <jakub@redhat.com> |
6243 | ||
6244 | * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix | |
6245 | argument. | |
6246 | (LAZY_HEX_FP_VALUES_CNT): Define. | |
6247 | (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp | |
6248 | values rather than just 12. | |
6249 | (builtin_define_with_hex_fp_value): Likewise. | |
6250 | ||
7365279f BK |
6251 | 2018-01-18 Boris Kolpackov <boris@codesynthesis.com> |
6252 | ||
92a285c1 ML |
6253 | PR other/70268 |
6254 | * c.opt (-fmacro-prefix-map): New option. | |
6255 | * c-opts.c (c_common_handle_option): Handle it. | |
6256 | * c-lex.c (init_c_lex): Set remap_filename cpp callback. | |
6257 | * c-ppoutput.c (init_pp_output): Likewise. | |
7365279f | 6258 | |
bb9869d5 DM |
6259 | 2018-01-17 David Malcolm <dmalcolm@redhat.com> |
6260 | ||
6261 | PR c++/83814 | |
6262 | * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c. | |
6263 | ||
68dc87c3 EB |
6264 | 2018-01-10 Eric Botcazou <ebotcazou@adacore.com> |
6265 | ||
6266 | * c-ada-spec.c (dump_number): Add FLOAT_P parameter. | |
6267 | Skip 'f' and 'F' characters if it is true. | |
6268 | (store_ada_macro): Minor tweak. | |
6269 | (dump_ada_macros) <CPP_COMMENT>: Likewise. | |
6270 | <CPP_WSTRING>: Likewise. | |
6271 | <CPP_STRING>: Output '&' in the buffer if not the first string. | |
6272 | <CPP_NUMBER>: Adjust calls to dump_number. | |
6273 | ||
9a004410 DM |
6274 | 2018-01-10 David Malcolm <dmalcolm@redhat.com> |
6275 | ||
6276 | PR c++/43486 | |
6277 | * c-common.c: Include "selftest.h". | |
6278 | (get_atomic_generic_size): Perform the test for integral type | |
6279 | before the range test for any integer constant, fixing indentation | |
6280 | of braces. Call fold_for_warn before testing for an INTEGER_CST. | |
6281 | (reject_gcc_builtin): Strip any location wrapper from EXPR. | |
6282 | (selftest::test_fold_for_warn): New function. | |
6283 | (selftest::c_common_c_tests): New function. | |
6284 | (selftest::c_family_tests): Call it, and | |
6285 | selftest::c_pretty_print_c_tests. | |
6286 | * c-common.h (selftest::c_pretty_print_c_tests): New decl. | |
6287 | * c-format.c (check_format_arg): Convert VAR_P check to a | |
6288 | fold_for_warn. | |
6289 | * c-pretty-print.c: Include "selftest.h". | |
6290 | (pp_c_cast_expression): Don't print casts for location wrappers. | |
6291 | (selftest::assert_c_pretty_printer_output): New function. | |
6292 | (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro. | |
6293 | (selftest::test_location_wrappers): New function. | |
6294 | (selftest::c_pretty_print_c_tests): New function. | |
6295 | * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments. | |
6296 | ||
5c0caeb3 RS |
6297 | 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org> |
6298 | Alan Hayward <alan.hayward@arm.com> | |
6299 | David Sherwood <david.sherwood@arm.com> | |
6300 | ||
6301 | * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL. | |
6302 | ||
73a699ae RS |
6303 | 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org> |
6304 | Alan Hayward <alan.hayward@arm.com> | |
6305 | David Sherwood <david.sherwood@arm.com> | |
6306 | ||
6307 | * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE | |
6308 | as polynomial. | |
6309 | ||
928686b1 RS |
6310 | 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org> |
6311 | Alan Hayward <alan.hayward@arm.com> | |
6312 | David Sherwood <david.sherwood@arm.com> | |
6313 | ||
6314 | * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr) | |
6315 | (convert_vector_to_array_for_subscript): Handle polynomial | |
6316 | TYPE_VECTOR_SUBPARTS. | |
6317 | (c_common_type_for_mode): Check valid_vector_subparts_p. | |
6318 | * c-pretty-print.c (pp_c_initializer_list): Handle polynomial | |
6319 | VECTOR_CST_NELTS. | |
6320 | ||
85ec4feb JJ |
6321 | 2018-01-03 Jakub Jelinek <jakub@redhat.com> |
6322 | ||
6323 | Update copyright years. | |
6324 | ||
170a8bd6 | 6325 | 2017-12-22 Mike Stump <mikestump@comcast.net> |
92a285c1 | 6326 | Eric Botcazou <ebotcazou@adacore.com> |
170a8bd6 EB |
6327 | |
6328 | * c-pragma.c (init_pragma): Register pragma GCC unroll. | |
6329 | * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL. | |
6330 | ||
ab20d992 | 6331 | 2017-12-22 Alexandre Oliva <aoliva@redhat.com> |
18408e96 AO |
6332 | |
6333 | PR debug/83527 | |
6334 | PR debug/83419 | |
6335 | * c-semantics.c (only_debug_stmts_after_p): New. | |
6336 | (pop_stmt_list): Clear side effects in debug-only stmt list. | |
6337 | Check for single nondebug stmt followed by debug stmts only. | |
6338 | ||
c12d20d4 AO |
6339 | 2017-12-21 Alexandre Oliva <aoliva@redhat.com> |
6340 | ||
6341 | PR debug/83419 | |
6342 | * c-semantics.c (pop_stmt_list): Propagate side effects from | |
6343 | single nondebug stmt to container list. | |
6344 | ||
01512446 JJ |
6345 | 2017-12-19 Jakub Jelinek <jakub@redhat.com> |
6346 | ||
6347 | * known-headers.cc (get_stdlib_header_for_name): Replace Yoda | |
6348 | conditions with typical order conditions. | |
6349 | ||
82cfbd01 MP |
6350 | 2017-12-18 Marek Polacek <polacek@redhat.com> |
6351 | ||
6352 | * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is | |
6353 | not in effect. | |
6354 | ||
99da11ec MS |
6355 | 2017-12-17 Martin Sebor <msebor@redhat.com> |
6356 | ||
6357 | * c-attribs.c (common_handle_aligned_attribute): Avoid issuing | |
6358 | an error for attribute warn_if_not_aligned. | |
6359 | ||
cc8bea0a MS |
6360 | 2017-12-16 Martin Sebor <msebor@redhat.com> |
6361 | ||
6362 | PR tree-optimization/78918 | |
6363 | * c-common.c (check_function_restrict): Avoid checking built-ins. | |
6364 | * c.opt (-Wrestrict): Include in -Wall. | |
6365 | ||
4849deb1 JJ |
6366 | 2017-12-15 Jakub Jelinek <jakub@redhat.com> |
6367 | ||
6368 | * c-attribs.c (c_common_attribute_table, | |
6369 | c_common_format_attribute_table): Swap affects_type_identity | |
6370 | and handler fields, adjust comments. | |
6371 | ||
c65e18d3 BE |
6372 | 2017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de> |
6373 | ||
6374 | * c.opt (Wcast-function-type): New warning option. | |
6375 | * c-lex.c (get_fileinfo): Avoid warning. | |
6376 | * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast. | |
6377 | ||
2004617a QZ |
6378 | 2017-12-14 Qing Zhao <qing.zhao@oracle.com> |
6379 | ||
7365279f | 6380 | PR middle_end/79538 |
2004617a QZ |
6381 | * c-cppbuiltin.c (builtin_define_with_hex_fp_value): |
6382 | Adjust the size of buf1 and buf2, add a new buf to avoid | |
6383 | format-overflow warning. | |
6384 | ||
ab20d992 | 6385 | 2017-12-12 Alexandre Oliva <aoliva@redhat.com> |
96a95ac1 AO |
6386 | |
6387 | * c-semantics.c (pop_stmt_list): Move begin stmt marker into | |
6388 | subsequent statement list. | |
6389 | ||
5d9ae53d MS |
6390 | 2017-12-07 Martin Sebor <msebor@redhat.com> |
6391 | ||
6392 | PR c/81544 | |
6393 | PR c/81566 | |
6394 | * c-attribs.c (attr_aligned_exclusions): New array. | |
6395 | (attr_alloc_exclusions, attr_cold_hot_exclusions): Same. | |
6396 | (attr_common_exclusions, attr_const_pure_exclusions): Same. | |
6397 | (attr_gnu_inline_exclusions, attr_inline_exclusions): Same. | |
6398 | (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same. | |
6399 | (attr_warn_unused_result_exclusions): Same. | |
6400 | (handle_hot_attribute, handle_cold_attribute): Simplify. | |
6401 | (handle_const_attribute): Warn on function returning void. | |
6402 | (handle_pure_attribute): Same. | |
6403 | (handle_aligned_attribute): Diagnose conflicting attribute | |
6404 | specifications. | |
6405 | * c-warn.c (diagnose_mismatched_attributes): Simplify. | |
6406 | ||
c79144f8 DM |
6407 | 2017-12-06 David Malcolm <dmalcolm@redhat.com> |
6408 | ||
6409 | PR c/83236 | |
6410 | * c-common.c (selftest::c_family_tests): Call | |
6411 | selftest::c_spellcheck_cc_tests. | |
6412 | * c-common.h (selftest::c_spellcheck_cc_tests): New decl. | |
6413 | * c-spellcheck.cc: Include "selftest.h". | |
6414 | (name_reserved_for_implementation_p): New function. | |
6415 | (should_suggest_as_macro_p): New function. | |
6416 | (find_closest_macro_cpp_cb): Move the check for NT_MACRO to | |
6417 | should_suggest_as_macro_p and call it. | |
6418 | (selftest::test_name_reserved_for_implementation_p): New function. | |
6419 | (selftest::c_spellcheck_cc_tests): New function. | |
6420 | * c-spellcheck.h (name_reserved_for_implementation_p): New decl. | |
6421 | ||
613bc14f DM |
6422 | 2017-12-06 David Malcolm <dmalcolm@redhat.com> |
6423 | ||
6424 | * c-spellcheck.cc: New file, taken from macro-handling code in | |
6425 | spellcheck-tree.c. | |
6426 | * c-spellcheck.h: New file, taken from macro-handling code in | |
6427 | spellcheck-tree.h. | |
6428 | ||
e76c7157 JJ |
6429 | 2017-12-01 Jakub Jelinek <jakub@redhat.com> |
6430 | ||
6431 | * c-attribs.c (c_common_attribute_table): Remove "cilk simd function" | |
6432 | attribute. | |
6433 | (handle_simd_attribute): Don't check for "cilk simd function" | |
6434 | attribute. Reindent, formatting changes. | |
6435 | ||
b0da4034 JK |
6436 | 2017-11-30 Julia Koval <julia.koval@intel.com> |
6437 | ||
6438 | * c-common.h (inv_list): Remove. | |
6439 | ||
058f0b9e JJ |
6440 | 2017-11-28 Jakub Jelinek <jakub@redhat.com> |
6441 | ||
6442 | PR sanitizer/81275 | |
6443 | * c-common.c (c_switch_covers_all_cases_p_1, | |
6444 | c_switch_covers_all_cases_p): New functions. | |
6445 | * c-common.h (c_switch_covers_all_cases_p): Declare. | |
6446 | ||
5e9d6aa4 | 6447 | 2017-11-28 Julia Koval <julia.koval@intel.com> |
92a285c1 | 6448 | Sebastian Peryt <sebastian.peryt@intel.com> |
5e9d6aa4 JK |
6449 | |
6450 | * array-notation-common.c: Delete. | |
6451 | * c-cilkplus.c: Ditto. | |
6452 | * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove. | |
6453 | * c-common.def (ARRAY_NOTATION_REF): Remove. | |
6454 | * c-common.h (RID_CILK_SPAWN, build_array_notation_expr, | |
6455 | build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop, | |
6456 | c_validate_cilk_plus_loop, cilkplus_an_parts, | |
6457 | cilk_ignorable_spawn_rhs_op, | |
6458 | cilk_recognize_spawn): Remove. | |
6459 | * c-gimplify.c (CILK_SPAWN_STMT): Remove. | |
6460 | * c-omp.c: Remove CILK_SIMD check. | |
6461 | * c-pragma.c: Ditto. | |
6462 | * c-pragma.h: Remove CILK related pragmas. | |
6463 | * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove | |
6464 | ARRAY_NOTATION_REF condition. | |
6465 | (c_pretty_printer::expression): Ditto. | |
6466 | * c.opt (fcilkplus): Remove. | |
6467 | * cilk.c: Delete. | |
6468 | ||
1af4ebf5 MG |
6469 | 2017-11-21 Marc Glisse <marc.glisse@inria.fr> |
6470 | ||
6471 | * c-pretty-print.c (pp_c_additive_expression, | |
6472 | c_pretty_printer::expression): Handle POINTER_DIFF_EXPR. | |
6473 | ||
d44ed508 JJ |
6474 | 2017-11-21 Jakub Jelinek <jakub@redhat.com> |
6475 | ||
7d2f0f9b JJ |
6476 | * c-common.c (get_nonnull_operand): Use tree_to_uhwi. |
6477 | ||
d44ed508 JJ |
6478 | PR c++/83059 |
6479 | * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW | |
6480 | instead of tree_to_uhwi, formatting fix. | |
6481 | ||
26edace6 DM |
6482 | 2017-11-20 David Malcolm <dmalcolm@redhat.com> |
6483 | ||
6484 | PR c/81404 | |
6485 | * known-headers.cc: New file, based on material from c/c-decl.c. | |
6486 | (suggest_missing_header): Copied as-is. | |
6487 | (get_stdlib_header_for_name): New, based on get_c_name_hint but | |
6488 | heavily edited to add C++ support. Add some knowledge about | |
6489 | <limits.h>, <stdint.h>, and <wchar.h>. | |
6490 | * known-headers.h: Likewise. | |
6491 | ||
6c7a259b DM |
6492 | 2017-11-20 David Malcolm <dmalcolm@redhat.com> |
6493 | ||
6494 | * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h. | |
6495 | (lookup_name_fuzzy): Likewise. Convert return type from | |
6496 | const char * to name_hint. Add location_t param. | |
6497 | * name-hint.h: New header. | |
6498 | ||
f9c59f7e JJ |
6499 | 2017-11-19 Jakub Jelinek <jakub@redhat.com> |
6500 | ||
6501 | PR c/66618 | |
6502 | PR c/69960 | |
6503 | * c-common.h (c_fully_fold): Add LVAL argument defaulted to false. | |
6504 | ||
1e39313a JM |
6505 | 2017-11-16 Joseph Myers <joseph@codesourcery.com> |
6506 | ||
6507 | * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018 | |
6508 | expected publication date of C17. | |
6509 | (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases. | |
6510 | ||
3ca0dc60 JM |
6511 | 2017-11-15 Joseph Myers <joseph@codesourcery.com> |
6512 | ||
6513 | PR c/81156 | |
6514 | * c-common.c (c_common_reswords): Add __builtin_tgmath. | |
6515 | * c-common.h (enum rid): Add RID_BUILTIN_TGMATH. | |
6516 | ||
025d57f0 MS |
6517 | 2017-11-10 Martin Sebor <msebor@redhat.com> |
6518 | ||
6519 | PR c/81117 | |
6520 | * c-common.c (catenate_strings): Use memcpy instead of strncpy. | |
6521 | * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays. | |
6522 | * c.opt (-Wstringop-truncation): New option. | |
6523 | ||
1b6fa695 ML |
6524 | 2017-11-06 Martin Liska <mliska@suse.cz> |
6525 | ||
6526 | PR middle-end/82404 | |
6527 | * c-opts.c (c_common_post_options): Set -Wreturn-type for C++ | |
6528 | FE. | |
6529 | * c.opt: Set default value of warn_return_type. | |
6530 | ||
64a5912c DM |
6531 | 2017-10-31 David Malcolm <dmalcolm@redhat.com> |
6532 | ||
6533 | * c-common.c (binary_op_error): Update for renaming of | |
6534 | error_at_rich_loc. | |
6535 | (c_parse_error): Likewise. | |
6536 | * c-warn.c (warn_logical_not_parentheses): Likewise for | |
6537 | renaming of inform_at_rich_loc. | |
6538 | (warn_for_restrict): Likewise for renaming of | |
6539 | warning_at_rich_loc_n. | |
6540 | ||
c76dc9c3 JM |
6541 | 2017-10-30 Joseph Myers <joseph@codesourcery.com> |
6542 | ||
6543 | * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options. | |
6544 | * c-opts.c (set_std_c17): New function. | |
6545 | (c_common_init_options): Use gnu17 as default C version. | |
6546 | (c_common_handle_option): Handle -std=c17 and -std=gnu17. | |
6547 | ||
ee5fd23a MM |
6548 | 2017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com> |
6549 | ||
6550 | * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode. | |
6551 | (c_cpp_builtins): If a machine has a fast fma _Float<N> and | |
6552 | _Float<N>X variant, define __FP_FAST_FMA<N> and/or | |
6553 | __FP_FAST_FMA<N>X. | |
6554 | ||
d1047465 MP |
6555 | 2017-10-23 Marek Polacek <polacek@redhat.com> |
6556 | ||
6557 | PR c/82681 | |
6558 | * c-warn.c (warnings_for_convert_and_check): Fix typos. | |
6559 | ||
9e878cf1 EB |
6560 | 2017-10-19 Eric Botcazou <ebotcazou@adacore.com> |
6561 | ||
6562 | * c-common.c (check_builtin_function_arguments): Also check arguments | |
6563 | of __builtin_alloca_with_align_and_max. | |
6564 | ||
89b6abbb DM |
6565 | 2017-10-17 David Malcolm <dmalcolm@redhat.com> |
6566 | ||
6567 | * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION | |
6568 | rather than NULL to format_warning_va. | |
6569 | (check_format_types): Likewise when calling format_type_warning. | |
6570 | Remove code to extract source_ranges and source_range * in favor | |
6571 | of just a location_t. | |
6572 | (format_type_warning): Convert source_range * param to a | |
6573 | location_t. | |
6574 | ||
39382c09 JJ |
6575 | 2017-10-13 Jakub Jelinek <jakub@redhat.com> |
6576 | ||
6577 | * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like | |
6578 | [LR]SHIFT_EXPR. | |
6579 | ||
62e1c678 DM |
6580 | 2017-10-12 David Malcolm <dmalcolm@redhat.com> |
6581 | ||
6582 | * c-common.c (enum missing_token_insertion_kind): New enum. | |
6583 | (get_missing_token_insertion_kind): New function. | |
6584 | (maybe_suggest_missing_token_insertion): New function. | |
6585 | * c-common.h (maybe_suggest_missing_token_insertion): New decl. | |
6586 | ||
b90c9338 NS |
6587 | 2017-10-11 Nathan Sidwell <nathan@acm.org> |
6588 | ||
6589 | * c-opts.c (add_prefixed_path): Change chain to incpath_kind. | |
6590 | (c_common_handle_option): Update incpath_kind names. | |
6591 | ||
3a266bcd ML |
6592 | 2017-10-11 Martin Liska <mliska@suse.cz> |
6593 | ||
6594 | PR sanitizer/82490 | |
6595 | * c-attribs.c (handle_no_sanitize_attribute): Report directly | |
6596 | Wattributes warning. | |
6597 | ||
8e6cdc90 RS |
6598 | 2017-10-10 Richard Sandiford <richard.sandiford@linaro.org> |
6599 | ||
6600 | * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when | |
6601 | operating on trees as wide_ints. | |
6602 | * c-common.c (pointer_int_sum): Likewise. | |
6603 | * c-pretty-print.c (pp_c_integer_constant): Likewise. | |
6604 | * c-warn.c (match_case_to_enum_1): Likewise. | |
6605 | (c_do_switch_warnings): Likewise. | |
6606 | (maybe_warn_shift_overflow): Likewise. | |
6607 | ||
802b38c9 JJ |
6608 | 2017-10-10 Jakub Jelinek <jakub@redhat.com> |
6609 | ||
6610 | PR c/82437 | |
6611 | * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide | |
6612 | instead of wide_int::from. | |
6613 | ||
4e34b338 JJ |
6614 | 2017-10-06 Jakub Jelinek <jakub@redhat.com> |
6615 | ||
6616 | PR c/82437 | |
6617 | * c-warn.c (warn_tautological_bitwise_comparison): Instead of | |
6618 | using to_widest use wide_int with the larger of the two precisions. | |
6619 | ||
4bc4b2b4 BE |
6620 | 2017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de> |
6621 | ||
6622 | * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic | |
6623 | functions. | |
6624 | ||
a1488398 RS |
6625 | 2017-10-02 Richard Sandiford <richard.sandiford@linaro.org> |
6626 | ||
6627 | * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest | |
6628 | when combining the original unconverted comparison operands. | |
6629 | ||
01c9fb68 JJ |
6630 | 2017-09-29 Jakub Jelinek <jakub@redhat.com> |
6631 | ||
6632 | * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect" | |
6633 | attribute. | |
6634 | ||
6e3e8419 EB |
6635 | 2017-09-29 Eric Botcazou <ebotcazou@adacore.com> |
6636 | ||
6637 | * c-ada-spec.c (to_ada_name): Add index parameter. | |
6638 | (pp_ada_tree_identifier): Likewise. | |
6639 | (dump_ada_macros): Adjust call to to_ada_name. | |
6640 | (struct overloaded_name_hash): New type. | |
6641 | (struct overloaded_name_hasher): Likewise. | |
6642 | (overloaded_names): New hash table. | |
6643 | (compute_overloading_index): New function. | |
6644 | (dump_ada_decl_name): Call it and pass the result to | |
6645 | pp_ada_tree_identifier. | |
6646 | (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier. | |
6647 | (dump_ada_function_declaration): Likewise. | |
6648 | (dump_generic_ada_node): Likewise. | |
6649 | (print_constructor): Likewise. | |
6650 | (print_destructor): Likewise. | |
6651 | (dump_ada_specs): Delete overloaded_names table. | |
6652 | ||
79310774 EB |
6653 | 2017-09-29 Eric Botcazou <ebotcazou@adacore.com> |
6654 | ||
6655 | * c-ada-spec.c (max_ada_macros): Move around. | |
6656 | (store_ada_macro_index): Likewise. | |
6657 | (source_file): Rename into... | |
6658 | (macro_source_file): ...this. | |
6659 | (count_ada_macro): Move around. | |
6660 | (store_ada_macro): Likewise. | |
6661 | (compare_macro): Likewise. | |
6662 | (print_ada_macros): Merge in... | |
6663 | (dump_ada_macros): ...this. | |
6664 | (source_file_base): Rename into... | |
6665 | (current_source_file): ...this. | |
6666 | (print_comment): Move around. | |
6667 | (dump_ada_nodes): Call dump_ada_declaration directly. | |
6668 | (struct with): Change type of limited field to bool. | |
6669 | (append_withs): Change type of limited_access parameter to bool. | |
6670 | (pp_ada_tree_identifie): Likewise. | |
6671 | (dump_ada_decl_nam): Likewise. | |
6672 | (dump_generic_ada_node): Likewise. Do not print the return type. | |
6673 | (to_ada_name): Change type of space_found parameter to bool. | |
6674 | (dump_ada_function_declaration): Return void and change type of | |
6675 | parameters to bool. Also print the return type for a function. | |
6676 | (print_ada_methods): Rename into... | |
6677 | (dump_ada_methods): ...this. | |
6678 | (print_ada_declaration): Rename into ... | |
6679 | (dump_ada_declaration): ...this. Do not print the return type. | |
6680 | (print_ada_struct_decl): Rename into... | |
6681 | (dump_ada_struct_decl): ...this. | |
6682 | ||
7d386d45 JJ |
6683 | 2017-09-29 Jakub Jelinek <jakub@redhat.com> |
6684 | ||
6685 | * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD | |
6686 | rather than DECL_INITIAL. | |
6687 | (common_handle_aligned_attribute): Likewise. | |
6688 | ||
ab20d992 | 6689 | 2017-09-20 Alexandre Oliva <aoliva@redhat.com> |
9ed32e27 AO |
6690 | |
6691 | * c.opt (gen-decls): Add RejectNegative. | |
6692 | ||
026a79f7 AS |
6693 | 2017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com> |
6694 | Jakub Jelinek <jakub@redhat.com> | |
6695 | ||
6696 | Add support for -std=c++2a. | |
6697 | * c-common.h (cxx_dialect): Add cxx2a as a dialect. | |
6698 | * opt.c: Add options for -std=c++2a and -std=gnu++2a. | |
6699 | * c-opts.c (set_std_cxx2a): New. | |
6700 | (c_common_handle_option): Set options when -std=c++2a is enabled. | |
6701 | (c_common_post_options): Adjust comments. | |
6702 | (set_std_cxx14, set_std_cxx17): Likewise. | |
6703 | ||
4a8ca690 EB |
6704 | 2017-09-15 Eric Botcazou <ebotcazou@adacore.com> |
6705 | ||
6706 | * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error | |
6707 | message for non-uniform endianness and issue a warning in C++. | |
6708 | ||
7b936140 JJ |
6709 | 2017-09-15 Jakub Jelinek <jakub@redhat.com> |
6710 | ||
6711 | * c.opt (Wc++1z-compat): Change from option to undocumented alias. | |
6712 | (Wc++17-compat): Change from undocumented alias to option. | |
6713 | (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat, | |
6714 | change C++1z to C++17 in description. | |
6715 | (std=c++1z, std=gnu++1z): Change from option to undocumented | |
6716 | deprecated alias. | |
6717 | (std=c++17, std=gnu++17): Change from undocumented alias to option. | |
6718 | Adjust description. | |
6719 | * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17. | |
6720 | * c-opts.c (set_std_cxx1z): Rename to ... | |
6721 | (set_std_cxx17): ... this. | |
6722 | (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17 | |
6723 | and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z | |
7365279f | 6724 | caller. |
7b936140 JJ |
6725 | (c_common_post_options): Use cxx17 instead of cxx1z. Adjust |
6726 | comments. | |
6727 | ||
12263f13 L |
6728 | 2017-09-12 H.J. Lu <hongjiu.lu@intel.com> |
6729 | ||
6730 | * c-attribs.c (common_handle_aligned_attribute): Don't warn | |
6731 | function alignment if warn_if_not_aligned_p is true. | |
6732 | ||
6836632e NS |
6733 | 2017-09-12 Nathan Sidwell <nathan@acm.org> |
6734 | ||
6735 | * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp, | |
6736 | resort_sorted_fields): Move to c/c-decl.c. | |
6737 | * c-common.h (field_decl_cmp, resort_sorted_fields): Delete. | |
6738 | (struct sorted_fields_type): Move to c/c-lang.h. | |
6739 | ||
019bf9ad JW |
6740 | 2017-09-09 Jonathan Wakely <jwakely@redhat.com> |
6741 | ||
6742 | PR c++/81852 | |
6743 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init. | |
6744 | ||
bc7fe952 MP |
6745 | 2017-09-04 Marek Polacek <polacek@redhat.com> |
6746 | ||
6747 | PR c/81783 | |
6748 | * c-warn.c (warn_tautological_bitwise_comparison): New function. | |
6749 | (warn_tautological_cmp): Call it. | |
6750 | ||
ab20d992 | 6751 | 2017-09-01 Boris Kolpackov <boris@codesynthesis.com> |
de7c2c6a BK |
6752 | |
6753 | * c-opts.c (c_common_finish): Write dependency information even if | |
6754 | there are errors. | |
6755 | ||
d2e05fcb JJ |
6756 | 2017-09-01 Jakub Jelinek <jakub@redhat.com> |
6757 | ||
6758 | PR c/81887 | |
6759 | * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ... | |
6760 | (omp_pragmas_simd): ... here. | |
6761 | * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone, | |
6762 | create new clauses list containing just simd clause. | |
6763 | ||
18e2a8b8 RS |
6764 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
6765 | Alan Hayward <alan.hayward@arm.com> | |
6766 | David Sherwood <david.sherwood@arm.com> | |
6767 | ||
6768 | * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call | |
6769 | into scalar_mode_supported_p call. | |
6770 | (handle_mode_attribute): Update call to scalar_mode_supported_p. | |
6771 | ||
16d22000 RS |
6772 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
6773 | Alan Hayward <alan.hayward@arm.com> | |
6774 | David Sherwood <david.sherwood@arm.com> | |
6775 | ||
6776 | * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode | |
6777 | for the mode iterator. | |
6778 | ||
b397965c RS |
6779 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
6780 | Alan Hayward <alan.hayward@arm.com> | |
6781 | David Sherwood <david.sherwood@arm.com> | |
6782 | ||
6783 | * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE. | |
6784 | * c-common.c (c_build_vec_perm_expr): Likewise. | |
6785 | ||
357b7604 RS |
6786 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
6787 | Alan Hayward <alan.hayward@arm.com> | |
6788 | David Sherwood <david.sherwood@arm.com> | |
6789 | ||
6790 | * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>. | |
6791 | ||
e05c94ba RS |
6792 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
6793 | Alan Hayward <alan.hayward@arm.com> | |
6794 | David Sherwood <david.sherwood@arm.com> | |
6795 | ||
6796 | * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode | |
6797 | before calling targetm.addr_space.valid_pointer_mode. | |
6798 | ||
5c20c4af RS |
6799 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
6800 | Alan Hayward <alan.hayward@arm.com> | |
6801 | David Sherwood <david.sherwood@arm.com> | |
6802 | ||
6803 | * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode. | |
6804 | ||
c94843d2 | 6805 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
92a285c1 ML |
6806 | Alan Hayward <alan.hayward@arm.com> |
6807 | David Sherwood <david.sherwood@arm.com> | |
c94843d2 RS |
6808 | |
6809 | * c-common.c (c_common_fixed_point_type_for_size): Use new mode | |
6810 | iterators. | |
6811 | * c-cppbuiltin.c (c_cpp_builtins): Likewise. | |
6812 | ||
4e10a5a7 RS |
6813 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
6814 | Alan Hayward <alan.hayward@arm.com> | |
6815 | David Sherwood <david.sherwood@arm.com> | |
6816 | ||
6817 | * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in | |
6818 | case statements. | |
6819 | ||
130fcab0 ML |
6820 | 2017-08-29 Martin Liska <mliska@suse.cz> |
6821 | ||
6822 | PR other/39851 | |
6823 | * c-common.c (parse_optimize_options): Add argument to function | |
6824 | call. | |
6825 | * c-pragma.c (handle_pragma_diagnostic): Likewise. | |
6826 | ||
14e18d71 DM |
6827 | 2017-08-24 David Malcolm <dmalcolm@redhat.com> |
6828 | ||
6829 | * c-lex.c (interpret_float): Use token location | |
6830 | when building an EXCESS_PRECISION_EXPR. | |
6831 | ||
2f687306 DM |
6832 | 2017-08-21 David Malcolm <dmalcolm@redhat.com> |
6833 | ||
6834 | * c-common.c (check_function_arguments): Add "arglogs" param; pass | |
6835 | it to check_function_format. | |
6836 | * c-common.h (check_function_arguments): Add vec<location_t> * | |
6837 | param. | |
6838 | (check_function_format): Likewise. | |
6839 | * c-format.c (struct format_check_context): Add field "arglocs". | |
6840 | (check_function_format): Add param "arglocs"; pass it to | |
6841 | check_format_info. | |
ab20d992 | 6842 | (check_format_info): Add param "arglocs"; use it to initialize |
2f687306 DM |
6843 | new field of format_ctx. |
6844 | (check_format_arg): Pass format_ctx->arglocs to new param of | |
6845 | check_format_info_main. | |
6846 | (class argument_parser): New field "arglocs". | |
6847 | (argument_parser::argument_parser): Add "arglocs_" param and use | |
6848 | it to initialize new field. | |
6849 | (argument_parser::check_argument_type): Pass new arglocs field to | |
6850 | check_format_types. | |
6851 | (check_format_info_main): Add param "arglocs", and use it when | |
6852 | constructing arg_parser. | |
6853 | (check_format_types): Add param "arglocs"; use it if non-NULL when | |
6854 | !EXPR_HAS_LOCATION (cur_param) to get at location information. | |
6855 | ||
00aa1fa2 L |
6856 | 2017-08-18 H.J. Lu <hongjiu.lu@intel.com> |
6857 | ||
6858 | PR c/53037 | |
6859 | * c-attribs.c (handle_warn_if_not_aligned_attribute): New. | |
6860 | (c_common_attribute_table): Add warn_if_not_aligned. | |
6861 | (handle_aligned_attribute): Renamed to ... | |
6862 | (common_handle_aligned_attribute): Remove argument, name, and add | |
6863 | argument, warn_if_not_aligned. Handle warn_if_not_aligned. | |
6864 | (handle_aligned_attribute): New. | |
6865 | * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned. | |
6866 | ||
27be025d MS |
6867 | 2017-08-14 Martin Sebor <msebor@redhat.com> |
6868 | ||
6869 | PR c/81117 | |
6870 | * c-attribs.c (c_common_attribute_table): Add nonstring entry. | |
6871 | (handle_nonstring_attribute): New function. | |
6872 | ||
da67acb9 MS |
6873 | 2017-08-14 Martin Sebor <msebor@redhat.com> |
6874 | ||
6875 | PR c/81117 | |
6876 | * c-format.h (T89_G): New macro. | |
6877 | * c-format.c (local_gcall_ptr_node): New variable. | |
6878 | (init_dynamic_diag_info): Initialize it. | |
6879 | ||
a8b522b4 ML |
6880 | 2017-08-11 Martin Liska <mliska@suse.cz> |
6881 | ||
6882 | * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with | |
6883 | TARGET_SUPPORTS_ALIASES. | |
6884 | ||
32129a17 DM |
6885 | 2017-08-10 David Malcolm <dmalcolm@redhat.com> |
6886 | ||
6887 | * c-common.c (c_parse_error): Add rich_location * param, using it | |
6888 | rather implicitly using input_location. | |
6889 | * c-common.h (c_parse_error): Add rich_location * param. | |
6890 | ||
30af3a2b MP |
6891 | 2017-08-09 Marek Polacek <polacek@redhat.com> |
6892 | ||
6893 | * c-common.c (pointer_int_sum): Use true/false instead of 1/0. | |
6894 | (c_common_truthvalue_conversion): Likewise. | |
6895 | * c-omp.c (c_finish_omp_atomic): Likewise. | |
6896 | * c-common.h (build_binary_op): Update declaration. | |
6897 | ||
314e6352 ML |
6898 | 2017-08-08 Martin Liska <mliska@suse.cz> |
6899 | ||
6900 | * c-ada-spec.c: Include header files. | |
6901 | * c-ubsan.c: Likewise. | |
6902 | * c-warn.c: Likewise. | |
6903 | ||
56b5041c JJ |
6904 | 2017-08-07 Jakub Jelinek <jakub@redhat.com> |
6905 | ||
6906 | PR c/69389 | |
6907 | * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields. | |
6908 | ||
db440138 EB |
6909 | 2017-08-07 Eric Botcazou <ebotcazou@adacore.com> |
6910 | ||
6911 | * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL. | |
6912 | (print_ada_methods): Likewise. | |
6913 | (print_ada_declaration): Likewise. | |
6914 | ||
577eec56 ML |
6915 | 2017-08-07 Martin Liska <mliska@suse.cz> |
6916 | ||
6917 | * array-notation-common.c: Add new includes. | |
6918 | * c-format.c( handle_format_attribute): Canonicalize a format | |
6919 | function name. | |
6920 | * c-lex.c (c_common_has_attribute): Canonicalize name of an | |
6921 | attribute. | |
6922 | * c-pretty-print.c: Add new include. | |
6923 | ||
b854df3c EB |
6924 | 2017-08-05 Eric Botcazou <ebotcazou@adacore.com> |
6925 | ||
6926 | * c-ada-spec.c (has_static_fields): Look only into variables. | |
6927 | (print_constructor): Add TYPE parameter and use it for the name. | |
6928 | (print_destructor): Likewise. | |
6929 | (print_ada_declaration): Adjust to new constructor/destructor names. | |
6930 | Adjust calls to print_constructor and print_destructor. | |
6931 | (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL. | |
6932 | Look only into variables in the final loop. | |
6933 | ||
9f2cb25e EB |
6934 | 2017-08-01 Eric Botcazou <ebotcazou@adacore.com> |
6935 | ||
6936 | * c-ada-spec.c (has_static_fields): Look only into fields. | |
6937 | (dump_generic_ada_node): Small tweak. | |
6938 | (dump_nested_types): Look only into fields. | |
6939 | (print_ada_declaration): Look only into methods. Small tweak. | |
6940 | (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P. | |
6941 | ||
f4bcd9eb EB |
6942 | 2017-08-01 Eric Botcazou <ebotcazou@adacore.com> |
6943 | ||
6944 | * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant. | |
6945 | (dump_ada_function_declaration): Likewise. | |
6946 | (dump_generic_ada_node): Likewise. | |
6947 | (print_ada_declaration): Add support for const-qualified variables. | |
6948 | ||
f34ebeb2 ML |
6949 | 2017-07-31 Martin Liska <mliska@suse.cz> |
6950 | ||
6951 | PR sanitize/81530 | |
6952 | * c-ubsan.c (ubsan_maybe_instrument_array_ref): | |
6953 | Guard condition with flag_sanitize_p also with current_function_decl | |
6954 | non-null equality. | |
6955 | (ubsan_maybe_instrument_reference_or_call): Likewise. | |
6956 | ||
218e5d04 UB |
6957 | 2017-07-30 Uros Bizjak <ubizjak@gmail.com> |
6958 | ||
6959 | * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars. | |
6960 | ||
942047f2 EB |
6961 | 2017-07-29 Eric Botcazou <ebotcazou@adacore.com> |
6962 | ||
6963 | * c-ada-spec.c (dump_generic_ada_node): Take into account signedness | |
6964 | for enumeral types. | |
6965 | (print_ada_declaration): Add missing guard for record types. | |
6966 | ||
a40ff0ae JJ |
6967 | 2017-07-27 Jakub Jelinek <jakub@redhat.com> |
6968 | ||
6969 | PR c/45784 | |
6970 | * c-omp.c (c_finish_omp_for): If the condition is wrapped in | |
6971 | rhs of COMPOUND_EXPR(s), skip them and readd their lhs into | |
6972 | new COMPOUND_EXPRs around the rhs of the comparison. | |
6973 | ||
06bd22f6 MP |
6974 | 2017-07-27 Marek Polacek <polacek@redhat.com> |
6975 | ||
6976 | PR c/81417 | |
6977 | * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print | |
6978 | the types. | |
6979 | ||
036ea399 JJ |
6980 | 2017-07-27 Jakub Jelinek <jakub@redhat.com> |
6981 | ||
6982 | * c-attribs.c (c_common_attribute_table): Add noipa attribute. | |
6983 | (handle_noipa_attribute): New function. | |
6984 | ||
417ca011 TD |
6985 | 2017-07-07 Torsten Duwe <duwe@suse.de> |
6986 | ||
6987 | * c-attribs.c (c_common_attribute_table): Add entry for | |
6988 | "patchable_function_entry". | |
6989 | ||
5aaa8fb4 NS |
6990 | 2017-07-20 Nathan Sidwell <nathan@acm.org> |
6991 | ||
6992 | Remove TYPE_METHODS. | |
6993 | * c-ada-spec.c (is_tagged_type, has_nontrivial_methods, | |
6994 | dump_ada_template, print_ada_methods, | |
6995 | print_ada_declaration): Member fns are on TYPE_FIELDS. | |
6996 | ||
ff22eb12 NS |
6997 | 2017-07-18 Nathan Sidwell <nathan@acm.org> |
6998 | ||
6999 | * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE. | |
7000 | ||
eea77d1f DM |
7001 | 2017-07-14 David Malcolm <dmalcolm@redhat.com> |
7002 | ||
7003 | * c-common.c (try_to_locate_new_include_insertion_point): New | |
7004 | function. | |
7005 | (per_file_includes_t): New typedef. | |
7006 | (added_includes_t): New typedef. | |
7007 | (added_includes): New variable. | |
7008 | (maybe_add_include_fixit): New function. | |
7009 | * c-common.h (maybe_add_include_fixit): New decl. | |
7010 | ||
281ac396 MS |
7011 | 2017-07-10 Martin Sebor <msebor@redhat.com> |
7012 | ||
7013 | PR other/81345 | |
7014 | * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy. | |
7015 | ||
b6f43128 DM |
7016 | 2017-07-06 David Malcolm <dmalcolm@redhat.com> |
7017 | ||
7018 | * c-common.c (selftest::c_family_tests): New. | |
7019 | * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h. | |
7020 | (selftest::c_family_tests): New decl. | |
7021 | ||
efbf55b0 MP |
7022 | 2017-07-04 Marek Polacek <polacek@redhat.com> |
7023 | ||
7024 | PR c/81231 | |
7025 | * c-common.c (sync_resolve_size): Give error for pointers to incomplete | |
7026 | types. | |
7027 | ||
6c86bd88 MP |
7028 | 2017-07-04 Marek Polacek <polacek@redhat.com> |
7029 | ||
7030 | * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling. | |
7031 | ||
17a7218b ML |
7032 | 2017-06-28 Martin Liska <mliska@suse.cz> |
7033 | ||
7034 | PR ipa/81128 | |
7035 | * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias | |
7036 | to a function declaration. | |
7037 | ||
63010089 ML |
7038 | 2017-06-28 Martin Liska <mliska@suse.cz> |
7039 | ||
7040 | PR driver/79659 | |
7041 | * c.opt: Add IntegerRange to various options. | |
7042 | ||
3e2becc4 MP |
7043 | 2017-06-26 Marek Polacek <polacek@redhat.com> |
7044 | ||
7045 | PR c/80116 | |
7046 | * c-common.h (warn_for_multistatement_macros): Declare. | |
7047 | * c-warn.c: Include "c-family/c-indentation.h". | |
7048 | (warn_for_multistatement_macros): New function. | |
7049 | * c.opt (Wmultistatement-macros): New option. | |
7050 | * c-indentation.c (guard_tinfo_to_string): No longer static. | |
7051 | Change the parameter type to "enum rid". Handle RID_SWITCH. | |
7052 | * c-indentation.h (guard_tinfo_to_string): Declare. | |
7053 | ||
2db9b7cd MG |
7054 | 2017-06-23 Marc Glisse <marc.glisse@inria.fr> |
7055 | ||
7056 | * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types. | |
7057 | ||
c3684b7b MS |
7058 | 2017-06-15 Martin Sebor <msebor@redhat.com> |
7059 | ||
7060 | PR c++/80560 | |
7061 | * c.opt (-Wclass-memaccess): New option. | |
7062 | ||
e72c4afd BK |
7063 | 2017-06-14 Boris Kolpackov <boris@codesynthesis.com> |
7064 | ||
7065 | * c-opts.c (c_common_finish): Handle '-' special value to -MF. | |
7066 | ||
8a516588 MP |
7067 | 2017-06-13 Marek Polacek <polacek@redhat.com> |
7068 | ||
7069 | PR objc/80949 | |
7070 | * c-warn.c (do_warn_duplicated_branches): Return if any of the | |
7071 | branches is null. | |
7072 | ||
45b2222a ML |
7073 | 2017-06-13 Martin Liska <mliska@suse.cz> |
7074 | ||
7075 | PR sanitize/78204 | |
7076 | * c-attribs.c (add_no_sanitize_value): New function. | |
7077 | (handle_no_sanitize_attribute): Likewise. | |
7078 | (handle_no_sanitize_address_attribute): Use the function. | |
7079 | (handle_no_sanitize_thread_attribute): New function. | |
7080 | (handle_no_address_safety_analysis_attribute): Use | |
7081 | add_no_sanitize_value. | |
7082 | (handle_no_sanitize_undefined_attribute): Likewise. | |
7083 | * c-common.h: Declare new functions. | |
7084 | * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p. | |
7085 | (ubsan_instrument_shift): Likewise. | |
7086 | (ubsan_instrument_bounds): Likewise. | |
7087 | (ubsan_maybe_instrument_array_ref): Likewise. | |
7088 | (ubsan_maybe_instrument_reference_or_call): Likewise. | |
7089 | ||
a01f151f JM |
7090 | 2017-06-11 Jason Merrill <jason@redhat.com> |
7091 | ||
7092 | * c-ada-spec.c, c-pragma.c: Use id_equal. | |
7093 | ||
3de4ac6d MP |
7094 | 2017-06-04 Marek Polacek <polacek@redhat.com> |
7095 | ||
7096 | PR c/80919 | |
7097 | * c-format.c (matching_type_p): Return false if any of the types | |
7098 | requires structural equality. | |
7099 | ||
2474f48f MS |
7100 | 2017-06-02 Martin Sebor <msebor@redhat.com> |
7101 | ||
7102 | PR c/80892 | |
7103 | * c-warn.c (conversion_warning): Use -Wconversion for integer | |
7104 | conversion and -Wfloat-conversion for floating one. | |
7105 | ||
40ffd95f BE |
7106 | 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de> |
7107 | ||
7108 | * c.opt (Wsizeof-pointer-div): New warning option. | |
7109 | ||
3fa4634c VR |
7110 | 2017-06-01 Volker Reichelt <v.reichelt@netcologne.de> |
7111 | ||
7112 | * c.opt (Wcatch-value): New shortcut for Wcatch-value=1. | |
7113 | (Wcatch-value=1): Enable by -Wall. | |
7114 | ||
f012c8ef DM |
7115 | 2017-05-30 David Malcolm <dmalcolm@redhat.com> |
7116 | ||
7117 | * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to | |
7118 | format_chars. | |
7119 | * c.opt (fdiagnostics-show-template-tree): New option. | |
7120 | (felide-type): New option. | |
7121 | ||
63dbcd13 VR |
7122 | 2017-05-25 Volker Reichelt <v.reichelt@netcologne.de> |
7123 | ||
7124 | * c.opt (Wcatch-value=): New C++ warning flag. | |
7125 | ||
be136b5c NS |
7126 | 2017-05-24 Nathan Sidwell <nathan@acm.org> |
7127 | ||
7128 | * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T | |
7129 | const casts to avoid warning. | |
7130 | ||
3cd211af MS |
7131 | 2017-05-24 Martin Sebor <msebor@redhat.com> |
7132 | ||
7133 | PR c/80731 | |
7134 | * c-common.h (unsafe_conversion_p): Add a function argument. | |
7135 | * c-common.c (unsafe_conversion_p): Same. | |
7136 | Add type names and values to diagnostics. | |
7137 | (scalar_to_vector): Adjust. | |
7138 | * c-warn.c (constant_expression_error): Add a function argument. | |
7139 | Add type names and values to diagnostics. | |
7140 | (conversion_warning): Add a function argument. | |
7141 | Add type names and values to diagnostics. | |
7142 | (warnings_for_convert_and_check): Same. | |
7143 | ||
1ff7be5a JM |
7144 | 2017-05-19 Jason Merrill <jason@redhat.com> |
7145 | ||
7146 | * c-warn.c (match_case_to_enum_1): Don't warn about enums with no | |
7147 | enumerators. | |
7148 | ||
ff502317 BE |
7149 | 2017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de> |
7150 | ||
7151 | * c-format.c (locus): Move out of function scope, | |
7152 | add GTY attribute. | |
7153 | ||
2a8a8d7b NS |
7154 | 2017-05-19 Nathan Sidwell <nathan@acm.org> |
7155 | ||
7156 | * c-opts.c (class_dump_file, class_dump_flags): Delete. | |
7157 | (c_common_parse_file): Remove class dump handling. | |
7158 | (get_dump_info): Likewise. | |
7159 | ||
39aac208 RB |
7160 | 2017-05-19 Richard Biener <rguenther@suse.de> |
7161 | ||
7162 | PR c++/80593 | |
7163 | * c-warn.c (strict_aliasing_warning): Do not warn for accesses | |
7164 | to alias-set zero memory. | |
7165 | ||
6ecd2339 BE |
7166 | 2017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de> |
7167 | ||
7168 | * c-format.c (local_tree_type_node): Add GTY attribute. | |
7169 | ||
6574d78e MP |
7170 | 2017-05-18 Marek Polacek <polacek@redhat.com> |
7171 | ||
7172 | * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0. | |
7173 | (c_common_fixed_point_type_for_size): Likewise. | |
7174 | (c_common_type_for_mode): Likewise. | |
7175 | (shorten_compare): Likewise. | |
7176 | (c_promoting_integer_type_p): Use false/true instead of 0/1. | |
7177 | * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0. | |
7178 | ||
e3455240 MP |
7179 | 2017-05-18 Marek Polacek <polacek@redhat.com> |
7180 | ||
7181 | * c-common.c (self_promoting_args_p): Change the return type to bool. | |
7182 | Use false/true instead of 0/1. | |
7183 | * c-common.h (self_promoting_args_p): Update. | |
7184 | ||
3fa8871b MP |
7185 | 2017-05-17 Marek Polacek <polacek@redhat.com> |
7186 | ||
7187 | * c-common.c: Use NULL_TREE instead of 0 where appropriate. | |
7188 | * c-warn.c: Likewise. | |
7189 | ||
b42cc3ca VV |
7190 | 2017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com> |
7191 | ||
7192 | Implement new C++ intrinsics __is_assignable and __is_constructible. | |
7193 | * c-common.c (__is_assignable, __is_constructible): New. | |
7194 | * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise. | |
7195 | ||
1a817418 ML |
7196 | 2017-05-17 Martin Liska <mliska@suse.cz> |
7197 | ||
7198 | * c-common.h: Introduce dump_flags_t type and | |
7199 | use it instead of int type. | |
7200 | * c-gimplify.c (c_genericize): Likewise. | |
7201 | * c-opts.c: Likewise. | |
7202 | ||
b2fa0a8b MP |
7203 | 2017-05-17 Marek Polacek <polacek@redhat.com> |
7204 | ||
7205 | * c-common.c (c_save_expr): Remove. | |
7206 | (c_common_truthvalue_conversion): Remove a call to c_save_expr. | |
7207 | * c-common.h (c_save_expr): Remove declaration. | |
7208 | ||
31c2d57d VR |
7209 | 2017-05-09 Volker Reichelt <v.reichelt@netcologne.de> |
7210 | ||
7211 | PR c/35441 | |
7212 | * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR, | |
7213 | MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR. | |
7214 | (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR. | |
7215 | (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR, | |
7216 | RDIV_EXPR. | |
7217 | (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR. | |
7218 | ||
684f84de MP |
7219 | 2017-05-09 Marek Polacek <polacek@redhat.com> |
7220 | ||
7221 | PR c/80525 | |
7222 | * c-warn.c (unwrap_c_maybe_const): New. | |
7223 | (warn_logical_operator): Call it. | |
7224 | ||
641da50a NS |
7225 | 2017-05-09 Nathan Sidwell <nathan@acm.org> |
7226 | ||
7227 | * c-common.c (c_register_builtin_type): Use pushdecl lang_hook. | |
7228 | * c-common.h (pushdecl_top_level, pushdecl): Don't declare here. | |
7229 | ||
631238ac MS |
7230 | 2017-05-08 Martin Sebor <msebor@redhat.com> |
7231 | ||
7232 | PR translation/80280 | |
7233 | * c-format.h (struct format_flag_spec): Add new member. | |
7234 | (T89_T): New macro. | |
7235 | * c-format.c (local_tree_type_node): New global. | |
7236 | (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data. | |
7237 | (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto. | |
7238 | (strfmon_flag_specs): Likewise. | |
7239 | (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers | |
7240 | with distinct quoting properties. | |
7241 | (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same. | |
7242 | (flag_chars_t::validate): Add argument and handle bad quoting. | |
7243 | (check_format_info_main): Handle quoting problems. | |
7244 | (init_dynamic_diag_info): Simplify. | |
7245 | ||
49f0c04c JM |
7246 | 2017-05-08 Jason Merrill <jason@redhat.com> |
7247 | ||
7248 | * c-opts.c (c_common_post_options): Update defaults for | |
7249 | flag_abi_version and flag_abi_compat_version. | |
7250 | ||
56d35585 DM |
7251 | 2017-05-05 David Malcolm <dmalcolm@redhat.com> |
7252 | ||
7253 | * c-common.c (c_cpp_error): Replace report_diagnostic | |
7254 | with diagnostic_report_diagnostic. | |
7255 | ||
0f2c4a8f MS |
7256 | 2017-05-04 Martin Sebor <msebor@redhat.com> |
7257 | ||
7258 | PR translation/80280 | |
7259 | * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive. | |
7260 | (handle_weakref_attribute): Same. | |
7261 | ||
6fe63fb4 NS |
7262 | 2017-05-03 Nathan Sidwell <nathan@acm.org> |
7263 | ||
7264 | Canonicalize canonical type hashing | |
7265 | * c-common.c (complete_array_type): Use type_hash_canon. | |
7266 | ||
815d9cc6 XR |
7267 | 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn> |
7268 | ||
92a285c1 | 7269 | PR c++/80038 |
815d9cc6 XR |
7270 | * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove |
7271 | prototype. | |
7272 | (cilk_install_body_pedigree_operations): Likewise. | |
7273 | * cilk.c (cilk_set_spawn_marker): Mark functions that should be | |
7274 | detatched. | |
7275 | (cilk_gimplify_call_params_in_spawned_fn): Remove. | |
7276 | (cilk_install_body_pedigree_operations): Likewise. | |
7277 | (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR | |
7278 | unwrapping. | |
7279 | ||
f8a36447 JJ |
7280 | 2017-04-27 Jakub Jelinek <jakub@redhat.com> |
7281 | ||
7282 | PR c++/80534 | |
7283 | * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE | |
7284 | flag on non-aggregate element types. | |
7285 | ||
7c145456 BE |
7286 | 2017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de> |
7287 | ||
7288 | * c-common.c (c_type_hasher, type_hash_table): Remove. | |
7289 | (c_common_get_alias_set): Remove unreachable code. | |
7290 | * c-opts.c (c_common_post_options): Make sure cc1 takes only one file. | |
7291 | ||
c3cbcd45 VR |
7292 | 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de> |
7293 | ||
7294 | * c.opt (Wextra-semi): New C++ warning flag. | |
7295 | ||
8a59d466 JJ |
7296 | 2017-04-20 Jakub Jelinek <jakub@redhat.com> |
7297 | ||
7298 | PR middle-end/80423 | |
7299 | * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE. | |
7300 | ||
8487c9a5 JJ |
7301 | 2017-04-18 Jakub Jelinek <jakub@redhat.com> |
7302 | ||
7303 | PR middle-end/79788 | |
7304 | PR middle-end/80375 | |
7305 | * c-common.c (c_common_type_for_mode): Don't handle | |
7306 | widest_*_literal_type_node here. | |
7307 | c_common_signed_or_unsigned_type): Likewise. | |
7308 | (c_common_nodes_and_builtins): Set widest_*_literal_type_node | |
7309 | to *intTI_type_node or *intDI_type_node depending on whether | |
7310 | TImode is supported by the target or not. | |
7311 | ||
3ee0fb02 ML |
7312 | 2017-04-10 Martin Liska <mliska@suse.cz> |
7313 | ||
7314 | PR sanitizer/80350 | |
7315 | * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before | |
7316 | doing an UBSAN check. | |
7317 | ||
5764ee3c JW |
7318 | 2017-04-03 Jonathan Wakely <jwakely@redhat.com> |
7319 | ||
7320 | * c-warn.c (do_warn_double_promotion): Fix typo in comment. | |
7321 | ||
6f3af356 JJ |
7322 | 2017-03-31 Jakub Jelinek <jakub@redhat.com> |
7323 | ||
7324 | PR c++/79572 | |
7325 | * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to | |
7326 | tree *. | |
7327 | * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle | |
7328 | not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with | |
7329 | REFERENCE_TYPE. | |
7330 | ||
f6a7a9d5 DM |
7331 | 2017-03-31 David Malcolm <dmalcolm@redhat.com> |
7332 | ||
7333 | PR documentation/78732 | |
7334 | * c.opt (Wendif-labels): Fix description to refer to | |
7335 | #else rather than #elif. | |
7336 | ||
af88f557 JJ |
7337 | 2017-03-31 Jakub Jelinek <jakub@redhat.com> |
7338 | ||
7339 | PR libstdc++/80251 | |
7340 | * c-common.h (enum rid): Add RID_IS_AGGREGATE. | |
7341 | * c-common.c (c_common_reswords): Add __is_aggregate trait. | |
7342 | ||
a9e4a1a5 JJ |
7343 | 2017-03-27 Jakub Jelinek <jakub@redhat.com> |
7344 | ||
7345 | PR middle-end/80162 | |
7346 | * c-common.c (c_common_mark_addressable_vec): Don't set | |
7347 | TREE_ADDRESSABLE on DECL_HARD_REGISTER. | |
7348 | ||
3f01b620 MS |
7349 | 2017-03-21 Martin Sebor <msebor@redhat.com> |
7350 | ||
7351 | PR c++/79548 | |
7352 | * c-common.c (set_underlying_type): Mark type used only when | |
7353 | original del is declared unused. | |
7354 | ||
2f6f187a DM |
7355 | 2017-03-10 David Malcolm <dmalcolm@redhat.com> |
7356 | ||
7357 | PR translation/79848 | |
7358 | * c-format.c (check_format_string): Simplify uses of "%<%s%>" to | |
7359 | "%qs". | |
7360 | ||
a02fa805 DM |
7361 | 2017-03-10 David Malcolm <dmalcolm@redhat.com> |
7362 | ||
7363 | PR c/79921 | |
7364 | * c-indentation.c (warn_for_misleading_indentation): Remove parens | |
7365 | from inform's message, so that xgettext can locate it. | |
7366 | ||
822a132c MP |
7367 | 2017-03-09 Marek Polacek <polacek@redhat.com> |
7368 | ||
7369 | PR c++/79962 | |
7370 | PR c++/79984 | |
7371 | * c-attribs.c (handle_nonnull_attribute): Save the result of default | |
7372 | conversion to the attribute list. | |
7373 | ||
bba81f1c ML |
7374 | 2017-03-09 Martin Liska <mliska@suse.cz> |
7375 | ||
7376 | * c-ada-spec.c (macro_length): Increment value instead of a pointer. | |
7377 | ||
108154ff JM |
7378 | 2017-03-03 Jason Merrill <jason@redhat.com> |
7379 | ||
7380 | * c.opt (Wnoexcept-type): New. | |
7381 | ||
eb0e7c34 RB |
7382 | 2017-03-02 Richard Biener <rguenther@suse.de> |
7383 | ||
7384 | PR c/79756 | |
7385 | * c-common.c (c_common_mark_addressable_vec): Look through | |
7386 | C_MAYBE_CONST_EXPR. | |
7387 | ||
9453ba0a ML |
7388 | 2017-02-28 Martin Liska <mliska@suse.cz> |
7389 | ||
7390 | * c.opt: Replace space with tabular for options of <number> | |
7391 | type. | |
7392 | ||
6a825afe ML |
7393 | 2017-02-28 Martin Liska <mliska@suse.cz> |
7394 | ||
7395 | * c.opt: Fix --help=option -Q for options which are of | |
7396 | an enum type. | |
7397 | ||
4227c9ad JJ |
7398 | 2017-02-24 Jakub Jelinek <jakub@redhat.com> |
7399 | ||
7400 | PR c++/79588 | |
7401 | * c-common.c (check_function_restrict): New function. | |
7402 | (check_function_arguments): Add FNDECL argument. Call | |
7403 | check_function_restrict if -Wrestrict. | |
7404 | * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY | |
7405 | and NARGS. Use auto_vec for ARG_POSITIONS, simplify. | |
7406 | * c-common.h (check_function_arguments): Add FNDECL argument. | |
7407 | (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS. | |
7408 | ||
59909673 EB |
7409 | 2017-02-24 Eric Botcazou <ebotcazou@adacore.com> |
7410 | ||
7411 | * c-ada-spec.c (dump_ada_function_declaration): Add comment about the | |
7412 | treatment of parameters with pointer-to-tagged type and tidy up. | |
7413 | (print_ada_methods): Remove the special treatment of C++ static member | |
7414 | functions. | |
7415 | ||
54dcd526 ML |
7416 | 2017-02-22 Martin Liska <mliska@suse.cz> |
7417 | ||
7418 | * c.opt: Replace inequality signs with square brackets | |
7419 | for -Wnornalized. | |
7420 | ||
00bc9de3 JJ |
7421 | 2017-02-21 Jakub Jelinek <jakub@redhat.com> |
7422 | ||
7423 | PR c++/79641 | |
7424 | * c-attribs.c (handle_mode_attribute): Use build_qualified_type to | |
7425 | preserve quals. | |
7426 | ||
97fcf744 JM |
7427 | 2017-02-17 Joseph Myers <joseph@codesourcery.com> |
7428 | ||
7429 | * c-cppbuiltin.c (builtin_define_float_constants): Define | |
7430 | __DECIMAL_DIG__ to the value for long double. | |
7431 | ||
c7545f1c MP |
7432 | 2017-02-15 Marek Polacek <polacek@redhat.com> |
7433 | ||
7434 | PR c/79515 | |
7435 | * c-warn.c (do_warn_double_promotion): Don't warn if an invalid | |
7436 | conversion has occured. | |
7437 | ||
c2e84327 DM |
7438 | 2017-01-24 David Malcolm <dmalcolm@redhat.com> |
7439 | ||
7440 | * c-common.c (c_common_reswords): Add "__RTL". | |
7441 | * c-common.h (enum rid): Add RID_RTL. | |
7442 | ||
2ebd93e1 MP |
7443 | 2017-01-20 Marek Polacek <polacek@redhat.com> |
7444 | ||
7445 | PR c/64279 | |
7446 | * c-common.h (do_warn_duplicated_branches_r): Declare. | |
7447 | * c-gimplify.c (c_genericize): Walk the function tree calling | |
7448 | do_warn_duplicated_branches_r. | |
7449 | * c-warn.c (expr_from_macro_expansion_r): New. | |
7450 | (do_warn_duplicated_branches): New. | |
7451 | (do_warn_duplicated_branches_r): New. | |
7452 | * c.opt (Wduplicated-branches): New option. | |
7453 | ||
0d80ab91 DM |
7454 | 2017-01-17 David Malcolm <dmalcolm@redhat.com> |
7455 | ||
7456 | PR c++/71497 | |
7457 | * c-indentation.c (warn_for_misleading_indentation): Use the past | |
7458 | subjunctive in the note. | |
7459 | ||
7f991c36 AH |
7460 | 2017-01-17 Aldy Hernandez <aldyh@redhat.com> |
7461 | ||
7462 | PR c/79116 | |
7463 | * array-notation-common.c (cilkplus_extract_an_triplets): Convert | |
7464 | start type to integer_type. | |
7465 | ||
1c70261c JJ |
7466 | 2017-01-16 Jakub Jelinek <jakub@redhat.com> |
7467 | ||
7468 | PR driver/49726 | |
7469 | * c.opt (gen-decls): Add Driver flag. | |
7470 | ||
1ddca3f3 PC |
7471 | 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com> |
7472 | ||
7473 | Revert: | |
7474 | 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com> | |
7475 | ||
7476 | PR c++/71737 | |
7477 | * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE. | |
7478 | ||
7d2f3f1d PC |
7479 | 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com> |
7480 | ||
7481 | PR c++/71737 | |
7482 | * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE. | |
7483 | ||
bce6f760 MS |
7484 | 2017-01-12 Martin Sebor <msebor@redhat.com> |
7485 | ||
7486 | (-Wformat-overflow): ...to this. | |
7487 | ||
bf5fbf46 MS |
7488 | 2017-01-11 Martin Sebor <msebor@redhat.com> |
7489 | ||
7490 | PR c/78768 | |
7491 | * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation): | |
7492 | Also enable for LTO. | |
7493 | ||
e363df3f JM |
7494 | 2017-01-10 Jason Merrill <jason@redhat.com> |
7495 | ||
7496 | Implement P0195R2, C++17 variadic using. | |
7497 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using. | |
7498 | ||
bd2c6270 JJ |
7499 | 2017-01-09 Jakub Jelinek <jakub@redhat.com> |
7500 | ||
7501 | PR translation/79019 | |
7502 | PR translation/79020 | |
7503 | * c.opt (Wnormalized=): Fix typo in description. | |
7504 | ||
efcc8d38 MS |
7505 | 2017-01-08 Martin Sebor <msebor@redhat.com> |
7506 | ||
7507 | PR middle-end/77708 | |
7508 | * c.opt (-Wformat-truncation): New option. | |
7509 | ||
ab20d992 | 7510 | 2017-01-06 Alexandre Oliva <aoliva@redhat.com> |
435f3f7a AO |
7511 | |
7512 | * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit | |
7513 | value to unsigned short to fit in 4 hex digits without | |
7514 | warnings. | |
7515 | ||
4e89adf9 EB |
7516 | 2017-01-05 Eric Botcazou <ebotcazou@adacore.com> |
7517 | ||
7518 | * c.opt (fsso-struct): Add 'native' value. | |
7519 | ||
cd445b54 ML |
7520 | 2017-01-05 Martin Liska <mliska@suse.cz> |
7521 | ||
7522 | PR pch/78970 | |
7523 | * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled | |
7524 | header. | |
7525 | ||
a9342885 MP |
7526 | 2017-01-04 Marek Polacek <polacek@redhat.com> |
7527 | ||
7528 | PR c++/64767 | |
7529 | * c.opt (Wpointer-compare): New option. | |
7530 | ||
fc73e60c JJ |
7531 | 2017-01-04 Jakub Jelinek <jakub@redhat.com> |
7532 | ||
7533 | PR driver/78957 | |
7534 | * c.opt (fsso-struct=): Add RejectNegative. | |
7535 | ||
cbe34bb5 JJ |
7536 | 2017-01-01 Jakub Jelinek <jakub@redhat.com> |
7537 | ||
7538 | Update copyright years. | |
7539 | ||
d4a6c0ea ML |
7540 | 2016-12-29 Martin Liska <mliska@suse.cz> |
7541 | ||
7542 | PR c/78933 | |
7543 | * c.opt (strong-eval-order): Add RejectNegative keyword. | |
7544 | ||
67a5ad7c JM |
7545 | 2016-12-22 Jason Merrill <jason@redhat.com> |
7546 | ||
7547 | Implement P0522R0, matching of template template arguments. | |
7548 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
7549 | __cpp_template_template_args. | |
7550 | ||
0dba7960 JJ |
7551 | 2016-12-21 Jakub Jelinek <jakub@redhat.com> |
7552 | ||
7553 | PR bootstrap/78817 | |
7554 | * c-common.c (struct nonnull_arg_ctx): New type. | |
7555 | (check_function_nonnull): Return bool instead of void. Use | |
7556 | nonnull_arg_ctx as context rather than just location_t. | |
7557 | (check_nonnull_arg): Adjust for the new context type, set | |
7558 | warned_p to true if a warning has been diagnosed. | |
7559 | (check_function_arguments): Return bool instead of void. | |
7560 | * c-common.h (check_function_arguments): Adjust prototype. | |
7561 | ||
31bfc9b9 JM |
7562 | 2016-12-21 Jason Merrill <jason@redhat.com> |
7563 | ||
7564 | * c.opt (-fnew-ttp-matching): New flag. | |
7565 | * c-opts.c (c_common_post_options): Default on if -std=c++1z. | |
7566 | ||
629b3d75 MJ |
7567 | 2016-12-14 Martin Jambor <mjambor@suse.cz> |
7568 | ||
7569 | * c-omp.c: Include omp-general.h instead of omp-low.h. | |
7570 | (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new | |
7571 | name. | |
7572 | ||
474da67e MS |
7573 | 2016-12-14 Martin Sebor <msebor@redhat.com> |
7574 | ||
7575 | PR c/17308 | |
7576 | * c-common.c (check_nonnull_arg): Disable when optimization | |
7577 | is enabled. | |
7578 | ||
fe366b87 MP |
7579 | 2016-12-12 Marek Polacek <polacek@redhat.com> |
7580 | ||
7581 | PR c++/78647 | |
7582 | * c-common.c (attribute_fallthrough_p): Return false for | |
7583 | error_mark_node. | |
7584 | ||
8bd9f164 MS |
7585 | 2016-12-08 Martin Sebor <msebor@redhat.com> |
7586 | ||
7587 | PR c/78284 | |
7588 | * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options. | |
7589 | ||
060162e0 MS |
7590 | 2016-12-08 Martin Sebor <msebor@redhat.com> |
7591 | ||
7592 | PR c/78165 | |
92a285c1 ML |
7593 | * c-pretty-print (pp_c_integer_constant): Avoid formatting type |
7594 | suffix. | |
060162e0 | 7595 | |
ee92e7ba MS |
7596 | 2016-12-07 Martin Sebor <msebor@redhat.com> |
7597 | ||
7598 | PR c/53562 | |
7599 | PR middle-end/77784 | |
7600 | PR middle-end/78149 | |
7601 | PR middle-end/78138 | |
7602 | * c.opt (-Wstringop-overflow): New option. | |
7603 | ||
84b0769e MO |
7604 | 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com> |
7605 | ||
7606 | * c-attribs.c (asan odr indicator): New attribute. | |
7607 | (handle_asan_odr_indicator_attribute): New function. | |
7608 | ||
7fa6a965 PK |
7609 | 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
7610 | ||
7611 | * c-common.c (c_common_nodes_and_builtins): Remove initialization of | |
7612 | ptrdiff_type_node; | |
7613 | ||
56d8ffc1 JG |
7614 | 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com> |
7615 | ||
7616 | * c-common.c (excess_precision_mode_join): New. | |
7617 | (c_ts18661_flt_eval_method): New. | |
7618 | (c_c11_flt_eval_method): Likewise. | |
7619 | (c_flt_eval_method): Likewise. | |
7620 | * c-common.h (excess_precision_mode_join): New. | |
7621 | (c_flt_eval_method): Likewise. | |
7622 | * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New. | |
7623 | (cpp_iec_559_value): Call it. | |
7624 | (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__, | |
7625 | call c_flt_eval_method to set __FLT_EVAL_METHOD__ and | |
7626 | __FLT_EVAL_METHOD_TS_18661_3__. | |
7627 | ||
04f0fcf7 JG |
7628 | 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com> |
7629 | ||
7630 | * c-opts.c (c_common_post_options): Add logic to handle the default | |
7631 | case for -fpermitted-flt-eval-methods. | |
7632 | ||
fb2675cb PB |
7633 | 2016-11-23 Paolo Bonzini <bonzini@gnu.org> |
7634 | ||
7635 | * c.opt (Wexpansion-to-defined): New. | |
7636 | ||
ec1c5694 JJ |
7637 | 2016-11-23 Jakub Jelinek <jakub@redhat.com> |
7638 | ||
7639 | PR target/78451 | |
7640 | * c-pragma.c (handle_pragma_target): Don't replace | |
7641 | current_target_pragma, but chainon the new args to the current one. | |
7642 | ||
730c9e75 NS |
7643 | 2016-11-22 Nathan Sidwell <nathan@acm.org> |
7644 | ||
7645 | * array-notation-common.c (cilkplus_extract_an_trplets): Fix | |
cacd29be | 7646 | indentation and formatting. |
730c9e75 | 7647 | |
89990732 MS |
7648 | 2016-11-21 Martin Sebor <msebor@redhat.com> |
7649 | ||
7650 | * c.opt (-fprintf-return-value): Enable by default. | |
7651 | ||
48330c93 BE |
7652 | 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de> |
7653 | ||
7654 | PR c++/71973 | |
7655 | * c.opt (-Wbuiltin-declaration-mismatch): New warning. | |
7656 | * c-common.c (c_common_nodes_and_builtins): Initialize | |
7657 | const_tm_ptr_type_node. | |
7658 | ||
0d939c95 MP |
7659 | 2016-11-16 Marek Polacek <polacek@redhat.com> |
7660 | ||
7661 | PR c/78285 | |
7662 | * c-common.c (c_add_case_label): Turn error_at calls into inform. | |
7663 | ||
8e745a17 JJ |
7664 | 2016-11-14 Jakub Jelinek <jakub@redhat.com> |
7665 | ||
7666 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings. | |
7667 | ||
1ee62b92 | 7668 | 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com> |
8e745a17 JJ |
7669 | Richard Biener <rguenther@suse.de> |
7670 | ||
7671 | * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types. | |
7672 | * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI. | |
7673 | * c.opt (fgimple): New option. | |
1ee62b92 | 7674 | |
22b15758 UB |
7675 | 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
7676 | ||
7677 | PR c/35503 | |
7678 | * c-common.h (warn_for_restrict): Declare. | |
7679 | * c-warn.c: Include gcc-rich-location.h. | |
7680 | (warn_for_restrict): New function. | |
7681 | * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier. | |
7682 | (gcc_cdiag_char_table): Likewise. | |
7683 | (gcc_cxxdiag_char_table): Likewise. | |
7684 | * c.opt (Wrestrict): New option. | |
7685 | ||
4be719cd EB |
7686 | 2016-11-13 Eric Botcazou <ebotcazou@adacore.com> |
7687 | ||
7688 | * c-ada-spec.c (print_ada_declaration): For typedef declarations, look | |
7689 | for nested types only if the type is a record or union and dump SLOC. | |
7690 | ||
4a826ca6 JM |
7691 | 2016-11-09 Jason Merrill <jason@redhat.com> |
7692 | ||
7693 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto. | |
7694 | ||
2e955d50 JJ |
7695 | 2016-11-09 Jakub Jelinek <jakub@redhat.com> |
7696 | ||
7697 | * c-ubsan.c (ubsan_instrument_shift): Handle split | |
7698 | -fsanitize=shift-base and -fsanitize=shift-exponent. | |
7699 | ||
51dc6603 JM |
7700 | 2016-11-07 Jason Merrill <jason@redhat.com> |
7701 | ||
7702 | * c.opt (Wc++1z-compat): New. | |
7703 | * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type. | |
7704 | ||
6dc4a604 ML |
7705 | 2016-11-07 Martin Liska <mliska@suse.cz> |
7706 | ||
7707 | * c-warn.c (warn_for_unused_label): Save all labels used | |
7708 | in goto or in &label. | |
7709 | ||
b302001e JM |
7710 | 2016-11-03 Jason Merrill <jason@redhat.com> |
7711 | ||
7712 | * c-cppbuiltin.c (c_cpp_builtins): Correct | |
7713 | __cpp_inheriting_constructors. | |
7714 | ||
31f7f784 JM |
7715 | 2016-11-01 Jason Merrill <jason@redhat.com> |
7716 | ||
2bc78e3c JM |
7717 | * c-cppbuiltin.c (c_cpp_builtins): Update |
7718 | __cpp_inheriting_constructors. | |
7719 | ||
31f7f784 JM |
7720 | * c.opt (-fnew-inheriting-ctors): New. |
7721 | * c-opts.c: Default to on for ABI 11+. | |
7722 | ||
dcb466ec JJ |
7723 | 2016-10-31 Jakub Jelinek <jakub@redhat.com> |
7724 | ||
7725 | PR c++/77948 | |
7726 | * c.opt (fext-numeric-literals): Add Var and Init. | |
7727 | * c-opts.c (c_common_handle_option): Don't clear | |
7728 | cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}. | |
7729 | (c_common_post_options): Clear it here if not set | |
7730 | explicitly. | |
7731 | ||
52e1b91e AH |
7732 | 2016-10-28 Aldy Hernandez <aldyh@redhat.com> |
7733 | ||
7734 | PR debug/77773 | |
7735 | * c-pretty-print.c (simple_type_specifier): Do not dereference `t' | |
7736 | if NULL. | |
7737 | ||
e16f1cc7 JJ |
7738 | 2016-10-25 Jakub Jelinek <jakub@redhat.com> |
7739 | ||
7740 | * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER. | |
7741 | * c-common.c (c_common_reswords): Add __builtin_launder. | |
7742 | ||
f8348061 BE |
7743 | 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de> |
7744 | ||
7745 | * c-common.c (c_common_truthvalue_conversion): Warn for | |
7746 | multiplications in boolean context. Fix the quoting of '<<' and '<' | |
7747 | in the shift warning. | |
7748 | ||
eff89e01 BE |
7749 | 2016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de> |
7750 | ||
7751 | * c-common.c (c_common_truthvalue_conversion): Fix the comment. | |
7752 | ||
24bc7bf4 JM |
7753 | 2016-10-20 Jason Merrill <jason@redhat.com> |
7754 | ||
7755 | * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value. | |
7756 | ||
4c712374 BE |
7757 | 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de> |
7758 | ||
7759 | * c-common.c (c_common_truthvalue_conversion): Warn only for signed | |
7760 | integer shift ops in boolean context. | |
7761 | ||
7762 | 2016-10-18 Aldy Hernandez <aldyh@redhat.com> | |
adc577c5 AH |
7763 | |
7764 | * c.opt (Walloca): New. | |
7765 | (Walloca-larger-than=): New. | |
7766 | (Wvla-larger-than=): New. | |
7767 | ||
8fa18c06 MP |
7768 | 2016-10-17 Marek Polacek <polacek@redhat.com> |
7769 | ||
7770 | * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names. | |
7771 | Return immediately when finding a match. | |
7772 | (warn_tautological_cmp): Remove a boolean variable that is no longer | |
7773 | needed. | |
7774 | ||
b12b1915 MP |
7775 | 2016-10-17 Marek Polacek <polacek@redhat.com> |
7776 | ||
7777 | * c-attribs.c: New file. | |
7778 | * c-common.c: Move attributes handling to c-attribs.c. | |
7779 | (get_nonnull_operand): No longer static. | |
7780 | * c-common.h: Move the declarations from c-attribs.c to its own section. | |
7781 | ||
2045acd9 JM |
7782 | 2016-10-14 Jason Merrill <jason@redhat.com> |
7783 | ||
7784 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases | |
7785 | and __cpp_deduction_guides. | |
7786 | ||
14a2c9aa JM |
7787 | 2016-10-13 Jason Merrill <jason@redhat.com> |
7788 | ||
7789 | * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables. | |
7790 | ||
4d0cdd0c TP |
7791 | 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com> |
7792 | ||
7793 | * c-cppbuiltin.c: Include memmodel.h. | |
7794 | * c-opts.c: Likewise. | |
7795 | * c-pragma.c: Likewise. | |
7796 | * c-warn.c: Likewise. | |
7797 | ||
70f6d5e1 JJ |
7798 | 2016-10-12 Jakub Jelinek <jakub@redhat.com> |
7799 | ||
7800 | * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option. | |
7801 | (Wimplicit-fallthrough=): Enable for these languages by -Wextra. | |
7802 | * c-opts.c (sanitize_cpp_opts): Initialize | |
7803 | cpp_opts->cpp_warn_implicit_fallthrough. | |
7804 | ||
78f61294 MP |
7805 | 2016-10-11 Marek Polacek <polacek@redhat.com> |
7806 | ||
7807 | * c-common.c (warning_candidate_p): Change the return type to bool | |
7808 | and return true/false instead of 1/0. | |
7809 | (vector_mode_valid_p): Likewise. | |
7810 | ||
038b5cc0 MP |
7811 | 2016-10-11 Marek Polacek <polacek@redhat.com> |
7812 | ||
7813 | * c-common.c (fold_for_warn): No longer static. | |
7814 | (bool_promoted_to_int_p): Likewise. | |
7815 | (c_common_get_narrower): Likewise. | |
7816 | (constant_expression_warning): Move to c-warn.c. | |
7817 | (constant_expression_error): Likewise. | |
7818 | (overflow_warning): Likewise. | |
7819 | (warn_logical_operator): Likewise. | |
7820 | (find_array_ref_with_const_idx_r): Likewise. | |
7821 | (warn_tautological_cmp): Likewise. | |
7822 | (expr_has_boolean_operands_p): Likewise. | |
7823 | (warn_logical_not_parentheses): Likewise. | |
7824 | (warn_if_unused_value): Likewise. | |
7825 | (strict_aliasing_warning): Likewise. | |
7826 | (sizeof_pointer_memaccess_warning): Likewise. | |
7827 | (check_main_parameter_types): Likewise. | |
7828 | (conversion_warning): Likewise. | |
7829 | (warnings_for_convert_and_check): Likewise. | |
7830 | (match_case_to_enum_1): Likewise. | |
7831 | (match_case_to_enum): Likewise. | |
7832 | (c_do_switch_warnings): Likewise. | |
7833 | (warn_for_omitted_condop): Likewise. | |
7834 | (readonly_error): Likewise. | |
7835 | (lvalue_error): Likewise. | |
7836 | (invalid_indirection_error): Likewise. | |
7837 | (warn_array_subscript_with_type_char): Likewise. | |
7838 | (warn_about_parentheses): Likewise. | |
7839 | (warn_for_unused_label): Likewise. | |
7840 | (warn_for_div_by_zero): Likewise. | |
7841 | (warn_for_memset): Likewise. | |
7842 | (warn_for_sign_compare): Likewise. | |
7843 | (do_warn_double_promotion): Likewise. | |
7844 | (do_warn_unused_parameter): Likewise. | |
7845 | (record_locally_defined_typedef): Likewise. | |
7846 | (maybe_record_typedef_use): Likewise. | |
7847 | (maybe_warn_unused_local_typedefs): Likewise. | |
7848 | (maybe_warn_bool_compare): Likewise. | |
7849 | (maybe_warn_shift_overflow): Likewise. | |
7850 | (warn_duplicated_cond_add_or_warn): Likewise. | |
7851 | (diagnose_mismatched_attributes): Likewise. | |
7852 | * c-common.h: Move the declarations from c-warn.c to its own section. | |
7853 | * c-warn.c: New file. | |
7854 | ||
627be19f JM |
7855 | 2016-10-08 Jason Merrill <jason@redhat.com> |
7856 | ||
7857 | * c-common.c (c_common_truthvalue_conversion): Don't distribute | |
7858 | into COND_EXPR in C++. | |
7859 | ||
7bad794a JJ |
7860 | 2016-10-08 Jakub Jelinek <jakub@redhat.com> |
7861 | ||
7862 | * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT | |
7863 | token with PREV_FALLTHROUGH, skip all following CPP_PADDING and | |
7864 | CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards. | |
7865 | ||
be845b04 JJ |
7866 | 2016-10-07 Jakub Jelinek <jakub@redhat.com> |
7867 | ||
7868 | Implement LWG2296 helper intrinsic | |
7869 | * c-common.h (enum rid): Add RID_ADDRESSOF. | |
7870 | * c-common.c (c_common_reswords): Add __builtin_addressof. | |
7871 | ||
c09c4992 BE |
7872 | 2016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de> |
7873 | ||
7874 | PR c++/77700 | |
7875 | * c-common.c (c_common_truthvalue_conversion): Warn also for | |
7876 | suspicious enum values in boolean context. | |
7877 | ||
342cfb3e JJ |
7878 | 2016-10-06 Jakub Jelinek <jakub@redhat.com> |
7879 | ||
7880 | Implement P0258R2 - helper for C++17 | |
7881 | std::has_unique_object_representations trait | |
7882 | * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS. | |
7883 | * c-common.c (c_common_reswords): Add | |
7884 | __has_unique_object_representations. | |
7885 | ||
2e69f143 JJ |
7886 | 2016-10-05 Jakub Jelinek <jakub@redhat.com> |
7887 | ||
7888 | PR sanitizer/66343 | |
7889 | * c-ubsan.c (ubsan_instrument_return): Don't call | |
7890 | initialize_sanitizer_builtins here. | |
7891 | ||
700fff34 BE |
7892 | 2016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de> |
7893 | ||
7894 | * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious | |
7895 | conditional expression in boolean context when only one arm is | |
7896 | non-boolean. | |
7897 | ||
9563bfcd JJ |
7898 | 2016-10-05 Jakub Jelinek <jakub@redhat.com> |
7899 | ||
04a32443 JJ |
7900 | PR sanitizer/77823 |
7901 | * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0 | |
7902 | is not integral. | |
7903 | ||
9563bfcd JJ |
7904 | * c-common.c (c_common_reswords): Update comment for C++11. |
7905 | ||
f1644724 JM |
7906 | 2016-10-04 Jason Merrill <jason@redhat.com> |
7907 | ||
7908 | * c-common.c (make_tree_vector_from_ctor): New. | |
7909 | * c-common.h: Declare it. | |
7910 | ||
5a79befb JJ |
7911 | 2016-10-04 Jakub Jelinek <jakub@redhat.com> |
7912 | ||
7913 | * c-cppbuiltin.c (c_cpp_builtins): Don't define | |
7914 | __LIBGCC_JCR_SECTION_NAME__. | |
7915 | ||
1633d3b9 BE |
7916 | 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de> |
7917 | ||
7918 | * c-common.c (c_common_truthvalue_conversion): Warn for suspicious | |
7919 | left shift in boolean context. | |
7920 | ||
a2c6e7f2 JJ |
7921 | 2016-09-29 Jakub Jelinek <jakub@redhat.com> |
7922 | ||
7923 | Implement P0001R1 - C++17 removal of register storage class specifier | |
7924 | * c.opt (Wregister): New warning. | |
7925 | * c-opts.c (c_common_post_options): Enable -Wregister by | |
7926 | default for C++17. | |
7927 | ||
75304c87 JG |
7928 | 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com> |
7929 | ||
7930 | * c-opts.c (c_common_post_options): Remove special case for | |
7931 | TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard | |
7932 | in C++. | |
7933 | ||
bbfac6da JJ |
7934 | 2016-09-27 Jakub Jelinek <jakub@redhat.com> |
7935 | ||
6e39060a JJ |
7936 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for |
7937 | -std=c++1z. | |
7938 | ||
bbfac6da JJ |
7939 | * c-ada-spec.c (print_ada_declaration): Remove break after return. |
7940 | ||
e73cf9a2 TP |
7941 | 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com> |
7942 | ||
7943 | * c-common.c: Include memmodel.h. | |
7944 | ||
c6147dc4 MP |
7945 | 2016-09-26 Marek Polacek <polacek@redhat.com> |
7946 | ||
7947 | * c-lex.c (c_common_has_attribute): Handle attribute fallthrough. | |
7948 | ||
81fea426 MP |
7949 | 2016-09-26 Marek Polacek <polacek@redhat.com> |
7950 | ||
7951 | PR c/7652 | |
7952 | * c-common.c (c_common_attribute_table): Add fallthrough attribute. | |
7953 | (handle_fallthrough_attribute): New function. | |
7954 | (attribute_fallthrough_p): New function. | |
7955 | * c-common.h (attribute_fallthrough_p): Declare. | |
7956 | ||
9a2300e9 MP |
7957 | 2016-09-24 Marek Polacek <polacek@redhat.com> |
7958 | ||
7959 | PR c/77490 | |
7960 | * c.opt (Wbool-operation): New. | |
7961 | ||
a09e9e35 BE |
7962 | 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de> |
7963 | ||
7964 | * c-common.c (c_common_truthvalue_conversion): Inhibit | |
7965 | Wint-in-bool-context warning with from_macro_definition_at. | |
7966 | Mention the expression will always evaluate to true. | |
7967 | ||
d43b4ccc MS |
7968 | 2016-09-21 Martin Sebor <msebor@redhat.com> |
7969 | ||
7970 | PR bootstrap/77676 | |
7971 | * c.opt (fprintf-return-value): Temporarily initialize to zero | |
7972 | to unblock bootstrap failures. | |
7973 | ||
2e1c20b1 JJ |
7974 | 2016-09-21 Jakub Jelinek <jakub@redhat.com> |
7975 | ||
7976 | PR c++/77651 | |
7977 | * c.opt (Waligned-new=): Add RejectNegative. | |
7978 | (faligned-new=): Likewise. Spelling fix - change | |
7979 | aligned_new_threshhold to aligned_new_threshold. | |
7980 | * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold | |
7981 | to aligned_new_threshold. | |
7982 | ||
88d0c3f0 MS |
7983 | 2016-09-20 Martin Sebor <msebor@redhat.com> |
7984 | ||
7985 | PR middle-end/49905 | |
7986 | * c.opt: Add -Wformat-length and -fprintf-return-value. | |
7987 | ||
144a96e4 BE |
7988 | 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de> |
7989 | ||
7990 | PR c++/77434 | |
7991 | * c.opt (Wint-in-bool-context): New warning. | |
7992 | * c-common.c (c_common_truthvalue_conversion): Warn on integer | |
7993 | constants in boolean context. | |
7994 | ||
63012d9a JM |
7995 | 2016-09-19 Joseph Myers <joseph@codesourcery.com> |
7996 | ||
7997 | * c-common.c (max_align_t_align): Also consider alignment of | |
7998 | float128_type_node. | |
7999 | ||
931388ce JM |
8000 | 2016-09-15 Jason Merrill <jason@redhat.com> |
8001 | ||
8002 | * c-common.c (check_cxx_fundamental_alignment_constraints): Check | |
8003 | DECL_EXTERNAL. | |
8004 | ||
38711381 JM |
8005 | 2016-09-14 Jason Merrill <jason@redhat.com> |
8006 | ||
8007 | * c-common.c (check_cxx_fundamental_alignment_constraints): Don't | |
8008 | limit FIELD_DECL, either. | |
8009 | ||
e51fbec3 MP |
8010 | 2016-09-14 Marek Polacek <polacek@redhat.com> |
8011 | ||
8012 | * c-common.c (c_common_truthvalue_conversion): Use false instead of 0. | |
8013 | * c-common.h (build_unary_op): Change nonconvert parameter type to bool. | |
8014 | * c-omp.c (c_finish_omp_atomic): Use false instead of 0. | |
8015 | ||
254830ba DM |
8016 | 2016-09-13 David Malcolm <dmalcolm@redhat.com> |
8017 | ||
8018 | * c-common.c (warn_logical_not_parentheses): Replace | |
8019 | rich_location::add_fixit_insert calls with add_fixit_insert_before | |
8020 | and add_fixit_insert_after, eliminating the "next_loc" calculation. | |
8021 | ||
42763690 JM |
8022 | 2016-09-13 Jason Merrill <jason@redhat.com> |
8023 | Tom de Vries <tom@codesourcery.com> | |
8024 | ||
8025 | PR c++/77427 | |
8026 | * c-common.c (set_underlying_type): Don't treat array as builtin type. | |
8027 | ||
9453eee9 JM |
8028 | 2016-09-13 Jason Merrill <jason@redhat.com> |
8029 | ||
8030 | * c-common.c (check_cxx_fundamental_alignment_constraints): Don't | |
8031 | limit types at all. | |
8032 | ||
e96809e3 JM |
8033 | 2016-09-12 Jason Merrill <jason@redhat.com> |
8034 | ||
8035 | * c-common.c (check_cxx_fundamental_alignment_constraints): Fix | |
8036 | bit/byte confusion, allow large alignment for types. | |
8037 | ||
54dcdb88 BE |
8038 | 2016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de> |
8039 | ||
8040 | PR c++/77496 | |
8041 | * c-common.c (warn_for_omitted_condop): Also warn for boolean data. | |
8042 | ||
d1463eb9 DM |
8043 | 2016-09-12 David Malcolm <dmalcolm@redhat.com> |
8044 | ||
8045 | PR c/72858 | |
8046 | * c-format.c (argument_parser::check_argument_type): Add params | |
8047 | "type_start" and "conversion_char". Use the former to generate | |
8048 | offset_to_type_start and pass it and conversion_char to | |
8049 | check_format_types. | |
8050 | (check_format_info_main): Capture the start of the type | |
8051 | information as "type_start", and pass it an format_char | |
8052 | to arg_parser.check_argument_type. | |
8053 | (check_format_types): Provide an example in the leading comment. | |
8054 | Add params "offset_to_type_start" and "conversion_char"; pass | |
8055 | them to format_type_warning calls. | |
8056 | (test_get_modifier_for_format_len): Likewise. | |
8057 | (matching_type_p): New function. | |
8058 | (get_format_for_type): Add param "conversion_char" and move | |
8059 | implementation into... | |
8060 | (get_format_for_type_1): ...new function, called twice. | |
8061 | Use new function matching_type_p rather than checking for | |
8062 | TYPE_CANONICAL equality. | |
8063 | (get_corrected_substring): New function. | |
8064 | (format_type_warning): Provide an example in the leading comment. | |
8065 | Add params "offset_to_type_start" and "conversion_char". Replace | |
8066 | call to get_format_for_type with call to get_corrected_substring | |
8067 | and move rejection of hints for widths/precisions there. | |
8068 | (assert_format_for_type_streq): Add param "conversion_char". | |
8069 | (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR. | |
8070 | (test_get_format_for_type_printf): Add conversion chars to the | |
8071 | tests, adding coverage for various combinations of integer | |
8072 | vs double conversions, and for preserving octal and hexadecimal | |
8073 | conversions. | |
8074 | (test_get_format_for_type_scanf): Add conversion chars to the | |
8075 | tests. | |
8076 | ||
5b28efbb TV |
8077 | 2016-09-10 Tom de Vries <tom@codesourcery.com> |
8078 | ||
8079 | PR C/71602 | |
8080 | * c-common.c (build_va_arg): Handle more strict | |
8081 | targetm.canonical_va_list_type. Replace first argument type error with | |
8082 | assert. | |
8083 | ||
3f0177e7 MS |
8084 | 2016-09-09 Martin Sebor <msebor@redhat.com> |
8085 | ||
8086 | PR c/77520 | |
8087 | PR c/77521 | |
8088 | * c-format.c (argument_parser::find_format_char_info): Use %qc | |
8089 | format directive unconditionally. | |
8090 | ||
af63ba4b JM |
8091 | 2016-09-09 Jason Merrill <jason@redhat.com> |
8092 | ||
8093 | Implement C++17 new of over-aligned types. | |
8094 | * c.opt: Add -faligned-new and -Waligned-new. | |
8095 | * c-common.c (max_align_t_align): Split out from... | |
8096 | (cxx_fundamental_alignment_p): ...here. | |
8097 | * c-common.h: Declare it. | |
8098 | * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new. | |
8099 | ||
c65248cb JM |
8100 | 2016-09-09 Joseph Myers <joseph@codesourcery.com> |
8101 | ||
8102 | * c-cppbuiltin.c (builtin_define_type_width): New function. | |
8103 | (builtin_define_stdint_macros, c_cpp_builtins): Define type width | |
8104 | macros. | |
8105 | ||
e5106e27 DM |
8106 | 2016-09-07 David Malcolm <dmalcolm@redhat.com> |
8107 | ||
8108 | * c-common.c (get_cpp_ttype_from_string_type): Handle being passed | |
8109 | a POINTER_TYPE. | |
8110 | (substring_loc::get_location): Move to substring-locations.c, | |
8111 | keeping implementation as... | |
8112 | (c_get_substring_location): New function, from the above, reworked | |
8113 | to use accessors rather than member lookup. | |
8114 | * c-common.h (class substring_loc): Move to substring-locations.h, | |
8115 | replacing with a forward decl. | |
8116 | (c_get_substring_location): New decl. | |
8117 | * c-format.c: Include "substring-locations.h". | |
8118 | (format_warning_va): Move to substring-locations.c. | |
8119 | (format_warning_at_substring): Likewise. | |
8120 | ||
ab20d992 | 8121 | 2016-09-06 Martin Sebor <msebor@redhat.com> |
a42e7952 MS |
8122 | |
8123 | PR c/77336 | |
8124 | * c-format.c (check_function_format): Avoid issuing warnings for | |
8125 | functions unless they call format functions with non-constant | |
8126 | format strings. | |
8127 | ||
b772a565 RB |
8128 | 2016-09-06 Richard Biener <rguenther@suse.de> |
8129 | ||
8130 | PR c/77450 | |
8131 | * c-common.c (c_common_mark_addressable_vec): Handle | |
8132 | COMPOUND_LITERAL_EXPR. | |
8133 | ||
25ff5dd3 MP |
8134 | 2016-09-05 Marek Polacek <polacek@redhat.com> |
8135 | ||
8136 | PR c/77423 | |
8137 | * c-common.c (bool_promoted_to_int_p): New function. | |
8138 | (expr_has_boolean_operands_p): New function. | |
8139 | (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p. | |
8140 | (maybe_warn_bool_compare): Use bool_promoted_to_int_p. | |
8141 | ||
21234eb5 TV |
8142 | 2016-09-04 Tom de Vries <tom@codesourcery.com> |
8143 | ||
8144 | revert: | |
8145 | 2016-08-29 Tom de Vries <tom@codesourcery.com> | |
8146 | ||
8147 | * c-common.c (build_va_arg): Replace first argument type error | |
8148 | with assert. | |
8149 | ||
9dc5773f JJ |
8150 | 2016-09-02 Jakub Jelinek <jakub@redhat.com> |
8151 | ||
8152 | PR c/65467 | |
8153 | * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions. | |
8154 | (c_finish_omp_for): Reject _Atomic qualified iterators. | |
8155 | ||
8156 | 2016-09-01 Martin Sebor <msebor@redhat.com> | |
3d7b83b6 MS |
8157 | |
8158 | * c-ada-spec.c (dump_ada_function_declaration): Increase buffer | |
8159 | size to guarantee it fits the output of the formatted function | |
8160 | regardless of its arguments. | |
8161 | ||
295844f6 MP |
8162 | 2016-09-01 Marek Polacek <polacek@redhat.com> |
8163 | ||
8164 | PR c/7652 | |
8165 | * c-common.c (resolve_overloaded_builtin): Fix formatting. Add | |
8166 | FALLTHRU comments. | |
8167 | ||
3d06b6f2 MP |
8168 | 2016-08-29 Marek Polacek <polacek@redhat.com> |
8169 | ||
8170 | PR c/77292 | |
8171 | * c-common.c (warn_logical_not_parentheses): Don't warn for | |
8172 | a comparison or a logical operator. | |
8173 | ||
34cedad5 TV |
8174 | 2016-08-29 Tom de Vries <tom@codesourcery.com> |
8175 | ||
8176 | * c-common.c (build_va_arg): Fix type comparison assert. | |
8177 | ||
f162d717 TV |
8178 | 2016-08-29 Tom de Vries <tom@codesourcery.com> |
8179 | ||
8180 | * c-common.c (build_va_arg): Replace first argument type error | |
8181 | with assert. | |
8182 | ||
ba9bbd6f TV |
8183 | 2016-08-29 Tom de Vries <tom@codesourcery.com> |
8184 | ||
8185 | PR c/77398 | |
8186 | * c-common.c (build_va_arg): Add first argument error. Build va_arg | |
8187 | with error_mark_node as va_list instead of with illegal va_list. | |
8188 | ||
ebef225f MP |
8189 | 2016-08-25 Marek Polacek <polacek@redhat.com> |
8190 | David Malcolm <dmalcolm@redhat.com> | |
8191 | ||
8192 | * c-common.c (warn_logical_not_parentheses): Print fixit hints. | |
8193 | * c-common.h (warn_logical_not_parentheses): Update declaration. | |
8194 | ||
b00e6e75 MP |
8195 | 2016-08-22 Marek Polacek <polacek@redhat.com> |
8196 | ||
8197 | PR c++/77321 | |
8198 | * c-common.c (warn_for_memset): Check type for null. | |
8199 | ||
6dc198e3 JM |
8200 | 2016-08-22 Joseph Myers <joseph@codesourcery.com> |
8201 | ||
14ec014e | 8202 | * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and |
6dc198e3 JM |
8203 | _FloatNx types for suffixes for built-in functions. |
8204 | ||
c65699ef JM |
8205 | 2016-08-19 Joseph Myers <joseph@codesourcery.com> |
8206 | ||
8207 | PR c/32187 | |
8208 | * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32) | |
8209 | (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X) | |
8210 | (RID_FLOAT128X): New enum rid values. | |
8211 | (CASE_RID_FLOATN_NX): New macro. | |
8212 | * c-common.c (c_common_reswords): Add _FloatN and _FloatNx | |
8213 | keywords. | |
8214 | (c_common_type_for_mode): Check for _FloatN and _FloatNx and | |
8215 | corresponding complex types. | |
8216 | (c_common_nodes_and_builtins): For non-C++, register _FloatN and | |
8217 | _FloatNx and corresponding complex types. | |
8218 | (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX. | |
8219 | * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN | |
8220 | and _FloatNx types for the widest type for determining | |
8221 | DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as | |
8222 | __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL. | |
8223 | (c_cpp_builtins): Call builtin_define_float_constants for _FloatN | |
8224 | and _FloatNx types. | |
8225 | * c-lex.c (interpret_float): Handle _FloatN and _FloatNx | |
8226 | constants. | |
8227 | * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and | |
8228 | _FloatNx types. | |
8229 | ||
cc015f3a DM |
8230 | 2016-08-18 David Malcolm <dmalcolm@redhat.com> |
8231 | ||
8232 | * c-opts.c (c_diagnostic_finalizer): Update for change to | |
8233 | diagnostic_show_locus. | |
8234 | ||
cb18fd07 DM |
8235 | 2016-08-18 David Malcolm <dmalcolm@redhat.com> |
8236 | ||
8237 | * c-common.c: Include "spellcheck.h". | |
8238 | (cb_get_suggestion): New function. | |
8239 | * c-common.h (cb_get_suggestion): New decl. | |
8240 | * c-lex.c (init_c_lex): Initialize cb->get_suggestion to | |
8241 | cb_get_suggestion. | |
8242 | ||
a76989dc MP |
8243 | 2016-08-18 Marek Polacek <polacek@redhat.com> |
8244 | ||
8245 | PR c/71514 | |
8246 | * c-common.c (get_atomic_generic_size): Disallow pointer-to-function | |
8247 | and pointer-to-VLA. | |
8248 | ||
65e736c0 DM |
8249 | 2016-08-16 David Malcolm <dmalcolm@redhat.com> |
8250 | ||
8251 | PR c/72857 | |
8252 | * c-common.c (substring_loc::get_range): Rename to... | |
8253 | (substring_loc::get_location): ...this, converting param from a | |
8254 | source_range * to a location_t *. Call | |
8255 | get_source_location_for_substring rather than | |
8256 | get_source_range_for_substring, and pass in m_caret_idx. | |
8257 | * c-common.h (substring_loc::substring_loc): Add param "caret_idx". | |
8258 | (substring_loc::get_range): Replace with... | |
8259 | (substring_loc::get_location): ...this. | |
8260 | (substring_loc::set_caret_index): New method. | |
8261 | (substring_loc): Add field m_caret_idx. | |
8262 | * c-format.c (format_warning_va): Update for above changes. | |
8263 | Rename local "substring_loc" to "fmt_substring_loc" to avoid | |
8264 | clashing with type name. | |
8265 | (format_warning_at_char): Add caret_idx param to substring_loc ctor. | |
8266 | (check_argument_type): Likewise. | |
8267 | (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc" | |
8268 | Use a copy when emitting warnings, setting the caret index from TYPE. | |
8269 | ||
7e1dde14 | 8270 | 2016-08-16 Eric Botcazou <ebotcazou@adacore.com> |
8e745a17 | 8271 | Arnaud Charlet <charlet@adacore.com> |
7e1dde14 EB |
8272 | |
8273 | * c-ada-spec.c (dump_number): New function. | |
8274 | (handle_escape_character): Likewise. | |
8275 | (print_ada_macros): Add handling of constant integers and strings. | |
8276 | ||
191816a3 MP |
8277 | 2016-08-12 Marek Polacek <polacek@redhat.com> |
8278 | ||
8279 | PR c/7652 | |
8280 | * c-common.c (scalar_to_vector): Adjust fall through comment. | |
8281 | * c-opts.c (c_common_handle_option): Likewise. | |
8282 | * c-pragma.c (handle_pragma_pack): Add FALLTHRU. | |
8283 | * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust | |
8284 | fall through comment. | |
8285 | * cilk.c (extract_free_variables): Add FALLTHRU. | |
8286 | ||
452df4a4 JM |
8287 | 2016-08-10 Jason Merrill <jason@redhat.com> |
8288 | ||
8289 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr. | |
8290 | ||
f3365c12 JM |
8291 | 2016-08-09 Jason Merrill <jason@redhat.com> |
8292 | ||
8293 | * c-common.c (c_common_attribute_table): vector_size affects type | |
8294 | identity. | |
8295 | ||
f0bc3323 MP |
8296 | 2016-08-09 Marek Polacek <polacek@redhat.com> |
8297 | ||
8298 | PR c/7652 | |
8299 | * c-ada-spec.c (dump_generic_ada_node): Add return. | |
8300 | ||
98e5a19a JM |
8301 | 2016-08-09 Jason Merrill <jason@redhat.com> |
8302 | ||
8303 | * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for | |
8304 | C++17 constexpr lambdas. | |
8305 | ||
895aa8e1 DM |
8306 | 2016-08-08 David Malcolm <dmalcolm@redhat.com> |
8307 | ||
8308 | PR c/64955 | |
8309 | * c-common.h (selftest::c_format_c_tests): New declaration. | |
8310 | (selftest::run_c_tests): New declaration. | |
8311 | * c-format.c: Include "selftest.h. | |
8312 | (format_warning_va): Add param "corrected_substring" and use | |
8313 | it to add a replacement fix-it hint. | |
8314 | (format_warning_at_substring): Likewise. | |
8315 | (format_warning_at_char): Update for new param of | |
8316 | format_warning_va. | |
8317 | (argument_parser::check_argument_type): Pass "fki" to | |
8318 | check_format_types. | |
8319 | (check_format_types): Add param "fki" and pass it to | |
8320 | format_type_warning. | |
8321 | (deref_n_times): New function. | |
8322 | (get_modifier_for_format_len): New function. | |
8323 | (selftest::test_get_modifier_for_format_len): New function. | |
8324 | (get_format_for_type): New function. | |
8325 | (format_type_warning): Add param "fki" and use it to attempt | |
8326 | to provide hints for argument types when calling | |
8327 | format_warning_at_substring. | |
8328 | (selftest::get_info): New function. | |
8329 | (selftest::assert_format_for_type_streq): New function. | |
8330 | (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro. | |
8331 | (selftest::test_get_format_for_type_printf): New function. | |
8332 | (selftest::test_get_format_for_type_scanf): New function. | |
8333 | (selftest::c_format_c_tests): New function. | |
8334 | ||
e52ed3fe DM |
8335 | 2016-08-08 David Malcolm <dmalcolm@redhat.com> |
8336 | ||
8337 | PR c/52952 | |
8338 | * c-format.c: Include "diagnostic.h". | |
8339 | (location_column_from_byte_offset): Delete. | |
8340 | (location_from_offset): Delete. | |
8341 | (format_warning_va): New function. | |
8342 | (format_warning_at_substring): New function. | |
8343 | (format_warning_at_char): New function. | |
8344 | (check_format_arg): Capture location of format_tree and pass to | |
8345 | check_format_info_main. | |
8346 | (argument_parser): Add fields "start_of_this_format" and | |
8347 | "format_string_cst". | |
8348 | (flag_chars_t::validate): Add param "format_string_cst". Convert | |
8349 | warning_at call using location_from_offset to call to | |
8350 | format_warning_at_char. | |
8351 | (argument_parser::argument_parser): Add param "format_string_cst_" | |
8352 | and use use it to initialize field "format_string_cst". | |
8353 | Initialize new field "start_of_this_format". | |
8354 | (argument_parser::read_format_flags): Convert warning_at call | |
8355 | using location_from_offset to a call to format_warning_at_char. | |
8356 | (argument_parser::read_any_format_left_precision): Likewise. | |
8357 | (argument_parser::read_any_format_precision): Likewise. | |
8358 | (argument_parser::read_any_other_modifier): Likewise. | |
8359 | (argument_parser::find_format_char_info): Likewise, in three places. | |
8360 | (argument_parser::parse_any_scan_set): Likewise, in one place. | |
8361 | (argument_parser::handle_conversions): Likewise, in two places. | |
8362 | (argument_parser::check_argument_type): Add param "fmt_param_loc" | |
8363 | and use it to make a substring_loc. Pass the latter to | |
8364 | check_format_types. | |
8365 | (check_format_info_main): Add params "fmt_param_loc" and | |
8366 | "format_string_cst". Convert warning_at calls using | |
8367 | location_from_offset to calls to format_warning_at_char. Pass the | |
8368 | new params to the arg_parser ctor. Pass "format_string_cst" to | |
8369 | flag_chars.validate. Pass "fmt_param_loc" to | |
8370 | arg_parser.check_argument_type. | |
8371 | (check_format_types): Convert first param from a location_t | |
8372 | to a const substring_loc & and rename to "fmt_loc". Attempt | |
8373 | to extract the range of the relevant parameter and pass it | |
8374 | to format_type_warning. | |
8375 | (format_type_warning): Convert first param from a location_t | |
8376 | to a const substring_loc & and rename to "fmt_loc". Add | |
8377 | params "param_range" and "type". Replace calls to warning_at | |
8378 | with calls to format_warning_at_substring. | |
8379 | ||
1c4d457e DM |
8380 | 2016-08-08 David Malcolm <dmalcolm@redhat.com> |
8381 | ||
8382 | * c-format.c (class flag_chars_t): New class. | |
8383 | (struct length_modifier): New struct. | |
8384 | (class argument_parser): New class. | |
8385 | (flag_chars_t::flag_chars_t): New ctor. | |
8386 | (flag_chars_t::has_char_p): New method. | |
8387 | (flag_chars_t::add_char): New method. | |
8388 | (flag_chars_t::validate): New method. | |
8389 | (flag_chars_t::get_alloc_flag): New method. | |
8390 | (flag_chars_t::assignment_suppression_p): New method. | |
8391 | (argument_parser::argument_parser): New ctor. | |
8392 | (argument_parser::read_any_dollar): New method. | |
8393 | (argument_parser::read_format_flags): New method. | |
8394 | (argument_parser::read_any_format_width): New method. | |
8395 | (argument_parser::read_any_format_left_precision): New method. | |
8396 | (argument_parser::read_any_format_precision): New method. | |
8397 | (argument_parser::handle_alloc_chars): New method. | |
8398 | (argument_parser::read_any_length_modifier): New method. | |
8399 | (argument_parser::read_any_other_modifier): New method. | |
8400 | (argument_parser::find_format_char_info): New method. | |
8401 | (argument_parser::validate_flag_pairs): New method. | |
8402 | (argument_parser::give_y2k_warnings): New method. | |
8403 | (argument_parser::parse_any_scan_set): New method. | |
8404 | (argument_parser::handle_conversions): New method. | |
8405 | (argument_parser::check_argument_type): New method. | |
8406 | (check_format_info_main): Introduce classes argument_parser | |
8407 | and flag_chars_t, moving the code within the loop into methods | |
8408 | of these classes. Make various locals "const". | |
8409 | ||
88fa5555 DM |
8410 | 2016-08-05 David Malcolm <dmalcolm@redhat.com> |
8411 | ||
8412 | * c-common.c: Include "substring-locations.h". | |
8413 | (get_cpp_ttype_from_string_type): New function. | |
8414 | (g_string_concat_db): New global. | |
8415 | (substring_loc::get_range): New method. | |
8416 | * c-common.h (g_string_concat_db): New declaration. | |
8417 | (class substring_loc): New class. | |
8418 | * c-lex.c (lex_string): When concatenating strings, capture the | |
8419 | locations of all tokens using a new obstack, and record the | |
8420 | concatenation locations within g_string_concat_db. | |
8421 | * c-opts.c (c_common_init_options): Construct g_string_concat_db | |
8422 | on the ggc-heap. | |
8423 | ||
78169471 MP |
8424 | 2016-07-29 Marek Polacek <polacek@redhat.com> |
8425 | ||
638fc14f MP |
8426 | PR c/71926 |
8427 | * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the | |
8428 | parentheses warning. | |
8429 | ||
78169471 MP |
8430 | PR c/71574 |
8431 | * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL. | |
8432 | ||
1225d6b1 ML |
8433 | 2016-07-28 Martin Liska <mliska@suse.cz> |
8434 | ||
8435 | PR gcov-profile/68025 | |
8436 | * c-common.c (handle_no_profile_instrument_function_attribute): | |
8437 | ||
ec1e2a40 BE |
8438 | 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de> |
8439 | ||
8440 | * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of | |
8441 | BITS_PER_UNIT_LOG. | |
8442 | ||
5ec2cd9f JM |
8443 | 2016-07-25 Jason Merrill <jason@redhat.com> |
8444 | ||
8445 | PR c++/65970 | |
8446 | * c.opt (fconstexpr-loop-limit): New. | |
8447 | ||
9dc5773f | 8448 | 2016-07-22 Martin Sebor <msebor@redhat.com> |
2e6b45af MS |
8449 | |
8450 | PR c++/71675 | |
8451 | * c-common.c (resolve_overloaded_builtin): Avoid converting | |
8452 | __atomic_compare_exchange_n return type to that of what its | |
8453 | first argument points to. | |
8454 | ||
e3fe09c1 UB |
8455 | 2016-07-22 Uros Bizjak <ubizjak@gmail.com> |
8456 | ||
8457 | * c-common.c: Use HOST_WIDE_INT_M1U instead of | |
8458 | ~(unsigned HOST_WIDE_INT) 0. | |
8459 | ||
bc91c436 ML |
8460 | 2016-07-22 Martin Liska <mliska@suse.cz> |
8461 | ||
8462 | PR gcov-profile/69028 | |
8463 | PR gcov-profile/62047 | |
8464 | * cilk.c (create_cilk_helper_decl): Set location of a new decl | |
8465 | to the current_function_decl. | |
8466 | ||
451dcc66 JM |
8467 | 2016-07-21 Jason Merrill <jason@redhat.com> |
8468 | ||
8469 | PR c++/65168 | |
8470 | * c-common.c (c_common_truthvalue_conversion): Check | |
8471 | c_inhibit_evaluation_warnings for warning about address of | |
8472 | reference. | |
8473 | ||
de6a69ee DM |
8474 | 2016-07-20 David Malcolm <dmalcolm@redhat.com> |
8475 | ||
8476 | * c-common.h (lookup_name_fuzzy): Convert return type from tree to | |
8477 | const char *. | |
8478 | ||
d022c55a JM |
8479 | 2016-07-15 Jason Merrill <jason@redhat.com> |
8480 | ||
8481 | * c-opts.c (c_common_post_options): Update -fabi-version default to 11. | |
8482 | ||
ddbbcb19 JJ |
8483 | 2016-07-15 Jakub Jelinek <jakub@redhat.com> |
8484 | ||
8485 | PR c/71858 | |
8486 | * c-common.h (enum lookup_name_fuzzy_kind): Add | |
8487 | FUZZY_LOOKUP_FUNCTION_NAME. | |
8488 | ||
d0cf395a JM |
8489 | 2016-07-08 Jason Merrill <jason@redhat.com> |
8490 | ||
8491 | P0145: Refining Expression Order for C++. | |
8492 | * c.opts (-fargs-in-order): Rename to -fstrong-eval-order. | |
8493 | * c-opts.c: Adjust. | |
8494 | ||
98d44e93 MT |
8495 | 2016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de> |
8496 | ||
8497 | PR c++/71214 | |
8498 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references. | |
8499 | ||
f9d8d994 TS |
8500 | 2016-06-29 Thomas Schwinge <thomas@codesourcery.com> |
8501 | ||
8502 | * c-pragma.h (enum pragma_kind): Rename | |
8503 | PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all | |
8504 | users. | |
8505 | ||
4aa83879 RB |
8506 | 2016-06-29 Richard Biener <rguenther@suse.de> |
8507 | ||
8508 | PR middle-end/71002 | |
8509 | * c-common.c (c_common_get_alias_set): Remove union type punning case. | |
8510 | ||
a25bd9e6 JM |
8511 | 2016-06-24 Jason Merrill <jason@redhat.com> |
8512 | ||
8513 | P0145R2: Refining Expression Order for C++. | |
8514 | * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of | |
8515 | MODIFY_EXPR. | |
8516 | ||
a86451b9 JJ |
8517 | 2016-06-24 Jakub Jelinek <jakub@redhat.com> |
8518 | ||
8519 | * c-common.c (check_builtin_function_arguments): Require last | |
8520 | argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type. | |
8521 | Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW | |
8522 | if the last argument is pointer to enumerated or boolean type. | |
8523 | ||
1a4f11c8 DM |
8524 | 2016-06-22 David Malcolm <dmalcolm@redhat.com> |
8525 | ||
8526 | PR c/70339 | |
8527 | * c-common.h (enum lookup_name_fuzzy_kind): New enum. | |
8528 | (lookup_name_fuzzy): New prototype. | |
8529 | ||
fe55692c JDA |
8530 | 2016-06-21 John David Anglin <danglin@gcc.gnu.org> |
8531 | ||
8532 | * c-common.c (get_source_date_epoch): Use int64_t instead of long long. | |
8533 | ||
4eb24e01 JM |
8534 | 2016-06-14 Jason Merrill <jason@redhat.com> |
8535 | ||
8536 | P0145R2: Refining Expression Order for C++. | |
8537 | * c.opt (fargs-in-order): New. | |
8538 | * c-opts.c (c_common_post_options): Adjust flag_args_in_order. | |
8539 | ||
ef7cf206 JJ |
8540 | 2016-06-13 Jakub Jelinek <jakub@redhat.com> |
8541 | ||
0dda258b JJ |
8542 | PR sanitizer/71498 |
8543 | * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on | |
8544 | all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY. | |
8545 | ||
ef7cf206 JJ |
8546 | PR preprocessor/71183 |
8547 | * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch | |
8548 | to cb_get_source_date_epoch. | |
8549 | ||
50b15873 JJ |
8550 | 2016-06-10 Jakub Jelinek <jakub@redhat.com> |
8551 | ||
8552 | PR c/68657 | |
8553 | * c.opt (Wpsabi): Add Warning flag. | |
8554 | ||
4d926e34 MS |
8555 | 2016-06-10 Martin Sebor <msebor@redhat.com> |
8556 | ||
8557 | PR c/71392 | |
14ec014e | 8558 | * c-common.c (handle_nonnull_attribute): Accept |
4d926e34 MS |
8559 | the nonnull attribute in type-generic builtins. |
8560 | ||
e01b4e16 MS |
8561 | 2016-06-09 Martin Sebor <msebor@redhat.com> |
8562 | ||
8563 | PR c/70883 | |
8564 | * c-common.c (builtin_function_validate_nargs): Make text of error | |
8565 | message consistent with others like it. | |
8566 | ||
44a845ca MS |
8567 | 2016-06-08 Martin Sebor <msebor@redhat.com> |
8568 | Jakub Jelinek <jakub@redhat.com> | |
8569 | ||
8570 | PR c++/70507 | |
8571 | PR c/68120 | |
8572 | * c-common.c (check_builtin_function_arguments): Handle | |
8573 | BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P. | |
8574 | ||
a80a7051 RB |
8575 | 2016-06-08 Richard Biener <rguenther@suse.de> |
8576 | ||
8577 | * c-common.c (parse_optimize_options): Improve diagnostic messages. | |
8578 | ||
bfd67b47 RB |
8579 | 2016-06-07 Richard Biener <rguenther@suse.de> |
8580 | ||
8581 | PR c/61564 | |
8582 | * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION | |
8583 | options and warn about others. | |
8584 | ||
15c98b2e ES |
8585 | 2016-06-01 Eduard Sanou <dhole@openmailbox.org> |
8586 | ||
8587 | * c-common.c (get_source_date_epoch): Rename to | |
8588 | cb_get_source_date_epoch. | |
8589 | * c-common.c (cb_get_source_date_epoch): Use a single generic erorr | |
8590 | message when the parsing fails. Use error_at instead of fatal_error. | |
8591 | * c-common.h (get_source_date_epoch): Rename to | |
8592 | cb_get_source_date_epoch. | |
8593 | * c-common.h (cb_get_source_date_epoch): Prototype. | |
8594 | * c-common.h (MAX_SOURCE_DATE_EPOCH): Define. | |
8595 | * c-common.h (c_omp_region_type): Remove trailing comma. | |
8596 | * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback. | |
8597 | * c-lex.c (c_lex_with_flags): Remove initialization of | |
8598 | pfile->source_date_epoch. | |
8599 | ||
00631022 JJ |
8600 | 2016-05-30 Jakub Jelinek <jakub@redhat.com> |
8601 | ||
8602 | PR c++/71349 | |
8603 | * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to | |
8604 | C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to | |
8605 | C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct, | |
8606 | instead of C_OMP_CLAUSE_SPLIT_FOR. | |
8607 | ||
f17a223d RB |
8608 | 2016-05-24 Richard Biener <rguenther@suse.de> |
8609 | ||
8610 | PR middle-end/70434 | |
8611 | PR c/69504 | |
8612 | * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ... | |
8613 | (convert_vector_to_array_for_subscript): ... this. | |
8614 | * c-common.c (convert_vector_to_pointer_for_subscript): Use a | |
8615 | VIEW_CONVERT_EXPR to an array type. Rename to ... | |
8616 | (convert_vector_to_array_for_subscript): ... this. | |
8617 | ||
4f2e1536 MP |
8618 | 2016-05-12 Marek Polacek <polacek@redhat.com> |
8619 | ||
8620 | PR c/70756 | |
8621 | * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of | |
8622 | size_in_bytes and pass LOC to it. | |
8623 | ||
d6e83a8d MM |
8624 | 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com> |
8625 | ||
8626 | PR c/43651 | |
8627 | * c.opt (Wduplicate-decl-specifier): New option. | |
8628 | ||
5c3a10fb MP |
8629 | 2016-05-11 Marek Polacek <polacek@redhat.com> |
8630 | ||
8631 | PR c++/71024 | |
8632 | * c-common.c (diagnose_mismatched_attributes): New function. | |
8633 | * c-common.h (diagnose_mismatched_attributes): Declare. | |
8634 | ||
deef7113 MP |
8635 | 2016-05-04 Marek Polacek <polacek@redhat.com> |
8636 | ||
8637 | * c.opt (Wdangling-else): New option. | |
8638 | ||
79ce98bc MP |
8639 | 2016-05-03 Marek Polacek <polacek@redhat.com> |
8640 | ||
8641 | PR c/70859 | |
8642 | * c-common.c (builtin_function_validate_nargs): Add location | |
8643 | parameter. Use it. | |
8644 | (check_builtin_function_arguments): Add location and arguments | |
8645 | parameters. Use them. | |
8646 | * c-common.h (check_builtin_function_arguments): Update declaration. | |
8647 | ||
381cdae4 RB |
8648 | 2016-05-03 Richard Biener <rguenther@suse.de> |
8649 | ||
8650 | * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not | |
8651 | allow call args to gimplify to SSA names. | |
8652 | ||
1d793c34 MP |
8653 | 2016-05-03 Marek Polacek <polacek@redhat.com> |
8654 | ||
8655 | * c-common.h (enum c_omp_region_type): Remove stray comma. | |
8656 | ||
77886428 CP |
8657 | 2016-05-02 Cesar Philippidis <cesar@codesourcery.com> |
8658 | ||
8659 | * c-common.h (enum c_omp_region_type): Define. | |
8660 | ||
697e0b28 RS |
8661 | 2016-05-02 Richard Sandiford <richard.sandiford@arm.com> |
8662 | ||
8663 | * c-common.c (shorten_compare): Use wi::to_wide. | |
8664 | ||
e7ff0319 CP |
8665 | 2016-04-29 Cesar Philippidis <cesar@codesourcery.com> |
8666 | ||
8667 | PR middle-end/70626 | |
8668 | * c-common.h (c_oacc_split_loop_clauses): Add boolean argument. | |
8669 | * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate | |
8670 | reduction clauses in acc parallel loops. | |
8671 | ||
2fff3db8 MP |
8672 | 2016-04-29 Marek Polacek <polacek@redhat.com> |
8673 | ||
8674 | PR c/70852 | |
8675 | * c-common.c (warn_for_memset): Check domain before accessing it. | |
8676 | ||
509063eb DV |
8677 | 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com> |
8678 | ||
8679 | PR/69089 | |
8680 | * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the | |
8681 | "aligned" attribute. | |
8682 | ||
b632761d JM |
8683 | 2016-04-28 Jason Merrill <jason@redhat.com> |
8684 | ||
8685 | * c-lex.c (c_common_has_attribute): Handle nodiscard. | |
8686 | ||
174f6622 ES |
8687 | 2016-04-28 Eduard Sanou <dhole@openmailbox.org> |
8688 | Matthias Klose <doko@debian.org> | |
8689 | ||
8690 | * c-common.c (get_source_date_epoch): New function, gets the environment | |
7365279f | 8691 | variable SOURCE_DATE_EPOCH and parses it as long long with error |
174f6622 ES |
8692 | handling. |
8693 | * c-common.h (get_source_date_epoch): Prototype. | |
8694 | * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch. | |
8695 | ||
6bc2bb18 RB |
8696 | 2015-04-27 Ryan Burn <contact@rnburn.com> |
8697 | ||
8698 | PR c++/69024 | |
8699 | PR c++/68997 | |
8700 | * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage. | |
8701 | (cilk_recognize_spawn): Renamed from recognize_spawn and change to | |
8702 | external linkage. | |
8703 | (cilk_detect_and_unwrap): Corresponding changes. | |
8704 | (extract_free_variables): Don't extract free variables from | |
8705 | AGGR_INIT_EXPR slot. | |
8706 | * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype. | |
8707 | (cilk_recognize_spawn): Likewise. | |
8708 | ||
c1e1f433 BS |
8709 | 2016-04-27 Bernd Schmidt <bschmidt@redhat.com> |
8710 | ||
8711 | * c.opt (Wmemset-elt-size): New option. | |
8712 | * c-common.c (warn_for_memset): New function. | |
8713 | * c-common.h (warn_for_memset): Declare. | |
8714 | ||
d067e05f JM |
8715 | 2016-04-25 Jason Merrill <jason@redhat.com> |
8716 | ||
8717 | * c-common.c (handle_unused_attribute): Accept CONST_DECL. | |
8718 | No longer static. | |
8719 | * c-common.h: Declare it. | |
8720 | * c-lex.c (c_common_has_attribute): Add maybe_unused. | |
8721 | ||
9aa36ae5 JM |
8722 | 2016-04-22 Jason Merrill <jason@redhat.com> |
8723 | ||
8724 | * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for. | |
8725 | ||
477d4906 IV |
8726 | 2016-04-20 Ilya Verbin <ilya.verbin@intel.com> |
8727 | ||
8728 | PR c++/69363 | |
8729 | * c-cilkplus.c (c_finish_cilk_clauses): Remove function. | |
8730 | * c-common.h (c_finish_cilk_clauses): Remove declaration. | |
8731 | ||
fe37c7af MM |
8732 | 2016-04-18 Michael Matz <matz@suse.de> |
8733 | ||
8734 | * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN | |
8735 | and SET_DECL_ALIGN. | |
8736 | ||
23f2660f EB |
8737 | 2016-04-17 Eric Botcazou <ebotcazou@adacore.com> |
8738 | ||
8739 | * c-ada-spec.c (get_underlying_decl): Return the typedef, if any. | |
8740 | (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access | |
8741 | to incomplete types. | |
8742 | (dump_nested_type): Remove redundant tests and tidy up. | |
8743 | (print_ada_declaration): Also set TREE_VISITED on the declaration of | |
8744 | a type which is the typedef of an original type. | |
8745 | ||
1e77281b MP |
8746 | 2016-04-15 Marek Polacek <polacek@redhat.com> |
8747 | ||
8748 | PR c/70651 | |
8749 | * c-common.c (build_va_arg): Change two asserts into errors and return | |
8750 | error_mark_node. | |
8751 | ||
b3a77f21 MP |
8752 | 2016-04-13 Marek Polacek <polacek@redhat.com> |
8753 | ||
8754 | PR c++/70639 | |
8755 | * c-indentation.c (should_warn_for_misleading_indentation): Bail out | |
8756 | for switch statements, too. | |
8757 | ||
322b8466 JM |
8758 | 2016-03-28 Jason Merrill <jason@redhat.com> |
8759 | ||
8760 | * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for. | |
8761 | ||
fbdb6baf MP |
8762 | 2016-03-23 Marek Polacek <polacek@redhat.com> |
8763 | ||
8764 | PR c++/69884 | |
8765 | * c.opt (Wignored-attributes): New option. | |
8766 | ||
5c240f4d DM |
8767 | 2016-03-22 David Malcolm <dmalcolm@redhat.com> |
8768 | ||
8769 | PR c/69993 | |
8770 | * c-indentation.c (warn_for_misleading_indentation): Rewrite the | |
8771 | diagnostic text, reversing the order of the warning and note so | |
8772 | that they appear in source order. | |
8773 | ||
14ba7b28 MP |
8774 | 2016-03-17 Marek Polacek <polacek@redhat.com> |
8775 | ||
8776 | PR c/69407 | |
8777 | * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch | |
8778 | operations. | |
8779 | ||
08a1cadc JM |
8780 | 2016-03-14 Jason Merrill <jason@redhat.com> |
8781 | ||
2aaeea19 JM |
8782 | * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float. |
8783 | ||
08a1cadc JM |
8784 | * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for. |
8785 | ||
c06d25bb RB |
8786 | 2016-03-09 Richard Biener <rguenther@suse.de> |
8787 | ||
8788 | PR c/70143 | |
8789 | * c-common.c (strict_aliasing_warning): Add back | |
8790 | alias_sets_conflict_p check. | |
8791 | ||
80aac5c8 JM |
8792 | 2016-03-08 Jason Merrill <jason@redhat.com> |
8793 | ||
8794 | * c-opts.c (set_std_cxx1z): Don't enable concepts. | |
8795 | ||
64b23c13 DM |
8796 | 2016-03-04 David Malcolm <dmalcolm@redhat.com> |
8797 | ||
8798 | PR c/68187 | |
8799 | * c-indentation.c (get_visual_column): Move code to determine next | |
8800 | tab stop to... | |
8801 | (next_tab_stop): ...this new function. | |
8802 | (line_contains_hash_if): Delete function. | |
8803 | (detect_preprocessor_logic): Delete function. | |
8804 | (get_first_nws_vis_column): New function. | |
8805 | (detect_intervening_unindent): New function. | |
8806 | (should_warn_for_misleading_indentation): Replace call to | |
8807 | detect_preprocessor_logic with a call to | |
8808 | detect_intervening_unindent. | |
8809 | ||
729526f5 DM |
8810 | 2016-03-04 David Malcolm <dmalcolm@redhat.com> |
8811 | ||
8812 | PR c/68187 | |
8813 | * c-indentation.c (should_warn_for_misleading_indentation): When | |
8814 | suppressing warnings about cases where the guard and body are on | |
8815 | the same column, only use the first non-whitespace column in place | |
8816 | of the guard token column when dealing with "else" clauses. | |
8817 | When rejecting aligned BODY and NEXT, loosen the requirement | |
8818 | from equality with the first non-whitespace of guard to simply | |
8819 | that they not be indented relative to it. | |
8820 | ||
e9a35493 RB |
8821 | 2016-03-04 Richard Biener <rguenther@suse.de> |
8822 | ||
8823 | PR c++/70054 | |
8824 | * c-common.c (strict_aliasing_warning): Use alias_set_subset_of | |
8825 | instead of alias_sets_conflict_p. | |
8826 | ||
1be56bc5 MP |
8827 | 2016-03-01 Marek Polacek <polacek@redhat.com> |
8828 | ||
8829 | PR c++/69795 | |
8830 | * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than | |
8831 | any DECL. | |
8832 | ||
35886f0b MS |
8833 | 2016-02-22 Martin Sebor <msebor@redhat.com> |
8834 | ||
8835 | PR middle-end/69780 | |
8836 | * c-common.c (check_builtin_function_arguments): Validate and | |
8837 | reject invalid arguments to __builtin_alloca_with_align. | |
8838 | ||
4246c8da MW |
8839 | 2016-02-20 Mark Wielaard <mjw@redhat.com> |
8840 | ||
8841 | PR c/28901 | |
8842 | * c.opt (Wunused-const-variable): Turn into Alias for... | |
8843 | (Wunused-const-variable=): New option. | |
8844 | ||
268be88c BE |
8845 | 2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de> |
8846 | ||
8847 | PR c++/69865 | |
8848 | * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from | |
8849 | here... | |
8850 | (c_common_init_options): ...to here. | |
8851 | (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99. | |
8852 | ||
871b3f47 JJ |
8853 | 2016-02-19 Jakub Jelinek <jakub@redhat.com> |
8854 | ||
8855 | PR c++/69826 | |
8856 | * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE. | |
8857 | (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for | |
8858 | flag_preprocess_only. | |
8859 | ||
bf14eba2 JJ |
8860 | 2016-02-16 Jakub Jelinek <jakub@redhat.com> |
8861 | ||
8862 | PR c/69835 | |
8863 | * c.opt (Wnonnull-compare): Enable for -Wall. | |
8864 | ||
ba6b3795 JJ |
8865 | 2016-02-15 Jakub Jelinek <jakub@redhat.com> |
8866 | ||
8867 | PR c++/69797 | |
8868 | * c-common.c (sync_resolve_size): Diagnose too few arguments | |
8869 | even when params is non-NULL empty vector. | |
8870 | ||
a011cd92 BS |
8871 | 2016-02-08 Bernd Schmidt <bschmidt@redhat.com> |
8872 | ||
8873 | PR target/60410 | |
8874 | * c.opt (fshort-double): Remove. | |
8875 | ||
46cb9332 MS |
8876 | 2016-02-05 Martin Sebor <msebor@redhat.com> |
8877 | ||
8878 | PR c++/69662 | |
8879 | * c.opt (Warning options): Update -Wplacement-new to take | |
8880 | an optional argument. | |
8881 | ||
e1b81f2b JJ |
8882 | 2016-02-01 Jakub Jelinek <jakub@redhat.com> |
8883 | ||
8884 | PR preprocessor/69543 | |
8885 | PR c/69558 | |
8886 | * c-pragma.c (handle_pragma_diagnostic): Pass input_location | |
8887 | instead of loc to control_warning_option. | |
8888 | ||
b6adbb9f NS |
8889 | 2016-02-01 Nathan Sidwell <nathan@codesourcery.com> |
8890 | ||
8891 | * c.opt (fopenacc-dim=): New option. | |
8892 | ||
5d70666e RB |
8893 | 2016-01-27 Ryan Burn <contact@rnburn.com> |
8894 | ||
8895 | PR cilkplus/69267 | |
8896 | * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use | |
8897 | gimplify_arg. Removed superfluous post_p argument. | |
8898 | * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed | |
8899 | superfluous post_p argument. | |
8900 | * c-gimplify.c (c_gimplify_expr): Likewise. | |
8901 | ||
01e1dea3 DM |
8902 | 2016-01-26 David Malcolm <dmalcolm@redhat.com> |
8903 | ||
8904 | PR other/69006 | |
8905 | * c-opts.c (c_diagnostic_finalizer): Replace invocation of | |
8906 | pp_newline_and_flush with pp_flush. | |
8907 | ||
9f04a53e MS |
8908 | 2016-01-20 Martin Sebor <msebor@redhat.com> |
8909 | ||
8910 | PR c/69405 | |
8911 | * c-common.c (sync_resolve_size): Avoid printing diagnostic about | |
8912 | an incompatible argument when the argument isn't a valid tree node. | |
8913 | ||
7f26f7df JM |
8914 | 2016-01-18 Jason Merrill <jason@redhat.com> |
8915 | ||
8916 | PR c++/68767 | |
8917 | * c-common.c (check_function_arguments_recurse): Fold the whole | |
8918 | COND_EXPR, not just the condition. | |
8919 | ||
f62bf092 TV |
8920 | 2016-01-18 Tom de Vries <tom@codesourcery.com> |
8921 | ||
8922 | * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION, | |
8923 | classify as loop clause. | |
8924 | ||
e0a575ff JJ |
8925 | 2016-01-15 Jakub Jelinek <jakub@redhat.com> |
8926 | ||
8927 | PR bootstrap/68271 | |
8928 | * c-pragma.c (c_register_pragma_1): Adjust comment to note that | |
8929 | C++ FE no longer has limit on number of pragmas. | |
8930 | ||
8931 | 2015-01-14 Ryan Burn <contact@rnburn.com> | |
b6e3db06 RB |
8932 | |
8933 | PR c++/69048 | |
8934 | * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr | |
c47eaca6 | 8935 | to add missing cleanup point. |
b6e3db06 | 8936 | |
c7df95d8 DM |
8937 | 2016-01-14 David Malcolm <dmalcolm@redhat.com> |
8938 | ||
8939 | PR c++/68819 | |
8940 | * c-indentation.c (get_visual_column): Add location_t param. | |
8941 | Handle the column number being zero by effectively disabling the | |
8942 | warning, with an "inform". | |
8943 | (should_warn_for_misleading_indentation): Add location_t argument | |
8944 | for all uses of get_visual_column. | |
8945 | ||
21efdd80 PP |
8946 | 2016-01-10 Patrick Palka <ppalka@gcc.gnu.org> |
8947 | ||
8948 | PR c++/69029 | |
8949 | * c-indentation.c (should_warn_for_misleading_indentation): | |
8950 | Don't warn about do-while statements. | |
8951 | ||
7a127fa7 MS |
8952 | 2016-01-07 Martin Sebor <msebor@redhat.com> |
8953 | ||
8954 | PR c/68966 | |
8955 | * c-common.c (sync_resolve_size): Reject first argument when it's | |
8956 | a pointer to _Bool. | |
8957 | ||
c589e975 DM |
8958 | 2016-01-05 David Malcolm <dmalcolm@redhat.com> |
8959 | ||
8960 | PR c/69122 | |
8961 | * c-indentation.c (get_visual_column): Remove default argument. | |
8962 | (should_warn_for_misleading_indentation): For the multiline case, | |
8963 | update call to get_visual_column for next_stmt_exploc so that it | |
8964 | captures the location of the first non-whitespace character in the | |
8965 | relevant line. Don't issue warnings if there is non-whitespace | |
8966 | before the next statement. | |
8967 | ||
818ab71a JJ |
8968 | 2016-01-04 Jakub Jelinek <jakub@redhat.com> |
8969 | ||
8970 | Update copyright years. | |
8971 | ||
745e411d DM |
8972 | 2015-12-21 David Malcolm <dmalcolm@redhat.com> |
8973 | ||
8974 | * c-common.c (binary_op_error): Convert first param from | |
8975 | location_t to rich_location * and use it when emitting an error. | |
8976 | * c-common.h (binary_op_error): Convert first param from | |
8977 | location_t to rich_location *. | |
8978 | ||
de67c4c3 DM |
8979 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
8980 | ||
8981 | * c-common.h (conflict_marker_get_final_tok_kind): New prototype. | |
8982 | * c-lex.c (conflict_marker_get_final_tok_kind): New function. | |
8983 | ||
4a38b02b IV |
8984 | 2015-12-15 Ilya Verbin <ilya.verbin@intel.com> |
8985 | ||
8986 | * c-common.c (c_common_attribute_table): Handle "omp declare target | |
8987 | link" attribute. | |
8988 | ||
54d62f51 JJ |
8989 | 2015-12-14 Jakub Jelinek <jakub@redhat.com> |
8990 | ||
8991 | PR c/68833 | |
8992 | * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option. | |
8993 | ||
8d4227c8 TB |
8994 | 2014-12-12 Tobias Burnus <burnus@net-b.de> |
8995 | ||
8996 | PR fortran/68815 | |
8997 | * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining | |
8998 | specifiers (%d, %i,%u and %c). | |
8999 | ||
f6069ccc DM |
9000 | 2015-12-10 David Malcolm <dmalcolm@redhat.com> |
9001 | ||
9002 | * c.opt (Wmisleading-indentation): Add to -Wall for C and C++. | |
9003 | ||
63bbf46d JJ |
9004 | 2015-12-08 Jakub Jelinek <jakub@redhat.com> |
9005 | ||
9006 | PR c/48088 | |
9007 | PR c/68657 | |
9008 | * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning. | |
9009 | * c-pragma.c (handle_pragma_diagnostic): Adjust | |
9010 | control_warning_option caller. | |
9011 | ||
f79520bb DM |
9012 | 2015-12-07 David Malcolm <dmalcolm@redhat.com> |
9013 | ||
9014 | * c-common.c (c_cpp_error): Update for change to | |
9015 | rich_location::set_range. | |
9016 | ||
b3d5bc62 JJ |
9017 | 2015-12-04 Paolo Bonzini <bonzini@gnu.org> |
9018 | ||
9019 | * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if | |
9020 | shifting 1 out of the sign bit. | |
9021 | ||
9022 | 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com> | |
9023 | ||
9024 | * c-common.c (c_common_attribute_table[]): Update max arguments | |
9025 | count for "simd" attribute. | |
9026 | (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments. | |
9027 | ||
6eb4a537 JJ |
9028 | 2015-12-03 Jakub Jelinek <jakub@redhat.com> |
9029 | ||
9030 | PR preprocessor/57580 | |
9031 | * c-ppoutput.c (print): Change printed field to bool. | |
9032 | Move src_file last for smaller padding. | |
9033 | (init_pp_output): Set print.printed to false instead of 0. | |
9034 | (scan_translation_unit): Fix up formatting. Set print.printed | |
9035 | to true after printing something other than newline. | |
9036 | (scan_translation_unit_trad): Set print.printed to true instead of 1. | |
9037 | (maybe_print_line_1): Set print.printed to false instead of 0. | |
9038 | (print_line_1): Likewise. | |
9039 | (do_line_change): Set print.printed to true instead of 1. | |
9040 | (cb_define, dump_queued_macros, cb_include, cb_def_pragma, | |
9041 | dump_macro): Set print.printed to false after printing newline. | |
9042 | ||
4250754e JM |
9043 | 2015-12-02 Jason Merrill <jason@redhat.com> |
9044 | ||
f479b43d JM |
9045 | * c-common.c (fold_for_warn): New. |
9046 | (warn_logical_operator, warn_tautological_cmp) | |
9047 | (check_function_arguments_recurse, maybe_warn_bool_compare): Use it. | |
9048 | ||
4250754e JM |
9049 | * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold) |
9050 | (c_fully_fold_internal, decl_constant_value_for_optimization): | |
9051 | Move to c/c-fold.c. | |
9052 | * c-common.h: Don't declare decl_constant_value_for_optimization. | |
9053 | ||
e9e32ee6 JM |
9054 | 2015-12-02 Joseph Myers <joseph@codesourcery.com> |
9055 | ||
9056 | PR c/68162 | |
9057 | * c-common.h (c_build_qualified_type): Add extra default | |
9058 | arguments. | |
9059 | ||
37d5ad46 JB |
9060 | 2015-12-01 Julian Brown <julian@codesourcery.com> |
9061 | Cesar Philippidis <cesar@codesourcery.com> | |
9062 | James Norris <James_Norris@mentor.com> | |
9063 | ||
9064 | * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA. | |
9065 | * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA. | |
9066 | (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE. | |
9067 | ||
f07862c7 EB |
9068 | 2015-11-30 Eric Botcazou <ebotcazou@adacore.com> |
9069 | ||
9070 | * c-ada-spec.c (print_ada_macros): Remove redundant blank line. | |
9071 | (decl_sloc_common): Delete and move bulk of processing to... | |
9072 | (decl_sloc): ...here. | |
9073 | (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE. | |
9074 | (dump_ada_double_name): Remove S parameter and compute the suffix. | |
9075 | (dump_ada_array_type): Add PARENT parameter. Simplify computation of | |
9076 | element type and deal with an anonymous one. | |
9077 | (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro. | |
9078 | (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type | |
9079 | and remove reference to QUAL_UNION_TYPE. | |
9080 | (dump_nested_types): Make 2 passes on the fields and move bulk to... | |
9081 | (dump_nested_type): ...here. New function extracted from above. | |
9082 | Generate a full declaration for anonymous element type of arrays. | |
9083 | (print_ada_declaration): Really skip anonymous declarations. Remove | |
9084 | references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type. | |
9085 | Clean up processing of declarations of array types and objects. | |
9086 | (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE. | |
9087 | Remove obsolete code and tidy up. | |
9088 | ||
75c8aac3 JH |
9089 | 2015-11-29 Jan Hubicka <hubicka@ucw.cz> |
9090 | ||
9091 | PR c/67581 | |
9092 | * c-common.c (handle_transparent_union_attribute): Update | |
9093 | also type variants. | |
9094 | ||
b58d3df2 ML |
9095 | 2015-11-27 Martin Liska <mliska@suse.cz> |
9096 | ||
9097 | PR c++/68312 | |
9098 | * array-notation-common.c (cilkplus_extract_an_triplets): | |
9099 | Release vector of vectors. | |
9100 | * cilk.c (gimplify_cilk_spawn): Free allocated memory. | |
9101 | ||
89a01fcf EB |
9102 | 2015-11-26 Eric Botcazou <ebotcazou@adacore.com> |
9103 | ||
9104 | PR c++/68527 | |
9105 | * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node. | |
9106 | (print_ada_struct_decl): Likewise. | |
9107 | ||
cc5c5226 IZ |
9108 | 2015-11-23 Igor Zamyatin <igor.zamyatin@intel.com> |
9109 | ||
9110 | PR c++/68001 | |
9111 | * c-gimplify.c (c_gimplify_expr): Stop the process if see an error. | |
9112 | * cilk.c (recognize_spawn): Determine location in a more precise | |
9113 | way. | |
9114 | ||
269adb9d JM |
9115 | 2015-11-19 Jason Merrill <jason@redhat.com> |
9116 | ||
9117 | * c-common.c (shorten_compare): But look through macros from | |
9118 | system headers. | |
9119 | ||
d0eccfcd JM |
9120 | 2015-11-18 Jason Merrill <jason@redhat.com> |
9121 | ||
9122 | * c-common.c (shorten_compare): Don't -Wtype-limits if the | |
9123 | non-constant operand comes from a macro. | |
9124 | ||
3e44547c JM |
9125 | 2015-11-17 Jason Merrill <jason@redhat.com> |
9126 | ||
9127 | PR bootstrap/68346 | |
9128 | * c-common.c (warn_tautological_cmp): Fold before checking for | |
9129 | constants. | |
9130 | ||
0f62c7a0 MP |
9131 | 2015-11-16 Marek Polacek <polacek@redhat.com> |
9132 | ||
9133 | PR c++/68362 | |
9134 | * c-common.c (check_case_bounds): Fold low and high cases. | |
9135 | ||
a868811e MP |
9136 | 2015-11-16 Marek Polacek <polacek@redhat.com> |
9137 | ||
9138 | * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P. | |
9139 | * c-common.c (c_common_get_alias_set): Likewise. | |
9140 | (handle_visibility_attribute): Likewise. | |
9141 | ||
fff77217 KY |
9142 | 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com> |
9143 | ||
9144 | * c-common.c (handle_simd_attribute): New. | |
9145 | (struct attribute_spec): Add entry for "simd". | |
9146 | (handle_simd_attribute): New. | |
9147 | ||
269e63b7 KT |
9148 | 2015-11-13 Kai Tietz <ktietz70@googlemail.com> |
9149 | ||
9150 | * c-lex.c (interpret_float): Use fold_convert. | |
9151 | ||
ebedc9a3 DM |
9152 | 2015-11-13 David Malcolm <dmalcolm@redhat.com> |
9153 | ||
9154 | * c-common.c (c_fully_fold_internal): Capture existing souce_range, | |
9155 | and store it on the result. | |
9156 | * c-opts.c (c_common_init_options): Set | |
9157 | global_dc->colorize_source_p. | |
9158 | ||
6e232ba4 JN |
9159 | 2015-11-12 James Norris <jnorris@codesourcery.com> |
9160 | Joseph Myers <joseph@codesourcery.com> | |
9161 | ||
7365279f | 9162 | * c-pragma.c (oacc_pragmas): Add entry for declare directive. |
6e232ba4 JN |
9163 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE. |
9164 | (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and | |
9165 | PRAGMA_OACC_CLAUSE_LINK. | |
9166 | ||
e78bede6 MP |
9167 | 2015-11-11 Marek Polacek <polacek@redhat.com> |
9168 | ||
9169 | PR c/68107 | |
9170 | PR c++/68266 | |
9171 | * c-common.c (valid_array_size_p): New function. | |
9172 | * c-common.h (valid_array_size_p): Declare. | |
9173 | ||
3f8257db | 9174 | 2015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr> |
4ac93c7c DH |
9175 | |
9176 | PR bootstrap/68271 | |
9177 | * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256. | |
9178 | ||
69f293c9 AM |
9179 | 2015-11-11 Andrew MacLeod <amacleod@redhat.com> |
9180 | ||
9181 | * array-notation-common.c: Remove unused header files. | |
9182 | * c-ada-spec.c: Likewise. | |
9183 | * c-cilkplus.c: Likewise. | |
9184 | * c-common.c: Likewise. | |
9185 | * c-cppbuiltin.c: Likewise. | |
9186 | * c-dump.c: Likewise. | |
9187 | * c-format.c: Likewise. | |
9188 | * c-gimplify.c: Likewise. | |
9189 | * c-indentation.c: Likewise. | |
9190 | * c-lex.c: Likewise. | |
9191 | * c-omp.c: Likewise. | |
9192 | * c-opts.c: Likewise. | |
9193 | * c-pch.c: Likewise. | |
9194 | * c-ppoutput.c: Likewise. | |
9195 | * c-pragma.c: Likewise. | |
9196 | * c-pretty-print.c: Likewise. | |
9197 | * c-semantics.c: Likewise. | |
9198 | * c-ubsan.c: Likewise. | |
9199 | * cilk.c: Likewise. | |
9200 | * stub-objc.c: Likewise. | |
9201 | ||
3a40d81d NS |
9202 | 2015-11-09 Thomas Schwinge <thomas@codesourcery.com> |
9203 | Cesar Philippidis <cesar@codesourcery.com> | |
9204 | James Norris <jnorris@codesourcery.com> | |
9205 | Julian Brown <julian@codesourcery.com> | |
9206 | Nathan Sidwell <nathan@codesourcery.com> | |
9207 | ||
9208 | * c-pragma.c (oacc_pragmas): Add "routine". | |
9209 | * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE. | |
9210 | ||
ee45a32d EB |
9211 | 2015-11-08 Eric Botcazou <ebotcazou@adacore.com> |
9212 | ||
9213 | * c-common.c (c_common_attributes): Add scalar_storage_order. | |
9214 | (handle_scalar_storage_order_attribute): New function. | |
9215 | * c-pragma.c (global_sso): New variable. | |
9216 | (maybe_apply_pragma_scalar_storage_order): New function. | |
9217 | (handle_pragma_scalar_storage_order): Likewise. | |
9218 | (init_pragma): Register scalar_storage_order. | |
9219 | * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare. | |
9220 | * c.opt (Wscalar-storage-order): New warning. | |
9221 | (fsso-struct=): New option. | |
9222 | ||
eb11eb15 MS |
9223 | 2015-11-08 Martin Sebor <msebor@redhat.com> |
9224 | ||
9225 | * c.opt (Wplacement-new): Add a period to the end of a sentence. | |
9226 | ||
0aad0198 RS |
9227 | 2015-11-07 Richard Sandiford <richard.sandiford@arm.com> |
9228 | ||
9229 | * c-common.c: Don't undef DEF_BUILTIN. | |
9230 | ||
8a645150 DM |
9231 | 2015-11-06 David Malcolm <dmalcolm@redhat.com> |
9232 | ||
9233 | * c-common.c (c_cpp_error): Convert parameter from location_t to | |
9234 | rich_location *. Eliminate the "column_override" parameter and | |
9235 | the call to diagnostic_override_column. | |
9236 | Update the "done_lexing" clause to set range 0 | |
9237 | on the rich_location, rather than overwriting a location_t. | |
9238 | * c-common.h (c_cpp_error): Convert parameter from location_t to | |
9239 | rich_location *. Eliminate the "column_override" parameter. | |
9240 | ||
7a5e4956 CP |
9241 | 2015-11-05 Cesar Philippidis <cesar@codesourcery.com> |
9242 | Thomas Schwinge <thomas@codesourcery.com> | |
9243 | James Norris <jnorris@codesourcery.com> | |
9244 | ||
9245 | * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR, | |
9246 | AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION | |
9247 | clauses with parallel and kernels and loops. | |
9248 | * c-pragma.h (enum pragma_omp_clause): Add entries for | |
9249 | PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}. | |
9250 | * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS, | |
9251 | NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO, | |
9252 | INDEPENDENT,SEQ}. | |
9253 | (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}. | |
9254 | ||
e2f5cc96 MS |
9255 | 2015-11-05 Martin Sebor <msebor@redhat.com> |
9256 | ||
9257 | PR c++/67942 | |
9258 | * c.opt (-Wplacement-new): New option. | |
9259 | ||
e01d41e5 JJ |
9260 | 2015-11-05 Jakub Jelinek <jakub@redhat.com> |
9261 | ||
9262 | * c-common.h (c_finish_omp_atomic): Add TEST argument. | |
9263 | (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes. | |
9264 | * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call | |
9265 | save_expr or create_tmp_var* if TEST is true. | |
9266 | (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always. | |
9267 | Don't call add_stmt here. | |
9268 | (struct c_omp_check_loop_iv_data): New type. | |
9269 | (c_omp_check_loop_iv_r, c_omp_check_loop_iv, | |
9270 | c_omp_check_loop_iv_exprs): New functions. | |
9271 | (c_omp_split_clauses): Adjust for lastprivate being allowed on | |
9272 | distribute. | |
9273 | (c_omp_declare_simd_clauses_to_numbers): Change | |
9274 | OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers. | |
9275 | (c_omp_declare_simd_clauses_to_decls): Similarly change those | |
9276 | from numbers to PARM_DECLs. | |
9277 | ||
595278be MM |
9278 | 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com> |
9279 | ||
9280 | * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use | |
9281 | flag_checking. | |
9282 | ||
3f8257db | 9283 | 2015-11-03 Bernd Schmidt <bschmidt@redhat.com> |
c85158de MS |
9284 | |
9285 | PR c++-common/67882 | |
b3d5bc62 JJ |
9286 | * c-common.h (fold_offsetof_1): Add argument. |
9287 | * c-common.c (fold_offsetof_1): Diagnose more invalid | |
c85158de MS |
9288 | offsetof expressions that reference elements past the end of |
9289 | an array. | |
9290 | ||
4bf9e5a8 TS |
9291 | 2015-11-03 Thomas Schwinge <thomas@codesourcery.com> |
9292 | Chung-Lin Tang <cltang@codesourcery.com> | |
9293 | ||
9294 | * c-pragma.c (oacc_pragmas): Add "atomic". | |
9295 | * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC. | |
9296 | ||
3b1661a9 ES |
9297 | 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com> |
9298 | ||
9299 | * c-common.c (handle_target_clones_attribute): New. | |
9300 | (c_common_attribute_table): Add handle_target_clones_attribute. | |
9301 | (handle_always_inline_attribute): Add check on target_clones attribute. | |
9302 | (handle_target_attribute): Ditto. | |
9303 | ||
2adfab87 AM |
9304 | 2015-10-29 Andrew MacLeod <amacleod@redhat.com> |
9305 | ||
9306 | * array-notation-common.c: Reorder #include's and remove duplicates. | |
9307 | * c-ada-spec.c: Likewise. | |
9308 | * c-cilkplus.c: Likewise. | |
9309 | * c-common.c: Likewise. | |
9310 | * c-cppbuiltin.c: Likewise. | |
9311 | * c-dump.c: Likewise. | |
9312 | * c-format.c: Likewise. | |
9313 | * c-gimplify.c: Likewise. | |
9314 | * c-indentation.c: Likewise. | |
9315 | * c-lex.c: Likewise. | |
9316 | * c-omp.c: Likewise. | |
9317 | * c-opts.c: Likewise. | |
9318 | * c-pch.c: Likewise. | |
9319 | * c-ppoutput.c: Likewise. | |
9320 | * c-pragma.c: Likewise. | |
9321 | * c-pretty-print.c: Likewise. | |
9322 | * c-semantics.c: Likewise. | |
9323 | * c-ubsan.c: Likewise. | |
9324 | * cilk.c: Likewise. | |
9325 | * stub-objc.c: Likewise. | |
9326 | ||
d90ec4f2 JM |
9327 | 2015-10-28 Jason Merrill <jason@redhat.com> |
9328 | ||
9329 | * c-common.c (pointer_int_sum): Fold the MULT_EXPR. | |
9330 | ||
88bae6f4 TS |
9331 | 2015-10-27 Thomas Schwinge <thomas@codesourcery.com> |
9332 | James Norris <jnorris@codesourcery.com> | |
9333 | Cesar Philippidis <cesar@codesourcery.com> | |
9334 | ||
9335 | PR c/64765 | |
9336 | PR c/64880 | |
9337 | * c-common.h (c_oacc_split_loop_clauses): Declare function. | |
9338 | * c-omp.c (c_oacc_split_loop_clauses): New function. | |
9339 | ||
b1726d6c MS |
9340 | 2015-10-21 Martin Sebor <msebor@redhat.com> |
9341 | ||
9342 | PR driver/68043 | |
9343 | * c.opt: End each sentence that describes an option with a period. | |
9344 | ||
fa60eeb9 MP |
9345 | 2015-10-20 Marek Polacek <polacek@redhat.com> |
9346 | ||
9347 | * array-notation-common.c (is_cilkplus_vector_p): Define. | |
9348 | * c-common.h (is_cilkplus_vector_p): Declare. | |
9349 | ||
95979049 MP |
9350 | 2015-10-20 Marek Polacek <polacek@redhat.com> |
9351 | ||
9352 | * c.opt (std=gnu++11): Do not describe as experimental. | |
9353 | (std=gnu++14): Likewise. | |
9354 | ||
2a9fb712 JM |
9355 | 2015-10-19 Jason Merrill <jason@redhat.com> |
9356 | ||
9357 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
9358 | __cpp_nontype_template_args. | |
9359 | ||
13b380a3 JM |
9360 | 2015-10-19 Jason Merrill <jason@redhat.com> |
9361 | ||
9362 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
9363 | __cpp_enumerator_attributes, __cpp_fold_expressions, | |
9364 | __cpp_unicode_characters. | |
9365 | ||
d9a6bd32 JJ |
9366 | 2015-10-13 Jakub Jelinek <jakub@redhat.com> |
9367 | Aldy Hernandez <aldyh@redhat.com> | |
9368 | ||
9369 | * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9, | |
9370 | DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11. | |
9371 | (c_define_builtins): Likewise. | |
9372 | * c-common.h (enum c_omp_clause_split): Add | |
9373 | C_OMP_CLAUSE_SPLIT_TASKLOOP. | |
9374 | (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument. | |
9375 | (c_finish_omp_for): Add ORIG_DECLV argument. | |
9376 | * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as | |
9377 | 201511 instead of 201307. | |
9378 | * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set | |
9379 | OMP_CRITICAL_CLAUSES to it. | |
9380 | (c_finish_omp_ordered): Add CLAUSES argument, set | |
9381 | OMP_ORDERED_CLAUSES to it. | |
9382 | (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS | |
9383 | to it if OMP_FOR. Clear DECL_INITIAL on the IVs. | |
9384 | (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite | |
9385 | constructs and new OpenMP 4.5 clauses. Clear | |
9386 | OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add | |
9387 | verification code. | |
9388 | * c-pragma.c (omp_pragmas_simd): Add taskloop. | |
9389 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP. | |
9390 | (enum pragma_omp_clause): Add | |
9391 | PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR} | |
9392 | and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}. | |
9393 | ||
624d31fe RS |
9394 | 2015-10-05 Richard Sandiford <richard.sandiford@arm.com> |
9395 | ||
9396 | * c-lex.c (interpret_float): Use real_equal instead of | |
9397 | REAL_VALUES_EQUAL. | |
9398 | ||
b8fd7909 JM |
9399 | 2015-10-04 Jason Merrill <jason@redhat.com> |
9400 | ||
9401 | Implement N4514, C++ Extensions for Transactional Memory. | |
9402 | * c-common.c (c_common_reswords): Add C++ TM TS keywords. | |
9403 | (c_common_attribute_table): Add transaction_safe_dynamic. | |
9404 | transaction_safe now affects type identity. | |
9405 | (handle_tm_attribute): Handle transaction_safe_dynamic. | |
9406 | * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT, | |
9407 | RID_ATOMIC_CANCEL, RID_SYNCHRONIZED. | |
9408 | (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED. | |
9409 | (D_TRANSMEM): New. | |
9410 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory. | |
9411 | * c-pretty-print.c (pp_c_attributes_display): Don't print | |
9412 | transaction_safe in C++. | |
9413 | ||
12651878 MP |
9414 | 2015-10-02 Marek Polacek <polacek@redhat.com> |
9415 | ||
9416 | * c.opt (Wduplicated-cond): Don't enable by -Wall anymore. | |
9417 | ||
3e3b8d63 MP |
9418 | 2015-10-02 Marek Polacek <polacek@redhat.com> |
9419 | ||
9420 | PR c/64249 | |
9421 | * c-common.c (warn_duplicated_cond_add_or_warn): New function. | |
9422 | * c-common.h (warn_duplicated_cond_add_or_warn): Declare. | |
9423 | * c.opt (Wduplicated-cond): New option. | |
9424 | ||
0d1a8f75 JM |
9425 | 2015-10-01 Joseph Myers <joseph@codesourcery.com> |
9426 | ||
9427 | * c.opt (std=c11): Do not describe as experimental. | |
9428 | (std=gnu11): Likewise. | |
9429 | (std=iso9899:2011): Likewise. | |
9430 | ||
3e32ee19 NS |
9431 | 2015-09-28 Nathan Sidwell <nathan@codesourcery.com> |
9432 | ||
9433 | * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New. | |
9434 | (DEF_FUNCTION_TYPE_VAR_11): Delete. | |
9435 | ||
974348ee MP |
9436 | 2015-09-25 Marek Polacek <polacek@redhat.com> |
9437 | ||
9438 | * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code. | |
9439 | (ubsan_instrument_shift): Likewise. | |
9440 | ||
15dbc1a6 MP |
9441 | 2015-09-25 Marek Polacek <polacek@redhat.com> |
9442 | ||
9443 | PR sanitizer/64906 | |
9444 | * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1. | |
9445 | ||
6b95d7cc PP |
9446 | 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org> |
9447 | ||
9448 | * c-indentation.c (should_warn_for_misleading_indentation): | |
9449 | Compare next_stmt_vis_column with guard_line_first_nws instead | |
9450 | of with guard_line_vis_column. | |
9451 | ||
c1822f9c MLI |
9452 | 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9453 | ||
9454 | PR c/49654 | |
9455 | PR c/49655 | |
9456 | * c-pragma.c (handle_pragma_diagnostic): Detect non-warning | |
9457 | options and options not valid for the current language. | |
9458 | ||
d5398058 PP |
9459 | 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org> |
9460 | ||
9461 | * c-indentation.c (should_warn_for_misleading_indentation): | |
9462 | Float out and consolidate the calls to get_visual_column that | |
9463 | are passed guard_exploc as an argument. Compare | |
9464 | next_stmt_vis_column with guard_line_first_nws instead of with | |
9465 | body_line_first_nws. | |
9466 | ||
6b333269 NS |
9467 | 2015-09-22 Nathan Sidwell <nathan@codesourcery.com> |
9468 | ||
9469 | * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates, | |
9470 | Wnamespaces): New C++ warnings. | |
9471 | ||
a75f1574 JM |
9472 | 2015-09-22 Jason Merrill <jason@redhat.com> |
9473 | ||
9474 | * c-common.h (abi_compat_version_crosses): New. | |
9475 | (warn_abi_version): Declare. | |
9476 | * c-common.c: Define it. | |
9477 | * c-opts.c (c_common_post_options): Handle it. | |
9478 | flag_abi_compat_version defaults to 8. | |
9479 | ||
bdaaa8b7 VV |
9480 | 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com> |
9481 | ||
9482 | Complete the implementation of N4230, Nested namespace definition. | |
9483 | * c-cppbuiltin.c: Add __cpp_namespace_attributes and | |
9484 | __cpp_nested_namespace_definitions. | |
9485 | ||
eaa797e8 MLI |
9486 | 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9487 | ||
9488 | * c-pragma.c (handle_pragma_diagnostic): Fix wrong return. | |
9489 | ||
c4914de6 MLI |
9490 | 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9491 | ||
9492 | * c-pragma.c (handle_pragma_diagnostic): Use explicit location | |
9493 | when warning. | |
9494 | * c-pragma.h (pragma_lex): Add optional loc argument. | |
9495 | ||
fcb87c50 MM |
9496 | 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com> |
9497 | ||
9498 | * c-format.c (check_format_arg): Adjust to use common block size in all | |
9499 | object pools. | |
9500 | ||
31bdd08a DM |
9501 | 2015-09-15 David Malcolm <dmalcolm@redhat.com> |
9502 | ||
9503 | * c-format.c (location_from_offset): Update for change in | |
9504 | signature of location_get_source_line. | |
9505 | * c-indentation.c (get_visual_column): Likewise. | |
9506 | (line_contains_hash_if): Likewise. | |
9507 | ||
aa9f4b4c MP |
9508 | 2015-09-14 Marek Polacek <polacek@redhat.com> |
9509 | ||
9510 | * c-opts.c (c_common_post_options): Set C++ standard earlier, before | |
9511 | setting various warnings. | |
9512 | ||
aa256c4a MP |
9513 | 2015-09-14 Marek Polacek <polacek@redhat.com> |
9514 | ||
9515 | * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting | |
9516 | a negative value. | |
9517 | ||
0f876f22 MW |
9518 | 2015-09-11 Mark Wielaard <mjw@redhat.com> |
9519 | ||
9520 | PR c/28901 | |
9521 | * c.opt (Wunused-variable): Option from common.opt. | |
9522 | (Wunused-const-variable): New option. | |
9523 | ||
273aa49e PC |
9524 | 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com> |
9525 | ||
9526 | PR c++/53184 | |
9527 | * c.opt ([Wsubobject-linkage]): Add. | |
9528 | ||
1807ffc1 MS |
9529 | 2015-09-03 Martin Sebor <msebor@redhat.com> |
9530 | ||
9531 | PR c/66516 | |
9532 | * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new | |
9533 | functions. | |
9534 | * c-common.c (reject_gcc_builtin): Define. | |
9535 | ||
38942840 BI |
9536 | 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com> |
9537 | ||
9538 | PR middle-end/60586 | |
9539 | * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New | |
9540 | prototype. | |
9541 | * c-gimplify.c (c_gimplify_expr): Added a call to the function | |
9542 | cilk_gimplify_call_params_in_spawned_fn. | |
9543 | * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function. | |
9544 | (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR | |
9545 | unwrapping. | |
9546 | ||
c316b5e4 MP |
9547 | 2015-08-25 Marek Polacek <polacek@redhat.com> |
9548 | ||
9549 | PR middle-end/67330 | |
9550 | * c-common.c (handle_weak_attribute): Don't check whether the | |
9551 | visibility can be changed here. | |
9552 | ||
584a7c46 MLI |
9553 | 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9554 | ||
9555 | * c-lex.c (c_lex_with_flags): Use explicit locations. | |
9556 | ||
a79683d5 TS |
9557 | 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org> |
9558 | ||
9559 | * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h, | |
9560 | c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless | |
9561 | ||
61717a45 FXC |
9562 | 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
9563 | ||
9564 | PR middle-end/36757 | |
9565 | * c-common.c (check_builtin_function_arguments): Add check | |
9566 | for BUILT_IN_SIGNBIT argument. | |
9567 | ||
329524f5 PC |
9568 | 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com> |
9569 | ||
9570 | PR c++/67160 | |
9571 | * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value | |
9572 | in c++1z mode. | |
9573 | ||
4ee55665 MP |
9574 | 2015-08-17 Marek Polacek <polacek@redhat.com> |
9575 | ||
9576 | * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing | |
9577 | with whitespaces before qualifier names. | |
9578 | ||
b893e375 MP |
9579 | 2015-08-12 Marek Polacek <polacek@redhat.com> |
9580 | ||
9581 | PR c++/55095 | |
9582 | * c-common.c (maybe_warn_shift_overflow): Properly handle | |
9583 | left-shifting 1 into the sign bit. | |
9584 | ||
c2d89095 MLI |
9585 | 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9586 | ||
9587 | * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy. | |
9588 | ||
971e17ff AS |
9589 | 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com> |
9590 | Braden Obrzut <admin@maniacsvault.net> | |
9591 | Jason Merrill <jason@redhat.com> | |
9592 | ||
9593 | Add C++ Concepts TS support. | |
9594 | * c-common.c (c_common_reswords): Add __is_same_as, concept, requires. | |
9595 | * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES. | |
9596 | (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New. | |
9597 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts. | |
9598 | * c-opts.c (set_std_cxx1z): Set flag_concepts. | |
9599 | * c.opt (fconcepts): New. | |
9600 | ||
b3d5bc62 JJ |
9601 | 2015-08-02 Martin Sebor <msebor@redhat.com> |
9602 | ||
9603 | * c.opt (-Wframe-address): New warning option. | |
9604 | ||
8ebca419 PP |
9605 | 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org> |
9606 | ||
9607 | * c-indentation.c (should_warn_for_misleading_indentation): | |
9608 | Improve heuristics. | |
9609 | ||
1a1e101f PP |
9610 | 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org> |
9611 | ||
9612 | * c-indentation.c (get_visual_column): Add parameter first_nws, | |
9613 | use it. Update comment documenting the function. | |
9614 | (is_first_nonwhitespace_on_line): Remove. | |
9615 | (should_warn_for_misleading_indentation): Replace usage of | |
9616 | of is_first_nonwhitespace_on_line with get_visual_column. | |
9617 | ||
992118a1 PP |
9618 | 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org> |
9619 | ||
9620 | * c-indentation.h (struct token_indent_info): Define. | |
9621 | (get_token_indent_info): Define. | |
9622 | (warn_for_misleading_information): Declare. | |
9623 | * c-common.h (warn_for_misleading_information): Remove. | |
9624 | * c-identation.c (warn_for_misleading_indentation): | |
9625 | Change declaration to take three token_indent_infos. Adjust | |
9626 | accordingly. | |
9627 | * c-identation.c (should_warn_for_misleading_indentation): | |
9628 | Likewise. Bail out early if the body is a compound statement. | |
9629 | (guard_tinfo_to_string): Define. | |
9630 | ||
e8fa3817 JM |
9631 | 2015-07-30 Jason Merrill <jason@redhat.com> |
9632 | ||
9633 | * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print | |
9634 | '*' for reference decay. | |
9635 | ||
173864e8 MP |
9636 | 2015-07-30 Marek Polacek <polacek@redhat.com> |
9637 | ||
9638 | * c-common.c (warn_tautological_cmp): Bail for float types. | |
9639 | ||
f2afe6dd MP |
9640 | 2015-07-27 Marek Polacek <polacek@redhat.com> |
9641 | ||
9642 | PR bootstrap/67030 | |
9643 | * c-common.c (warn_tautological_cmp): Don't warn for macro expansion. | |
9644 | ||
05b28fd6 MP |
9645 | 2015-07-27 Marek Polacek <polacek@redhat.com> |
9646 | ||
9647 | PR c++/66555 | |
9648 | PR c/54979 | |
9649 | * c-common.c (find_array_ref_with_const_idx_r): New function. | |
9650 | (warn_tautological_cmp): New function. | |
9651 | * c-common.h (warn_tautological_cmp): Declare. | |
9652 | * c.opt (Wtautological-compare): New option. | |
9653 | ||
5a5062b8 MP |
9654 | 2015-07-23 Marek Polacek <polacek@redhat.com> |
9655 | ||
9656 | * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout. | |
9657 | (ubsan_instrument_shift): Likewise. | |
9658 | ||
dc891fe7 MP |
9659 | 2015-07-23 Marek Polacek <polacek@redhat.com> |
9660 | ||
9661 | PR sanitizer/66908 | |
9662 | * c-ubsan.c: Include gimplify.h. | |
9663 | (ubsan_instrument_division): Unshare OP0 and OP1. | |
9664 | (ubsan_instrument_shift): Likewise. | |
9665 | ||
451b5e48 MP |
9666 | 2015-07-20 Marek Polacek <polacek@redhat.com> |
9667 | Richard Sandiford <richard.sandiford@arm.com> | |
9668 | ||
9669 | PR c++/55095 | |
9670 | * c-common.c (c_fully_fold_internal): Warn about left shift overflows. | |
9671 | Use EXPR_LOC_OR_LOC. | |
9672 | (maybe_warn_shift_overflow): New function. | |
9673 | * c-common.h (maybe_warn_shift_overflow): Declare. | |
9674 | * c-opts.c (c_common_post_options): Set warn_shift_overflow. | |
9675 | * c.opt (Wshift-overflow): New option. | |
9676 | ||
fb0b2914 ML |
9677 | 2015-07-16 Martin Liska <mliska@suse.cz> |
9678 | ||
9679 | * c-format.c (static void check_format_info_main): Use | |
9680 | object_allocator instead of pool_allocator. | |
9681 | (check_format_arg): Likewise. | |
9682 | (check_format_info_main): Likewise. | |
9683 | ||
903f5c23 AM |
9684 | 2015-07-15 Andrew MacLeod <amacleod@redhat.com> |
9685 | ||
9686 | * c-opts.c: Remove multiline #include comment. | |
9687 | ||
026c3cfd AH |
9688 | 2015-07-12 Aldy Hernandez <aldyh@redhat.com> |
9689 | ||
9690 | * c-common.c: Fix double word typos. | |
9691 | ||
bb49ee66 EB |
9692 | 2015-07-10 Eric Botcazou <ebotcazou@adacore.com> |
9693 | ||
9694 | * c-ada-spec.h (cpp_operation): Revert latest change. | |
9695 | * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit | |
9696 | constructors and destructors. | |
9697 | ||
1916bcb5 AM |
9698 | 2015-07-09 Andrew MacLeod <amacleod@redhat.com> |
9699 | ||
9700 | * c-common.h: Adjust includes for flags.h changes. | |
9701 | * stub-objc.c: Likewise. | |
026c3cfd | 9702 | |
a9dcd529 EB |
9703 | 2015-07-08 Eric Botcazou <ebotcazou@adacore.com> |
9704 | ||
9705 | * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR. | |
9706 | * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors. | |
9707 | ||
b03b462f JJ |
9708 | 2015-07-08 Jakub Jelinek <jakub@redhat.com> |
9709 | ||
9710 | * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses | |
9711 | are to be removed, return NULL rather than original clauses list. | |
9712 | ||
c7131fb2 AM |
9713 | 2015-07-07 Andrew MacLeod <amacleod@redhat.com> |
9714 | ||
9715 | * array-notation-common.c: Adjust includes. | |
9716 | * c-ada-spec.c: Likewise. | |
9717 | * c-cilkplus.c: Likewise. | |
9718 | * c-common.h: Likewise. | |
9719 | * c-cppbuiltin.c: Likewise. | |
9720 | * c-dump.c: Likewise. | |
9721 | * c-format.c: Likewise. | |
9722 | * c-gimplify.c: Likewise. | |
9723 | * c-indentation.c: Likewise. | |
9724 | * c-lex.c: Likewise. | |
9725 | * c-omp.c: Likewise. | |
9726 | * c-opts.c: Likewise. | |
9727 | * c-pch.c: Likewise. | |
9728 | * c-ppoutput.c: Likewise. | |
9729 | * c-pragma.c: Likewise. | |
9730 | * c-pretty-print.c: Likewise. | |
9731 | * c-semantics.c: Likewise. | |
9732 | * c-ubsan.c: Likewise. | |
9733 | * cilk.c: Likewise. | |
9734 | * stub-objc.c: Likewise. | |
9735 | ||
2a7fb83f EB |
9736 | 2015-07-07 Eric Botcazou <ebotcazou@adacore.com> |
9737 | ||
9738 | * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR. | |
9739 | * c-ada-spec.c (print_ada_declaration): Skip move constructors. | |
9740 | ||
a03c9bf1 JM |
9741 | 2015-07-01 Jason Merrill <jason@redhat.com> |
9742 | ||
36a85135 JM |
9743 | * c-common.h (D_CXX11): Rename from D_CXX0X. |
9744 | (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X. | |
9745 | * c-common.c: Adjust. | |
9746 | ||
e7fa68d5 JM |
9747 | * c-opts.c (c_common_post_options): Default to C++14. |
9748 | ||
a03c9bf1 JM |
9749 | * c-opts.c (c_common_post_options): Highest ABI level is now 10. |
9750 | ||
fe95b036 ESR |
9751 | 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net> |
9752 | ||
9753 | Implement N4197 - Adding u8 character literals | |
b3d5bc62 | 9754 | * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like |
a64be36b | 9755 | CPP_CHAR. |
b3d5bc62 | 9756 | * c-common.c (c_parse_error): Print CPP_UTF8CHAR and |
a64be36b | 9757 | CPP_UTF8CHAR_USERDEF tokens. |
b3d5bc62 | 9758 | * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF |
a64be36b EB |
9759 | and CPP_UTF8CHAR tokens. |
9760 | (lex_charconst): Treat CPP_UTF8CHAR token. | |
fe95b036 | 9761 | |
da2e71c9 MLI |
9762 | 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9763 | ||
9764 | PR fortran/66605 | |
9765 | * c-common.c (do_warn_unused_parameter): Move here. | |
9766 | * c-common.h (do_warn_unused_parameter): Declare. | |
9767 | ||
b155cfd9 MP |
9768 | 2015-06-29 Marek Polacek <polacek@redhat.com> |
9769 | ||
9770 | PR c/66322 | |
9771 | * c-common.c (check_case_bounds): Add bool * parameter. Set | |
9772 | OUTSIDE_RANGE_P. | |
9773 | (c_add_case_label): Add bool * parameter. Pass it down to | |
9774 | check_case_bounds. | |
9775 | (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool | |
9776 | warning here. | |
9777 | * c-common.h (c_add_case_label, c_do_switch_warnings): Update | |
9778 | declarations. | |
9779 | ||
31521951 MP |
9780 | 2015-06-27 Marek Polacek <polacek@redhat.com> |
9781 | ||
9782 | * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P | |
9783 | or VECTOR_INTEGER_TYPE_P throughout. | |
9784 | * c-gimplify.c: Likewise. | |
9785 | ||
22d03525 MP |
9786 | 2015-06-26 Marek Polacek <polacek@redhat.com> |
9787 | ||
9788 | * array-notation-common.c (find_rank): Use INDIRECT_REF_P. | |
9789 | * c-common.c (c_fully_fold_internal): Likewise. | |
9790 | (c_alignof_expr): Likewise. | |
9791 | * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise. | |
9792 | * c-ubsan.c (ubsan_instrument_bounds): Likewise. | |
b1726d6c | 9793 | * cilk.c (create_parm_list): Likewise. |
22d03525 | 9794 | |
af05e6e5 MP |
9795 | 2015-06-26 Marek Polacek <polacek@redhat.com> |
9796 | ||
9797 | * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P. | |
9798 | ||
f0889939 AM |
9799 | 2015-06-25 Andrew MacLeod <amacleod@redhat.com> |
9800 | ||
9801 | * c-common.c: Remove ipa-ref.h and plugin-api.h from include list. | |
9802 | * c-gimplify.c: Likewise. | |
9803 | * c-pragma.c: Likewise. | |
9804 | * c-ubsan.c: Likewise. | |
9805 | * cilk.c: Likewise. | |
9806 | ||
ca752f39 RS |
9807 | 2015-06-25 Richard Sandiford <richard.sandiford@arm.com> |
9808 | ||
9809 | * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than | |
9810 | ggc_hasher. | |
9811 | ||
16a16ec7 AM |
9812 | 2015-06-25 Andrew MacLeod <amacleod@redhat.com> |
9813 | ||
9814 | * cilk.c: Move calls.h after tm.h in the include chain. | |
9815 | ||
0ae9bd27 MP |
9816 | 2015-06-25 Marek Polacek <polacek@redhat.com> |
9817 | ||
9818 | * array-notation-common.c: Use VAR_P throughout. | |
9819 | * c-ada-spec.c: Likewise. | |
9820 | * c-common.c: Likewise. | |
9821 | * c-format.c: Likewise. | |
9822 | * c-gimplify.c: Likewise. | |
9823 | * c-omp.c: Likewise. | |
9824 | * c-pragma.c: Likewise. | |
9825 | * c-pretty-print.c: Likewise. | |
9826 | * cilk.c: Likewise. | |
9827 | ||
62f9079a MP |
9828 | 2015-06-25 Marek Polacek <polacek@redhat.com> |
9829 | ||
9830 | * cilk.c (extract_free_variables): Use is_global_var. | |
9831 | ||
0fa16060 RS |
9832 | 2015-06-23 Richard Sandiford <richard.sandiford@arm.com> |
9833 | ||
9834 | * c-common.c: Don't include target-def.h. | |
9835 | ||
a68ae2e1 MP |
9836 | 2015-06-23 Marek Polacek <polacek@redhat.com> |
9837 | ||
9838 | * c-common.c (warn_logical_operator): Use tree_int_cst_equal | |
9839 | when comparing INTEGER_CSTs. | |
9840 | ||
c6a2f2d9 PMR |
9841 | 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com> |
9842 | ||
9843 | * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS. | |
9844 | * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL | |
9845 | (dump_ada_template): Skip partially specialized types. | |
9846 | ||
6b4db501 MM |
9847 | 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com> |
9848 | ||
9849 | * c-common.c (scalar_to_vector): Use std::swap instead of manually | |
9850 | swapping. | |
9851 | ||
abb226c9 AM |
9852 | 2015-06-17 Andrew MacLeod <amacleod@redhat.com> |
9853 | ||
9854 | * array-notation-common.c: Do not include input.h, line-map.h or is-a.h. | |
9855 | * c-ada-spec.c: Likewise. | |
9856 | * c-cilkplus.c: Likewise. | |
9857 | * c-common.c: Likewise. | |
9858 | * c-common.h: Likewise. | |
9859 | * c-cppbuiltin.c: Likewise. | |
9860 | * c-dump.c: Likewise. | |
9861 | * c-format.c: Likewise. | |
9862 | * c-gimplify.c: Likewise. | |
9863 | * c-indentation.c: Likewise. | |
9864 | * c-lex.c: Likewise. | |
9865 | * c-omp.c: Likewise. | |
9866 | * c-opts.c: Likewise. | |
9867 | * c-pch.c: Likewise. | |
9868 | * c-ppoutput.c: Likewise. | |
9869 | * c-pragma.c: Likewise. | |
9870 | * c-pretty-print.c: Likewise. | |
9871 | * c-semantics.c: Likewise. | |
9872 | * c-ubsan.c: Likewise. | |
9873 | * cilk.c: Likewise. | |
9874 | * stub-objc.c: Likewise. | |
9875 | ||
076fecad PP |
9876 | 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org> |
9877 | ||
9878 | PR c++/65168 | |
9879 | * c-common.c (c_common_truthvalue_conversion): Warn when | |
9880 | converting an address of a reference to a truth value. | |
9881 | ||
13fdf2e2 AM |
9882 | 2015-06-08 Andrew MacLeod <amacleod@redhat.com> |
9883 | ||
9884 | * array-notation-common.c : Adjust include files. | |
9885 | * c-ada-spec.c : Likewise. | |
9886 | * c-cilkplus.c : Likewise. | |
9887 | * c-common.c : Likewise. | |
9888 | * c-common.h : Likewise. | |
9889 | * c-cppbuiltin.c : Likewise. | |
9890 | * c-dump.c : Likewise. | |
9891 | * c-format.c : Likewise. | |
9892 | * c-gimplify.c : Likewise. | |
9893 | * c-indentation.c : Likewise. | |
9894 | * c-lex.c : Likewise. | |
9895 | * c-omp.c : Likewise. | |
9896 | * c-opts.c : Likewise. | |
9897 | * c-pch.c : Likewise. | |
9898 | * c-ppoutput.c : Likewise. | |
9899 | * c-pragma.c : Likewise. | |
9900 | * c-pretty-print.c : Likewise. | |
9901 | * c-semantics.c : Likewise. | |
9902 | * c-ubsan.c : Likewise. | |
9903 | * cilk.c : Likewise. | |
9904 | * stub-objc.c : Likewise. | |
9905 | ||
a1661b90 MP |
9906 | 2015-06-08 Marek Polacek <polacek@redhat.com> |
9907 | ||
9908 | PR c/66415 | |
9909 | * c-format.c (location_from_offset): Return LOC if LINE is null. | |
9910 | ||
d7438551 AH |
9911 | 2015-06-05 Aldy Hernandez <aldyh@redhat.com> |
9912 | ||
9913 | * c-common.h (c_parse_final_cleanups): New prototype. | |
9914 | * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups. | |
9915 | ||
b3d5bc62 JJ |
9916 | 2015-06-04 Sriraman Tallam <tmsriram@google.com> |
9917 | ||
9918 | * c-common.c (noplt): New attribute. | |
9919 | (handle_noplt_attribute): New handler. | |
9920 | ||
ecb9f223 AM |
9921 | 2015-06-04 Andrew MacLeod <amacleod@redhat.com> |
9922 | ||
9923 | * array-notation-common.c: Adjust includes for restructured coretypes.h. | |
9924 | * c-ada-spec.c: Likewise. | |
9925 | * c-cilkplus.c: Likewise. | |
9926 | * c-common.c: Likewise. | |
9927 | * c-common.h: Likewise. | |
9928 | * c-cppbuiltin.c: Likewise. | |
9929 | * c-dump.c: Likewise. | |
9930 | * c-format.c: Likewise. | |
9931 | * c-gimplify.c: Likewise. | |
9932 | * c-indentation.c: Likewise. | |
9933 | * c-lex.c: Likewise. | |
9934 | * c-omp.c: Likewise. | |
9935 | * c-opts.c: Likewise. | |
9936 | * c-pch.c: Likewise. | |
9937 | * c-ppoutput.c: Likewise. | |
9938 | * c-pragma.c: Likewise. | |
9939 | * c-pretty-print.c: Likewise. | |
9940 | * c-semantics.c: Likewise. | |
9941 | * c-ubsan.c: Likewise. | |
9942 | * cilk.c: Likewise. | |
9943 | * stub-objc.c: Likewise. | |
9944 | ||
6ac48155 DM |
9945 | 2015-06-02 David Malcolm <dmalcolm@redhat.com> |
9946 | ||
9947 | PR c/66220: | |
9948 | * c-indentation.c (should_warn_for_misleading_indentation): Use | |
9949 | expand_location rather than expand_location_to_spelling_point. | |
9950 | Don't warn if the guarding statement is more indented than the | |
9951 | next/body stmts. | |
9952 | ||
773ce42e DM |
9953 | 2015-06-02 David Malcolm <dmalcolm@redhat.com> |
9954 | ||
9955 | * c-indentation.c (warn_for_misleading_indentation): Bail out | |
9956 | immediately if -Wmisleading-indentation isn't enabled. | |
9957 | ||
4fef8379 ML |
9958 | 2015-06-01 Martin Liska <mliska@suse.cz> |
9959 | ||
9960 | * c-format.c (check_format_arg):Use new type-based pool allocator. | |
9961 | (check_format_info_main) Likewise. | |
9962 | ||
1edfb384 EB |
9963 | 2015-05-31 Eric Botcazou <ebotcazou@adacore.com> |
9964 | ||
9965 | * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant. | |
9966 | (has_nontrivial_methods): Likewise. | |
9967 | ||
9677ef52 MP |
9968 | 2015-05-25 Marek Polacek <polacek@redhat.com> |
9969 | ||
9970 | * c-ubsan.c (ubsan_instrument_shift): Use type0. | |
9971 | ||
fd5c817a MP |
9972 | 2015-05-22 Marek Polacek <polacek@redhat.com> |
9973 | ||
9974 | PR c/47043 | |
9975 | * c-common.c (handle_deprecated_attribute): Allow CONST_DECL. | |
9976 | ||
a2f45fe6 | 9977 | 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
581edfa3 TS |
9978 | |
9979 | * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with | |
9980 | STACK_GROWS_DOWNWARD. | |
9981 | ||
a2f45fe6 | 9982 | 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
62f9f30b TS |
9983 | |
9984 | * c-cppbuiltin.c (c_cpp_builtins): Check the value of | |
9985 | STACK_GROWS_DOWNWARD rather than if it is defined. | |
9986 | ||
0fee2ac2 | 9987 | 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org> |
b1726d6c | 9988 | |
0fee2ac2 MLI |
9989 | PR c/52952 |
9990 | * c-format.c (location_column_from_byte_offset): New. | |
9991 | (location_from_offset): New. | |
9992 | (struct format_wanted_type): Add offset_loc field. | |
9993 | (check_format_info): Move handling of location for extra arguments | |
9994 | closer to the point of warning. | |
9995 | (check_format_info_main): Pass the result of location_from_offset | |
9996 | to warning_at. | |
9997 | (format_type_warning): Pass the result of location_from_offset | |
9998 | to warning_at. | |
9999 | ||
cf4ef6f7 MP |
10000 | 2015-05-20 Marek Polacek <polacek@redhat.com> |
10001 | ||
10002 | * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P. | |
10003 | ||
3a65ee74 MP |
10004 | 2015-05-20 Marek Polacek <polacek@redhat.com> |
10005 | ||
10006 | * c-ada-spec.c (dump_sloc): Use DECL_P. | |
10007 | ||
21b634ae MP |
10008 | 2015-05-20 Marek Polacek <polacek@redhat.com> |
10009 | ||
10010 | * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout. | |
10011 | * c-common.c: Likewise. | |
10012 | ||
0e50b624 DM |
10013 | 2015-05-19 David Malcolm <dmalcolm@redhat.com> |
10014 | ||
10015 | * c-common.h (fe_file_change): Strengthen param from | |
10016 | const line_map * to const line_map_ordinary *. | |
10017 | (pp_file_change): Likewise. | |
10018 | * c-lex.c (fe_file_change): Likewise. | |
10019 | (cb_define): Use linemap_check_ordinary when invoking | |
10020 | SOURCE_LINE. | |
10021 | (cb_undef): Likewise. | |
10022 | * c-opts.c (c_finish_options): Use linemap_check_ordinary when | |
10023 | invoking cb_file_change. | |
10024 | (c_finish_options): Likewise. | |
10025 | (push_command_line_include): Likewise. | |
10026 | (cb_file_change): Strengthen param "new_map" from | |
10027 | const line_map * to const line_map_ordinary *. | |
10028 | * c-ppoutput.c (cb_define): Likewise for local "map". | |
10029 | (pp_file_change): Likewise for param "map" and local "from". | |
10030 | ||
fab27f52 MM |
10031 | 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com> |
10032 | ||
10033 | * c-common.c (shorten_compare): Use std::swap instead of explicit swaps. | |
10034 | ||
2fe1d762 TV |
10035 | 2015-05-18 Tom de Vries <tom@codesourcery.com> |
10036 | ||
10037 | * c-common.c (build_va_arg_1): New function. | |
10038 | (build_va_arg): Add address operator to va_list operand if necessary. | |
10039 | ||
7a37fa90 MM |
10040 | 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com> |
10041 | ||
10042 | PR c/48956 | |
10043 | * c-common.c (int_safely_convertible_to_real_p): Define. | |
10044 | (unsafe_conversion_p): Check conversions involving complex types. | |
10045 | (conversion_warning): Add new warning message for conversions which | |
10046 | discard imaginary component. | |
10047 | * c-common.h: (enum conversion_safety): Add new enumerator for such | |
10048 | conversions. | |
10049 | ||
3aa3c9fc MP |
10050 | 2015-05-14 Marek Polacek <polacek@redhat.com> |
10051 | ||
10052 | PR c/66066 | |
10053 | PR c/66127 | |
10054 | * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal. | |
10055 | (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with | |
10056 | C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and | |
10057 | use it. If FOR_INT_CONST, require that all evaluated operands be | |
10058 | INTEGER_CSTs. | |
10059 | ||
c3388e62 DM |
10060 | 2015-05-12 David Malcolm <dmalcolm@redhat.com> |
10061 | ||
10062 | * c-common.h (warn_for_misleading_indentation): New prototype. | |
10063 | * c-indentation.c: New file. | |
10064 | * c.opt (Wmisleading-indentation): New option. | |
10065 | ||
c7b38fd5 TV |
10066 | 2015-05-12 Tom de Vries <tom@codesourcery.com> |
10067 | ||
10068 | PR tree-optimization/66010 | |
10069 | * c-common.c (build_va_arg): Don't mark ap addressable unless necessary. | |
10070 | ||
381bf11e JM |
10071 | 2015-05-09 Jason Merrill <jason@redhat.com> |
10072 | ||
edff0c06 JM |
10073 | * c-opts.c (c_common_post_options): Also clear |
10074 | cpp_opts->cpp_warn_cxx11_compat. | |
10075 | ||
129211bc JM |
10076 | * c-common.h (enum cxx_dialect): Add cxx_unset. |
10077 | * c-common.c (cxx_dialect): Initialize to cxx_unset. | |
10078 | * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset. | |
10079 | ||
381bf11e JM |
10080 | * c.opt (std=c++14): Remove Undocumented flag and experimental warning. |
10081 | (std=gnu++0x): Mark as Undocumented. | |
10082 | (std=gnu++1y): Add deprecated message. | |
10083 | ||
fe191308 JM |
10084 | 2015-05-08 Jason Merrill <jason@redhat.com> |
10085 | ||
765189ff JM |
10086 | * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat. |
10087 | * c-opts.c: Adjust. | |
10088 | ||
fe191308 JM |
10089 | * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat. |
10090 | ||
755e528f MP |
10091 | 2015-05-08 Marek Polacek <polacek@redhat.com> |
10092 | ||
10093 | PR c/64918 | |
10094 | * c.opt (Woverride-init-side-effects): New option. | |
10095 | ||
0173bd2a MP |
10096 | 2015-05-07 Marek Polacek <polacek@redhat.com> |
10097 | ||
10098 | PR c/65179 | |
10099 | * c-common.c (c_fully_fold_internal): Warn when left shifting a | |
10100 | negative value. | |
10101 | * c.opt (Wshift-negative-value): New option. | |
10102 | * c-opts.c (c_common_post_options): Set warn_shift_negative_value | |
10103 | when -Wextra and C99/C++11 mode. | |
10104 | ||
e0f0d3b9 MP |
10105 | 2015-05-07 Marek Polacek <polacek@redhat.com> |
10106 | Martin Uecker <uecker@eecs.berkeley.edu> | |
10107 | ||
10108 | * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting | |
10109 | flexible member array-like members if SANITIZE_BOUNDS_STRICT. | |
10110 | ||
8243e2a9 JM |
10111 | 2015-05-05 Jason Merrill <jason@redhat.com> |
10112 | ||
10113 | * c.opt (Wterminate): New. | |
10114 | ||
577cd070 MP |
10115 | 2015-04-30 Marek Polacek <polacek@redhat.com> |
10116 | ||
10117 | * c-common.c (maybe_warn_bool_compare): When comparing with 0/1, | |
10118 | require that the non-constant be of a boolean type. | |
10119 | ||
0373796b JT |
10120 | 2015-04-29 Josh Triplett <josh@joshtriplett.org> |
10121 | ||
e0f0d3b9 MP |
10122 | * c-common.c (handle_section_attribute): Refactor to reduce |
10123 | nesting and distinguish between error cases. | |
0373796b | 10124 | |
716c0ba6 MP |
10125 | 2015-04-29 Marek Polacek <polacek@redhat.com> |
10126 | ||
10127 | PR c/64610 | |
10128 | * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean | |
10129 | with 0/1. | |
10130 | ||
8848828b JJ |
10131 | 2015-04-29 Jakub Jelinek <jakub@redhat.com> |
10132 | ||
10133 | * c-common.h (omp_clause_mask): Unconditionally define as a class. | |
10134 | Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of | |
10135 | HOST_BITS_PER_WIDE_INT. | |
10136 | ||
ecd0e562 TV |
10137 | 2015-04-28 Tom de Vries <tom@codesourcery.com> |
10138 | ||
10139 | PR tree-optimization/65887 | |
10140 | * c-common.c (build_va_arg): Mark va_arg ap argument as addressable. | |
10141 | ||
2a877204 | 10142 | 2015-04-28 Eric Botcazou <ebotcazou@adacore.com> |
e0f0d3b9 | 10143 | Pierre-Marie de Rodat <derodat@adacore.com> |
2a877204 EB |
10144 | |
10145 | * c-ada-spec.c (in_function): Delete. | |
10146 | (dump_generic_ada_node): Do not change in_function and remove the | |
10147 | redundant code dealing with it. | |
10148 | (print_ada_declaration): Do not change in_function. Use INDENT_INCR. | |
10149 | (print_ada_methods): Output the static member functions in a nested | |
10150 | package after the regular methods as well as associated renamings. | |
10151 | ||
4853031e MP |
10152 | 2015-04-24 Marek Polacek <polacek@redhat.com> |
10153 | ||
10154 | PR c/65830 | |
10155 | * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative | |
10156 | and OPT_Wshift_count_overflow. | |
10157 | ||
8c2b7f79 MP |
10158 | PR c/63357 |
10159 | * c-common.c (warn_logical_operator): Warn if the operands have the | |
10160 | same expressions. | |
10161 | ||
b8787813 MP |
10162 | 2015-04-24 Marek Polacek <polacek@redhat.com> |
10163 | ||
10164 | PR c/61534 | |
10165 | * c-common.c (warn_logical_operator): Bail if either operand comes | |
10166 | from a macro expansion. | |
10167 | ||
8fba1830 BRF |
10168 | 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
10169 | ||
10170 | PR target/55143 | |
10171 | * c-common.c (c_default_pointer_mode): Add definition. | |
10172 | * c-common.h (c_default_pointer_mode): Add declaration. | |
10173 | ||
17958621 JJ |
10174 | 2015-03-11 Jakub Jelinek <jakub@redhat.com> |
10175 | ||
10176 | * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup | |
10177 | on record_builtin_type argument. | |
10178 | ||
7ccb1a11 JJ |
10179 | 2015-03-10 Jakub Jelinek <jakub@redhat.com> |
10180 | ||
10181 | PR c/65120 | |
10182 | * c-common.c (warn_logical_not_parentheses): Don't warn for | |
10183 | !x == 0 or !x != 0. | |
10184 | ||
04fd785e MP |
10185 | 2015-03-07 Marek Polacek <polacek@redhat.com> |
10186 | ||
10187 | PR sanitizer/65280 | |
10188 | * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF | |
10189 | before trying to figure out whether we have a flexible array member. | |
10190 | ||
a4e26206 | 10191 | 2015-03-06 Eric Botcazou <ebotcazou@adacore.com> |
8e745a17 | 10192 | Jonathan Wakely <jwakely.gcc@gmail.com> |
a4e26206 EB |
10193 | |
10194 | * c-ada-spec.c (dump_ada_double_name): Fix pasto. | |
10195 | ||
0d2489f4 EB |
10196 | 2015-03-05 Eric Botcazou <ebotcazou@adacore.com> |
10197 | ||
10198 | PR ada/65319 | |
10199 | * c-ada-spec.c (print_destructor): Remove obsolete code. | |
10200 | ||
83ed54d7 EB |
10201 | 2015-03-01 Eric Botcazou <ebotcazou@adacore.com> |
10202 | ||
10203 | * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX. | |
10204 | (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and | |
10205 | DECL_TEMPLATE_RESULT emulations. | |
10206 | (dump_ada_template)): Add guard for TYPE_METHODS. | |
10207 | ||
7631f0e2 MP |
10208 | 2015-02-27 Marek Polacek <polacek@redhat.com> |
10209 | ||
10210 | PR c/65040 | |
10211 | * c.opt (Wformat-signedness): Don't enable by -Wformat=2. | |
10212 | ||
d1783ae5 KT |
10213 | 2015-02-27 Kai Tietz <ktietz@redhat.com> |
10214 | ||
10215 | PR c/35330 | |
10216 | * c-pragma.c (handle_pragma_weak): Do not try to create | |
10217 | weak/alias of declarations not being function, or variable | |
10218 | declarations. | |
10219 | ||
56a9f6bc TS |
10220 | 2015-02-24 Thomas Schwinge <thomas@codesourcery.com> |
10221 | ||
10222 | PR libgomp/64625 | |
10223 | * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12): | |
10224 | Remove macros. | |
10225 | (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros. | |
10226 | ||
3d5cb23d MP |
10227 | 2015-02-16 Marek Polacek <polacek@redhat.com> |
10228 | ||
10229 | PR c/65066 | |
10230 | * c-format.c (check_format_types): Handle null param. | |
10231 | ||
fa008882 MP |
10232 | 2015-02-13 Marek Polacek <polacek@redhat.com> |
10233 | ||
10234 | PR c/65040 | |
10235 | * c-format.c (check_format_types): Don't warn about different | |
10236 | signedness if the original value is in the range of WANTED_TYPE. | |
10237 | ||
785f21af JM |
10238 | 2015-02-12 Jason Merrill <jason@redhat.com> |
10239 | ||
10240 | PR c++/64956 | |
10241 | * c-opts.c (c_common_post_options): Change flag_abi_version from 0 | |
10242 | to the current highest version. | |
10243 | * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0. | |
10244 | ||
4886ec8e JJ |
10245 | 2015-02-04 Jakub Jelinek <jakub@redhat.com> |
10246 | ||
10247 | PR c/64824 | |
10248 | PR c/64868 | |
10249 | * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR | |
10250 | instead of RDIV_EXPR. Use build_binary_op instead of | |
10251 | build2_loc. | |
10252 | ||
40fecdd6 JM |
10253 | 2015-01-30 Joseph Myers <joseph@codesourcery.com> |
10254 | ||
10255 | * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed | |
10256 | to pass input_location as first argument. | |
10257 | ||
a0c88d06 TV |
10258 | 2015-01-23 Tom de Vries <tom@codesourcery.com> |
10259 | ||
10260 | PR libgomp/64672 | |
10261 | * c.opt (fopenacc): Mark as LTO option. | |
10262 | ||
1506ae0e TV |
10263 | 2015-01-23 Tom de Vries <tom@codesourcery.com> |
10264 | ||
10265 | PR libgomp/64707 | |
10266 | * c.opt (fopenmp): Mark as LTO option. | |
10267 | ||
31be63ab JJ |
10268 | 2015-01-21 Jakub Jelinek <jakub@redhat.com> |
10269 | ||
10270 | PR c/63307 | |
b1726d6c | 10271 | * cilk.c (fill_decls_vec): Only put decls into vector v. |
31be63ab JJ |
10272 | (compare_decls): Fix up formatting. |
10273 | ||
10274 | 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com> | |
10275 | ||
10276 | PR c/63307 | |
10277 | * cilk.c: Include vec.h. | |
10278 | (struct cilk_decls): New structure. | |
10279 | (wrapper_parm_cb): Split this function to... | |
10280 | (fill_decls_vec): ...this... | |
10281 | (create_parm_list): ...and this. | |
10282 | (compare_decls): New function. | |
10283 | (for_local_cb): Remove. | |
10284 | (wrapper_local_cb): Ditto. | |
10285 | (build_wrapper_type): For now first traverse and fill vector of | |
10286 | declarations then sort it and then deal with sorted vector. | |
10287 | (cilk_outline): Ditto. | |
10288 | (declare_one_free_variable): Ditto. | |
10289 | ||
6875457f JM |
10290 | 2015-01-21 Jason Merrill <jason@redhat.com> |
10291 | ||
10292 | PR c++/64629 | |
10293 | * c-format.c (check_format_arg): Call decl_constant_value. | |
10294 | ||
185c9e56 ML |
10295 | 2015-01-19 Martin Liska <mliska@suse.cz> |
10296 | ||
10297 | * c-common.c (handle_noicf_attribute): New function. | |
10298 | ||
41dbbb37 TS |
10299 | 2015-01-15 Thomas Schwinge <thomas@codesourcery.com> |
10300 | Bernd Schmidt <bernds@codesourcery.com> | |
10301 | James Norris <jnorris@codesourcery.com> | |
10302 | Cesar Philippidis <cesar@codesourcery.com> | |
10303 | Ilmir Usmanov <i.usmanov@samsung.com> | |
10304 | Jakub Jelinek <jakub@redhat.com> | |
10305 | ||
10306 | * c.opt (fopenacc): New option. | |
10307 | * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC. | |
10308 | * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12): | |
10309 | New macros. | |
10310 | * c-common.h (c_finish_oacc_wait): New prototype. | |
10311 | * c-omp.c: Include "omp-low.h" and "gomp-constants.h". | |
10312 | (c_finish_oacc_wait): New function. | |
10313 | * c-pragma.c (oacc_pragmas): New variable. | |
10314 | (c_pp_lookup_pragma, init_pragma): Handle it. | |
10315 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE, | |
10316 | PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA, | |
10317 | PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL, | |
10318 | PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT. | |
10319 | (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC, | |
10320 | PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE, | |
10321 | PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN, | |
10322 | PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE, | |
10323 | PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE, | |
10324 | PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE, | |
10325 | PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST, | |
10326 | PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS, | |
10327 | PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT, | |
10328 | PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY, | |
10329 | PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN, | |
10330 | PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT, | |
10331 | PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE, | |
10332 | PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF, | |
10333 | PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR, | |
10334 | PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT, | |
10335 | PRAGMA_OACC_CLAUSE_WORKER. | |
10336 | ||
3f8257db | 10337 | 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com> |
5434dc07 MD |
10338 | |
10339 | * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__ | |
10340 | for the new option fstack-protector_explicit. | |
10341 | * c-common.c (c_common_attribute_table): Add stack_protect attribute. | |
10342 | (handle_stack_protect_attribute): New function. | |
10343 | ||
3f8257db | 10344 | 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu> |
de1b5c17 MU |
10345 | |
10346 | * c.opt: New option -Warray-bounds=. | |
10347 | ||
adfac8df JJ |
10348 | 2015-01-09 Michael Collison <michael.collison@linaro.org> |
10349 | ||
10350 | * array-notation-common.c: Include hash-set.h, machmode.h, | |
10351 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
10352 | fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h. | |
10353 | * c-ada-spec.c: Ditto. | |
10354 | * c-cilkplus.c: Ditto. | |
10355 | * c-common.c: Include input.h due to flattening of tree.h. | |
10356 | Define macro GCC_C_COMMON_C. | |
10357 | * c-common.h: Flatten tree.h header files into c-common.h. | |
10358 | Remove include of tree-core.h. | |
10359 | * c-cppbuiltin.c: Include hash-set.h, machmode.h, | |
10360 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
10361 | fold-const.h, wide-int.h, and inchash.h due to | |
10362 | flattening of tree.h. | |
10363 | * c-dump.c: Ditto. | |
10364 | * c-format.c: Flatten tree.h header files into c-common.h. | |
10365 | * c-cppbuiltin.c: Include hash-set.h, machmode.h, | |
10366 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
10367 | fold-const.h, wide-int.h, and inchash.h due to | |
10368 | flattening of tree.h. | |
10369 | * c-dump.c: Include hash-set.h, machmode.h, | |
10370 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
10371 | fold-const.h, wide-int.h, and inchash.h due to | |
10372 | flattening of tree.h. | |
10373 | * c-format.c: Include hash-set.h, machmode.h, | |
10374 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
10375 | fold-const.h, wide-int.h, inchash.h and real.h due to | |
10376 | flattening of tree.h. | |
10377 | * c-gimplify.c: Include hash-set.h, machmode.h, | |
10378 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
10379 | fold-const.h, wide-int.h, and inchash.h due to | |
10380 | flattening of tree.h. | |
10381 | * cilk.c: Ditto. | |
10382 | * c-lex.c: Ditto. | |
10383 | * c-omp.c: Ditto. | |
10384 | * c-opts.c: Ditto. | |
10385 | * c-pch.c: Ditto. | |
10386 | * c-ppoutput.c: Ditto. | |
10387 | * c-pragma.c: Ditto. | |
10388 | * c-pretty-print.c: Ditto. | |
10389 | * c-semantics.c: Ditto. | |
10390 | * c-ubsan.c: Ditto. | |
10391 | * stub-objc.c: Ditto. | |
10392 | ||
f5481fc4 JM |
10393 | 2015-01-08 Jason Merrill <jason@redhat.com> |
10394 | ||
10395 | * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use | |
10396 | do_ubsan_in_current_function. | |
10397 | (ubsan_maybe_instrument_reference_or_call): Likewise. | |
10398 | * c-ubsan.h: Declare it. | |
10399 | ||
de35aa66 MS |
10400 | 2015-01-08 Mike Stump <mikestump@comcast.net> |
10401 | ||
10402 | * c-common.c (c_common_attribute_table): Add no_sanitize_thread. | |
10403 | ||
4a9a42ab MP |
10404 | 2015-01-07 Marek Polacek <polacek@redhat.com> |
10405 | ||
10406 | PR c/64440 | |
10407 | * c-common.c (c_fully_fold_internal): Warn for division and modulo | |
10408 | if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero. | |
10409 | ||
2f42e5de TS |
10410 | 2015-01-05 Trevor Saunders <tsaunders@mozilla.com> |
10411 | ||
10412 | PR c++/31397 | |
10413 | * c.opt (Wsuggest-override): New option. | |
10414 | ||
5624e564 JJ |
10415 | 2015-01-05 Jakub Jelinek <jakub@redhat.com> |
10416 | ||
10417 | Update copyright years. | |
10418 | ||
5bd012f8 MP |
10419 | 2015-01-05 Marek Polacek <polacek@redhat.com> |
10420 | ||
10421 | PR c/64423 | |
10422 | * c-common.c (warn_array_subscript_with_type_char): Add location_t | |
10423 | parameter. Use it. | |
10424 | * c-common.h (warn_array_subscript_with_type_char): Update | |
10425 | declaration. | |
10426 | ||
a7fa8d18 ESR |
10427 | 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net> |
10428 | ||
10429 | * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro. | |
10430 | Control macro with flag_sized_deallocation. | |
10431 | ||
3f8257db | 10432 | 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu> |
768952be MU |
10433 | |
10434 | * c.opt (Wdiscarded-array-qualifiers): New option. | |
10435 | ||
1f8d3e84 JJ |
10436 | 2014-12-19 Jakub Jelinek <jakub@redhat.com> |
10437 | ||
10438 | PR preprocessor/63831 | |
10439 | * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute | |
10440 | and __has_cpp_attribute here. | |
10441 | * c-ppoutput.c (init_pp_output): Set cb->has_attribute to | |
10442 | c_common_has_attribute. | |
10443 | * c-common.h (c_common_has_attribute): New prototype. | |
10444 | * c-lex.c (init_c_lex): Set cb->has_attribute to | |
10445 | c_common_has_attribute instead of cb_has_attribute. | |
10446 | (get_token_no_padding): New function. | |
10447 | (cb_has_attribute): Renamed to ... | |
10448 | (c_common_has_attribute): ... this. No longer static. Use | |
10449 | get_token_no_padding, require ()s, don't build TREE_LIST | |
10450 | unnecessarily, fix up formatting, adjust diagnostics, call | |
10451 | init_attributes. | |
10452 | ||
20b06add JM |
10453 | 2014-12-15 Jason Merrill <jason@redhat.com> |
10454 | ||
10455 | * c.opt (-fsized-deallocation, -Wc++14-compat): New. | |
10456 | (-Wsized-deallocation): New. | |
10457 | * c-opts.c (c_common_post_options): -fsized-deallocation defaults | |
10458 | to on in C++14 and up. | |
10459 | ||
94a073b2 JM |
10460 | 2014-12-11 Jason Merrill <jason@redhat.com> |
10461 | ||
acaa5911 JM |
10462 | * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr. |
10463 | ||
94a073b2 JM |
10464 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if |
10465 | we aren't complaining about VLAs. | |
10466 | ||
7fb66c15 MP |
10467 | 2014-12-06 Marek Polacek <polacek@redhat.com> |
10468 | ||
10469 | PR tree-optimization/64183 | |
10470 | * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a | |
10471 | shift-expression if it is integer_type_node. Use types_compatible_p. | |
10472 | ||
b731b390 JJ |
10473 | 2014-11-29 Jakub Jelinek <jakub@redhat.com> |
10474 | ||
10475 | * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL | |
10476 | last argument from create_tmp_var_raw and create_tmp_var calls. | |
10477 | * cilk.c (gimplify_cilk_spawn): Likewise. | |
10478 | * c-omp.c (c_finish_omp_atomic): Likewise. | |
10479 | ||
6a4da643 MP |
10480 | 2014-11-28 Marek Polacek <polacek@redhat.com> |
10481 | ||
10482 | * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR | |
10483 | instead of unsigned_type_node. | |
10484 | ||
541e35a6 MP |
10485 | 2014-11-28 Marek Polacek <polacek@redhat.com> |
10486 | ||
10487 | PR c/63862 | |
10488 | * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR | |
10489 | to op1_utype. | |
10490 | * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift | |
10491 | expression to unsigned_type_node. | |
10492 | ||
dcc97066 MW |
10493 | 2014-11-20 Mark Wielaard <mjw@redhat.com> |
10494 | ||
10495 | PR debug/38757 | |
10496 | * c-opts.c (set_std_c89): Set lang_hooks.name. | |
10497 | (set_std_c99): Likewise. | |
10498 | (set_std_c11): Likewise. | |
10499 | (set_std_cxx98): Likewise. | |
10500 | (set_std_cxx11): Likewise. | |
10501 | (set_std_cxx14): Likewise. | |
10502 | (set_std_cxx1z): Likewise. | |
10503 | ||
aa7da51a JJ |
10504 | 2014-11-21 Jakub Jelinek <jakub@redhat.com> |
10505 | ||
10506 | PR target/63764 | |
10507 | * c-common.h (convert_vector_to_pointer_for_subscript): Change | |
10508 | return type to bool. | |
009a3480 | 10509 | * c-common.c: Include gimple-expr.h. |
aa7da51a JJ |
10510 | (convert_vector_to_pointer_for_subscript): Change return type to |
10511 | bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true | |
10512 | and copy it into a TARGET_EXPR and use that instead of *vecp | |
10513 | directly. | |
10514 | ||
538dd0b7 DM |
10515 | 2014-11-19 David Malcolm <dmalcolm@redhat.com> |
10516 | ||
10517 | Merger of git branch "gimple-classes-v2-option-3". | |
10518 | * ChangeLog.gimple-classes: New. | |
10519 | * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack" | |
10520 | from being just a vec<gimple> to a vec<gbind *>. | |
10521 | ||
c39a5e99 JJ |
10522 | 2014-11-18 Jakub Jelinek <jakub@redhat.com> |
10523 | ||
10524 | PR sanitizer/63813 | |
10525 | * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type | |
10526 | argument to ptype, set type to TREE_TYPE (ptype). Don't call | |
10527 | get_pointer_alignment for non-pointers. Use ptype, or if it is | |
10528 | reference type, corresponding pointer type, as type of kind | |
10529 | argument. | |
10530 | (ubsan_maybe_instrument_reference, | |
10531 | ubsan_maybe_instrument_member_call): Adjust callers. | |
10532 | ||
8537a4a9 MP |
10533 | 2014-11-15 Marek Polacek <polacek@redhat.com> |
10534 | ||
10535 | PR middle-end/63884 | |
10536 | * array-notation-common.c (is_sec_implicit_index_fn): Return false | |
10537 | for NULL fndecl. | |
10538 | (extract_array_notation_exprs): Return for NULL node. | |
10539 | ||
2079956a JM |
10540 | 2014-11-12 Joseph Myers <joseph@codesourcery.com> |
10541 | ||
10542 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and | |
10543 | undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state. | |
10544 | ||
1304953e JJ |
10545 | 2014-11-12 Jakub Jelinek <jakub@redhat.com> |
10546 | ||
10547 | PR c/59708 | |
10548 | * c-common.c (check_builtin_function_arguments): Handle | |
10549 | BUILT_IN_{ADD,SUB,MUL}_OVERFLOW. | |
10550 | ||
e5e44252 AK |
10551 | 2014-11-10 Andi Kleen <ak@linux.intel.com> |
10552 | ||
10553 | PR c/60804 | |
10554 | * c-common.h (check_no_cilk): Declare. | |
10555 | * cilk.c (get_error_location): New function. | |
10556 | (check_no_cilk): Dito. | |
10557 | ||
e64b984d AK |
10558 | 2014-11-10 Andi Kleen <ak@linux.intel.com> |
10559 | ||
10560 | * cilk.c (recognize_spawn): Use expression location | |
10561 | for error message. | |
10562 | ||
13c21655 PC |
10563 | 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com> |
10564 | ||
10565 | * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add. | |
10566 | ||
42fd12b1 ESR |
10567 | 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net> |
10568 | ||
10569 | * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros; | |
10570 | (__cpp_rtti, __cpp_exceptions): New macros for C++98; | |
10571 | (__cpp_range_based_for, __cpp_initializer_lists, | |
10572 | __cpp_delegating_constructors, __cpp_nsdmi, | |
10573 | __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros | |
10574 | for C++11; (__cpp_attribute_deprecated): Remove in favor of | |
10575 | __has_cpp_attribute. | |
10576 | * c-lex.c (cb_has_attribute): New callback CPP function; | |
10577 | (init_c_lex): Set has_attribute callback. | |
10578 | ||
6f450181 RB |
10579 | 2014-11-04 Richard Biener <rguenther@suse.de> |
10580 | ||
10581 | * c-common.c (shorten_compare): Do not shorten mixed | |
10582 | DFP and non-DFP compares. | |
10583 | ||
26f0e1d6 ESR |
10584 | 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net> |
10585 | ||
10586 | * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests. | |
10587 | * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test. | |
10588 | Commentary and rearrangement of tests. | |
10589 | * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test. | |
10590 | Commentary and rearrangement of tests. | |
ab20d992 | 10591 | * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto. |
26f0e1d6 ESR |
10592 | * g++.dg/cpp1y/feat-cxx98.C: Commentary. |
10593 | ||
ef4bddc2 RS |
10594 | 2014-10-29 Richard Sandiford <richard.sandiford@arm.com> |
10595 | ||
10596 | * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant | |
10597 | enum from machine_mode. | |
10598 | ||
c582198b AM |
10599 | 2014-10-28 Andrew MacLeod <amacleod@redhat.com> |
10600 | ||
adfac8df JJ |
10601 | * c-common.c: Adjust include files. |
10602 | * c-gimplify.c: Ditto. | |
10603 | * cilk.c: Ditto. | |
10604 | * c-pragma.c: Ditto. | |
10605 | * c-ubsan.c: Ditto. | |
c582198b | 10606 | |
60393bbc AM |
10607 | 2014-10-27 Andrew MacLeod <amacleod@redhat.com> |
10608 | ||
10609 | * c-gimplify.c: Adjust include files. | |
10610 | ||
d723bb7c MLI |
10611 | 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10612 | ||
10613 | PR c++/53061 | |
10614 | * c-opts.c (c_common_diagnostics_set_defaults): Renamed from | |
10615 | c_common_initialize_diagnostics. | |
10616 | * c-common.h: Likewise. | |
10617 | ||
90f3520e MP |
10618 | 2014-10-24 Marek Polacek <polacek@redhat.com> |
10619 | ||
10620 | PR c/56980 | |
10621 | * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't | |
10622 | print "struct"/"union"/"enum" for typedefed names. | |
10623 | ||
59d7607a MP |
10624 | 2014-10-23 Marek Polacek <polacek@redhat.com> |
10625 | ||
10626 | * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR | |
10627 | in unsigned type. | |
10628 | ||
d95a2703 JJ |
10629 | 2014-10-22 Jakub Jelinek <jakub@redhat.com> |
10630 | Yury Gribov <y.gribov@samsung.com> | |
10631 | ||
10632 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift, | |
10633 | ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask | |
10634 | instead of flag_sanitize_recover as bool flag. | |
10635 | ||
8e6ef852 KY |
10636 | 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com> |
10637 | ||
10638 | * cilk.c: Revert previous change. | |
10639 | ||
948cf550 IZ |
10640 | 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com> |
10641 | ||
10642 | PR c/63307 | |
10643 | * cilk.c: Include vec.h. | |
10644 | (struct cilk_decls): New structure. | |
10645 | (wrapper_parm_cb): Split this function to... | |
10646 | (fill_decls_vec): ...this... | |
10647 | (create_parm_list): ...and this. | |
10648 | (compare_decls): New function. | |
10649 | (for_local_cb): Remove. | |
10650 | (wrapper_local_cb): Ditto. | |
10651 | (build_wrapper_type): For now first traverse and fill vector of | |
10652 | declarations then sort it and then deal with sorted vector. | |
10653 | (cilk_outline): Ditto. | |
10654 | (declare_one_free_variable): Ditto. | |
10655 | ||
92574c7c MP |
10656 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
10657 | ||
10658 | * c-opts.c (c_common_post_options): Set warn_implicit_int. | |
10659 | * c.opt (Wimplicit-int): Initialize to -1. | |
10660 | ||
83685514 AM |
10661 | 2014-10-16 Andrew MacLeod <amacleod@redhat.com> |
10662 | ||
10663 | * c-pragma.c: Adjust include files. | |
10664 | * c-semantics.c: Likewise. | |
10665 | ||
5b8300ea DD |
10666 | 2014-10-16 DJ Delorie <dj@redhat.com> |
10667 | ||
10668 | * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are | |
10669 | multiples of bytes. | |
10670 | ||
5f83e90b JM |
10671 | 2014-10-14 Jason Merrill <jason@redhat.com> |
10672 | ||
10673 | PR c++/63455 | |
10674 | * c-common.h (CPP_PREPARSED_EXPR): New. | |
10675 | (N_CP_TTYPES): Adjust. | |
10676 | ||
d73326ca MP |
10677 | 2014-10-15 Marek Polacek <polacek@redhat.com> |
10678 | ||
10679 | * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C. | |
10680 | ||
78a7c317 DD |
10681 | 2014-10-14 DJ Delorie <dj@redhat.com> |
10682 | ||
10683 | * c-pretty-print.c (pp_c_integer_constant): Check for all __intN | |
10684 | types, not just __int128. | |
10685 | * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN | |
10686 | types, not just __int128. | |
10687 | (cpp_atomic_builtins): Round pointer sizes up. | |
10688 | (type_suffix): Use type precision, not specific types. | |
10689 | * c-common.c (c_common_reswords): Remove __int128 special case. | |
10690 | (c_common_type_for_size): Check for all __intN types, not just | |
10691 | __int128. | |
10692 | (c_common_type_for_mode): Likewise. | |
10693 | (c_common_signed_or_unsigned_type): Likewise. | |
10694 | (c_build_bitfield_integer_type): Likewise. | |
10695 | (c_common_nodes_and_builtins): Likewise. | |
10696 | (keyword_begins_type_specifier): Likewise. | |
10697 | * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all | |
10698 | __intN variants. | |
10699 | ||
2a22f99c TS |
10700 | 2014-10-12 Trevor Saunders <tsaunders@mozilla.com> |
10701 | ||
10702 | * c-common.c: Use hash_table instead of hashtab. | |
10703 | ||
2a8ef767 ESR |
10704 | 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net> |
10705 | ||
adfac8df | 10706 | * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the |
2a8ef767 ESR |
10707 | C++11 section. |
10708 | ||
3c9aabbd MG |
10709 | 2014-10-03 Marc Glisse <marc.glisse@inria.fr> |
10710 | ||
10711 | PR c++/54427 | |
10712 | PR c++/57198 | |
10713 | PR c++/58845 | |
10714 | * c-common.c (warn_logical_operator): Punt for vectors. | |
10715 | ||
a15f7cb8 ESR |
10716 | 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net> |
10717 | ||
10718 | Implement SD-6: SG10 Feature Test Recommendations | |
10719 | * c-cppbuiltin.c (c_cpp_builtins()): Define language feature | |
10720 | macros and the __has_header macro. | |
10721 | ||
8d0cf15e JM |
10722 | 2014-09-30 Jason Merrill <jason@redhat.com> |
10723 | ||
dd5d5481 JM |
10724 | * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and |
10725 | RID_IS_TRIVIALLY_CONSTRUCTIBLE. | |
10726 | * c-common.c (c_common_reswords): Add __is_trivially_copyable. | |
10727 | ||
b752325e JM |
10728 | * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE. |
10729 | * c-common.c (c_common_reswords): Add __is_trivially_copyable. | |
10730 | ||
8d0cf15e JM |
10731 | * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO. |
10732 | * c-common.c (c_common_reswords): Remove __is_convertible_to. | |
10733 | ||
083e891e MP |
10734 | 2014-09-24 Marek Polacek <polacek@redhat.com> |
10735 | ||
10736 | PR c/61405 | |
10737 | PR c/53874 | |
10738 | * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD. | |
10739 | ||
7861b648 AK |
10740 | 2014-09-23 Andi Kleen <ak@linux.intel.com> |
10741 | ||
10742 | * c-common.c (handle_no_reorder_attribute): New function. | |
10743 | (c_common_attribute_table): Add no_reorder attribute. | |
10744 | ||
9a79452d JM |
10745 | 2014-09-22 Joseph Myers <joseph@codesourcery.com> |
10746 | ||
10747 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
10748 | __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point | |
10749 | modes. | |
10750 | ||
dd69f047 JM |
10751 | 2014-09-18 Joseph Myers <joseph@codesourcery.com> |
10752 | ||
10753 | * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__ | |
10754 | for supported floating-point modes. | |
10755 | ||
737a4826 MLI |
10756 | 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10757 | ||
10758 | * c.opt (Wpsabi): Use LangEnabledBy. | |
10759 | * c-opts.c (c_common_handle_option): Do not handle here. | |
10760 | ||
8cc4b7a2 JM |
10761 | 2014-09-12 Joseph Myers <joseph@codesourcery.com> |
10762 | ||
10763 | * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__ | |
10764 | macros for floating-point modes. | |
10765 | ||
179b5a55 MG |
10766 | 2014-09-11 Marc Glisse <marc.glisse@inria.fr> |
10767 | ||
10768 | PR target/58757 | |
10769 | * c-cppbuiltin.c (builtin_define_float_constants): Correct | |
10770 | __*_DENORM_MIN__ without denormals. | |
10771 | ||
570a11fe JJ |
10772 | 2014-09-10 Jakub Jelinek <jakub@redhat.com> |
10773 | ||
10774 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift, | |
10775 | ubsan_instrument_vla, ubsan_instrument_return): Adjust | |
10776 | ubsan_create_data callers. | |
10777 | (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if | |
10778 | index is constant or BIT_AND_EXPR with constant mask and is | |
10779 | small enough for the bound. | |
10780 | * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of | |
10781 | ARRAY_REF, make sure the inner ARRAY_REF is not walked again. | |
10782 | ||
b559c810 MLI |
10783 | 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10784 | ||
10785 | * c.opt: Add CppReason to various flags. | |
10786 | (Wdate-time): Re-sort. | |
10787 | * c-common.c: Include c-common.h earlier. | |
10788 | (struct reason_option_codes_t): Delete. | |
10789 | (c_option_controlling_cpp_error): Prefix global type and struct | |
10790 | with cpp_. | |
10791 | ||
1ef33fd4 MLI |
10792 | 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10793 | ||
10794 | * c.opt (Wnormalized): New. | |
10795 | (Wnormalized=): Use Enum and Reject Negative. | |
10796 | * c-opts.c (c_common_handle_option): Do not handle Wnormalized here. | |
10797 | ||
66bb34c0 JM |
10798 | 2014-09-08 Joseph Myers <joseph@codesourcery.com> |
10799 | ||
10800 | * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa | |
10801 | digits of floating-point modes if -fbuilding-libgcc. | |
10802 | ||
53d68b9f JM |
10803 | 2014-09-05 Joseph Myers <joseph@codesourcery.com> |
10804 | ||
10805 | * c-cppbuiltin.c (c_cpp_builtins): Also define | |
10806 | __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__, | |
10807 | __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__, | |
10808 | __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__, | |
10809 | __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__, | |
10810 | __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__, | |
10811 | __LIBGCC_STACK_GROWS_DOWNWARD__, | |
10812 | __LIBGCC_DONT_USE_BUILTIN_SETJMP__, | |
10813 | __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__, | |
10814 | __LIBGCC_DWARF_FRAME_REGISTERS__, | |
10815 | __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__, | |
10816 | __LIBGCC_STACK_POINTER_REGNUM__ and | |
10817 | __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc. | |
10818 | (builtin_define_with_value): Handle backslash-escaping in string | |
10819 | macro values. | |
10820 | ||
f65586dc RB |
10821 | 2014-09-05 Richard Biener <rguenther@suse.de> |
10822 | ||
10823 | PR middle-end/63148 | |
10824 | * c-format.c (check_format_arg): Properly handle | |
10825 | effectively signed POINTER_PLUS_EXPR offset. | |
10826 | ||
2b71f4a4 MLI |
10827 | 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10828 | ||
10829 | * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels, | |
10830 | Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic, | |
10831 | (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var | |
10832 | and Init. | |
10833 | * c-opts.c (c_common_handle_option): Do not handle here. | |
10834 | (sanitize_cpp_opts): Likewise. | |
10835 | * c-common.c (struct reason_option_codes_t): Handle | |
10836 | CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC. | |
10837 | ||
d2e4feca MP |
10838 | 2014-09-03 Marek Polacek <polacek@redhat.com> |
10839 | ||
10840 | * c.opt (Wlogical-not-parentheses): Enable by -Wall. | |
10841 | ||
9a771876 JJ |
10842 | 2014-09-02 Jakub Jelinek <jakub@redhat.com> |
10843 | Balaji V. Iyer <balaji.v.iyer@intel.com> | |
10844 | Igor Zamyatin <igor.zamyatin@intel.com> | |
10845 | ||
10846 | * c-cilkplus.c (cilk_for_number_of_iterations): New function. | |
10847 | * c-common.c (c_common_reswords): Added _Cilk_for. | |
10848 | * c-common.h (enum rid): Added RID_CILK_FOR. | |
10849 | (cilk_for_number_of_iterations): Add declaration. | |
10850 | * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and | |
10851 | CILK_FOR. | |
10852 | * c-pragma.c (init_pragma): Register "grainsize" pragma. | |
10853 | * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE. | |
10854 | ||
81b5d104 MLI |
10855 | 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10856 | ||
10857 | * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels, | |
10858 | Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs, | |
10859 | Wundef): Use CPP, Var and Init. | |
10860 | * c-opts.c (c_common_handle_option): Do not handle the above flags here. | |
10861 | ||
b753b37b MLI |
10862 | 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10863 | ||
10864 | * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init. | |
10865 | * c-opts.c (c_common_handle_option): Do not handle here. | |
10866 | ||
028aee17 JM |
10867 | 2014-08-25 Jason Merrill <jason@redhat.com> |
10868 | ||
10869 | * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for | |
10870 | -std=c++14 and -std=gnu++14, rather than the reverse. | |
10871 | * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and | |
10872 | OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14. | |
10873 | * c-common.h (cxx_dialect): Remove cxx1y. | |
10874 | ||
e4276ba5 ESR |
10875 | 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net> |
10876 | ||
10877 | * c-common.h (enum cxx_dialect): Add cxx14. | |
10878 | * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14. | |
10879 | * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from | |
10880 | cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11. | |
10881 | ||
a545cacd JM |
10882 | 2014-08-22 Jason Merrill <jason@redhat.com> |
10883 | ||
10884 | * c.opt (std=gnu++17): Fix alias. | |
10885 | ||
59ea0364 MP |
10886 | 2014-08-22 Marek Polacek <polacek@redhat.com> |
10887 | ||
10888 | PR c++/62199 | |
10889 | * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't | |
10890 | check for vector types. Drop LHS argument. | |
10891 | * c-common.h (warn_logical_not_parentheses): Adjust. | |
10892 | ||
596e808c MLI |
10893 | 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10894 | ||
10895 | * c.opt (Wcomment): Use CPP, Var and LangEnabledBy. | |
10896 | (Wmultichar): Likewise. | |
10897 | (Wdate-time): Use C-family languages instead of Common. Use CPP | |
10898 | and Var. | |
10899 | * c-opts.c (c_common_handle_option): Do not handle the above | |
10900 | options here. | |
10901 | (sanitize_cpp_opts): Likewise. | |
10902 | ||
18767f65 MLI |
10903 | 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10904 | ||
10905 | PR fortran/44054 | |
10906 | * c-opts.c: Include tree-diagnostics.h. | |
10907 | (c_diagnostic_finalizer): New. | |
10908 | (c_common_initialize_diagnostics): Use it. | |
10909 | ||
b4413594 MLI |
10910 | 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10911 | ||
10912 | PR preprocessor/51303 | |
10913 | * c-common.c (struct reason_option_codes_t option_codes): | |
10914 | Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically. | |
10915 | ||
43f9a13c MLI |
10916 | 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10917 | ||
10918 | PR c/60975 | |
10919 | PR c/53063 | |
10920 | * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy. | |
10921 | * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto. | |
10922 | (c_common_post_options): Call init_global_opts_from_cpp. | |
10923 | (sanitize_cpp_opts): Do not handle Wvariadic-macros here. | |
10924 | ||
04159acf MP |
10925 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
10926 | ||
10927 | PR c++/62153 | |
10928 | * c-common.c (maybe_warn_bool_compare): New function. | |
10929 | * c-common.h (maybe_warn_bool_compare): Declare. | |
10930 | * c.opt (Wbool-compare): New option. | |
10931 | ||
35aff4fb MP |
10932 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
10933 | ||
10934 | * c.opt (Wc99-c11-compat): New option. | |
10935 | ||
177cce46 MP |
10936 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
10937 | ||
10938 | * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according | |
10939 | to warn_c90_c99_compat. | |
10940 | * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize | |
10941 | to -1. | |
10942 | ||
6ae9194f MLI |
10943 | 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10944 | Steven Bosscher <steven@gcc.gnu.org> | |
10945 | ||
10946 | PR c/52952 | |
10947 | * c-format.c: Add extra_arg_loc and format_string_loc to struct | |
10948 | format_check_results. | |
10949 | (check_function_format): Use true and add comment for boolean | |
10950 | argument. | |
10951 | (finish_dollar_format_checking): Use explicit location when warning. | |
10952 | (check_format_info): Likewise. | |
10953 | (check_format_arg): Set extra_arg_loc and format_string_loc. | |
10954 | (check_format_info_main): Use explicit location when warning. | |
10955 | (check_format_types): Pass explicit location. | |
10956 | (format_type_warning): Likewise. | |
10957 | ||
8e54f6d3 MLI |
10958 | 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
10959 | ||
10960 | PR fortran/44054 | |
10961 | * c-format.c: Handle Fortran flags. | |
10962 | ||
cd4e76fc IZ |
10963 | 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com> |
10964 | ||
10965 | PR other/61962 | |
10966 | * array-notation-common.c (find_rank): Added handling for other | |
10967 | types of references. | |
10968 | ||
f3bede71 MP |
10969 | 2014-08-10 Marek Polacek <polacek@redhat.com> |
10970 | ||
10971 | PR c/51849 | |
10972 | * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp. | |
10973 | * c.opt (Wc90-c99-compat): Add option. | |
10974 | ||
9f25a338 TS |
10975 | 2014-08-07 Trevor Saunders <tsaunders@mozilla.com> |
10976 | ||
10977 | * c-gimplify.c, cilk.c: Remove includes of pointer-set.h. | |
10978 | ||
62e4eb35 MP |
10979 | 2014-08-03 Marek Polacek <polacek@redhat.com> |
10980 | ||
ab20d992 | 10981 | * c-common.c (check_case_value): Add location_t parameter. Use it. |
62e4eb35 MP |
10982 | (c_add_case_label): Pass loc to check_case_value. |
10983 | ||
b787e7a2 TS |
10984 | 2014-08-02 Trevor Saunders <tsaunders@mozilla.com> |
10985 | ||
10986 | * cilk.c: Use hash_map instead of pointer_map. | |
10987 | ||
6e2830c3 TS |
10988 | 2014-08-02 Trevor Saunders <tsaunders@mozilla.com> |
10989 | ||
10990 | * c-gimplify.c: Use hash_set instead of pointer_set. | |
10991 | ||
a7ee52fb IZ |
10992 | 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com> |
10993 | ||
10994 | PR middle-end/61455 | |
10995 | * array-notation-common.c (extract_array_notation_exprs): Handling | |
10996 | of DECL_EXPR added. | |
10997 | ||
944fa280 JJ |
10998 | 2014-08-01 Jakub Jelinek <jakub@redhat.com> |
10999 | ||
11000 | * c-common.h (min_align_of_type): Removed prototype. | |
11001 | * c-common.c (min_align_of_type): Removed. | |
11002 | * c-ubsan.h (ubsan_maybe_instrument_reference, | |
11003 | ubsan_maybe_instrument_member_call): New prototypes. | |
11004 | * c-ubsan.c: Include stor-layout.h and builtins.h. | |
11005 | (ubsan_maybe_instrument_reference_or_call, | |
11006 | ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New | |
11007 | functions. | |
11008 | ||
b4dfdc11 MG |
11009 | 2014-07-31 Marc Glisse <marc.glisse@inria.fr> |
11010 | ||
11011 | PR c++/60517 | |
11012 | * c.opt (-Wreturn-local-addr): Move to common.opt. | |
11013 | ||
a41844e5 JM |
11014 | 2014-07-30 Jason Merrill <jason@redhat.com> |
11015 | ||
11016 | PR c++/61659 | |
11017 | PR c++/61687 | |
11018 | Revert: | |
11019 | * c.opt (-fuse-all-virtuals): New. | |
11020 | ||
976d5a22 TT |
11021 | 2014-07-30 Tom Tromey <tromey@redhat.com> |
11022 | ||
11023 | PR c/59855 | |
11024 | * c.opt (Wdesignated-init): New option. | |
11025 | * c-common.c (c_common_attribute_table): Add "designated_init". | |
11026 | (handle_designated_init): New function. | |
11027 | ||
cdc94aca MP |
11028 | 2014-07-24 Marek Polacek <polacek@redhat.com> |
11029 | ||
11030 | PR c/57653 | |
11031 | * c-opts.c (c_finish_options): If -imacros is in effect, return. | |
11032 | ||
f41373b6 DS |
11033 | 2014-07-16 Dodji Seketeli <dodji@redhat.com> |
11034 | ||
11035 | PR preprocessor/60723 - missing system-ness marks for macro tokens | |
11036 | * c-ppoutput.c (struct print::prev_was_system_token): New data | |
11037 | member. | |
11038 | (init_pp_output): Initialize it. | |
11039 | (maybe_print_line_1, maybe_print_line, print_line_1, print_line) | |
11040 | (do_line_change): Return a flag saying if a line marker was | |
11041 | emitted or not. | |
11042 | (scan_translation_unit): Detect if the system-ness of the token we | |
11043 | are about to emit is different from the one of the previously | |
11044 | emitted token. If so, emit a line marker. Avoid emitting useless | |
11045 | adjacent line markers. Avoid emitting line markers for tokens | |
11046 | originating from the expansion of built-in macros. | |
11047 | (scan_translation_unit_directives_only): Adjust. | |
11048 | ||
4d661eaa MP |
11049 | 2014-07-15 Marek Polacek <polacek@redhat.com> |
11050 | ||
11051 | * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if | |
11052 | TYPE_MAX_VALUE is NULL. | |
11053 | ||
b108f48f JJ |
11054 | 2014-07-14 Jakub Jelinek <jakub@redhat.com> |
11055 | ||
11056 | PR middle-end/61294 | |
11057 | * c.opt (Wmemset-transposed-args): New warning. | |
11058 | ||
c0221884 JM |
11059 | 2014-07-10 Jason Merrill <jason@redhat.com> |
11060 | ||
11061 | PR c++/61659 | |
11062 | PR c++/61687 | |
11063 | * c.opt (-fuse-all-virtuals): New. | |
11064 | ||
63dfbb95 RB |
11065 | 2014-07-09 Richard Biener <rguenther@suse.de> |
11066 | ||
11067 | PR c-family/61741 | |
11068 | * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions | |
11069 | using unsigned arithmetic if overflow does not wrap instead of | |
11070 | if overflow is undefined. | |
11071 | ||
773ec47f MP |
11072 | 2014-07-06 Marek Polacek <polacek@redhat.com> |
11073 | ||
11074 | PR c/6940 | |
11075 | * c.opt (Wsizeof-array-argument): New option. | |
11076 | ||
00a7ba58 JJ |
11077 | 2014-07-03 Jakub Jelinek <jakub@redhat.com> |
11078 | ||
b1726d6c | 11079 | * c-ada-spec.c (dump_ada_nodes): Don't call qsort if |
00a7ba58 JJ |
11080 | comments->count <= 1, as comments->entries might be NULL. |
11081 | ||
52ec0ea3 MP |
11082 | 2014-07-01 Marek Polacek <polacek@redhat.com> |
11083 | ||
11084 | * c.opt (Wint-conversion): New option. | |
11085 | ||
d5c3d343 MP |
11086 | 2014-07-01 Marek Polacek <polacek@redhat.com> |
11087 | ||
11088 | PR c/58286 | |
11089 | * c.opt (Wincompatible-pointer-types): New option. | |
11090 | ||
6e7ceb17 PC |
11091 | 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com> |
11092 | ||
11093 | PR c++/51400 | |
11094 | * c-common.c (handle_noreturn_attribute, handle_const_attribute): | |
11095 | Do not discard TYPE_QUALS of type. | |
11096 | ||
da73100b JM |
11097 | 2014-06-26 Jason Merrill <jason@redhat.com> |
11098 | ||
11099 | * c-common.h (enum cxx_dialect): Add cxx1z. | |
11100 | * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New. | |
11101 | * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it. | |
11102 | ||
08eedf75 TJ |
11103 | 2014-06-26 Teresa Johnson <tejohnson@google.com> |
11104 | ||
11105 | * c-common.h (get_dump_info): Declare. | |
11106 | * c-gimplify.c (c_genericize): Use saved dump files. | |
11107 | * c-opts.c (c_common_parse_file): Begin and end dumps | |
11108 | once around parsing invocation. | |
11109 | (get_dump_info): New function. | |
11110 | ||
7b56b2f8 MP |
11111 | 2014-06-23 Marek Polacek <polacek@redhat.com> |
11112 | Andrew MacLeod <amacleod@redhat.com> | |
11113 | ||
11114 | PR c/61553 | |
11115 | * c-common.c (get_atomic_generic_size): Don't segfault if the | |
11116 | type doesn't have a size. | |
11117 | ||
0e37a2f3 MP |
11118 | 2014-06-20 Marek Polacek <polacek@redhat.com> |
11119 | ||
11120 | * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h". | |
11121 | (ubsan_walk_array_refs_r): New function. | |
11122 | (c_genericize): Instrument array bounds. | |
11123 | * c-ubsan.c: Include "internal-fn.h". | |
11124 | (ubsan_instrument_division): Mark instrumented arrays as having | |
11125 | side effects. Adjust ubsan_type_descriptor call. | |
11126 | (ubsan_instrument_shift): Likewise. | |
11127 | (ubsan_instrument_vla): Adjust ubsan_type_descriptor call. | |
11128 | (ubsan_instrument_bounds): New function. | |
11129 | (ubsan_array_ref_instrumented_p): New function. | |
11130 | (ubsan_maybe_instrument_array_ref): New function. | |
11131 | * c-ubsan.h (ubsan_instrument_bounds): Declare. | |
11132 | (ubsan_array_ref_instrumented_p): Declare. | |
11133 | (ubsan_maybe_instrument_array_ref): Declare. | |
11134 | ||
11135 | 2014-06-20 Hale Wang <hale.wang@arm.com> | |
dd6fe7d4 HW |
11136 | |
11137 | PR lto/61123 | |
11138 | * c.opt (fshort-enums): Add to LTO. | |
11139 | * c.opt (fshort-wchar): Likewise. | |
11140 | ||
5c3d09f7 MP |
11141 | 2014-06-16 Marek Polacek <polacek@redhat.com> |
11142 | ||
11143 | PR c/60439 | |
11144 | * c.opt (Wswitch-bool): Add Var. | |
11145 | ||
9cf32741 JJ |
11146 | 2014-06-12 Jakub Jelinek <jakub@redhat.com> |
11147 | ||
11148 | PR middle-end/61486 | |
11149 | * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in | |
11150 | #pragma omp target teams or | |
11151 | #pragma omp {,target }teams distribute simd. | |
11152 | ||
62984918 JM |
11153 | 2014-06-12 Jason Merrill <jason@redhat.com> |
11154 | ||
11155 | * c.opt (Wabi=, fabi-compat-version): New. | |
11156 | * c-opts.c (c_common_handle_option): Handle -Wabi=. | |
11157 | (c_common_post_options): Handle flag_abi_compat_version default. | |
11158 | Disallow -fabi-compat-version=1. | |
11159 | * c-common.h (abi_version_crosses): New. | |
11160 | ||
f961457f JH |
11161 | 2014-06-11 Jan Hubicka <hubicka@ucw.cz> |
11162 | ||
adfac8df | 11163 | * c-common.c (handle_section_attribute): Update handling for |
f961457f JH |
11164 | section names that are no longer trees. |
11165 | ||
92d28cbb JJ |
11166 | 2014-06-10 Jakub Jelinek <jakub@redhat.com> |
11167 | ||
11168 | PR fortran/60928 | |
11169 | * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK... | |
11170 | (omp_pragmas): ... back here. | |
11171 | ||
742938c9 MP |
11172 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
11173 | ||
11174 | PR c/49706 | |
11175 | * c-common.c (warn_logical_not_parentheses): New function. | |
11176 | * c-common.h (warn_logical_not_parentheses): Declare. | |
11177 | * c.opt (Wlogical-not-parentheses): New option. | |
11178 | ||
9d548dfb MP |
11179 | 2014-06-04 Marek Polacek <polacek@redhat.com> |
11180 | ||
11181 | PR c/30020 | |
11182 | * c-common.c (check_case_bounds): Add location parameter. | |
11183 | Use it. | |
11184 | (c_add_case_label): Pass loc to check_case_bounds. | |
11185 | ||
fedfecef MP |
11186 | 2014-06-03 Marek Polacek <polacek@redhat.com> |
11187 | ||
11188 | PR c/60439 | |
11189 | * c.opt (Wswitch-bool): New option. | |
11190 | ||
f6a7cffc TS |
11191 | 2014-05-22 Thomas Schwinge <thomas@codesourcery.com> |
11192 | ||
040d18b6 TS |
11193 | * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl): |
11194 | Remove prototypes. | |
11195 | (record_types_used_by_current_var_decl): Move prototype to where | |
11196 | it belongs. | |
11197 | ||
f6a7cffc TS |
11198 | * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6) |
11199 | (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8) | |
11200 | (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes. | |
11201 | ||
632f2871 RS |
11202 | 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com> |
11203 | ||
11204 | * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete. | |
11205 | * c-common.c (c_common_nodes_and_builtins): Don't initialize | |
11206 | void_zero_node. | |
11207 | * c-pretty-print.c (pp_c_void_constant): New function. | |
11208 | (c_pretty_printer::constant, c_pretty_printer::primary_expression) | |
11209 | (c_pretty_printer::expression): Handle VOID_CST. | |
11210 | * cilk.c (extract_free_variables): Likewise. | |
11211 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift) | |
11212 | (ubsan_instrument_vla): Use void_node instead of void_zero_node. | |
11213 | ||
766090c2 TS |
11214 | 2014-05-17 Trevor Saunders <tsaunders@mozilla.com> |
11215 | ||
11216 | * c-common.h (sorted_fields_type): Remove variable_size GTY attribute. | |
11217 | * c-pragma.c (push_alignment): Adjust. | |
11218 | (handle_pragma_push_options): Likewise. | |
11219 | ||
661a0813 MP |
11220 | 2014-05-09 Marek Polacek <polacek@redhat.com> |
11221 | ||
11222 | PR c/50459 | |
11223 | * c-common.c (check_user_alignment): Return -1 if alignment is error | |
11224 | node. | |
11225 | (handle_aligned_attribute): Don't call default_conversion on | |
11226 | FUNCTION_DECLs. | |
11227 | (handle_vector_size_attribute): Likewise. | |
11228 | (handle_tm_wrap_attribute): Handle case when wrap_decl is error node. | |
11229 | (handle_sentinel_attribute): Call default_conversion and allow even | |
11230 | integral types as an argument. | |
11231 | ||
2793eeab MP |
11232 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
11233 | ||
11234 | PR c/61053 | |
11235 | * c-common.c (min_align_of_type): New function factored out from... | |
11236 | (c_sizeof_or_alignof_type): ...here. | |
11237 | * c-common.h (min_align_of_type): Declare. | |
11238 | ||
f827930a MP |
11239 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
11240 | ||
11241 | PR c/61077 | |
11242 | * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified | |
11243 | parameter type of main. | |
11244 | ||
ca49b74e DD |
11245 | 2014-05-07 DJ Delorie <dj@redhat.com> |
11246 | ||
11247 | * c-cppbuiltin.c (print_bits_of_hex): New. | |
11248 | (builtin_define_type_minmax): Print values using hex so as not to | |
11249 | require a pre-computed list of string values. | |
11250 | ||
1d60af08 KZ |
11251 | 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com> |
11252 | Mike Stump <mikestump@comcast.net> | |
11253 | Richard Sandiford <rdsandiford@googlemail.com> | |
11254 | ||
11255 | * c-ada-spec.c: Include wide-int.h. | |
11256 | (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove. | |
11257 | (dump_generic_ada_node): Use wide-int interfaces. | |
11258 | * c-common.c: Include wide-int-print.h. | |
11259 | (shorten_compare): Use wide-int interfaces and tree_int_cst_lt. | |
11260 | (pointer_int_sum): Use wide-int interfaces. | |
11261 | (c_common_nodes_and_builtins): Use make_int_cst. | |
11262 | (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p. | |
11263 | (handle_alloc_size_attribute): Use wide-int interfaces. | |
11264 | (get_nonnull_operand): Likewise. | |
11265 | * c-format.c (get_constant): Use tree_fits_uhwi_p. | |
11266 | * c-lex.c: Include wide-int.h. | |
11267 | (narrowest_unsigned_type): Take a widest_int rather than two | |
11268 | HOST_WIDE_INTs. | |
11269 | (narrowest_signed_type): Likewise. | |
11270 | (interpret_integer): Update accordingly. Use wide-int interfaces. | |
11271 | (lex_charconst): Use wide-int interfaces. | |
11272 | * c-pretty-print.c: Include wide-int.h. | |
11273 | (pp_c_integer_constant): Use wide-int interfaces. | |
11274 | * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of | |
11275 | INT_CST_LT_UNSIGNED. | |
11276 | ||
b15458be RB |
11277 | 2014-05-06 Richard Biener <rguenther@suse.de> |
11278 | ||
11279 | * c-opts.c (c_common_post_options): For -freestanding, | |
11280 | -fno-hosted and -fno-builtin disable pattern recognition | |
11281 | if not enabled explicitely. | |
11282 | ||
6577374e MP |
11283 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
11284 | ||
11285 | * c.opt (Wsizeof-pointer-memaccess): Describe option. | |
11286 | ||
d00887e8 MP |
11287 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
11288 | ||
11289 | PR c/43245 | |
11290 | * c.opt (Wdiscarded-qualifiers): Add. | |
11291 | ||
f8ed5150 MP |
11292 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
11293 | ||
11294 | * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform | |
11295 | INT_MIN / -1 sanitization only for integer types. | |
11296 | ||
45484dcf MP |
11297 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
11298 | ||
11299 | PR c/18079 | |
11300 | * c-common.c (handle_noinline_attribute): Warn if the attribute | |
11301 | conflicts with always_inline attribute. | |
11302 | (handle_always_inline_attribute): Warn if the attribute conflicts | |
11303 | with noinline attribute. | |
11304 | ||
38e514c0 MP |
11305 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
11306 | ||
11307 | PR c/60156 | |
11308 | * c-common.c (check_main_parameter_types): Warn about variadic main. | |
11309 | ||
44875f92 MS |
11310 | 2014-04-24 Mike Stump <mikestump@comcast.net> |
11311 | ||
11312 | * c.opt (Wshadow-ivar): Default to on. | |
11313 | ||
dcaaa5a0 DP |
11314 | 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com> |
11315 | ||
11316 | * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add. | |
11317 | ||
c07d7c02 MP |
11318 | 2014-04-23 Marek Polacek <polacek@redhat.com> |
11319 | ||
11320 | * c-common.c (handle_tm_wrap_attribute): Tweak error message. | |
11321 | ||
1c33c9b7 JJ |
11322 | 2014-04-22 Jakub Jelinek <jakub@redhat.com> |
11323 | ||
11324 | PR sanitizer/60275 | |
11325 | * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap () | |
11326 | if flag_sanitize_undefined_trap_on_error. | |
11327 | (ubsan_instrument_division, ubsan_instrument_shift, | |
11328 | ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort () | |
11329 | if !flag_sanitize_recover. | |
11330 | ||
793c625f MG |
11331 | 2014-04-22 Marc Glisse <marc.glisse@inria.fr> |
11332 | ||
11333 | PR libstdc++/43622 | |
11334 | * c-common.c (registered_builtin_types): Make non-static. | |
11335 | * c-common.h (registered_builtin_types): Declare. | |
11336 | ||
b0f1bf36 | 11337 | 2014-04-14 Richard Biener <rguenther@suse.de> |
ab20d992 | 11338 | Marc Glisse <marc.glisse@inria.fr> |
b0f1bf36 RB |
11339 | |
11340 | PR c/60819 | |
11341 | * c-common.c (convert_vector_to_pointer_for_subscript): Properly | |
11342 | apply may-alias the scalar pointer type when applicable. | |
11343 | ||
3b07fa4a IZ |
11344 | 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com> |
11345 | ||
11346 | PR middle-end/60467 | |
11347 | * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL | |
11348 | as possible argument for Cilk_spawn. | |
11349 | ||
cbbd2b1c TB |
11350 | 2014-04-11 Tobias Burnus <burnus@net-b.de> |
11351 | ||
11352 | PR c/60194 | |
11353 | * c.opt (Wformat-signedness): Add | |
11354 | * c-format.c(check_format_types): Use it. | |
11355 | ||
6415bd5d JM |
11356 | 2014-04-11 Jason Merrill <jason@redhat.com> |
11357 | ||
11358 | PR c++/57926 | |
11359 | * c-common.c (sync_resolve_size, get_atomic_generic_size): Call | |
11360 | default_conversion for an array argument. | |
11361 | ||
6525783a MP |
11362 | 2014-04-08 Marek Polacek <polacek@redhat.com> |
11363 | ||
11364 | PR sanitizer/60745 | |
11365 | * c-ubsan.c: Include asan.h. | |
11366 | (ubsan_instrument_return): Call initialize_sanitizer_builtins. | |
11367 | ||
880a467b NS |
11368 | 2014-04-03 Nathan Sidwell <nathan@codesourcery.com> |
11369 | ||
11370 | * c.opt (Wnon-virtual-dtor): Auto set when Weffc++. | |
11371 | ||
7b59ff2d MP |
11372 | 2014-04-02 Marek Polacek <polacek@redhat.com> |
11373 | ||
11374 | * c-common.h (c_expand_expr): Remove declaration. | |
11375 | ||
8edbfaa6 JJ |
11376 | 2014-03-28 Jakub Jelinek <jakub@redhat.com> |
11377 | ||
11378 | PR c++/60689 | |
11379 | * c-common.c (add_atomic_size_parameter): When creating new | |
11380 | params vector, push the size argument first. | |
11381 | ||
07d72e1d JJ |
11382 | 2014-03-26 Jakub Jelinek <jakub@redhat.com> |
11383 | ||
11384 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift, | |
11385 | ubsan_instrument_vla, ubsan_instrument_return): Adjust | |
11386 | ubsan_create_data callers. | |
11387 | ||
b35e0fa0 JJ |
11388 | 2014-03-22 Jakub Jelinek <jakub@redhat.com> |
11389 | ||
11390 | PR debug/60603 | |
11391 | * c-opts.c (c_finish_options): Restore cb_file_change call to | |
11392 | <built-in>. | |
11393 | ||
39a1ebb3 JJ |
11394 | 2014-03-13 Jakub Jelinek <jakub@redhat.com> |
11395 | ||
11396 | PR middle-end/36282 | |
11397 | * c-pragma.c (apply_pragma_weak): Only look at | |
11398 | TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if | |
11399 | DECL_ASSEMBLER_NAME_SET_P (decl). | |
11400 | (maybe_apply_pending_pragma_weaks): Exit early if | |
11401 | vec_safe_is_empty (pending_weaks) rather than only when | |
11402 | !pending_weaks. | |
11403 | (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P, | |
11404 | set assembler name back to NULL afterwards. | |
11405 | ||
a07f6ed2 JM |
11406 | 2014-03-11 Jason Merrill <jason@redhat.com> |
11407 | ||
11408 | * c.opt: Add -std=gnu++14. | |
11409 | ||
75b107f5 IB |
11410 | 2014-03-11 Ian Bolton <ian.bolton@arm.com> |
11411 | ||
11412 | * c-opts.c (c_common_post_options): Don't override | |
11413 | -ffp-contract=fast if unsafe-math-optimizations is on. | |
11414 | ||
f42c637e PM |
11415 | 2014-03-08 Paulo Matos <paulo@matos-sorge.com> |
11416 | ||
22b15758 | 11417 | * c.opt: Enable LTO FE for fshort-double. |
f42c637e | 11418 | |
70e24808 JM |
11419 | 2014-03-07 Jason Merrill <jason@redhat.com> |
11420 | ||
11421 | * c.opt: Add -std=c++14. | |
11422 | ||
3af9c5e9 MP |
11423 | 2014-03-06 Marek Polacek <polacek@redhat.com> |
11424 | ||
11425 | PR c/60197 | |
11426 | * cilk.c (contains_cilk_spawn_stmt): New function. | |
11427 | (contains_cilk_spawn_stmt_walker): Likewise. | |
11428 | (recognize_spawn): Give error on invalid use of _Cilk_spawn. | |
11429 | * c-common.h (contains_cilk_spawn_stmt): Add declaration. | |
11430 | ||
b3bdf019 JJ |
11431 | 2014-03-03 Jakub Jelinek <jakub@redhat.com> |
11432 | ||
11433 | * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD. | |
11434 | (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD | |
11435 | even when flag_preprocess_only. | |
11436 | ||
ca7e759d JM |
11437 | 2014-02-26 Jason Merrill <jason@redhat.com> |
11438 | ||
11439 | PR c++/59231 | |
11440 | PR c++/11586 | |
11441 | * c-common.c (shorten_compare): Don't check | |
11442 | c_inhibit_evaluation_warnings. | |
11443 | ||
28e41874 JJ |
11444 | 2014-02-19 Jakub Jelinek <jakub@redhat.com> |
11445 | ||
cca615af JJ |
11446 | PR c/37743 |
11447 | * c-common.c (c_common_nodes_and_builtins): When initializing | |
11448 | c_uint{16,32,64}_type_node, also set corresponding | |
11449 | uint{16,32,64}_type_node to the same value. | |
11450 | ||
28e41874 JJ |
11451 | PR c++/60267 |
11452 | * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma | |
11453 | for PRAGMA_IVDEP if flag_preprocess_only. | |
11454 | ||
c2bf53a1 JJ |
11455 | 2014-02-12 Jakub Jelinek <jakub@redhat.com> |
11456 | ||
11457 | PR c/60101 | |
11458 | * c-common.c (merge_tlist): If copy is true, call new_tlist, | |
11459 | if false, add ADD itself, rather than vice versa. | |
11460 | (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero | |
11461 | copy. For SAVE_EXPR, only call merge_tlist once. | |
11462 | ||
8fcbce72 JJ |
11463 | 2014-02-08 Jakub Jelinek <jakub@redhat.com> |
11464 | ||
11465 | PR middle-end/60092 | |
11466 | * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p | |
11467 | and tree_to_uhwi. | |
11468 | (handle_alloc_align_attribute, handle_assume_aligned_attribute): New | |
11469 | functions. | |
11470 | (c_common_attribute_table): Add alloc_align and assume_aligned | |
11471 | attributes. | |
11472 | ||
0a756a3f MP |
11473 | 2014-02-06 Marek Polacek <polacek@redhat.com> |
11474 | ||
11475 | PR c/60087 | |
11476 | * c-common.c (warn_for_sign_compare): Call warning_at with location | |
11477 | instead of warning. | |
11478 | ||
7ec4847a MP |
11479 | 2014-02-05 Marek Polacek <polacek@redhat.com> |
11480 | ||
11481 | PR c/53123 | |
11482 | * c-omp.c (c_finish_omp_atomic): Remove unreachable return | |
11483 | statement. | |
11484 | ||
66f20604 MP |
11485 | 2014-02-04 Marek Polacek <polacek@redhat.com> |
11486 | ||
11487 | PR c/60036 | |
11488 | * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or | |
11489 | SAVE_EXPR. | |
11490 | ||
5d77fb19 MG |
11491 | 2014-02-03 Marc Glisse <marc.glisse@inria.fr> |
11492 | ||
11493 | PR c++/53017 | |
11494 | PR c++/59211 | |
11495 | * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute, | |
11496 | handle_vector_size_attribute, handle_nonnull_attribute): Call | |
11497 | default_conversion on the attribute argument. | |
11498 | (handle_nonnull_attribute): Increment the argument number. | |
11499 | ||
81e5eca8 MP |
11500 | 2014-01-31 Marek Polacek <polacek@redhat.com> |
11501 | ||
11502 | PR c/59963 | |
11503 | * c-common.c (add_atomic_size_parameter): Pass vNULL to | |
11504 | build_function_call_vec. | |
11505 | (resolve_overloaded_builtin): Likewise. | |
11506 | * c-common.h (build_function_call_vec): Adjust declaration. | |
11507 | ||
68fca595 MP |
11508 | 2014-01-30 Marek Polacek <polacek@redhat.com> |
11509 | ||
11510 | PR c/59940 | |
11511 | * c-common.h (unsafe_conversion_p): Adjust declaration. | |
11512 | (warnings_for_convert_and_check): Likewise. | |
11513 | (convert_and_check): Likewise. | |
11514 | * c-common.c (unsafe_conversion_p): Add location parameter. Call | |
11515 | expansion_point_location_if_in_system_header on it. | |
11516 | (warnings_for_convert_and_check): Add location parameter. Call | |
11517 | expansion_point_location_if_in_system_header on it. Use it. | |
11518 | (convert_and_check): Add location parameter. Use it. | |
11519 | (conversion_warning): Likewise. | |
11520 | (c_add_case_label): Adjust convert_and_check calls. | |
11521 | (scalar_to_vector): Adjust unsafe_conversion_p calls. | |
11522 | ||
b72271b9 BI |
11523 | 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com> |
11524 | ||
11525 | * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with | |
11526 | flag_cilkplus. | |
11527 | * c-pragma.c (init_pragma): Likewise. | |
11528 | * c.opt: Likewise. | |
11529 | ||
393e8e8b MP |
11530 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
11531 | ||
11532 | PR c/59846 | |
11533 | * c-common.c (shorten_compare): Add location_t parameter. | |
11534 | * c-common.h (shorten_binary_op): Adjust declaration. | |
11535 | ||
f04dda30 MP |
11536 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
11537 | ||
11538 | PR c/58346 | |
11539 | * c-common.c (pointer_to_zero_sized_aggr_p): New function. | |
11540 | * c-common.h: Declare it. | |
11541 | ||
621955cb EB |
11542 | 2014-01-20 Eric Botcazou <ebotcazou@adacore.com> |
11543 | ||
11544 | * c-ada-spec.h (dump_ada_specs): Revert prototype change. | |
11545 | * c-ada-spec.c (dump_ads): Likewise. | |
11546 | (cpp_check): Likewise. | |
11547 | (dump_ada_specs): Likewise. | |
11548 | ||
11549 | 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com> | |
67bf2939 LA |
11550 | |
11551 | PR c++/49718 | |
11552 | * c-common.c (handle_no_instrument_function_attribute): Allow | |
11553 | no_instrument_function attribute in class member | |
11554 | definition/declaration. | |
11555 | ||
241f845a JJ |
11556 | 2014-01-15 Jakub Jelinek <jakub@redhat.com> |
11557 | ||
11558 | PR c/58943 | |
11559 | * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around | |
11560 | build_modify_expr with non-NOP_EXPR opcode. Handle return from it | |
11561 | being COMPOUND_EXPR. | |
11562 | (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first | |
11563 | operand a SAVE_EXPR and second MODIFY_EXPR. | |
11564 | ||
e83b8e2e JJ |
11565 | 2014-01-09 Jakub Jelinek <jakub@redhat.com> |
11566 | ||
11567 | PR target/58115 | |
11568 | * c-pch.c (c_common_write_pch): Call | |
11569 | prepare_target_option_nodes_for_pch. | |
11570 | ||
23a5b65a RS |
11571 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
11572 | ||
11573 | Update copyright years | |
11574 | ||
f9030485 RS |
11575 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
11576 | ||
11577 | * array-notation-common.c, c-cilkplus.c: Use the standard form for | |
11578 | the copyright notice. | |
11579 | ||
f2aa696b EB |
11580 | 2013-12-28 Eric Botcazou <ebotcazou@adacore.com> |
11581 | ||
11582 | * c-ada-spec.c (print_constructor): New function. | |
11583 | (print_destructor): Retrieve the origin of the destructor. | |
11584 | (print_ada_declaration): Revamp handling of constructors/destructors. | |
11585 | ||
3f8257db | 11586 | 2013-12-23 Stuart Hastings <stuart@apple.com> |
1f26ac87 JM |
11587 | Bill Maddox <maddox@google.com> |
11588 | Jason Merrill <jason@redhat.com> | |
11589 | ||
11590 | * c.opt: Add -fdeclone-ctor-dtor. | |
11591 | * c-opts.c (c_common_post_options): Default to on iff -Os. | |
11592 | ||
41958c28 BI |
11593 | 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com> |
11594 | ||
11595 | * c-common.c (c_common_attribute_table): Added "cilk simd function" | |
11596 | attribute. | |
11597 | * c-pragma.h (enum pragma_cilk_clause): Remove. | |
ab20d992 | 11598 | (enum pragma_omp_clause): Added the following fields: |
41958c28 BI |
11599 | PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK, |
11600 | PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE, | |
11601 | PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE, | |
11602 | PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE, | |
11603 | PRAGMA_CILK_CLAUSE_UNIFORM. | |
11604 | ||
b1726d6c | 11605 | |
12893402 BI |
11606 | 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com> |
11607 | ||
11608 | * cilk.c (cilk_outline): Made this function non-static. | |
11609 | (gimplify_cilk_spawn): Removed pre_p and post_p arguments. | |
11610 | (create_cilk_wrapper): Added a new parameter: a function pointer. | |
11611 | (c_install_body_w_frame_cleanup): Remove | |
11612 | (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case. | |
11613 | * c-common.h (cilk_outline): New prototype. | |
11614 | (gimplify_cilk_spawn): Removed two parameters. | |
11615 | (cilk_install_body_with_frame_cleanup): New prototype. | |
11616 | * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and | |
11617 | CILK_SPAWN_STMT case. | |
11618 | ||
085b42ed BS |
11619 | 2013-12-11 Bernd Schmidt <bernds@codesourcery.com> |
11620 | ||
2ce064c3 BS |
11621 | * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR. |
11622 | ||
085b42ed BS |
11623 | * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE. |
11624 | (int_array_type_node): Remove. | |
11625 | * c-common.c (c_common_nodes_and_builtins): Don't build it. | |
11626 | ||
9e36c9ed MP |
11627 | 2013-12-05 Marek Polacek <polacek@redhat.com> |
11628 | ||
11629 | PR c/52023 | |
11630 | * c-common.c (c_sizeof_or_alignof_type): Move a declaration into | |
11631 | [ADJUST_FIELD_ALIGN]. | |
11632 | ||
296674db JM |
11633 | 2013-12-04 Joseph Myers <joseph@codesourcery.com> |
11634 | ||
11635 | PR c/52023 | |
11636 | * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof | |
11637 | and check field alignment if set. | |
11638 | * c-common.h (c_sizeof_or_alignof_type): Update prototype. | |
11639 | (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type. | |
11640 | ||
b1726d6c | 11641 | 2013-12-04 Jakub Jelinek <jakub@redhat.com> |
31e071ae MP |
11642 | Marek Polacek <polacek@redhat.com> |
11643 | ||
11644 | * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow | |
11645 | sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS. | |
11646 | ||
d7947e19 L |
11647 | 2013-11-29 H.J. Lu <hongjiu.lu@intel.com> |
11648 | ||
11649 | PR c/59309 | |
11650 | * cilk.c (gimplify_cilk_spawn): Properly handle function without | |
11651 | arguments. | |
11652 | ||
fad7652e JJ |
11653 | 2013-11-29 Jakub Jelinek <jakub@redhat.com> |
11654 | ||
11655 | PR c/59280 | |
11656 | * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE, | |
11657 | goto invalid. If it is error_mark_node, don't issue further | |
11658 | diagnostics. | |
11659 | ||
8b5e1202 SO |
11660 | 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com> |
11661 | ||
11662 | * c.opt (Wopenmp-simd): New. | |
11663 | ||
0a508bb6 JJ |
11664 | 2013-11-22 Jakub Jelinek <jakub@redhat.com> |
11665 | ||
11666 | * c-ubsan.h (ubsan_instrument_return): New prototype. | |
11667 | * c-ubsan.c (ubsan_instrument_return): New function. | |
11668 | ||
2fb9a547 AM |
11669 | 2013-11-22 Andrew MacLeod <amacleod@redhat.com> |
11670 | ||
11671 | * c-common.c: Add required include files from gimple.h. | |
ab20d992 JJ |
11672 | * c-gimplify.c: Likewise. |
11673 | * cilk.c: Likewise. | |
2fb9a547 | 11674 | |
8400e75e DM |
11675 | 2013-11-22 David Malcolm <dmalcolm@redhat.com> |
11676 | ||
11677 | * c-common.c (unsafe_conversion_p): Remove use of | |
11678 | EXPR_LOC_OR_HERE macro. | |
11679 | (conversion_warning): Likewise. | |
11680 | (warnings_for_convert_and_check): Likewise. | |
11681 | (warn_for_collisions_1): Likewise. | |
11682 | (shorten_compare): Likewise, and remove use of in_system_header | |
11683 | macro, using the location from the former. | |
11684 | * c-lex.c (dump_one_header): Remove use of input_filename macro. | |
11685 | (cb_def_pragma): Remove use of in_system_header macro. | |
11686 | (lex_string): Likewise. | |
11687 | * c-pragma.c (handle_pragma_float_const_decimal64): Likewise. | |
11688 | ||
eb1ce453 KZ |
11689 | 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com> |
11690 | Mike Stump <mikestump@comcast.net> | |
11691 | Richard Sandiford <rdsandiford@googlemail.com> | |
11692 | ||
11693 | * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi | |
11694 | instead of TREE_INT_CST_LOW, in cases where there is a protecting | |
11695 | tree_fits_shwi_p or tree_fits_uhwi_p. | |
11696 | (dump_generic_ada_node): Likewise. | |
11697 | * c-format.c (check_format_arg): Likewise. | |
11698 | * c-pretty-print.c (pp_c_integer_constant): Likewise. | |
11699 | ||
6b3b8c27 KZ |
11700 | 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com> |
11701 | ||
11702 | * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi. | |
11703 | ||
49b0aa18 JC |
11704 | 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com> |
11705 | ||
11706 | PR c/53001 | |
11707 | * c-common.c (unsafe_conversion_p): Make this function | |
11708 | return an enumeration with more detail. | |
11709 | (conversion_warning): Use the new return type of | |
11710 | unsafe_conversion_p to separately warn either about conversions | |
11711 | that lower floating point number precision or about the other | |
11712 | kinds of conversions. | |
11713 | * c-common.h (enum conversion_safety): New enumeration. | |
8e745a17 JJ |
11714 | (unsafe_conversion_p): switching return type to |
11715 | conversion_safety enumeration. | |
49b0aa18 JC |
11716 | * c.opt: Adding new warning -Wfloat-conversion and |
11717 | enabling it with -Wconversion. | |
11718 | ||
b826515a BS |
11719 | 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net> |
11720 | ||
8e745a17 JJ |
11721 | * c-opts.c: Include plugin.h. |
11722 | (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE. | |
b826515a | 11723 | |
b9a55b13 MP |
11724 | 2013-11-19 Marek Polacek <polacek@redhat.com> |
11725 | ||
11726 | * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data | |
11727 | call. | |
11728 | (ubsan_instrument_shift): Likewise. | |
11729 | (ubsan_instrument_vla): Likewise. | |
11730 | ||
7d362f6c RS |
11731 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
11732 | ||
11733 | * c-common.c (convert_vector_to_pointer_for_subscript): Remove | |
11734 | cast to unsigned type. | |
11735 | ||
386b1f1f RS |
11736 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
11737 | ||
11738 | * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than | |
11739 | tree_low_cst. | |
11740 | (complete_array_type): Update comment to refer to tree_to_[su]hwi | |
11741 | rather than tree_low_cst. | |
11742 | ||
ae7e9ddd RS |
11743 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
11744 | ||
11745 | * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with | |
11746 | tree_to_uhwi throughout. | |
11747 | ||
9439e9a1 RS |
11748 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
11749 | ||
11750 | * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace | |
11751 | tree_low_cst (..., 0) with tree_to_shwi throughout. | |
11752 | ||
cc269bb6 RS |
11753 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
11754 | ||
11755 | * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace | |
11756 | host_integerp (..., 1) with tree_fits_uhwi_p throughout. | |
11757 | ||
9541ffee RS |
11758 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
11759 | ||
11760 | * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace | |
11761 | host_integerp (..., 0) with tree_fits_shwi_p throughout. | |
11762 | ||
c02065fc AH |
11763 | 2013-11-15 Aldy Hernandez <aldyh@redhat.com> |
11764 | ||
11765 | * c-cilkplus.c: New file. | |
11766 | * c-common.c (readonly_error): Add location argument. | |
11767 | * c-common.h (readonly_error): Same. | |
11768 | (c_finish_cilk_clauses): Protoize. | |
11769 | (c_check_cilk_loop): Same. | |
11770 | c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes. | |
11771 | Do not fail on error_mark_node. | |
11772 | Abstract increment canonicalization to here... | |
11773 | (c_omp_for_incr_canonicalize_ptr): New. | |
11774 | c-pragma.c (init_pragma): Register "simd" pragma. | |
11775 | c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD. | |
11776 | (enum pragma_cilk_clause): New. | |
11777 | ||
9cc65f15 RS |
11778 | 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com> |
11779 | ||
11780 | * c-pretty-print.c (pp_c_character_constant): Remove unnecessary | |
11781 | wchar_type and host_integerp checks. | |
11782 | ||
18f429e2 AM |
11783 | 2013-11-14 Andrew MacLeod <amacleod@redhat.com> |
11784 | ||
11785 | * c-common.c: Likewise. | |
11786 | * c-gimplify.c: Likewise. | |
11787 | * cilk.c: Likewise. | |
11788 | ||
d8a2d370 DN |
11789 | 2013-11-14 Diego Novillo <dnovillo@google.com> |
11790 | ||
11791 | * c-common.c: Include fold-const.h. | |
11792 | Include stor-layout.h. | |
11793 | Include calls.h. | |
11794 | Include stringpool.h. | |
11795 | Include attribs.h. | |
11796 | Include varasm.h. | |
11797 | Include trans-mem.h. | |
11798 | * c-cppbuiltin.c: Include stor-layout.h. | |
11799 | Include stringpool.h. | |
11800 | * c-format.c: Include stringpool.h. | |
11801 | * c-lex.c: Include stringpool.h. | |
11802 | Include stor-layout.h. | |
11803 | * c-pragma.c: Include stringpool.h. | |
11804 | Include attribs.h. | |
11805 | Include varasm.h. | |
11806 | Include gcc-symtab.h. | |
11807 | * c-pretty-print.c: Include stor-layout.h. | |
11808 | Include attribs.h. | |
11809 | * cilk.c: Include stringpool.h. | |
11810 | Include calls.h. | |
11811 | ||
38b7bc7f JM |
11812 | 2013-11-13 Joseph Myers <joseph@codesourcery.com> |
11813 | ||
11814 | * c-common.h (enum rid): Add RID_AUTO_TYPE. | |
11815 | * c-common.c (c_common_reswords): Add __auto_type. | |
11816 | (keyword_begins_type_specifier): Handle RID_AUTO_TYPE. | |
11817 | ||
45b0be94 AM |
11818 | 2013-11-12 Andrew MacLeod <amacleod@redhat.com> |
11819 | ||
18f429e2 AM |
11820 | * c-common.c: Include gimplify.h. |
11821 | * c-gimplify.c: Likewise. | |
11822 | * cilk.c: Likewise. | |
11823 | * c-omp.c: Include gimple-expr.h instead of gimple.h. | |
11824 | * c-ubsan.c: Don't include gimple.h. | |
45b0be94 | 11825 | |
582d9b50 JM |
11826 | 2013-11-12 Joseph Myers <joseph@codesourcery.com> |
11827 | ||
11828 | * c-common.c (c_common_reswords): Add _Thread_local. | |
11829 | ||
6b28e197 JM |
11830 | 2013-11-09 Joseph Myers <joseph@codesourcery.com> |
11831 | ||
11832 | * c-common.c (atomic_size_supported_p): New function. | |
11833 | (resolve_overloaded_atomic_exchange) | |
11834 | (resolve_overloaded_atomic_compare_exchange) | |
11835 | (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): | |
11836 | Use it instead of comparing size with a local list of sizes. | |
11837 | ||
267bac10 JM |
11838 | 2013-11-07 Andrew MacLeod <amacleod@redhat.com> |
11839 | Joseph Myers <joseph@codesourcery.com> | |
11840 | ||
11841 | * c-common.h (enum rid): Add RID_ATOMIC. | |
11842 | * c-common.c (c_common_reswords): Add _Atomic. | |
11843 | (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument. | |
11844 | (keyword_is_type_qualifier): Accept RID_ATOMIC. | |
11845 | * c-format.c (check_format_types): Check for extra _Atomic | |
11846 | qualifiers in format argument. | |
11847 | * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier. | |
11848 | (pp_c_type_qualifier_list): Mention _Atomic in comment. | |
11849 | ||
5157b91e TB |
11850 | 2013-11-06 Tobias Burnus <burnus@net-b.de> |
11851 | ||
11852 | * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME. | |
11853 | ||
6dbe0958 JM |
11854 | 2013-11-06 Joseph Myers <joseph@codesourcery.com> |
11855 | ||
11856 | * c-opts.c (c_common_post_options): Set -ffp-contract=off in C | |
11857 | standards modes. | |
11858 | * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast | |
11859 | to mean lack of IEEE 754 support. | |
11860 | ||
e8ff5196 TB |
11861 | 2013-11-05 Tobias Burnus <burnus@net-b.de> |
11862 | ||
11863 | * c.opt (-Wdate-time): New option | |
11864 | * c-opts.c (sanitize_cpp_opts): Pass on to libcpp. | |
11865 | ||
254a0760 JM |
11866 | 2013-11-05 Joseph Myers <joseph@codesourcery.com> |
11867 | ||
11868 | * c-cppbuiltin.c (cpp_iec_559_value): Test | |
11869 | flag_excess_precision_cmdline not flag_excess_precision. | |
11870 | ||
6d7f7e0a TB |
11871 | 2013-11-05 Tobias Burnus <burnus@net-b.de> |
11872 | ||
11873 | * c.opt (fopenmp-simd): New option. | |
11874 | * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ... | |
11875 | (omp_pragmas): ... this new struct. | |
11876 | (c_pp_lookup_pragma): Also walk omp_pragmas. | |
11877 | (init_pragma): Init pragmas for -fopenmp-simd. | |
11878 | ||
55a7f02f MP |
11879 | 2013-11-04 Marek Polacek <polacek@redhat.com> |
11880 | ||
11881 | PR c++/58979 | |
11882 | * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case. | |
11883 | ||
9193fb05 JM |
11884 | 2013-11-04 Joseph Myers <joseph@codesourcery.com> |
11885 | ||
11886 | * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value): | |
11887 | New functions. | |
11888 | (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX. | |
11889 | ||
94159ecf EB |
11890 | 2013-11-04 Eric Botcazou <ebotcazou@adacore.com> |
11891 | ||
11892 | * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL. | |
11893 | (dump_ada_specs): Adjust prototype of second callback. | |
11894 | * c-ada-spec.c (cpp_check): New global variable. | |
11895 | (dump_ada_nodes): Remove cpp_check parameter and do not pass it down. | |
11896 | (print_generic_ada_decl): Likewise. | |
11897 | (has_static_fields): Change return type to bool and add guard. | |
11898 | (has_nontrivial_methods): New predicate. | |
11899 | (is_tagged_type): Change return type to bool. | |
11900 | (separate_class_package): Call has_nontrivial_methods. | |
11901 | (pp_ada_tree_identifier): Minor tweaks. | |
11902 | (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node. | |
11903 | (dump_ada_array_domains): Likewise. | |
11904 | (dump_ada_array_type): Likewise. | |
11905 | (dump_template_types): Remove cpp_check parameter and do not pass it to | |
11906 | dump_generic_ada_node. | |
11907 | (dump_ada_template): Likewise. | |
11908 | (dump_generic_ada_node): Remove cpp_check parameter and do not pass it | |
11909 | recursively. | |
11910 | (print_ada_methods): Change return type to integer. Remove cpp_check | |
11911 | parameter and do not pass it down. | |
11912 | (dump_nested_types): Remove cpp_check parameter and do not pass it to | |
11913 | dump_generic_ada_node. | |
11914 | (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before | |
11915 | accessing methods. | |
11916 | (print_ada_struct_decl): Remove cpp_check parameter and do not pass it | |
11917 | down. Use has_nontrivial_methods to recognize C++ classes. Use return | |
11918 | value of print_ada_methods. | |
11919 | (dump_ads): Rename cpp_check parameter to check and adjust prototype. | |
11920 | Set cpp_check to it before invoking dump_ada_nodes. | |
11921 | (dump_ada_specs): Likewise. | |
11922 | ||
b906f4ca MP |
11923 | 2013-11-03 Marek Polacek <polacek@redhat.com> |
11924 | ||
11925 | * c-ubsan.c: Don't include hash-table.h. | |
11926 | (ubsan_instrument_vla): New function. | |
11927 | * c-ubsan.h: Declare it. | |
11928 | ||
5e20cdc9 DM |
11929 | 2013-10-31 David Malcolm <dmalcolm@redhat.com> |
11930 | ||
11931 | Automated part of renaming of symtab_node_base to symtab_node. | |
11932 | ||
11933 | Patch autogenerated by rename_symtab.py from | |
11934 | https://github.com/davidmalcolm/gcc-refactoring-scripts | |
11935 | revision 58bb219cc090b2f4516a9297d868c245495ee622 | |
11936 | ||
11937 | * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename | |
11938 | symtab_node_base to symtab_node. | |
11939 | ||
7057e645 ESR |
11940 | 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net> |
11941 | ||
8e745a17 | 11942 | Implement C++14 digit separators. |
7057e645 ESR |
11943 | * c-lex.c (interpret_float): Remove digit separators from scratch string |
11944 | before building real literal. | |
11945 | ||
193ea7bc JJ |
11946 | 2013-10-30 Jakub Jelinek <jakub@redhat.com> |
11947 | ||
11948 | * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC. | |
11949 | ||
939b37da BI |
11950 | 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com> |
11951 | ||
11952 | * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync | |
11953 | fields. | |
11954 | (c_define_builtins): Called cilk_init_builtins if Cilk Plus is | |
11955 | enabled. | |
11956 | * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC. | |
11957 | (insert_cilk_frame): New prototype. | |
11958 | (cilk_init_builtins): Likewise. | |
11959 | (gimplify_cilk_spawn): Likewise. | |
11960 | (c_cilk_install_body_w_frame_cleanup): Likewise. | |
11961 | (cilk_detect_spawn_and_unwrap): Likewise. | |
11962 | (cilk_set_spawn_marker): Likewise. | |
11963 | (build_cilk_sync): Likewise. | |
11964 | (build_cilk_spawn): Likewise. | |
11965 | * cilk.c: New file. | |
11966 | ||
67348ccc DM |
11967 | 2013-10-29 David Malcolm <dmalcolm@redhat.com> |
11968 | ||
11969 | Patch autogenerated by refactor_symtab.py from | |
11970 | https://github.com/davidmalcolm/gcc-refactoring-scripts | |
11971 | revision 58bb219cc090b2f4516a9297d868c245495ee622 | |
11972 | ||
11973 | * c-gimplify.c (c_genericize): Update for conversion of symtab types | |
11974 | to a true class hierarchy. | |
11975 | * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise. | |
11976 | ||
d570872d RS |
11977 | 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com> |
11978 | ||
11979 | * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend. | |
11980 | ||
98906124 JL |
11981 | 2013-10-26 Jeff Law <law@redhat.com> |
11982 | ||
adfac8df JJ |
11983 | * c-common.c (c_define_builtins): Remove mudflap support. |
11984 | * c.opt: Ignore and warn for mudflap options. | |
98906124 | 11985 | |
d73749df | 11986 | 2013-10-24 Tobias Burnus <burnus@net-b.de> |
8170608b TB |
11987 | |
11988 | PR other/33426 | |
11989 | * c-pragma.c (init_pragma) Add #pragma ivdep handling. | |
11990 | * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP. | |
11991 | ||
3f04b1bb JM |
11992 | 2013-10-23 Jason Merrill <jason@redhat.com> |
11993 | ||
11994 | * c-format.c (gcc_cxxdiag_char_table): Add %X. | |
11995 | ||
acf0174b JJ |
11996 | 2013-10-11 Jakub Jelinek <jakub@redhat.com> |
11997 | ||
acd15a28 JJ |
11998 | * c-common.h (omp_clause_mask::operator !=): New method. |
11999 | * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0) | |
12000 | instead of if (mask & something) tests everywhere. | |
12001 | ||
acf0174b JJ |
12002 | * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to |
12003 | 201307 instead of 201107. | |
12004 | * c-common.c (DEF_FUNCTION_TYPE_8): Define. | |
12005 | (c_common_attribute_table): Add "omp declare target" and | |
12006 | "omp declare simd" attributes. | |
12007 | (handle_omp_declare_target_attribute, | |
12008 | handle_omp_declare_simd_attribute): New functions. | |
12009 | * c-omp.c: Include c-pragma.h. | |
12010 | (c_finish_omp_taskgroup): New function. | |
12011 | (c_finish_omp_atomic): Add swapped argument, if true, | |
12012 | build the operation first with rhs, lhs arguments and use NOP_EXPR | |
12013 | build_modify_expr. | |
12014 | (c_finish_omp_for): Add code argument, pass it down to make_code. | |
12015 | (c_omp_split_clauses): New function. | |
12016 | (c_split_parallel_clauses): Removed. | |
12017 | (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers, | |
12018 | c_omp_declare_simd_clauses_to_decls): New functions. | |
12019 | * c-common.h (omp_clause_mask): New type. | |
12020 | (OMP_CLAUSE_MASK_1): Define. | |
12021 | (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=, | |
12022 | omp_clause_mask::operator |=, omp_clause_mask::operator ~, | |
12023 | omp_clause_mask::operator |, omp_clause_mask::operator &, | |
12024 | omp_clause_mask::operator <<, omp_clause_mask::operator >>, | |
12025 | omp_clause_mask::operator ==): New methods. | |
12026 | (enum c_omp_clause_split): New. | |
12027 | (c_finish_omp_taskgroup): New prototype. | |
12028 | (c_finish_omp_atomic): Add swapped argument. | |
12029 | (c_finish_omp_for): Add code argument. | |
12030 | (c_omp_split_clauses): New prototype. | |
12031 | (c_split_parallel_clauses): Removed. | |
12032 | (c_omp_declare_simd_clauses_to_numbers, | |
12033 | c_omp_declare_simd_clauses_to_decls): New prototypes. | |
12034 | * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs. | |
12035 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL, | |
12036 | PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION, | |
12037 | PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD, | |
12038 | PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS. | |
12039 | Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS. | |
12040 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED, | |
12041 | PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE, | |
12042 | PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR, | |
12043 | PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH, | |
12044 | PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP, | |
12045 | PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS, | |
12046 | PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND, | |
12047 | PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS, | |
12048 | PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP, | |
12049 | PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and | |
12050 | PRAGMA_OMP_CLAUSE_UNIFORM. | |
12051 | ||
826cacfe MG |
12052 | 2013-10-09 Marc Glisse <marc.glisse@inria.fr> |
12053 | ||
12054 | PR tree-optimization/20318 | |
12055 | * c-common.c (handle_returns_nonnull_attribute): New function. | |
12056 | (c_common_attribute_table): Add returns_nonnull. | |
12057 | ||
2284b034 MG |
12058 | 2013-10-03 Marc Glisse <marc.glisse@inria.fr> |
12059 | ||
12060 | PR c++/19476 | |
12061 | * c.opt (fcheck-new): Move to common.opt. | |
12062 | ||
b56e9788 MP |
12063 | 2013-09-25 Marek Polacek <polacek@redhat.com> |
12064 | Jakub Jelinek <jakub@redhat.com> | |
12065 | ||
12066 | PR sanitizer/58413 | |
12067 | * c-ubsan.c (ubsan_instrument_shift): Don't instrument | |
12068 | an expression if we can prove it is correct. | |
12069 | (ubsan_instrument_division): Likewise. Remove unnecessary | |
12070 | check. | |
12071 | ||
ce6923c5 MP |
12072 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
12073 | ||
12074 | PR sanitizer/58411 | |
12075 | * c-common.c (handle_no_sanitize_undefined_attribute): New function. | |
12076 | Declare it. | |
12077 | (struct attribute_spec c_common_att): Add no_sanitize_undefined. | |
12078 | ||
fb5610fb IS |
12079 | 2013-09-14 Iain Sandoe <iain@codesourcery.com> |
12080 | ||
12081 | PR target/48094 | |
12082 | * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version, | |
12083 | fobjc-gc, freplace-objc-classes): Accept for LTO. | |
12084 | ||
88b0e79e JC |
12085 | 2013-09-13 Jacek Caban <jacek@codeweavers.com> |
12086 | ||
12087 | * c-target.def: New hook | |
12088 | ||
c9b0866a PC |
12089 | 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com> |
12090 | ||
12091 | PR c++/43452 | |
12092 | * c.opt (Wdelete-incomplete): Add. | |
12093 | ||
0af94e6f JR |
12094 | 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com> |
12095 | ||
12096 | * c-common.c (same_scalar_type_ignoring_signedness): Delete. | |
12097 | (vector_types_compatible_elements_p): New function. | |
12098 | * c-common.h: (same_scalar_type_ignoring_signedness): Delete | |
12099 | declaration. | |
12100 | (vector_types_compatible_elements_p): Declare. | |
12101 | ||
7c26172c GDR |
12102 | 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
12103 | ||
12104 | * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now | |
12105 | a virtual member function. | |
12106 | (pp_simple_type_specifier): Remove. | |
12107 | (pp_c_type_specifier): Likewise. | |
12108 | * c-pretty-print.c (c_pretty_printer::simple_type_specifier): | |
12109 | Rename from pp_c_type_specifier. Adjust. | |
12110 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
12111 | simple_type_specifier. | |
12112 | ||
20059c8b GDR |
12113 | 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
12114 | ||
12115 | * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual | |
12116 | member function. | |
12117 | (c_pretty_printer::storage_class_specifier): Likewise. | |
12118 | (c_pretty_printer::initializer): Likewise. | |
12119 | (pp_declaration): Remove. | |
12120 | (pp_declaration_specifiers): Likewise. | |
12121 | (pp_abstract_declarator): Likewise. | |
12122 | (pp_declarator): Likewise. | |
12123 | (pp_type_id): Likewise. | |
12124 | (pp_statement): Likewise. | |
12125 | (pp_constant): Likewise. | |
12126 | (pp_id_expression): Likewise. | |
12127 | (pp_primary_expression): Likewise. | |
12128 | (pp_unary_expression): Likewise. | |
12129 | (pp_multiplicative_expression): Likewise. | |
12130 | (pp_conditional_expression): Likewise. | |
12131 | (pp_assignment_expression): Likewise. | |
12132 | (pp_expression): Likewise. | |
12133 | (pp_c_type_id): Likewise. | |
12134 | (pp_c_storage_class_specifier): Likewise. | |
12135 | * c-pretty-print.c (pp_c_type_cast): Tidy. | |
12136 | (pp_c_pointer): Likewise. | |
12137 | (pp_c_type_specifier): Likewise. | |
12138 | (pp_c_parameter_type_list): Likewise. | |
12139 | (pp_c_function_definition): Likewise. | |
12140 | (pp_c_init_declarator): Likewise. | |
12141 | (pp_c_initializer_list): Likewise. | |
12142 | (pp_c_constructor_elts): Likewise. | |
12143 | (c_pretty_printer::direct_abstract_declarator): Likewise. | |
12144 | (c_pretty_printer::declaration_specifiers): Likewise. | |
12145 | (c_pretty_printer::primary_expression): Likewise. | |
12146 | (c_pretty_printer::postfix_expression): Likewise. | |
12147 | (c_pretty_printer::type_id): Rename from pp_c_type_id. | |
12148 | (c_pretty_printer::storage_class_specifier): Rename from | |
12149 | pp_c_storage_class_specifier. | |
12150 | (c_pretty_printer::initializer): Rename from pp_c_initializer. | |
12151 | (c_pretty_printer::c_pretty_printer): Do not assign to type_id, | |
12152 | storage_class_specifier, initializer, offset_list, flags. | |
12153 | ||
de5a5fa1 MP |
12154 | 2013-08-30 Marek Polacek <polacek@redhat.com> |
12155 | ||
12156 | * c-ubsan.c: New file. | |
12157 | * c-ubsan.h: New file. | |
12158 | ||
8f0e4d72 GDR |
12159 | 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net> |
12160 | ||
12161 | * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual | |
12162 | member function. | |
12163 | (c_pretty_printer::declaration_specifiers): Likewise. | |
12164 | (c_pretty_printer::declarator): Likewise. | |
12165 | (c_pretty_printer::abstract_declarator): Likewise. | |
12166 | (c_pretty_printer::direct_abstract_declarator): Likewise. | |
12167 | (c_pretty_printer::direct_declarator): Likewise. | |
12168 | (c_pretty_printer::function_specifier): Likewise. | |
12169 | (pp_declaration): Adjust. | |
12170 | (pp_declaration_specifiers): Likewise. | |
12171 | (pp_abstract_declarator): Likewise. | |
12172 | (pp_direct_declarator): Likewise. | |
12173 | (pp_function_specifier): Likewise. | |
12174 | (pp_direct_abstract_declarator): Remove as unused. | |
12175 | (pp_c_declaration): Remove. | |
12176 | (pp_c_declaration_specifiers): Likewise. | |
12177 | (pp_c_declarator): Likewise. | |
12178 | (pp_c_direct_declarator): Likewise. | |
12179 | (pp_c_function_specifier): Likewise. | |
12180 | (pp_c_direct_abstract_declarator): Likewise. | |
12181 | * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename | |
12182 | from pp_c_abstract_declarator. Adjust. | |
ab20d992 | 12183 | (c_pretty_printer::direct_abstract_declarator): Rename from |
8f0e4d72 GDR |
12184 | pp_c_direct_abstract_declarator. Adjust. |
12185 | (c_pretty_printer::function_specifier): Rename from | |
12186 | pp_c_function_specifier. Adjust. | |
12187 | (c_pretty_printer::declaration_specifiers): Rename from | |
12188 | pp_c_declaration_specifiers. Adjust. | |
12189 | (c_pretty_printer::direct_declarator): Rename from | |
12190 | pp_c_direct_declarator. Adjust. | |
12191 | (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust. | |
12192 | (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust. | |
12193 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
12194 | declaration, declaration_specifiers, declarator, | |
12195 | direct_declarator, direct_abstract_declarator, function_specifier. | |
12196 | ||
00d34d3a GDR |
12197 | 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net> |
12198 | ||
12199 | * c-pretty-print.h (c_pretty_printer::unary_expression): Now a | |
12200 | virtual member function. | |
12201 | (c_pretty_printer::multiplicative_expression): Likewise. | |
12202 | (c_pretty_printer::conditional_expression): Likewise. | |
12203 | (c_pretty_printer::assignment_expression): Likewise. | |
12204 | (c_pretty_printer::expression): Likewise. | |
12205 | (pp_unary_expression): Adjust. | |
12206 | (pp_multiplicative_expression): Likewise. | |
12207 | (pp_assignment_expression): Likewise. | |
12208 | (pp_conditional_expression): Likewise. | |
12209 | (pp_expression): Likewise. | |
12210 | * c-pretty-print.c (c_pretty_printer::unary_expression): Rename | |
12211 | from pp_c_unary_expression. Adjust. | |
12212 | (c_pretty_printer::multiplicative_expression): Rename from | |
12213 | pp_c_multiplicative_expression. Adjust. | |
12214 | (c_pretty_printer::conditional_expression): Rename from | |
12215 | pp_c_conditional_expression. Adjust. | |
12216 | (c_pretty_printer::assignment_expression): Rename from | |
12217 | pp_c_assignment_expression. Adjust. | |
12218 | (c_pretty_printer::expression): Rename from pp_c_expression. Adjust. | |
12219 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
12220 | unary_expression, multiplicative_expression, | |
12221 | conditional_expression, expression. | |
12222 | ||
fb22178f GDR |
12223 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
12224 | ||
12225 | * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a | |
12226 | virtual member function. | |
12227 | (pp_postfix_expression): Adjust. | |
12228 | (pp_c_postfix_expression): Remove. | |
12229 | * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename | |
12230 | from pp_c_postfix_expression. Adjust. | |
12231 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
12232 | postfix_expression. | |
12233 | ||
7ecc2600 GDR |
12234 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
12235 | ||
12236 | * c-pretty-print.h (c_pretty_printer::primary_expression): Now a | |
12237 | virtua member function. | |
12238 | (pp_primary_expression): Adjust. | |
12239 | (pp_c_primary_expression): Remove. | |
12240 | * c-pretty-print.c (c_pretty_printer::primary_expression): Rename | |
12241 | from pp_c_primary_expression. Adjust. | |
12242 | (pp_c_initializer_list): Use pp_primary_expression. | |
12243 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
12244 | primary_expression. | |
12245 | ||
0691175f GDR |
12246 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
12247 | ||
12248 | * c-pretty-print.h (c_pretty_printer::translate_string): Declare. | |
12249 | * c-pretty-print.c (M_): Remove. | |
12250 | (c_pretty_printer::translate_string): Define. | |
12251 | (pp_c_type_specifier): Use it. | |
12252 | (pp_c_primary_expression): Likewise. | |
12253 | (pp_c_expression): Likewise. | |
12254 | ||
66dfe4c4 GDR |
12255 | 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net> |
12256 | ||
12257 | * c-pretty-print.h (c_pretty_printer::id_expression): Now a | |
12258 | virtual function. | |
12259 | (pp_c_id_expression): Remove. | |
12260 | (pp_id_expression): Adjust. | |
12261 | * c-pretty-print.c (c_pretty_printer::id_expression): Rename from | |
12262 | pp_c_id_expression. Adjust. | |
12263 | (pp_c_postfix_expression): Use pp_id_expression. | |
12264 | (c_pretty_printer::c_pretty_printer): Do not assign to id_expression. | |
12265 | ||
ca43e9d5 GDR |
12266 | 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net> |
12267 | ||
12268 | * c-pretty-print.h (c_pretty_printer::constant): Now a virtual | |
12269 | member function. | |
12270 | (pp_constant): Adjust. | |
12271 | (pp_c_constant): Remove. | |
12272 | * c-pretty-print.c (c_pretty_printer::constant): Rename from | |
12273 | pp_c_constant. Adjust. | |
12274 | (pp_c_constant) | |
12275 | (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant. | |
12276 | (c_pretty_printer::c_pretty_printer): Remove assignment to constant. | |
12277 | ||
da6ca2b5 GDR |
12278 | 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
12279 | ||
12280 | * c-pretty-print.h (pp_c_pretty_printer_init): Remove. | |
12281 | (c_pretty_printer::c_pretty_printer): Declare. | |
12282 | * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from | |
12283 | c_pretty_printer_init. Adjust. | |
12284 | (print_c_tree): Do not call c_pretty_printer_init. | |
12285 | * c-ada-spec.c (dump_ads): Remove call to pp_construct. | |
12286 | ||
65a372f4 AC |
12287 | 2013-08-09 Arnaud Charlet <charlet@adacore.com> |
12288 | ||
12289 | * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name | |
12290 | ||
fd9b0f32 PC |
12291 | 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com> |
12292 | ||
12293 | PR c++/58080 | |
12294 | * c-common.c (pointer_int_sum): Add bool parameter. | |
12295 | * c-common.h (pointer_int_sum): Adjust declaration. | |
12296 | ||
e0aec1e9 GDR |
12297 | 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net> |
12298 | ||
12299 | * c-pretty-print.c (print_c_tree): Simplify. Use non-static local | |
12300 | c_pretty_printer variable. | |
12301 | ||
b066401f GDR |
12302 | 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
12303 | ||
12304 | * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer. | |
12305 | (pp_base): Remove. | |
12306 | (pp_c_base): Likewise. Adjust users. | |
12307 | * c-pretty-print.c (pp_c_maybe_whitespace): Adjust. | |
12308 | (pp_c_whitespace): Do not call pp_base. | |
12309 | (pp_c_left_paren): Likewise. | |
12310 | (pp_c_right_paren): Likewise. | |
12311 | (pp_c_left_brace): Likewise. | |
12312 | (pp_c_right_brace): Likewise. | |
12313 | (pp_c_left_bracket): Likewise. | |
12314 | (pp_c_right_bracket): Likewise. | |
12315 | (pp_c_dot): Likewise. | |
12316 | (pp_c_ampersand): Likewise. | |
12317 | (pp_c_star): Likewise. | |
12318 | (pp_c_arrow): Likewise. | |
12319 | (pp_c_semicolon): Likewise. | |
12320 | (pp_c_complement): Likewise. | |
12321 | (pp_c_exclamation): Likewise. | |
12322 | (pp_c_direct_declarator): Likewise. | |
12323 | (pp_c_ws_string): Likewise. | |
12324 | (pp_c_identifier): Likewise. | |
12325 | (pp_c_statement): Likewise. | |
12326 | (print_c_tree): Likewise. | |
12327 | ||
65e5a578 ESR |
12328 | 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net> |
12329 | ||
12330 | PR c++/58072 | |
12331 | * c-common.c (c_parse_error): Catch user-defined literal tokens and | |
12332 | provide useful error strings. | |
12333 | ||
137a1a27 GDR |
12334 | 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
12335 | ||
12336 | * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty | |
12337 | printer functions instead of pp_string or operators and punctuators. | |
12338 | (dump_generic_ada_node): Likewise. | |
12339 | * c-pretty-print.c (pp_c_type_specifier): Likewise. | |
12340 | (pp_c_relational_expression): Likewise. | |
12341 | (pp_c_logical_or_expression): Likewise. | |
12342 | ||
07838b13 GDR |
12343 | 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
12344 | ||
12345 | * c-ada-spec.c (print_ada_macros): Use specialized pretty printer | |
12346 | functions instead of pp_character. | |
12347 | (pp_ada_tree_identifier): Likewise. | |
12348 | (dump_ada_double_name): Likewise. | |
12349 | (dump_ada_function_declaration): Likewise. | |
12350 | (dump_ada_array_domains): Likewise. | |
12351 | (dump_template_types): Likewise. | |
12352 | (dump_generic_ada_node): Likewise. | |
12353 | (print_ada_declaration): Likewise. | |
12354 | (print_ada_struct_decl): Likewise. | |
12355 | * c-pretty-print.c (pp_c_integer_constant): Likewise. | |
12356 | ||
433cc7b0 TT |
12357 | 2013-07-23 Tom Tromey <tromey@redhat.com> |
12358 | ||
12359 | * c-common.h (enum rid) <RID_GENERIC>: New constant. | |
12360 | * c-common.c (c_common_reswords): Add _Generic. | |
12361 | ||
688010ba OB |
12362 | 2013-07-21 OndÅ\99ej BÃlka <neleai@seznam.cz> |
12363 | ||
12364 | * c-common.c: Fix typos. | |
12365 | * c-common.h: Likewise. | |
12366 | ||
2a99e5e6 LL |
12367 | 2013-07-13 Lubos Lunak <l.lunak@suse.cz> |
12368 | ||
12369 | PR c++/55203 | |
12370 | * c-common.c (c_common_attribute_table): Add warn_unused. | |
12371 | (handle_warn_unused_attribute): New. | |
12372 | ||
c26302d5 JJ |
12373 | 2013-07-10 Jakub Jelinek <jakub@redhat.com> |
12374 | ||
12375 | * c-ppoutput.c (scan_translation_unit): Call account_for_newlines | |
12376 | for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT. | |
12377 | ||
dfeadaa0 PC |
12378 | 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com> |
12379 | ||
12380 | PR c++/57869 | |
12381 | * c.opt: Add Wconditionally-supported. | |
12382 | ||
6a2fa4b2 GS |
12383 | 2013-07-08 Graham Stott <graham.stott@btinternet.com> |
12384 | ||
adfac8df | 12385 | * array-notation-common.c (length_mismatch_in_expr_p): Delete |
6a2fa4b2 GS |
12386 | unused variables l_length and l_node. |
12387 | ||
ecdbd01a | 12388 | 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com> |
40d3d530 JR |
12389 | |
12390 | PR c/57821 | |
12391 | * c-common.c (complete_array_type): Delay folding first index | |
12392 | like other indices. When folding, check for index overflow. | |
12393 | ||
bedc293e MG |
12394 | 2013-06-27 Marc Glisse <marc.glisse@inria.fr> |
12395 | ||
12396 | PR c++/57509 | |
12397 | * c-common.h (c_build_vec_perm_expr): New complain argument. | |
12398 | * c-common.c (c_build_vec_perm_expr): Likewise. | |
12399 | Use save_expr also in C++. | |
12400 | ||
604b2bfc GDR |
12401 | 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
12402 | ||
12403 | * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x. | |
12404 | * c-cppbuiltin.c (c_cpp_builtins): Likewise. | |
12405 | * c-opts.c (c_common_post_options): Likewise. | |
12406 | ||
dfeadaa0 | 12407 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
713b46fa BI |
12408 | |
12409 | * array-notation-common.c (length_mismatch_in_expr): Changed the | |
12410 | parameter type's from a dynamic array to a vec_tree. Also removed | |
12411 | the size parameters. | |
12412 | * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per | |
12413 | the change above. | |
12414 | ||
2ce86d2e BI |
12415 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
12416 | ||
12417 | * c-common.h (struct cilkplus_an_parts): New structure. | |
12418 | (struct cilkplus_an_loop_parts): Likewise. | |
12419 | (cilkplus_extract_an_triplets): New prototype. | |
12420 | (fix_sec_implicit_args): Likewise. | |
12421 | * array-notation-common.c (cilkplus_extract_an_triplets): New function. | |
12422 | (fix_sec_implicit_args): Likewise. | |
604b2bfc | 12423 | |
07a6825b BI |
12424 | 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com> |
12425 | ||
12426 | * array-notation-common.c (find_inv_trees): Removed an unwanted | |
12427 | typecasting. | |
12428 | * c-common.h (struct inv_list::additional_tcodes): Changed type from | |
12429 | enum rid to enum tree_code. | |
12430 | ||
08346abd JH |
12431 | 2013-06-11 Jan Hubicka <jh@suse.cz> |
12432 | ||
12433 | * c-common.c (handle_alias_ifunc_attribute): Do not set | |
12434 | DECL_EXTERNAL for weakref variables. | |
12435 | * c-pragma.c (handle_pragma_weak): Make sure aliases | |
12436 | are not declared as external. | |
12437 | ||
d60f1706 BI |
12438 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
12439 | ||
12440 | * array-notation-common.c (length_mismatch_in_expr_p): Moved this | |
12441 | function from c/c-array-notation.c. | |
12442 | (is_cilkplus_reduce_builtin): Likewise. | |
12443 | (find_rank): Likewise. | |
12444 | (extract_array_notation_exprs): Likewise. | |
12445 | (replace_array_notations): Likewise. | |
12446 | (find_inv_trees): Likewise. | |
12447 | (replace_inv_trees): Likewise. | |
12448 | (contains_array_notation_expr): Likewise. | |
12449 | (find_correct_array_notation_type): Likewise. | |
12450 | * c-common.h (struct inv_list): Moved this struct from the file | |
12451 | c/c-array-notation.c and added a new field called additional tcodes. | |
12452 | (length_mismatch_in_expr_p): New prototype. | |
12453 | (is_cilkplus_reduce_builtin): Likewise. | |
12454 | (find_rank): Likewise. | |
12455 | (extract_array_notation_exprs): Likewise. | |
12456 | (replace_array_notation): Likewise. | |
12457 | (find_inv_trees): Likewise. | |
12458 | (replace_inv_trees): Likewise. | |
12459 | (find_correct_array_notation_type): Likewise. | |
dfeadaa0 | 12460 | |
36536d79 BI |
12461 | 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
12462 | ||
12463 | * c-common.c (c_define_builtins): When cilkplus is enabled, the | |
12464 | function array_notation_init_builtins is called. | |
12465 | (c_common_init_ts): Added ARRAY_NOTATION_REF as typed. | |
12466 | * c-common.def (ARRAY_NOTATION_REF): New tree. | |
12467 | * c-common.h (build_array_notation_expr): New function declaration. | |
12468 | (build_array_notation_ref): Likewise. | |
12469 | (extract_sec_implicit_index_arg): New extern declaration. | |
12470 | (is_sec_implicit_index_fn): Likewise. | |
12471 | (ARRAY_NOTATION_CHECK): New define. | |
12472 | (ARRAY_NOTATION_ARRAY): Likewise. | |
12473 | (ARRAY_NOTATION_START): Likewise. | |
12474 | (ARRAY_NOTATION_LENGTH): Likewise. | |
12475 | (ARRAY_NOTATION_STRIDE): Likewise. | |
12476 | * c-pretty-print.c (pp_c_postifix_expression): Added a new case for | |
12477 | ARRAY_NOTATION_REF. | |
12478 | (pp_c_expression): Likewise. | |
12479 | * c.opt (flag_enable_cilkplus): New flag. | |
12480 | * array-notation-common.c: New file. | |
12481 | ||
f7716d57 JJ |
12482 | 2013-05-14 Jakub Jelinek <jakub@redhat.com> |
12483 | ||
12484 | PR c++/57274 | |
12485 | * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR. | |
12486 | ||
a5e0cd1d MG |
12487 | 2013-05-10 Marc Glisse <marc.glisse@inria.fr> |
12488 | ||
12489 | * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for | |
12490 | vectors. | |
12491 | ||
f6bc1c4a HS |
12492 | 2013-05-07 Han Shen <shenhan@google.com> |
12493 | ||
12494 | * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3". | |
12495 | ||
3f12f6e9 SKS |
12496 | 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
12497 | ||
12498 | * c-common.c (check_user_alignment): Emit error for negative values. | |
12499 | ||
61949153 PC |
12500 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
12501 | ||
12502 | * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y. | |
12503 | ||
e93e18e9 PC |
12504 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
12505 | ||
12506 | * c-cppbuiltin.c (c_cpp_builtins): Do not define | |
12507 | __GXX_EXPERIMENTAL_CXX1Y__. | |
12508 | ||
44d90fe1 | 12509 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
8e745a17 | 12510 | Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
44d90fe1 PC |
12511 | |
12512 | * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented. | |
12513 | * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns | |
12514 | to simply use OPT_Wpointer_arith. | |
12515 | (c_sizeof_or_alignof_type): Likewise. | |
12516 | ||
13f39b2e PC |
12517 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
12518 | ||
12519 | * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__. | |
12520 | ||
4b84d650 JJ |
12521 | 2013-04-12 Jakub Jelinek <jakub@redhat.com> |
12522 | ||
12523 | * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table, | |
12524 | gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format | |
12525 | specifiers. | |
12526 | ||
fb037b5d SB |
12527 | 2013-04-07 Steven Bosscher <steven@gcc.gnu.org> |
12528 | ||
12529 | * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment. | |
12530 | ||
4e856798 PC |
12531 | 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com> |
12532 | ||
12533 | * c-common.c (pointer_int_sum): Remove dead code. | |
12534 | ||
4b1baac8 RS |
12535 | 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com> |
12536 | ||
12537 | PR middle-end/56524 | |
12538 | * c-common.c (handle_optimize_attribute): Don't call | |
12539 | save_optabs_if_changed. | |
12540 | ||
0b50e654 JJ |
12541 | 2013-03-05 Jakub Jelinek <jakub@redhat.com> |
12542 | ||
12543 | PR middle-end/56461 | |
12544 | * c-pch.c (pch_init): Free target_validity at the end. | |
12545 | ||
48c41403 JJ |
12546 | 2013-03-04 Jakub Jelinek <jakub@redhat.com> |
12547 | ||
12548 | * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags. | |
12549 | ||
e664c61c KS |
12550 | 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com> |
12551 | Jakub Jelinek <jakub@redhat.com> | |
12552 | ||
12553 | PR sanitizer/56454 | |
12554 | * c-common.c (handle_no_sanitize_address_attribute): New function. | |
12555 | (c_common_attribute_table): Add no_sanitize_address attribute. | |
12556 | (handle_no_address_safety_analysis_attribute): Add | |
12557 | no_sanitize_address attribute, not no_address_safety_analysis | |
12558 | attribute. | |
12559 | ||
a475fd3d | 12560 | 2013-02-18 Aldy Hernandez <aldyh@redhat.com> |
135204dd AH |
12561 | |
12562 | PR target/52555 | |
12563 | * c-common.c (handle_optimize_attribute): Call | |
12564 | save_optabs_if_changed. | |
12565 | ||
f6007d99 JJ |
12566 | 2013-02-18 Jakub Jelinek <jakub@redhat.com> |
12567 | Steven Bosscher <steven@gcc.gnu.org> | |
12568 | ||
12569 | PR pch/54117 | |
12570 | * c-opts.c (c_common_post_options): If debug info is enabled | |
12571 | and non-dwarf*, refuse to load PCH files and when writing PCH | |
12572 | file warn. | |
12573 | ||
cf35e2b1 JJ |
12574 | 2013-02-05 Jakub Jelinek <jakub@redhat.com> |
12575 | ||
12576 | PR middle-end/56167 | |
12577 | * c-common.c (handle_error_attribute): Fix condition. | |
12578 | ||
32887460 JJ |
12579 | 2013-01-30 Jakub Jelinek <jakub@redhat.com> |
12580 | ||
12581 | PR c++/55742 | |
12582 | * c-common.c (handle_target_attribute): Revert 2012-12-26 change. | |
12583 | ||
5af057d8 JM |
12584 | 2013-01-18 Jason Merrill <jason@redhat.com> |
12585 | ||
12586 | PR target/54908 | |
12587 | * c.opt (-fextern-tls-init): New. | |
12588 | * c-opts.c (c_common_post_options): Handle it. | |
12589 | ||
cc83c823 JJ |
12590 | 2013-01-09 Jakub Jelinek <jakub@redhat.com> |
12591 | ||
12592 | PR c/48418 | |
12593 | * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and | |
12594 | RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST | |
12595 | and is either negative or bigger or equal to type precision | |
12596 | of the first operand. | |
12597 | ||
a859517f MP |
12598 | 2012-12-03 Marek Polacek <polacek@redhat.com> |
12599 | ||
12600 | PR c/55570 | |
12601 | * c-common.c (check_user_alignment): Swap order of tests, | |
12602 | check TREE_CODE first. | |
12603 | ||
2d7aa578 ESR |
12604 | 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net> |
12605 | ||
12606 | PR c++/52654 | |
12607 | * c-common.h (overflow_type): New enum. | |
12608 | (build_userdef_literal): Add overflow_type argument. | |
12609 | (tree_userdef_literal): Add overflow_type. | |
12610 | (USERDEF_LITERAL_OVERFLOW): New access macro. | |
12611 | * c-common.c (build_userdef_literal): Add overflow_type | |
12612 | argument. | |
12613 | * c-lex.c (c_lex_with_flags): Add overflow_type to | |
12614 | build_userdef_literal calls. | |
12615 | (interpret_integer, interpret_float): Add overflow_type argument. | |
12616 | ||
cc3c4f62 RB |
12617 | 2012-11-28 Richard Biener <rguenther@suse.de> |
12618 | ||
12619 | PR c/35634 | |
12620 | * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions | |
12621 | here and use a type with proper overflow behavior for types that would | |
12622 | need to be promoted for the arithmetic. | |
12623 | ||
77bc5132 JJ |
12624 | 2012-11-23 Jakub Jelinek <jakub@redhat.com> |
12625 | ||
12626 | PR sanitizer/55435 | |
12627 | * c-common.c (handle_no_address_safety_analysis_attribute): New | |
12628 | function. | |
12629 | (c_common_attribute_table): Add no_address_safety_analysis. | |
12630 | ||
5dc99c46 SB |
12631 | 2012-11-16 Simon Baldwin <simonb@google.com> |
12632 | ||
12633 | * c.opt: Add f[no-]canonical-system-headers. | |
12634 | * c-opts.c (c_common_handle_option): Handle | |
12635 | OPT_fcanonical_system_headers. | |
12636 | ||
a4a0016d ESR |
12637 | 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net> |
12638 | ||
12639 | PR c++/54413 | |
12640 | * c-opts.c (c_common_handle_option): Set new flags. | |
12641 | * c.opt: Describe new flags. | |
12642 | ||
7dbb85a7 JM |
12643 | 2012-11-09 Jason Merrill <jason@redhat.com> |
12644 | ||
12645 | * c.opt (Wabi-tag): New. | |
12646 | ||
ad7bac31 AK |
12647 | 2012-11-09 Andi Kleen <ak@linux.intel.com> |
12648 | ||
12649 | PR 55139 | |
12650 | * c-common.c (get_atomic_generic_size): Mask with | |
8e745a17 | 12651 | MEMMODEL_MASK |
ad7bac31 | 12652 | |
7332899a MLI |
12653 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
12654 | ||
12655 | PR c/53063 | |
12656 | * c.opt (Wformat): Make it Alias Wformat=1. | |
12657 | (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral, | |
12658 | Wformat-security,Wformat-y2k,Wformat-zero-length): Use | |
12659 | LangEnabledBy. | |
12660 | (Wformat=): RejectNegative. Use LangEnabledBy. | |
12661 | (Wnonnull): Use LangEnabledBy. | |
12662 | * c-opts.c (c_common_handle_option): Do not handle Wformat here. | |
12663 | * c-format.c (set_Wformat): Delete. | |
12664 | (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_. | |
ab20d992 JJ |
12665 | (maybe_read_dollar_number): Likewise. |
12666 | (avoid_dollar_number): Likewise. | |
12667 | (finish_dollar_format_checking): Likewise. | |
12668 | (check_format_info): Likewise. | |
12669 | (check_format_info_main): Likewise. | |
12670 | (check_format_types): Likewise. | |
12671 | (format_type_warning): Likewise. | |
12672 | * c-common.c (int): Likewise. | |
12673 | (check_function_sentinel): Likewise. | |
8e745a17 | 12674 | * c-common.h (warn_format,set_Wformat): Do not declare here. |
7332899a | 12675 | |
34a180a6 MLI |
12676 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
12677 | ||
12678 | PR c/53063 | |
12679 | * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare, | |
12680 | Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros): | |
12681 | Use LangEnabledBy. | |
12682 | (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from | |
12683 | common.opt. | |
12684 | (Wvariadic-macros): Init(1). | |
12685 | * c-opts.c (c_common_handle_option): Do not handle them | |
12686 | explicitly. | |
12687 | (c_common_post_options): Likewise. | |
12688 | (sanitize_cpp_opts): warn_unused_macros is now | |
12689 | cpp_warn_unused_macros. | |
12690 | (push_command_line_include): Likewise. | |
12691 | * c-common.c (warn_unknown_pragmas): Do not define. | |
12692 | * c-common.h (warn_unknown_pragmas): Do not declare. | |
12693 | ||
3f46d6a5 MLI |
12694 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
12695 | ||
12696 | PR c/51294 | |
12697 | * c-common.c (conversion_warning): Handle conditional expressions. | |
12698 | ||
880661a4 JW |
12699 | 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com> |
12700 | ||
12701 | PR c++/54930 | |
12702 | * c.opt (Wreturn_local_addr): Define new option. | |
12703 | ||
4514a96b JM |
12704 | 2012-10-25 Jason Merrill <jason@redhat.com> |
12705 | ||
f14edc1a JM |
12706 | * c.opt (Wvirtual-move-assign): New. |
12707 | ||
4514a96b JM |
12708 | * c.opt (Winherited-variadic-ctor): New. |
12709 | ||
93100c6b MG |
12710 | 2012-10-25 Marc Glisse <marc.glisse@inria.fr> |
12711 | ||
12712 | PR c++/54427 | |
12713 | * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR. | |
12714 | ||
1efcb8c6 JM |
12715 | 2012-10-23 Joseph Myers <joseph@codesourcery.com> |
12716 | ||
12717 | * c-common.h (pch_cpp_save_state): Declare. | |
12718 | * c-target.def (c_preinclude): New hook. | |
12719 | * c-opts.c (done_preinclude): New. | |
12720 | (push_command_line_include): Handle default preincluded header. | |
12721 | (cb_file_change): Call pch_cpp_save_state when calling | |
12722 | push_command_line_include. | |
12723 | * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved) | |
12724 | (pch_cpp_save_state): New. | |
12725 | (pch_init): Call pch_cpp_save_state conditionally, instead of | |
12726 | calling cpp_save_state. | |
12727 | ||
4a0ae68e MLI |
12728 | 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org> |
12729 | ||
12730 | PR c/53063 | |
12731 | PR c/40989 | |
12732 | * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit, | |
12733 | Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess, | |
12734 | Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point, | |
12735 | Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused, | |
12736 | Wvolatile-register-var): Add LangEnabledBy or EnabledBy. | |
12737 | * c-opts.c (c_common_handle_option): Remove explicit handling from | |
12738 | here. | |
12739 | (c_common_post_options): Likewise. | |
12740 | ||
67e4210b EB |
12741 | 2012-10-18 Eric Botcazou <ebotcazou@adacore.com> |
12742 | ||
12743 | * c-ada-spec.c (LOCATION_COL): Delete. | |
12744 | (compare_location): New function. | |
12745 | (compare_node): Use it. | |
12746 | (compare_comment): Likewise. | |
12747 | ||
65d4f2cd MLI |
12748 | 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org> |
12749 | ||
12750 | PR c/53063 | |
12751 | PR c/40989 | |
12752 | * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy. | |
12753 | * c-opts.c (c_common_handle_option): Do not set them here. Add | |
12754 | comment. | |
12755 | (c_common_post_options): Likewise. | |
12756 | ||
909881cb EB |
12757 | 2012-10-16 Eric Botcazou <ebotcazou@adacore.com> |
12758 | ||
12759 | * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define. | |
12760 | (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially. | |
12761 | Remove POINTER_TYPE handling, add large unsigned handling and use | |
12762 | ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers. | |
12763 | ||
3a785c97 JJ |
12764 | 2012-10-12 Jakub Jelinek <jakub@redhat.com> |
12765 | ||
12766 | PR c/54381 | |
12767 | * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype. | |
12768 | * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3 | |
12769 | locs and array of 3 trees instead of just single loc and single | |
12770 | sizeof_arg tree. Handle __builtin___*_chk builtins too, and | |
12771 | also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins. | |
12772 | For *cmp* builtins that take two sources strings report warnings | |
12773 | about first and second source, not about destination and source. | |
12774 | ||
5e54f81d MG |
12775 | 2012-10-12 Marc Glisse <marc.glisse@inria.fr> |
12776 | ||
12777 | PR c++/53055 | |
12778 | * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New. | |
12779 | ||
f5b02f1e EB |
12780 | 2012-10-11 Eric Botcazou <ebotcazou@adacore.com> |
12781 | ||
12782 | * c-ada-spec.c (dump_ada_template): Bail out for template declarations | |
12783 | declaring something coming from another file. | |
12784 | ||
b46dbc6c AC |
12785 | 2012-10-10 Arnaud Charlet <charlet@adacore.com> |
12786 | ||
f5b02f1e | 12787 | PR ada/54845 |
b46dbc6c AC |
12788 | * c-ada-spec.c (print_ada_struct_decl): Increase buf size. |
12789 | ||
5d9de0d0 PC |
12790 | 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com> |
12791 | ||
12792 | PR c++/54194 | |
12793 | * c-common.c (warn_about_parentheses): Add location_t parameter; | |
12794 | use EXPR_LOC_OR_LOC. | |
12795 | * c-common.h: Update declaration. | |
12796 | ||
a212e43f MG |
12797 | 2012-10-09 Marc Glisse <marc.glisse@inria.fr> |
12798 | ||
12799 | PR c++/54427 | |
12800 | * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support | |
12801 | more operations. Make error messages optional. | |
12802 | * c-common.h (enum stv_conv): Moved from c-typeck.c. | |
12803 | (scalar_to_vector): Declare. | |
12804 | ||
b1db7f91 JM |
12805 | 2012-10-08 Jason Merrill <jason@redhat.com> |
12806 | ||
12807 | * c-common.c (c_common_reswords): Add thread_local. | |
12808 | ||
e28d52cf DS |
12809 | 2012-10-08 Dodji Seketeli <dodji@redhat.com> |
12810 | ||
12811 | PR c++/53528 C++11 attribute support | |
12812 | * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare | |
12813 | new functions. | |
12814 | * c-common.c (check_cxx_fundamental_alignment_constraints): New | |
12815 | static function. | |
12816 | (handle_aligned_attribute): In choose strictest alignment | |
12817 | among many. Use new check_cxx_fundamental_alignment_constraints. | |
12818 | (handle_transparent_union_attribute): In c++11 attribute syntax, | |
12819 | don't look through typedefs. | |
12820 | ||
3b78de56 AC |
12821 | 2012-10-04 Arnaud Charlet <charlet@adacore.com> |
12822 | ||
12823 | * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW. | |
12824 | * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition | |
12825 | out of dumpfile.h. | |
12826 | ||
6040bb5f DC |
12827 | 2012-09-25 Dehao Chen <dehao@google.com> |
12828 | ||
12829 | PR middle-end/54645 | |
3b78de56 | 12830 | * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data |
6040bb5f DC |
12831 | map when read in the pch. |
12832 | ||
3f8257db | 12833 | 2012-09-18 Arnaud Charlet <charlet@adacore.com> |
0b07a57e AC |
12834 | |
12835 | * c-ada-spec.c: Style fixes. | |
12836 | ||
3f8257db | 12837 | 2012-09-18 Thomas Quinot <quinot@adacore.com> |
da5182be TQ |
12838 | |
12839 | * c.opt (-fada-spec-parent): Define new command line switch. | |
12840 | * c-ada-spec.c (get_ada_package): When -fada-spec-parent | |
12841 | is specified, generate binding spec as a child of the specified unit. | |
12842 | ||
0ccb505d PC |
12843 | 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com> |
12844 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
12845 | ||
12846 | PR c++/53210 | |
12847 | * c.opt ([Winit-self]): Enabled by -Wall in C++. | |
12848 | ||
c583af79 AC |
12849 | 2012-08-23 Arnaud Charlet <charlet@adacore.com> |
12850 | ||
12851 | * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only | |
12852 | for pointers, and add missing Convention C pragma. | |
12853 | (print_ada_struct_decl): Add missing aliased keyword. | |
12854 | (dump_ads): Add pragma Ada_2005 and Style_Checks (Off). | |
12855 | ||
1a4049e7 JJ |
12856 | 2012-08-17 Jakub Jelinek <jakub@redhat.com> |
12857 | ||
12858 | * c-common.c (sizeof_pointer_memaccess_warning): New function. | |
12859 | * c.opt (-Wsizeof-pointer-memaccess): Add new option. | |
12860 | * c-opts.c (c_common_handle_option): Enable it for -Wall. | |
12861 | * c-common.h (sizeof_pointer_memaccess_warning): Add prototype. | |
12862 | * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def. | |
12863 | ||
70b5e7dc RG |
12864 | 2012-08-10 Richard Guenther <rguenther@suse.de> |
12865 | ||
12866 | * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names. | |
12867 | ||
f8923f7e SB |
12868 | 2012-08-07 Steven Bosscher <steven@gcc.gnu.org> |
12869 | ||
12870 | * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush | |
12871 | instead of separate pp_newline and pp_flush. | |
12872 | (print_c_tree): Likewise. | |
12873 | ||
e45abe1f RH |
12874 | 2012-07-26 Richard Henderson <rth@redhat.com> |
12875 | ||
12876 | * c-common.c (handle_hot_attribute): Allow labels. | |
12877 | (handle_cold_attribute): Likewise. | |
12878 | ||
332f1d24 JJ |
12879 | 2012-07-20 Jakub Jelinek <jakub@redhat.com> |
12880 | ||
12881 | PR c++/28656 | |
12882 | * c-common.c (check_function_nonnull): Handle multiple nonnull | |
12883 | attributes properly. | |
12884 | ||
7ee2468b SB |
12885 | 2012-07-16 Steven Bosscher <steven@gcc.gnu.org> |
12886 | ||
12887 | * c-gimplify.c: Include dumpfile.h instead of tree-dump.h. | |
12888 | * c-ada-spec.c: Likewise. | |
12889 | * c-dump.c (dump_stmt): Move to cp/dump.c, the only user. | |
12890 | ||
ee7b28eb SB |
12891 | 2012-07-14 Steven Bosscher <steven@gcc.gnu.org> |
12892 | ||
12893 | * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define. | |
12894 | Remove code conditional on it. | |
12895 | ||
6bdf3519 SB |
12896 | 2012-07-11 Steven Bosscher <steven@gcc.gnu.org> |
12897 | ||
12898 | * c-gimplify.c: Do not include basic-block.h. | |
12899 | * c-common.c: Do not include linfuncs.h. | |
12900 | ||
532aafad SB |
12901 | 2012-07-08 Steven Bosscher <steven@gcc.gnu.org> |
12902 | ||
12903 | * c-common.h: Include tree.h. | |
12904 | ||
8d0d1915 JM |
12905 | 2012-07-02 Jason Merrill <jason@redhat.com> |
12906 | ||
12907 | PR c++/53524 | |
12908 | * c-common.c (get_priority): Call default_conversion. | |
12909 | ||
fbc873ad UB |
12910 | 2012-07-01 Uros Bizjak <ubizjak@gmail.com> |
12911 | ||
12912 | * c-pch.c (c_common_write_pch): Remove unused variables. | |
12913 | ||
d4a10d0a SB |
12914 | 2012-06-29 Steven Bosscher <steven@gcc.gnu.org> |
12915 | ||
12916 | * cppspec.c: Moved from gcc/ to here. | |
12917 | ||
6f3a2e23 KT |
12918 | 2012-06-27 Kai Tietz <ktietz@redhat.com> |
12919 | ||
12920 | PR preprocessor/37215 | |
12921 | * c-ppoutput.c (preprocess_file): Check for nonempty buffer. | |
12922 | ||
8ca92d04 SB |
12923 | 2012-06-21 Steven Bosscher <steven@gcc.gnu.org> |
12924 | ||
12925 | * c-common.h (c_common_print_pch_checksum): Remove. | |
12926 | * c-pch.c: Do not include output.h. | |
12927 | (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME. | |
12928 | (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined. | |
12929 | (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined. | |
12930 | (struct c_pch_header): Remove. | |
12931 | (get_ident): Update gpch version. | |
12932 | (pch_init): Do not print executable_checksum to asm_out_file. | |
12933 | Do not fail if there is no asm_out_file to read back from. Set | |
12934 | asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined. | |
12935 | (c_common_write_pch): Verify that nothing was written to asm_out_file | |
12936 | since pch_init was called. Do not write a c_pch_header, and do not | |
12937 | copy from asm_out_file to the PCH. | |
12938 | (c_common_read_pch): Do not read a c_pch_header, and do not restore | |
12939 | the content of asm_out_file from the PCH. | |
12940 | (c_common_print_pch_checksum): Remove. | |
12941 | * c-opts.c (c_common_init): Print out executable_checksum directly. | |
12942 | ||
70f42967 SB |
12943 | 2012-06-19 Steven Bosscher <steven@gcc.gnu.org> |
12944 | ||
12945 | * c-target.def (objc_declare_unresolved_class_reference, | |
12946 | objc_declare_class_definition): Add new hooks. | |
12947 | ||
a8781821 SB |
12948 | 2012-06-19 Steven Bosscher <steven@gcc.gnu.org> |
12949 | ||
12950 | * c-lex.c: Do not include output.h. | |
12951 | (cb_ident): Try to put out .ident with targetm.asm_out.output_ident. | |
12952 | Remove uses of ASM_OUTPUT_IDENT. | |
12953 | ||
9e1a8dd1 RR |
12954 | 2012-06-15 Marc Glisse <marc.glisse@inria.fr> |
12955 | ||
12956 | PR c++/51033 | |
12957 | * c-common.h (c_build_vec_perm_expr): Move decl here. | |
12958 | * c-common.c (c_build_vec_perm_expr): Move definition | |
12959 | here. | |
12960 | ||
6f07a821 SB |
12961 | 2012-06-06 Steven Bosscher <steven@gcc.gnu.org> |
12962 | ||
12963 | * c.opt (fconserve-space): Turn into a no-op. | |
12964 | ||
9faeb493 | 12965 | 2012-06-04 Sterling Augustine <saugustine@google.com> |
c265f413 SA |
12966 | |
12967 | * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator. | |
12968 | * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at | |
12969 | both the start and end of the function. | |
12970 | ||
a4b7d13c SB |
12971 | 2012-06-04 Steven Bosscher <steven@gcc.gnu.org> |
12972 | ||
12973 | * c-common.c: Do not include output.h. | |
12974 | * c-pragma.c: Likewise. | |
12975 | ||
c265f413 SA |
12976 | 2012-06-04 Steven Bosscher <steven@gcc.gnu.org> |
12977 | ||
12978 | * error.c (dump_decl): Check pp_c_flag_gnu_v3. | |
12979 | (decl_as_dwarf_string, lang_decl_dwarf_name): New functions. | |
12980 | (lang_decl_name): Handle namespace decls. | |
12981 | ||
be7a421e SB |
12982 | 2012-05-31 Steven Bosscher <steven@gcc.gnu.org> |
12983 | ||
12984 | * c-ada-spec.c: Do not include output.h. | |
12985 | * c-semantics.c: Likewise. | |
12986 | ||
65de6659 JM |
12987 | 2012-05-29 Joseph Myers <joseph@codesourcery.com> |
12988 | ||
12989 | * c-common.c: Fix typo. | |
12990 | ||
ca5f4331 MM |
12991 | 2012-05-29 Michael Matz <matz@suse.de> |
12992 | ||
12993 | * c-common.h (c_expand_decl): Remove prototype. | |
12994 | ||
4f7f7aca MLI |
12995 | 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
12996 | ||
12997 | * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall). | |
12998 | * c-opts.c (c_common_handle_option): Remove code handling | |
12999 | warn_missing_braces. | |
13000 | ||
4a792f9b PC |
13001 | 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com> |
13002 | ||
13003 | PR c++/25137 | |
13004 | * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable | |
13005 | -Wmissing_braces. | |
13006 | ||
650dc14a DS |
13007 | 2012-05-22 Dodji Seketeli <dodji@redhat.com> |
13008 | ||
13009 | PR c++/53322 | |
13010 | * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused). | |
13011 | ||
9b095bf1 MLI |
13012 | 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org> |
13013 | ||
13014 | * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here. | |
13015 | * c-opts.c (c_common_handle_option): Do not handle explicitly | |
13016 | Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors. | |
13017 | ||
0b2c4be5 DS |
13018 | 2012-05-16 Dodji Seketeli <dodji@redhat.com> |
13019 | ||
13020 | PR preprocessor/7263 | |
ab20d992 | 13021 | * c-lex.c (c_lex_with_flags): Pass a virtual location to the call |
0b2c4be5 DS |
13022 | to cpp_classify_number. For diagnostics, use the precise location |
13023 | instead of the global input_location. | |
13024 | ||
a1bde5af PC |
13025 | 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com> |
13026 | ||
d02924ef | 13027 | PR c++/11856 |
a1bde5af PC |
13028 | * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings. |
13029 | ||
d1ede5f4 BS |
13030 | 2012-05-14 Bernd Schmidt <bernds@codesourcery.com> |
13031 | ||
a1bde5af | 13032 | * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary. |
d1ede5f4 | 13033 | |
f2bc201f MLI |
13034 | 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org> |
13035 | ||
13036 | PR 53063 | |
13037 | * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init, | |
13038 | Wreorder): Use LangEnabledBy. | |
13039 | * c-opts.c (c_common_handle_option): Do not enable them | |
13040 | explicitly. Call lang-specific generated functions. | |
13041 | (c_common_post_options): Do not set them here. | |
13042 | ||
95744782 MLI |
13043 | 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org> |
13044 | ||
13045 | * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers, | |
13046 | Wmissing-field-initializers,Wmissing-parameter-type, | |
13047 | Wold-style-declaration,Woverride-init): Use EnabledBy. | |
13048 | * c-opts.c (c_common_post_options): Do not set here explicitly. | |
13049 | ||
7d5a5747 MLI |
13050 | 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
13051 | ||
13052 | PR 53063 | |
13053 | * c-opts.c (c_common_handle_option): Use handle_generated_option | |
13054 | to enable sub-options. | |
13055 | ||
5a3c9cf2 PC |
13056 | 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com> |
13057 | ||
13058 | PR c++/53158 | |
13059 | * c-common.c (warnings_for_convert_and_check): Use warning_at. | |
13060 | ||
3ac8781c RG |
13061 | 2012-05-10 Richard Guenther <rguenther@suse.de> |
13062 | ||
13063 | * c-common.c (c_sizeof_or_alignof_type): Remove assert and | |
13064 | adjust commentary about TYPE_IS_SIZETYPE types. | |
13065 | ||
1e537948 MLI |
13066 | 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
13067 | ||
13068 | PR c++/53261 | |
13069 | * c-common.c (warn_logical_operator): Check that argument of | |
13070 | integer_zerop is not NULL. | |
13071 | ||
f2c4a785 MLI |
13072 | 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org> |
13073 | ||
13074 | PR c/43772 | |
13075 | * c-common.c (warn_logical_operator): Do not warn if either side | |
13076 | is already true or false. | |
13077 | ||
50f305ca MLI |
13078 | 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org> |
13079 | ||
13080 | PR c/51712 | |
13081 | * c-common.c (expr_original_type): New. | |
13082 | (shorten_compare): Do not warn for enumeration types. | |
13083 | ||
0c3641b0 MLI |
13084 | 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
13085 | ||
13086 | * c.opt (fpermissive): Add Var(flag_permissive). | |
13087 | ||
7edaa4d2 MG |
13088 | 2012-04-30 Marc Glisse <marc.glisse@inria.fr> |
13089 | ||
13090 | PR c++/51033 | |
13091 | * c-common.c (convert_vector_to_pointer_for_subscript): New function. | |
13092 | * c-common.h (convert_vector_to_pointer_for_subscript): Declare it. | |
13093 | ||
b9c8da34 DS |
13094 | 2012-04-30 Dodji Seketeli <dodji@redhat.com> |
13095 | ||
13096 | Add -Wvarargs option | |
ab20d992 | 13097 | * c.opt (Wvarargs): Define new option. |
b9c8da34 | 13098 | |
e6c69da0 MLI |
13099 | 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
13100 | ||
13101 | * c-common.c (check_function_arguments): Replace | |
13102 | Wmissing-format-attribute with Wsuggest-attribute=format. | |
13103 | ||
90137d8f MLI |
13104 | 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
13105 | ||
13106 | * c.opt (Wsuggest-attribute=format): New. Alias of | |
13107 | Wmissing-format-attribute. | |
13108 | * c-format.c (decode_format_type): Replace | |
13109 | Wmissing-format-attribute with Wsuggest-attribute=format. | |
13110 | (check_function_format): Likewise. | |
13111 | ||
9faeb493 | 13112 | 2012-04-27 Ollie Wild <aaw@google.com> |
7f5f5f98 OW |
13113 | |
13114 | * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping. | |
13115 | * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix. | |
13116 | * c.opt: Add Wliteral-suffix. | |
13117 | ||
c1771a20 MLI |
13118 | 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org> |
13119 | ||
13120 | PR c/44774 | |
13121 | * c.opt (Wpedantic): New. | |
13122 | (pedantic): Alias Wpedantic. | |
13123 | * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic. | |
13124 | (c_common_post_options): Likewise. | |
13125 | (sanitize_cpp_opts): Likewise. | |
13126 | * c-lex.c (interpret_float): Likewise. | |
13127 | * c-format.c (check_format_types): Likewise. | |
13128 | * c-common.c (pointer_int_sum): Likewise. | |
13129 | (c_sizeof_or_alignof_type): Likewise. | |
13130 | (c_add_case_label): Likewise. | |
13131 | (c_do_switch_warnings): Likewise. | |
13132 | * c-pragma.c (handle_pragma_float_const_decimal64): Likewise. | |
13133 | ||
04b391c1 JM |
13134 | 2012-04-15 Jason Merrill <jason@redhat.com> |
13135 | ||
13136 | PR c++/52818 | |
13137 | * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99. | |
13138 | (C_STD_NAME): Distinguish between C++98 and C++11. | |
13139 | ||
ac868f29 EB |
13140 | 2012-04-11 Eric Botcazou <ebotcazou@adacore.com> |
13141 | ||
13142 | PR target/52624 | |
13143 | * c-common.h (uint16_type_node): Rename into... | |
13144 | (c_uint16_type_node): ...this. | |
13145 | * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming. | |
13146 | * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise. | |
13147 | ||
fd4116f4 MLI |
13148 | 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org> |
13149 | ||
13150 | * c-common.c (warn_if_unused_value): Move definition to here. | |
13151 | * c-common.h (warn_if_unused_value): Move declaration to here. | |
13152 | ||
573ac65e WB |
13153 | 2012-03-23 William Bader <williambader@hotmail.com> |
13154 | ||
13155 | * c-lex.c (c_lex_with_flags): Avoid declarations after stmts. | |
13156 | ||
552b8185 JM |
13157 | 2012-03-20 Jason Merrill <jason@redhat.com> |
13158 | ||
13159 | * c-common.h (enum cxx_dialect): Add cxx1y. | |
13160 | * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect | |
13161 | test. | |
13162 | * c-cppbuiltin.c (c_cpp_builtins): Likewise. | |
13163 | * c-opts.c (c_common_post_options): Likewise. | |
13164 | (set_std_cxx1y): New. | |
13165 | (c_common_handle_option): Call it. | |
13166 | * c.opt (-std=c++1y, -std=gnu++1y): New flags. | |
13167 | ||
04398fa8 PC |
13168 | 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com> |
13169 | ||
13170 | PR c++/14710 | |
13171 | * c.opt ([Wuseless-cast]): Add. | |
13172 | ||
d2a12ae7 RG |
13173 | 2012-03-16 Richard Guenther <rguenther@suse.de> |
13174 | ||
13175 | * c-pretty-print.c (pp_c_initializer_list): Adjust. | |
13176 | ||
a12bf402 MLI |
13177 | 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
13178 | ||
13179 | PR c++/44783 | |
13180 | * c.opt (ftemplate-backtrace-limit) Add. | |
13181 | ||
5c30094f RO |
13182 | 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
13183 | ||
13184 | * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix | |
13185 | handling. | |
13186 | * c-pragma.c (handle_pragma_extern_prefix): Remove. | |
13187 | (init_pragma): Don't register extern_prefix. | |
13188 | ||
21fa2faf RG |
13189 | 2012-03-12 Richard Guenther <rguenther@suse.de> |
13190 | ||
13191 | * c-common.c (c_common_get_narrower): Use c_common_type_for_size. | |
13192 | (builtin_type_for_size): Likewise. | |
13193 | ||
e3793c6f JJ |
13194 | 2012-02-13 Jakub Jelinek <jakub@redhat.com> |
13195 | ||
13196 | PR c++/52215 | |
13197 | * c-common.c (sync_resolve_params): Don't decide whether to convert | |
13198 | or not based on TYPE_SIZE comparison, convert whenever arg_type | |
13199 | is unsigned INTEGER_TYPE. | |
13200 | ||
93286335 PC |
13201 | 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com> |
13202 | ||
13203 | PR c/52118 | |
13204 | * c.opt ([Wunused-local-typedefs]): Fix description. | |
13205 | ||
7a421706 MS |
13206 | 2012-01-24 Mike Stump <mikestump@comcast.net> |
13207 | ||
13208 | * c-common.c (c_common_type_for_mode): Match signed/unsigned types | |
13209 | exactly. | |
13210 | ||
ba9b1f11 RG |
13211 | 2012-01-18 Richard Guenther <rguenther@suse.de> |
13212 | ||
13213 | * c-opts.c (c_common_post_options): Reset LTO flags if | |
13214 | we are about to generate a PCH. | |
13215 | ||
465406be PC |
13216 | 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com> |
13217 | ||
13218 | PR c++/51777 | |
13219 | * c-pretty-print.c (pp_c_integer_constant): For unsigned constants | |
13220 | use pp_unsigned_wide_integer. | |
13221 | ||
aee15221 RG |
13222 | 2012-01-10 Richard Guenther <rguenther@suse.de> |
13223 | ||
13224 | PR middle-end/51806 | |
13225 | * c-opts.c (c_common_handle_option): Move -Werror handling | |
13226 | to language independent code. | |
13227 | ||
5720c0dc RG |
13228 | 2012-01-05 Richard Guenther <rguenther@suse.de> |
13229 | ||
13230 | PR middle-end/51764 | |
13231 | * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here | |
13232 | from common.opt. | |
13233 | ||
73ac190a PC |
13234 | 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com> |
13235 | ||
13236 | PR c++/51316 | |
13237 | * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof | |
13238 | of array types with an unknown bound. | |
13239 | ||
48b0b196 JM |
13240 | 2011-12-20 Joseph Myers <joseph@codesourcery.com> |
13241 | ||
13242 | * c-common.c (flag_isoc99): Update comment to refer to C11. | |
13243 | (flag_isoc1x): Change to flag_isoc11. | |
13244 | * c-common.h (flag_isoc99): Update comment to refer to C11. | |
13245 | (flag_isoc1x): Change to flag_isoc11. | |
13246 | * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to | |
13247 | C11. | |
13248 | * c-opts.c (set_std_c1x): Change to set_std_c11. | |
13249 | (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11. | |
13250 | Call set_std_c11. | |
13251 | (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11. | |
13252 | (set_std_c1): Use CLK_STDC11 and CLK_GNUC11. | |
13253 | * c.opt (std=c1x): Change to std=c11. Document as non-draft | |
13254 | standard. | |
13255 | (std=c1x, std=iso9899:2011): Add as aliases of std=c11. | |
13256 | (std=gnu1x): Change to std=gnu11. Refer to non-draft standard. | |
13257 | (std=gnu1x): Make alias of std=gnu11. | |
13258 | ||
d58d6eb5 JM |
13259 | 2011-12-19 Jason Merrill <jason@redhat.com> |
13260 | ||
13261 | PR c++/51228 | |
13262 | * c-common.c (handle_transparent_union_attribute): Check the first | |
13263 | field if the type is complete. | |
13264 | ||
b3908fcc JW |
13265 | 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com> |
13266 | ||
13267 | PR libstdc++/51365 | |
13268 | * c-common.c (RID_IS_FINAL): Add. | |
13269 | * c-common.h (RID_IS_FINAL): Add. | |
13270 | ||
fea3ca91 IS |
13271 | 2011-11-30 Iain Sandoe <iains@gcc.gnu.org> |
13272 | ||
13273 | * c.opt (fgnu-runtime): Provide full description. | |
13274 | (fnext-runtime): Likewise. | |
13275 | * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove. | |
13276 | ||
62bad7cd AM |
13277 | 2011-11-28 Andrew MacLeod <amacleod@redhat.com> |
13278 | ||
13279 | * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic | |
13280 | predefines in one place. Add LOCK_FREE predefines. | |
13281 | (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to | |
13282 | new func. | |
13283 | ||
c466c4ff AM |
13284 | 2011-11-24 Andrew MacLeod <amacleod@redhat.com> |
13285 | ||
13286 | PR c/51256 | |
9faeb493 | 13287 | * c-common.c (get_atomic_generic_size): Check for various error |
c466c4ff | 13288 | conditions |
9faeb493 UB |
13289 | (resolve_overloaded_atomic_exchange, |
13290 | resolve_overloaded_atomic_compare_exchange, | |
c466c4ff AM |
13291 | resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return |
13292 | error_mark_node for error conditions. | |
9faeb493 | 13293 | |
a5952633 RG |
13294 | 2011-11-08 Richard Guenther <rguenther@suse.de> |
13295 | ||
13296 | PR middle-end/51010 | |
ab20d992 | 13297 | * c-pretty-print.c (pp_c_expression): Handle SSA_NAMEs. |
a5952633 | 13298 | |
0a35513e AH |
13299 | 2011-11-07 Richard Henderson <rth@redhat.com> |
13300 | Aldy Hernandez <aldyh@redhat.com> | |
13301 | Torvald Riegel <triegel@redhat.com> | |
13302 | ||
13303 | Merged from transactional-memory. | |
13304 | ||
13305 | * c-common.c (handle_tm_wrap_attribute, | |
13306 | handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New. | |
13307 | (struct c_common_reswords): Added __transaction* keywords. | |
13308 | (struct c_common_attribute_table): Added transaction* and tm_regparm | |
13309 | attributes. | |
13310 | * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT* | |
13311 | masks. | |
13312 | (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr, | |
13313 | find_tm_attribute): Declare. | |
13314 | ||
6d87092d JM |
13315 | 2011-11-07 Jason Merrill <jason@redhat.com> |
13316 | ||
13317 | PR c++/35688 | |
13318 | * c-common.c, c-common.h: Revert yesterday's changes. | |
13319 | ||
8e7860a1 JM |
13320 | 2011-11-06 Jason Merrill <jason@redhat.com> |
13321 | ||
13322 | PR c++/35688 | |
13323 | * c-common.c (decl_has_visibility_attr): Split out from... | |
13324 | (c_determine_visibility): ...here. | |
13325 | * c-common.h: Declare it. | |
13326 | ||
d19fa6b5 JM |
13327 | 2011-11-06 Joseph Myers <joseph@codesourcery.com> |
13328 | ||
13329 | * c-common.c (c_common_reswords): Add _Alignas and _Alignof. | |
13330 | (c_sizeof_or_alignof_type): Diagnose alignof applied to a function | |
13331 | type. | |
13332 | (check_user_alignment): New. Split out of | |
13333 | handle_aligned_attribute. Disallow integer constants with | |
13334 | noninteger types. Conditionally allow zero. | |
13335 | (handle_aligned_attribute): Use check_user_alignment. | |
13336 | * c-common.h (RID_ALIGNAS, check_user_alignment): New. | |
13337 | ||
86951993 AM |
13338 | 2011-11-06 Andrew MacLeod <amacleod@redhat.com> |
13339 | Richard Henderson <rth@redhat.com> | |
13340 | ||
13341 | Merged from cxx-mem-model. | |
13342 | ||
13343 | * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns. | |
9faeb493 | 13344 | * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak |
86951993 AM |
13345 | parameters that are the same type size. |
13346 | (get_atomic_generic_size): New. Find size of generic | |
13347 | atomic function parameters and do typechecking. | |
13348 | (add_atomic_size_parameter): New. Insert size into parameter list. | |
13349 | (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to | |
13350 | either __atomic_exchange_n or external library call. | |
9faeb493 | 13351 | (resolve_overloaded_atomic_compare_exchange): Restructure |
86951993 | 13352 | __atomic_compare_exchange to either _n variant or external library call. |
9faeb493 | 13353 | (resolve_overloaded_atomic_load): Restructure __atomic_load to either |
86951993 AM |
13354 | __atomic_load_n or an external library call. |
13355 | (resolve_overloaded_atomic_store): Restructure __atomic_store to either | |
13356 | __atomic_store_n or an external library call. | |
13357 | (resolve_overloaded_builtin): Handle new __atomic builtins. | |
13358 | ||
cf9e9959 EB |
13359 | 2011-11-04 Eric Botcazou <ebotcazou@adacore.com> |
13360 | ||
13361 | PR c++/50608 | |
13362 | * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1. | |
13363 | (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust. | |
13364 | <INDIRECT_REF>: Return the argument. | |
13365 | <ARRAY_REF>: Remove special code for negative offset. | |
13366 | Call fold_build_pointer_plus instead of size_binop. | |
13367 | (fold_offsetof): Remove STOP_REF argument and adjust. | |
13368 | * c-common.h (fold_offsetof_1): Declare. | |
13369 | (fold_offsetof): Remove STOP_REF argument. | |
13370 | ||
25339f10 JM |
13371 | 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com> |
13372 | ||
13373 | PR c++/50810 | |
13374 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
13375 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
13376 | Wnarrowing for C++0x and C++98. | |
13377 | * c.opt ([Wnarrowing]): Update. | |
13378 | ||
89401152 PC |
13379 | 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com> |
13380 | ||
13381 | PR c++/44277 | |
13382 | * c.opt: Add Wzero-as-null-pointer-constant. | |
13383 | ||
97e3ad20 JM |
13384 | 2011-10-31 Jason Merrill <jason@redhat.com> |
13385 | ||
15694fdd JM |
13386 | * c.opt (-fdeduce-init-list): Off by default. |
13387 | ||
97e3ad20 JM |
13388 | PR c++/50920 |
13389 | * c-common.h (cxx_dialect): Add cxx11 and cxx03. | |
13390 | * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03, | |
13391 | and -Wc++11-compat. | |
13392 | * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x. | |
13393 | ||
fb9120e3 RAV |
13394 | 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov> |
13395 | ||
13396 | PR c++/30066 | |
13397 | * c.opt (fvisibility-inlines-hidden): Description change. | |
13398 | ||
3ce4f9e4 ESR |
13399 | 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net> |
13400 | ||
13401 | Implement C++11 user-defined literals. | |
13402 | * c-common.c (build_userdef_literal): New. | |
13403 | * c-common.def: New tree code. | |
13404 | * c-common.h (tree_userdef_literal): New tree struct and accessors. | |
13405 | * c-lex.c (interpret_float): Add suffix parm. | |
13406 | (c_lex_with_flags): Build literal tokens. | |
13407 | ||
5f53c243 PC |
13408 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> |
13409 | ||
13410 | PR c++/50841 | |
13411 | Revert: | |
13412 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> | |
13413 | ||
13414 | PR c++/50810 | |
13415 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
13416 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
13417 | Wnarrowing for C++0x and C++98. | |
13418 | * c.opt ([Wnarrowing]): Update. | |
13419 | ||
263734e1 PC |
13420 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> |
13421 | ||
13422 | PR c++/50810 | |
13423 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
13424 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
13425 | Wnarrowing for C++0x and C++98. | |
13426 | * c.opt ([Wnarrowing]): Update. | |
13427 | ||
d2e312d7 PC |
13428 | 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com> |
13429 | ||
13430 | PR c++/45385 | |
13431 | * c-common.c (conversion_warning): Remove code looking for | |
13432 | artificial operands. | |
13433 | ||
d17687f6 DS |
13434 | 2011-10-18 Dodji Seketeli <dodji@redhat.com> |
13435 | ||
13436 | PR bootstrap/50760 | |
13437 | * c-lex.c (fe_file_change): Use LINEMAP_SYSP when | |
9faeb493 | 13438 | !NO_IMPLICIT_EXTERN_C. |
d17687f6 | 13439 | |
fc8396e9 PC |
13440 | 2011-10-17 Michael Spertus <mike_spertus@symantec.com> |
13441 | ||
13442 | * c-common.c (c_common_reswords): Add __bases, | |
13443 | __direct_bases. | |
13444 | * c-common.h: Add RID_BASES and RID_DIRECT_BASES. | |
13445 | ||
13446 | 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com> | |
13447 | ||
13448 | PR c++/50757 | |
13449 | * c.opt ([Wnonnull]): Add C++ and Objective-C++. | |
13450 | ||
847e697a TT |
13451 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
13452 | Dodji Seketeli <dodji@redhat.com> | |
13453 | ||
13454 | * c.opt (fdebug-cpp): New option. | |
13455 | * c-opts.c (c_common_handle_option): Handle the option. | |
13456 | * c-ppoutput.c (maybe_print_line_1): New static function. Takes an | |
13457 | output stream in parameter. Factorized from ... | |
13458 | (maybe_print_line): ... this. Dump location debug information when | |
13459 | -fdebug-cpp is in effect. | |
13460 | (print_line_1): New static function. Takes an output stream in | |
13461 | parameter. Factorized from ... | |
13462 | (print_line): ... here. Dump location information when -fdebug-cpp | |
13463 | is in effect. | |
13464 | (scan_translation_unit): Dump location information when | |
13465 | -fdebug-cpp is in effect. | |
13466 | ||
92582b75 TT |
13467 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
13468 | Dodji Seketeli <dodji@redhat.com> | |
13469 | ||
13470 | * c.opt (ftrack-macro-expansion): New option. Handle it with and | |
13471 | without argument. | |
13472 | * c-opts.c (c_common_handle_option)<case | |
13473 | OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New | |
13474 | cases. Handle -ftrack-macro-expansion with and without argument. | |
13475 | ||
46427374 TT |
13476 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
13477 | Dodji Seketeli <dodji@redhat.com> | |
13478 | ||
13479 | * c-ppoutput.c (scan_translation_unit, maybe_print_line) | |
13480 | (print_line, cb_define, do_line_change): Adjust to avoid touching | |
13481 | the internals of struct line_map. Use the public API instead. | |
13482 | * c-pch.c (c_common_read_pch): Likewise. | |
13483 | * c-lex.c (fe_file_change): Likewise. | |
13484 | ||
fc8396e9 PC |
13485 | 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com> |
13486 | ||
13487 | PR c++/17212 | |
13488 | * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++. | |
13489 | ||
13490 | 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com> | |
13491 | ||
13492 | PR c++/33067 | |
13493 | * c-pretty-print.c (pp_c_floating_constant): Output | |
13494 | max_digits10 (in the ISO C++ WG N1822 sense) decimal digits. | |
13495 | ||
e79983f4 MM |
13496 | 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com> |
13497 | ||
13498 | * c-common.c (def_builtin_1): Delete old interface with two | |
13499 | parallel arrays to hold standard builtin declarations, and replace | |
13500 | it with a function based interface that can support creating | |
13501 | builtins on the fly in the future. Change all uses, and poison | |
13502 | the old names. Make sure 0 is not a legitimate builtin index. | |
13503 | * c-omp.c (c_finish_omp_barrier): Ditto. | |
13504 | (c_finish_omp_taskwait): Ditto. | |
13505 | (c_finish_omp_flush): Ditto. | |
13506 | ||
6637388f TG |
13507 | 2011-10-11 Tristan Gingold <gingold@adacore.com> |
13508 | ||
13509 | * c.opt: (fallow-parameterless-variadic-functions): New. | |
13510 | ||
3797cb21 DS |
13511 | 2011-09-08 Dodji Seketeli <dodji@redhat.com> |
13512 | ||
13513 | PR c++/33255 - Support -Wunused-local-typedefs warning | |
13514 | * c-common.h (struct c_language_function::local_typedefs): New | |
13515 | field. | |
9faeb493 UB |
13516 | (record_locally_defined_typedef, maybe_record_typedef_use) |
13517 | (maybe_warn_unused_local_typedefs): Declare new functions. | |
3797cb21 | 13518 | * c-common.c (record_locally_defined_typedef) |
9faeb493 UB |
13519 | (maybe_record_typedef_use) |
13520 | (maybe_warn_unused_local_typedefs): Define new functions. | |
3797cb21 DS |
13521 | * c.opt: Declare new -Wunused-local-typedefs flag. |
13522 | ||
693ddb1b EB |
13523 | 2011-09-06 Eric Botcazou <ebotcazou@adacore.com> |
13524 | ||
13525 | PR middle-end/50266 | |
13526 | * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like | |
13527 | computations. | |
13528 | ||
830c740f RG |
13529 | 2011-09-05 Richard Guenther <rguenther@suse.de> |
13530 | ||
13531 | * c-common.c (complete_array_type): Use ssize_int (-1) instead | |
13532 | of integer_minus_one_node for empty array upper bounds. | |
13533 | ||
892a371f DS |
13534 | 2011-08-28 Dodji Seketeli <dodji@redhat.com> |
13535 | ||
13536 | * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as | |
13537 | it's the first time it's being called on this main TU. | |
13538 | ||
0e3fdb48 RB |
13539 | 2011-08-24 Richard Guenther <rguenther@suse.de> |
13540 | ||
13541 | PR c/49396 | |
13542 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional. | |
13543 | ||
13544 | 2011-08-22 Gabriel Charette <gchare@google.com> | |
e3dfef44 GC |
13545 | |
13546 | * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens | |
13547 | defined in cpp_init_builtins and c_cpp_builtins. | |
13548 | ||
d4a83c10 JM |
13549 | 2011-08-19 Joseph Myers <joseph@codesourcery.com> |
13550 | ||
13551 | * c-common.c (c_common_reswords): Add __builtin_complex. | |
13552 | * c-common.h (RID_BUILTIN_COMPLEX): New. | |
13553 | ||
bbceee64 JM |
13554 | 2011-08-18 Joseph Myers <joseph@codesourcery.com> |
13555 | ||
13556 | * c-common.c (c_common_reswords): Add _Noreturn. | |
13557 | (keyword_is_function_specifier): Handle RID_NORETURN. | |
13558 | * c-common.h (RID_NORETURN): New. | |
13559 | ||
3f8257db | 13560 | 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
0e3a99ae AS |
13561 | |
13562 | * c-common.c (unsafe_conversion_p): New function. Check if it is | |
13563 | unsafe to convert an expression to the type. | |
13564 | (conversion_warning): Adjust, use unsafe_conversion_p. | |
13565 | * c-common.h (unsafe_conversion_p): New function declaration. | |
13566 | ||
20906c66 JJ |
13567 | 2011-08-02 Jakub Jelinek <jakub@redhat.com> |
13568 | ||
13569 | * c-common.h (c_finish_omp_atomic): Adjust prototype. | |
13570 | (c_finish_omp_taskyield): New prototype. | |
13571 | * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1 | |
13572 | arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and | |
13573 | OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1 | |
13574 | or RHS1 have side-effects, evaluate those too in the right spot, | |
13575 | if it is a decl and LHS is also a decl, error out if they | |
13576 | aren't the same. | |
13577 | (c_finish_omp_taskyield): New function. | |
13578 | * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107. | |
13579 | * c-pragma.c (omp_pragmas): Add taskyield. | |
13580 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD. | |
13581 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and | |
13582 | PRAGMA_OMP_CLAUSE_MERGEABLE. | |
13583 | ||
770e5a2e DS |
13584 | 2011-07-25 Dodji Seketeli <dodji@redhat.com> |
13585 | ||
13586 | * c-common.h (set_underlying_type): Remove parm name from | |
13587 | declaration. | |
13588 | ||
1baae426 RG |
13589 | 2011-07-25 Romain Geissler <romain.geissler@gmail.com> |
13590 | ||
13591 | * c-pretty-print.h: Search c-common.h in c-family. | |
9faeb493 | 13592 | |
fcb21722 JM |
13593 | 2011-07-22 Jason Merrill <jason@redhat.com> |
13594 | ||
76f86d00 JM |
13595 | PR c++/49793 |
13596 | * c.opt (Wnarrowing): New. | |
13597 | ||
3a636414 JM |
13598 | PR c++/30112 |
13599 | * c-common.h: Declare c_linkage_bindings. | |
13600 | * c-pragma.c (handle_pragma_redefine_extname): Use it. | |
13601 | ||
fcb21722 JM |
13602 | PR c++/49813 |
13603 | * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99. | |
13604 | * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well | |
13605 | as flag_isoc99 for 'restrict'. | |
13606 | (pp_c_specifier_qualifier_list): Likewise for _Complex. | |
13607 | ||
02614448 ILT |
13608 | 2011-07-21 Ian Lance Taylor <iant@google.com> |
13609 | ||
13610 | PR middle-end/49705 | |
13611 | * c-common.c (c_disable_warnings): New static function. | |
13612 | (c_enable_warnings): New static function. | |
13613 | (c_fully_fold_internal): Change local unused_p to bool. Call | |
13614 | c_disable_warnings and c_enable_warnings rather than change | |
13615 | c_inhibit_evaluation_warnings. | |
13616 | ||
34429675 JM |
13617 | 2011-07-20 Jason Merrill <jason@redhat.com> |
13618 | ||
13619 | PR c++/6709 (DR 743) | |
13620 | PR c++/42603 (DR 950) | |
13621 | * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h. | |
13622 | (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise. | |
13623 | (CPP_DECLTYPE): New. | |
13624 | * c-common.c (c_parse_error): Handle CPP_DECLTYPE. | |
13625 | ||
5d49b6a7 RG |
13626 | 2011-07-19 Richard Guenther <rguenther@suse.de> |
13627 | ||
13628 | * c-common.c (pointer_int_sum): Use fold_build_pointer_plus. | |
13629 | * c-omp.c (c_finish_omp_for): Likewise. | |
13630 | ||
e84a58ff EB |
13631 | 2011-07-12 Eric Botcazou <ebotcazou@adacore.com> |
13632 | ||
13633 | * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop | |
13634 | body on the next line. | |
13635 | ||
329af3c7 JM |
13636 | 2011-07-08 Jason Merrill <jason@redhat.com> |
13637 | ||
4063e61b JM |
13638 | PR c++/45437 |
13639 | * c-omp.c (check_omp_for_incr_expr): Handle preevaluation. | |
13640 | ||
329af3c7 JM |
13641 | PR c++/49673 |
13642 | * c-common.c (c_apply_type_quals_to_decl): Don't check | |
13643 | TYPE_NEEDS_CONSTRUCTING. | |
13644 | ||
1a072294 RG |
13645 | 2011-07-06 Richard Guenther <rguenther@suse.de> |
13646 | ||
13647 | * c-common.c (c_common_nodes_and_builtins): | |
13648 | Merge calls to build_common_tree_nodes and build_common_tree_nodes_2. | |
13649 | ||
fce5dddd RG |
13650 | 2011-07-05 Richard Guenther <rguenther@suse.de> |
13651 | ||
13652 | * c-common.c (c_common_nodes_and_builtins): Build all common | |
13653 | tree nodes first. | |
13654 | ||
45d439ac JJ |
13655 | 2011-06-27 Jakub Jelinek <jakub@redhat.com> |
13656 | ||
56300785 JJ |
13657 | * c-common.h (c_tree_chain_next): New static inline function. |
13658 | ||
45d439ac JJ |
13659 | * c-common.c (check_builtin_function_arguments): Handle |
13660 | BUILT_IN_ASSUME_ALIGNED. | |
13661 | ||
e0a8ecf2 AM |
13662 | 2011-06-21 Andrew MacLeod <amacleod@redhat.com> |
13663 | ||
13664 | * c-common.c: Add sync_ or SYNC__ to builtin names. | |
13665 | * c-omp.c: Add sync_ or SYNC__ to builtin names. | |
dfb43cd5 PV |
13666 | |
13667 | 2011-06-20 Pierre Vittet <piervit@pvittet.com> | |
13668 | ||
13669 | * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New | |
13670 | handler. | |
13671 | (gen_pragma_handler): New union. | |
13672 | (internal_pragma_handler): New type. | |
13673 | (c_register_pragma_with_data) | |
13674 | (c_register_pragma_with_expansion_and_data): New functions. | |
13675 | ||
13676 | * c-pragma.c (registered_pragmas, c_register_pragma_1) | |
13677 | (c_register_pragma, c_register_pragma_with_expansion) | |
13678 | (c_invoke_pragma_handler): Changed to work with | |
13679 | internal_pragma_handler. | |
13680 | (c_register_pragma_with_data) | |
13681 | (c_register_pragma_with_expansion_and_data): New functions. | |
13682 | ||
677f3fa8 JM |
13683 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> |
13684 | ||
13685 | * c-common.c: Include common/common-target.h. | |
13686 | (handle_section_attribute): Use | |
13687 | targetm_common.have_named_sections. | |
13688 | * c-cppbuiltin.c: Include common/common-target.h. | |
13689 | (c_cpp_builtins): Use targetm_common.except_unwind_info. | |
13690 | ||
d7fc8c14 RG |
13691 | 2011-06-10 Richard Guenther <rguenther@suse.de> |
13692 | ||
13693 | * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier | |
13694 | to print a IDENTIFIER_NODE. | |
13695 | ||
10e48e39 RO |
13696 | 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
13697 | Joseph Myers <joseph@codesourcery.com> | |
13698 | ||
13699 | * c.opt (fbuilding-libgcc): New option. | |
13700 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
13701 | __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc. | |
13702 | ||
6976ae51 JM |
13703 | 2011-06-07 Jason Merrill <jason@redhat.com> |
13704 | ||
3ff60975 JM |
13705 | * c-common.c (max_tinst_depth): Lower default to 900. |
13706 | ||
6976ae51 JM |
13707 | * c-format.c (gcc_cxxdiag_char_table): Add 'S' format. |
13708 | ||
009db074 RG |
13709 | 2011-06-07 Richard Guenther <rguenther@suse.de> |
13710 | ||
13711 | * c-common.c (c_common_nodes_and_builtins): Do not set | |
13712 | size_type_node or call set_sizetype. | |
13713 | ||
b4592b92 DS |
13714 | 2011-06-07 Dodji Seketeli <dodji@redhat.com> |
13715 | ||
13716 | PR debug/49130 | |
13717 | * c-pretty-print.c (pp_c_integer_constant): Consider the canonical | |
9faeb493 | 13718 | type when using pointer comparison to compare types. |
b4592b92 | 13719 | |
014ab419 JW |
13720 | 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com> |
13721 | ||
13722 | * c.opt: Add -Wdelete-non-virtual-dtor. | |
13723 | * c-opts.c (c_common_handle_option): Include it in -Wall. | |
13724 | ||
4f60111f NF |
13725 | 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org> |
13726 | ||
13727 | PR bootstrap/49190 | |
13728 | ||
13729 | Revert: | |
13730 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> | |
13731 | ||
13732 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
13733 | not tree_common. | |
13734 | ||
4cc4f2f4 JJ |
13735 | 2011-05-27 Jakub Jelinek <jakub@redhat.com> |
13736 | ||
13737 | PR c++/49165 | |
13738 | * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For | |
13739 | C++ don't call c_common_truthvalue_conversion on void type arms. | |
13740 | ||
38e01f9e NF |
13741 | 2011-05-27 Nathan Froyd <froydnj@codesourcery.com> |
13742 | ||
13743 | * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC. | |
13744 | (stmt_list_stack): Define. | |
13745 | (cur_stmt_list): Adjust for new type of x_cur_stmt_list. | |
13746 | * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise. | |
13747 | ||
92e948a8 NF |
13748 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
13749 | ||
13750 | * c-common.c (warning_candidate_p): Check for BLOCKs. | |
13751 | ||
a2fc3e63 NF |
13752 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
13753 | ||
13754 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
13755 | not tree_common. | |
13756 | ||
0957c029 JJ |
13757 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> |
13758 | ||
13759 | * c-common.c (def_fn_type): Remove extra va_end. | |
13760 | ||
828fb3ba JM |
13761 | 2011-05-23 Jason Merrill <jason@redhat.com> |
13762 | ||
13763 | PR c++/48106 | |
13764 | * c-common.c (c_common_get_narrower): New. | |
13765 | (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it. | |
13766 | ||
dde05067 NF |
13767 | 2011-05-23 Nathan Froyd <froydnj@codesourcery.com> |
13768 | ||
13769 | * c-common.h (check_function_arguments): Tweak prototype of | |
13770 | check_function_arguments. | |
13771 | * c-common.c (check_function_arguments): Likewise. Adjust | |
13772 | calls to check_function_nonnull, check_function_format, and | |
13773 | check_function_sentinel. | |
13774 | (check_function_sentinel): Take a FUNCTION_TYPE rather than | |
13775 | separate attributes and typelist arguments. Use | |
13776 | FOREACH_FUNCTION_ARGS to iterate over argument types. | |
13777 | ||
3c0d13bf PC |
13778 | 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com> |
13779 | ||
13780 | * c-common.c (c_common_reswords): Reorder. | |
13781 | * c-common.h (rid): Likewise. | |
13782 | ||
8242dd04 NF |
13783 | 2011-05-10 Nathan Froyd <froydnj@codesourcery.com> |
13784 | ||
13785 | * c-common.c (def_fn_type): Don't call build_function_type, call | |
13786 | build_function_type_array or build_varargs_function_type_array | |
13787 | instead. | |
13788 | (c_common_nodes_and_builtins): Likewise. | |
13789 | ||
3d528853 NF |
13790 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
13791 | ||
13792 | * c-common.c (c_add_case_label): Omit the loc argument to | |
13793 | build_case_label. | |
13794 | * c-common.h (build_case_label): Remove. | |
13795 | * c-semantics.c (build_case_label): Remove. | |
13796 | ||
a04a722b JM |
13797 | 2011-05-05 Joseph Myers <joseph@codesourcery.com> |
13798 | ||
13799 | * c-objc.h (objc_start_method_definition): Update prototype. | |
13800 | * stub-objc.c (objc_start_method_definition): Add extra parameter. | |
13801 | ||
e19a18d4 NF |
13802 | 2011-05-04 Nathan Froyd <froydnj@codesourcery.com> |
13803 | ||
13804 | * c-common.c (check_main_parameter_types): Reindent. Don't use | |
13805 | TYPE_ARG_TYPES directly. | |
13806 | (handle_nonnull_attribute): Likewise. | |
13807 | (sync_resolve_params): Likewise. | |
13808 | * c-format.c (handle_format_arg_attribute): Likewise. Adjust call | |
13809 | to check_format_string. | |
13810 | (handle_format_attribute): Likewise. | |
13811 | (check_format_string): Take a function type to examine instead of | |
13812 | a type list. Use a function_arg_iterator to step through argument | |
13813 | types. | |
13814 | ||
c62c040f RG |
13815 | 2011-05-04 Richard Guenther <rguenther@suse.de> |
13816 | ||
13817 | * c-common.c (fix_string_type): Use size_int for index type bounds. | |
13818 | (start_fname_decls): Do not pass NULL to build_int_cst. | |
13819 | (c_init_attributes): Likewise. | |
13820 | * c-lex.c (c_lex_with_flags): Likewise. | |
13821 | ||
c12ff9d8 JM |
13822 | 2011-04-27 Jason Merrill <jason@redhat.com> |
13823 | ||
13824 | * c-common.c (make_tree_vector_from_list): New. | |
13825 | * c-common.h: Declare it. | |
13826 | ||
304dfbe3 RG |
13827 | 2011-04-26 Richard Guenther <rguenther@suse.de> |
13828 | ||
13829 | PR preprocessor/48248 | |
13830 | * c-ppoutput.c (maybe_print_line): Always optimize newlines | |
13831 | for output size with -P. | |
13832 | ||
3c0d13bf PC |
13833 | 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com> |
13834 | ||
13835 | * c-common.c (struct c_common_resword): Add __underlying_type. | |
13836 | * c-common.h (enum rid): Add RID_UNDERLYING_TYPE. | |
13837 | ||
04695783 JM |
13838 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
13839 | ||
13840 | * c-format.c (init_dollar_format_checking): Remove useless | |
13841 | if-before-free. | |
13842 | ||
0dc33c3c NP |
13843 | 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com> |
13844 | ||
13845 | * c-objc.h (objc_get_interface_ivars): Removed. | |
3c0d13bf | 13846 | (objc_detect_field_duplicates): New. |
0dc33c3c | 13847 | * stub-objc.c: Likewise. |
3c0d13bf | 13848 | |
c59633d9 NP |
13849 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
13850 | ||
13851 | * stub-objc.c (objc_declare_protocols): Renamed to | |
13852 | objc_declare_protocol. | |
13853 | * c-objc.h: Likewise. | |
3c0d13bf | 13854 | |
32dabdaf NP |
13855 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
13856 | ||
13857 | * stub-objc.c (objc_declare_class): Updated argument name. | |
13858 | ||
81f653d6 NF |
13859 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> |
13860 | ||
13861 | * c-common.h (c_common_init_ts): Declare. | |
13862 | * c-common.c (c_common_init_ts): Define. | |
13863 | ||
eb345401 NP |
13864 | 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com> |
13865 | ||
13866 | * c-objc.h (objc_build_message_expr): Updated prototype. | |
13867 | * stub-objc.c (objc_build_message_expr): Likewise. | |
9faeb493 | 13868 | |
a358e188 MJ |
13869 | 2011-04-12 Martin Jambor <mjambor@suse.cz> |
13870 | ||
13871 | * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead | |
13872 | of cgraph_node. | |
13873 | ||
e6313a78 RG |
13874 | 2011-04-11 Richard Guenther <rguenther@suse.de> |
13875 | ||
13876 | * c-common.c (complete_array_type): Build a range type of | |
13877 | proper type. | |
13878 | ||
dcf0c47e NF |
13879 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> |
13880 | ||
13881 | * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES. | |
13882 | (handle_type_generic_attribute): Likewise. | |
13883 | ||
1ee44b26 JM |
13884 | 2011-04-07 Jason Merrill <jason@redhat.com> |
13885 | ||
13886 | PR c++/48450 | |
13887 | * c-common.c (c_common_truthvalue_conversion): Don't ignore | |
13888 | conversion from C++0x scoped enum. | |
13889 | ||
acce4e77 JM |
13890 | 2011-04-06 Joseph Myers <joseph@codesourcery.com> |
13891 | ||
13892 | * c-target-def.h: New file. | |
13893 | * c-target.def: New file. | |
13894 | * c-target.h: New file. | |
13895 | * c-common.c (targetcm): Don't define here. | |
13896 | * c-common.h (default_handle_c_option): Declare. | |
13897 | * c-format.c: Include c-target.h instead of target.h. | |
13898 | * c-opts.c: Include c-target.h instead of target.h. Explicitly | |
13899 | include tm.h. | |
13900 | (default_handle_c_option): Move from targhooks.c. | |
13901 | ||
e2eefb55 JJ |
13902 | 2011-03-29 Jakub Jelinek <jakub@redhat.com> |
13903 | ||
13904 | PR preprocessor/48248 | |
13905 | * c-ppoutput.c (print): Add src_file field. | |
13906 | (init_pp_output): Initialize it. | |
13907 | (maybe_print_line): Don't optimize by adding up to 8 newlines | |
13908 | if map->to_file and print.src_file are different file. | |
13909 | (print_line): Update print.src_file. | |
13910 | ||
ba78087b KT |
13911 | 2011-03-25 Kai Tietz <ktietz@redhat.com> |
13912 | ||
13913 | * c-ada-spec.c (compare_comment): Use filename_cmp | |
13914 | instead of strcmp for filename. | |
13915 | ||
0edf1bb2 JL |
13916 | 2011-03-25 Jeff Law <law@redhat.com> |
13917 | ||
adfac8df | 13918 | * c-common.c (def_fn_type): Add missing va_end. |
0edf1bb2 | 13919 | |
c7dc8804 JM |
13920 | 2011-03-25 Jason Merrill <jason@redhat.com> |
13921 | ||
13922 | * c.opt: Add -std=c++03. | |
13923 | ||
d1d879b1 EB |
13924 | 2011-03-22 Eric Botcazou <ebotcazou@adacore.com> |
13925 | ||
13926 | * c-ada-spec.c (dump_ada_template): Skip non-class instances. | |
13927 | ||
3f8257db | 13928 | 2011-03-17 Kai Tietz <ktietz@redhat.com> |
62d784f7 KT |
13929 | |
13930 | PR target/12171 | |
5050afdf KT |
13931 | * c-pretty-print.c (pp_c_specifier_qualifier_list): |
13932 | Display allowed attributes for function pointer types. | |
13933 | (pp_c_attributes_display): New function to display | |
13934 | attributes having affects_type_identity flag set to true. | |
13935 | * c-pretty-print.h (pp_c_attributes_display): New prototype. | |
13936 | ||
62d784f7 KT |
13937 | * c-common.c (c_common_attribute_table): |
13938 | Add new element. | |
13939 | (c_common_format_attribute_table): Likewise. | |
13940 | ||
82d37118 JM |
13941 | 2011-03-18 Jason Merrill <jason@redhat.com> |
13942 | ||
49a000c3 JM |
13943 | * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth). |
13944 | * c-common.h: Don't declare it here. | |
13945 | * c-common.c: Or define it here. | |
13946 | * c-opts.c (c_common_handle_option): Or set it here. | |
13947 | ||
82d37118 JM |
13948 | PR c++/35315 |
13949 | * c-common.c (handle_transparent_union_attribute): Don't | |
13950 | make a duplicate type in C++. | |
13951 | ||
17bc631c JM |
13952 | 2011-03-15 Jason Merrill <jason@redhat.com> |
13953 | ||
13954 | * c-common.c (max_constexpr_depth): New. | |
13955 | * c-common.h: Declare it. | |
13956 | * c-opts.c (c_common_handle_option): Set it. | |
13957 | * c.opt (fconstexpr-depth): New option. | |
13958 | ||
1b9b91a6 JM |
13959 | 2011-03-11 Jason Merrill <jason@redhat.com> |
13960 | ||
f231b5ff JM |
13961 | * c-common.c (attribute_takes_identifier_p): Add missing const. |
13962 | ||
1b9b91a6 JM |
13963 | PR c++/46803 |
13964 | * c-common.c (attribute_takes_identifier_p): Assume that an | |
13965 | unknown attribute takes an identifier. | |
13966 | ||
a19e4d44 NF |
13967 | 2011-03-07 Nathan Froyd <froydnj@codesourcery.com> |
13968 | ||
13969 | PR c/47786 | |
13970 | * c-common.c (c_type_hash): Call list_length instead of iterating | |
13971 | through DECL_CHAIN. Rename 'i' to 'n_elements'. | |
13972 | ||
982d62f6 JJ |
13973 | 2011-02-19 Jakub Jelinek <jakub@redhat.com> |
13974 | ||
13975 | PR c/47809 | |
13976 | * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR. | |
13977 | ||
0a256240 NP |
13978 | 2011-02-17 Iain Sandoe <iains@gcc.gnu.org> |
13979 | ||
13980 | * c.opt (fobjc-abi-version=) New. | |
13981 | (fobjc-nilcheck): New. | |
13982 | ||
ba9e6dd5 NF |
13983 | 2011-02-03 Nathan Froyd <froydnj@codesourcery.com> |
13984 | ||
13985 | PR c++/46890 | |
13986 | * c-common.h (keyword_is_decl_specifier): Declare. | |
13987 | * c-common.c (keyword_is_decl_specifier): Define. | |
13988 | (keyword_is_function_specifier): New function. | |
13989 | ||
7273813a JJ |
13990 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
13991 | ||
13992 | PR c/47473 | |
13993 | * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure | |
13994 | EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of | |
13995 | REAL_TYPE. | |
13996 | ||
908ef79b AC |
13997 | 2011-01-26 Arnaud Charlet <charlet@adacore.com> |
13998 | ||
13999 | * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type. | |
14000 | ||
237e9384 JJ |
14001 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
14002 | ||
14003 | PR pch/47430 | |
14004 | * c-opts.c (c_common_post_options): Call c_common_no_more_pch | |
14005 | after init_c_lex if pch_file is set. | |
14006 | ||
47ea1edf DK |
14007 | 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com> |
14008 | ||
d4dba752 | 14009 | PR c++/43601 |
47ea1edf DK |
14010 | * c.opt (-fkeep-inline-dllexport): New switch. |
14011 | ||
2aa9c6ae RG |
14012 | 2011-01-12 Richard Guenther <rguenther@suse.de> |
14013 | ||
14014 | PR middle-end/32511 | |
14015 | * c-common.c (handle_weak_attribute): Warn instead of error | |
14016 | on declaring an inline function weak. | |
14017 | ||
7bd11157 TT |
14018 | 2011-01-05 Tom Tromey <tromey@redhat.com> |
14019 | ||
14020 | * c-common.h (lvalue_error): Update. | |
14021 | * c-common.c (lvalue_error): Add 'loc' argument. Call error_at, | |
14022 | not error. | |
14023 | ||
0e66e494 | 14024 | 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com> |
9faeb493 | 14025 | |
b4f588c4 NP |
14026 | PR objc/47075 |
14027 | * c-objc.h (objc_finish_message_expr): Added argument to | |
14028 | prototype. | |
14029 | ||
f4da8dce NF |
14030 | 2010-12-22 Nathan Froyd <froydnj@codesourcery.com> |
14031 | ||
14032 | * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute): | |
14033 | Use prototype_p. | |
14034 | ||
46270f14 NP |
14035 | 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com> |
14036 | ||
14037 | * c-objc.h (objc_maybe_warn_exceptions): New. | |
9faeb493 | 14038 | * stub-objc.c (objc_maybe_warn_exceptions): New. |
46270f14 | 14039 | |
4816c593 NF |
14040 | 2010-12-10 Nathan Froyd <froydnj@codesourcery.com> |
14041 | ||
14042 | * c-common.h (readonly_error): Declare. | |
14043 | * c-common.c (readonly_error): Define. | |
14044 | ||
7a6daeb0 NF |
14045 | 2010-12-09 Nathan Froyd <froydnj@codesourcery.com> |
14046 | ||
14047 | * c-common.h (invalid_indirection_error): Declare. | |
14048 | * c-common.c (invalid_indirection_error): Define. | |
14049 | ||
892f6119 RG |
14050 | 2010-12-03 Richard Guenther <rguenther@suse.de> |
14051 | ||
14052 | PR c/46745 | |
14053 | * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF. | |
14054 | (pp_c_unary_expression): Likewise. | |
14055 | (pp_c_expression): Likewise. | |
14056 | ||
6c39e757 NP |
14057 | 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com> |
14058 | ||
14059 | * c-common.h (objc_finish_function): New. | |
14060 | (objc_non_volatilized_type): Removed. | |
14061 | (objc_type_quals_match): Removed. | |
14062 | * stub-objc.c (objc_finish_function): New. | |
14063 | (objc_non_volatilized_type): Removed. | |
14064 | (objc_type_quals_match): Removed. | |
9faeb493 | 14065 | |
7c475d11 JM |
14066 | 2010-11-30 Joseph Myers <joseph@codesourcery.com> |
14067 | ||
14068 | * c-common.h (parse_optimize_options): Declare. | |
14069 | * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c, | |
14070 | c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h. | |
14071 | ||
71f3e391 JM |
14072 | 2010-11-29 Joseph Myers <joseph@codesourcery.com> |
14073 | ||
14074 | * c-opts.c (check_deps_environment_vars): Use getenv instead of | |
14075 | GET_ENVIRONMENT. | |
14076 | * c-pch.c (O_BINARY): Don't define here. | |
14077 | * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>. | |
14078 | ||
d5fabb58 JM |
14079 | 2010-11-25 Joseph Myers <joseph@codesourcery.com> |
14080 | ||
14081 | * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to | |
14082 | targetm.except_unwind_info. | |
14083 | ||
299404a1 JM |
14084 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
14085 | ||
14086 | * c-opts.c (c_common_handle_option): Pass location to | |
14087 | set_struct_debug_option. | |
14088 | ||
c98cd5bf JM |
14089 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
14090 | ||
14091 | * c-common.c (visibility_options): Move from ../opts.c. | |
14092 | * c-common.h (struct visibility_flags, visibility_options): | |
14093 | Declare here. | |
14094 | * c-opts.c (finish_options): Rename to c_finish_options. | |
14095 | (c_common_init): Update call to finish_options. | |
14096 | ||
a9546771 NP |
14097 | 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com> |
14098 | ||
14099 | PR objc/34033 | |
14100 | * c-lex.c (lex_string): Check that each string in an Objective-C | |
14101 | string concat sequence starts with either one or zero '@', and | |
14102 | that there are no spurious '@' signs at the end. | |
14103 | ||
24a57808 JM |
14104 | 2010-11-20 Joseph Myers <joseph@codesourcery.com> |
14105 | ||
14106 | * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK, | |
14107 | HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and | |
14108 | HANDLE_PRAGMA_VISIBILITY. | |
14109 | * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK, | |
14110 | HANDLE_PRAGMA_VISIBILITY): Don't define. | |
14111 | (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test. | |
14112 | ||
a9aa2c3a NF |
14113 | 2010-11-20 Nathan Froyd <froydnj@codesourcery.com> |
14114 | ||
14115 | PR c++/16189 | |
14116 | PR c++/36888 | |
14117 | PR c++/45331 | |
14118 | * c-common.h (keyword_begins_type_specifier): Declare. | |
14119 | (keyword_is_storage_class_specifier): Declare. | |
14120 | (keyword_is_type_qualifier): Declare. | |
14121 | * c-common.c (keyword_begins_type_specifier): New function. | |
14122 | (keyword_is_storage_class_specifier): New function. | |
14123 | (keyword_is_type_qualifier): Declare. | |
14124 | ||
5386338c JM |
14125 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
14126 | ||
14127 | PR c/46547 | |
14128 | * c-common.c (in_late_binary_op): Define. | |
14129 | (c_common_truthvalue_conversion): Check in_late_binary_op before | |
14130 | calling c_save_expr. | |
14131 | * c-common.h (in_late_binary_op): Declare. | |
14132 | ||
69ccdddb JM |
14133 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
14134 | ||
14135 | * c-opts.c (c_common_handle_option): Update calls to | |
14136 | set_struct_debug_option. | |
14137 | ||
6b192a09 NP |
14138 | 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com> |
14139 | ||
14140 | * c-common.h (objc_declare_protocols): Added additional argument. | |
14141 | * stub-objc.c (objc_declare_protocol): Same change. | |
9faeb493 | 14142 | |
fb52b50a NF |
14143 | 2010-11-18 Nathan Froyd <froydnj@codesourcery.com> |
14144 | ||
14145 | PR c/33193 | |
14146 | * c-common.h (build_real_imag_expr): Declare. | |
14147 | * c-semantics.c (build_real_imag_expr): Define. | |
14148 | ||
b37421c6 JM |
14149 | 2010-11-17 Joseph Myers <joseph@codesourcery.com> |
14150 | ||
14151 | * c-opts.c (c_common_parse_file): Take no arguments. | |
14152 | * c-common.h (c_common_parse_file): Update prototype. | |
14153 | ||
07078664 JJ |
14154 | 2010-11-16 Jakub Jelinek <jakub@redhat.com> |
14155 | ||
14156 | PR c++/46401 | |
14157 | * c-common.c (warning_candidate_p): Don't track non-const calls | |
14158 | or STRING_CSTs. | |
14159 | ||
c6a13190 ILT |
14160 | 2010-11-15 Ian Lance Taylor <iant@google.com> |
14161 | ||
14162 | * c-lex.c (init_c_lex): Set macro debug callbacks if | |
14163 | flag_dump_go_spec is set. | |
14164 | ||
925e8657 NP |
14165 | 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com> |
14166 | ||
14167 | * c-common.h (objc_build_incr_expr_for_property_ref): New. | |
14168 | * stub-objc.c (objc_build_incr_expr_for_property_ref): New. | |
14169 | ||
bb0a9581 NF |
14170 | 2010-11-15 Nathan Froyd <froydnj@codesourcery.com> |
14171 | ||
14172 | PR preprocessor/45038 | |
14173 | * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++ | |
14174 | dialects. | |
14175 | ||
c5fa0890 JM |
14176 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
14177 | ||
14178 | * c-common.h (c_family_lang_mask): Declare. | |
14179 | * c-opts.c (c_family_lang_mask): Make extern. | |
14180 | * c-pragma.c (handle_pragma_diagnostic): Use | |
14181 | control_warning_option. | |
14182 | ||
a4d8c676 JM |
14183 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
14184 | ||
14185 | * c-common.c (parse_optimize_options): Update call to | |
14186 | decode_options. | |
14187 | * c-common.h (c_common_handle_option): Update prototype. | |
14188 | * c-opts.c (c_common_handle_option): Take location_t parameter and | |
14189 | pass it to other functions. | |
14190 | ||
f954bd2c JM |
14191 | 2010-11-11 Joseph Myers <joseph@codesourcery.com> |
14192 | ||
14193 | * c-opts.c (warning_as_error_callback): Remove. | |
14194 | (c_common_initialize_diagnostics): Don't call | |
14195 | register_warning_as_error_callback. | |
14196 | (c_common_handle_option): Handle -Werror=normalized= here. | |
14197 | ||
d8a07487 JM |
14198 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
14199 | ||
14200 | * c-common.c (handle_mode_attribute): Use %' and word "signedness" | |
14201 | in diagnostic. | |
14202 | * c-opts.c (c_common_parse_file): Start diagnostics with lowercase | |
14203 | letter. | |
14204 | * c-pragma.c (handle_pragma_target, handle_pragma_optimize): | |
14205 | Remove trailing '.' from diagnostics. | |
14206 | * c.opt (Wwrite-strings_: Avoid '`' in help text. | |
14207 | ||
d5478783 JM |
14208 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
14209 | ||
14210 | * c-common.c (parse_optimize_options): Pass global_dc to | |
14211 | decode_options. | |
14212 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
14213 | set_Wstrict_aliasing. | |
14214 | * c.opt (v): Don't mark Common or document here. | |
14215 | ||
91ebb981 IS |
14216 | 2010-11-06 Iain Sandoe <iains@gcc.gnu.org> |
14217 | ||
14218 | PR target/44981 | |
14219 | * c-format.c (format_type): New type gcc_objc_string_format_type. | |
14220 | (valid_stringptr_type_p): New. | |
14221 | (handle_format_arg_attribute): Use valid_stringptr_type_p (). | |
9faeb493 | 14222 | (check_format_string): Pass expected type, use |
91ebb981 IS |
14223 | valid_stringptr_type_p (), check that the format string types are |
14224 | consistent with the format specification. | |
14225 | (decode_format_attr): Warn if NSString is used outside objective-c. | |
14226 | (format_types_orig): Add NSString. | |
14227 | (format_name): New. | |
14228 | (format_flags): New. | |
14229 | (check_format_arg): Handle format strings requiring an external parser. | |
14230 | first_target_format_type: New variable. | |
14231 | (handle_format_attribute): Set up first_target_format_type, pass the | |
14232 | expected format arg string type to check_format_string(). | |
ab20d992 | 14233 | * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag. |
91ebb981 IS |
14234 | * stub-objc.c (objc_string_ref_type_p): New. |
14235 | (objc_check_format_arg): New. | |
14236 | ||
bede2adc NP |
14237 | 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com> |
14238 | ||
9faeb493 | 14239 | Fixed using the Objective-C 2.0 dot-syntax with class names. |
bede2adc NP |
14240 | * c-common.h (objc_build_class_component_ref): New. |
14241 | * stub-objc.c (objc_build_class_component_ref): New. | |
14242 | ||
9a179d01 NP |
14243 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
14244 | ||
14245 | * c.opt (Wproperty-assign-default): New option. | |
14246 | ||
22d8d616 NP |
14247 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
14248 | ||
14249 | Implemented -fobjc-std=objc1 flag. | |
14250 | * c.opt (fobjc-std=objc1): New option. | |
14251 | ||
2debdb4f NP |
14252 | 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com> |
14253 | ||
14254 | Implemented format and noreturn attributes for Objective-C methods. | |
14255 | * c-common.c (handle_noreturn_attribute): Recognize 'noreturn' | |
14256 | attribute for Objective-C methods. | |
14257 | ||
ec52b111 JM |
14258 | 2010-10-31 Jason Merrill <jason@redhat.com> |
14259 | ||
14260 | * c-common.c (conversion_warning, warn_for_collisions_1): Use | |
14261 | EXPR_LOC_OR_HERE. | |
14262 | ||
46a88c12 NP |
14263 | 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com> |
14264 | ||
14265 | Implemented Objective-C 2.0 @property, @synthesize and @dynamic. | |
14266 | * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR. | |
14267 | (objc_add_property_declaration): Removed arguments for copies and | |
14268 | ivar. | |
14269 | (objc_build_getter_call): Renamed to | |
14270 | objc_maybe_build_component_ref. | |
14271 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
14272 | (objc_is_property_ref): New. | |
14273 | * c-common.c (c_common_reswords): Removed copies and ivar. | |
14274 | * stub-objc.c (objc_add_property_declaration): Removed arguments | |
14275 | for copies and ivar. | |
14276 | (objc_build_getter_call): Renamed to | |
14277 | objc_maybe_build_component_ref. | |
14278 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
14279 | (objc_is_property_ref): New. | |
9faeb493 | 14280 | |
1e4bf85b AC |
14281 | 2010-10-29 Arnaud Charlet <charlet@adacore.com> |
14282 | Matthew Gingell <gingell@adacore.com> | |
14283 | ||
14284 | * c-ada-spec.c (separate_class_package): New function. | |
14285 | (pp_ada_tree_identifier): Prefix references to C++ classes with the | |
14286 | name of their enclosing package. | |
14287 | (print_ada_declaration): Use separate_class_package. | |
14288 | ||
81f0bab2 JM |
14289 | 2010-10-27 Jason Merrill <jason@redhat.com> |
14290 | ||
2b08f2c5 JM |
14291 | * c-common.c (c_common_reswords): Add __is_literal_type. |
14292 | * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE. | |
14293 | ||
81f0bab2 JM |
14294 | * c-common.c (check_case_value): Remove special C++ code. |
14295 | ||
200290f2 NP |
14296 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
14297 | ||
14298 | * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN, | |
14299 | RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR | |
14300 | and RID_LAST_PATTR. | |
14301 | (objc_add_property_declaration): Added additional arguments. | |
14302 | (objc_property_attribute_kind): Removed. | |
14303 | (objc_set_property_attr): Removed. | |
14304 | * c-common.c (c_common_reswords): Added readwrite, assign, retain, | |
14305 | copy and nonatomic. | |
14306 | * stub-objc.c (objc_add_property_declaration): Added additional | |
14307 | arguments. | |
14308 | (objc_set_property_attr): Removed. | |
9faeb493 | 14309 | |
f614132b NP |
14310 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
14311 | ||
14312 | * c-common.h (objc_add_property_variable): Renamed to | |
14313 | objc_add_property_declaration. Added location argument. | |
14314 | * stub-objc.c (objc_add_property_variable): Same change. | |
b1726d6c | 14315 | |
b8a18805 NP |
14316 | 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com> |
14317 | ||
14318 | * c-common.h (objc_maybe_printable_name): New. | |
14319 | * stub-objc.c (objc_maybe_printable_name): New. | |
14320 | ||
3f8257db JJ |
14321 | 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
14322 | Andrew Pinski <pinskia@gmail.com> | |
30cd1c5d AS |
14323 | |
14324 | * c-common.h (c_common_mark_addressable_vec): Declare. | |
14325 | * c-common.c (c_common_mark_addressable_vec): New function. | |
14326 | ||
249a82c4 NP |
14327 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
14328 | ||
14329 | * c-common.h (objc_set_method_type): Removed. | |
14330 | (objc_add_method_declaration): Added boolean argument. | |
14331 | (objc_start_method_definition): Same change. | |
14332 | (objc_build_method_signature): Same change. | |
14333 | * stub-objc.c (objc_set_method_type): Removed. | |
14334 | (objc_add_method_declaration): Added boolean argument. | |
14335 | (objc_start_method_definition): Same change. | |
14336 | (objc_build_method_signature): Same change. | |
14337 | ||
977e30bc NP |
14338 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
14339 | ||
14340 | * c-common.h (finish_file): Removed. | |
14341 | (objc_write_global_declarations): New. | |
14342 | * c-opts.c (c_common_parse_file): Do not call finish_file. | |
14343 | * stub-objc.c (objc_write_global_declarations): New. | |
9faeb493 | 14344 | |
da57d1b9 NP |
14345 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
14346 | ||
14347 | Implemented parsing @synthesize and @dynamic for | |
14348 | Objective-C/Objective-C++. | |
14349 | * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC. | |
14350 | (objc_add_synthesize_declaration): New. | |
14351 | (objc_add_dynamic_declaration): New. | |
14352 | * c-common.c (c_common_reswords): Add synthesize and dynamic. | |
14353 | * stub-objc.c (objc_add_synthesize_declaration): New. | |
14354 | (objc_add_dynamic_declaration): New. | |
9faeb493 | 14355 | |
0069111f MM |
14356 | 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com> |
14357 | ||
14358 | PR target/46041 | |
14359 | * c-cppbuiltin.c (mode_has_fma): Move function here from | |
14360 | builtins.c. Don't use the fma optab, instead just use the | |
14361 | HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when | |
14362 | using -save-temps. | |
14363 | ||
e426b47b NP |
14364 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
14365 | ||
14366 | Merge from 'apple/trunk' branch on FSF servers. | |
0069111f | 14367 | |
3f8257db | 14368 | 2005-11-08 Fariborz Jahanian <fjahanian@apple.com> |
e426b47b | 14369 | |
9faeb493 | 14370 | Radar 4330422 |
e426b47b NP |
14371 | * c-common.h (objc_non_volatilized_type): New declaration |
14372 | * stub-objc.c (objc_non_volatilized_type): New stub. | |
14373 | ||
90fbfdc3 NP |
14374 | 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com> |
14375 | ||
e426b47b | 14376 | Merge from 'apple/trunk' branch on FSF servers. |
90fbfdc3 | 14377 | |
ab20d992 | 14378 | 2006-03-27 Fariborz Jahanian <fjahanian@apple.com> |
90fbfdc3 | 14379 | |
9faeb493 | 14380 | Radar 4133425 |
90fbfdc3 | 14381 | * c-common.h (objc_diagnose_private_ivar): New decl. |
0069111f | 14382 | * stub-objc.c (objc_diagnose_private_ivar): New stub. |
90fbfdc3 | 14383 | |
c37d8c30 IS |
14384 | 2010-10-17 Iain Sandoe <iains@gcc.gnu.org> |
14385 | ||
14386 | * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE. | |
14387 | * c-common.h (enum rid): Add RID_AT_PACKAGE. | |
14388 | (objc_ivar_visibility_kind): New enum. | |
14389 | (objc_set_visibility): Adjust prototype to use visibility enum. | |
0069111f | 14390 | * stub-objc.c (objc_set_visibility): Adjust stub to use |
c37d8c30 IS |
14391 | visibility enum. |
14392 | ||
1b1562a5 MM |
14393 | 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com> |
14394 | ||
14395 | * c-cppbuiltin.c (builtin_define_float_constants): Emit | |
14396 | __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine | |
14397 | has the appropriate fma builtins. | |
14398 | (c_cpp_builtins): Adjust call to builtin_define_float_constants. | |
14399 | ||
668ea4b1 IS |
14400 | 2010-10-14 Iain Sandoe <iains@gcc.gnu.org> |
14401 | ||
1b1562a5 | 14402 | merge from FSF apple 'trunk' branch. |
3f8257db | 14403 | 2006 Fariborz Jahanian <fjahanian@apple.com> |
1b1562a5 | 14404 | |
668ea4b1 IS |
14405 | Radars 4436866, 4505126, 4506903, 4517826 |
14406 | * c-common.c (c_common_resword): Define @property and its attributes. | |
14407 | * c-common.h: Define property attribute enum entries. | |
14408 | (OBJC_IS_PATTR_KEYWORD): New. | |
14409 | (objc_property_attribute_kind): New enum. | |
14410 | Declare objc_set_property_attr (), objc_add_property_variable (), | |
14411 | objc_build_getter_call () and objc_build_setter_call (). | |
14412 | * stub-objc.c (objc_set_property_attr): New stub. | |
14413 | (objc_add_property_variable): Likewise. | |
14414 | (objc_build_getter_call): Likewise. | |
14415 | (objc_build_setter_call) Likewise. | |
1b1562a5 | 14416 | |
a1178b30 IS |
14417 | 2010-10-13 Iain Sandoe <iains@gcc.gnu.org> |
14418 | ||
1b1562a5 | 14419 | merge from FSF apple 'trunk' branch. |
ab20d992 | 14420 | 2006-04-26 Fariborz Jahanian <fjahanian@apple.com> |
a1178b30 IS |
14421 | |
14422 | Radar 3803157 (method attributes) | |
14423 | * c-common.c (handle_deprecated_attribute): Recognize | |
14424 | objc methods as valid declarations. | |
14425 | * c-common.h: Declare objc_method_decl (). | |
1b1562a5 | 14426 | * stub-objc.c (objc_method_decl): New stub. |
a1178b30 | 14427 | |
a75bfaa6 JM |
14428 | 2010-10-08 Joseph Myers <joseph@codesourcery.com> |
14429 | ||
14430 | * c-common.c (parse_optimize_options): Call | |
14431 | decode_cmdline_options_to_array_default_mask before | |
14432 | decode_options. Update arguments to decode_options. | |
14433 | * c-common.h (c_common_init_options_struct): Declare. | |
14434 | * c-opts.c (c_common_init_options_struct): New. Split out from | |
14435 | c_common_init_options. | |
14436 | ||
f05b9d93 NP |
14437 | 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com> |
14438 | ||
14439 | Implemented fast enumeration for Objective-C. | |
14440 | * c-common.h (objc_finish_foreach_loop): New. | |
14441 | * stub-objc.c (objc_finish_foreach_loop): New. | |
14442 | ||
1ebe4b4f JM |
14443 | 2010-10-05 Joseph Myers <joseph@codesourcery.com> |
14444 | ||
14445 | * c-common.h (struct diagnostic_context): Don't declare here. | |
14446 | (c_common_initialize_diagnostics): Declare using | |
14447 | diagnostic_context typedef. | |
14448 | * c-opts.c (c_common_handle_option): Pass global_dc to | |
14449 | handle_generated_option. | |
14450 | ||
d4d24ba4 JM |
14451 | 2010-10-04 Joseph Myers <joseph@codesourcery.com> |
14452 | ||
14453 | * c-opts.c (c_common_handle_option): Pass &global_options_set to | |
14454 | handle_generated_option. | |
14455 | ||
478a1c5b ILT |
14456 | 2010-10-03 Ian Lance Taylor <iant@google.com> |
14457 | ||
14458 | * c.opt (-fplan9-extensions): New option. | |
14459 | ||
82a1c2fe FXC |
14460 | 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
14461 | ||
14462 | * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision): | |
14463 | Remove. | |
14464 | (c_cpp_builtins): Call functions from cppbuiltin.c instead | |
14465 | of duplicating code. | |
14466 | ||
92902b1b IS |
14467 | 2010-09-30 Iain Sandoe <iains@gcc.gnu.org> |
14468 | ||
14469 | * c-common.c: Add two new entries for @optional | |
14470 | and @required keywords. | |
14471 | ||
14472 | merge from FSF 'apple/trunk' branch. | |
3f8257db | 14473 | 2006-01-30 Fariborz Jahanian <fjahanian@apple.com> |
92902b1b IS |
14474 | |
14475 | Radar 4386773 | |
14476 | * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new | |
14477 | objective-c keywords. | |
14478 | (objc_set_method_opt): New declaration. | |
14479 | * stub-objc.c (objc_set_method_opt): New stub. | |
9faeb493 | 14480 | |
46625112 JM |
14481 | 2010-09-30 Joseph Myers <joseph@codesourcery.com> |
14482 | ||
14483 | * c-common.c (handle_optimize_attribute): Pass &global_options to | |
14484 | cl_optimization_save and cl_optimization_restore. | |
14485 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
14486 | handle_generated_option. | |
14487 | * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var. | |
14488 | (handle_pragma_pop_options, handle_pragma_reset_options): Pass | |
14489 | &global_options to cl_optimization_restore. | |
14490 | ||
49b91f05 NP |
14491 | 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com> |
14492 | ||
14493 | * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME | |
14494 | Objective-C/Objective-C++ keywords. | |
14495 | ||
13ed556f | 14496 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
a6341d57 | 14497 | |
9faeb493 UB |
14498 | Merge from 'apple/trunk' branch on FSF servers. |
14499 | ||
3f8257db | 14500 | 2005-10-04 Fariborz Jahanian <fjahanian@apple.com> |
a6341d57 NP |
14501 | |
14502 | Radar 4281748 | |
14503 | * c-common.h (objc_check_global_decl): New declaration. | |
14504 | * stub-objc.c (objc_check_global_decl): New stub. | |
14505 | ||
f0036cca JM |
14506 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
14507 | ||
14508 | * c.opt: Don't use VarExists. | |
14509 | ||
e3339d0f JM |
14510 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
14511 | ||
14512 | * c-common.c (c_cpp_error): Update names of diagnostic_context | |
14513 | members. | |
14514 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of | |
14515 | cl_optimization members. | |
14516 | * c-opts.c (warning_as_error_callback, c_common_handle_option, | |
14517 | sanitize_cpp_opts, finish_options): Update names of cpp_options | |
14518 | members. | |
14519 | ||
1973201f NP |
14520 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
14521 | ||
14522 | * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments. | |
14523 | (objc_is_reserved_word): Removed. | |
14524 | * c-common.c: Updated comments. | |
14525 | * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of | |
14526 | objc_is_reserved_word. | |
14527 | * stub-objc.c (objc_is_reserved_word): Removed. | |
14528 | ||
f7e71da5 IS |
14529 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
14530 | ||
9faeb493 | 14531 | * c-common.h (objc_add_method_declaration): Adjust prototype to |
f7e71da5 IS |
14532 | include attributes. |
14533 | (objc_start_method_definition): Likewise. | |
14534 | (objc_build_keyword_decl): Likewise. | |
14535 | * stub-objc.c:(objc_add_method_declaration): Handle attributes. | |
14536 | (objc_start_method_definition): Likewise. | |
14537 | (objc_build_keyword_decl): Likewise. | |
14538 | ||
c165dca7 IS |
14539 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
14540 | ||
14541 | * c-common.h (objc_start_class_interface): Adjust prototype. | |
14542 | (objc_start_category_interface): Likewise. | |
14543 | (objc_start_protocol): Likewise. | |
14544 | * stub-objc.c (objc_start_protocol): Adjust for extra argument. | |
14545 | (objc_start_class_interface): Likewise. | |
14546 | (objc_start_category_interface): Likewise. | |
14547 | ||
7458026b ILT |
14548 | 2010-09-27 Ian Lance Taylor <iant@google.com> |
14549 | ||
14550 | * c-common.c (c_common_attribute_table): Add no_split_stack. | |
14551 | (handle_no_split_stack_attribute): New static function. | |
14552 | ||
b581b85b NP |
14553 | 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com> |
14554 | ||
9faeb493 | 14555 | Merge from 'apple/trunk' branch on FSF servers. |
b581b85b | 14556 | |
3f8257db | 14557 | 2005-12-15 Fariborz Jahanian <fjahanian@apple.com> |
b581b85b | 14558 | |
9faeb493 | 14559 | Radar 4229905 |
b581b85b NP |
14560 | * c-common.h (objc_have_common_type): New declaration. |
14561 | * stub-objc.c (objc_have_common_type): New stub. | |
14562 | ||
14563 | 2005-06-22 Ziemowit Laski <zlaski@apple.com> | |
14564 | ||
14565 | Radar 4154928 | |
14566 | * c-common.h (objc_common_type): New prototype. | |
9faeb493 | 14567 | * stub-objc.c (objc_common_type): New stub. |
b581b85b | 14568 | |
46a4da10 JH |
14569 | 2010-09-24 Jan Hubicka <jh@suse.cz> |
14570 | ||
14571 | * c-common.c (handle_leaf_attribute): New function. | |
14572 | (struct attribute_spec c_common_att): Add leaf. | |
14573 | ||
e200444e JM |
14574 | 2010-09-22 Joseph Myers <joseph@codesourcery.com> |
14575 | ||
14576 | * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments, | |
14577 | -comments-in-macros, -define-macro, -define-macro=, -dependencies, | |
14578 | -dump, -dump=, -imacros, -imacros=, -include, -include=, | |
14579 | -include-barrier, -include-directory, -include-directory=, | |
14580 | -include-directory-after, -include-directory-after=, | |
14581 | -include-prefix, -include-prefix=, -include-with-prefix, | |
14582 | -include-with-prefix=, -include-with-prefix-after, | |
14583 | -include-with-prefix-after=, -include-with-prefix-before, | |
14584 | -include-with-prefix-before=, -no-integrated-cpp, | |
14585 | -no-line-commands, -no-standard-includes, -no-warnings, -output, | |
14586 | -output=, -pedantic, -pedantic-errors, -preprocess, | |
14587 | -print-missing-file-dependencies, -trace-includes, -traditional, | |
14588 | -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=, | |
14589 | -user-dependencies, -verbose, -write-dependencies, | |
14590 | -write-user-dependencies, no-integrated-cpp, traditional): New. | |
14591 | ||
29a80ea6 NP |
14592 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> |
14593 | ||
14594 | PR objc/23710 | |
ac1fc2fc NP |
14595 | * c-common.h (objc_start_method_definition): Return bool instead |
14596 | of void. | |
14597 | * stub-objc.c (objc_start_method_definition): Return bool instead | |
14598 | of void. | |
14599 | ||
14600 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> | |
14601 | ||
14602 | PR objc/25965 | |
14603 | * c-common.h (objc_get_interface_ivars): New declaration. | |
14604 | * stub-objc.c (objc_get_interface_ivars): New stub. | |
29a80ea6 | 14605 | |
de621752 ILT |
14606 | 2010-09-15 Ian Lance Taylor <iant@google.com> |
14607 | ||
14608 | * c-common.c (parse_optimize_options): Do not capitalize warning | |
06730c5d | 14609 | messages. Remove period at end of warning message. |
de621752 | 14610 | |
ba885ec5 NS |
14611 | 2010-09-09 Nathan Sidwell <nathan@codesourcery.com> |
14612 | ||
14613 | * c-common.c (handle_alias_ifunc_attribute): New, broken out of ... | |
14614 | (handle_alias_attribute): ... here. | |
14615 | (handle_ifunc_attribute): New. | |
14616 | ||
c5ee1358 MM |
14617 | 2010-09-06 Mark Mitchell <mark@codesourcery.com> |
14618 | ||
14619 | * c-common.h (do_warn_double_promotion): Declare. | |
14620 | * c-common.c (do_warn_double_promotion): Define. | |
14621 | ||
0a0b3574 MM |
14622 | 2010-09-05 Mark Mitchell <mark@codesourcery.com> |
14623 | ||
14624 | * c.opt (Wdouble-promotion): New. | |
14625 | ||
d1779886 JM |
14626 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
14627 | ||
14628 | * c.opt (falt-external-templates, fhuge-objects, fvtable-gc, | |
14629 | fvtable-thunks, fxref): Mark no longer supported in help text. | |
14630 | ||
2d2bd949 JM |
14631 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
14632 | ||
14633 | * c.opt (Wimport, fall-virtual, falt-external-templates, | |
14634 | fdefault-inline, fenum-int-equiv, fexternal-templates, | |
14635 | fguiding-decls, fhonor-std, fhuge-objects, flabels-ok, | |
14636 | fname-mangling-version-, fnew-abi, fnonnull-objects, | |
14637 | foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable, | |
14638 | fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as | |
14639 | applicable. | |
14640 | (fhandle-exceptions): Mark with Alias and Warn. | |
14641 | * c-opts.c (c_common_handle_option): Don't handle options marked | |
14642 | as ignored. | |
14643 | ||
5de8299c JM |
14644 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
14645 | ||
14646 | * c.opt (Wcomments, Werror-implicit-function-declaration, | |
14647 | ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x, | |
14648 | std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as | |
14649 | aliases. | |
14650 | * c-common.c (option_codes): Use OPT_Wcomment instead of | |
14651 | OPT_Wcomments. | |
14652 | * c-opts.c (warning_as_error_callback, c_common_handle_option): | |
14653 | Don't handle options marked as aliases. | |
14654 | ||
0ceb0201 RG |
14655 | 2010-08-25 Richard Guenther <rguenther@suse.de> |
14656 | ||
14657 | * c-common.c (c_common_get_alias_set): Remove special | |
14658 | handling for pointers. | |
14659 | ||
ac47786e NF |
14660 | 2010-08-20 Nathan Froyd <froydnj@codesourcery.com> |
14661 | ||
14662 | * c-common.c: Use FOR_EACH_VEC_ELT. | |
14663 | * c-gimplify.c: Likewise. | |
14664 | * c-pragma.c: Likewise. | |
14665 | ||
c878765b JM |
14666 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
14667 | ||
14668 | * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of | |
14669 | RejectDriver. | |
14670 | (MMDX): Change back to MMD. Mark NoDriverArg instead of | |
14671 | RejectDriver. | |
14672 | * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD | |
14673 | instead of OPT_MDX and OPT_MMDX. | |
14674 | ||
603349bf JM |
14675 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
14676 | ||
14677 | * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver. | |
14678 | ||
644fa7ac JM |
14679 | 2010-08-12 Joseph Myers <joseph@codesourcery.com> |
14680 | ||
14681 | * c.opt (MD, MMD): Change to MDX and MMDX. | |
14682 | * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX. | |
14683 | ||
481e1176 JM |
14684 | 2010-08-11 Joseph Myers <joseph@codesourcery.com> |
14685 | ||
14686 | * c-opts.c (c_common_handle_option): Call handle_generated_option | |
14687 | instead of handle_option. | |
14688 | ||
ac8dc9f7 NF |
14689 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
14690 | ||
14691 | * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push. | |
14692 | (maybe_apply_renaming_pragma): Delete unneeded declarations. | |
14693 | ||
4f8c876d NF |
14694 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
14695 | ||
14696 | * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it. | |
14697 | (pending_redefine_extname): Change type to a VEC. | |
14698 | (add_to_renaming_pragma_list): Update for new type of | |
14699 | pending_redefine_extname. | |
ac8dc9f7 | 14700 | (maybe_apply_renaming_pragma): Likewise. |
4f8c876d | 14701 | |
3b0c690e AC |
14702 | 2010-08-04 Arnaud Charlet <charlet@adacore.com> |
14703 | ||
14704 | * c-ada-spec.c (dump_ada_template): Mark underlying instance type as | |
14705 | visited. | |
14706 | (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to | |
14707 | decide whether a type has already been declared/seen. | |
14708 | Do not go to the original type. | |
14709 | (dump_nested_types): New parameter forward. | |
14710 | Generate forward declaration if needed and mark type as visited. | |
14711 | (print_ada_declaration): Call dump_nested_types if not already done. | |
14712 | Mark types as visited. | |
14713 | ||
1890bccc JM |
14714 | 2010-08-03 Joseph Myers <joseph@codesourcery.com> |
14715 | ||
14716 | * c.opt (-print-pch-checksum): Remove option. | |
14717 | * c-opts.c (c_common_handle_option): Don't handle | |
14718 | OPT_print_pch_checksum. | |
14719 | ||
5f20c657 JM |
14720 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
14721 | ||
14722 | * c-common.h (c_common_handle_option): Update prototype and return | |
14723 | value type. | |
14724 | * c-opts.c (c_common_handle_option): Update prototype and return | |
14725 | value type. Update calls to handle_option and | |
14726 | enable_warning_as_error. | |
14727 | ||
f551f80c JJ |
14728 | 2010-07-27 Jakub Jelinek <jakub@redhat.com> |
14729 | ||
14730 | PR c/45079 | |
14731 | * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR. | |
14732 | ||
61ff2bdc JM |
14733 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
14734 | ||
14735 | * c-common.h (c_common_missing_argument): Remove. | |
14736 | * c-opts.c (c_common_missing_argument): Remove. | |
14737 | * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=, | |
14738 | idirafter, imacros, include, isysroot, isystem, iquote): Add | |
14739 | MissingArgError. | |
14740 | * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove. | |
14741 | ||
7a9bf9a4 JM |
14742 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
14743 | ||
14744 | * c-common.h (c_common_option_lang_mask, | |
14745 | c_common_initialize_diagnostics, c_common_complain_wrong_lang_p): | |
14746 | New. | |
14747 | (c_common_init_options): Update prototype. | |
14748 | * c-opts.c (c_common_option_lang_mask): New. | |
14749 | (c_common_initialize_diagnostics): Split out of | |
14750 | c_common_init_options. | |
14751 | (accept_all_c_family_options, c_common_complain_wrong_lang_p): | |
14752 | New. | |
14753 | (c_common_init_options): Update prototype. Use decoded options in | |
14754 | search for -lang-asm. | |
14755 | ||
910ad8de NF |
14756 | 2010-07-15 Nathan Froyd <froydnj@codesourcery.com> |
14757 | ||
14758 | * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN. | |
14759 | * c-format.c: Likewise. | |
14760 | ||
718f9c0f MLI |
14761 | 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org> |
14762 | ||
14763 | * c-common.h: Include diagnostic-core.h. Error if already | |
14764 | included. | |
14765 | * c-semantics.c: Do not define GCC_DIAG_STYLE here. | |
14766 | ||
4d451982 MLI |
14767 | 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
14768 | ||
adfac8df | 14769 | * c-common.c (IN_GCC_FRONTEND): Do not undef. |
4d451982 MLI |
14770 | Do not include expr.h |
14771 | (vector_mode_valid_p): Move here. | |
14772 | ||
119fe915 SB |
14773 | 2010-06-21 DJ Delorie <dj@redhat.com> |
14774 | ||
14775 | * c-pragma.c (handle_pragma_diagnostic): Add push/pop, | |
14776 | allow these pragmas anywhere. | |
14777 | ||
14778 | 2010-06-14 Jakub Jelinek <jakub@redhat.com> | |
14779 | ||
14780 | PR bootstrap/44509 | |
14781 | * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h. | |
14782 | (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers. | |
14783 | (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use | |
14784 | ggc_strdup instead of xstrdup. | |
14785 | ||
14786 | 2010-06-10 Jakub Jelinek <jakub@redhat.com> | |
14787 | ||
14788 | * c-cppbuiltin.c: Include cpp-id-data.h. | |
14789 | (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables. | |
14790 | (lazy_hex_fp_value): New function. | |
14791 | (builtin_define_with_hex_fp_value): Provide definitions lazily. | |
14792 | ||
6662d794 MLI |
14793 | 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
14794 | ||
14795 | * c-gimplify.c: Do not include tree-flow.h | |
14796 | ||
38f8b050 JR |
14797 | 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com> |
14798 | ||
14799 | PR other/44034 | |
14800 | * c-common.c: Rename targetm member: | |
14801 | targetm.enum_va_list -> targetm.enum_va_list_p | |
14802 | ||
9589f23e AS |
14803 | 2010-06-28 Anatoly Sokolov <aesok@post.ru> |
14804 | ||
14805 | * c-common.c (shorten_compare): Adjust call to force_fit_type_double. | |
14806 | ||
3b06d379 SB |
14807 | 2010-06-28 Steven Bosscher <steven@gcc.gnu.org> |
14808 | ||
14809 | * c-cppbuiltin.c: Do not include except.h. | |
14810 | ||
d166d4c3 AK |
14811 | 2010-06-24 Andi Kleen <ak@linux.intel.com> |
14812 | ||
9faeb493 UB |
14813 | * c-common.c (warn_for_omitted_condop): New. |
14814 | * c-common.h (warn_for_omitted_condop): Add prototype. | |
d166d4c3 | 14815 | |
70cb8be6 JM |
14816 | 2010-06-21 Joseph Myers <joseph@codesourcery.com> |
14817 | ||
14818 | * c.opt (lang-objc): Remove. | |
14819 | * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc. | |
14820 | ||
a4c97feb JR |
14821 | 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com> |
14822 | ||
14823 | * c-opts.c: Include "tm_p.h". | |
14824 | ||
6e2f1956 JM |
14825 | 2010-06-20 Joseph Myers <joseph@codesourcery.com> |
14826 | ||
14827 | * c-common.c (parse_optimize_options): Update call to | |
14828 | decode_options. | |
14829 | ||
bc87224e NF |
14830 | 2010-06-18 Nathan Froyd <froydnj@codesourcery.com> |
14831 | ||
14832 | * c-common.c (record_types_used_by_current_var_decl): Adjust for | |
14833 | new type of types_used_by_cur_var_decl. | |
14834 | ||
b49cf425 JR |
14835 | 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com> |
14836 | ||
14837 | PR bootstrap/44512 | |
14838 | * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast | |
14839 | for C++ standard compliance. | |
14840 | ||
59f9c2ed JM |
14841 | 2010-06-16 Jason Merrill <jason@redhat.com> |
14842 | ||
14843 | * c.opt: Add -Wnoexcept. | |
14844 | ||
33766b66 RG |
14845 | 2010-06-16 Richard Guenther <rguenther@suse.de> |
14846 | ||
14847 | PR c/44555 | |
14848 | * c-common.c (c_common_truthvalue_conversion): Remove | |
14849 | premature and wrong optimization concering ADDR_EXPRs. | |
14850 | ||
eff7e30c AC |
14851 | 2010-06-15 Arnaud Charlet <charlet@adacore.com> |
14852 | ||
14853 | * c-ada-spec.c (dump_sloc): Remove column info. | |
14854 | (is_simple_enum): New function. | |
14855 | (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada | |
14856 | enum types when relevant. | |
14857 | ||
6312e84d MLI |
14858 | 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
14859 | ||
9faeb493 | 14860 | * c-common.c (conversion_warning): Warn at expression |
6312e84d MLI |
14861 | location. |
14862 | ||
1cb42611 JM |
14863 | 2010-06-10 Joseph Myers <joseph@codesourcery.com> |
14864 | ||
14865 | * c-opts.c (c_common_handle_option): Don't handle | |
14866 | OPT_fshow_column. | |
14867 | ||
a9429e29 LB |
14868 | 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com> |
14869 | ||
14870 | * c-pragma.c (push_alignment): Use typed GC allocation. | |
14871 | (handle_pragma_push_options): Likewise. | |
14872 | ||
14873 | * c-common.c (parse_optimize_options): Likewise. | |
14874 | ||
14875 | * c-common.h (struct sorted_fields_type): Add variable_size GTY | |
14876 | option. | |
14877 | ||
5498f011 JM |
14878 | 2010-06-07 Joseph Myers <joseph@codesourcery.com> |
14879 | ||
14880 | * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin, | |
14881 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
14882 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
14883 | flag_signed_bitfields, warn_strict_null_sentinel, | |
14884 | flag_nil_receivers, flag_zero_link, flag_replace_objc_classes, | |
14885 | flag_gen_declaration, flag_no_gnu_keywords, | |
14886 | flag_implement_inlines, flag_implicit_templates, | |
14887 | flag_implicit_inline_templates, flag_optional_diags, | |
14888 | flag_elide_constructors, flag_default_inline, flag_rtti, | |
14889 | flag_conserve_space, flag_access_control, flag_check_new, | |
14890 | flag_new_for_scope, flag_weak, flag_working_directory, | |
14891 | flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr, | |
14892 | flag_enforce_eh_specs, flag_threadsafe_statics, | |
14893 | flag_pretty_templates): Remove. | |
14894 | * c-common.h (flag_preprocess_only, flag_nil_receivers, | |
14895 | flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link, | |
14896 | flag_replace_objc_classes, flag_undef, flag_no_builtin, | |
14897 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
14898 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
14899 | flag_const_strings, flag_signed_bitfields, flag_gen_declaration, | |
14900 | flag_no_gnu_keywords, flag_implement_inlines, | |
14901 | flag_implicit_templates, flag_implicit_inline_templates, | |
14902 | flag_optional_diags, flag_elide_constructors, flag_default_inline, | |
14903 | flag_rtti, flag_conserve_space, flag_access_control, | |
14904 | flag_check_new, flag_new_for_scope, flag_weak, | |
14905 | flag_working_directory, flag_use_cxa_atexit, | |
14906 | flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs, | |
14907 | flag_threadsafe_statics, flag_pretty_templates, | |
14908 | warn_strict_null_sentinel): Remove. | |
14909 | * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm, | |
14910 | fbuiltin, fcheck-new, fconserve-space, felide-constructors, | |
14911 | fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines, | |
14912 | fimplicit-inline-templates, fimplicit-templates, | |
14913 | flax-vector-conversions, fms-extensions, fnil-receivers, | |
14914 | fnonansi-builtins, fpretty-templates, freplace-objc-classes, | |
14915 | frtti, fshort-double, fshort-enums, fshort-wchar, | |
14916 | fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics, | |
14917 | funsigned-bitfields, funsigned-char, fuse-cxa-atexit, | |
14918 | fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link, | |
14919 | gen-decls, undef): Use Var. | |
14920 | (fdefault-inline, foptional-diags): Document as doing nothing. | |
14921 | * c-opts.c (c_common_handle_option): Remove cases for options now | |
14922 | using Var. Mark ignored options as such. | |
14923 | ||
39dabefd SB |
14924 | 2010-06-05 Steven Bosscher <steven@gcc.gnu.org> |
14925 | ||
9faeb493 | 14926 | * c-common.c: Moved to here from parent directory. |
39dabefd SB |
14927 | * c-common.def: Likewise. |
14928 | * c-common.h: Likewise. | |
14929 | * c-cppbuiltin.c: Likewise. | |
14930 | * c-dump.c: Likewise. | |
14931 | * c-format.c: Likewise. | |
14932 | * c-format.h : Likewise. | |
14933 | * c-gimplify.c: Likewise. | |
14934 | * c-lex.c: Likewise. | |
14935 | * c-omp.c: Likewise. | |
14936 | * c.opt: Likewise. | |
14937 | * c-opts.c: Likewise. | |
14938 | * c-pch.c: Likewise. | |
14939 | * c-ppoutput.c: Likewise. | |
14940 | * c-pragma.c: Likewise. | |
14941 | * c-pragma.h: Likewise. | |
14942 | * c-pretty-print.c: Likewise. | |
14943 | * c-pretty-print.h: Likewise. | |
14944 | * c-semantics.c: Likewise. | |
14945 | * stub-objc.c: Likewise. | |
14946 | ||
14947 | * c-common.c: Include gt-c-family-c-common.h. | |
14948 | * c-pragma.c: Include gt-c-family-c-pragma.h. | |
14949 | \f | |
6a720d41 | 14950 | Copyright (C) 2010-2024 Free Software Foundation, Inc. |
39dabefd SB |
14951 | |
14952 | Copying and distribution of this file, with or without modification, | |
14953 | are permitted in any medium without royalty provided the copyright | |
14954 | notice and this notice are preserved. |