]>
Commit | Line | Data |
---|---|---|
0933f508 GA |
1 | 2020-07-20 Jason Merrill <jason@redhat.com> |
2 | ||
3 | * c-cppbuiltin.c (c_cpp_builtins): Update | |
4 | __cpp_nontype_template_args for C++20. | |
5 | ||
6 | 2020-07-20 Martin Sebor <msebor@redhat.com> | |
7 | ||
8 | PR c/96249 | |
9 | * c.opt: Remove stray text. | |
10 | ||
8ca07a30 GA |
11 | 2020-07-14 Lewis Hyatt <lhyatt@gmail.com> |
12 | ||
13 | PR other/86904 | |
14 | * c-indentation.c (should_warn_for_misleading_indentation): Get | |
15 | global tabstop from the new source. | |
16 | * c-opts.c (c_common_handle_option): Remove handling of -ftabstop, which | |
17 | is now a common option. | |
18 | * c.opt: Likewise. | |
19 | ||
50873cc5 GA |
20 | 2020-07-08 Eric Botcazou <ebotcazou@gcc.gnu.org> |
21 | ||
22 | * c.opt (Wscalar-storage-order): Add explicit variable. | |
23 | ||
f60ee68d GA |
24 | 2020-07-07 Nathan Sidwell <nathan@acm.org> |
25 | ||
26 | * c-opts.c (c_common_post_options): Add 'injecting' arg to | |
27 | cpp_read_main_file. | |
28 | (c_finish_options): Add linemap_line_start calls for builtin and cmd | |
29 | maps. Force token position to line_table's highest line. | |
30 | * c-ppoutput.c (print_line_1): Refactor, print line zero. | |
31 | (cb_define): Always increment source line. | |
32 | ||
4077d74c GA |
33 | 2020-07-06 Martin Sebor <msebor@redhat.com> |
34 | ||
35 | PR c++/95984 | |
36 | * c-common.c (check_function_nonnull): Avoid checking syntesized calls | |
37 | to stub lambda objects with null this pointer. | |
38 | (check_nonnull_arg): Handle C++ nullptr. | |
39 | ||
b5f24739 GA |
40 | 2020-07-02 Jason Merrill <jason@redhat.com> |
41 | Jakub Jelinek <jakub@redhat.com> | |
42 | ||
43 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_consteval. | |
44 | ||
46fbb6c6 GA |
45 | 2020-06-30 Jakub Jelinek <jakub@redhat.com> |
46 | ||
47 | PR c++/95963 | |
48 | * c-common.c (check_function_arguments_recurse): Don't crash on | |
49 | calls to internal functions. | |
50 | ||
69273534 GA |
51 | 2020-06-28 Martin Sebor <msebor@redhat.com> |
52 | ||
53 | PR c++/86568 | |
54 | * c-common.c (struct nonnull_arg_ctx): Add members. | |
55 | (check_function_nonnull): Use nonnull_arg_ctx as argument. Handle | |
56 | C++ member functions specially. Consider the this pointer implicitly | |
57 | nonnull. | |
58 | (check_nonnull_arg): Use location of argument when available. | |
59 | (check_function_arguments): Use nonnull_arg_ctx as argument. | |
60 | ||
9a33c41f GA |
61 | 2020-06-27 Jakub Jelinek <jakub@redhat.com> |
62 | ||
63 | PR middle-end/95903 | |
64 | * c-common.c (pointer_int_sum): Use TYPE_OVERFLOW_UNDEFINED instead of | |
65 | !TYPE_UNSIGNED check to see if we can apply distributive law and handle | |
66 | smaller precision intop operands separately. | |
67 | ||
c9c05f73 GA |
68 | 2020-06-26 Marek Polacek <polacek@redhat.com> |
69 | ||
70 | * c-opts.c (c_common_init_options): Default to gnu++17. | |
71 | ||
aff95ee7 GA |
72 | 2020-06-17 Jonathan Wakely <jwakely@redhat.com> |
73 | ||
bd0a89dc | 74 | PR c/95378 |
aff95ee7 GA |
75 | * c-common.c (get_atomic_generic_size): Check cv-qualifiers in |
76 | pointer arguments. | |
77 | ||
56638b9b GA |
78 | 2020-06-16 Jakub Jelinek <jakub@redhat.com> |
79 | ||
80 | * c-common.h (c_omp_check_loop_iv_exprs): Add an int argument. | |
81 | * c-omp.c (struct c_omp_check_loop_iv_data): Add maybe_nonrect and | |
82 | idx members. | |
83 | (c_omp_is_loop_iterator): New function. | |
84 | (c_omp_check_loop_iv_r): Use it. Add support for silent scanning | |
85 | if outer loop iterator is present. Perform duplicate checking through | |
86 | hash_set in the function rather than expecting caller to do that. | |
87 | Pass NULL instead of d->ppset to walk_tree_1. | |
88 | (c_omp_check_nonrect_loop_iv): New function. | |
89 | (c_omp_check_loop_iv): Use it. Fill in new members, allow | |
90 | non-rectangular loop forms, diagnose multiple associated loops with | |
91 | the same iterator. Pass NULL instead of &pset to walk_tree_1. | |
92 | (c_omp_check_loop_iv_exprs): Likewise. | |
93 | ||
ec6ffbb9 GA |
94 | 2020-06-10 Martin Liska <mliska@suse.cz> |
95 | ||
96 | PR tree-optimization/92860 | |
97 | * c-attribs.c (handle_optimize_attribute): | |
98 | Save global options and compare it after parsing of function | |
99 | attribute. | |
100 | * c-pragma.c (opt_stack::saved_global_options): New field. | |
101 | (handle_pragma_push_options): Save global_options. | |
102 | (handle_pragma_pop_options): Compare them after pop. | |
103 | ||
b952c2cf GA |
104 | 2020-06-09 Jakub Jelinek <jakub@redhat.com> |
105 | ||
106 | PR c/95580 | |
107 | * c-pretty-print.c (c_pretty_printer::unary_expression): Handle the | |
108 | case when MEM_REF's first argument has type pointer to incomplete type. | |
109 | ||
1a59f3db GA |
110 | 2020-06-05 Jason Merrill <jason@redhat.com> |
111 | ||
112 | * c-pretty-print.c (pp_c_additive_expression): Handle negative | |
113 | operand to POINTER_PLUS_EXPR. | |
114 | ||
3add3425 GA |
115 | 2020-06-04 Martin Sebor <msebor@redhat.com> |
116 | ||
117 | PR middle-end/10138 | |
118 | PR middle-end/95136 | |
119 | * c-attribs.c (append_access_attrs): Handle attr_access::none. | |
120 | (handle_access_attribute): Same. | |
121 | ||
9a5b7438 GA |
122 | 2020-06-03 Mark Wielaard <mark@klomp.org> |
123 | ||
124 | * known-headers.cc (get_cp_stdlib_header_for_string_macro_name): | |
125 | New function. | |
126 | * known-headers.h (get_cp_stdlib_header_for_string_macro_name): | |
127 | New function declaration. | |
128 | ||
129 | 2020-06-03 Mark Wielaard <mark@klomp.org> | |
130 | ||
131 | * known-headers.cc (get_string_macro_hint): New function. | |
132 | (get_stdlib_header_for_name): Use get_string_macro_hint. | |
133 | (get_c_stdlib_header_for_string_macro_name): New function. | |
134 | * known-headers.h (get_c_stdlib_header_for_string_macro_name): | |
135 | New function declaration. | |
136 | ||
137 | 2020-06-03 Tobias Burnus <tobias@codesourcery.com> | |
138 | ||
139 | * c-common.h (c_omp_predetermined_mapping): Declare. | |
140 | * c-omp.c (c_omp_predetermined_mapping): New. | |
141 | ||
af114c38 MW |
142 | 2020-05-22 Mark Wielaard <mark@klomp.org> |
143 | ||
144 | * known-headers.cc (get_stdlib_header_for_name): Add a new | |
145 | stdlib_hint array for stdbool and stdint. | |
146 | ||
45c50b6a MW |
147 | 2020-05-22 Mark Wielaard <mark@klomp.org> |
148 | ||
149 | * known-headers.cc (get_stdlib_header_for_name): Return | |
150 | "<stdbool.h>" for "bool", "true" or "false" when STDLIB_C and | |
151 | flag_isoc99. | |
152 | ||
c22027a0 NS |
153 | 2020-05-20 Nathan Sidwell <nathan@acm.org> |
154 | ||
38a4db21 NS |
155 | * c-common.c (try_to_locate_new_include_insertion_point): Revert change. |
156 | ||
c22027a0 NS |
157 | * c-common.c (try_to_locate_new_include_insertion_point): Use |
158 | strcmp to compare filenames. | |
159 | * c-lex.c (init_c_lex): Move declaration to initialization. | |
160 | * c-opts.c (handle_deferred_opts): Move cpp_get_deps call into | |
161 | deferred count loop. | |
162 | ||
29f0e90d JM |
163 | 2020-05-15 Jason Merrill <jason@redhat.com> |
164 | ||
165 | * c-opts.c (set_std_cxx20): Set flag_coroutines. | |
166 | ||
b04445d4 JM |
167 | 2020-05-13 Jason Merrill <jason@redhat.com> |
168 | ||
169 | * c.opt (std=c++20): Make c++2a the alias. | |
170 | (std=gnu++20): Likewise. | |
171 | * c-common.h (cxx_dialect): Change cxx2a to cxx20. | |
172 | * c-opts.c: Adjust. | |
173 | * c-cppbuiltin.c: Adjust. | |
174 | * c-ubsan.c: Adjust. | |
175 | * c-warn.c: Adjust. | |
176 | ||
11dd3be5 EB |
177 | 2020-05-12 Eric Botcazou <ebotcazou@adacore.com> |
178 | ||
179 | * c-ada-spec.c (dump_ads): Output pragma Warnings ("U"); on entry. | |
180 | ||
b224c376 NS |
181 | 2020-05-08 Nathan Sidwell <nathan@acm.org> |
182 | ||
183 | Reimplement directives only processing. | |
184 | * c-ppoutput.c (token_streamer): Ne. | |
185 | (directives_only_cb): New. Swallow ... | |
186 | (print_lines_directives_only): ... this. | |
187 | (scan_translation_unit_directives_only): Reimplment using the | |
188 | published interface. | |
189 | ||
f1d94677 MP |
190 | 2020-05-07 Marek Polacek <polacek@redhat.com> |
191 | ||
192 | * c-format.c (badwords): Add "nonstatic". | |
193 | ||
9b95bb52 JJ |
194 | 202-05-07 Jakub Jelinek <jakub@redhat.com> |
195 | ||
196 | PR c/94968 | |
197 | * c-common.c (speculation_safe_value_resolve_params): Return false if | |
198 | error_operand_p (val2). | |
199 | (resolve_overloaded_builtin) <case BUILT_IN_SPECULATION_SAFE_VALUE_N>: | |
200 | Remove extraneous semicolon. | |
201 | ||
530b4409 | 202 | 2020-05-06 qing zhao <qing.zhao@oracle.com> |
203 | ||
204 | PR c/94230 | |
205 | * c-indentation.c (get_visual_column): Add a hint to use the new | |
206 | -flarge-source-files option. | |
207 | ||
b776bdca SSF |
208 | 2020-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com> |
209 | ||
210 | * c-attribs.c (handle_vector_size_attribute): Add attribute | |
211 | nonnull for argument args in order to silence warning of | |
212 | uninitialized variable usage. Since this is local to the | |
213 | compilation unit and thus cannot be checked at call sides by the | |
214 | compiler, added an assert statement in order to verify this. | |
215 | ||
6607bdd9 L |
216 | 2020-05-01 H.J. Lu <hongjiu.lu@intel.com> |
217 | ||
218 | PR target/93492 | |
219 | * c-attribs.c (handle_patchable_function_entry_attribute): Limit | |
220 | value to USHRT_MAX (65535). | |
221 | ||
691eeb65 JJ |
222 | 2020-04-29 Jakub Jelinek <jakub@redhat.com> |
223 | ||
224 | * c-format.c (PP_FORMAT_CHAR_TABLE): Add %{ and %}. | |
225 | ||
26d76be7 JJ |
226 | 2020-04-27 Jakub Jelinek <jakub@redhat.com> |
227 | ||
228 | PR c/94755 | |
229 | * c-common.c (resolve_overloaded_builtin): Return error_mark_node for | |
230 | fncode == BUILT_IN_NONE before initialization of first_param. | |
231 | ||
7291b2ed MP |
232 | 2020-04-23 Marek Polacek <polacek@redhat.com> |
233 | ||
234 | PR c++/94733 | |
235 | * c-attribs.c (find_tm_attribute): Use get_attribute_name instead of | |
236 | TREE_PURPOSE. | |
237 | ||
58a29af8 PP |
238 | 2020-04-14 Patrick Palka <ppalka@redhat.com> |
239 | ||
240 | PR c++/85278 | |
241 | * c-pretty-print.c (pp_c_pointer) <case REFERENCE_TYPE>: Print a double | |
242 | ampersand if it's an rvalue reference type. | |
243 | ||
09f04139 MS |
244 | 2020-04-13 Martin Sebor <msebor@redhat.com> |
245 | ||
246 | PR c/92326 | |
247 | * c-pretty-print.c (c_pretty_printer::direct_abstract_declarator): Avoid | |
248 | printing array bound for flexible array members. | |
249 | ||
ee26baf4 IS |
250 | 2020-04-13 Iain Sandoe <iain@sandoe.co.uk> |
251 | ||
252 | * c-cppbuiltin.c (c_cpp_builtins): Update coroutines builtin | |
253 | define, per n4861. | |
254 | ||
75efe9cb RB |
255 | 2020-04-02 Richard Biener <rguenther@suse.de> |
256 | ||
257 | PR c/94392 | |
258 | * c-opts.c (c_common_post_options): Enable -ffinite-loops | |
259 | for -O2 and C++11 or newer. | |
260 | ||
75defde9 PP |
261 | 2020-03-28 Patrick Palka <ppalka@redhat.com> |
262 | ||
263 | * c.opt: Add -fconcepts-diagnostics-depth. | |
264 | ||
52f24a9e MS |
265 | 2020-03-27 Martin Sebor <msebor@redhat.com> |
266 | ||
267 | PR c++/94346 | |
268 | * c-attribs.c (handle_copy_attribute): Avoid passing expressions | |
269 | to decl_attributes. Make handling of different kinds of entities | |
270 | more robust. | |
271 | ||
ccacf77b MS |
272 | 2020-03-27 Martin Sebor <msebor@redhat.com> |
273 | ||
274 | PR c++/94098 | |
275 | * c-attribs.c (handle_access_attribute): Avoid setting TYPE_ATTRIBUTES | |
276 | here. | |
277 | ||
ca6c7225 JJ |
278 | 2020-03-23 Jakub Jelinek <jakub@redhat.com> |
279 | ||
280 | PR c++/91993 | |
281 | * c-warn.c (warnings_for_convert_and_check): For expr and/or | |
282 | result being COMPOUND_EXPRs, skip to ultimate rhs. | |
283 | ||
1aa22b19 RS |
284 | 2020-03-20 Richard Sandiford <richard.sandiford@arm.com> |
285 | ||
286 | PR middle-end/94072 | |
287 | * c-common.c (c_common_type_for_mode): Before using a registered | |
288 | built-in type, check that the vectorness of the type matches | |
289 | the vectorness of the mode. | |
290 | ||
700d4cb0 JJ |
291 | 2020-03-17 Jakub Jelinek <jakub@redhat.com> |
292 | ||
293 | * c-common.c (resolve_overloaded_builtin): Fix up duplicated word | |
294 | issue in a diagnostic message. | |
295 | ||
b408e010 LH |
296 | 2020-03-15 Lewis Hyatt <lhyatt@gmail.com> |
297 | ||
298 | * c.opt: Avoid redundancy in the help text. | |
299 | ||
e78e50d5 MP |
300 | 2020-03-02 Marek Polacek <polacek@redhat.com> |
301 | ||
302 | PR c++/93958 - add missing -std=gnu++20. | |
303 | * c.opt: Add -std=gnu++20. | |
304 | ||
649e1741 MS |
305 | 2020-03-01 Martin Sebor <msebor@redhat.com> |
306 | ||
307 | PR c++/92721 | |
308 | * c-attribs.c (append_access_attrs): Correctly handle attribute. | |
309 | (handle_access_attribute): Same. | |
310 | ||
7b60f3ba JJ |
311 | 2020-02-25 Jakub Jelinek <jakub@redhat.com> |
312 | ||
313 | PR c/93858 | |
314 | * c-pragma.c (handle_pragma_diagnostic): Add missing ? after | |
315 | "did you mean" hint in diagnostics. | |
316 | ||
fb260504 JM |
317 | 2020-02-15 Jason Merrill <jason@redhat.com> |
318 | ||
319 | * c.opt: Add -std=c++20. | |
320 | ||
1d757b09 EB |
321 | 2020-02-14 Eric Botcazou <ebotcazou@adacore.com> |
322 | ||
323 | * c-ada-spec.c: Include bitmap.h. | |
324 | (dump_ada_double_name): Rename into... | |
325 | (dump_anonymous_type_name): ...this. Always use the TYPE_UID. | |
326 | (dump_ada_array_type): Adjust to above renaming. Robustify. | |
327 | (dump_nested_types_1): New function copied from... Add dumped_types | |
328 | parameter and pass it down to dump_nested_type. | |
329 | (dump_nested_types): ...this. Remove parent parameter. Just call | |
330 | dump_nested_types_1 on an automatic bitmap. | |
331 | (dump_nested_type): Add dumped_types parameter. | |
332 | <ARRAY_TYPE>: Do not dump it if already present in dumped_types. | |
333 | Adjust recursive calls and adjust to above renaming. | |
334 | (dump_ada_declaration): Adjust call to dump_nested_types. | |
335 | Tidy up and adjust to above renaming. | |
336 | (dump_ada_specs): Initialize and release bitmap obstack. | |
337 | ||
0cc575e4 MS |
338 | 2020-02-10 Martin Sebor <msebor@redhat.com> |
339 | ||
340 | PR c/93640 | |
341 | * c-attribs.c (handle_access_attribute): Correct off-by-one mistakes. | |
342 | ||
a59aa302 JJ |
343 | 2020-02-10 Jakub Jelinek <jakub@redhat.com> |
344 | ||
345 | PR other/93641 | |
346 | * c-format.c (check_plain): Fix up last argument of strncasecmp. | |
347 | Remove useless extra test. | |
348 | ||
e464fc90 TB |
349 | 2020-02-03 Julian Brown <julian@codesourcery.com> |
350 | Tobias Burnus <tobias@codesourcery.com> | |
351 | ||
352 | * c-cppbuiltin.c (c_cpp_builtins): Update _OPENACC define to 201711. | |
353 | ||
e3b6c052 JM |
354 | 2020-01-29 Jason Merrill <jason@redhat.com> |
355 | ||
356 | PR c++/89357 | |
357 | * c-attribs.c (check_cxx_fundamental_alignment_constraints): Remove. | |
358 | ||
6d00f052 JM |
359 | 2020-01-23 Jason Merrill <jason@redhat.com> |
360 | ||
361 | * c-warn.c (conversion_warning): Change -Wsign-conversion handling. | |
362 | ||
8a990ffa MS |
363 | 2020-01-23 Martin Sebor <msebor@redhat.com> |
364 | ||
365 | PR c/84919 | |
366 | * c-common.c (check_function_arguments): Avoid overlap checking | |
367 | of sprintf functions. | |
368 | ||
55b7df8b JM |
369 | 2020-01-22 Jason Merrill <jason@redhat.com> |
370 | ||
371 | PR testsuite/93391 - PR 40752 test fails with unsigned plain char. | |
372 | PR c++/40752 | |
373 | * c-warn.c (conversion_warning): Check operands only after checking | |
374 | the whole expression. Don't check second operand of + for sign. | |
375 | ||
c77074d0 JM |
376 | 2020-01-21 Jason Merrill <jason@redhat.com> |
377 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
378 | ||
379 | PR c++/40752 - useless -Wconversion with short +=. | |
380 | * c.opt (-Warith-conversion): New. | |
381 | * c-warn.c (conversion_warning): Recurse for operands of | |
382 | operators. Only warn about the whole expression with | |
383 | -Warith-conversion. | |
384 | ||
731dbfc3 JM |
385 | 2020-01-21 Jason Merrill <jason@redhat.com> |
386 | ||
387 | * c-common.c (unsafe_conversion_p): Don't warn, return UNSAFE_SIGN. | |
388 | * c-warn.c (conversion_warning): Warn about UNSAFE_SIGN. | |
389 | ||
ad1a3914 NS |
390 | 2020-01-20 Nathan Sidwell <nathan@acm.org> |
391 | ||
392 | PR preprocessor/80005 | |
393 | * c-cppbuiltins.c (c_cpp_builtins): Don't define __has_include{,_next}. | |
394 | ||
49789fd0 IS |
395 | 2020-01-18 Iain Sandoe <iain@sandoe.co.uk> |
396 | ||
397 | * c-common.c (co_await, co_yield, co_return): New. | |
398 | * c-common.h (RID_CO_AWAIT, RID_CO_YIELD, | |
399 | RID_CO_RETURN): New enumeration values. | |
400 | (D_CXX_COROUTINES): Bit to identify coroutines are active. | |
401 | (D_CXX_COROUTINES_FLAGS): Guard for coroutine keywords. | |
402 | * c-cppbuiltin.c (__cpp_coroutines): New cpp define. | |
403 | * c.opt (fcoroutines): New command-line switch. | |
404 | ||
4bc1899b DM |
405 | 2020-01-10 David Malcolm <dmalcolm@redhat.com> |
406 | ||
407 | * c-format.c (local_event_ptr_node): New. | |
408 | (PP_FORMAT_CHAR_TABLE): Add entry for "%@". | |
409 | (init_dynamic_diag_info): Initialize local_event_ptr_node. | |
410 | * c-format.h (T_EVENT_PTR): New define. | |
411 | ||
f25e33fa MS |
412 | 2020-01-10 Martin Sebor <msebor@redhat.com> |
413 | ||
414 | PR c/93132 | |
415 | * c-attribs.c (append_access_attrs): Validate against the translated | |
416 | access string rather than the human-readable representation. | |
417 | ||
8d9254fc JJ |
418 | 2020-01-01 Jakub Jelinek <jakub@redhat.com> |
419 | ||
420 | Update copyright years. | |
421 | ||
39292e25 EB |
422 | 2019-12-20 Eric Botcazou <ebotcazou@adacore.com> |
423 | ||
424 | * c-ada-spec.h (decl_sloc): Delete. | |
425 | * c-ada-spec.c (decl_sloc): Make static. | |
426 | ||
519d7496 JB |
427 | 2019-12-19 Julian Brown <julian@codesourcery.com> |
428 | ||
429 | * c-common.h (c_omp_map_clause_name): Add prototype. | |
430 | * c-omp.c (c_omp_map_clause_name): New function. | |
431 | * c-pragma.h (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ATTACH and | |
432 | PRAGMA_OACC_CLAUSE_DETACH. | |
433 | ||
a6163563 JB |
434 | 2019-12-19 Julian Brown <julian@codesourcery.com> |
435 | Maciej W. Rozycki <macro@codesourcery.com> | |
436 | Tobias Burnus <tobias@codesourcery.com> | |
437 | Thomas Schwinge <thomas@codesourcery.com> | |
438 | ||
439 | * c-pragma.h (pragma_omp_clause): Add | |
440 | PRAGMA_OACC_CLAUSE_NO_CREATE. | |
441 | ||
e8f1ade2 MS |
442 | 2019-12-17 Martin Sebor <msebor@redhat.com> |
443 | ||
444 | PR c++/61339 | |
445 | * c.opt (-Wmismatched-tags, -Wredundant-tags): New options. | |
446 | ||
368877a1 DM |
447 | 2019-12-11 David Malcolm <dmalcolm@redhat.com> |
448 | ||
449 | * c-pretty-print.c (c_pretty_printer::clone): New vfunc | |
450 | implementation. | |
451 | * c-pretty-print.h (c_pretty_printer::clone): New vfunc decl. | |
452 | ||
d68f5d45 DM |
453 | 2019-12-09 David Malcolm <dmalcolm@redhat.com> |
454 | ||
455 | * c-format.c (range_label_for_format_type_mismatch::get_text): | |
456 | Replace label_text ctor called with true with label_text::take. | |
457 | ||
d3e28653 DM |
458 | 2019-12-09 David Malcolm <dmalcolm@redhat.com> |
459 | ||
460 | * c-format.c (selftest::test_type_mismatch_range_labels): Remove | |
461 | initial newline from expected outputs. | |
462 | * c-opts.c (c_diagnostic_finalizer): Add pp_newline call before | |
463 | call to diagnostic_show_locus. | |
464 | ||
abd6d8cc JJ |
465 | 2019-12-06 Jakub Jelinek <jakub@redhat.com> |
466 | ||
467 | * c-cppbuiltin.c (c_cpp_builtins): Don't define __cpp_consteval for | |
468 | now. | |
469 | ||
7906797e MP |
470 | 2019-12-05 Marek Polacek <polacek@redhat.com> |
471 | Jakub Jelinek <jakub@redhat.com> | |
472 | ||
473 | PR c++/91353 - P1331R2: Allow trivial default init in constexpr contexts. | |
474 | * c-cppbuiltin.c (c_cpp_builtins): Adjust the value of __cpp_constexpr. | |
475 | ||
5c04da88 MP |
476 | 2019-12-05 Marek Polacek <polacek@redhat.com> |
477 | ||
478 | PR c++/92271 - make __is_same alias for __is_same_as. | |
479 | * c-common.c: Add __is_same, an alias for __is_same_as. | |
480 | ||
43aae289 MP |
481 | 2019-12-03 Marek Polacek <polacek@redhat.com> |
482 | ||
483 | PR c++/91363 - P0960R3: Parenthesized initialization of aggregates. | |
484 | * c-cppbuiltin.c (c_cpp_builtins): Predefine | |
485 | __cpp_aggregate_paren_init=201902 for -std=c++2a. | |
486 | ||
d7ddfbcb JH |
487 | 2019-11-30 Jan Hubicka <hubicka@ucw.cz> |
488 | ||
489 | * c-attribs.c (handle_symver_attribute): New function | |
490 | (c_common_attributes): Add symver. | |
491 | ||
65ef05d0 RS |
492 | 2019-11-30 Richard Sandiford <richard.sandiford@arm.com> |
493 | ||
494 | * c-common.c (pointer_int_sum): Use verify_type_context to check | |
495 | whether the target allows pointer arithmetic for the types involved. | |
496 | (c_sizeof_or_alignof_type, c_alignof_expr): Use verify_type_context | |
497 | to check whether the target allows sizeof and alignof operations | |
498 | for the types involved. | |
499 | ||
1a291106 JM |
500 | 2019-11-27 Jason Merrill <jason@redhat.com> |
501 | ||
502 | * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides. | |
503 | ||
05d6cb1a JJ |
504 | 2019-11-26 Jakub Jelinek <jakub@redhat.com> |
505 | ||
506 | PR c++/61414 | |
507 | * c-attribs.c (handle_mode_attribute): Add mode attribute to | |
508 | ENUMERAL_TYPEs. | |
509 | ||
5b8d9367 JM |
510 | 2019-11-25 Joseph Myers <joseph@codesourcery.com> |
511 | ||
512 | PR c/91985 | |
513 | * c-common.c (c_common_type_for_mode): Handle decimal | |
514 | floating-point types being NULL_TREE. | |
515 | * c-format.c (get_format_for_type_1): Handle specified types being | |
516 | NULL_TREE. | |
517 | * c-lex.c (interpret_float): Give an error for decimal | |
518 | floating-point constants when decimal floating-point not | |
519 | supported. | |
520 | ||
1fbf51cb JJ |
521 | 2019-11-23 Jakub Jelinek <jakub@redhat.com> |
522 | ||
523 | PR middle-end/83859 | |
524 | * c-attribs.c (append_access_attrs): Avoid buffer overflow. Avoid | |
525 | memory leak. Use XNEWVEC macro. Use auto_diagnostic_group to | |
526 | group warning with inform together. | |
527 | (handle_access_attribute): Formatting fix. | |
528 | ||
761df906 JJ |
529 | 2019-11-22 Jakub Jelinek <jakub@redhat.com> |
530 | ||
bdaf8be1 JJ |
531 | PR c/90677 |
532 | * c-common.h (identifier_global_tag): Declare. | |
533 | * c-format.c (get_pointer_to_named_type): Renamed to ... | |
534 | (get_named_type): ... this. Use identifier_global_tag instead of | |
535 | identifier_global_value, handle the return value being a TYPE_P. | |
536 | (init_dynamic_diag_info): Adjust get_pointer_to_named_type callers | |
537 | to call get_named_type instead. Formatting fixes. | |
538 | ||
c2ecce6d | 539 | Implement P1902R1, Missing feature-test macros 2017-2019. |
761df906 JJ |
540 | * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_init_captures |
541 | and __cpp_generic_lambdas for -std=c++2a. Define | |
542 | __cpp_designated_initializers, __cpp_constexpr_in_decltype and | |
543 | __cpp_consteval for -std=c++2a. Remove a FIXME comment about | |
544 | __cpp_concepts for -std=c++2a. | |
545 | ||
54aa6b58 MS |
546 | 2019-11-22 Martin Sebor <msebor@redhat.com> |
547 | ||
548 | PR middle-end/83859 | |
549 | * c-attribs.c (handle_access_attribute): New function. | |
550 | (c_common_attribute_table): Add new attribute. | |
551 | (get_argument_type): New function. | |
552 | (append_access_attrs): New function. | |
553 | (get_nonnull_operand): Rename... | |
554 | (get_attribute_operand): ...to this. | |
555 | * c-common.c (get_nonnull_operand): Rename... | |
556 | (get_attribute_operand): ...to this. | |
557 | ||
6c80b1b5 JM |
558 | 2019-11-21 Joseph Myers <joseph@codesourcery.com> |
559 | ||
560 | * c-attribs.c (handle_fallthrough_attribute): Use pedwarn instead | |
561 | of warning. | |
562 | ||
192961ff JM |
563 | 2019-11-19 Joseph Myers <joseph@codesourcery.com> |
564 | ||
565 | * c-common.c (attribute_fallthrough_p): In C, use pedwarn not | |
566 | warning for standard attributes mixed with fallthrough attributes. | |
567 | ||
f8aea5e3 JM |
568 | 2019-11-15 Joseph Myers <joseph@codesourcery.com> |
569 | ||
570 | * c-attribs.c (handle_fallthrough_attribute): Remove static. | |
571 | * c-common.h (handle_fallthrough_attribute): Declare. | |
572 | ||
2cc94aa8 JM |
573 | 2019-11-15 Joseph Myers <joseph@codesourcery.com> |
574 | ||
575 | * c-attribs.c (handle_deprecated_attribute): Remove static. | |
576 | * c-common.h (handle_deprecated_attribute): Declare. | |
577 | ||
7c5890cc JM |
578 | 2019-11-14 Joseph Myers <joseph@codesourcery.com> |
579 | ||
580 | * c-lex.c (lex_charconst): Make CPP_UTF8CHAR constants unsigned | |
581 | char for C. | |
582 | ||
b2417b59 JJ |
583 | 2019-11-14 Jakub Jelinek <jakub@redhat.com> |
584 | ||
d0ec7c93 JJ |
585 | * c-omp.c (c_omp_check_context_selector): Add nvidia to the list of |
586 | valid vendors. | |
587 | ||
b2417b59 JJ |
588 | * c-omp.c (c_omp_check_context_selector): Handle name lists |
589 | containing string literals. Don't diagnose atomic_default_mem_order | |
590 | with multiple props. | |
591 | ||
00be2a5f JM |
592 | 2019-11-13 Joseph Myers <joseph@codesourcery.com> |
593 | ||
594 | * c-cppbuiltin.c (builtin_define_float_constants): Also define | |
595 | NORM_MAX constants. Update call to get_max_float. | |
596 | (LAZY_HEX_FP_VALUES_CNT): Update value to include NORM_MAX | |
597 | constants. | |
598 | ||
2dbad62d EB |
599 | 2019-11-13 Eric Botcazou <ebotcazou@adacore.com> |
600 | ||
601 | * c-ada-spec.c (get_underlying_decl): Do not look through typedefs. | |
602 | (dump_forward_type): Do not generate a declaration for function types. | |
603 | (dump_nested_type) <ARRAY_TYPE>: Do not generate a nested declaration | |
604 | of the component type if it is declared in another file. | |
605 | ||
6ed76044 ML |
606 | 2019-11-12 Martin Liska <mliska@suse.cz> |
607 | ||
608 | * c-opts.c (c_common_post_options): | |
609 | Use SET_OPTION_IF_UNSET. | |
610 | ||
62aee289 MR |
611 | 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com> |
612 | Frederik Harwath <frederik@codesourcery.com> | |
613 | ||
614 | gcc/c-family/ | |
615 | * c-pragma.h (pragma_kind): Add PRAGMA_OACC_SERIAL enumeration | |
616 | constant. | |
617 | * c-pragma.c (oacc_pragmas): Add "serial" entry. | |
618 | ||
f486280c RS |
619 | 2019-11-08 Richard Sandiford <richard.sandiford@arm.com> |
620 | ||
621 | * c-common.h (gnu_vector_type_p): New function. | |
622 | * c-common.c (c_build_vec_perm_expr): Require __builtin_shuffle | |
623 | vectors to satisfy gnu_vector_type_p. | |
624 | (c_build_vec_convert): Likewise __builtin_convertvector. | |
625 | (convert_vector_to_array_for_subscript): Likewise when applying | |
626 | implicit vector to array conversion. | |
627 | (scalar_to_vector): Likewise when converting vector-scalar | |
628 | operations to vector-vector operations. | |
629 | ||
017c6491 JM |
630 | 2019-11-08 Joseph Myers <joseph@codesourcery.com> |
631 | ||
632 | * c.opt (Wold-style-definition): Initialize to -1. | |
633 | * c-opts.c (c_common_post_options): Set warn_old_style_definition | |
634 | to flag_isoc2x if not set explicitly. | |
635 | ||
c01bd174 JM |
636 | 2019-11-07 Joseph Myers <joseph@codesourcery.com> |
637 | ||
638 | * c-attribs.c (parse_tm_stmt_attr): Handle scoped attributes. | |
639 | ||
0df65305 JM |
640 | 2019-11-05 Jason Merrill <jason@redhat.com> |
641 | ||
642 | * c-opts.c (c_common_post_options): -fconcepts-ts implies | |
643 | -fconcepts. | |
644 | ||
e0c866dd KK |
645 | 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com> |
646 | ||
647 | * c-opts.c (c_common_post_options): Update | |
648 | latest_abi_version. | |
649 | ||
f968ef9b JJ |
650 | 2019-11-02 Jakub Jelinek <jakub@redhat.com> |
651 | ||
d0c464d2 JJ |
652 | * c-common.h (c_omp_get_context_selector): Remove. |
653 | * c-omp.c (c_omp_get_context_selector): Moved to omp-general.c | |
654 | and renamed to omp_get_context_selector. | |
655 | ||
917dd789 JJ |
656 | * c-omp.c (c_omp_mark_declare_variant): Use |
657 | omp_context_selector_set_compare. | |
658 | ||
f968ef9b JJ |
659 | PR c++/88335 - Implement P1073R3: Immediate functions |
660 | * c-common.h (enum rid): Add RID_CONSTEVAL. | |
661 | * c-common.c (c_common_reswords): Add consteval. | |
662 | ||
5f6705b7 JJ |
663 | 2019-11-01 Martin Sebor <msebor@redhat.com> |
664 | ||
665 | PR middle-end/91679 | |
666 | PR middle-end/91647 | |
667 | PR middle-end/91463 | |
668 | PR middle-end/92312 | |
669 | * c-pretty-print.c (direct_abstract_declarator): Print | |
670 | bound in zero-length arrays. | |
671 | * c.opt (-Wzero-length-bounds): New option. | |
672 | ||
43f1814c NS |
673 | 2019-10-30 Nathan Sidwell <nathan@acm.org> |
674 | ||
675 | * c-cppbuiltin.c (c_cpp_builtins): Add 'L' suffix to feature | |
676 | macros. | |
677 | ||
ad1539d5 MS |
678 | 2019-10-28 Martin Sebor <msebor@redhat.com> |
679 | ||
680 | PR c/66970 | |
681 | * c-common.c (c_common_nodes_and_builtins): Call c_define_builtins | |
682 | even when only preprocessing. | |
683 | * c-common.h (names_builtin_p): Declare new function. | |
684 | * c-lex.c (init_c_lex): Set has_builtin. | |
685 | (c_common_has_builtin): Define a new function. | |
686 | * c-ppoutput.c (init_pp_output): Set has_builtin. | |
687 | ||
135df52c JJ |
688 | 2019-10-24 Jakub Jelinek <jakub@redhat.com> |
689 | ||
690 | * c-common.h (c_omp_context_selector_matches): Remove. | |
691 | * c-omp.c (c_omp_context_selector_matches): Remove. | |
692 | * c-attribs.c (c_common_attribute_table): Add | |
693 | "omp declare target {host,nohost,block}" attributes. | |
694 | ||
8ad0c477 JM |
695 | 2019-10-17 JeanHeyd Meneide <phdofthehouse@gmail.com> |
696 | ||
697 | * c-lex.c (c_common_has_attribute): Update nodiscard value. | |
698 | ||
56898e43 RS |
699 | 2019-10-14 Richard Sandiford <richard.sandiford@arm.com> |
700 | ||
701 | * c-common.h (user_facing_original_type_p): Declare. | |
702 | * c-common.c: Include c-spellcheck.h. | |
703 | (user_facing_original_type_p): New function. | |
704 | ||
20de9568 JJ |
705 | 2019-10-12 Jakub Jelinek <jakub@redhat.com> |
706 | ||
707 | * c-common.h (c_omp_mark_declare_variant, | |
708 | c_omp_context_selector_matches): Declare. | |
709 | * c-omp.c: Include attribs.h, gimplify.h, cgraph.h, symbol-summary.h | |
710 | and hsa-common.h. | |
711 | (c_omp_get_context_selector): Support second argument NULL. | |
712 | (c_omp_mark_declare_variant, c_omp_context_selector_matches): New | |
713 | functions. | |
714 | * c-attribs.c (c_common_attribute_table): Remove "omp declare variant" | |
715 | attribute, add "omp declare variant base" and | |
716 | "omp declare variant variant" attributes. | |
717 | ||
175a85b2 JM |
718 | 2019-10-11 Joseph Myers <joseph@codesourcery.com> |
719 | ||
720 | * c.opt (Wc11-c2x-compat): Add CPP(cpp_warn_c11_c2x_compat) | |
721 | CppReason(CPP_W_C11_C2X_COMPAT). | |
722 | ||
fe2bc27c JM |
723 | 2019-10-11 Joseph Myers <joseph@codesourcery.com> |
724 | ||
725 | * c-common.c (c_common_reswords): Do not use D_EXT for _Decimal32, | |
726 | _Decimal64 and _Decimal128. | |
727 | ||
27dfdc0f JM |
728 | 2019-10-10 Joseph Myers <joseph@codesourcery.com> |
729 | ||
730 | * c-cppbuiltin.c (c_cpp_builtins): Do not define macros for DFP | |
731 | types if DFP not supported. | |
732 | ||
94e7f906 JJ |
733 | 2019-10-10 Jakub Jelinek <jakub@redhat.com> |
734 | ||
735 | * c-common.h (c_omp_check_context_selector, | |
736 | c_omp_get_context_selector): Declare. | |
737 | * c-omp.c (c_omp_declare_simd_clauses_to_numbers): Fix spelling | |
738 | in diagnostic message. | |
739 | (c_omp_check_context_selector, c_omp_get_context_selector): New | |
740 | functions. | |
741 | * c-attribs.c (c_common_attribute_table): Add "omp declare variant" | |
742 | attribute. | |
743 | (handle_omp_declare_variant_attribute): New function. | |
744 | ||
a7160771 MS |
745 | 2019-10-09 Martin Sebor <msebor@redhat.com> |
746 | ||
747 | PR tree-optimization/90879 | |
748 | * c.opt (-Wstring-compare): New option. | |
749 | ||
cb57504a JM |
750 | 2019-10-08 Andrew Sutton <asutton@lock3software.com> |
751 | Jason Merrill <jason@redhat.com> | |
752 | ||
753 | Update the concepts implementation to conform to the C++20 | |
754 | specification, improve compile times, and generally clean up | |
755 | the implementation. | |
756 | ||
757 | * c-cppbuiltin.c (c_cpp_builtins): Use new feature test values for | |
758 | concepts when -std=c++2a. Bump __cpp_concepts to 201907. | |
759 | * c.opt: Add -Wconcepts-ts. | |
760 | * c-opts.c (c_common_post_options): Warn when -fconcepts is used | |
761 | with -std=c++2a. Disable warning for -fconcepts in C++20 mode. | |
762 | (set_std_cxx2a): Enable concepts by default. | |
763 | ||
fbb2a6dc JM |
764 | 2019-10-08 Joseph Myers <joseph@codesourcery.com> |
765 | ||
766 | * c-opts.c (c_common_post_options): Set | |
767 | -fno-fp-int-builtin-inexact for C2X. | |
768 | ||
8e007055 JJ |
769 | 2019-10-05 Jakub Jelinek <jakub@redhat.com> |
770 | ||
771 | PR c++/91369 - Implement P0784R7: constexpr new | |
772 | * c-cppbuiltin.c (c_cpp_builtins): Predefine | |
773 | __cpp_constexpr_dynamic_alloc=201907 for -std=c++2a. | |
774 | ||
843f104d JM |
775 | 2019-10-04 Joseph Myers <joseph@codesourcery.com> |
776 | ||
777 | PR c/82752 | |
778 | * c-format.c (C_STD_VER): Handle C2x. | |
779 | (C_STD_NAME): Likewise. | |
780 | (strftime_flag_specs): Add 'O' modifier with 'p' flag. | |
781 | (time_char_table): Use separate entry for 'B' and 'b', with 'O' | |
782 | modifier allowed and 'p' flag. | |
783 | * c-format.h (enum format_std_version): Add STD_C2X. | |
784 | (struct format_char_info): Mention 'p' in comment on flags2. | |
785 | ||
e9c9a142 DM |
786 | 2019-10-01 David Malcolm <dmalcolm@redhat.com> |
787 | ||
788 | * c-opts.c (c_diagnostic_finalizer): Temporarily clear prefix when | |
789 | calling diagnostic_show_locus, rather than destroying it afterwards. | |
790 | ||
7552c36a JJ |
791 | 2019-10-01 Jakub Jelinek <jakub@redhat.com> |
792 | ||
793 | PR c++/91925 | |
794 | * c-warn.c (check_alignment_of_packed_member): Ignore FIELD_DECLs | |
795 | with NULL DECL_FIELD_OFFSET. | |
796 | ||
8209db25 RS |
797 | 2019-10-01 Richard Sandiford <richard.sandiford@arm.com> |
798 | ||
799 | * c-pretty-print.c (pp_c_specifier_qualifier_list): If a vector type | |
800 | has a type name, use it in preference to the __vector syntax. | |
801 | ||
9343bf99 RS |
802 | 2019-09-30 Richard Sandiford <richard.sandiford@arm.com> |
803 | ||
804 | * c-pretty-print.c (pp_c_parameter_type_list): Avoid printing | |
805 | two spaces between a comma and "...". | |
806 | ||
59bc434a JJ |
807 | 2019-09-27 Jakub Jelinek <jakub@redhat.com> |
808 | ||
809 | PR c++/88203 | |
810 | * c-common.h (c_omp_predefined_variable): Declare. | |
811 | * c-omp.c (c_omp_predefined_variable): New function. | |
812 | (c_omp_predetermined_sharing): Return OMP_CLAUSE_DEFAULT_SHARED | |
813 | for predefined variables. | |
814 | ||
c6447c20 RS |
815 | 2019-09-27 Richard Sandiford <richard.sandiford@arm.com> |
816 | ||
817 | * c-common.h (build_function_call_vec): Take the original | |
818 | function decl as an optional final parameter. | |
819 | (check_builtin_function_arguments): Take the original function decl. | |
820 | * c-common.c (check_builtin_function_arguments): Likewise. | |
821 | Handle all built-in functions, not just BUILT_IN_NORMAL ones. | |
822 | Use targetm.check_builtin_call to check BUILT_IN_MD functions. | |
823 | ||
c4438114 JM |
824 | 2019-09-15 Jason Merrill <jason@redhat.com> |
825 | ||
826 | * c-warn.c (warn_logical_operator): Strip location wrappers. Don't | |
827 | fold_for_warn in "|| mask" warning. | |
828 | ||
68a57628 ML |
829 | 2019-09-10 Martin Liska <mliska@suse.cz> |
830 | ||
831 | * c.opt: Use newly added WarnRemoved. | |
832 | ||
f48ef52e ML |
833 | 2019-09-09 Martin Liska <mliska@suse.cz> |
834 | ||
835 | * c.opt: Update comment of removed | |
836 | options that are preserved only for backward | |
837 | compatibility. | |
838 | ||
67f6e649 ML |
839 | 2019-09-06 Martin Liska <mliska@suse.cz> |
840 | ||
841 | PR c++/91125 | |
842 | * c-common.c: Remove definition of flag_use_repository. | |
843 | * c-common.h: Likewise. | |
844 | * c-opts.c (c_common_handle_option): | |
845 | Do not handle OPT_frepo option. | |
846 | * c.opt: Mark the option with Deprecated. | |
847 | ||
db9d2274 MP |
848 | 2019-09-04 Marek Polacek <polacek@redhat.com> |
849 | ||
850 | * c.opt (fdeduce-init-list): Ignored. | |
851 | ||
68e2c199 PK |
852 | 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
853 | ||
854 | PR c/78736 | |
855 | * c.opt (Wenum-conversion): New option. | |
856 | ||
7a4418a5 JL |
857 | 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com> |
858 | ||
859 | * c-attribs.c (handle_section_attribute): Call the | |
860 | handle_generic_attribute target hook after performing target | |
861 | independent processing. | |
862 | (handle_noinit_attribute): Likewise. | |
863 | ||
5f76ab15 ILT |
864 | 2019-09-03 Ian Lance Taylor <iant@golang.org> |
865 | ||
866 | * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Always expand | |
867 | when using -fgo-dump-spec. | |
868 | ||
ae0d3f6a ML |
869 | 2019-09-02 Martin Liska <mliska@suse.cz> |
870 | ||
871 | PR c++/91155 | |
872 | * c-common.c (fname_as_string): Use cxx_printable_name for | |
873 | __PRETTY_FUNCTION__ same as was used before r265711. | |
874 | ||
8a902edb MP |
875 | 2019-08-28 Marek Polacek <polacek@redhat.com> |
876 | ||
877 | Implement P1152R4: Deprecating some uses of volatile. | |
878 | PR c++/91361 | |
879 | * c-opts.c (c_common_post_options): Enable -Wvolatile by | |
880 | default for C++2a, unless -Wno-deprecated. | |
881 | * c.opt (Wvolatile): New warning. | |
882 | ||
4742dbe7 MP |
883 | 2019-08-28 Marek Polacek <polacek@redhat.com> |
884 | ||
885 | PR c++/91360 - Implement C++20 P1143R2: constinit. | |
886 | * c-common.c (c_common_reswords): Add constinit and __constinit. | |
887 | (keyword_is_decl_specifier): Handle RID_CONSTINIT. | |
888 | * c-common.h (enum rid): Add RID_CONSTINIT, RID_FIRST_CXX20, and | |
889 | RID_LAST_CXX20. | |
890 | (D_CXX20): Define. | |
891 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_constinit. | |
892 | * c-format.c (cxx_keywords): Add "constinit". | |
893 | * c.opt (Wc++2a-compat, Wc++20-compat): New options. | |
894 | ||
6a074892 JJ |
895 | 2019-08-27 Jakub Jelinek <jakub@redhat.com> |
896 | ||
897 | PR c++/91415 | |
898 | * c-common.c (verify_tree): For LSHIFT_EXPR, RSHIFT_EXPR, | |
899 | COMPONENT_REF and ARRAY_REF in cxx_dialect >= cxx17 mode handle it | |
900 | like COMPOUND_EXPR rather than normal expression. | |
901 | ||
22f8849d IS |
902 | 2019-08-23 Iain Sandoe <iain@sandoe.co.uk> |
903 | ||
904 | PR pch/61250 | |
905 | * c-lex.c (c_lex_with_flags): Don't call | |
906 | c_common_no_more_pch () from here. | |
907 | ||
df375b03 JJ |
908 | 2019-08-23 Jakub Jelinek <jakub@redhat.com> |
909 | ||
910 | PR middle-end/91283 | |
911 | * c-common.c (c_ts18661_flt_eval_method): Use flag_excess_precision | |
912 | instead of flag_excess_precision_cmdline. | |
913 | * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): Likewise. | |
914 | * c-opts.c (c_common_post_options): Likewise. | |
915 | ||
14b7950f MS |
916 | 2019-08-22 Martin Sebor <msebor@redhat.com> |
917 | ||
918 | PR middle-end/91490 | |
919 | * c-common.c (braced_list_to_string): Add argument and overload. | |
920 | Handle flexible length arrays and unions. | |
921 | ||
8bb2ee59 EB |
922 | 2019-08-21 Eric Botcazou <ebotcazou@adacore.com> |
923 | ||
924 | * c-ada-spec.c (dump_ada_function_declaration): Be prepared for broken | |
925 | function declarations where arguments are missing. Rename variables. | |
926 | ||
21c1e205 RB |
927 | 2019-08-15 Richard Biener <rguenther@suse.de> |
928 | ||
929 | * c-common.c (c_stddef_cpp_builtins): When the GIMPLE FE is | |
930 | enabled, define __SIZETYPE__. | |
931 | ||
f0033821 CL |
932 | 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org> |
933 | ||
934 | * c-attribs.c (c_common_attribute_table): Add "noinit" entry. Add | |
935 | exclusion with "section" attribute. | |
936 | (attr_noinit_exclusions): New table. | |
937 | (handle_noinit_attribute): New function. | |
938 | ||
4d732405 RS |
939 | 2019-08-13 Richard Sandiford <richard.sandiford@arm.com> |
940 | ||
941 | PR middle-end/91421 | |
942 | * c-common.c (resolve_overloaded_builtin): Use | |
943 | copy_decl_built_in_function. | |
944 | ||
51ad8481 MS |
945 | 2019-08-13 Martin Sebor <msebor@redhat.com> |
946 | ||
947 | PR c/80619 | |
948 | * c-format.c (printf_length_specs): Set FMT_LEN_w for "w". | |
949 | (asm_fprintf_length_spec): Same. | |
950 | * c-format.h (format_lengths): Add FMT_LEN_w. | |
951 | ||
77eb117f JJ |
952 | 2019-08-10 Jakub Jelinek <jakub@redhat.com> |
953 | ||
954 | * c-pragma.h (enum pragma_omp_clause): Add | |
955 | PRAGMA_OMP_CLAUSE_DEVICE_TYPE. | |
956 | ||
398e3feb JJ |
957 | 2019-08-07 Jakub Jelinek <jakub@redhat.com> |
958 | ||
959 | * c-pragma.h (enum pragma_omp_clause): Add | |
960 | PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR. Set PRAGMA_OACC_CLAUSE_USE_DEVICE | |
961 | equal to PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR instead of being a separate | |
962 | enumeration value. | |
963 | ||
ab574db6 MP |
964 | 2019-08-05 Marek Polacek <polacek@redhat.com> |
965 | ||
966 | PR c++/91338 - Implement P1161R3: Deprecate a[b,c]. | |
967 | * c-opts.c (c_common_post_options): Enable -Wcomma-subscript by | |
968 | default for C++2a, unless -Wno-deprecated. | |
969 | * c.opt (Wcomma-subscript): New warning. | |
970 | ||
554a530f JJ |
971 | 2019-07-20 Jakub Jelinek <jakub@redhat.com> |
972 | ||
973 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_LOOP. | |
974 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_BIND. | |
975 | * c-pragma.c (omp_pragmas_simd): Add PRAGMA_OMP_LOOP entry. | |
976 | * c-common.h (enum c_omp_clause_split): Add C_OMP_CLAUSE_SPLIT_LOOP. | |
977 | * c-omp.c (c_omp_split_clauses): Add support for 4 new combined | |
978 | constructs with the loop construct. | |
979 | ||
1a888209 JJ |
980 | 2019-07-13 Jakub Jelinek <jakub@redhat.com> |
981 | ||
982 | PR c/91149 | |
983 | * c-omp.c (c_omp_split_clauses): Fix a pasto in | |
984 | OMP_CLAUSE_REDUCTION_TASK handling. | |
985 | ||
1fdd6f04 JJ |
986 | 2019-07-12 Jakub Jelinek <jakub@redhat.com> |
987 | ||
988 | * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ORDER. | |
989 | * c-omp.c (c_omp_split_clauses): Handle splitting of OMP_CLAUSE_ORDER. | |
990 | ||
99b1c316 MS |
991 | 2019-07-09 Martin Sebor <msebor@redhat.com> |
992 | ||
993 | PR c++/61339 | |
1fdd6f04 | 994 | * c-opts.c (handle_deferred_opts): Change class-key of PODs to struct |
99b1c316 MS |
995 | and others to class. |
996 | * c-pretty-print.h: Same. | |
997 | ||
6c1dae73 MS |
998 | 2019-07-09 Martin Sebor <msebor@redhat.com> |
999 | ||
1000 | PR c++/61339 | |
1001 | * c-format.c (check_argument_type): Change class-key from class to | |
1002 | struct and vice versa to match convention and avoid -Wclass-is-pod | |
1003 | and -Wstruct-no-pod. | |
1004 | * c-pretty-print.h: Same. | |
1005 | ||
8ba6ea87 ML |
1006 | 2019-07-03 Martin Liska <mliska@suse.cz> |
1007 | ||
1008 | * c-common.c (try_to_locate_new_include_insertion_point): Remove | |
1009 | dead assignemts. | |
1010 | ||
83eb9522 JJ |
1011 | 2019-07-03 Jakub Jelinek <jakub@redhat.com> |
1012 | ||
1013 | * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_REDUCTION_INSCAN | |
1014 | clauses on OMP_FOR rather than OMP_PARALLEL when OMP_FOR is combined | |
1015 | with OMP_PARALLEL. | |
1016 | ||
1c6ffbab QZ |
1017 | 2019-07-02 qing zhao <qing.zhao@oracle.com> |
1018 | ||
1019 | PR preprocessor/90581 | |
1020 | * c-opts.c (c_common_handle_option): Handle -fmax-include-depth. | |
1021 | * c.opt: Add new option -fmax-include-depth. | |
1022 | ||
7ffc7de5 JM |
1023 | 2019-06-26 Jason Merrill <jason@redhat.com> |
1024 | ||
1025 | PR c++/55442 - memory-hog with highly recursive constexpr. | |
1026 | * c.opt (fconstexpr-loop-limit): New. | |
1027 | ||
361af3e4 JJ |
1028 | 2019-06-25 Jakub Jelinek <jakub@redhat.com> |
1029 | ||
1030 | PR sanitizer/90954 | |
1031 | * c-omp.c (c_finish_omp_atomic): Allow tree_invariant_p in addition | |
1032 | to SAVE_EXPR in first operand of a COMPOUND_EXPR. | |
1033 | ||
ab20d992 JJ |
1034 | 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com> |
1035 | ||
1036 | * c-common.c (c_common_nodes_and_builtins): Define | |
1037 | alternate "__intN__" name for "__intN" types. | |
1038 | ||
f4af4019 JH |
1039 | 2019-06-24 Jan Hubicka <jh@suse.cz> |
1040 | ||
1041 | * c-common.c (braced_lists_to_strings): Check that | |
1042 | type is array or integer prior checking string flag. | |
1043 | ||
da9e9b57 MB |
1044 | 2019-06-21 Matthew Beliveau <mbelivea@redhat.com> |
1045 | ||
1046 | PR c++/90875 - added -Wswitch-outside-range option | |
1047 | * c.opt (Wswitch-outside-range): Added new option. | |
1048 | * c-warn.c (c_do_switch_warnings): Use OPT_Wswitch-outside-range. | |
1049 | ||
3f3d6a6f MP |
1050 | 2019-06-21 Marek Polacek <polacek@redhat.com> |
1051 | ||
1052 | PR c++/90953 - ICE with -Wmissing-format-attribute. | |
1053 | * c-common.c (check_function_arguments_recurse): Use | |
1054 | get_attribute_name. | |
1055 | (check_missing_format_attribute): Likewise. | |
1056 | ||
1bf32c11 MP |
1057 | 2019-06-19 Marek Polacek <polacek@redhat.com> |
1058 | ||
1059 | PR c++/60364 - noreturn after first decl not diagnosed. | |
1060 | * c-attribs.c (handle_noreturn_attribute): No longer static. | |
1061 | * c-common.h (handle_noreturn_attribute, attr_noreturn_exclusions): | |
1062 | Declare. | |
1063 | * c-format.c (check_function_format): Use get_attribute_name. | |
1064 | ||
a04c0734 MS |
1065 | 2019-06-19 Martin Sebor <msebor@redhat.com> |
1066 | ||
1067 | PR translation/90156 | |
1068 | * c-format.c (function_format_info::format_type): Adjust type. | |
1069 | (function_format_info::is_raw): New member. | |
1070 | (decode_format_type): Adjust signature. Handle "raw" diag attributes. | |
1071 | (decode_format_attr): Adjust call to decode_format_type. | |
1072 | Avoid a redundant call to convert_format_name_to_system_name. | |
1073 | Avoid abbreviating the word "arguments" in a diagnostic. | |
1074 | (format_warning_substr): New function. | |
1075 | (avoid_dollar_number): Quote dollar sign in a diagnostic. | |
1076 | (finish_dollar_format_checking): Same. | |
1077 | (check_format_info): Same. | |
1078 | (struct baltoks_t): New. | |
1079 | (c_opers, c_keywords, cxx_keywords, badwords, contrs): New arrays. | |
1080 | (maybe_diag_unbalanced_tokens, check_tokens, check_plain): New | |
1081 | functions. | |
1082 | (check_format_info_main): Call check_plain. Use baltoks_t. Call | |
1083 | maybe_diag_unbalanced_tokens. | |
1084 | (handle_format_attribute): Spell out the word "arguments" in | |
1085 | a diagnostic. | |
1086 | ||
d3786ebb MB |
1087 | 2019-06-11 Matthew Beliveau <mbelivea@redhat.com> |
1088 | ||
1089 | PR c++/90449 - add -Winaccessible-base option. | |
1090 | * c.opt (Winaccessible-base): New option. | |
1091 | ||
bf38f7e9 JJ |
1092 | 2019-06-10 Jakub Jelinek <jakub@redhat.com> |
1093 | ||
1094 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_SCAN. | |
1095 | * c-pragma.c (omp_pragmas_simd): Add #pragma omp scan. | |
1096 | * c-omp.c (c_omp_split_clauses): Diagnose inscan reductions on | |
1097 | combined/composite constructs where it is not allowed. Copy over | |
1098 | OMP_CLAUSE_REDUCTION_INSCAN. | |
1099 | ||
0ecf545c MS |
1100 | 2019-06-05 Martin Sebor <msebor@redhat.com> |
1101 | ||
1102 | * c-attribs.c (handle_mode_attribute): Adjust quoting and hyphenation. | |
1103 | (handle_alias_ifunc_attribute): Same. | |
1104 | (handle_copy_attribute): Same. | |
1105 | (handle_weakref_attribute): Same. | |
1106 | (handle_nonnull_attribute): Same. | |
1107 | * c-warn.c (warn_for_sign_compare): Same. | |
1108 | (warn_for_restrict): Same. | |
1109 | * c.opt: Same. | |
1110 | ||
36b34127 MS |
1111 | 2019-06-05 Martin Sebor <msebor@redhat.com> |
1112 | ||
1113 | * c-pragma.c (handle_pragma_weak): Adjust quoting in a diagnostic. | |
1114 | * c.opt (-Wformat-diag): Remove a spurious period. | |
1115 | ||
357a352f JJ |
1116 | 2019-05-29 Jakub Jelinek <jakub@redhat.com> |
1117 | ||
1118 | PR c/90628 | |
1119 | * c-common.c (check_builtin_function_arguments) | |
1120 | <case BUILTIN_*_OVERFLOW>: Diagnose pointer to const qualified integer | |
1121 | as last argument. | |
1122 | ||
2b8235ea EB |
1123 | 2019-05-23 Eric Botcazou <ebotcazou@adacore.com> |
1124 | ||
1125 | * c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort. | |
1126 | ||
6d86ddc4 ML |
1127 | 2019-05-22 Martin Liska <mliska@suse.cz> |
1128 | ||
1129 | PR lto/90500 | |
1130 | * c-attribs.c (handle_copy_attribute): Do not copy | |
1131 | target_clones attribute. | |
1132 | ||
419ba5b9 EB |
1133 | 2019-05-21 Eric Botcazou <ebotcazou@adacore.com> |
1134 | ||
1135 | * c-ada-spec.h (enum cpp_operation): Add IS_ASSIGNMENT_OPERATOR. | |
1136 | * c-ada-spec.c (print_assignment_operator): New function. | |
1137 | (dump_ada_declaration) <FUNCTION_DECL>: Call it do dump explicit copy | |
1138 | assignment operators declared as methods and filter out the others. | |
1139 | ||
e03436e7 TS |
1140 | 2019-05-17 Thomas Schwinge <thomas@codesourcery.com> |
1141 | ||
1142 | PR c/89433 | |
1143 | * c-attribs.c (c_common_attribute_table): Set min_len to -1 for | |
1144 | "omp declare target". | |
1145 | ||
a9c697b8 MS |
1146 | 2019-05-16 Martin Sebor <msebor@redhat.com> |
1147 | ||
ab20d992 JJ |
1148 | * c-attribs.c (handle_no_sanitize_attribute): Quote identifiers, |
1149 | keywords, operators, and types in diagnostics. | |
1150 | (handle_scalar_storage_order_attribute): Same. | |
1151 | (handle_mode_attribute): Same. | |
1152 | (handle_visibility_attribute): Same. | |
1153 | (handle_assume_aligned_attribute): Same. | |
1154 | (handle_no_split_stack_attribute): Same. | |
1155 | * c-common.c (shorten_compare): Same. | |
1156 | (c_common_truthvalue_conversion): Same. | |
1157 | (cb_get_source_date_epoch): Same. | |
1158 | * c-lex.c (cb_def_pragma): Quote keywords, operators, and types | |
1159 | in diagnostics. | |
1160 | (interpret_float): Same. | |
1161 | * c-omp.c (c_finish_omp_for): Same. | |
1162 | * c-opts.c (c_common_post_options): Same. | |
1163 | * c-pch.c (c_common_pch_pragma): Same. | |
1164 | * c-pragma.c (pop_alignment): Same. | |
1165 | (handle_pragma_pack): Same. | |
1166 | (apply_pragma_weak): Same. | |
1167 | (handle_pragma_weak): Same. | |
1168 | (handle_pragma_scalar_storage_order): Same. | |
1169 | (handle_pragma_redefine_extname): Same. | |
1170 | (add_to_renaming_pragma_list): Same. | |
1171 | (maybe_apply_renaming_pragma): Same. | |
1172 | (push_visibility): Same. | |
1173 | (handle_pragma_visibility): Same. | |
1174 | (handle_pragma_optimize): Same. | |
1175 | (handle_pragma_message): Same. | |
1176 | * c-warn.c (warn_for_omitted_condop): Same. | |
1177 | (lvalue_error): Same. | |
a9c697b8 | 1178 | |
6b943512 RB |
1179 | 2019-05-15 Richard Biener <rguenther@suse.de> |
1180 | ||
1181 | PR c/90474 | |
1182 | * c-common.c (c_common_mark_addressable_vec): Also mark | |
1183 | a COMPOUND_LITERAL_EXPR_DECL addressable similar to | |
1184 | c_mark_addressable. | |
ab20d992 | 1185 | |
b744fc85 NS |
1186 | 2019-05-06 Nathan Sidwell <nathan@acm.org> |
1187 | ||
1188 | * c-opts.c (handle_defered_opts): Rename struct deps to struc mkdeps. | |
1189 | ||
598f50d7 NS |
1190 | 2019-04-30 Nathan Sidwell <nathan@acm.org> |
1191 | ||
1192 | * c-common.c (c_common_init_ts): Use MARK_TS_EXP. Mark SIZEOF_EXPR. | |
1193 | ||
5bcc5a3b ML |
1194 | 2019-04-30 Martin Liska <mliska@suse.cz> |
1195 | ||
1196 | * c-pragma.c (handle_pragma_diagnostic): Provide hints | |
1197 | for unknown options. | |
1198 | ||
e78a87f7 RS |
1199 | 2019-04-26 Richard Sandiford <richard.sandiford@arm.com> |
1200 | ||
1201 | * c-warn.c (strict_aliasing_warning): Apply COMPLETE_TYPE_P to | |
1202 | the pointer target rather than the pointer itself. | |
1203 | ||
c280b7ee JJ |
1204 | 2019-04-19 Jakub Jelinek <jakub@redhat.com> |
1205 | ||
1206 | PR c/89888 | |
1207 | * c-common.h (c_add_case_label): Remove orig_type and outside_range_p | |
1208 | arguments. | |
1209 | (c_do_switch_warnings): Remove outside_range_p argument. | |
1210 | * c-common.c (check_case_bounds): Removed. | |
1211 | (c_add_case_label): Remove orig_type and outside_range_p arguments. | |
1212 | Don't call check_case_bounds. Fold low_value as well as high_value. | |
1213 | * c-warn.c (c_do_switch_warnings): Remove outside_range_p argument. | |
1214 | Check for case labels outside of range of original type here and | |
1215 | adjust them. | |
1216 | ||
8e8225e6 JJ |
1217 | 2019-04-12 Jakub Jelinek <jakub@redhat.com> |
1218 | ||
63b8a166 JJ |
1219 | PR translation/90041 |
1220 | * c.opt (-fhandle-exceptions): Use %< and %> around option names | |
1221 | in the Warn diagnostics. | |
1222 | ||
8e8225e6 JJ |
1223 | PR c/89946 |
1224 | * c-attribs.c (handle_patchable_function_entry_attribute): Add | |
1225 | function comment. Warn if arguments of the attribute are not positive | |
1226 | integer constants. | |
1227 | ||
53a3f614 EB |
1228 | 2019-04-09 Eric Botcazou <ebotcazou@adacore.com> |
1229 | ||
1230 | * c-ada-spec.c (print_destructor): Deal with deleting destructors. | |
1231 | (dump_ada_declaration) <FUNCTION_DECL>: Likewise. | |
1232 | ||
22be5873 EB |
1233 | 2019-04-07 Eric Botcazou <ebotcazou@adacore.com> |
1234 | ||
1235 | * c-ada-spec.c (is_float128): New predicate extracted from... | |
1236 | (dump_ada_node) <COMPLEX_TYPE>: Use it to recognize __cfloat128. | |
1237 | <REAL_TYPE>: ...here. Call it. | |
1238 | ||
34facf20 DM |
1239 | 2019-04-05 David Malcolm <dmalcolm@redhat.com> |
1240 | ||
1241 | PR c/89985 | |
1242 | * c-warn.c (check_address_or_pointer_of_packed_member): Add | |
1243 | auto_diagnostic_group. Guard inform calls by result of | |
1244 | warning_at call. | |
1245 | ||
05564120 MP |
1246 | 2019-04-05 Marek Polacek <polacek@redhat.com> |
1247 | ||
ab20d992 | 1248 | PR c++/89973 - -Waddress-of-packed-member ICE with invalid conversion. |
05564120 MP |
1249 | * c-warn.c (check_address_or_pointer_of_packed_member): Check the type |
1250 | of RHS. | |
1251 | ||
7a506c3c JM |
1252 | 2019-04-03 Jason Merrill <jason@redhat.com> |
1253 | ||
1254 | PR c++/86586 - -fcompare-debug=-Wsign-compare. | |
1255 | * c-warn.c (warn_for_sign_compare): Call fold_for_warn. | |
1256 | ||
ddeae8c8 MS |
1257 | 2019-04-01 Martin Sebor <msebor@redhat.com> |
1258 | ||
1259 | PR c/89685 | |
1260 | * c-attribs.c (handle_copy_attribute): Handle references and | |
1261 | non-constant expressions. | |
1262 | ||
a15ffa22 JJ |
1263 | 2019-03-22 Jakub Jelinek <jakub@redhat.com> |
1264 | ||
1265 | PR c++/87481 | |
1266 | * c.opt (-fconstexpr-ops-limit=): New option. | |
1267 | ||
36a3a7a3 JJ |
1268 | 2019-03-21 Jakub Jelinek <jakub@redhat.com> |
1269 | ||
1270 | * c-common.c (per_file_includes_t): Use false as Lazy in hash_set | |
1271 | template param. | |
1272 | ||
bec1da64 MS |
1273 | 2019-03-19 Martin Sebor <msebor@redhat.com> |
1274 | ||
1275 | PR tree-optimization/89688 | |
1276 | * c-common.c (braced_list_to_string): Make static. | |
1277 | (braced_lists_to_strings): Define new function. | |
1278 | * c-common.h (braced_list_to_string): Remove. | |
1279 | (braced_lists_to_strings): Declare. | |
1280 | ||
1fe61adf ML |
1281 | 2019-03-12 Martin Liska <mliska@suse.cz> |
1282 | ||
1283 | * c-opts.c (c_common_handle_option): Wrap option with %< and %>. | |
1284 | ||
93964ebd ML |
1285 | 2019-03-11 Martin Liska <mliska@suse.cz> |
1286 | ||
1287 | * c-opts.c (c_common_post_options): Wrap apostrophes | |
1288 | in gcc internal format with %'. | |
1289 | ||
a3f9f006 ML |
1290 | 2019-03-11 Martin Liska <mliska@suse.cz> |
1291 | ||
1292 | * c-attribs.c (handle_nocf_check_attribute): Wrap an option name | |
1293 | in a string format message and fix GNU coding style. | |
1294 | * c-common.c (vector_types_convertible_p): Likewise. | |
1295 | (c_build_vec_perm_expr): Likewise. | |
1296 | * c-indentation.c (get_visual_column): Likewise. | |
1297 | * c-opts.c (c_common_handle_option): Likewise. | |
1298 | (c_common_post_options): Likewise. | |
1299 | (sanitize_cpp_opts): Likewise. | |
1300 | * c-pch.c (c_common_pch_pragma): Likewise. | |
1301 | * c-pragma.c (handle_pragma_pack): Likewise. | |
1302 | ||
1db01ff9 JJ |
1303 | 2019-03-08 Jakub Jelinek <jakub@redhat.com> |
1304 | ||
1305 | PR tree-optimization/89550 | |
1306 | * c-common.c (c_common_truthvalue_conversion): Only set | |
1307 | TREE_NO_WARNING if warning_at returned true. | |
1308 | * c-warn.c (overflow_warning, warn_logical_operator): Likewise. | |
1309 | ||
ba790e6f JJ |
1310 | 2019-02-25 Sandra Loosemore <sandra@codesourcery.com> |
1311 | Martin Sebor <msebor@gmail.com> | |
1312 | ||
1313 | * c.opt (Wmissing-attributes): Clean up doc string. | |
1314 | ||
7da73ba7 JJ |
1315 | 2019-02-25 Jakub Jelinek <jakub@redhat.com> |
1316 | ||
1317 | PR c/89495 | |
1318 | * c-format.c (maybe_read_dollar_number): Compute nargnum in | |
1319 | HOST_WIDE_INT type to avoid overflows and change overflow_flag | |
1320 | checking. | |
1321 | ||
921bb9d1 RB |
1322 | 2019-02-22 Richard Biener <rguenther@suse.de> |
1323 | ||
1324 | * c-pch.c (no_checksum): Remove. | |
1325 | (pch_init): Remove assertion that executable_checksum is not | |
1326 | all zero. | |
1327 | (c_common_valid_pch): Likewise. | |
1328 | ||
e2ebb05c MS |
1329 | 2019-02-18 Martin Sebor <msebor@redhat.com> |
1330 | ||
1331 | PR middle-end/89294 | |
1332 | * c-common.c (invalid_array_size_error): Handle cst_size_not_constant. | |
1333 | ||
3fe53000 DM |
1334 | 2019-02-16 David Malcolm <dmalcolm@redhat.com> |
1335 | ||
1336 | PR c++/88680 | |
1337 | * c-common.c (shorten_compare): Call fold_for_warn on op0 when | |
1338 | implementing -Wtype-limits. | |
1339 | ||
28a8cef1 MS |
1340 | 2019-02-11 Martin Sebor <msebor@redhat.com> |
1341 | ||
1342 | PR c++/87996 | |
1343 | * c-common.c (invalid_array_size_error): New function. | |
1344 | (valid_array_size_p): Call it. Handle size as well as type. | |
1345 | * c-common.h (valid_constant_size_p): New function. | |
1346 | (enum cst_size_error): New type. | |
1347 | ||
ec2be203 DM |
1348 | 2019-01-31 David Malcolm <dmalcolm@redhat.com> |
1349 | ||
1350 | PR c/89122 | |
1351 | * known-headers.cc (get_stdlib_header_for_name): Add | |
1352 | {FLT|DBL|LDBL}_{MAX|MIN} to "hints" array. | |
1353 | ||
8936f047 JJ |
1354 | 2019-01-31 Jakub Jelinek <jakub@redhat.com> |
1355 | ||
1356 | PR libstdc++/88170 | |
1357 | * c-pretty-print.c (pp_c_enumeration_constant): Print always as | |
1358 | a C cast in pp_c_flag_gnu_v3 mode. | |
1359 | ||
6a335b96 JJ |
1360 | 2019-01-29 Jakub Jelinek <jakub@redhat.com> |
1361 | ||
1362 | PR c/86125 | |
1363 | * c-common.c (c_common_nodes_and_builtins): Build type variants for | |
1364 | builtin_structptr_types types even for C. | |
1365 | ||
2a06eba5 BE |
1366 | 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de> |
1367 | ||
1368 | * c-warn.c (check_address_or_pointer_of_packed_member): Handle the case | |
1369 | when rhs is of array type correctly. Fix handling of nested structures. | |
1370 | Fix handling of indirect_ref together with nop_expr and/or addr_expr. | |
1371 | (check_and_warn_address_or_pointer_of_packed_member): Fix handling of | |
1372 | type casts within nested compound expressions. | |
1373 | ||
18a23298 JJ |
1374 | 2019-01-22 Jakub Jelinek <jakub@redhat.com> |
1375 | ||
1376 | PR middle-end/88968 | |
1377 | * c-omp.c (c_finish_omp_atomic): For bitfield atomics, update type | |
1378 | variable after using BIT_FIELD_REF. | |
1379 | ||
420183d9 L |
1380 | 2019-01-18 H.J. Lu <hongjiu.lu@intel.com> |
1381 | ||
1382 | PR c/51628 | |
1383 | PR c/88664 | |
1384 | * c-common.h (warn_for_address_or_pointer_of_packed_member): | |
1385 | Remove the boolean argument. | |
1386 | * c-warn.c (check_address_of_packed_member): Renamed to ... | |
1387 | (check_address_or_pointer_of_packed_member): This. Also | |
1388 | warn pointer conversion. | |
1389 | (check_and_warn_address_of_packed_member): Renamed to ... | |
1390 | (check_and_warn_address_or_pointer_of_packed_member): This. | |
1391 | Also warn pointer conversion. | |
1392 | (warn_for_address_or_pointer_of_packed_member): Remove the | |
1393 | boolean argument. Don't check pointer conversion here. | |
1394 | ||
99063eee RS |
1395 | 2019-01-15 Richard Sandiford <richard.sandiford@arm.com> |
1396 | ||
1397 | PR inline-asm/52813 | |
1398 | * c.opt (Wdeprecated): Move documentation and variable to common.opt. | |
1399 | ||
a30d0196 JJ |
1400 | 2019-01-14 Jakub Jelinek <jakub@redhat.com> |
1401 | ||
1402 | * c-cppbuiltin.c (c_cpp_builtin): Define __cpp_guaranteed_copy_elision | |
1403 | and __cpp_nontype_template_parameter_auto. Add a comment that | |
1404 | __cpp_template_auto is deprecated. | |
1405 | ||
2d91f79d TH |
1406 | 2019-01-14 Tom Honermann <tom@honermann.net> |
1407 | ||
1408 | Implement P0482R5, char8_t: A type for UTF-8 characters and strings | |
1409 | * c-common.c (c_common_reswords): Add char8_t. | |
1410 | (fix_string_type): Use char8_t for the type of u8 string literals. | |
1411 | (c_common_get_alias_set): char8_t doesn't alias. | |
1412 | (c_common_nodes_and_builtins): Define char8_t as a builtin type in | |
1413 | C++. | |
1414 | (c_stddef_cpp_builtins): Add __CHAR8_TYPE__. | |
1415 | (keyword_begins_type_specifier): Add RID_CHAR8. | |
1416 | * c-common.h (rid): Add RID_CHAR8. | |
1417 | (c_tree_index): Add CTI_CHAR8_TYPE and CTI_CHAR8_ARRAY_TYPE. | |
1418 | Define D_CXX_CHAR8_T and D_CXX_CHAR8_T_FLAGS. | |
1419 | Define char8_type_node and char8_array_type_node. | |
1420 | * c-cppbuiltin.c (cpp_atomic_builtins): Predefine | |
1421 | __GCC_ATOMIC_CHAR8_T_LOCK_FREE. | |
1422 | (c_cpp_builtins): Predefine __cpp_char8_t. | |
1423 | * c-lex.c (lex_string): Use char8_array_type_node as the type of | |
1424 | CPP_UTF8STRING. | |
1425 | (lex_charconst): Use char8_type_node as the type of CPP_UTF8CHAR. | |
1426 | * c-opts.c: If not otherwise specified, enable -fchar8_t when | |
1427 | targeting C++2a. | |
1428 | * c.opt: Add the -fchar8_t command line option. | |
1429 | ||
23db6ced MS |
1430 | 2019-01-14 Martin Sebor <msebor@redhat.com> |
1431 | ||
1432 | PR target/88638 | |
1433 | * c-attribs.c (positional_argument): Call valid_format_string_type_p | |
1434 | and issue errors if it fails. | |
1435 | * c-common.h (valid_format_string_type_p): Declare. | |
1436 | * c-format.c (valid_stringptr_type_p): Rename... | |
1437 | (valid_format_string_type_p): ...to this and make extern. | |
1438 | (handle_format_arg_attribute): Adjust to new name. | |
1439 | (check_format_string): Same. | |
1440 | ||
234c3818 L |
1441 | 2019-01-13 H.J. Lu <hongjiu.lu@intel.com> |
1442 | ||
1443 | * c-warn.c (warn_for_address_or_pointer_of_packed_member): | |
1444 | Replace "may may" with "may" in warning message. | |
1445 | ||
d8fcab68 JJ |
1446 | 2019-01-07 Jakub Jelinek <jakub@redhat.com> |
1447 | ||
1448 | PR c++/85052 | |
1449 | * c-common.h (enum rid): Add RID_BUILTIN_CONVERTVECTOR. | |
1450 | (c_build_vec_convert): Declare. | |
1451 | * c-common.c (c_build_vec_convert): New function. | |
1452 | ||
29d24852 MS |
1453 | 2019-01-04 Martin Sebor <msebor@redhat.com> |
1454 | ||
1455 | PR c/88546 | |
1456 | * c-attribs.c (handle_copy_attribute): Avoid copying attribute leaf. | |
1457 | Handle C++ empty throw specification and C11 _Noreturn. | |
1458 | (has_attribute): Also handle C11 _Noreturn. | |
1459 | ||
9069a4c9 MS |
1460 | 2019-01-04 Martin Sebor <msebor@redhat.com> |
1461 | ||
1462 | PR c/88363 | |
1463 | * c-attribs.c (positional_argument): Also accept enumerated types. | |
1464 | ||
a5544970 JJ |
1465 | 2019-01-01 Jakub Jelinek <jakub@redhat.com> |
1466 | ||
1467 | Update copyright years. | |
1468 | ||
da77eace L |
1469 | 2018-12-20 H.J. Lu <hongjiu.lu@intel.com> |
1470 | ||
1471 | PR c/51628 | |
1472 | * c-common.h (warn_for_address_or_pointer_of_packed_member): New. | |
1473 | * c-warn.c (check_alignment_of_packed_member): New function. | |
1474 | (check_address_of_packed_member): Likewise. | |
1475 | (check_and_warn_address_of_packed_member): Likewise. | |
1476 | (warn_for_address_or_pointer_of_packed_member): Likewise. | |
1477 | * c.opt: Add -Wno-address-of-packed-member. | |
1478 | ||
573767d4 DM |
1479 | 2018-12-20 David Malcolm <dmalcolm@redhat.com> |
1480 | ||
1481 | PR c++/87504 | |
1482 | * c-warn.c (get_outermost_macro_expansion): New function. | |
1483 | (spelled_the_same_p): Use it to unwind the macro expansions, and | |
1484 | compare the outermost macro in each nested expansion, rather than | |
1485 | the innermost. | |
1486 | ||
a14feb3c DM |
1487 | 2018-12-19 David Malcolm <dmalcolm@redhat.com> |
1488 | ||
1489 | PR c++/87504 | |
1490 | * c-common.h (warn_tautological_cmp): Convert 1st param from | |
1491 | location_t to const op_location_t &. | |
1492 | * c-warn.c (find_array_ref_with_const_idx_r): Call fold_for_warn | |
1493 | when testing for INTEGER_CST. | |
1494 | (warn_tautological_bitwise_comparison): Convert 1st param from | |
1495 | location_t to const op_location_t &; use it to build a | |
1496 | binary_op_rich_location, and use this. | |
1497 | (spelled_the_same_p): New function. | |
1498 | (warn_tautological_cmp): Convert 1st param from location_t to | |
1499 | const op_location_t &. Warn for macro expansions if | |
1500 | spelled_the_same_p. Use binary_op_rich_location. | |
1501 | ||
dfd7fdca DM |
1502 | 2018-12-19 David Malcolm <dmalcolm@redhat.com> |
1503 | ||
1504 | PR c++/43064 | |
1505 | PR c++/43486 | |
1506 | * c-common.c (unsafe_conversion_p): Fold any location wrapper. | |
1507 | (verify_tree): Handle location wrappers. | |
1508 | (c_common_truthvalue_conversion): Strip any location wrapper. | |
1509 | Handle CONST_DECL. | |
1510 | (fold_offsetof): Strip any location wrapper. | |
1511 | (complete_array_type): Likewise for initial_value. | |
1512 | (convert_vector_to_array_for_subscript): Call fold_for_warn on the | |
1513 | index before checking for INTEGER_CST. | |
1514 | * c-pretty-print.c (c_pretty_printer::primary_expression): Don't | |
1515 | print parentheses around location wrappers. | |
1516 | * c-warn.c (warn_logical_operator): Call fold_for_warn on op_right | |
1517 | before checking for INTEGER_CST. | |
1518 | (warn_tautological_bitwise_comparison): Call | |
1519 | tree_strip_any_location_wrapper on lhs, rhs, and bitop's operand | |
1520 | before checking for INTEGER_CST. | |
1521 | (readonly_error): Strip any location wrapper. | |
1522 | (warn_array_subscript_with_type_char): Strip location wrappers | |
1523 | before checking for INTEGER_CST. Use the location of the index if | |
1524 | available. | |
1525 | ||
5c8b3702 JM |
1526 | 2018-12-06 Jason Merrill <jason@redhat.com> |
1527 | ||
1528 | PR c++/88136 - -Wdeprecated-copy false positives | |
1529 | * c.opt (Wdeprecated-copy-dtor): New. | |
1530 | (Wdeprecated-copy): Move to -Wextra. | |
1531 | ||
673670da MS |
1532 | 2018-11-29 Martin Sebor <msebor@redhat.com> |
1533 | ||
1534 | PR c/88172 | |
1535 | PR testsuite/88208 | |
1536 | * c-attribs.c (common_handle_aligned_attribute): Silently avoid setting | |
1537 | alignments to values less than the target requires. | |
1538 | (has_attribute): For attribute aligned consider both the attribute | |
1539 | and the alignment bits. | |
1540 | * c-common.c (c_init_attributes): Optionally issue a warning for | |
1541 | zero alignment. | |
1542 | ||
04864ec8 MS |
1543 | 2018-11-28 Martin Sebor <msebor@redhat.com> |
1544 | ||
1545 | PR c/88065 | |
1546 | PR c/87297 | |
1547 | * c-warn.c (sizeof_pointer_memaccess_warning): Bail if source | |
1548 | or destination is an error. | |
1549 | ||
ace83db0 JJ |
1550 | 2018-11-28 Jakub Jelinek <jakub@redhat.com> |
1551 | ||
1552 | PR c++/88215 | |
1553 | * c-ubsan.c: Include langhooks.h. | |
1554 | (ubsan_instrument_division): Change gcc_assert that main variants | |
1555 | of op0 and op1 types are equal to gcc_checking_assert that the | |
1556 | main variants are compatible types. | |
1557 | ||
da193a27 EB |
1558 | 2018-11-27 Eric Botcazou <ebotcazou@adacore.com> |
1559 | ||
1560 | * c-ada-spec.c: Include stringpool.h. | |
1561 | (has_static_fields): Return false for incomplete types. | |
1562 | (is_tagged_type): Likewise. | |
1563 | (has_nontrivial_methods): Likewise. | |
1564 | (dump_ada_node) <INTEGER_TYPE>: Deal specifically with __int128. | |
1565 | (struct overloaded_name_hash): New structure. | |
1566 | (struct overloaded_name_hasher): Likewise. | |
1567 | (overloaded_names): New global variable. | |
1568 | (init_overloaded_names): New static function. | |
1569 | (overloaded_name_p): New predicate. | |
1570 | (dump_ada_declaration) <TYPE_DECL>: Tidy up and set TREE_VISITED | |
1571 | on the TYPE_STUB_DECL of the original type of a typedef, if any. | |
1572 | <FUNCTION_DECL>: Bail out for an unsupported overloaded name. | |
1573 | Remove always-true condition and dump forward types. | |
1574 | (dump_ada_specs): Delete overloaded_names. | |
1575 | ||
98f08eb8 MS |
1576 | 2018-11-20 Martin Sebor <msebor@redhat.com> |
1577 | ||
1578 | * c-attribs.c (type_for_vector_size): New function. | |
1579 | (type_valid_for_vector_size): Same. | |
1580 | (handle_vector_size_attribute): Move code to the functions above | |
1581 | and call them. | |
1582 | (validate_attribute, has_attribute): New functions. | |
1583 | * c-common.h (has_attribute): Declare. | |
1584 | (rid): Add RID_HAS_ATTRIBUTE_EXPRESSION. | |
1585 | * c-common.c (c_common_resword): Same. | |
1586 | ||
2674fa47 JM |
1587 | 2018-11-16 Jason Merrill <jason@redhat.com> |
1588 | ||
1589 | * c-lex.c (c_common_has_attribute): Handle likely/unlikely. | |
1590 | * c-attribs.c (attr_cold_hot_exclusions): Make public. | |
1591 | ||
258b3854 JJ |
1592 | 2018-11-16 Jakub Jelinek <jakub@redhat.com> |
1593 | ||
1594 | PR middle-end/87854 | |
1595 | * c-common.c (fix_string_type): Reject string literals larger than | |
1596 | TYPE_MAX_VALUE (ssizetype) bytes. | |
1597 | ||
1d249509 MS |
1598 | 2018-11-15 Martin Sebor <msebor@redhat.com> |
1599 | ||
1600 | PR c++/87541 | |
1601 | PR c++/87542 | |
1602 | * c-attribs.c (positional_argument): New function. | |
1603 | (handle_alloc_size_attribute): Use it and simplify. | |
1604 | (handle_alloc_align_attribute): Same. | |
1605 | (handle_assume_aligned_attribute): Same. | |
1606 | (handle_nonnull_attribute): Same. | |
1607 | * c-common.c (check_function_arguments): Pass fntype to | |
1608 | check_function_format. | |
1609 | * c-common.h (check_function_format): Add an argument. | |
1610 | (PosArgFlags, positional_argument): Declare new type and function. | |
1611 | * c-format.c (decode_format_attr): Add arguments. | |
1612 | (check_format_string, get_constant): Same. | |
1613 | (convert_format_name_to_system_name): Adjust. | |
1614 | ||
478dd60d DM |
1615 | 2018-11-15 David Malcolm <dmalcolm@redhat.com> |
1616 | ||
1617 | PR other/19165 | |
1618 | * c-opts.c (c_diagnostic_finalizer): Add diagnostic_t param. | |
1619 | ||
8cca0163 JJ |
1620 | 2018-11-14 Jakub Jelinek <jakub@redhat.com> |
1621 | ||
8ee09943 JJ |
1622 | P1236R1 - Signed integers are two's complement |
1623 | * c-warn.c (maybe_warn_shift_overflow): Don't warn for c++2a. | |
1624 | * c-ubsan.c (ubsan_instrument_shift): Make signed shifts | |
1625 | with in-range second operand well defined for -std=c++2a. | |
1626 | ||
8cca0163 JJ |
1627 | PR other/88007 |
1628 | * c-common.c (parse_optimize_options): Allocate option string from | |
1629 | opts_obstack rather than as GC memory. Move the allocation after | |
1630 | warning for invalid option. | |
1631 | ||
620e594b DM |
1632 | 2018-11-13 David Malcolm <dmalcolm@redhat.com> |
1633 | ||
1634 | * c-common.c (c_get_substring_location): Update for renaming of | |
1635 | get_source_location_for_substring to get_location_within_string. | |
1636 | * c-lex.c: Replace "source_location" with "location_t". | |
1637 | * c-opts.c: Likewise. | |
1638 | * c-ppoutput.c: Likewise. | |
1639 | ||
f9731de3 MS |
1640 | 2018-11-13 Martin Sebor <msebor@redhat.com> |
1641 | ||
1642 | PR middle-end/81824 | |
1643 | * c-attribs.c (handle_copy_attribute): Exclude inlining attributes. | |
1644 | (handle_tls_model_attribute): Improve diagnostics. | |
1645 | ||
e4bd6d5e JM |
1646 | 2018-11-12 Jason Merrill <jason@redhat.com> |
1647 | ||
a6bb6b07 JM |
1648 | * c-cppbuiltin.c (c_cpp_builtins): Define |
1649 | __cpp_impl_destroying_delete. | |
1650 | ||
e4bd6d5e JM |
1651 | * c-cppbuiltin.c (c_cpp_builtins): Change __cpp_explicit_bool to |
1652 | __cpp_conditional_explicit. | |
1653 | ||
79a2c428 MS |
1654 | 2018-11-09 Martin Sebor <msebor@redhat.com> |
1655 | ||
1656 | PR middle-end/81824 | |
1657 | * c-attribs.c (handle_copy_attribute): New function. | |
1658 | ||
4c7bd361 MS |
1659 | 2018-11-09 Martin Sebor <msebor@redhat.com> |
1660 | ||
1661 | PR c/87795 | |
1662 | * c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT. | |
1663 | ||
28567c40 JJ |
1664 | 2018-11-08 Jakub Jelinek <jakub@redhat.com> |
1665 | ||
1666 | * c-common.h (c_finish_omp_taskgroup): Add CLAUSES argument. | |
1667 | (c_finish_omp_atomic): Replace bool SEQ_CST argument with | |
1668 | enum omp_memory_order MEMORY_ORDER. | |
1669 | (c_finish_omp_flush): Add MO argument. | |
1670 | (c_omp_depend_t_p, c_finish_omp_depobj): Declare. | |
1671 | (c_finish_omp_for): Add FINAL_P argument. | |
1672 | * c-omp.c: Include memmodel.h. | |
1673 | (c_finish_omp_taskgroup): Add CLAUSES argument. Set | |
1674 | OMP_TASKGROUP_CLAUSES to it. | |
1675 | (c_finish_omp_atomic): Replace bool SEQ_CST argument with | |
1676 | enum omp_memory_order MEMORY_ORDER. Set OMP_ATOMIC_MEMORY_ORDER | |
1677 | instead of OMP_ATOMIC_SEQ_CST. | |
1678 | (c_omp_depend_t_p, c_finish_omp_depobj): New functions. | |
1679 | (c_finish_omp_flush): Add MO argument, if not MEMMODEL_LAST, emit | |
1680 | __atomic_thread_fence call with the given value. | |
1681 | (check_omp_for_incr_expr): Formatting fixes. | |
1682 | (c_finish_omp_for): Add FINAL_P argument. Allow NE_EXPR | |
1683 | even in OpenMP loops, diagnose if NE_EXPR and incr expression | |
1684 | is not constant expression 1 or -1. Transform NE_EXPR loops | |
1685 | with iterators pointers to VLA into LT_EXPR or GT_EXPR loops. | |
1686 | (c_omp_check_loop_iv_r): Look for orig decl of C++ range for | |
1687 | loops too. | |
1688 | (c_omp_split_clauses): Add support for combined | |
1689 | #pragma omp parallel master and | |
1690 | #pragma omp {,parallel }master taskloop{, simd} constructs. | |
1691 | Handle OMP_CLAUSE_IN_REDUCTION. Handle OMP_CLAUSE_REDUCTION_TASK. | |
1692 | Handle OMP_CLAUSE_NONTEMPORAL. Handle splitting OMP_CLAUSE_IF | |
1693 | also to OMP_SIMD. Copy OMP_CLAUSE_LASTPRIVATE_CONDITIONAL. | |
1694 | (c_omp_predetermined_sharing): Don't return | |
1695 | OMP_CLAUSE_DEFAULT_SHARED for const qualified decls. | |
1696 | * c-pragma.c (omp_pragmas): Add PRAGMA_OMP_DEPOBJ and | |
1697 | PRAGMA_OMP_REQUIRES. | |
1698 | * c-pragma.h (enum pragma_kind): Likewise. | |
1699 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_NONTEMPORAL | |
1700 | and PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION. | |
1701 | ||
204839e7 DM |
1702 | 2018-11-08 David Malcolm <dmalcolm@redhat.com> |
1703 | ||
1704 | * c-format.c (gcc_dump_printf_char_table): Add entry for %f. | |
1705 | ||
d8010ee4 DM |
1706 | 2018-11-08 David Malcolm <dmalcolm@redhat.com> |
1707 | ||
1708 | * c-format.c (local_cgraph_node_ptr_node): New variable. | |
1709 | (gcc_dump_printf_char_table): Add entry for %C. | |
1710 | (get_pointer_to_named_type): New function, taken from the handling | |
1711 | code for "gimple *" from... | |
1712 | (init_dynamic_diag_info): ...here. Add handling for | |
1713 | "cgraph_node *". | |
1714 | * c-format.h (T_CGRAPH_NODE): New. | |
1715 | ||
4be5c72c JM |
1716 | 2018-10-19 Jason Merrill <jason@redhat.com> |
1717 | ||
1718 | * c-cppbuiltin.c (c_cpp_builtins): Add | |
1719 | __cpp_nontype_template_parameter_class. | |
1720 | ||
f3f6029d NS |
1721 | 2018-10-31 Nathan Sidwell <nathan@acm.org> |
1722 | ||
ab5324fb NS |
1723 | * c-opts.c (c_finish_options): Force command line macro |
1724 | location. Refactor to avoid repeating main debug hook. | |
1725 | (push_command_line_include): Clarify comment. | |
1726 | ||
f3f6029d NS |
1727 | * c-opts.c (c_finish_options): Adjust cpp_force_token_locations call. |
1728 | ||
91e3ec29 MS |
1729 | 2018-10-30 Martin Sebor <msebor@redhat.com> |
1730 | ||
1731 | PR middle-end/87041 | |
1732 | * c-format.c (check_format_types): Avoid diagnosing null pointer | |
1733 | arguments to printf-family of functions. | |
1734 | ||
b5ff4f5c MP |
1735 | 2018-10-30 Marek Polacek <polacek@redhat.com> |
1736 | ||
1737 | Implement P0892R2, explicit(bool). | |
1738 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_explicit_bool. | |
1739 | ||
7e2de6df DM |
1740 | 2018-10-29 David Malcolm <dmalcolm@redhat.com> |
1741 | ||
1742 | * name-hint.h (name_hint::take_deferred): New member function. | |
1743 | ||
b2bf438c DM |
1744 | 2018-10-29 David Malcolm <dmalcolm@redhat.com> |
1745 | ||
1746 | PR c++/56856 | |
1747 | * c-common.c (check_function_sentinel): Call fold_for_warn on the | |
1748 | argument. | |
1749 | (check_function_restrict): Rename param "argarray" to | |
1750 | "unfolded_argarray", and make a copy named "argarray", calling | |
1751 | fold_for_warn on each argument. | |
1752 | (check_function_arguments): Add note about responsibility for | |
1753 | folding the arguments. | |
1754 | ||
9f936c86 JM |
1755 | 2018-10-17 Joseph Myers <joseph@codesourcery.com> |
1756 | ||
1757 | * c-common.c (flag_isoc2x): New variable. | |
1758 | * c-common.h (clk_c): Update comment to reference C2X. | |
1759 | (flag_isoc99, flag_isoc11): Update comments to reference future | |
1760 | standard versions in general. | |
1761 | (flag_isoc2x): Declare. | |
1762 | * c-opts.c (set_std_c2x): New function. | |
1763 | (c_common_handle_option): Handle -std=c2x and -std=gnu2x. | |
1764 | (set_std_c89, set_std_c99, set_std_c11, set_std_c17): Set | |
1765 | flag_isoc2x to 0. | |
1766 | * c.opt (Wc11-c2x-compat, std=c2x, std=gnu2x): New options. | |
1767 | ||
7a8a92c4 JM |
1768 | 2018-10-17 Joseph Myers <joseph@codesourcery.com> |
1769 | ||
1770 | * c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017) | |
1771 | (std=iso9899:2018): Document C17 as published in 2018. | |
1772 | ||
4dc003ff CL |
1773 | 2018-10-12 Christophe Lyon <christophe.lyon@linaro.org> |
1774 | ||
1775 | PR c++/87364 | |
1776 | * c-pretty-print.c (c_pretty_printer::constant): Fix typo. | |
1777 | ||
79371671 WW |
1778 | 2018-10-11 Will Wray <wjwray@gmail.com> |
1779 | ||
1780 | PR c++/87364 | |
1781 | * c-pretty-print.h (pp_c_type_cast): Prototype. | |
1782 | (pp_c_integer_constant): Likewise. | |
1783 | * c-pretty-print.c (pp_c_type_cast): No longer static. | |
1784 | (pp_c_integer_constant): Likewise. | |
1785 | (pp_c_enumeration_constant): Fix loop termination when finding | |
1786 | name of constant. No longer returns a value. Call | |
1787 | pp_c_integer_constant. | |
1788 | (c_pretty_printer::constant): Update for changes to | |
1789 | pp_c_enumeration_constant. | |
1790 | ||
46c62690 JJ |
1791 | 2018-10-11 Jakub Jelinek <jakub@redhat.com> |
1792 | ||
1793 | * c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312 | |
1794 | for no_unique_address. | |
1795 | ||
c24300ba DM |
1796 | 2018-10-09 David Malcolm <dmalcolm@redhat.com> |
1797 | ||
1798 | * c-common.c (c_option_controlling_cpp_error): Rename to... | |
1799 | (c_option_controlling_cpp_diagnostic): ...this, and convert | |
1800 | "reason" from int to enum. | |
1801 | (c_cpp_error): Rename to... | |
1802 | (c_cpp_diagnostic): ...this, converting level and reason to enums. | |
1803 | * c-common.h (c_cpp_error): Rename to... | |
1804 | (c_cpp_diagnostic): ...this, converting level and reason to enums. | |
1805 | * c-opts.c (c_common_init_options): Update for renaming. | |
1806 | ||
8656dafa RS |
1807 | 2018-10-08 Richard Sandiford <richard.sandiford@arm.com> |
1808 | ||
1809 | PR c/87286 | |
1810 | * c-common.c (vector_types_compatible_elements_p): Use | |
1811 | INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE. | |
1812 | ||
8cff0652 VK |
1813 | 2018-10-04 Vinay Kumar <vinay.kumar@blackfigtech.com> |
1814 | ||
1815 | * c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor | |
1816 | to generate constructor destructor priority warning. | |
1817 | * c.opt (-Wprio-ctor-dtor): New option. | |
1818 | ||
bedf03a2 JM |
1819 | 2018-10-01 Jason Merrill <jason@redhat.com> |
1820 | ||
1821 | * c-lex.c (c_common_has_attribute): Add no_unique_address. | |
1822 | ||
6cc430c1 EB |
1823 | 2018-10-01 Eric Botcazou <ebotcazou@adacore.com> |
1824 | ||
1825 | * c-ada-spec.c (get_underlying_decl): Get to the main type variant. | |
1826 | (dump_ada_node): Add const keyword. | |
1827 | ||
87677ac7 ML |
1828 | 2018-09-25 Martin Liska <mliska@suse.cz> |
1829 | ||
1830 | * c-common.c (c_common_truthvalue_conversion): | |
1831 | Remove Pascal from documentation. | |
1832 | ||
518196cb EB |
1833 | 2018-09-21 Eric Botcazou <ebotcazou@adacore.com> |
1834 | ||
1835 | * c-ada-spec.c: Include diagnostic.h. | |
1836 | (dump_ada_declaration) <RECORD_TYPE>: Issue a warning on packed layout. | |
1837 | ||
a599af84 MP |
1838 | 2018-09-19 Marek Polacek <polacek@redhat.com> |
1839 | ||
1840 | * c.opt (Wclass-conversion): New. | |
1841 | ||
9c4a4b3c DM |
1842 | 2018-09-17 David Malcolm <dmalcolm@redhat.com> |
1843 | ||
1844 | * c-format.c (range_label_for_format_type_mismatch::get_text): | |
1845 | Update for new param. | |
1846 | ||
c896ecfe DM |
1847 | 2018-09-17 David Malcolm <dmalcolm@redhat.com> |
1848 | ||
1849 | * c-format.c (format_warning_at_char): Update for introduction of | |
1850 | format_string_diagnostic_t. | |
1851 | (format_type_warning): Likewise. | |
1852 | ||
80c6d1f4 MJ |
1853 | 2018-09-17 Martin Jambor <mjambor@suse.cz> |
1854 | ||
1855 | PR c/63886 | |
1856 | * c.opt (Wabsolute-value): New. | |
1857 | ||
6d900107 BE |
1858 | 2018-09-06 Bernd Edlinger <bernd.edlinger@hotmail.de> |
1859 | ||
1860 | * c-common.c (complete_flexible_array_elts): New helper function. | |
1861 | * c-common.h (complete_flexible_array_elts): Declare. | |
1862 | ||
b5764229 BE |
1863 | 2018-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de> |
1864 | ||
1865 | * c-common.c (braced_list_to_string): Remove eval parameter. | |
1866 | Add some more checks. Always create zero-terminated STRING_CST. | |
1867 | * c-common.h (braced_list_to_string): Adjust prototype. | |
1868 | ||
85204e23 DM |
1869 | 2018-08-27 David Malcolm <dmalcolm@redhat.com> |
1870 | ||
1871 | PR 87091 | |
1872 | * c-common.c (c_cpp_error): Update for conversion of show_caret_p | |
1873 | to a tri-state. | |
1874 | (maybe_suggest_missing_token_insertion): Likewise. | |
1875 | (maybe_add_include_fixit): Add param "override_location". If set, | |
1876 | and source-printing is enabled, then override the rich_location's | |
1877 | primary location with that of the insertion point for the fix-it | |
1878 | hint, marking it with SHOW_LINES_WITHOUT_RANGE. | |
1879 | * c-common.h (extern void maybe_add_include_fixit): Add bool | |
1880 | param. | |
1881 | * c-format.c (selftest::test_type_mismatch_range_labels): Update | |
1882 | for conversion of show_caret_p to a tri-state. | |
1883 | * c-warn.c (warn_for_restrict): Likewise. | |
1884 | * known-headers.cc | |
1885 | (suggest_missing_header::~suggest_missing_header): Update call to | |
1886 | maybe_add_include_fixit to suggest overriding the location, as it | |
1887 | is for a note. | |
1888 | ||
3d78e008 ML |
1889 | 2018-08-27 Martin Liska <mliska@suse.cz> |
1890 | ||
1891 | * c-common.c (check_function_restrict): Use new function | |
92a285c1 ML |
1892 | fndecl_built_in_p and remove check for FUNCTION_DECL if |
1893 | possible. | |
3d78e008 ML |
1894 | (check_builtin_function_arguments): Likewise. |
1895 | (reject_gcc_builtin): Likewise. | |
1896 | * c-warn.c (sizeof_pointer_memaccess_warning): Likewise. | |
1897 | ||
b5be6d0c MP |
1898 | 2018-08-26 Marek Polacek <polacek@redhat.com> |
1899 | ||
1900 | PR c++/87029, Implement -Wredundant-move. | |
1901 | * c.opt (Wredundant-move): New option. | |
1902 | ||
79ca9c35 MP |
1903 | 2018-08-21 Marek Polacek <polacek@redhat.com> |
1904 | ||
1905 | PR c++/86981, Implement -Wpessimizing-move. | |
1906 | * c.opt (Wpessimizing-move): New option. | |
1907 | ||
097f82ec DM |
1908 | 2018-08-20 David Malcolm <dmalcolm@redhat.com> |
1909 | ||
1910 | PR other/84889 | |
1911 | * c-attribs.c (common_handle_aligned_attribute): Add | |
1912 | auto_diagnostic_group instance. | |
1913 | * c-indentation.c (warn_for_misleading_indentation): Likewise. | |
1914 | * c-opts.c (c_common_post_options): Likewise. | |
1915 | * c-warn.c (warn_logical_not_parentheses): Likewise. | |
1916 | (warn_duplicated_cond_add_or_warn): Likewise. | |
1917 | (warn_for_multistatement_macros): Likewise. | |
1918 | ||
3fb558b1 NS |
1919 | 2018-08-20 Nathan Sidwell <nathan@acm.org> |
1920 | ||
1921 | * c-ada-spec.c (macro_length, dump_ada_macros): Adjust macro parm | |
1922 | access. | |
1923 | ||
800c0e98 NS |
1924 | 2018-08-17 Nathan Sidwell <nathan@acm.org> |
1925 | ||
1926 | * c-cppbuiltin.c (struct lazy_hex_fp_value_struct): Remove macro | |
1927 | field. | |
1928 | (laxy_hex_fp_value_count): Make unsigned. | |
1929 | (lazy_hex_fp_value): Provided with macro & lazy number. Directly | |
1930 | manipulate the macro. | |
1931 | (builtin_defin_with_hex_fp_value): Adjust callback name, use | |
1932 | cpp_define_lazily. | |
1933 | ||
6f795a92 DM |
1934 | 2018-08-17 David Malcolm <dmalcolm@redhat.com> |
1935 | ||
1936 | * c-format.c (enum format_type): Add gcc_dump_printf_format_type. | |
1937 | (gcc_dump_printf_length_specs): New. | |
1938 | (gcc_dump_printf_flag_pairs): New. | |
1939 | (gcc_dump_printf_flag_specs): New. | |
1940 | (gcc_dump_printf_char_table): New. | |
1941 | (format_types_orig): Add entry for "gcc_dump_printf". | |
1942 | (init_dynamic_diag_info): Set up length_char_specs and | |
1943 | conversion_specs for gcc_dump_printf_format_type. | |
1944 | (handle_format_attribute): Handle gcc_dump_printf_format_type. | |
1945 | ||
c5d725c0 NS |
1946 | 2018-08-17 Nathan Sidwell <nathan@acm.org> |
1947 | ||
10f04917 NS |
1948 | * c-ada-spec.c (macro_length, dump_ada_macros): Constify. |
1949 | ||
c5d725c0 NS |
1950 | * c-ada-spec.c: Don't #include "cpp-id-data.h" |
1951 | * c-cppbuiltin.c: Likewise. | |
1952 | ||
c0c12356 ML |
1953 | 2018-08-17 Martin Liska <mliska@suse.cz> |
1954 | ||
1955 | * c.opt: Remove Warn, Init and Report for options with | |
92a285c1 ML |
1956 | Ignore/Deprecated flag. Warning is done automatically for |
1957 | Deprecated flags. | |
c0c12356 | 1958 | |
10fcc142 DM |
1959 | 2018-08-16 David Malcolm <dmalcolm@redhat.com> |
1960 | ||
1961 | PR c++/70693 | |
1962 | * c-common.c (selftest::c_family_tests): Call | |
1963 | selftest::c_indentation_c_tests. | |
1964 | * c-common.h (selftest::c_indentation_c_tests): New decl. | |
1965 | * c-indentation.c: Include "selftest.h". | |
1966 | (next_tab_stop): Add "tab_width" param, rather than accessing | |
1967 | cpp_opts. | |
1968 | (get_visual_column): Likewise. Clarify comment. Bulletproof | |
1969 | against reading past the end of the line. | |
1970 | (get_first_nws_vis_column): Add "tab_width" param. | |
1971 | (detect_intervening_unindent): Likewise. | |
1972 | (should_warn_for_misleading_indentation): Read tab width from | |
1973 | cpp_opts and pass around. | |
1974 | (selftest::test_next_tab_stop): New test. | |
1975 | (selftest::assert_get_visual_column_succeeds): New function. | |
1976 | (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro. | |
1977 | (selftest::assert_get_visual_column_fails): New function. | |
1978 | (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro. | |
1979 | (selftest::test_get_visual_column): New test. | |
1980 | (selftest::c_indentation_c_tests): New function. | |
1981 | ||
3f6677f4 NS |
1982 | 2018-08-16 Nathan Sidwell <nathan@acm.org> |
1983 | ||
1984 | * c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p. | |
1985 | (store_ada_macro): Likewise. | |
1986 | * c-ppoutput.c (cb_used_define, dump_macro): Likewise. | |
1987 | * c-spellcheck.cc (should-suggest_as_macro_p): Likewise, | |
1988 | ||
96e6ae57 DM |
1989 | 2018-08-15 David Malcolm <dmalcolm@redhat.com> |
1990 | ||
1991 | * c-format.c: Include "selftest-diagnostic.h" and | |
1992 | "gcc-rich-location.h". | |
1993 | (format_warning_at_char): Pass NULL for new label params of | |
1994 | format_warning_va. | |
1995 | (class indirection_suffix): New class. | |
1996 | (class range_label_for_format_type_mismatch): New class. | |
1997 | (format_type_warning): Move logic for generating "*" suffix to | |
1998 | class indirection_suffix. Create "fmt_label" and "param_label" | |
1999 | to show their types, and pass them to the | |
2000 | format_warning_at_substring calls. | |
2001 | (selftest::test_type_mismatch_range_labels): New test. | |
2002 | (selftest::c_format_c_tests): Call it. | |
2003 | ||
23aa9f7c MS |
2004 | 2018-08-13 Martin Sebor <msebor@redhat.com> |
2005 | ||
2006 | PR tree-optimization/71625 | |
2007 | * c-common.c (braced_list_to_string): New function. | |
2008 | * c-common.h (braced_list_to_string): Declare it. | |
2009 | ||
f10a9135 NS |
2010 | 2018-08-08 Nathan Sidwell <nathan@acm.org> |
2011 | ||
2012 | * c-common.c (try_to_locate_new_include_inertion_point): Use | |
2013 | linemap_included_from_linemap. | |
2014 | * c-lex.c (fe_file_change): Use linemap_included_from. | |
2015 | * c-ppoutput.c (pp_file_change): Likewise. | |
2016 | ||
8a45b051 MS |
2017 | 2018-08-01 Martin Sebor <msebor@redhat.com> |
2018 | ||
2019 | PR tree-optimization/86650 | |
ab20d992 | 2020 | * c-format.c (gcc_tdiag_char_table): Update comment for "%G". |
8a45b051 MS |
2021 | (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same. |
2022 | (init_dynamic_diag_info): Update from "gcall *" to "gimple *". | |
2023 | * c-format.h (T89_G): Update to be "gimple *" rather than | |
2024 | "gcall *". | |
2025 | (local_gcall_ptr_node): Rename... | |
2026 | (local_gimple_ptr_node): ...to this. | |
2027 | ||
e540ccc0 DM |
2028 | 2018-07-31 David Malcolm <dmalcolm@redhat.com> |
2029 | ||
2030 | * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing | |
2031 | table entries for gcc_diag_char_table, and the 'Z' entry from | |
2032 | gcc_tdiag_char_table, changing the "chain" entry for 'Z' from | |
2033 | &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0]. | |
2034 | (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly | |
2035 | adding missing "Z" for this table. Remove erroneous "G" and "K" | |
2036 | entries. | |
2037 | (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v". | |
2038 | (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE. | |
2039 | (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v". | |
2040 | ||
425fc685 RE |
2041 | 2018-07-31 Richard Earnshaw <rearnsha@arm.com> |
2042 | ||
2043 | * c-common.c (speculation_safe_resolve_call): New function. | |
2044 | (speculation_safe_resolve_params): New function. | |
2045 | (speculation_safe_resolve_return): New function. | |
2046 | (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value. | |
2047 | * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for | |
2048 | __HAVE_SPECULATION_SAFE_VALUE. | |
2049 | ||
181463c2 DM |
2050 | 2018-07-20 David Malcolm <dmalcolm@redhat.com> |
2051 | ||
2052 | * c-common.c (c_cpp_error): Remove redundant "line_table" | |
2053 | parameter from call to rich_location::set_range. | |
2054 | (maybe_suggest_missing_token_insertion): Likewise. | |
2055 | ||
0d7f9065 MS |
2056 | 2018-07-20 Martin Sebor <msebor@redhat.com> |
2057 | ||
2058 | PR middle-end/82063 | |
ab20d992 | 2059 | * c.opt (-Warray-bounds): Remove redundant -Wall. |
0d7f9065 | 2060 | |
00abf86c MS |
2061 | 2018-07-20 Martin Sebor <msebor@redhat.com> |
2062 | ||
2063 | PR middle-end/82063 | |
2064 | * c-common.h (c_common_handle_option): Change function argument | |
2065 | to HOST_WIDE_INT. | |
2066 | * c-opts.c (c_common_init_options): Same. | |
2067 | (c_common_handle_option): Same. Remove special handling of | |
2068 | OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_. | |
2069 | * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change | |
2070 | options to take a HOST_WIDE_INT argument and accept a byte-size | |
2071 | suffix. Initialize. | |
2072 | (-Wvla-larger-than): Same. | |
2073 | (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New. | |
2074 | (-Wno-vla-larger-than): Same. | |
2075 | ||
9b452033 JJ |
2076 | 2018-07-12 Jakub Jelinek <jakub@redhat.com> |
2077 | ||
2078 | * c-attribs.c (c_common_attribute_table): Add | |
2079 | "omp declare target implicit" attribute. | |
2080 | ||
cd0762f3 RB |
2081 | 2018-07-12 Richard Biener <rguenther@suse.de> |
2082 | ||
2083 | PR c/86453 | |
2084 | * c-attribs.c (handle_packed_attribute): Do not build a variant | |
2085 | type with TYPE_PACKED, instead ignore the attribute if we may | |
2086 | not apply to the original type. | |
2087 | ||
0b27c3ed JJ |
2088 | 2018-07-10 Jakub Jelinek <jakub@redhat.com> |
2089 | ||
2090 | PR c++/86443 | |
2091 | * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv | |
2092 | to contain TREE_LIST for both the original class iterator and the | |
2093 | "last" helper var. | |
2094 | ||
e730a0ef EB |
2095 | 2018-07-07 Eric Botcazou <ebotcazou@adacore.com> |
2096 | ||
2097 | * c-ada-spec.c (to_ada_name): Remove index parameter. | |
2098 | (pp_ada_tree_identifier): Likewise. | |
2099 | (dump_ada_macros): Adjust call to to_ada_name. | |
2100 | (struct overloaded_name_hash): Delete. | |
2101 | (struct overloaded_name_hasher): Likewise. | |
2102 | (overloaded_names): Likewise. | |
2103 | (compute_overloading_index): Likewise. | |
2104 | (dump_ada_decl_name): Do not call compute_overloading_index and | |
2105 | adjust calls to pp_ada_tree_identifier. | |
2106 | (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier. | |
2107 | (dump_ada_import): Add spc parameter and switch to aspect syntax. | |
2108 | (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier. | |
2109 | (dump_ada_enum_type): Remove type and display_convention parameters. | |
2110 | Adjust calls to pp_ada_tree_identifier. | |
2111 | (dump_ada_node): Likewise and for dump_ada_structure. | |
2112 | (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type | |
2113 | and tidy up. | |
2114 | <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect | |
2115 | syntax. | |
2116 | (print_constructor): Adjust call to pp_ada_tree_identifier. | |
2117 | (print_destructor): Likewise. | |
2118 | (dump_ada_declaration): Switch to aspect syntax. | |
2119 | (dump_ada_structure): Likewise and tidy up. Replace display_convention | |
2120 | parameter with nested parameter. | |
2121 | (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005. | |
2122 | (dump_ada_specs): Do not delete overloaded_names table. | |
2123 | ||
8de583fc PB |
2124 | 2018-07-06 Peter Bergner <bergner@linux.ibm.com> |
2125 | ||
2126 | PR target/86324 | |
e730a0ef | 2127 | * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute |
8de583fc PB |
2128 | target hook. |
2129 | ||
09cff37b NS |
2130 | 2018-07-05 Nathan Sidwell <nathan@acm.org> |
2131 | ||
2132 | * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not | |
2133 | NO_IMPLICIT_EXTERN_C. | |
2134 | ||
98086b2b ML |
2135 | 2018-06-28 Martin Liska <mliska@suse.cz> |
2136 | ||
2137 | * cppspec.c: Include opt-suggestions.h. | |
2138 | ||
ab20d992 JJ |
2139 | 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com> |
2140 | Thomas Schwinge <thomas@codesourcery.com> | |
829c6349 CLT |
2141 | Cesar Philippidis <cesar@codesourcery.com> |
2142 | ||
2143 | * c-pragma.h (enum pragma_omp_clause): Add | |
2144 | PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove | |
2145 | PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}. | |
2146 | ||
f41b7612 JJ |
2147 | 2018-06-20 Jakub Jelinek <jakub@redhat.com> |
2148 | ||
2149 | PR c++/86210 | |
2150 | * c-common.c (check_nonnull_arg): Use fold_for_warn. Adjust obsolete | |
2151 | comment. | |
2152 | ||
4252ccd7 MS |
2153 | 2018-06-18 Martin Sebor <msebor@redhat.com> |
2154 | ||
2155 | PR middle-end/85602 | |
2156 | * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute | |
2157 | nonstring. | |
2158 | ||
e197e64e KV |
2159 | 2018-06-16 Kugan Vivekanandarajah <kuganv@linaro.org> |
2160 | ||
2161 | * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR. | |
2162 | ||
34a7a230 JM |
2163 | 2018-06-13 Jason Merrill <jason@redhat.com> |
2164 | ||
5cef3733 JM |
2165 | * c-opts.c (c_common_post_options): Warn about useless -Wabi. |
2166 | (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version | |
2167 | handling. | |
2168 | ||
34a7a230 JM |
2169 | PR c++/86094 - wrong code with defaulted move ctor. |
2170 | * c-opts.c (c_common_post_options): Bump the current ABI version to | |
2171 | 13. Set warn_abi_version and flag_abi_compat_version to the current | |
2172 | version rather than 0. Fix defaulting flag_abi_compat_version from | |
2173 | warn_abi_version. | |
2174 | ||
bb0f14ae MS |
2175 | 2018-06-12 Martin Sebor <msebor@redhat.com> |
2176 | ||
2177 | PR c/85931 | |
2178 | * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when | |
2179 | sizeof source and destination yields the same value. | |
2180 | ||
3713f2e2 ML |
2181 | 2018-06-12 Martin Liska <mliska@suse.cz> |
2182 | ||
2183 | * c.opt: Make MPX-related options as Deprecated. | |
2184 | ||
4af78ef8 DM |
2185 | 2018-06-08 David Malcolm <dmalcolm@redhat.com> |
2186 | ||
2187 | * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE | |
2188 | rather than 0. | |
2189 | ||
31db0fe0 ML |
2190 | 2018-06-08 Martin Liska <mliska@suse.cz> |
2191 | ||
2192 | * c-attribs.c (handle_bnd_variable_size_attribute): Remove support | |
2193 | for MPX (macros, related functions, fields in cgraph_node, ...). | |
2194 | (handle_bnd_legacy): Likewise. | |
2195 | (handle_bnd_instrument): Likewise. | |
2196 | * c.opt: Likewise. | |
2197 | ||
fe16acf2 JJ |
2198 | 2018-06-06 Jakub Jelinek <jakub@redhat.com> |
2199 | ||
2200 | PR c++/86068 | |
2201 | * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set | |
2202 | __cpp_transactional_memory to 201500 instead of 210500. | |
2203 | ||
4dbdb49b JM |
2204 | 2018-06-06 Jason Merrill <jason@redhat.com> |
2205 | ||
2206 | PR c++/85710 - ICE with -Wmemset-elt-size. | |
2207 | * c-warn.c (warn_for_memset): Don't crash on incomplete element type. | |
2208 | ||
f8ad043f JM |
2209 | 2018-06-01 Jason Merrill <jason@redhat.com> |
2210 | ||
2211 | * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to | |
2212 | 201703. | |
2213 | ||
abc24d93 EB |
2214 | 2018-06-01 Eric Botcazou <ebotcazou@adacore.com> |
2215 | ||
2216 | * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward | |
2217 | declaration for a typedef independently of whether the declaration of | |
2218 | the subtype is generated. | |
2219 | ||
d258f4aa MS |
2220 | 2018-05-31 Martin Sebor <msebor@redhat.com> |
2221 | ||
2222 | PR c/82063 | |
2223 | * c.opt (-Wno-alloc-size-larger-than): New option. | |
2224 | ||
b67b9225 DP |
2225 | 2018-04-22 David Pagan <dave.pagan@oracle.com> |
2226 | ||
2227 | PR c/55976 | |
2228 | * c-opts.c (c_common_post_options): Set default for warn_return_type | |
ab20d992 | 2229 | for C++/C++ with ObjC extensions only. For C, makes it possible to |
b67b9225 DP |
2230 | differentiate between default (no option), -Wreturn-type, and |
2231 | -Wno-return-type. | |
2232 | ||
04eb9c55 JM |
2233 | 2018-05-29 Jason Merrill <jason@redhat.com> |
2234 | ||
2235 | * c.opt (Winit-list-lifetime): New flag. | |
2236 | ||
b0c31bc6 BE |
2237 | 2018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de> |
2238 | ||
2239 | * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and | |
2240 | splay_tree_delete_pointers. | |
2241 | ||
44284983 JJ |
2242 | 2018-05-26 Jakub Jelinek <jakub@redhat.com> |
2243 | ||
2244 | PR bootstrap/85921 | |
2245 | * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary | |
2246 | noinline variable to workaround broken kernel headers. | |
2247 | ||
b46b715d JM |
2248 | 2018-05-18 Jason Merrill <jason@redhat.com> |
2249 | ||
2250 | * c.opt (Wdeprecated-copy): New flag. | |
2251 | ||
40659769 ML |
2252 | 2018-05-17 Martin Liska <mliska@suse.cz> |
2253 | ||
2254 | * c-warn.c (overflow_warning): Do not use | |
2255 | space in between 'G_' and '('. | |
2256 | ||
403962ea JM |
2257 | 2018-05-09 Jason Merrill <jason@redhat.com> |
2258 | ||
2259 | * c-common.c (valid_array_size_p): Add complain parameter. | |
2260 | * c-common.h: ...which defaults to true. | |
2261 | ||
1c9ee609 JJ |
2262 | 2018-05-11 Jakub Jelinek <jakub@redhat.com> |
2263 | ||
2264 | PR c/85696 | |
2265 | * c-omp.c (c_omp_predetermined_sharing): Return | |
2266 | OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type. | |
2267 | ||
19916065 ML |
2268 | 2018-05-11 Martin Liska <mliska@suse.cz> |
2269 | ||
92a285c1 | 2270 | PR sanitizer/85556 |
19916065 ML |
2271 | * c-attribs.c (handle_no_sanitize_attribute): Iterate all |
2272 | TREE_LIST values. | |
2273 | ||
79e7b1fe JJ |
2274 | 2018-05-10 Jakub Jelinek <jakub@redhat.com> |
2275 | ||
2276 | PR c++/85662 | |
2277 | * c-common.h (fold_offsetof_1): Removed. | |
2278 | (fold_offsetof): Add TYPE argument defaulted to size_type_node and | |
2279 | CTX argument defaulted to ERROR_MARK. | |
2280 | * c-common.c (fold_offsetof_1): Renamed to ... | |
2281 | (fold_offsetof): ... this. Remove wrapper function. Add TYPE | |
2282 | argument, convert the pointer constant to TYPE and use size_binop | |
2283 | with PLUS_EXPR instead of fold_build_pointer_plus if type is not | |
2284 | a pointer type. Adjust recursive calls. | |
2285 | ||
86c12f76 EB |
2286 | 2018-05-10 Eric Botcazou <ebotcazou@adacore.com> |
2287 | ||
2288 | PR c++/85400 | |
2289 | * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs. | |
2290 | ||
ee336e84 NS |
2291 | 2018-05-07 Nathan Sidwell <nathan@acm.org> |
2292 | ||
2293 | * c.opt (ffor-scope): Remove functionality, issue warning. | |
2294 | ||
6c072e21 NS |
2295 | 2018-05-03 Nathan Sidwell <nathan@acm.org> |
2296 | ||
2297 | * c.opt (ffriend-injection): Remove functionality, issue warning. | |
2298 | ||
2cc7d3a7 DM |
2299 | 2018-05-01 David Malcolm <dmalcolm@redhat.com> |
2300 | ||
2301 | PR c/84258 | |
2302 | * c-format.c (struct format_check_results): Add field | |
2303 | "number_non_char". | |
2304 | (check_format_info): Initialize it, and warn if encountered. | |
2305 | (check_format_arg): Distinguish between wide char and | |
2306 | everything else when detecting arrays of non-char. | |
2307 | ||
7761dfbe DM |
2308 | 2018-04-30 David Malcolm <dmalcolm@redhat.com> |
2309 | ||
2310 | * c-format.c (get_corrected_substring): Update for | |
2311 | location_get_source_line returning a char_span. Use a char_span | |
2312 | when handling the prefix of the correction. | |
2313 | * c-indentation.c (get_visual_column): Update for | |
2314 | location_get_source_line returning a char_span. | |
2315 | (get_first_nws_vis_column): Likewise. | |
2316 | ||
62e98ef1 DM |
2317 | 2018-03-29 David Malcolm <dmalcolm@redhat.com> |
2318 | ||
2319 | PR c++/84269 | |
2320 | * known-headers.cc (get_stdlib_header_for_name): Add various names | |
2321 | from <assert.h>, <string.h>, and <memory.h>; add more names from | |
2322 | <stdio.h>. | |
2323 | ||
a7dea617 JJ |
2324 | 2018-03-27 Jakub Jelinek <jakub@redhat.com> |
2325 | ||
2326 | PR c++/85061 | |
2327 | * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that | |
2328 | get_base_address of the second operand is a VAR_P, rather than the | |
2329 | operand itself, and use gcc_checking_assert instead of gcc_assert. | |
2330 | ||
889a3a30 MP |
2331 | 2018-03-23 Marek Polacek <polacek@redhat.com> |
2332 | ||
2333 | PR c++/85045 | |
2334 | * c-pretty-print.c (c_pretty_printer::multiplicative_expression) | |
2335 | <case RDIV_EXPR>: Tweak condition. | |
2336 | ||
452154b9 EB |
2337 | 2018-03-20 Eric Botcazou <ebotcazou@adacore.com> |
2338 | ||
2339 | * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool. | |
2340 | ||
63ecb626 JJ |
2341 | 2018-03-16 Jakub Jelinek <jakub@redhat.com> |
2342 | ||
ce811fc4 JJ |
2343 | PR c/84909 |
2344 | * c-warn.c (conversion_warning): Replace "to to" with "to" in | |
2345 | diagnostics. | |
2346 | ||
63ecb626 JJ |
2347 | PR c/84910 |
2348 | * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from | |
2349 | diagnostics. | |
2350 | ||
a1295eec RB |
2351 | 2018-03-16 Richard Biener <rguenther@suse.de> |
2352 | ||
2353 | PR c/84873 | |
2354 | * c-gimplify.c (c_gimplify_expr): Revert previous change. Instead | |
2355 | unshare the possibly folded expression. | |
2356 | ||
919674fb RB |
2357 | 2018-03-15 Richard Biener <rguenther@suse.de> |
2358 | ||
2359 | PR c/84873 | |
2360 | * c-gimplify.c (c_gimplify_expr): Do not fold expressions. | |
2361 | ||
f99309b2 MS |
2362 | 2018-03-13 Martin Sebor <msebor@redhat.com> |
2363 | ||
2364 | PR tree-optimization/84725 | |
2365 | * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring | |
2366 | with all three narrow character types, including their qualified forms. | |
2367 | ||
e9b9fa4c MS |
2368 | 2018-03-12 Martin Sebor <msebor@redhat.com> |
2369 | ||
2370 | PR tree-optimization/83456 | |
ab20d992 | 2371 | * c-common.c (check_function_restrict): Return bool. |
e9b9fa4c MS |
2372 | Restore checking of bounded built-in functions. |
2373 | (check_function_arguments): Also return the result | |
2374 | of warn_for_restrict. | |
ab20d992 JJ |
2375 | * c-common.c (check_function_restrict): Return bool. |
2376 | * c-warn.c (warn_for_restrict): Return bool. | |
e9b9fa4c | 2377 | |
0805d020 MP |
2378 | 2018-03-02 Marek Polacek <polacek@redhat.com> |
2379 | ||
2380 | PR c++/84171 | |
2381 | * c-warn.c (warn_for_sign_compare): Bail out if any of the operands | |
2382 | is erroneous. | |
2383 | ||
ed2a2f08 TS |
2384 | 2018-03-02 Thomas Schwinge <thomas@codesourcery.com> |
2385 | ||
2386 | * c-attribs.c (c_common_attribute_table): Remove "cilk simd | |
2387 | function". | |
2388 | ||
90abdde0 MP |
2389 | 2018-03-01 Marek Polacek <polacek@redhat.com> |
2390 | ||
2391 | PR c++/84639 | |
2392 | * c-attribs.c (common_handle_aligned_attribute): Don't use invalid | |
2393 | alignment in computation. | |
2394 | ||
c6db43fa EB |
2395 | 2018-02-28 Eric Botcazou <ebotcazou@adacore.com> |
2396 | ||
2397 | * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case. | |
2398 | <REAL_TYPE>: Deal specifically with _Float128/__float128. | |
2399 | ||
9e25c7ed EB |
2400 | 2018-02-28 Eric Botcazou <ebotcazou@adacore.com> |
2401 | ||
2402 | * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case. | |
2403 | (is_char_array): Take a type instead of a declaration. | |
2404 | (dump_ada_array_type): Likewise. | |
2405 | (is_simple_enum): Minor tweak. | |
2406 | (dump_ada_enum_type): New function extracted from... | |
2407 | (dump_ada_node) <ENUMERAL_TYPE>: ...here. Invoke it. | |
2408 | <INTEGER_TYPE>: Remove unreachable code. | |
2409 | <RECORD_TYPE>: Likewise. Minor tweaks. | |
2410 | (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes. | |
2411 | <ENUMERAL_TYPE>: New case. | |
2412 | <RECORD_TYPE>: Factor out common code. | |
2413 | (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes. | |
2414 | Minor tweaks. Deal with enumeral types. | |
2415 | (dump_ada_structure): Minor tweaks. | |
2416 | ||
09de3550 EB |
2417 | 2018-02-28 Eric Botcazou <ebotcazou@adacore.com> |
2418 | ||
2419 | * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic | |
2420 | address for incomplete structures. | |
2421 | (dump_forward_type): Do not bail out for incomplete structures. | |
2422 | (dump_ada_declaration): Do not special-case incomplete structures | |
2423 | for subtypes. Dump them as null records for types. | |
2424 | ||
095d8d4b EB |
2425 | 2018-02-28 Eric Botcazou <ebotcazou@adacore.com> |
2426 | ||
2427 | * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting. | |
2428 | (is_char_array): Fix formatting. | |
2429 | (dump_template_types): Likewise. | |
2430 | (dump_generic_ada_node): Rename into... | |
2431 | (dump_ada_node): ...this. | |
2432 | <POINTER_TYPE>: Remove superfluous space. Use generic address for | |
2433 | incomplete structures and not for empty structures. Do not use it | |
2434 | when forward declarations are needed. | |
2435 | (dump_forward_type): New function. | |
2436 | (dump_nested_types): Remove FORWARD parameter. Do not consider | |
2437 | TREE_VISITED and do not generate a forward declaration. Only dump | |
2438 | original nested types for nested declaration. | |
2439 | (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type. | |
2440 | <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer. | |
2441 | <RECORD_TYPE>: Do not consider TREE_VISITED. | |
2442 | (dump_ada_declaration): Use booleans and fix formatting throughout. | |
2443 | <TYPE_DECL>: Skip incomplete structures and not empty structures. | |
2444 | Call dump_forward_type instead of dump_nested_types for a typedef. | |
2445 | Remove superfluous check and adjust call to dump_nested_types. | |
2446 | <POINTER_TYPE>: Call dump_forward_type and fall through. | |
2447 | (dump_ada_struct_decl): Rename into... | |
2448 | (dump_ada_structure): ...this. Do not special-case empty structures. | |
2449 | ||
d4cfd486 MS |
2450 | 2018-02-27 Martin Sebor <msebor@redhat.com> |
2451 | ||
2452 | PR c++/83871 | |
2453 | * c.opt (-Wmissing-attributes): New option. | |
2454 | ||
b22dbd03 ML |
2455 | 2018-02-21 Martin Liska <mliska@suse.cz> |
2456 | ||
2457 | * c.opt (Wcatch-value=): Add IntegerRange. | |
2458 | ||
883dfe2a JM |
2459 | 2018-02-15 Jason Merrill <jason@redhat.com> |
2460 | ||
2461 | * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides. | |
2462 | ||
0444aa9c NS |
2463 | 2018-02-09 Nathan Sidwell <nathan@acm.org> |
2464 | ||
2465 | PR c/84293 | |
2466 | * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC | |
2467 | arg. | |
2468 | * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC | |
2469 | arg. Adjust. | |
2470 | ||
cea71f0a MS |
2471 | 2018-02-09 Martin Sebor <msebor@redhat.com> |
2472 | ||
2473 | PR lto/84212 | |
2474 | * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO. | |
2475 | (-Walloc-size-larger-than, -Wformat-truncation=): Same. | |
2476 | (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same. | |
2477 | (-Wstrict-overflow, -Wsuggest-attribute): Same. | |
2478 | (-Wuninitialized): Same. | |
2479 | ||
8c8b7be5 EB |
2480 | 2018-02-09 Eric Botcazou <ebotcazou@adacore.com> |
2481 | ||
2482 | * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant' | |
2483 | keyword for components. | |
2484 | ||
7c30b12a PC |
2485 | 2018-02-02 Paolo Carlini <paolo.carlini@oracle.com> |
2486 | ||
2487 | * c-common.h (DECL_UNNAMED_BIT_FIELD): New. | |
2488 | ||
eece7fe5 JK |
2489 | 2018-02-02 Julia Koval <julia.koval@intel.com> |
2490 | ||
2491 | * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h. | |
2492 | ||
7d07a93a MP |
2493 | 2018-01-29 Marek Polacek <polacek@redhat.com> |
2494 | ||
2495 | PR c/83966 | |
2496 | * c-format.c (check_function_format): Check current_function_decl. | |
2497 | ||
53723269 JJ |
2498 | 2018-01-27 Jakub Jelinek <jakub@redhat.com> |
2499 | ||
2500 | * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix | |
2501 | argument. | |
2502 | (LAZY_HEX_FP_VALUES_CNT): Define. | |
2503 | (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp | |
2504 | values rather than just 12. | |
2505 | (builtin_define_with_hex_fp_value): Likewise. | |
2506 | ||
7365279f BK |
2507 | 2018-01-18 Boris Kolpackov <boris@codesynthesis.com> |
2508 | ||
92a285c1 ML |
2509 | PR other/70268 |
2510 | * c.opt (-fmacro-prefix-map): New option. | |
2511 | * c-opts.c (c_common_handle_option): Handle it. | |
2512 | * c-lex.c (init_c_lex): Set remap_filename cpp callback. | |
2513 | * c-ppoutput.c (init_pp_output): Likewise. | |
7365279f | 2514 | |
bb9869d5 DM |
2515 | 2018-01-17 David Malcolm <dmalcolm@redhat.com> |
2516 | ||
2517 | PR c++/83814 | |
2518 | * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c. | |
2519 | ||
68dc87c3 EB |
2520 | 2018-01-10 Eric Botcazou <ebotcazou@adacore.com> |
2521 | ||
2522 | * c-ada-spec.c (dump_number): Add FLOAT_P parameter. | |
2523 | Skip 'f' and 'F' characters if it is true. | |
2524 | (store_ada_macro): Minor tweak. | |
2525 | (dump_ada_macros) <CPP_COMMENT>: Likewise. | |
2526 | <CPP_WSTRING>: Likewise. | |
2527 | <CPP_STRING>: Output '&' in the buffer if not the first string. | |
2528 | <CPP_NUMBER>: Adjust calls to dump_number. | |
2529 | ||
9a004410 DM |
2530 | 2018-01-10 David Malcolm <dmalcolm@redhat.com> |
2531 | ||
2532 | PR c++/43486 | |
2533 | * c-common.c: Include "selftest.h". | |
2534 | (get_atomic_generic_size): Perform the test for integral type | |
2535 | before the range test for any integer constant, fixing indentation | |
2536 | of braces. Call fold_for_warn before testing for an INTEGER_CST. | |
2537 | (reject_gcc_builtin): Strip any location wrapper from EXPR. | |
2538 | (selftest::test_fold_for_warn): New function. | |
2539 | (selftest::c_common_c_tests): New function. | |
2540 | (selftest::c_family_tests): Call it, and | |
2541 | selftest::c_pretty_print_c_tests. | |
2542 | * c-common.h (selftest::c_pretty_print_c_tests): New decl. | |
2543 | * c-format.c (check_format_arg): Convert VAR_P check to a | |
2544 | fold_for_warn. | |
2545 | * c-pretty-print.c: Include "selftest.h". | |
2546 | (pp_c_cast_expression): Don't print casts for location wrappers. | |
2547 | (selftest::assert_c_pretty_printer_output): New function. | |
2548 | (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro. | |
2549 | (selftest::test_location_wrappers): New function. | |
2550 | (selftest::c_pretty_print_c_tests): New function. | |
2551 | * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments. | |
2552 | ||
5c0caeb3 RS |
2553 | 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org> |
2554 | Alan Hayward <alan.hayward@arm.com> | |
2555 | David Sherwood <david.sherwood@arm.com> | |
2556 | ||
2557 | * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL. | |
2558 | ||
73a699ae RS |
2559 | 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org> |
2560 | Alan Hayward <alan.hayward@arm.com> | |
2561 | David Sherwood <david.sherwood@arm.com> | |
2562 | ||
2563 | * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE | |
2564 | as polynomial. | |
2565 | ||
928686b1 RS |
2566 | 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org> |
2567 | Alan Hayward <alan.hayward@arm.com> | |
2568 | David Sherwood <david.sherwood@arm.com> | |
2569 | ||
2570 | * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr) | |
2571 | (convert_vector_to_array_for_subscript): Handle polynomial | |
2572 | TYPE_VECTOR_SUBPARTS. | |
2573 | (c_common_type_for_mode): Check valid_vector_subparts_p. | |
2574 | * c-pretty-print.c (pp_c_initializer_list): Handle polynomial | |
2575 | VECTOR_CST_NELTS. | |
2576 | ||
85ec4feb JJ |
2577 | 2018-01-03 Jakub Jelinek <jakub@redhat.com> |
2578 | ||
2579 | Update copyright years. | |
2580 | ||
170a8bd6 | 2581 | 2017-12-22 Mike Stump <mikestump@comcast.net> |
92a285c1 | 2582 | Eric Botcazou <ebotcazou@adacore.com> |
170a8bd6 EB |
2583 | |
2584 | * c-pragma.c (init_pragma): Register pragma GCC unroll. | |
2585 | * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL. | |
2586 | ||
ab20d992 | 2587 | 2017-12-22 Alexandre Oliva <aoliva@redhat.com> |
18408e96 AO |
2588 | |
2589 | PR debug/83527 | |
2590 | PR debug/83419 | |
2591 | * c-semantics.c (only_debug_stmts_after_p): New. | |
2592 | (pop_stmt_list): Clear side effects in debug-only stmt list. | |
2593 | Check for single nondebug stmt followed by debug stmts only. | |
2594 | ||
c12d20d4 AO |
2595 | 2017-12-21 Alexandre Oliva <aoliva@redhat.com> |
2596 | ||
2597 | PR debug/83419 | |
2598 | * c-semantics.c (pop_stmt_list): Propagate side effects from | |
2599 | single nondebug stmt to container list. | |
2600 | ||
01512446 JJ |
2601 | 2017-12-19 Jakub Jelinek <jakub@redhat.com> |
2602 | ||
2603 | * known-headers.cc (get_stdlib_header_for_name): Replace Yoda | |
2604 | conditions with typical order conditions. | |
2605 | ||
82cfbd01 MP |
2606 | 2017-12-18 Marek Polacek <polacek@redhat.com> |
2607 | ||
2608 | * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is | |
2609 | not in effect. | |
2610 | ||
99da11ec MS |
2611 | 2017-12-17 Martin Sebor <msebor@redhat.com> |
2612 | ||
2613 | * c-attribs.c (common_handle_aligned_attribute): Avoid issuing | |
2614 | an error for attribute warn_if_not_aligned. | |
2615 | ||
cc8bea0a MS |
2616 | 2017-12-16 Martin Sebor <msebor@redhat.com> |
2617 | ||
2618 | PR tree-optimization/78918 | |
2619 | * c-common.c (check_function_restrict): Avoid checking built-ins. | |
2620 | * c.opt (-Wrestrict): Include in -Wall. | |
2621 | ||
4849deb1 JJ |
2622 | 2017-12-15 Jakub Jelinek <jakub@redhat.com> |
2623 | ||
2624 | * c-attribs.c (c_common_attribute_table, | |
2625 | c_common_format_attribute_table): Swap affects_type_identity | |
2626 | and handler fields, adjust comments. | |
2627 | ||
c65e18d3 BE |
2628 | 2017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de> |
2629 | ||
2630 | * c.opt (Wcast-function-type): New warning option. | |
2631 | * c-lex.c (get_fileinfo): Avoid warning. | |
2632 | * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast. | |
2633 | ||
2004617a QZ |
2634 | 2017-12-14 Qing Zhao <qing.zhao@oracle.com> |
2635 | ||
7365279f | 2636 | PR middle_end/79538 |
2004617a QZ |
2637 | * c-cppbuiltin.c (builtin_define_with_hex_fp_value): |
2638 | Adjust the size of buf1 and buf2, add a new buf to avoid | |
2639 | format-overflow warning. | |
2640 | ||
ab20d992 | 2641 | 2017-12-12 Alexandre Oliva <aoliva@redhat.com> |
96a95ac1 AO |
2642 | |
2643 | * c-semantics.c (pop_stmt_list): Move begin stmt marker into | |
2644 | subsequent statement list. | |
2645 | ||
5d9ae53d MS |
2646 | 2017-12-07 Martin Sebor <msebor@redhat.com> |
2647 | ||
2648 | PR c/81544 | |
2649 | PR c/81566 | |
2650 | * c-attribs.c (attr_aligned_exclusions): New array. | |
2651 | (attr_alloc_exclusions, attr_cold_hot_exclusions): Same. | |
2652 | (attr_common_exclusions, attr_const_pure_exclusions): Same. | |
2653 | (attr_gnu_inline_exclusions, attr_inline_exclusions): Same. | |
2654 | (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same. | |
2655 | (attr_warn_unused_result_exclusions): Same. | |
2656 | (handle_hot_attribute, handle_cold_attribute): Simplify. | |
2657 | (handle_const_attribute): Warn on function returning void. | |
2658 | (handle_pure_attribute): Same. | |
2659 | (handle_aligned_attribute): Diagnose conflicting attribute | |
2660 | specifications. | |
2661 | * c-warn.c (diagnose_mismatched_attributes): Simplify. | |
2662 | ||
c79144f8 DM |
2663 | 2017-12-06 David Malcolm <dmalcolm@redhat.com> |
2664 | ||
2665 | PR c/83236 | |
2666 | * c-common.c (selftest::c_family_tests): Call | |
2667 | selftest::c_spellcheck_cc_tests. | |
2668 | * c-common.h (selftest::c_spellcheck_cc_tests): New decl. | |
2669 | * c-spellcheck.cc: Include "selftest.h". | |
2670 | (name_reserved_for_implementation_p): New function. | |
2671 | (should_suggest_as_macro_p): New function. | |
2672 | (find_closest_macro_cpp_cb): Move the check for NT_MACRO to | |
2673 | should_suggest_as_macro_p and call it. | |
2674 | (selftest::test_name_reserved_for_implementation_p): New function. | |
2675 | (selftest::c_spellcheck_cc_tests): New function. | |
2676 | * c-spellcheck.h (name_reserved_for_implementation_p): New decl. | |
2677 | ||
613bc14f DM |
2678 | 2017-12-06 David Malcolm <dmalcolm@redhat.com> |
2679 | ||
2680 | * c-spellcheck.cc: New file, taken from macro-handling code in | |
2681 | spellcheck-tree.c. | |
2682 | * c-spellcheck.h: New file, taken from macro-handling code in | |
2683 | spellcheck-tree.h. | |
2684 | ||
e76c7157 JJ |
2685 | 2017-12-01 Jakub Jelinek <jakub@redhat.com> |
2686 | ||
2687 | * c-attribs.c (c_common_attribute_table): Remove "cilk simd function" | |
2688 | attribute. | |
2689 | (handle_simd_attribute): Don't check for "cilk simd function" | |
2690 | attribute. Reindent, formatting changes. | |
2691 | ||
b0da4034 JK |
2692 | 2017-11-30 Julia Koval <julia.koval@intel.com> |
2693 | ||
2694 | * c-common.h (inv_list): Remove. | |
2695 | ||
058f0b9e JJ |
2696 | 2017-11-28 Jakub Jelinek <jakub@redhat.com> |
2697 | ||
2698 | PR sanitizer/81275 | |
2699 | * c-common.c (c_switch_covers_all_cases_p_1, | |
2700 | c_switch_covers_all_cases_p): New functions. | |
2701 | * c-common.h (c_switch_covers_all_cases_p): Declare. | |
2702 | ||
5e9d6aa4 | 2703 | 2017-11-28 Julia Koval <julia.koval@intel.com> |
92a285c1 | 2704 | Sebastian Peryt <sebastian.peryt@intel.com> |
5e9d6aa4 JK |
2705 | |
2706 | * array-notation-common.c: Delete. | |
2707 | * c-cilkplus.c: Ditto. | |
2708 | * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove. | |
2709 | * c-common.def (ARRAY_NOTATION_REF): Remove. | |
2710 | * c-common.h (RID_CILK_SPAWN, build_array_notation_expr, | |
2711 | build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop, | |
2712 | c_validate_cilk_plus_loop, cilkplus_an_parts, | |
2713 | cilk_ignorable_spawn_rhs_op, | |
2714 | cilk_recognize_spawn): Remove. | |
2715 | * c-gimplify.c (CILK_SPAWN_STMT): Remove. | |
2716 | * c-omp.c: Remove CILK_SIMD check. | |
2717 | * c-pragma.c: Ditto. | |
2718 | * c-pragma.h: Remove CILK related pragmas. | |
2719 | * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove | |
2720 | ARRAY_NOTATION_REF condition. | |
2721 | (c_pretty_printer::expression): Ditto. | |
2722 | * c.opt (fcilkplus): Remove. | |
2723 | * cilk.c: Delete. | |
2724 | ||
1af4ebf5 MG |
2725 | 2017-11-21 Marc Glisse <marc.glisse@inria.fr> |
2726 | ||
2727 | * c-pretty-print.c (pp_c_additive_expression, | |
2728 | c_pretty_printer::expression): Handle POINTER_DIFF_EXPR. | |
2729 | ||
d44ed508 JJ |
2730 | 2017-11-21 Jakub Jelinek <jakub@redhat.com> |
2731 | ||
7d2f0f9b JJ |
2732 | * c-common.c (get_nonnull_operand): Use tree_to_uhwi. |
2733 | ||
d44ed508 JJ |
2734 | PR c++/83059 |
2735 | * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW | |
2736 | instead of tree_to_uhwi, formatting fix. | |
2737 | ||
26edace6 DM |
2738 | 2017-11-20 David Malcolm <dmalcolm@redhat.com> |
2739 | ||
2740 | PR c/81404 | |
2741 | * known-headers.cc: New file, based on material from c/c-decl.c. | |
2742 | (suggest_missing_header): Copied as-is. | |
2743 | (get_stdlib_header_for_name): New, based on get_c_name_hint but | |
2744 | heavily edited to add C++ support. Add some knowledge about | |
2745 | <limits.h>, <stdint.h>, and <wchar.h>. | |
2746 | * known-headers.h: Likewise. | |
2747 | ||
6c7a259b DM |
2748 | 2017-11-20 David Malcolm <dmalcolm@redhat.com> |
2749 | ||
2750 | * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h. | |
2751 | (lookup_name_fuzzy): Likewise. Convert return type from | |
2752 | const char * to name_hint. Add location_t param. | |
2753 | * name-hint.h: New header. | |
2754 | ||
f9c59f7e JJ |
2755 | 2017-11-19 Jakub Jelinek <jakub@redhat.com> |
2756 | ||
2757 | PR c/66618 | |
2758 | PR c/69960 | |
2759 | * c-common.h (c_fully_fold): Add LVAL argument defaulted to false. | |
2760 | ||
1e39313a JM |
2761 | 2017-11-16 Joseph Myers <joseph@codesourcery.com> |
2762 | ||
2763 | * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018 | |
2764 | expected publication date of C17. | |
2765 | (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases. | |
2766 | ||
3ca0dc60 JM |
2767 | 2017-11-15 Joseph Myers <joseph@codesourcery.com> |
2768 | ||
2769 | PR c/81156 | |
2770 | * c-common.c (c_common_reswords): Add __builtin_tgmath. | |
2771 | * c-common.h (enum rid): Add RID_BUILTIN_TGMATH. | |
2772 | ||
025d57f0 MS |
2773 | 2017-11-10 Martin Sebor <msebor@redhat.com> |
2774 | ||
2775 | PR c/81117 | |
2776 | * c-common.c (catenate_strings): Use memcpy instead of strncpy. | |
2777 | * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays. | |
2778 | * c.opt (-Wstringop-truncation): New option. | |
2779 | ||
1b6fa695 ML |
2780 | 2017-11-06 Martin Liska <mliska@suse.cz> |
2781 | ||
2782 | PR middle-end/82404 | |
2783 | * c-opts.c (c_common_post_options): Set -Wreturn-type for C++ | |
2784 | FE. | |
2785 | * c.opt: Set default value of warn_return_type. | |
2786 | ||
64a5912c DM |
2787 | 2017-10-31 David Malcolm <dmalcolm@redhat.com> |
2788 | ||
2789 | * c-common.c (binary_op_error): Update for renaming of | |
2790 | error_at_rich_loc. | |
2791 | (c_parse_error): Likewise. | |
2792 | * c-warn.c (warn_logical_not_parentheses): Likewise for | |
2793 | renaming of inform_at_rich_loc. | |
2794 | (warn_for_restrict): Likewise for renaming of | |
2795 | warning_at_rich_loc_n. | |
2796 | ||
c76dc9c3 JM |
2797 | 2017-10-30 Joseph Myers <joseph@codesourcery.com> |
2798 | ||
2799 | * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options. | |
2800 | * c-opts.c (set_std_c17): New function. | |
2801 | (c_common_init_options): Use gnu17 as default C version. | |
2802 | (c_common_handle_option): Handle -std=c17 and -std=gnu17. | |
2803 | ||
ee5fd23a MM |
2804 | 2017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com> |
2805 | ||
2806 | * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode. | |
2807 | (c_cpp_builtins): If a machine has a fast fma _Float<N> and | |
2808 | _Float<N>X variant, define __FP_FAST_FMA<N> and/or | |
2809 | __FP_FAST_FMA<N>X. | |
2810 | ||
d1047465 MP |
2811 | 2017-10-23 Marek Polacek <polacek@redhat.com> |
2812 | ||
2813 | PR c/82681 | |
2814 | * c-warn.c (warnings_for_convert_and_check): Fix typos. | |
2815 | ||
9e878cf1 EB |
2816 | 2017-10-19 Eric Botcazou <ebotcazou@adacore.com> |
2817 | ||
2818 | * c-common.c (check_builtin_function_arguments): Also check arguments | |
2819 | of __builtin_alloca_with_align_and_max. | |
2820 | ||
89b6abbb DM |
2821 | 2017-10-17 David Malcolm <dmalcolm@redhat.com> |
2822 | ||
2823 | * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION | |
2824 | rather than NULL to format_warning_va. | |
2825 | (check_format_types): Likewise when calling format_type_warning. | |
2826 | Remove code to extract source_ranges and source_range * in favor | |
2827 | of just a location_t. | |
2828 | (format_type_warning): Convert source_range * param to a | |
2829 | location_t. | |
2830 | ||
39382c09 JJ |
2831 | 2017-10-13 Jakub Jelinek <jakub@redhat.com> |
2832 | ||
2833 | * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like | |
2834 | [LR]SHIFT_EXPR. | |
2835 | ||
62e1c678 DM |
2836 | 2017-10-12 David Malcolm <dmalcolm@redhat.com> |
2837 | ||
2838 | * c-common.c (enum missing_token_insertion_kind): New enum. | |
2839 | (get_missing_token_insertion_kind): New function. | |
2840 | (maybe_suggest_missing_token_insertion): New function. | |
2841 | * c-common.h (maybe_suggest_missing_token_insertion): New decl. | |
2842 | ||
b90c9338 NS |
2843 | 2017-10-11 Nathan Sidwell <nathan@acm.org> |
2844 | ||
2845 | * c-opts.c (add_prefixed_path): Change chain to incpath_kind. | |
2846 | (c_common_handle_option): Update incpath_kind names. | |
2847 | ||
3a266bcd ML |
2848 | 2017-10-11 Martin Liska <mliska@suse.cz> |
2849 | ||
2850 | PR sanitizer/82490 | |
2851 | * c-attribs.c (handle_no_sanitize_attribute): Report directly | |
2852 | Wattributes warning. | |
2853 | ||
8e6cdc90 RS |
2854 | 2017-10-10 Richard Sandiford <richard.sandiford@linaro.org> |
2855 | ||
2856 | * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when | |
2857 | operating on trees as wide_ints. | |
2858 | * c-common.c (pointer_int_sum): Likewise. | |
2859 | * c-pretty-print.c (pp_c_integer_constant): Likewise. | |
2860 | * c-warn.c (match_case_to_enum_1): Likewise. | |
2861 | (c_do_switch_warnings): Likewise. | |
2862 | (maybe_warn_shift_overflow): Likewise. | |
2863 | ||
802b38c9 JJ |
2864 | 2017-10-10 Jakub Jelinek <jakub@redhat.com> |
2865 | ||
2866 | PR c/82437 | |
2867 | * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide | |
2868 | instead of wide_int::from. | |
2869 | ||
4e34b338 JJ |
2870 | 2017-10-06 Jakub Jelinek <jakub@redhat.com> |
2871 | ||
2872 | PR c/82437 | |
2873 | * c-warn.c (warn_tautological_bitwise_comparison): Instead of | |
2874 | using to_widest use wide_int with the larger of the two precisions. | |
2875 | ||
4bc4b2b4 BE |
2876 | 2017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de> |
2877 | ||
2878 | * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic | |
2879 | functions. | |
2880 | ||
a1488398 RS |
2881 | 2017-10-02 Richard Sandiford <richard.sandiford@linaro.org> |
2882 | ||
2883 | * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest | |
2884 | when combining the original unconverted comparison operands. | |
2885 | ||
01c9fb68 JJ |
2886 | 2017-09-29 Jakub Jelinek <jakub@redhat.com> |
2887 | ||
2888 | * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect" | |
2889 | attribute. | |
2890 | ||
6e3e8419 EB |
2891 | 2017-09-29 Eric Botcazou <ebotcazou@adacore.com> |
2892 | ||
2893 | * c-ada-spec.c (to_ada_name): Add index parameter. | |
2894 | (pp_ada_tree_identifier): Likewise. | |
2895 | (dump_ada_macros): Adjust call to to_ada_name. | |
2896 | (struct overloaded_name_hash): New type. | |
2897 | (struct overloaded_name_hasher): Likewise. | |
2898 | (overloaded_names): New hash table. | |
2899 | (compute_overloading_index): New function. | |
2900 | (dump_ada_decl_name): Call it and pass the result to | |
2901 | pp_ada_tree_identifier. | |
2902 | (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier. | |
2903 | (dump_ada_function_declaration): Likewise. | |
2904 | (dump_generic_ada_node): Likewise. | |
2905 | (print_constructor): Likewise. | |
2906 | (print_destructor): Likewise. | |
2907 | (dump_ada_specs): Delete overloaded_names table. | |
2908 | ||
79310774 EB |
2909 | 2017-09-29 Eric Botcazou <ebotcazou@adacore.com> |
2910 | ||
2911 | * c-ada-spec.c (max_ada_macros): Move around. | |
2912 | (store_ada_macro_index): Likewise. | |
2913 | (source_file): Rename into... | |
2914 | (macro_source_file): ...this. | |
2915 | (count_ada_macro): Move around. | |
2916 | (store_ada_macro): Likewise. | |
2917 | (compare_macro): Likewise. | |
2918 | (print_ada_macros): Merge in... | |
2919 | (dump_ada_macros): ...this. | |
2920 | (source_file_base): Rename into... | |
2921 | (current_source_file): ...this. | |
2922 | (print_comment): Move around. | |
2923 | (dump_ada_nodes): Call dump_ada_declaration directly. | |
2924 | (struct with): Change type of limited field to bool. | |
2925 | (append_withs): Change type of limited_access parameter to bool. | |
2926 | (pp_ada_tree_identifie): Likewise. | |
2927 | (dump_ada_decl_nam): Likewise. | |
2928 | (dump_generic_ada_node): Likewise. Do not print the return type. | |
2929 | (to_ada_name): Change type of space_found parameter to bool. | |
2930 | (dump_ada_function_declaration): Return void and change type of | |
2931 | parameters to bool. Also print the return type for a function. | |
2932 | (print_ada_methods): Rename into... | |
2933 | (dump_ada_methods): ...this. | |
2934 | (print_ada_declaration): Rename into ... | |
2935 | (dump_ada_declaration): ...this. Do not print the return type. | |
2936 | (print_ada_struct_decl): Rename into... | |
2937 | (dump_ada_struct_decl): ...this. | |
2938 | ||
7d386d45 JJ |
2939 | 2017-09-29 Jakub Jelinek <jakub@redhat.com> |
2940 | ||
2941 | * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD | |
2942 | rather than DECL_INITIAL. | |
2943 | (common_handle_aligned_attribute): Likewise. | |
2944 | ||
ab20d992 | 2945 | 2017-09-20 Alexandre Oliva <aoliva@redhat.com> |
9ed32e27 AO |
2946 | |
2947 | * c.opt (gen-decls): Add RejectNegative. | |
2948 | ||
026a79f7 AS |
2949 | 2017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com> |
2950 | Jakub Jelinek <jakub@redhat.com> | |
2951 | ||
2952 | Add support for -std=c++2a. | |
2953 | * c-common.h (cxx_dialect): Add cxx2a as a dialect. | |
2954 | * opt.c: Add options for -std=c++2a and -std=gnu++2a. | |
2955 | * c-opts.c (set_std_cxx2a): New. | |
2956 | (c_common_handle_option): Set options when -std=c++2a is enabled. | |
2957 | (c_common_post_options): Adjust comments. | |
2958 | (set_std_cxx14, set_std_cxx17): Likewise. | |
2959 | ||
4a8ca690 EB |
2960 | 2017-09-15 Eric Botcazou <ebotcazou@adacore.com> |
2961 | ||
2962 | * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error | |
2963 | message for non-uniform endianness and issue a warning in C++. | |
2964 | ||
7b936140 JJ |
2965 | 2017-09-15 Jakub Jelinek <jakub@redhat.com> |
2966 | ||
2967 | * c.opt (Wc++1z-compat): Change from option to undocumented alias. | |
2968 | (Wc++17-compat): Change from undocumented alias to option. | |
2969 | (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat, | |
2970 | change C++1z to C++17 in description. | |
2971 | (std=c++1z, std=gnu++1z): Change from option to undocumented | |
2972 | deprecated alias. | |
2973 | (std=c++17, std=gnu++17): Change from undocumented alias to option. | |
2974 | Adjust description. | |
2975 | * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17. | |
2976 | * c-opts.c (set_std_cxx1z): Rename to ... | |
2977 | (set_std_cxx17): ... this. | |
2978 | (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17 | |
2979 | and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z | |
7365279f | 2980 | caller. |
7b936140 JJ |
2981 | (c_common_post_options): Use cxx17 instead of cxx1z. Adjust |
2982 | comments. | |
2983 | ||
12263f13 L |
2984 | 2017-09-12 H.J. Lu <hongjiu.lu@intel.com> |
2985 | ||
2986 | * c-attribs.c (common_handle_aligned_attribute): Don't warn | |
2987 | function alignment if warn_if_not_aligned_p is true. | |
2988 | ||
6836632e NS |
2989 | 2017-09-12 Nathan Sidwell <nathan@acm.org> |
2990 | ||
2991 | * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp, | |
2992 | resort_sorted_fields): Move to c/c-decl.c. | |
2993 | * c-common.h (field_decl_cmp, resort_sorted_fields): Delete. | |
2994 | (struct sorted_fields_type): Move to c/c-lang.h. | |
2995 | ||
019bf9ad JW |
2996 | 2017-09-09 Jonathan Wakely <jwakely@redhat.com> |
2997 | ||
2998 | PR c++/81852 | |
2999 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init. | |
3000 | ||
bc7fe952 MP |
3001 | 2017-09-04 Marek Polacek <polacek@redhat.com> |
3002 | ||
3003 | PR c/81783 | |
3004 | * c-warn.c (warn_tautological_bitwise_comparison): New function. | |
3005 | (warn_tautological_cmp): Call it. | |
3006 | ||
ab20d992 | 3007 | 2017-09-01 Boris Kolpackov <boris@codesynthesis.com> |
de7c2c6a BK |
3008 | |
3009 | * c-opts.c (c_common_finish): Write dependency information even if | |
3010 | there are errors. | |
3011 | ||
d2e05fcb JJ |
3012 | 2017-09-01 Jakub Jelinek <jakub@redhat.com> |
3013 | ||
3014 | PR c/81887 | |
3015 | * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ... | |
3016 | (omp_pragmas_simd): ... here. | |
3017 | * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone, | |
3018 | create new clauses list containing just simd clause. | |
3019 | ||
18e2a8b8 RS |
3020 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
3021 | Alan Hayward <alan.hayward@arm.com> | |
3022 | David Sherwood <david.sherwood@arm.com> | |
3023 | ||
3024 | * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call | |
3025 | into scalar_mode_supported_p call. | |
3026 | (handle_mode_attribute): Update call to scalar_mode_supported_p. | |
3027 | ||
16d22000 RS |
3028 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
3029 | Alan Hayward <alan.hayward@arm.com> | |
3030 | David Sherwood <david.sherwood@arm.com> | |
3031 | ||
3032 | * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode | |
3033 | for the mode iterator. | |
3034 | ||
b397965c RS |
3035 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
3036 | Alan Hayward <alan.hayward@arm.com> | |
3037 | David Sherwood <david.sherwood@arm.com> | |
3038 | ||
3039 | * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE. | |
3040 | * c-common.c (c_build_vec_perm_expr): Likewise. | |
3041 | ||
357b7604 RS |
3042 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
3043 | Alan Hayward <alan.hayward@arm.com> | |
3044 | David Sherwood <david.sherwood@arm.com> | |
3045 | ||
3046 | * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>. | |
3047 | ||
e05c94ba RS |
3048 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
3049 | Alan Hayward <alan.hayward@arm.com> | |
3050 | David Sherwood <david.sherwood@arm.com> | |
3051 | ||
3052 | * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode | |
3053 | before calling targetm.addr_space.valid_pointer_mode. | |
3054 | ||
5c20c4af RS |
3055 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
3056 | Alan Hayward <alan.hayward@arm.com> | |
3057 | David Sherwood <david.sherwood@arm.com> | |
3058 | ||
3059 | * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode. | |
3060 | ||
c94843d2 | 3061 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
92a285c1 ML |
3062 | Alan Hayward <alan.hayward@arm.com> |
3063 | David Sherwood <david.sherwood@arm.com> | |
c94843d2 RS |
3064 | |
3065 | * c-common.c (c_common_fixed_point_type_for_size): Use new mode | |
3066 | iterators. | |
3067 | * c-cppbuiltin.c (c_cpp_builtins): Likewise. | |
3068 | ||
4e10a5a7 RS |
3069 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
3070 | Alan Hayward <alan.hayward@arm.com> | |
3071 | David Sherwood <david.sherwood@arm.com> | |
3072 | ||
3073 | * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in | |
3074 | case statements. | |
3075 | ||
130fcab0 ML |
3076 | 2017-08-29 Martin Liska <mliska@suse.cz> |
3077 | ||
3078 | PR other/39851 | |
3079 | * c-common.c (parse_optimize_options): Add argument to function | |
3080 | call. | |
3081 | * c-pragma.c (handle_pragma_diagnostic): Likewise. | |
3082 | ||
14e18d71 DM |
3083 | 2017-08-24 David Malcolm <dmalcolm@redhat.com> |
3084 | ||
3085 | * c-lex.c (interpret_float): Use token location | |
3086 | when building an EXCESS_PRECISION_EXPR. | |
3087 | ||
2f687306 DM |
3088 | 2017-08-21 David Malcolm <dmalcolm@redhat.com> |
3089 | ||
3090 | * c-common.c (check_function_arguments): Add "arglogs" param; pass | |
3091 | it to check_function_format. | |
3092 | * c-common.h (check_function_arguments): Add vec<location_t> * | |
3093 | param. | |
3094 | (check_function_format): Likewise. | |
3095 | * c-format.c (struct format_check_context): Add field "arglocs". | |
3096 | (check_function_format): Add param "arglocs"; pass it to | |
3097 | check_format_info. | |
ab20d992 | 3098 | (check_format_info): Add param "arglocs"; use it to initialize |
2f687306 DM |
3099 | new field of format_ctx. |
3100 | (check_format_arg): Pass format_ctx->arglocs to new param of | |
3101 | check_format_info_main. | |
3102 | (class argument_parser): New field "arglocs". | |
3103 | (argument_parser::argument_parser): Add "arglocs_" param and use | |
3104 | it to initialize new field. | |
3105 | (argument_parser::check_argument_type): Pass new arglocs field to | |
3106 | check_format_types. | |
3107 | (check_format_info_main): Add param "arglocs", and use it when | |
3108 | constructing arg_parser. | |
3109 | (check_format_types): Add param "arglocs"; use it if non-NULL when | |
3110 | !EXPR_HAS_LOCATION (cur_param) to get at location information. | |
3111 | ||
00aa1fa2 L |
3112 | 2017-08-18 H.J. Lu <hongjiu.lu@intel.com> |
3113 | ||
3114 | PR c/53037 | |
3115 | * c-attribs.c (handle_warn_if_not_aligned_attribute): New. | |
3116 | (c_common_attribute_table): Add warn_if_not_aligned. | |
3117 | (handle_aligned_attribute): Renamed to ... | |
3118 | (common_handle_aligned_attribute): Remove argument, name, and add | |
3119 | argument, warn_if_not_aligned. Handle warn_if_not_aligned. | |
3120 | (handle_aligned_attribute): New. | |
3121 | * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned. | |
3122 | ||
27be025d MS |
3123 | 2017-08-14 Martin Sebor <msebor@redhat.com> |
3124 | ||
3125 | PR c/81117 | |
3126 | * c-attribs.c (c_common_attribute_table): Add nonstring entry. | |
3127 | (handle_nonstring_attribute): New function. | |
3128 | ||
da67acb9 MS |
3129 | 2017-08-14 Martin Sebor <msebor@redhat.com> |
3130 | ||
3131 | PR c/81117 | |
3132 | * c-format.h (T89_G): New macro. | |
3133 | * c-format.c (local_gcall_ptr_node): New variable. | |
3134 | (init_dynamic_diag_info): Initialize it. | |
3135 | ||
a8b522b4 ML |
3136 | 2017-08-11 Martin Liska <mliska@suse.cz> |
3137 | ||
3138 | * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with | |
3139 | TARGET_SUPPORTS_ALIASES. | |
3140 | ||
32129a17 DM |
3141 | 2017-08-10 David Malcolm <dmalcolm@redhat.com> |
3142 | ||
3143 | * c-common.c (c_parse_error): Add rich_location * param, using it | |
3144 | rather implicitly using input_location. | |
3145 | * c-common.h (c_parse_error): Add rich_location * param. | |
3146 | ||
30af3a2b MP |
3147 | 2017-08-09 Marek Polacek <polacek@redhat.com> |
3148 | ||
3149 | * c-common.c (pointer_int_sum): Use true/false instead of 1/0. | |
3150 | (c_common_truthvalue_conversion): Likewise. | |
3151 | * c-omp.c (c_finish_omp_atomic): Likewise. | |
3152 | * c-common.h (build_binary_op): Update declaration. | |
3153 | ||
314e6352 ML |
3154 | 2017-08-08 Martin Liska <mliska@suse.cz> |
3155 | ||
3156 | * c-ada-spec.c: Include header files. | |
3157 | * c-ubsan.c: Likewise. | |
3158 | * c-warn.c: Likewise. | |
3159 | ||
56b5041c JJ |
3160 | 2017-08-07 Jakub Jelinek <jakub@redhat.com> |
3161 | ||
3162 | PR c/69389 | |
3163 | * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields. | |
3164 | ||
db440138 EB |
3165 | 2017-08-07 Eric Botcazou <ebotcazou@adacore.com> |
3166 | ||
3167 | * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL. | |
3168 | (print_ada_methods): Likewise. | |
3169 | (print_ada_declaration): Likewise. | |
3170 | ||
577eec56 ML |
3171 | 2017-08-07 Martin Liska <mliska@suse.cz> |
3172 | ||
3173 | * array-notation-common.c: Add new includes. | |
3174 | * c-format.c( handle_format_attribute): Canonicalize a format | |
3175 | function name. | |
3176 | * c-lex.c (c_common_has_attribute): Canonicalize name of an | |
3177 | attribute. | |
3178 | * c-pretty-print.c: Add new include. | |
3179 | ||
b854df3c EB |
3180 | 2017-08-05 Eric Botcazou <ebotcazou@adacore.com> |
3181 | ||
3182 | * c-ada-spec.c (has_static_fields): Look only into variables. | |
3183 | (print_constructor): Add TYPE parameter and use it for the name. | |
3184 | (print_destructor): Likewise. | |
3185 | (print_ada_declaration): Adjust to new constructor/destructor names. | |
3186 | Adjust calls to print_constructor and print_destructor. | |
3187 | (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL. | |
3188 | Look only into variables in the final loop. | |
3189 | ||
9f2cb25e EB |
3190 | 2017-08-01 Eric Botcazou <ebotcazou@adacore.com> |
3191 | ||
3192 | * c-ada-spec.c (has_static_fields): Look only into fields. | |
3193 | (dump_generic_ada_node): Small tweak. | |
3194 | (dump_nested_types): Look only into fields. | |
3195 | (print_ada_declaration): Look only into methods. Small tweak. | |
3196 | (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P. | |
3197 | ||
f4bcd9eb EB |
3198 | 2017-08-01 Eric Botcazou <ebotcazou@adacore.com> |
3199 | ||
3200 | * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant. | |
3201 | (dump_ada_function_declaration): Likewise. | |
3202 | (dump_generic_ada_node): Likewise. | |
3203 | (print_ada_declaration): Add support for const-qualified variables. | |
3204 | ||
f34ebeb2 ML |
3205 | 2017-07-31 Martin Liska <mliska@suse.cz> |
3206 | ||
3207 | PR sanitize/81530 | |
3208 | * c-ubsan.c (ubsan_maybe_instrument_array_ref): | |
3209 | Guard condition with flag_sanitize_p also with current_function_decl | |
3210 | non-null equality. | |
3211 | (ubsan_maybe_instrument_reference_or_call): Likewise. | |
3212 | ||
218e5d04 UB |
3213 | 2017-07-30 Uros Bizjak <ubizjak@gmail.com> |
3214 | ||
3215 | * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars. | |
3216 | ||
942047f2 EB |
3217 | 2017-07-29 Eric Botcazou <ebotcazou@adacore.com> |
3218 | ||
3219 | * c-ada-spec.c (dump_generic_ada_node): Take into account signedness | |
3220 | for enumeral types. | |
3221 | (print_ada_declaration): Add missing guard for record types. | |
3222 | ||
a40ff0ae JJ |
3223 | 2017-07-27 Jakub Jelinek <jakub@redhat.com> |
3224 | ||
3225 | PR c/45784 | |
3226 | * c-omp.c (c_finish_omp_for): If the condition is wrapped in | |
3227 | rhs of COMPOUND_EXPR(s), skip them and readd their lhs into | |
3228 | new COMPOUND_EXPRs around the rhs of the comparison. | |
3229 | ||
06bd22f6 MP |
3230 | 2017-07-27 Marek Polacek <polacek@redhat.com> |
3231 | ||
3232 | PR c/81417 | |
3233 | * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print | |
3234 | the types. | |
3235 | ||
036ea399 JJ |
3236 | 2017-07-27 Jakub Jelinek <jakub@redhat.com> |
3237 | ||
3238 | * c-attribs.c (c_common_attribute_table): Add noipa attribute. | |
3239 | (handle_noipa_attribute): New function. | |
3240 | ||
417ca011 TD |
3241 | 2017-07-07 Torsten Duwe <duwe@suse.de> |
3242 | ||
3243 | * c-attribs.c (c_common_attribute_table): Add entry for | |
3244 | "patchable_function_entry". | |
3245 | ||
5aaa8fb4 NS |
3246 | 2017-07-20 Nathan Sidwell <nathan@acm.org> |
3247 | ||
3248 | Remove TYPE_METHODS. | |
3249 | * c-ada-spec.c (is_tagged_type, has_nontrivial_methods, | |
3250 | dump_ada_template, print_ada_methods, | |
3251 | print_ada_declaration): Member fns are on TYPE_FIELDS. | |
3252 | ||
ff22eb12 NS |
3253 | 2017-07-18 Nathan Sidwell <nathan@acm.org> |
3254 | ||
3255 | * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE. | |
3256 | ||
eea77d1f DM |
3257 | 2017-07-14 David Malcolm <dmalcolm@redhat.com> |
3258 | ||
3259 | * c-common.c (try_to_locate_new_include_insertion_point): New | |
3260 | function. | |
3261 | (per_file_includes_t): New typedef. | |
3262 | (added_includes_t): New typedef. | |
3263 | (added_includes): New variable. | |
3264 | (maybe_add_include_fixit): New function. | |
3265 | * c-common.h (maybe_add_include_fixit): New decl. | |
3266 | ||
281ac396 MS |
3267 | 2017-07-10 Martin Sebor <msebor@redhat.com> |
3268 | ||
3269 | PR other/81345 | |
3270 | * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy. | |
3271 | ||
b6f43128 DM |
3272 | 2017-07-06 David Malcolm <dmalcolm@redhat.com> |
3273 | ||
3274 | * c-common.c (selftest::c_family_tests): New. | |
3275 | * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h. | |
3276 | (selftest::c_family_tests): New decl. | |
3277 | ||
efbf55b0 MP |
3278 | 2017-07-04 Marek Polacek <polacek@redhat.com> |
3279 | ||
3280 | PR c/81231 | |
3281 | * c-common.c (sync_resolve_size): Give error for pointers to incomplete | |
3282 | types. | |
3283 | ||
6c86bd88 MP |
3284 | 2017-07-04 Marek Polacek <polacek@redhat.com> |
3285 | ||
3286 | * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling. | |
3287 | ||
17a7218b ML |
3288 | 2017-06-28 Martin Liska <mliska@suse.cz> |
3289 | ||
3290 | PR ipa/81128 | |
3291 | * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias | |
3292 | to a function declaration. | |
3293 | ||
63010089 ML |
3294 | 2017-06-28 Martin Liska <mliska@suse.cz> |
3295 | ||
3296 | PR driver/79659 | |
3297 | * c.opt: Add IntegerRange to various options. | |
3298 | ||
3e2becc4 MP |
3299 | 2017-06-26 Marek Polacek <polacek@redhat.com> |
3300 | ||
3301 | PR c/80116 | |
3302 | * c-common.h (warn_for_multistatement_macros): Declare. | |
3303 | * c-warn.c: Include "c-family/c-indentation.h". | |
3304 | (warn_for_multistatement_macros): New function. | |
3305 | * c.opt (Wmultistatement-macros): New option. | |
3306 | * c-indentation.c (guard_tinfo_to_string): No longer static. | |
3307 | Change the parameter type to "enum rid". Handle RID_SWITCH. | |
3308 | * c-indentation.h (guard_tinfo_to_string): Declare. | |
3309 | ||
2db9b7cd MG |
3310 | 2017-06-23 Marc Glisse <marc.glisse@inria.fr> |
3311 | ||
3312 | * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types. | |
3313 | ||
c3684b7b MS |
3314 | 2017-06-15 Martin Sebor <msebor@redhat.com> |
3315 | ||
3316 | PR c++/80560 | |
3317 | * c.opt (-Wclass-memaccess): New option. | |
3318 | ||
e72c4afd BK |
3319 | 2017-06-14 Boris Kolpackov <boris@codesynthesis.com> |
3320 | ||
3321 | * c-opts.c (c_common_finish): Handle '-' special value to -MF. | |
3322 | ||
8a516588 MP |
3323 | 2017-06-13 Marek Polacek <polacek@redhat.com> |
3324 | ||
3325 | PR objc/80949 | |
3326 | * c-warn.c (do_warn_duplicated_branches): Return if any of the | |
3327 | branches is null. | |
3328 | ||
45b2222a ML |
3329 | 2017-06-13 Martin Liska <mliska@suse.cz> |
3330 | ||
3331 | PR sanitize/78204 | |
3332 | * c-attribs.c (add_no_sanitize_value): New function. | |
3333 | (handle_no_sanitize_attribute): Likewise. | |
3334 | (handle_no_sanitize_address_attribute): Use the function. | |
3335 | (handle_no_sanitize_thread_attribute): New function. | |
3336 | (handle_no_address_safety_analysis_attribute): Use | |
3337 | add_no_sanitize_value. | |
3338 | (handle_no_sanitize_undefined_attribute): Likewise. | |
3339 | * c-common.h: Declare new functions. | |
3340 | * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p. | |
3341 | (ubsan_instrument_shift): Likewise. | |
3342 | (ubsan_instrument_bounds): Likewise. | |
3343 | (ubsan_maybe_instrument_array_ref): Likewise. | |
3344 | (ubsan_maybe_instrument_reference_or_call): Likewise. | |
3345 | ||
a01f151f JM |
3346 | 2017-06-11 Jason Merrill <jason@redhat.com> |
3347 | ||
3348 | * c-ada-spec.c, c-pragma.c: Use id_equal. | |
3349 | ||
3de4ac6d MP |
3350 | 2017-06-04 Marek Polacek <polacek@redhat.com> |
3351 | ||
3352 | PR c/80919 | |
3353 | * c-format.c (matching_type_p): Return false if any of the types | |
3354 | requires structural equality. | |
3355 | ||
2474f48f MS |
3356 | 2017-06-02 Martin Sebor <msebor@redhat.com> |
3357 | ||
3358 | PR c/80892 | |
3359 | * c-warn.c (conversion_warning): Use -Wconversion for integer | |
3360 | conversion and -Wfloat-conversion for floating one. | |
3361 | ||
40ffd95f BE |
3362 | 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de> |
3363 | ||
3364 | * c.opt (Wsizeof-pointer-div): New warning option. | |
3365 | ||
3fa4634c VR |
3366 | 2017-06-01 Volker Reichelt <v.reichelt@netcologne.de> |
3367 | ||
3368 | * c.opt (Wcatch-value): New shortcut for Wcatch-value=1. | |
3369 | (Wcatch-value=1): Enable by -Wall. | |
3370 | ||
f012c8ef DM |
3371 | 2017-05-30 David Malcolm <dmalcolm@redhat.com> |
3372 | ||
3373 | * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to | |
3374 | format_chars. | |
3375 | * c.opt (fdiagnostics-show-template-tree): New option. | |
3376 | (felide-type): New option. | |
3377 | ||
63dbcd13 VR |
3378 | 2017-05-25 Volker Reichelt <v.reichelt@netcologne.de> |
3379 | ||
3380 | * c.opt (Wcatch-value=): New C++ warning flag. | |
3381 | ||
be136b5c NS |
3382 | 2017-05-24 Nathan Sidwell <nathan@acm.org> |
3383 | ||
3384 | * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T | |
3385 | const casts to avoid warning. | |
3386 | ||
3cd211af MS |
3387 | 2017-05-24 Martin Sebor <msebor@redhat.com> |
3388 | ||
3389 | PR c/80731 | |
3390 | * c-common.h (unsafe_conversion_p): Add a function argument. | |
3391 | * c-common.c (unsafe_conversion_p): Same. | |
3392 | Add type names and values to diagnostics. | |
3393 | (scalar_to_vector): Adjust. | |
3394 | * c-warn.c (constant_expression_error): Add a function argument. | |
3395 | Add type names and values to diagnostics. | |
3396 | (conversion_warning): Add a function argument. | |
3397 | Add type names and values to diagnostics. | |
3398 | (warnings_for_convert_and_check): Same. | |
3399 | ||
1ff7be5a JM |
3400 | 2017-05-19 Jason Merrill <jason@redhat.com> |
3401 | ||
3402 | * c-warn.c (match_case_to_enum_1): Don't warn about enums with no | |
3403 | enumerators. | |
3404 | ||
ff502317 BE |
3405 | 2017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de> |
3406 | ||
3407 | * c-format.c (locus): Move out of function scope, | |
3408 | add GTY attribute. | |
3409 | ||
2a8a8d7b NS |
3410 | 2017-05-19 Nathan Sidwell <nathan@acm.org> |
3411 | ||
3412 | * c-opts.c (class_dump_file, class_dump_flags): Delete. | |
3413 | (c_common_parse_file): Remove class dump handling. | |
3414 | (get_dump_info): Likewise. | |
3415 | ||
39aac208 RB |
3416 | 2017-05-19 Richard Biener <rguenther@suse.de> |
3417 | ||
3418 | PR c++/80593 | |
3419 | * c-warn.c (strict_aliasing_warning): Do not warn for accesses | |
3420 | to alias-set zero memory. | |
3421 | ||
6ecd2339 BE |
3422 | 2017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de> |
3423 | ||
3424 | * c-format.c (local_tree_type_node): Add GTY attribute. | |
3425 | ||
6574d78e MP |
3426 | 2017-05-18 Marek Polacek <polacek@redhat.com> |
3427 | ||
3428 | * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0. | |
3429 | (c_common_fixed_point_type_for_size): Likewise. | |
3430 | (c_common_type_for_mode): Likewise. | |
3431 | (shorten_compare): Likewise. | |
3432 | (c_promoting_integer_type_p): Use false/true instead of 0/1. | |
3433 | * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0. | |
3434 | ||
e3455240 MP |
3435 | 2017-05-18 Marek Polacek <polacek@redhat.com> |
3436 | ||
3437 | * c-common.c (self_promoting_args_p): Change the return type to bool. | |
3438 | Use false/true instead of 0/1. | |
3439 | * c-common.h (self_promoting_args_p): Update. | |
3440 | ||
3fa8871b MP |
3441 | 2017-05-17 Marek Polacek <polacek@redhat.com> |
3442 | ||
3443 | * c-common.c: Use NULL_TREE instead of 0 where appropriate. | |
3444 | * c-warn.c: Likewise. | |
3445 | ||
b42cc3ca VV |
3446 | 2017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com> |
3447 | ||
3448 | Implement new C++ intrinsics __is_assignable and __is_constructible. | |
3449 | * c-common.c (__is_assignable, __is_constructible): New. | |
3450 | * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise. | |
3451 | ||
1a817418 ML |
3452 | 2017-05-17 Martin Liska <mliska@suse.cz> |
3453 | ||
3454 | * c-common.h: Introduce dump_flags_t type and | |
3455 | use it instead of int type. | |
3456 | * c-gimplify.c (c_genericize): Likewise. | |
3457 | * c-opts.c: Likewise. | |
3458 | ||
b2fa0a8b MP |
3459 | 2017-05-17 Marek Polacek <polacek@redhat.com> |
3460 | ||
3461 | * c-common.c (c_save_expr): Remove. | |
3462 | (c_common_truthvalue_conversion): Remove a call to c_save_expr. | |
3463 | * c-common.h (c_save_expr): Remove declaration. | |
3464 | ||
31c2d57d VR |
3465 | 2017-05-09 Volker Reichelt <v.reichelt@netcologne.de> |
3466 | ||
3467 | PR c/35441 | |
3468 | * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR, | |
3469 | MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR. | |
3470 | (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR. | |
3471 | (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR, | |
3472 | RDIV_EXPR. | |
3473 | (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR. | |
3474 | ||
684f84de MP |
3475 | 2017-05-09 Marek Polacek <polacek@redhat.com> |
3476 | ||
3477 | PR c/80525 | |
3478 | * c-warn.c (unwrap_c_maybe_const): New. | |
3479 | (warn_logical_operator): Call it. | |
3480 | ||
641da50a NS |
3481 | 2017-05-09 Nathan Sidwell <nathan@acm.org> |
3482 | ||
3483 | * c-common.c (c_register_builtin_type): Use pushdecl lang_hook. | |
3484 | * c-common.h (pushdecl_top_level, pushdecl): Don't declare here. | |
3485 | ||
631238ac MS |
3486 | 2017-05-08 Martin Sebor <msebor@redhat.com> |
3487 | ||
3488 | PR translation/80280 | |
3489 | * c-format.h (struct format_flag_spec): Add new member. | |
3490 | (T89_T): New macro. | |
3491 | * c-format.c (local_tree_type_node): New global. | |
3492 | (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data. | |
3493 | (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto. | |
3494 | (strfmon_flag_specs): Likewise. | |
3495 | (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers | |
3496 | with distinct quoting properties. | |
3497 | (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same. | |
3498 | (flag_chars_t::validate): Add argument and handle bad quoting. | |
3499 | (check_format_info_main): Handle quoting problems. | |
3500 | (init_dynamic_diag_info): Simplify. | |
3501 | ||
49f0c04c JM |
3502 | 2017-05-08 Jason Merrill <jason@redhat.com> |
3503 | ||
3504 | * c-opts.c (c_common_post_options): Update defaults for | |
3505 | flag_abi_version and flag_abi_compat_version. | |
3506 | ||
56d35585 DM |
3507 | 2017-05-05 David Malcolm <dmalcolm@redhat.com> |
3508 | ||
3509 | * c-common.c (c_cpp_error): Replace report_diagnostic | |
3510 | with diagnostic_report_diagnostic. | |
3511 | ||
0f2c4a8f MS |
3512 | 2017-05-04 Martin Sebor <msebor@redhat.com> |
3513 | ||
3514 | PR translation/80280 | |
3515 | * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive. | |
3516 | (handle_weakref_attribute): Same. | |
3517 | ||
6fe63fb4 NS |
3518 | 2017-05-03 Nathan Sidwell <nathan@acm.org> |
3519 | ||
3520 | Canonicalize canonical type hashing | |
3521 | * c-common.c (complete_array_type): Use type_hash_canon. | |
3522 | ||
815d9cc6 XR |
3523 | 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn> |
3524 | ||
92a285c1 | 3525 | PR c++/80038 |
815d9cc6 XR |
3526 | * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove |
3527 | prototype. | |
3528 | (cilk_install_body_pedigree_operations): Likewise. | |
3529 | * cilk.c (cilk_set_spawn_marker): Mark functions that should be | |
3530 | detatched. | |
3531 | (cilk_gimplify_call_params_in_spawned_fn): Remove. | |
3532 | (cilk_install_body_pedigree_operations): Likewise. | |
3533 | (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR | |
3534 | unwrapping. | |
3535 | ||
f8a36447 JJ |
3536 | 2017-04-27 Jakub Jelinek <jakub@redhat.com> |
3537 | ||
3538 | PR c++/80534 | |
3539 | * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE | |
3540 | flag on non-aggregate element types. | |
3541 | ||
7c145456 BE |
3542 | 2017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de> |
3543 | ||
3544 | * c-common.c (c_type_hasher, type_hash_table): Remove. | |
3545 | (c_common_get_alias_set): Remove unreachable code. | |
3546 | * c-opts.c (c_common_post_options): Make sure cc1 takes only one file. | |
3547 | ||
c3cbcd45 VR |
3548 | 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de> |
3549 | ||
3550 | * c.opt (Wextra-semi): New C++ warning flag. | |
3551 | ||
8a59d466 JJ |
3552 | 2017-04-20 Jakub Jelinek <jakub@redhat.com> |
3553 | ||
3554 | PR middle-end/80423 | |
3555 | * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE. | |
3556 | ||
8487c9a5 JJ |
3557 | 2017-04-18 Jakub Jelinek <jakub@redhat.com> |
3558 | ||
3559 | PR middle-end/79788 | |
3560 | PR middle-end/80375 | |
3561 | * c-common.c (c_common_type_for_mode): Don't handle | |
3562 | widest_*_literal_type_node here. | |
3563 | c_common_signed_or_unsigned_type): Likewise. | |
3564 | (c_common_nodes_and_builtins): Set widest_*_literal_type_node | |
3565 | to *intTI_type_node or *intDI_type_node depending on whether | |
3566 | TImode is supported by the target or not. | |
3567 | ||
3ee0fb02 ML |
3568 | 2017-04-10 Martin Liska <mliska@suse.cz> |
3569 | ||
3570 | PR sanitizer/80350 | |
3571 | * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before | |
3572 | doing an UBSAN check. | |
3573 | ||
5764ee3c JW |
3574 | 2017-04-03 Jonathan Wakely <jwakely@redhat.com> |
3575 | ||
3576 | * c-warn.c (do_warn_double_promotion): Fix typo in comment. | |
3577 | ||
6f3af356 JJ |
3578 | 2017-03-31 Jakub Jelinek <jakub@redhat.com> |
3579 | ||
3580 | PR c++/79572 | |
3581 | * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to | |
3582 | tree *. | |
3583 | * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle | |
3584 | not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with | |
3585 | REFERENCE_TYPE. | |
3586 | ||
f6a7a9d5 DM |
3587 | 2017-03-31 David Malcolm <dmalcolm@redhat.com> |
3588 | ||
3589 | PR documentation/78732 | |
3590 | * c.opt (Wendif-labels): Fix description to refer to | |
3591 | #else rather than #elif. | |
3592 | ||
af88f557 JJ |
3593 | 2017-03-31 Jakub Jelinek <jakub@redhat.com> |
3594 | ||
3595 | PR libstdc++/80251 | |
3596 | * c-common.h (enum rid): Add RID_IS_AGGREGATE. | |
3597 | * c-common.c (c_common_reswords): Add __is_aggregate trait. | |
3598 | ||
a9e4a1a5 JJ |
3599 | 2017-03-27 Jakub Jelinek <jakub@redhat.com> |
3600 | ||
3601 | PR middle-end/80162 | |
3602 | * c-common.c (c_common_mark_addressable_vec): Don't set | |
3603 | TREE_ADDRESSABLE on DECL_HARD_REGISTER. | |
3604 | ||
3f01b620 MS |
3605 | 2017-03-21 Martin Sebor <msebor@redhat.com> |
3606 | ||
3607 | PR c++/79548 | |
3608 | * c-common.c (set_underlying_type): Mark type used only when | |
3609 | original del is declared unused. | |
3610 | ||
2f6f187a DM |
3611 | 2017-03-10 David Malcolm <dmalcolm@redhat.com> |
3612 | ||
3613 | PR translation/79848 | |
3614 | * c-format.c (check_format_string): Simplify uses of "%<%s%>" to | |
3615 | "%qs". | |
3616 | ||
a02fa805 DM |
3617 | 2017-03-10 David Malcolm <dmalcolm@redhat.com> |
3618 | ||
3619 | PR c/79921 | |
3620 | * c-indentation.c (warn_for_misleading_indentation): Remove parens | |
3621 | from inform's message, so that xgettext can locate it. | |
3622 | ||
822a132c MP |
3623 | 2017-03-09 Marek Polacek <polacek@redhat.com> |
3624 | ||
3625 | PR c++/79962 | |
3626 | PR c++/79984 | |
3627 | * c-attribs.c (handle_nonnull_attribute): Save the result of default | |
3628 | conversion to the attribute list. | |
3629 | ||
bba81f1c ML |
3630 | 2017-03-09 Martin Liska <mliska@suse.cz> |
3631 | ||
3632 | * c-ada-spec.c (macro_length): Increment value instead of a pointer. | |
3633 | ||
108154ff JM |
3634 | 2017-03-03 Jason Merrill <jason@redhat.com> |
3635 | ||
3636 | * c.opt (Wnoexcept-type): New. | |
3637 | ||
eb0e7c34 RB |
3638 | 2017-03-02 Richard Biener <rguenther@suse.de> |
3639 | ||
3640 | PR c/79756 | |
3641 | * c-common.c (c_common_mark_addressable_vec): Look through | |
3642 | C_MAYBE_CONST_EXPR. | |
3643 | ||
9453ba0a ML |
3644 | 2017-02-28 Martin Liska <mliska@suse.cz> |
3645 | ||
3646 | * c.opt: Replace space with tabular for options of <number> | |
3647 | type. | |
3648 | ||
6a825afe ML |
3649 | 2017-02-28 Martin Liska <mliska@suse.cz> |
3650 | ||
3651 | * c.opt: Fix --help=option -Q for options which are of | |
3652 | an enum type. | |
3653 | ||
4227c9ad JJ |
3654 | 2017-02-24 Jakub Jelinek <jakub@redhat.com> |
3655 | ||
3656 | PR c++/79588 | |
3657 | * c-common.c (check_function_restrict): New function. | |
3658 | (check_function_arguments): Add FNDECL argument. Call | |
3659 | check_function_restrict if -Wrestrict. | |
3660 | * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY | |
3661 | and NARGS. Use auto_vec for ARG_POSITIONS, simplify. | |
3662 | * c-common.h (check_function_arguments): Add FNDECL argument. | |
3663 | (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS. | |
3664 | ||
59909673 EB |
3665 | 2017-02-24 Eric Botcazou <ebotcazou@adacore.com> |
3666 | ||
3667 | * c-ada-spec.c (dump_ada_function_declaration): Add comment about the | |
3668 | treatment of parameters with pointer-to-tagged type and tidy up. | |
3669 | (print_ada_methods): Remove the special treatment of C++ static member | |
3670 | functions. | |
3671 | ||
54dcd526 ML |
3672 | 2017-02-22 Martin Liska <mliska@suse.cz> |
3673 | ||
3674 | * c.opt: Replace inequality signs with square brackets | |
3675 | for -Wnornalized. | |
3676 | ||
00bc9de3 JJ |
3677 | 2017-02-21 Jakub Jelinek <jakub@redhat.com> |
3678 | ||
3679 | PR c++/79641 | |
3680 | * c-attribs.c (handle_mode_attribute): Use build_qualified_type to | |
3681 | preserve quals. | |
3682 | ||
97fcf744 JM |
3683 | 2017-02-17 Joseph Myers <joseph@codesourcery.com> |
3684 | ||
3685 | * c-cppbuiltin.c (builtin_define_float_constants): Define | |
3686 | __DECIMAL_DIG__ to the value for long double. | |
3687 | ||
c7545f1c MP |
3688 | 2017-02-15 Marek Polacek <polacek@redhat.com> |
3689 | ||
3690 | PR c/79515 | |
3691 | * c-warn.c (do_warn_double_promotion): Don't warn if an invalid | |
3692 | conversion has occured. | |
3693 | ||
c2e84327 DM |
3694 | 2017-01-24 David Malcolm <dmalcolm@redhat.com> |
3695 | ||
3696 | * c-common.c (c_common_reswords): Add "__RTL". | |
3697 | * c-common.h (enum rid): Add RID_RTL. | |
3698 | ||
2ebd93e1 MP |
3699 | 2017-01-20 Marek Polacek <polacek@redhat.com> |
3700 | ||
3701 | PR c/64279 | |
3702 | * c-common.h (do_warn_duplicated_branches_r): Declare. | |
3703 | * c-gimplify.c (c_genericize): Walk the function tree calling | |
3704 | do_warn_duplicated_branches_r. | |
3705 | * c-warn.c (expr_from_macro_expansion_r): New. | |
3706 | (do_warn_duplicated_branches): New. | |
3707 | (do_warn_duplicated_branches_r): New. | |
3708 | * c.opt (Wduplicated-branches): New option. | |
3709 | ||
0d80ab91 DM |
3710 | 2017-01-17 David Malcolm <dmalcolm@redhat.com> |
3711 | ||
3712 | PR c++/71497 | |
3713 | * c-indentation.c (warn_for_misleading_indentation): Use the past | |
3714 | subjunctive in the note. | |
3715 | ||
7f991c36 AH |
3716 | 2017-01-17 Aldy Hernandez <aldyh@redhat.com> |
3717 | ||
3718 | PR c/79116 | |
3719 | * array-notation-common.c (cilkplus_extract_an_triplets): Convert | |
3720 | start type to integer_type. | |
3721 | ||
1c70261c JJ |
3722 | 2017-01-16 Jakub Jelinek <jakub@redhat.com> |
3723 | ||
3724 | PR driver/49726 | |
3725 | * c.opt (gen-decls): Add Driver flag. | |
3726 | ||
1ddca3f3 PC |
3727 | 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com> |
3728 | ||
3729 | Revert: | |
3730 | 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com> | |
3731 | ||
3732 | PR c++/71737 | |
3733 | * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE. | |
3734 | ||
7d2f3f1d PC |
3735 | 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com> |
3736 | ||
3737 | PR c++/71737 | |
3738 | * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE. | |
3739 | ||
bce6f760 MS |
3740 | 2017-01-12 Martin Sebor <msebor@redhat.com> |
3741 | ||
3742 | (-Wformat-overflow): ...to this. | |
3743 | ||
bf5fbf46 MS |
3744 | 2017-01-11 Martin Sebor <msebor@redhat.com> |
3745 | ||
3746 | PR c/78768 | |
3747 | * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation): | |
3748 | Also enable for LTO. | |
3749 | ||
e363df3f JM |
3750 | 2017-01-10 Jason Merrill <jason@redhat.com> |
3751 | ||
3752 | Implement P0195R2, C++17 variadic using. | |
3753 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using. | |
3754 | ||
bd2c6270 JJ |
3755 | 2017-01-09 Jakub Jelinek <jakub@redhat.com> |
3756 | ||
3757 | PR translation/79019 | |
3758 | PR translation/79020 | |
3759 | * c.opt (Wnormalized=): Fix typo in description. | |
3760 | ||
efcc8d38 MS |
3761 | 2017-01-08 Martin Sebor <msebor@redhat.com> |
3762 | ||
3763 | PR middle-end/77708 | |
3764 | * c.opt (-Wformat-truncation): New option. | |
3765 | ||
ab20d992 | 3766 | 2017-01-06 Alexandre Oliva <aoliva@redhat.com> |
435f3f7a AO |
3767 | |
3768 | * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit | |
3769 | value to unsigned short to fit in 4 hex digits without | |
3770 | warnings. | |
3771 | ||
4e89adf9 EB |
3772 | 2017-01-05 Eric Botcazou <ebotcazou@adacore.com> |
3773 | ||
3774 | * c.opt (fsso-struct): Add 'native' value. | |
3775 | ||
cd445b54 ML |
3776 | 2017-01-05 Martin Liska <mliska@suse.cz> |
3777 | ||
3778 | PR pch/78970 | |
3779 | * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled | |
3780 | header. | |
3781 | ||
a9342885 MP |
3782 | 2017-01-04 Marek Polacek <polacek@redhat.com> |
3783 | ||
3784 | PR c++/64767 | |
3785 | * c.opt (Wpointer-compare): New option. | |
3786 | ||
fc73e60c JJ |
3787 | 2017-01-04 Jakub Jelinek <jakub@redhat.com> |
3788 | ||
3789 | PR driver/78957 | |
3790 | * c.opt (fsso-struct=): Add RejectNegative. | |
3791 | ||
cbe34bb5 JJ |
3792 | 2017-01-01 Jakub Jelinek <jakub@redhat.com> |
3793 | ||
3794 | Update copyright years. | |
3795 | ||
d4a6c0ea ML |
3796 | 2016-12-29 Martin Liska <mliska@suse.cz> |
3797 | ||
3798 | PR c/78933 | |
3799 | * c.opt (strong-eval-order): Add RejectNegative keyword. | |
3800 | ||
67a5ad7c JM |
3801 | 2016-12-22 Jason Merrill <jason@redhat.com> |
3802 | ||
3803 | Implement P0522R0, matching of template template arguments. | |
3804 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
3805 | __cpp_template_template_args. | |
3806 | ||
0dba7960 JJ |
3807 | 2016-12-21 Jakub Jelinek <jakub@redhat.com> |
3808 | ||
3809 | PR bootstrap/78817 | |
3810 | * c-common.c (struct nonnull_arg_ctx): New type. | |
3811 | (check_function_nonnull): Return bool instead of void. Use | |
3812 | nonnull_arg_ctx as context rather than just location_t. | |
3813 | (check_nonnull_arg): Adjust for the new context type, set | |
3814 | warned_p to true if a warning has been diagnosed. | |
3815 | (check_function_arguments): Return bool instead of void. | |
3816 | * c-common.h (check_function_arguments): Adjust prototype. | |
3817 | ||
31bfc9b9 JM |
3818 | 2016-12-21 Jason Merrill <jason@redhat.com> |
3819 | ||
3820 | * c.opt (-fnew-ttp-matching): New flag. | |
3821 | * c-opts.c (c_common_post_options): Default on if -std=c++1z. | |
3822 | ||
629b3d75 MJ |
3823 | 2016-12-14 Martin Jambor <mjambor@suse.cz> |
3824 | ||
3825 | * c-omp.c: Include omp-general.h instead of omp-low.h. | |
3826 | (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new | |
3827 | name. | |
3828 | ||
474da67e MS |
3829 | 2016-12-14 Martin Sebor <msebor@redhat.com> |
3830 | ||
3831 | PR c/17308 | |
3832 | * c-common.c (check_nonnull_arg): Disable when optimization | |
3833 | is enabled. | |
3834 | ||
fe366b87 MP |
3835 | 2016-12-12 Marek Polacek <polacek@redhat.com> |
3836 | ||
3837 | PR c++/78647 | |
3838 | * c-common.c (attribute_fallthrough_p): Return false for | |
3839 | error_mark_node. | |
3840 | ||
8bd9f164 MS |
3841 | 2016-12-08 Martin Sebor <msebor@redhat.com> |
3842 | ||
3843 | PR c/78284 | |
3844 | * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options. | |
3845 | ||
060162e0 MS |
3846 | 2016-12-08 Martin Sebor <msebor@redhat.com> |
3847 | ||
3848 | PR c/78165 | |
92a285c1 ML |
3849 | * c-pretty-print (pp_c_integer_constant): Avoid formatting type |
3850 | suffix. | |
060162e0 | 3851 | |
ee92e7ba MS |
3852 | 2016-12-07 Martin Sebor <msebor@redhat.com> |
3853 | ||
3854 | PR c/53562 | |
3855 | PR middle-end/77784 | |
3856 | PR middle-end/78149 | |
3857 | PR middle-end/78138 | |
3858 | * c.opt (-Wstringop-overflow): New option. | |
3859 | ||
84b0769e MO |
3860 | 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com> |
3861 | ||
3862 | * c-attribs.c (asan odr indicator): New attribute. | |
3863 | (handle_asan_odr_indicator_attribute): New function. | |
3864 | ||
7fa6a965 PK |
3865 | 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
3866 | ||
3867 | * c-common.c (c_common_nodes_and_builtins): Remove initialization of | |
3868 | ptrdiff_type_node; | |
3869 | ||
56d8ffc1 JG |
3870 | 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com> |
3871 | ||
3872 | * c-common.c (excess_precision_mode_join): New. | |
3873 | (c_ts18661_flt_eval_method): New. | |
3874 | (c_c11_flt_eval_method): Likewise. | |
3875 | (c_flt_eval_method): Likewise. | |
3876 | * c-common.h (excess_precision_mode_join): New. | |
3877 | (c_flt_eval_method): Likewise. | |
3878 | * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New. | |
3879 | (cpp_iec_559_value): Call it. | |
3880 | (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__, | |
3881 | call c_flt_eval_method to set __FLT_EVAL_METHOD__ and | |
3882 | __FLT_EVAL_METHOD_TS_18661_3__. | |
3883 | ||
04f0fcf7 JG |
3884 | 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com> |
3885 | ||
3886 | * c-opts.c (c_common_post_options): Add logic to handle the default | |
3887 | case for -fpermitted-flt-eval-methods. | |
3888 | ||
fb2675cb PB |
3889 | 2016-11-23 Paolo Bonzini <bonzini@gnu.org> |
3890 | ||
3891 | * c.opt (Wexpansion-to-defined): New. | |
3892 | ||
ec1c5694 JJ |
3893 | 2016-11-23 Jakub Jelinek <jakub@redhat.com> |
3894 | ||
3895 | PR target/78451 | |
3896 | * c-pragma.c (handle_pragma_target): Don't replace | |
3897 | current_target_pragma, but chainon the new args to the current one. | |
3898 | ||
730c9e75 NS |
3899 | 2016-11-22 Nathan Sidwell <nathan@acm.org> |
3900 | ||
3901 | * array-notation-common.c (cilkplus_extract_an_trplets): Fix | |
cacd29be | 3902 | indentation and formatting. |
730c9e75 | 3903 | |
89990732 MS |
3904 | 2016-11-21 Martin Sebor <msebor@redhat.com> |
3905 | ||
3906 | * c.opt (-fprintf-return-value): Enable by default. | |
3907 | ||
48330c93 BE |
3908 | 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de> |
3909 | ||
3910 | PR c++/71973 | |
3911 | * c.opt (-Wbuiltin-declaration-mismatch): New warning. | |
3912 | * c-common.c (c_common_nodes_and_builtins): Initialize | |
3913 | const_tm_ptr_type_node. | |
3914 | ||
0d939c95 MP |
3915 | 2016-11-16 Marek Polacek <polacek@redhat.com> |
3916 | ||
3917 | PR c/78285 | |
3918 | * c-common.c (c_add_case_label): Turn error_at calls into inform. | |
3919 | ||
8e745a17 JJ |
3920 | 2016-11-14 Jakub Jelinek <jakub@redhat.com> |
3921 | ||
3922 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings. | |
3923 | ||
1ee62b92 | 3924 | 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com> |
8e745a17 JJ |
3925 | Richard Biener <rguenther@suse.de> |
3926 | ||
3927 | * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types. | |
3928 | * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI. | |
3929 | * c.opt (fgimple): New option. | |
1ee62b92 | 3930 | |
22b15758 UB |
3931 | 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
3932 | ||
3933 | PR c/35503 | |
3934 | * c-common.h (warn_for_restrict): Declare. | |
3935 | * c-warn.c: Include gcc-rich-location.h. | |
3936 | (warn_for_restrict): New function. | |
3937 | * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier. | |
3938 | (gcc_cdiag_char_table): Likewise. | |
3939 | (gcc_cxxdiag_char_table): Likewise. | |
3940 | * c.opt (Wrestrict): New option. | |
3941 | ||
4be719cd EB |
3942 | 2016-11-13 Eric Botcazou <ebotcazou@adacore.com> |
3943 | ||
3944 | * c-ada-spec.c (print_ada_declaration): For typedef declarations, look | |
3945 | for nested types only if the type is a record or union and dump SLOC. | |
3946 | ||
4a826ca6 JM |
3947 | 2016-11-09 Jason Merrill <jason@redhat.com> |
3948 | ||
3949 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto. | |
3950 | ||
2e955d50 JJ |
3951 | 2016-11-09 Jakub Jelinek <jakub@redhat.com> |
3952 | ||
3953 | * c-ubsan.c (ubsan_instrument_shift): Handle split | |
3954 | -fsanitize=shift-base and -fsanitize=shift-exponent. | |
3955 | ||
51dc6603 JM |
3956 | 2016-11-07 Jason Merrill <jason@redhat.com> |
3957 | ||
3958 | * c.opt (Wc++1z-compat): New. | |
3959 | * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type. | |
3960 | ||
6dc4a604 ML |
3961 | 2016-11-07 Martin Liska <mliska@suse.cz> |
3962 | ||
3963 | * c-warn.c (warn_for_unused_label): Save all labels used | |
3964 | in goto or in &label. | |
3965 | ||
b302001e JM |
3966 | 2016-11-03 Jason Merrill <jason@redhat.com> |
3967 | ||
3968 | * c-cppbuiltin.c (c_cpp_builtins): Correct | |
3969 | __cpp_inheriting_constructors. | |
3970 | ||
31f7f784 JM |
3971 | 2016-11-01 Jason Merrill <jason@redhat.com> |
3972 | ||
2bc78e3c JM |
3973 | * c-cppbuiltin.c (c_cpp_builtins): Update |
3974 | __cpp_inheriting_constructors. | |
3975 | ||
31f7f784 JM |
3976 | * c.opt (-fnew-inheriting-ctors): New. |
3977 | * c-opts.c: Default to on for ABI 11+. | |
3978 | ||
dcb466ec JJ |
3979 | 2016-10-31 Jakub Jelinek <jakub@redhat.com> |
3980 | ||
3981 | PR c++/77948 | |
3982 | * c.opt (fext-numeric-literals): Add Var and Init. | |
3983 | * c-opts.c (c_common_handle_option): Don't clear | |
3984 | cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}. | |
3985 | (c_common_post_options): Clear it here if not set | |
3986 | explicitly. | |
3987 | ||
52e1b91e AH |
3988 | 2016-10-28 Aldy Hernandez <aldyh@redhat.com> |
3989 | ||
3990 | PR debug/77773 | |
3991 | * c-pretty-print.c (simple_type_specifier): Do not dereference `t' | |
3992 | if NULL. | |
3993 | ||
e16f1cc7 JJ |
3994 | 2016-10-25 Jakub Jelinek <jakub@redhat.com> |
3995 | ||
3996 | * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER. | |
3997 | * c-common.c (c_common_reswords): Add __builtin_launder. | |
3998 | ||
f8348061 BE |
3999 | 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4000 | ||
4001 | * c-common.c (c_common_truthvalue_conversion): Warn for | |
4002 | multiplications in boolean context. Fix the quoting of '<<' and '<' | |
4003 | in the shift warning. | |
4004 | ||
eff89e01 BE |
4005 | 2016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4006 | ||
4007 | * c-common.c (c_common_truthvalue_conversion): Fix the comment. | |
4008 | ||
24bc7bf4 JM |
4009 | 2016-10-20 Jason Merrill <jason@redhat.com> |
4010 | ||
4011 | * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value. | |
4012 | ||
4c712374 BE |
4013 | 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4014 | ||
4015 | * c-common.c (c_common_truthvalue_conversion): Warn only for signed | |
4016 | integer shift ops in boolean context. | |
4017 | ||
4018 | 2016-10-18 Aldy Hernandez <aldyh@redhat.com> | |
adc577c5 AH |
4019 | |
4020 | * c.opt (Walloca): New. | |
4021 | (Walloca-larger-than=): New. | |
4022 | (Wvla-larger-than=): New. | |
4023 | ||
8fa18c06 MP |
4024 | 2016-10-17 Marek Polacek <polacek@redhat.com> |
4025 | ||
4026 | * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names. | |
4027 | Return immediately when finding a match. | |
4028 | (warn_tautological_cmp): Remove a boolean variable that is no longer | |
4029 | needed. | |
4030 | ||
b12b1915 MP |
4031 | 2016-10-17 Marek Polacek <polacek@redhat.com> |
4032 | ||
4033 | * c-attribs.c: New file. | |
4034 | * c-common.c: Move attributes handling to c-attribs.c. | |
4035 | (get_nonnull_operand): No longer static. | |
4036 | * c-common.h: Move the declarations from c-attribs.c to its own section. | |
4037 | ||
2045acd9 JM |
4038 | 2016-10-14 Jason Merrill <jason@redhat.com> |
4039 | ||
4040 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases | |
4041 | and __cpp_deduction_guides. | |
4042 | ||
14a2c9aa JM |
4043 | 2016-10-13 Jason Merrill <jason@redhat.com> |
4044 | ||
4045 | * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables. | |
4046 | ||
4d0cdd0c TP |
4047 | 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com> |
4048 | ||
4049 | * c-cppbuiltin.c: Include memmodel.h. | |
4050 | * c-opts.c: Likewise. | |
4051 | * c-pragma.c: Likewise. | |
4052 | * c-warn.c: Likewise. | |
4053 | ||
70f6d5e1 JJ |
4054 | 2016-10-12 Jakub Jelinek <jakub@redhat.com> |
4055 | ||
4056 | * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option. | |
4057 | (Wimplicit-fallthrough=): Enable for these languages by -Wextra. | |
4058 | * c-opts.c (sanitize_cpp_opts): Initialize | |
4059 | cpp_opts->cpp_warn_implicit_fallthrough. | |
4060 | ||
78f61294 MP |
4061 | 2016-10-11 Marek Polacek <polacek@redhat.com> |
4062 | ||
4063 | * c-common.c (warning_candidate_p): Change the return type to bool | |
4064 | and return true/false instead of 1/0. | |
4065 | (vector_mode_valid_p): Likewise. | |
4066 | ||
038b5cc0 MP |
4067 | 2016-10-11 Marek Polacek <polacek@redhat.com> |
4068 | ||
4069 | * c-common.c (fold_for_warn): No longer static. | |
4070 | (bool_promoted_to_int_p): Likewise. | |
4071 | (c_common_get_narrower): Likewise. | |
4072 | (constant_expression_warning): Move to c-warn.c. | |
4073 | (constant_expression_error): Likewise. | |
4074 | (overflow_warning): Likewise. | |
4075 | (warn_logical_operator): Likewise. | |
4076 | (find_array_ref_with_const_idx_r): Likewise. | |
4077 | (warn_tautological_cmp): Likewise. | |
4078 | (expr_has_boolean_operands_p): Likewise. | |
4079 | (warn_logical_not_parentheses): Likewise. | |
4080 | (warn_if_unused_value): Likewise. | |
4081 | (strict_aliasing_warning): Likewise. | |
4082 | (sizeof_pointer_memaccess_warning): Likewise. | |
4083 | (check_main_parameter_types): Likewise. | |
4084 | (conversion_warning): Likewise. | |
4085 | (warnings_for_convert_and_check): Likewise. | |
4086 | (match_case_to_enum_1): Likewise. | |
4087 | (match_case_to_enum): Likewise. | |
4088 | (c_do_switch_warnings): Likewise. | |
4089 | (warn_for_omitted_condop): Likewise. | |
4090 | (readonly_error): Likewise. | |
4091 | (lvalue_error): Likewise. | |
4092 | (invalid_indirection_error): Likewise. | |
4093 | (warn_array_subscript_with_type_char): Likewise. | |
4094 | (warn_about_parentheses): Likewise. | |
4095 | (warn_for_unused_label): Likewise. | |
4096 | (warn_for_div_by_zero): Likewise. | |
4097 | (warn_for_memset): Likewise. | |
4098 | (warn_for_sign_compare): Likewise. | |
4099 | (do_warn_double_promotion): Likewise. | |
4100 | (do_warn_unused_parameter): Likewise. | |
4101 | (record_locally_defined_typedef): Likewise. | |
4102 | (maybe_record_typedef_use): Likewise. | |
4103 | (maybe_warn_unused_local_typedefs): Likewise. | |
4104 | (maybe_warn_bool_compare): Likewise. | |
4105 | (maybe_warn_shift_overflow): Likewise. | |
4106 | (warn_duplicated_cond_add_or_warn): Likewise. | |
4107 | (diagnose_mismatched_attributes): Likewise. | |
4108 | * c-common.h: Move the declarations from c-warn.c to its own section. | |
4109 | * c-warn.c: New file. | |
4110 | ||
627be19f JM |
4111 | 2016-10-08 Jason Merrill <jason@redhat.com> |
4112 | ||
4113 | * c-common.c (c_common_truthvalue_conversion): Don't distribute | |
4114 | into COND_EXPR in C++. | |
4115 | ||
7bad794a JJ |
4116 | 2016-10-08 Jakub Jelinek <jakub@redhat.com> |
4117 | ||
4118 | * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT | |
4119 | token with PREV_FALLTHROUGH, skip all following CPP_PADDING and | |
4120 | CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards. | |
4121 | ||
be845b04 JJ |
4122 | 2016-10-07 Jakub Jelinek <jakub@redhat.com> |
4123 | ||
4124 | Implement LWG2296 helper intrinsic | |
4125 | * c-common.h (enum rid): Add RID_ADDRESSOF. | |
4126 | * c-common.c (c_common_reswords): Add __builtin_addressof. | |
4127 | ||
c09c4992 BE |
4128 | 2016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4129 | ||
4130 | PR c++/77700 | |
4131 | * c-common.c (c_common_truthvalue_conversion): Warn also for | |
4132 | suspicious enum values in boolean context. | |
4133 | ||
342cfb3e JJ |
4134 | 2016-10-06 Jakub Jelinek <jakub@redhat.com> |
4135 | ||
4136 | Implement P0258R2 - helper for C++17 | |
4137 | std::has_unique_object_representations trait | |
4138 | * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS. | |
4139 | * c-common.c (c_common_reswords): Add | |
4140 | __has_unique_object_representations. | |
4141 | ||
2e69f143 JJ |
4142 | 2016-10-05 Jakub Jelinek <jakub@redhat.com> |
4143 | ||
4144 | PR sanitizer/66343 | |
4145 | * c-ubsan.c (ubsan_instrument_return): Don't call | |
4146 | initialize_sanitizer_builtins here. | |
4147 | ||
700fff34 BE |
4148 | 2016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4149 | ||
4150 | * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious | |
4151 | conditional expression in boolean context when only one arm is | |
4152 | non-boolean. | |
4153 | ||
9563bfcd JJ |
4154 | 2016-10-05 Jakub Jelinek <jakub@redhat.com> |
4155 | ||
04a32443 JJ |
4156 | PR sanitizer/77823 |
4157 | * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0 | |
4158 | is not integral. | |
4159 | ||
9563bfcd JJ |
4160 | * c-common.c (c_common_reswords): Update comment for C++11. |
4161 | ||
f1644724 JM |
4162 | 2016-10-04 Jason Merrill <jason@redhat.com> |
4163 | ||
4164 | * c-common.c (make_tree_vector_from_ctor): New. | |
4165 | * c-common.h: Declare it. | |
4166 | ||
5a79befb JJ |
4167 | 2016-10-04 Jakub Jelinek <jakub@redhat.com> |
4168 | ||
4169 | * c-cppbuiltin.c (c_cpp_builtins): Don't define | |
4170 | __LIBGCC_JCR_SECTION_NAME__. | |
4171 | ||
1633d3b9 BE |
4172 | 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4173 | ||
4174 | * c-common.c (c_common_truthvalue_conversion): Warn for suspicious | |
4175 | left shift in boolean context. | |
4176 | ||
a2c6e7f2 JJ |
4177 | 2016-09-29 Jakub Jelinek <jakub@redhat.com> |
4178 | ||
4179 | Implement P0001R1 - C++17 removal of register storage class specifier | |
4180 | * c.opt (Wregister): New warning. | |
4181 | * c-opts.c (c_common_post_options): Enable -Wregister by | |
4182 | default for C++17. | |
4183 | ||
75304c87 JG |
4184 | 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com> |
4185 | ||
4186 | * c-opts.c (c_common_post_options): Remove special case for | |
4187 | TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard | |
4188 | in C++. | |
4189 | ||
bbfac6da JJ |
4190 | 2016-09-27 Jakub Jelinek <jakub@redhat.com> |
4191 | ||
6e39060a JJ |
4192 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for |
4193 | -std=c++1z. | |
4194 | ||
bbfac6da JJ |
4195 | * c-ada-spec.c (print_ada_declaration): Remove break after return. |
4196 | ||
e73cf9a2 TP |
4197 | 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com> |
4198 | ||
4199 | * c-common.c: Include memmodel.h. | |
4200 | ||
c6147dc4 MP |
4201 | 2016-09-26 Marek Polacek <polacek@redhat.com> |
4202 | ||
4203 | * c-lex.c (c_common_has_attribute): Handle attribute fallthrough. | |
4204 | ||
81fea426 MP |
4205 | 2016-09-26 Marek Polacek <polacek@redhat.com> |
4206 | ||
4207 | PR c/7652 | |
4208 | * c-common.c (c_common_attribute_table): Add fallthrough attribute. | |
4209 | (handle_fallthrough_attribute): New function. | |
4210 | (attribute_fallthrough_p): New function. | |
4211 | * c-common.h (attribute_fallthrough_p): Declare. | |
4212 | ||
9a2300e9 MP |
4213 | 2016-09-24 Marek Polacek <polacek@redhat.com> |
4214 | ||
4215 | PR c/77490 | |
4216 | * c.opt (Wbool-operation): New. | |
4217 | ||
a09e9e35 BE |
4218 | 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4219 | ||
4220 | * c-common.c (c_common_truthvalue_conversion): Inhibit | |
4221 | Wint-in-bool-context warning with from_macro_definition_at. | |
4222 | Mention the expression will always evaluate to true. | |
4223 | ||
d43b4ccc MS |
4224 | 2016-09-21 Martin Sebor <msebor@redhat.com> |
4225 | ||
4226 | PR bootstrap/77676 | |
4227 | * c.opt (fprintf-return-value): Temporarily initialize to zero | |
4228 | to unblock bootstrap failures. | |
4229 | ||
2e1c20b1 JJ |
4230 | 2016-09-21 Jakub Jelinek <jakub@redhat.com> |
4231 | ||
4232 | PR c++/77651 | |
4233 | * c.opt (Waligned-new=): Add RejectNegative. | |
4234 | (faligned-new=): Likewise. Spelling fix - change | |
4235 | aligned_new_threshhold to aligned_new_threshold. | |
4236 | * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold | |
4237 | to aligned_new_threshold. | |
4238 | ||
88d0c3f0 MS |
4239 | 2016-09-20 Martin Sebor <msebor@redhat.com> |
4240 | ||
4241 | PR middle-end/49905 | |
4242 | * c.opt: Add -Wformat-length and -fprintf-return-value. | |
4243 | ||
144a96e4 BE |
4244 | 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4245 | ||
4246 | PR c++/77434 | |
4247 | * c.opt (Wint-in-bool-context): New warning. | |
4248 | * c-common.c (c_common_truthvalue_conversion): Warn on integer | |
4249 | constants in boolean context. | |
4250 | ||
63012d9a JM |
4251 | 2016-09-19 Joseph Myers <joseph@codesourcery.com> |
4252 | ||
4253 | * c-common.c (max_align_t_align): Also consider alignment of | |
4254 | float128_type_node. | |
4255 | ||
931388ce JM |
4256 | 2016-09-15 Jason Merrill <jason@redhat.com> |
4257 | ||
4258 | * c-common.c (check_cxx_fundamental_alignment_constraints): Check | |
4259 | DECL_EXTERNAL. | |
4260 | ||
38711381 JM |
4261 | 2016-09-14 Jason Merrill <jason@redhat.com> |
4262 | ||
4263 | * c-common.c (check_cxx_fundamental_alignment_constraints): Don't | |
4264 | limit FIELD_DECL, either. | |
4265 | ||
e51fbec3 MP |
4266 | 2016-09-14 Marek Polacek <polacek@redhat.com> |
4267 | ||
4268 | * c-common.c (c_common_truthvalue_conversion): Use false instead of 0. | |
4269 | * c-common.h (build_unary_op): Change nonconvert parameter type to bool. | |
4270 | * c-omp.c (c_finish_omp_atomic): Use false instead of 0. | |
4271 | ||
254830ba DM |
4272 | 2016-09-13 David Malcolm <dmalcolm@redhat.com> |
4273 | ||
4274 | * c-common.c (warn_logical_not_parentheses): Replace | |
4275 | rich_location::add_fixit_insert calls with add_fixit_insert_before | |
4276 | and add_fixit_insert_after, eliminating the "next_loc" calculation. | |
4277 | ||
42763690 JM |
4278 | 2016-09-13 Jason Merrill <jason@redhat.com> |
4279 | Tom de Vries <tom@codesourcery.com> | |
4280 | ||
4281 | PR c++/77427 | |
4282 | * c-common.c (set_underlying_type): Don't treat array as builtin type. | |
4283 | ||
9453eee9 JM |
4284 | 2016-09-13 Jason Merrill <jason@redhat.com> |
4285 | ||
4286 | * c-common.c (check_cxx_fundamental_alignment_constraints): Don't | |
4287 | limit types at all. | |
4288 | ||
e96809e3 JM |
4289 | 2016-09-12 Jason Merrill <jason@redhat.com> |
4290 | ||
4291 | * c-common.c (check_cxx_fundamental_alignment_constraints): Fix | |
4292 | bit/byte confusion, allow large alignment for types. | |
4293 | ||
54dcdb88 BE |
4294 | 2016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4295 | ||
4296 | PR c++/77496 | |
4297 | * c-common.c (warn_for_omitted_condop): Also warn for boolean data. | |
4298 | ||
d1463eb9 DM |
4299 | 2016-09-12 David Malcolm <dmalcolm@redhat.com> |
4300 | ||
4301 | PR c/72858 | |
4302 | * c-format.c (argument_parser::check_argument_type): Add params | |
4303 | "type_start" and "conversion_char". Use the former to generate | |
4304 | offset_to_type_start and pass it and conversion_char to | |
4305 | check_format_types. | |
4306 | (check_format_info_main): Capture the start of the type | |
4307 | information as "type_start", and pass it an format_char | |
4308 | to arg_parser.check_argument_type. | |
4309 | (check_format_types): Provide an example in the leading comment. | |
4310 | Add params "offset_to_type_start" and "conversion_char"; pass | |
4311 | them to format_type_warning calls. | |
4312 | (test_get_modifier_for_format_len): Likewise. | |
4313 | (matching_type_p): New function. | |
4314 | (get_format_for_type): Add param "conversion_char" and move | |
4315 | implementation into... | |
4316 | (get_format_for_type_1): ...new function, called twice. | |
4317 | Use new function matching_type_p rather than checking for | |
4318 | TYPE_CANONICAL equality. | |
4319 | (get_corrected_substring): New function. | |
4320 | (format_type_warning): Provide an example in the leading comment. | |
4321 | Add params "offset_to_type_start" and "conversion_char". Replace | |
4322 | call to get_format_for_type with call to get_corrected_substring | |
4323 | and move rejection of hints for widths/precisions there. | |
4324 | (assert_format_for_type_streq): Add param "conversion_char". | |
4325 | (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR. | |
4326 | (test_get_format_for_type_printf): Add conversion chars to the | |
4327 | tests, adding coverage for various combinations of integer | |
4328 | vs double conversions, and for preserving octal and hexadecimal | |
4329 | conversions. | |
4330 | (test_get_format_for_type_scanf): Add conversion chars to the | |
4331 | tests. | |
4332 | ||
5b28efbb TV |
4333 | 2016-09-10 Tom de Vries <tom@codesourcery.com> |
4334 | ||
4335 | PR C/71602 | |
4336 | * c-common.c (build_va_arg): Handle more strict | |
4337 | targetm.canonical_va_list_type. Replace first argument type error with | |
4338 | assert. | |
4339 | ||
3f0177e7 MS |
4340 | 2016-09-09 Martin Sebor <msebor@redhat.com> |
4341 | ||
4342 | PR c/77520 | |
4343 | PR c/77521 | |
4344 | * c-format.c (argument_parser::find_format_char_info): Use %qc | |
4345 | format directive unconditionally. | |
4346 | ||
af63ba4b JM |
4347 | 2016-09-09 Jason Merrill <jason@redhat.com> |
4348 | ||
4349 | Implement C++17 new of over-aligned types. | |
4350 | * c.opt: Add -faligned-new and -Waligned-new. | |
4351 | * c-common.c (max_align_t_align): Split out from... | |
4352 | (cxx_fundamental_alignment_p): ...here. | |
4353 | * c-common.h: Declare it. | |
4354 | * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new. | |
4355 | ||
c65248cb JM |
4356 | 2016-09-09 Joseph Myers <joseph@codesourcery.com> |
4357 | ||
4358 | * c-cppbuiltin.c (builtin_define_type_width): New function. | |
4359 | (builtin_define_stdint_macros, c_cpp_builtins): Define type width | |
4360 | macros. | |
4361 | ||
e5106e27 DM |
4362 | 2016-09-07 David Malcolm <dmalcolm@redhat.com> |
4363 | ||
4364 | * c-common.c (get_cpp_ttype_from_string_type): Handle being passed | |
4365 | a POINTER_TYPE. | |
4366 | (substring_loc::get_location): Move to substring-locations.c, | |
4367 | keeping implementation as... | |
4368 | (c_get_substring_location): New function, from the above, reworked | |
4369 | to use accessors rather than member lookup. | |
4370 | * c-common.h (class substring_loc): Move to substring-locations.h, | |
4371 | replacing with a forward decl. | |
4372 | (c_get_substring_location): New decl. | |
4373 | * c-format.c: Include "substring-locations.h". | |
4374 | (format_warning_va): Move to substring-locations.c. | |
4375 | (format_warning_at_substring): Likewise. | |
4376 | ||
ab20d992 | 4377 | 2016-09-06 Martin Sebor <msebor@redhat.com> |
a42e7952 MS |
4378 | |
4379 | PR c/77336 | |
4380 | * c-format.c (check_function_format): Avoid issuing warnings for | |
4381 | functions unless they call format functions with non-constant | |
4382 | format strings. | |
4383 | ||
b772a565 RB |
4384 | 2016-09-06 Richard Biener <rguenther@suse.de> |
4385 | ||
4386 | PR c/77450 | |
4387 | * c-common.c (c_common_mark_addressable_vec): Handle | |
4388 | COMPOUND_LITERAL_EXPR. | |
4389 | ||
25ff5dd3 MP |
4390 | 2016-09-05 Marek Polacek <polacek@redhat.com> |
4391 | ||
4392 | PR c/77423 | |
4393 | * c-common.c (bool_promoted_to_int_p): New function. | |
4394 | (expr_has_boolean_operands_p): New function. | |
4395 | (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p. | |
4396 | (maybe_warn_bool_compare): Use bool_promoted_to_int_p. | |
4397 | ||
21234eb5 TV |
4398 | 2016-09-04 Tom de Vries <tom@codesourcery.com> |
4399 | ||
4400 | revert: | |
4401 | 2016-08-29 Tom de Vries <tom@codesourcery.com> | |
4402 | ||
4403 | * c-common.c (build_va_arg): Replace first argument type error | |
4404 | with assert. | |
4405 | ||
9dc5773f JJ |
4406 | 2016-09-02 Jakub Jelinek <jakub@redhat.com> |
4407 | ||
4408 | PR c/65467 | |
4409 | * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions. | |
4410 | (c_finish_omp_for): Reject _Atomic qualified iterators. | |
4411 | ||
4412 | 2016-09-01 Martin Sebor <msebor@redhat.com> | |
3d7b83b6 MS |
4413 | |
4414 | * c-ada-spec.c (dump_ada_function_declaration): Increase buffer | |
4415 | size to guarantee it fits the output of the formatted function | |
4416 | regardless of its arguments. | |
4417 | ||
295844f6 MP |
4418 | 2016-09-01 Marek Polacek <polacek@redhat.com> |
4419 | ||
4420 | PR c/7652 | |
4421 | * c-common.c (resolve_overloaded_builtin): Fix formatting. Add | |
4422 | FALLTHRU comments. | |
4423 | ||
3d06b6f2 MP |
4424 | 2016-08-29 Marek Polacek <polacek@redhat.com> |
4425 | ||
4426 | PR c/77292 | |
4427 | * c-common.c (warn_logical_not_parentheses): Don't warn for | |
4428 | a comparison or a logical operator. | |
4429 | ||
34cedad5 TV |
4430 | 2016-08-29 Tom de Vries <tom@codesourcery.com> |
4431 | ||
4432 | * c-common.c (build_va_arg): Fix type comparison assert. | |
4433 | ||
f162d717 TV |
4434 | 2016-08-29 Tom de Vries <tom@codesourcery.com> |
4435 | ||
4436 | * c-common.c (build_va_arg): Replace first argument type error | |
4437 | with assert. | |
4438 | ||
ba9bbd6f TV |
4439 | 2016-08-29 Tom de Vries <tom@codesourcery.com> |
4440 | ||
4441 | PR c/77398 | |
4442 | * c-common.c (build_va_arg): Add first argument error. Build va_arg | |
4443 | with error_mark_node as va_list instead of with illegal va_list. | |
4444 | ||
ebef225f MP |
4445 | 2016-08-25 Marek Polacek <polacek@redhat.com> |
4446 | David Malcolm <dmalcolm@redhat.com> | |
4447 | ||
4448 | * c-common.c (warn_logical_not_parentheses): Print fixit hints. | |
4449 | * c-common.h (warn_logical_not_parentheses): Update declaration. | |
4450 | ||
b00e6e75 MP |
4451 | 2016-08-22 Marek Polacek <polacek@redhat.com> |
4452 | ||
4453 | PR c++/77321 | |
4454 | * c-common.c (warn_for_memset): Check type for null. | |
4455 | ||
6dc198e3 JM |
4456 | 2016-08-22 Joseph Myers <joseph@codesourcery.com> |
4457 | ||
14ec014e | 4458 | * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and |
6dc198e3 JM |
4459 | _FloatNx types for suffixes for built-in functions. |
4460 | ||
c65699ef JM |
4461 | 2016-08-19 Joseph Myers <joseph@codesourcery.com> |
4462 | ||
4463 | PR c/32187 | |
4464 | * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32) | |
4465 | (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X) | |
4466 | (RID_FLOAT128X): New enum rid values. | |
4467 | (CASE_RID_FLOATN_NX): New macro. | |
4468 | * c-common.c (c_common_reswords): Add _FloatN and _FloatNx | |
4469 | keywords. | |
4470 | (c_common_type_for_mode): Check for _FloatN and _FloatNx and | |
4471 | corresponding complex types. | |
4472 | (c_common_nodes_and_builtins): For non-C++, register _FloatN and | |
4473 | _FloatNx and corresponding complex types. | |
4474 | (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX. | |
4475 | * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN | |
4476 | and _FloatNx types for the widest type for determining | |
4477 | DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as | |
4478 | __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL. | |
4479 | (c_cpp_builtins): Call builtin_define_float_constants for _FloatN | |
4480 | and _FloatNx types. | |
4481 | * c-lex.c (interpret_float): Handle _FloatN and _FloatNx | |
4482 | constants. | |
4483 | * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and | |
4484 | _FloatNx types. | |
4485 | ||
cc015f3a DM |
4486 | 2016-08-18 David Malcolm <dmalcolm@redhat.com> |
4487 | ||
4488 | * c-opts.c (c_diagnostic_finalizer): Update for change to | |
4489 | diagnostic_show_locus. | |
4490 | ||
cb18fd07 DM |
4491 | 2016-08-18 David Malcolm <dmalcolm@redhat.com> |
4492 | ||
4493 | * c-common.c: Include "spellcheck.h". | |
4494 | (cb_get_suggestion): New function. | |
4495 | * c-common.h (cb_get_suggestion): New decl. | |
4496 | * c-lex.c (init_c_lex): Initialize cb->get_suggestion to | |
4497 | cb_get_suggestion. | |
4498 | ||
a76989dc MP |
4499 | 2016-08-18 Marek Polacek <polacek@redhat.com> |
4500 | ||
4501 | PR c/71514 | |
4502 | * c-common.c (get_atomic_generic_size): Disallow pointer-to-function | |
4503 | and pointer-to-VLA. | |
4504 | ||
65e736c0 DM |
4505 | 2016-08-16 David Malcolm <dmalcolm@redhat.com> |
4506 | ||
4507 | PR c/72857 | |
4508 | * c-common.c (substring_loc::get_range): Rename to... | |
4509 | (substring_loc::get_location): ...this, converting param from a | |
4510 | source_range * to a location_t *. Call | |
4511 | get_source_location_for_substring rather than | |
4512 | get_source_range_for_substring, and pass in m_caret_idx. | |
4513 | * c-common.h (substring_loc::substring_loc): Add param "caret_idx". | |
4514 | (substring_loc::get_range): Replace with... | |
4515 | (substring_loc::get_location): ...this. | |
4516 | (substring_loc::set_caret_index): New method. | |
4517 | (substring_loc): Add field m_caret_idx. | |
4518 | * c-format.c (format_warning_va): Update for above changes. | |
4519 | Rename local "substring_loc" to "fmt_substring_loc" to avoid | |
4520 | clashing with type name. | |
4521 | (format_warning_at_char): Add caret_idx param to substring_loc ctor. | |
4522 | (check_argument_type): Likewise. | |
4523 | (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc" | |
4524 | Use a copy when emitting warnings, setting the caret index from TYPE. | |
4525 | ||
7e1dde14 | 4526 | 2016-08-16 Eric Botcazou <ebotcazou@adacore.com> |
8e745a17 | 4527 | Arnaud Charlet <charlet@adacore.com> |
7e1dde14 EB |
4528 | |
4529 | * c-ada-spec.c (dump_number): New function. | |
4530 | (handle_escape_character): Likewise. | |
4531 | (print_ada_macros): Add handling of constant integers and strings. | |
4532 | ||
191816a3 MP |
4533 | 2016-08-12 Marek Polacek <polacek@redhat.com> |
4534 | ||
4535 | PR c/7652 | |
4536 | * c-common.c (scalar_to_vector): Adjust fall through comment. | |
4537 | * c-opts.c (c_common_handle_option): Likewise. | |
4538 | * c-pragma.c (handle_pragma_pack): Add FALLTHRU. | |
4539 | * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust | |
4540 | fall through comment. | |
4541 | * cilk.c (extract_free_variables): Add FALLTHRU. | |
4542 | ||
452df4a4 JM |
4543 | 2016-08-10 Jason Merrill <jason@redhat.com> |
4544 | ||
4545 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr. | |
4546 | ||
f3365c12 JM |
4547 | 2016-08-09 Jason Merrill <jason@redhat.com> |
4548 | ||
4549 | * c-common.c (c_common_attribute_table): vector_size affects type | |
4550 | identity. | |
4551 | ||
f0bc3323 MP |
4552 | 2016-08-09 Marek Polacek <polacek@redhat.com> |
4553 | ||
4554 | PR c/7652 | |
4555 | * c-ada-spec.c (dump_generic_ada_node): Add return. | |
4556 | ||
98e5a19a JM |
4557 | 2016-08-09 Jason Merrill <jason@redhat.com> |
4558 | ||
4559 | * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for | |
4560 | C++17 constexpr lambdas. | |
4561 | ||
895aa8e1 DM |
4562 | 2016-08-08 David Malcolm <dmalcolm@redhat.com> |
4563 | ||
4564 | PR c/64955 | |
4565 | * c-common.h (selftest::c_format_c_tests): New declaration. | |
4566 | (selftest::run_c_tests): New declaration. | |
4567 | * c-format.c: Include "selftest.h. | |
4568 | (format_warning_va): Add param "corrected_substring" and use | |
4569 | it to add a replacement fix-it hint. | |
4570 | (format_warning_at_substring): Likewise. | |
4571 | (format_warning_at_char): Update for new param of | |
4572 | format_warning_va. | |
4573 | (argument_parser::check_argument_type): Pass "fki" to | |
4574 | check_format_types. | |
4575 | (check_format_types): Add param "fki" and pass it to | |
4576 | format_type_warning. | |
4577 | (deref_n_times): New function. | |
4578 | (get_modifier_for_format_len): New function. | |
4579 | (selftest::test_get_modifier_for_format_len): New function. | |
4580 | (get_format_for_type): New function. | |
4581 | (format_type_warning): Add param "fki" and use it to attempt | |
4582 | to provide hints for argument types when calling | |
4583 | format_warning_at_substring. | |
4584 | (selftest::get_info): New function. | |
4585 | (selftest::assert_format_for_type_streq): New function. | |
4586 | (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro. | |
4587 | (selftest::test_get_format_for_type_printf): New function. | |
4588 | (selftest::test_get_format_for_type_scanf): New function. | |
4589 | (selftest::c_format_c_tests): New function. | |
4590 | ||
e52ed3fe DM |
4591 | 2016-08-08 David Malcolm <dmalcolm@redhat.com> |
4592 | ||
4593 | PR c/52952 | |
4594 | * c-format.c: Include "diagnostic.h". | |
4595 | (location_column_from_byte_offset): Delete. | |
4596 | (location_from_offset): Delete. | |
4597 | (format_warning_va): New function. | |
4598 | (format_warning_at_substring): New function. | |
4599 | (format_warning_at_char): New function. | |
4600 | (check_format_arg): Capture location of format_tree and pass to | |
4601 | check_format_info_main. | |
4602 | (argument_parser): Add fields "start_of_this_format" and | |
4603 | "format_string_cst". | |
4604 | (flag_chars_t::validate): Add param "format_string_cst". Convert | |
4605 | warning_at call using location_from_offset to call to | |
4606 | format_warning_at_char. | |
4607 | (argument_parser::argument_parser): Add param "format_string_cst_" | |
4608 | and use use it to initialize field "format_string_cst". | |
4609 | Initialize new field "start_of_this_format". | |
4610 | (argument_parser::read_format_flags): Convert warning_at call | |
4611 | using location_from_offset to a call to format_warning_at_char. | |
4612 | (argument_parser::read_any_format_left_precision): Likewise. | |
4613 | (argument_parser::read_any_format_precision): Likewise. | |
4614 | (argument_parser::read_any_other_modifier): Likewise. | |
4615 | (argument_parser::find_format_char_info): Likewise, in three places. | |
4616 | (argument_parser::parse_any_scan_set): Likewise, in one place. | |
4617 | (argument_parser::handle_conversions): Likewise, in two places. | |
4618 | (argument_parser::check_argument_type): Add param "fmt_param_loc" | |
4619 | and use it to make a substring_loc. Pass the latter to | |
4620 | check_format_types. | |
4621 | (check_format_info_main): Add params "fmt_param_loc" and | |
4622 | "format_string_cst". Convert warning_at calls using | |
4623 | location_from_offset to calls to format_warning_at_char. Pass the | |
4624 | new params to the arg_parser ctor. Pass "format_string_cst" to | |
4625 | flag_chars.validate. Pass "fmt_param_loc" to | |
4626 | arg_parser.check_argument_type. | |
4627 | (check_format_types): Convert first param from a location_t | |
4628 | to a const substring_loc & and rename to "fmt_loc". Attempt | |
4629 | to extract the range of the relevant parameter and pass it | |
4630 | to format_type_warning. | |
4631 | (format_type_warning): Convert first param from a location_t | |
4632 | to a const substring_loc & and rename to "fmt_loc". Add | |
4633 | params "param_range" and "type". Replace calls to warning_at | |
4634 | with calls to format_warning_at_substring. | |
4635 | ||
1c4d457e DM |
4636 | 2016-08-08 David Malcolm <dmalcolm@redhat.com> |
4637 | ||
4638 | * c-format.c (class flag_chars_t): New class. | |
4639 | (struct length_modifier): New struct. | |
4640 | (class argument_parser): New class. | |
4641 | (flag_chars_t::flag_chars_t): New ctor. | |
4642 | (flag_chars_t::has_char_p): New method. | |
4643 | (flag_chars_t::add_char): New method. | |
4644 | (flag_chars_t::validate): New method. | |
4645 | (flag_chars_t::get_alloc_flag): New method. | |
4646 | (flag_chars_t::assignment_suppression_p): New method. | |
4647 | (argument_parser::argument_parser): New ctor. | |
4648 | (argument_parser::read_any_dollar): New method. | |
4649 | (argument_parser::read_format_flags): New method. | |
4650 | (argument_parser::read_any_format_width): New method. | |
4651 | (argument_parser::read_any_format_left_precision): New method. | |
4652 | (argument_parser::read_any_format_precision): New method. | |
4653 | (argument_parser::handle_alloc_chars): New method. | |
4654 | (argument_parser::read_any_length_modifier): New method. | |
4655 | (argument_parser::read_any_other_modifier): New method. | |
4656 | (argument_parser::find_format_char_info): New method. | |
4657 | (argument_parser::validate_flag_pairs): New method. | |
4658 | (argument_parser::give_y2k_warnings): New method. | |
4659 | (argument_parser::parse_any_scan_set): New method. | |
4660 | (argument_parser::handle_conversions): New method. | |
4661 | (argument_parser::check_argument_type): New method. | |
4662 | (check_format_info_main): Introduce classes argument_parser | |
4663 | and flag_chars_t, moving the code within the loop into methods | |
4664 | of these classes. Make various locals "const". | |
4665 | ||
88fa5555 DM |
4666 | 2016-08-05 David Malcolm <dmalcolm@redhat.com> |
4667 | ||
4668 | * c-common.c: Include "substring-locations.h". | |
4669 | (get_cpp_ttype_from_string_type): New function. | |
4670 | (g_string_concat_db): New global. | |
4671 | (substring_loc::get_range): New method. | |
4672 | * c-common.h (g_string_concat_db): New declaration. | |
4673 | (class substring_loc): New class. | |
4674 | * c-lex.c (lex_string): When concatenating strings, capture the | |
4675 | locations of all tokens using a new obstack, and record the | |
4676 | concatenation locations within g_string_concat_db. | |
4677 | * c-opts.c (c_common_init_options): Construct g_string_concat_db | |
4678 | on the ggc-heap. | |
4679 | ||
78169471 MP |
4680 | 2016-07-29 Marek Polacek <polacek@redhat.com> |
4681 | ||
638fc14f MP |
4682 | PR c/71926 |
4683 | * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the | |
4684 | parentheses warning. | |
4685 | ||
78169471 MP |
4686 | PR c/71574 |
4687 | * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL. | |
4688 | ||
1225d6b1 ML |
4689 | 2016-07-28 Martin Liska <mliska@suse.cz> |
4690 | ||
4691 | PR gcov-profile/68025 | |
4692 | * c-common.c (handle_no_profile_instrument_function_attribute): | |
4693 | ||
ec1e2a40 BE |
4694 | 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4695 | ||
4696 | * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of | |
4697 | BITS_PER_UNIT_LOG. | |
4698 | ||
5ec2cd9f JM |
4699 | 2016-07-25 Jason Merrill <jason@redhat.com> |
4700 | ||
4701 | PR c++/65970 | |
4702 | * c.opt (fconstexpr-loop-limit): New. | |
4703 | ||
9dc5773f | 4704 | 2016-07-22 Martin Sebor <msebor@redhat.com> |
2e6b45af MS |
4705 | |
4706 | PR c++/71675 | |
4707 | * c-common.c (resolve_overloaded_builtin): Avoid converting | |
4708 | __atomic_compare_exchange_n return type to that of what its | |
4709 | first argument points to. | |
4710 | ||
e3fe09c1 UB |
4711 | 2016-07-22 Uros Bizjak <ubizjak@gmail.com> |
4712 | ||
4713 | * c-common.c: Use HOST_WIDE_INT_M1U instead of | |
4714 | ~(unsigned HOST_WIDE_INT) 0. | |
4715 | ||
bc91c436 ML |
4716 | 2016-07-22 Martin Liska <mliska@suse.cz> |
4717 | ||
4718 | PR gcov-profile/69028 | |
4719 | PR gcov-profile/62047 | |
4720 | * cilk.c (create_cilk_helper_decl): Set location of a new decl | |
4721 | to the current_function_decl. | |
4722 | ||
451dcc66 JM |
4723 | 2016-07-21 Jason Merrill <jason@redhat.com> |
4724 | ||
4725 | PR c++/65168 | |
4726 | * c-common.c (c_common_truthvalue_conversion): Check | |
4727 | c_inhibit_evaluation_warnings for warning about address of | |
4728 | reference. | |
4729 | ||
de6a69ee DM |
4730 | 2016-07-20 David Malcolm <dmalcolm@redhat.com> |
4731 | ||
4732 | * c-common.h (lookup_name_fuzzy): Convert return type from tree to | |
4733 | const char *. | |
4734 | ||
d022c55a JM |
4735 | 2016-07-15 Jason Merrill <jason@redhat.com> |
4736 | ||
4737 | * c-opts.c (c_common_post_options): Update -fabi-version default to 11. | |
4738 | ||
ddbbcb19 JJ |
4739 | 2016-07-15 Jakub Jelinek <jakub@redhat.com> |
4740 | ||
4741 | PR c/71858 | |
4742 | * c-common.h (enum lookup_name_fuzzy_kind): Add | |
4743 | FUZZY_LOOKUP_FUNCTION_NAME. | |
4744 | ||
d0cf395a JM |
4745 | 2016-07-08 Jason Merrill <jason@redhat.com> |
4746 | ||
4747 | P0145: Refining Expression Order for C++. | |
4748 | * c.opts (-fargs-in-order): Rename to -fstrong-eval-order. | |
4749 | * c-opts.c: Adjust. | |
4750 | ||
98d44e93 MT |
4751 | 2016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de> |
4752 | ||
4753 | PR c++/71214 | |
4754 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references. | |
4755 | ||
f9d8d994 TS |
4756 | 2016-06-29 Thomas Schwinge <thomas@codesourcery.com> |
4757 | ||
4758 | * c-pragma.h (enum pragma_kind): Rename | |
4759 | PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all | |
4760 | users. | |
4761 | ||
4aa83879 RB |
4762 | 2016-06-29 Richard Biener <rguenther@suse.de> |
4763 | ||
4764 | PR middle-end/71002 | |
4765 | * c-common.c (c_common_get_alias_set): Remove union type punning case. | |
4766 | ||
a25bd9e6 JM |
4767 | 2016-06-24 Jason Merrill <jason@redhat.com> |
4768 | ||
4769 | P0145R2: Refining Expression Order for C++. | |
4770 | * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of | |
4771 | MODIFY_EXPR. | |
4772 | ||
a86451b9 JJ |
4773 | 2016-06-24 Jakub Jelinek <jakub@redhat.com> |
4774 | ||
4775 | * c-common.c (check_builtin_function_arguments): Require last | |
4776 | argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type. | |
4777 | Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW | |
4778 | if the last argument is pointer to enumerated or boolean type. | |
4779 | ||
1a4f11c8 DM |
4780 | 2016-06-22 David Malcolm <dmalcolm@redhat.com> |
4781 | ||
4782 | PR c/70339 | |
4783 | * c-common.h (enum lookup_name_fuzzy_kind): New enum. | |
4784 | (lookup_name_fuzzy): New prototype. | |
4785 | ||
fe55692c JDA |
4786 | 2016-06-21 John David Anglin <danglin@gcc.gnu.org> |
4787 | ||
4788 | * c-common.c (get_source_date_epoch): Use int64_t instead of long long. | |
4789 | ||
4eb24e01 JM |
4790 | 2016-06-14 Jason Merrill <jason@redhat.com> |
4791 | ||
4792 | P0145R2: Refining Expression Order for C++. | |
4793 | * c.opt (fargs-in-order): New. | |
4794 | * c-opts.c (c_common_post_options): Adjust flag_args_in_order. | |
4795 | ||
ef7cf206 JJ |
4796 | 2016-06-13 Jakub Jelinek <jakub@redhat.com> |
4797 | ||
0dda258b JJ |
4798 | PR sanitizer/71498 |
4799 | * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on | |
4800 | all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY. | |
4801 | ||
ef7cf206 JJ |
4802 | PR preprocessor/71183 |
4803 | * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch | |
4804 | to cb_get_source_date_epoch. | |
4805 | ||
50b15873 JJ |
4806 | 2016-06-10 Jakub Jelinek <jakub@redhat.com> |
4807 | ||
4808 | PR c/68657 | |
4809 | * c.opt (Wpsabi): Add Warning flag. | |
4810 | ||
4d926e34 MS |
4811 | 2016-06-10 Martin Sebor <msebor@redhat.com> |
4812 | ||
4813 | PR c/71392 | |
14ec014e | 4814 | * c-common.c (handle_nonnull_attribute): Accept |
4d926e34 MS |
4815 | the nonnull attribute in type-generic builtins. |
4816 | ||
e01b4e16 MS |
4817 | 2016-06-09 Martin Sebor <msebor@redhat.com> |
4818 | ||
4819 | PR c/70883 | |
4820 | * c-common.c (builtin_function_validate_nargs): Make text of error | |
4821 | message consistent with others like it. | |
4822 | ||
44a845ca MS |
4823 | 2016-06-08 Martin Sebor <msebor@redhat.com> |
4824 | Jakub Jelinek <jakub@redhat.com> | |
4825 | ||
4826 | PR c++/70507 | |
4827 | PR c/68120 | |
4828 | * c-common.c (check_builtin_function_arguments): Handle | |
4829 | BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P. | |
4830 | ||
a80a7051 RB |
4831 | 2016-06-08 Richard Biener <rguenther@suse.de> |
4832 | ||
4833 | * c-common.c (parse_optimize_options): Improve diagnostic messages. | |
4834 | ||
bfd67b47 RB |
4835 | 2016-06-07 Richard Biener <rguenther@suse.de> |
4836 | ||
4837 | PR c/61564 | |
4838 | * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION | |
4839 | options and warn about others. | |
4840 | ||
15c98b2e ES |
4841 | 2016-06-01 Eduard Sanou <dhole@openmailbox.org> |
4842 | ||
4843 | * c-common.c (get_source_date_epoch): Rename to | |
4844 | cb_get_source_date_epoch. | |
4845 | * c-common.c (cb_get_source_date_epoch): Use a single generic erorr | |
4846 | message when the parsing fails. Use error_at instead of fatal_error. | |
4847 | * c-common.h (get_source_date_epoch): Rename to | |
4848 | cb_get_source_date_epoch. | |
4849 | * c-common.h (cb_get_source_date_epoch): Prototype. | |
4850 | * c-common.h (MAX_SOURCE_DATE_EPOCH): Define. | |
4851 | * c-common.h (c_omp_region_type): Remove trailing comma. | |
4852 | * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback. | |
4853 | * c-lex.c (c_lex_with_flags): Remove initialization of | |
4854 | pfile->source_date_epoch. | |
4855 | ||
00631022 JJ |
4856 | 2016-05-30 Jakub Jelinek <jakub@redhat.com> |
4857 | ||
4858 | PR c++/71349 | |
4859 | * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to | |
4860 | C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to | |
4861 | C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct, | |
4862 | instead of C_OMP_CLAUSE_SPLIT_FOR. | |
4863 | ||
f17a223d RB |
4864 | 2016-05-24 Richard Biener <rguenther@suse.de> |
4865 | ||
4866 | PR middle-end/70434 | |
4867 | PR c/69504 | |
4868 | * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ... | |
4869 | (convert_vector_to_array_for_subscript): ... this. | |
4870 | * c-common.c (convert_vector_to_pointer_for_subscript): Use a | |
4871 | VIEW_CONVERT_EXPR to an array type. Rename to ... | |
4872 | (convert_vector_to_array_for_subscript): ... this. | |
4873 | ||
4f2e1536 MP |
4874 | 2016-05-12 Marek Polacek <polacek@redhat.com> |
4875 | ||
4876 | PR c/70756 | |
4877 | * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of | |
4878 | size_in_bytes and pass LOC to it. | |
4879 | ||
d6e83a8d MM |
4880 | 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com> |
4881 | ||
4882 | PR c/43651 | |
4883 | * c.opt (Wduplicate-decl-specifier): New option. | |
4884 | ||
5c3a10fb MP |
4885 | 2016-05-11 Marek Polacek <polacek@redhat.com> |
4886 | ||
4887 | PR c++/71024 | |
4888 | * c-common.c (diagnose_mismatched_attributes): New function. | |
4889 | * c-common.h (diagnose_mismatched_attributes): Declare. | |
4890 | ||
deef7113 MP |
4891 | 2016-05-04 Marek Polacek <polacek@redhat.com> |
4892 | ||
4893 | * c.opt (Wdangling-else): New option. | |
4894 | ||
79ce98bc MP |
4895 | 2016-05-03 Marek Polacek <polacek@redhat.com> |
4896 | ||
4897 | PR c/70859 | |
4898 | * c-common.c (builtin_function_validate_nargs): Add location | |
4899 | parameter. Use it. | |
4900 | (check_builtin_function_arguments): Add location and arguments | |
4901 | parameters. Use them. | |
4902 | * c-common.h (check_builtin_function_arguments): Update declaration. | |
4903 | ||
381cdae4 RB |
4904 | 2016-05-03 Richard Biener <rguenther@suse.de> |
4905 | ||
4906 | * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not | |
4907 | allow call args to gimplify to SSA names. | |
4908 | ||
1d793c34 MP |
4909 | 2016-05-03 Marek Polacek <polacek@redhat.com> |
4910 | ||
4911 | * c-common.h (enum c_omp_region_type): Remove stray comma. | |
4912 | ||
77886428 CP |
4913 | 2016-05-02 Cesar Philippidis <cesar@codesourcery.com> |
4914 | ||
4915 | * c-common.h (enum c_omp_region_type): Define. | |
4916 | ||
697e0b28 RS |
4917 | 2016-05-02 Richard Sandiford <richard.sandiford@arm.com> |
4918 | ||
4919 | * c-common.c (shorten_compare): Use wi::to_wide. | |
4920 | ||
e7ff0319 CP |
4921 | 2016-04-29 Cesar Philippidis <cesar@codesourcery.com> |
4922 | ||
4923 | PR middle-end/70626 | |
4924 | * c-common.h (c_oacc_split_loop_clauses): Add boolean argument. | |
4925 | * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate | |
4926 | reduction clauses in acc parallel loops. | |
4927 | ||
2fff3db8 MP |
4928 | 2016-04-29 Marek Polacek <polacek@redhat.com> |
4929 | ||
4930 | PR c/70852 | |
4931 | * c-common.c (warn_for_memset): Check domain before accessing it. | |
4932 | ||
509063eb DV |
4933 | 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com> |
4934 | ||
4935 | PR/69089 | |
4936 | * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the | |
4937 | "aligned" attribute. | |
4938 | ||
b632761d JM |
4939 | 2016-04-28 Jason Merrill <jason@redhat.com> |
4940 | ||
4941 | * c-lex.c (c_common_has_attribute): Handle nodiscard. | |
4942 | ||
174f6622 ES |
4943 | 2016-04-28 Eduard Sanou <dhole@openmailbox.org> |
4944 | Matthias Klose <doko@debian.org> | |
4945 | ||
4946 | * c-common.c (get_source_date_epoch): New function, gets the environment | |
7365279f | 4947 | variable SOURCE_DATE_EPOCH and parses it as long long with error |
174f6622 ES |
4948 | handling. |
4949 | * c-common.h (get_source_date_epoch): Prototype. | |
4950 | * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch. | |
4951 | ||
6bc2bb18 RB |
4952 | 2015-04-27 Ryan Burn <contact@rnburn.com> |
4953 | ||
4954 | PR c++/69024 | |
4955 | PR c++/68997 | |
4956 | * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage. | |
4957 | (cilk_recognize_spawn): Renamed from recognize_spawn and change to | |
4958 | external linkage. | |
4959 | (cilk_detect_and_unwrap): Corresponding changes. | |
4960 | (extract_free_variables): Don't extract free variables from | |
4961 | AGGR_INIT_EXPR slot. | |
4962 | * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype. | |
4963 | (cilk_recognize_spawn): Likewise. | |
4964 | ||
c1e1f433 BS |
4965 | 2016-04-27 Bernd Schmidt <bschmidt@redhat.com> |
4966 | ||
4967 | * c.opt (Wmemset-elt-size): New option. | |
4968 | * c-common.c (warn_for_memset): New function. | |
4969 | * c-common.h (warn_for_memset): Declare. | |
4970 | ||
d067e05f JM |
4971 | 2016-04-25 Jason Merrill <jason@redhat.com> |
4972 | ||
4973 | * c-common.c (handle_unused_attribute): Accept CONST_DECL. | |
4974 | No longer static. | |
4975 | * c-common.h: Declare it. | |
4976 | * c-lex.c (c_common_has_attribute): Add maybe_unused. | |
4977 | ||
9aa36ae5 JM |
4978 | 2016-04-22 Jason Merrill <jason@redhat.com> |
4979 | ||
4980 | * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for. | |
4981 | ||
477d4906 IV |
4982 | 2016-04-20 Ilya Verbin <ilya.verbin@intel.com> |
4983 | ||
4984 | PR c++/69363 | |
4985 | * c-cilkplus.c (c_finish_cilk_clauses): Remove function. | |
4986 | * c-common.h (c_finish_cilk_clauses): Remove declaration. | |
4987 | ||
fe37c7af MM |
4988 | 2016-04-18 Michael Matz <matz@suse.de> |
4989 | ||
4990 | * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN | |
4991 | and SET_DECL_ALIGN. | |
4992 | ||
23f2660f EB |
4993 | 2016-04-17 Eric Botcazou <ebotcazou@adacore.com> |
4994 | ||
4995 | * c-ada-spec.c (get_underlying_decl): Return the typedef, if any. | |
4996 | (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access | |
4997 | to incomplete types. | |
4998 | (dump_nested_type): Remove redundant tests and tidy up. | |
4999 | (print_ada_declaration): Also set TREE_VISITED on the declaration of | |
5000 | a type which is the typedef of an original type. | |
5001 | ||
1e77281b MP |
5002 | 2016-04-15 Marek Polacek <polacek@redhat.com> |
5003 | ||
5004 | PR c/70651 | |
5005 | * c-common.c (build_va_arg): Change two asserts into errors and return | |
5006 | error_mark_node. | |
5007 | ||
b3a77f21 MP |
5008 | 2016-04-13 Marek Polacek <polacek@redhat.com> |
5009 | ||
5010 | PR c++/70639 | |
5011 | * c-indentation.c (should_warn_for_misleading_indentation): Bail out | |
5012 | for switch statements, too. | |
5013 | ||
322b8466 JM |
5014 | 2016-03-28 Jason Merrill <jason@redhat.com> |
5015 | ||
5016 | * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for. | |
5017 | ||
fbdb6baf MP |
5018 | 2016-03-23 Marek Polacek <polacek@redhat.com> |
5019 | ||
5020 | PR c++/69884 | |
5021 | * c.opt (Wignored-attributes): New option. | |
5022 | ||
5c240f4d DM |
5023 | 2016-03-22 David Malcolm <dmalcolm@redhat.com> |
5024 | ||
5025 | PR c/69993 | |
5026 | * c-indentation.c (warn_for_misleading_indentation): Rewrite the | |
5027 | diagnostic text, reversing the order of the warning and note so | |
5028 | that they appear in source order. | |
5029 | ||
14ba7b28 MP |
5030 | 2016-03-17 Marek Polacek <polacek@redhat.com> |
5031 | ||
5032 | PR c/69407 | |
5033 | * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch | |
5034 | operations. | |
5035 | ||
08a1cadc JM |
5036 | 2016-03-14 Jason Merrill <jason@redhat.com> |
5037 | ||
2aaeea19 JM |
5038 | * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float. |
5039 | ||
08a1cadc JM |
5040 | * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for. |
5041 | ||
c06d25bb RB |
5042 | 2016-03-09 Richard Biener <rguenther@suse.de> |
5043 | ||
5044 | PR c/70143 | |
5045 | * c-common.c (strict_aliasing_warning): Add back | |
5046 | alias_sets_conflict_p check. | |
5047 | ||
80aac5c8 JM |
5048 | 2016-03-08 Jason Merrill <jason@redhat.com> |
5049 | ||
5050 | * c-opts.c (set_std_cxx1z): Don't enable concepts. | |
5051 | ||
64b23c13 DM |
5052 | 2016-03-04 David Malcolm <dmalcolm@redhat.com> |
5053 | ||
5054 | PR c/68187 | |
5055 | * c-indentation.c (get_visual_column): Move code to determine next | |
5056 | tab stop to... | |
5057 | (next_tab_stop): ...this new function. | |
5058 | (line_contains_hash_if): Delete function. | |
5059 | (detect_preprocessor_logic): Delete function. | |
5060 | (get_first_nws_vis_column): New function. | |
5061 | (detect_intervening_unindent): New function. | |
5062 | (should_warn_for_misleading_indentation): Replace call to | |
5063 | detect_preprocessor_logic with a call to | |
5064 | detect_intervening_unindent. | |
5065 | ||
729526f5 DM |
5066 | 2016-03-04 David Malcolm <dmalcolm@redhat.com> |
5067 | ||
5068 | PR c/68187 | |
5069 | * c-indentation.c (should_warn_for_misleading_indentation): When | |
5070 | suppressing warnings about cases where the guard and body are on | |
5071 | the same column, only use the first non-whitespace column in place | |
5072 | of the guard token column when dealing with "else" clauses. | |
5073 | When rejecting aligned BODY and NEXT, loosen the requirement | |
5074 | from equality with the first non-whitespace of guard to simply | |
5075 | that they not be indented relative to it. | |
5076 | ||
e9a35493 RB |
5077 | 2016-03-04 Richard Biener <rguenther@suse.de> |
5078 | ||
5079 | PR c++/70054 | |
5080 | * c-common.c (strict_aliasing_warning): Use alias_set_subset_of | |
5081 | instead of alias_sets_conflict_p. | |
5082 | ||
1be56bc5 MP |
5083 | 2016-03-01 Marek Polacek <polacek@redhat.com> |
5084 | ||
5085 | PR c++/69795 | |
5086 | * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than | |
5087 | any DECL. | |
5088 | ||
35886f0b MS |
5089 | 2016-02-22 Martin Sebor <msebor@redhat.com> |
5090 | ||
5091 | PR middle-end/69780 | |
5092 | * c-common.c (check_builtin_function_arguments): Validate and | |
5093 | reject invalid arguments to __builtin_alloca_with_align. | |
5094 | ||
4246c8da MW |
5095 | 2016-02-20 Mark Wielaard <mjw@redhat.com> |
5096 | ||
5097 | PR c/28901 | |
5098 | * c.opt (Wunused-const-variable): Turn into Alias for... | |
5099 | (Wunused-const-variable=): New option. | |
5100 | ||
268be88c BE |
5101 | 2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de> |
5102 | ||
5103 | PR c++/69865 | |
5104 | * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from | |
5105 | here... | |
5106 | (c_common_init_options): ...to here. | |
5107 | (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99. | |
5108 | ||
871b3f47 JJ |
5109 | 2016-02-19 Jakub Jelinek <jakub@redhat.com> |
5110 | ||
5111 | PR c++/69826 | |
5112 | * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE. | |
5113 | (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for | |
5114 | flag_preprocess_only. | |
5115 | ||
bf14eba2 JJ |
5116 | 2016-02-16 Jakub Jelinek <jakub@redhat.com> |
5117 | ||
5118 | PR c/69835 | |
5119 | * c.opt (Wnonnull-compare): Enable for -Wall. | |
5120 | ||
ba6b3795 JJ |
5121 | 2016-02-15 Jakub Jelinek <jakub@redhat.com> |
5122 | ||
5123 | PR c++/69797 | |
5124 | * c-common.c (sync_resolve_size): Diagnose too few arguments | |
5125 | even when params is non-NULL empty vector. | |
5126 | ||
a011cd92 BS |
5127 | 2016-02-08 Bernd Schmidt <bschmidt@redhat.com> |
5128 | ||
5129 | PR target/60410 | |
5130 | * c.opt (fshort-double): Remove. | |
5131 | ||
46cb9332 MS |
5132 | 2016-02-05 Martin Sebor <msebor@redhat.com> |
5133 | ||
5134 | PR c++/69662 | |
5135 | * c.opt (Warning options): Update -Wplacement-new to take | |
5136 | an optional argument. | |
5137 | ||
e1b81f2b JJ |
5138 | 2016-02-01 Jakub Jelinek <jakub@redhat.com> |
5139 | ||
5140 | PR preprocessor/69543 | |
5141 | PR c/69558 | |
5142 | * c-pragma.c (handle_pragma_diagnostic): Pass input_location | |
5143 | instead of loc to control_warning_option. | |
5144 | ||
b6adbb9f NS |
5145 | 2016-02-01 Nathan Sidwell <nathan@codesourcery.com> |
5146 | ||
5147 | * c.opt (fopenacc-dim=): New option. | |
5148 | ||
5d70666e RB |
5149 | 2016-01-27 Ryan Burn <contact@rnburn.com> |
5150 | ||
5151 | PR cilkplus/69267 | |
5152 | * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use | |
5153 | gimplify_arg. Removed superfluous post_p argument. | |
5154 | * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed | |
5155 | superfluous post_p argument. | |
5156 | * c-gimplify.c (c_gimplify_expr): Likewise. | |
5157 | ||
01e1dea3 DM |
5158 | 2016-01-26 David Malcolm <dmalcolm@redhat.com> |
5159 | ||
5160 | PR other/69006 | |
5161 | * c-opts.c (c_diagnostic_finalizer): Replace invocation of | |
5162 | pp_newline_and_flush with pp_flush. | |
5163 | ||
9f04a53e MS |
5164 | 2016-01-20 Martin Sebor <msebor@redhat.com> |
5165 | ||
5166 | PR c/69405 | |
5167 | * c-common.c (sync_resolve_size): Avoid printing diagnostic about | |
5168 | an incompatible argument when the argument isn't a valid tree node. | |
5169 | ||
7f26f7df JM |
5170 | 2016-01-18 Jason Merrill <jason@redhat.com> |
5171 | ||
5172 | PR c++/68767 | |
5173 | * c-common.c (check_function_arguments_recurse): Fold the whole | |
5174 | COND_EXPR, not just the condition. | |
5175 | ||
f62bf092 TV |
5176 | 2016-01-18 Tom de Vries <tom@codesourcery.com> |
5177 | ||
5178 | * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION, | |
5179 | classify as loop clause. | |
5180 | ||
e0a575ff JJ |
5181 | 2016-01-15 Jakub Jelinek <jakub@redhat.com> |
5182 | ||
5183 | PR bootstrap/68271 | |
5184 | * c-pragma.c (c_register_pragma_1): Adjust comment to note that | |
5185 | C++ FE no longer has limit on number of pragmas. | |
5186 | ||
5187 | 2015-01-14 Ryan Burn <contact@rnburn.com> | |
b6e3db06 RB |
5188 | |
5189 | PR c++/69048 | |
5190 | * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr | |
c47eaca6 | 5191 | to add missing cleanup point. |
b6e3db06 | 5192 | |
c7df95d8 DM |
5193 | 2016-01-14 David Malcolm <dmalcolm@redhat.com> |
5194 | ||
5195 | PR c++/68819 | |
5196 | * c-indentation.c (get_visual_column): Add location_t param. | |
5197 | Handle the column number being zero by effectively disabling the | |
5198 | warning, with an "inform". | |
5199 | (should_warn_for_misleading_indentation): Add location_t argument | |
5200 | for all uses of get_visual_column. | |
5201 | ||
21efdd80 PP |
5202 | 2016-01-10 Patrick Palka <ppalka@gcc.gnu.org> |
5203 | ||
5204 | PR c++/69029 | |
5205 | * c-indentation.c (should_warn_for_misleading_indentation): | |
5206 | Don't warn about do-while statements. | |
5207 | ||
7a127fa7 MS |
5208 | 2016-01-07 Martin Sebor <msebor@redhat.com> |
5209 | ||
5210 | PR c/68966 | |
5211 | * c-common.c (sync_resolve_size): Reject first argument when it's | |
5212 | a pointer to _Bool. | |
5213 | ||
c589e975 DM |
5214 | 2016-01-05 David Malcolm <dmalcolm@redhat.com> |
5215 | ||
5216 | PR c/69122 | |
5217 | * c-indentation.c (get_visual_column): Remove default argument. | |
5218 | (should_warn_for_misleading_indentation): For the multiline case, | |
5219 | update call to get_visual_column for next_stmt_exploc so that it | |
5220 | captures the location of the first non-whitespace character in the | |
5221 | relevant line. Don't issue warnings if there is non-whitespace | |
5222 | before the next statement. | |
5223 | ||
818ab71a JJ |
5224 | 2016-01-04 Jakub Jelinek <jakub@redhat.com> |
5225 | ||
5226 | Update copyright years. | |
5227 | ||
745e411d DM |
5228 | 2015-12-21 David Malcolm <dmalcolm@redhat.com> |
5229 | ||
5230 | * c-common.c (binary_op_error): Convert first param from | |
5231 | location_t to rich_location * and use it when emitting an error. | |
5232 | * c-common.h (binary_op_error): Convert first param from | |
5233 | location_t to rich_location *. | |
5234 | ||
de67c4c3 DM |
5235 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
5236 | ||
5237 | * c-common.h (conflict_marker_get_final_tok_kind): New prototype. | |
5238 | * c-lex.c (conflict_marker_get_final_tok_kind): New function. | |
5239 | ||
4a38b02b IV |
5240 | 2015-12-15 Ilya Verbin <ilya.verbin@intel.com> |
5241 | ||
5242 | * c-common.c (c_common_attribute_table): Handle "omp declare target | |
5243 | link" attribute. | |
5244 | ||
54d62f51 JJ |
5245 | 2015-12-14 Jakub Jelinek <jakub@redhat.com> |
5246 | ||
5247 | PR c/68833 | |
5248 | * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option. | |
5249 | ||
8d4227c8 TB |
5250 | 2014-12-12 Tobias Burnus <burnus@net-b.de> |
5251 | ||
5252 | PR fortran/68815 | |
5253 | * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining | |
5254 | specifiers (%d, %i,%u and %c). | |
5255 | ||
f6069ccc DM |
5256 | 2015-12-10 David Malcolm <dmalcolm@redhat.com> |
5257 | ||
5258 | * c.opt (Wmisleading-indentation): Add to -Wall for C and C++. | |
5259 | ||
63bbf46d JJ |
5260 | 2015-12-08 Jakub Jelinek <jakub@redhat.com> |
5261 | ||
5262 | PR c/48088 | |
5263 | PR c/68657 | |
5264 | * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning. | |
5265 | * c-pragma.c (handle_pragma_diagnostic): Adjust | |
5266 | control_warning_option caller. | |
5267 | ||
f79520bb DM |
5268 | 2015-12-07 David Malcolm <dmalcolm@redhat.com> |
5269 | ||
5270 | * c-common.c (c_cpp_error): Update for change to | |
5271 | rich_location::set_range. | |
5272 | ||
b3d5bc62 JJ |
5273 | 2015-12-04 Paolo Bonzini <bonzini@gnu.org> |
5274 | ||
5275 | * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if | |
5276 | shifting 1 out of the sign bit. | |
5277 | ||
5278 | 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com> | |
5279 | ||
5280 | * c-common.c (c_common_attribute_table[]): Update max arguments | |
5281 | count for "simd" attribute. | |
5282 | (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments. | |
5283 | ||
6eb4a537 JJ |
5284 | 2015-12-03 Jakub Jelinek <jakub@redhat.com> |
5285 | ||
5286 | PR preprocessor/57580 | |
5287 | * c-ppoutput.c (print): Change printed field to bool. | |
5288 | Move src_file last for smaller padding. | |
5289 | (init_pp_output): Set print.printed to false instead of 0. | |
5290 | (scan_translation_unit): Fix up formatting. Set print.printed | |
5291 | to true after printing something other than newline. | |
5292 | (scan_translation_unit_trad): Set print.printed to true instead of 1. | |
5293 | (maybe_print_line_1): Set print.printed to false instead of 0. | |
5294 | (print_line_1): Likewise. | |
5295 | (do_line_change): Set print.printed to true instead of 1. | |
5296 | (cb_define, dump_queued_macros, cb_include, cb_def_pragma, | |
5297 | dump_macro): Set print.printed to false after printing newline. | |
5298 | ||
4250754e JM |
5299 | 2015-12-02 Jason Merrill <jason@redhat.com> |
5300 | ||
f479b43d JM |
5301 | * c-common.c (fold_for_warn): New. |
5302 | (warn_logical_operator, warn_tautological_cmp) | |
5303 | (check_function_arguments_recurse, maybe_warn_bool_compare): Use it. | |
5304 | ||
4250754e JM |
5305 | * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold) |
5306 | (c_fully_fold_internal, decl_constant_value_for_optimization): | |
5307 | Move to c/c-fold.c. | |
5308 | * c-common.h: Don't declare decl_constant_value_for_optimization. | |
5309 | ||
e9e32ee6 JM |
5310 | 2015-12-02 Joseph Myers <joseph@codesourcery.com> |
5311 | ||
5312 | PR c/68162 | |
5313 | * c-common.h (c_build_qualified_type): Add extra default | |
5314 | arguments. | |
5315 | ||
37d5ad46 JB |
5316 | 2015-12-01 Julian Brown <julian@codesourcery.com> |
5317 | Cesar Philippidis <cesar@codesourcery.com> | |
5318 | James Norris <James_Norris@mentor.com> | |
5319 | ||
5320 | * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA. | |
5321 | * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA. | |
5322 | (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE. | |
5323 | ||
f07862c7 EB |
5324 | 2015-11-30 Eric Botcazou <ebotcazou@adacore.com> |
5325 | ||
5326 | * c-ada-spec.c (print_ada_macros): Remove redundant blank line. | |
5327 | (decl_sloc_common): Delete and move bulk of processing to... | |
5328 | (decl_sloc): ...here. | |
5329 | (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE. | |
5330 | (dump_ada_double_name): Remove S parameter and compute the suffix. | |
5331 | (dump_ada_array_type): Add PARENT parameter. Simplify computation of | |
5332 | element type and deal with an anonymous one. | |
5333 | (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro. | |
5334 | (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type | |
5335 | and remove reference to QUAL_UNION_TYPE. | |
5336 | (dump_nested_types): Make 2 passes on the fields and move bulk to... | |
5337 | (dump_nested_type): ...here. New function extracted from above. | |
5338 | Generate a full declaration for anonymous element type of arrays. | |
5339 | (print_ada_declaration): Really skip anonymous declarations. Remove | |
5340 | references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type. | |
5341 | Clean up processing of declarations of array types and objects. | |
5342 | (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE. | |
5343 | Remove obsolete code and tidy up. | |
5344 | ||
75c8aac3 JH |
5345 | 2015-11-29 Jan Hubicka <hubicka@ucw.cz> |
5346 | ||
5347 | PR c/67581 | |
5348 | * c-common.c (handle_transparent_union_attribute): Update | |
5349 | also type variants. | |
5350 | ||
b58d3df2 ML |
5351 | 2015-11-27 Martin Liska <mliska@suse.cz> |
5352 | ||
5353 | PR c++/68312 | |
5354 | * array-notation-common.c (cilkplus_extract_an_triplets): | |
5355 | Release vector of vectors. | |
5356 | * cilk.c (gimplify_cilk_spawn): Free allocated memory. | |
5357 | ||
89a01fcf EB |
5358 | 2015-11-26 Eric Botcazou <ebotcazou@adacore.com> |
5359 | ||
5360 | PR c++/68527 | |
5361 | * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node. | |
5362 | (print_ada_struct_decl): Likewise. | |
5363 | ||
cc5c5226 IZ |
5364 | 2015-11-23 Igor Zamyatin <igor.zamyatin@intel.com> |
5365 | ||
5366 | PR c++/68001 | |
5367 | * c-gimplify.c (c_gimplify_expr): Stop the process if see an error. | |
5368 | * cilk.c (recognize_spawn): Determine location in a more precise | |
5369 | way. | |
5370 | ||
269adb9d JM |
5371 | 2015-11-19 Jason Merrill <jason@redhat.com> |
5372 | ||
5373 | * c-common.c (shorten_compare): But look through macros from | |
5374 | system headers. | |
5375 | ||
d0eccfcd JM |
5376 | 2015-11-18 Jason Merrill <jason@redhat.com> |
5377 | ||
5378 | * c-common.c (shorten_compare): Don't -Wtype-limits if the | |
5379 | non-constant operand comes from a macro. | |
5380 | ||
3e44547c JM |
5381 | 2015-11-17 Jason Merrill <jason@redhat.com> |
5382 | ||
5383 | PR bootstrap/68346 | |
5384 | * c-common.c (warn_tautological_cmp): Fold before checking for | |
5385 | constants. | |
5386 | ||
0f62c7a0 MP |
5387 | 2015-11-16 Marek Polacek <polacek@redhat.com> |
5388 | ||
5389 | PR c++/68362 | |
5390 | * c-common.c (check_case_bounds): Fold low and high cases. | |
5391 | ||
a868811e MP |
5392 | 2015-11-16 Marek Polacek <polacek@redhat.com> |
5393 | ||
5394 | * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P. | |
5395 | * c-common.c (c_common_get_alias_set): Likewise. | |
5396 | (handle_visibility_attribute): Likewise. | |
5397 | ||
fff77217 KY |
5398 | 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com> |
5399 | ||
5400 | * c-common.c (handle_simd_attribute): New. | |
5401 | (struct attribute_spec): Add entry for "simd". | |
5402 | (handle_simd_attribute): New. | |
5403 | ||
269e63b7 KT |
5404 | 2015-11-13 Kai Tietz <ktietz70@googlemail.com> |
5405 | ||
5406 | * c-lex.c (interpret_float): Use fold_convert. | |
5407 | ||
ebedc9a3 DM |
5408 | 2015-11-13 David Malcolm <dmalcolm@redhat.com> |
5409 | ||
5410 | * c-common.c (c_fully_fold_internal): Capture existing souce_range, | |
5411 | and store it on the result. | |
5412 | * c-opts.c (c_common_init_options): Set | |
5413 | global_dc->colorize_source_p. | |
5414 | ||
6e232ba4 JN |
5415 | 2015-11-12 James Norris <jnorris@codesourcery.com> |
5416 | Joseph Myers <joseph@codesourcery.com> | |
5417 | ||
7365279f | 5418 | * c-pragma.c (oacc_pragmas): Add entry for declare directive. |
6e232ba4 JN |
5419 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE. |
5420 | (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and | |
5421 | PRAGMA_OACC_CLAUSE_LINK. | |
5422 | ||
e78bede6 MP |
5423 | 2015-11-11 Marek Polacek <polacek@redhat.com> |
5424 | ||
5425 | PR c/68107 | |
5426 | PR c++/68266 | |
5427 | * c-common.c (valid_array_size_p): New function. | |
5428 | * c-common.h (valid_array_size_p): Declare. | |
5429 | ||
3f8257db | 5430 | 2015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr> |
4ac93c7c DH |
5431 | |
5432 | PR bootstrap/68271 | |
5433 | * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256. | |
5434 | ||
69f293c9 AM |
5435 | 2015-11-11 Andrew MacLeod <amacleod@redhat.com> |
5436 | ||
5437 | * array-notation-common.c: Remove unused header files. | |
5438 | * c-ada-spec.c: Likewise. | |
5439 | * c-cilkplus.c: Likewise. | |
5440 | * c-common.c: Likewise. | |
5441 | * c-cppbuiltin.c: Likewise. | |
5442 | * c-dump.c: Likewise. | |
5443 | * c-format.c: Likewise. | |
5444 | * c-gimplify.c: Likewise. | |
5445 | * c-indentation.c: Likewise. | |
5446 | * c-lex.c: Likewise. | |
5447 | * c-omp.c: Likewise. | |
5448 | * c-opts.c: Likewise. | |
5449 | * c-pch.c: Likewise. | |
5450 | * c-ppoutput.c: Likewise. | |
5451 | * c-pragma.c: Likewise. | |
5452 | * c-pretty-print.c: Likewise. | |
5453 | * c-semantics.c: Likewise. | |
5454 | * c-ubsan.c: Likewise. | |
5455 | * cilk.c: Likewise. | |
5456 | * stub-objc.c: Likewise. | |
5457 | ||
3a40d81d NS |
5458 | 2015-11-09 Thomas Schwinge <thomas@codesourcery.com> |
5459 | Cesar Philippidis <cesar@codesourcery.com> | |
5460 | James Norris <jnorris@codesourcery.com> | |
5461 | Julian Brown <julian@codesourcery.com> | |
5462 | Nathan Sidwell <nathan@codesourcery.com> | |
5463 | ||
5464 | * c-pragma.c (oacc_pragmas): Add "routine". | |
5465 | * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE. | |
5466 | ||
ee45a32d EB |
5467 | 2015-11-08 Eric Botcazou <ebotcazou@adacore.com> |
5468 | ||
5469 | * c-common.c (c_common_attributes): Add scalar_storage_order. | |
5470 | (handle_scalar_storage_order_attribute): New function. | |
5471 | * c-pragma.c (global_sso): New variable. | |
5472 | (maybe_apply_pragma_scalar_storage_order): New function. | |
5473 | (handle_pragma_scalar_storage_order): Likewise. | |
5474 | (init_pragma): Register scalar_storage_order. | |
5475 | * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare. | |
5476 | * c.opt (Wscalar-storage-order): New warning. | |
5477 | (fsso-struct=): New option. | |
5478 | ||
eb11eb15 MS |
5479 | 2015-11-08 Martin Sebor <msebor@redhat.com> |
5480 | ||
5481 | * c.opt (Wplacement-new): Add a period to the end of a sentence. | |
5482 | ||
0aad0198 RS |
5483 | 2015-11-07 Richard Sandiford <richard.sandiford@arm.com> |
5484 | ||
5485 | * c-common.c: Don't undef DEF_BUILTIN. | |
5486 | ||
8a645150 DM |
5487 | 2015-11-06 David Malcolm <dmalcolm@redhat.com> |
5488 | ||
5489 | * c-common.c (c_cpp_error): Convert parameter from location_t to | |
5490 | rich_location *. Eliminate the "column_override" parameter and | |
5491 | the call to diagnostic_override_column. | |
5492 | Update the "done_lexing" clause to set range 0 | |
5493 | on the rich_location, rather than overwriting a location_t. | |
5494 | * c-common.h (c_cpp_error): Convert parameter from location_t to | |
5495 | rich_location *. Eliminate the "column_override" parameter. | |
5496 | ||
7a5e4956 CP |
5497 | 2015-11-05 Cesar Philippidis <cesar@codesourcery.com> |
5498 | Thomas Schwinge <thomas@codesourcery.com> | |
5499 | James Norris <jnorris@codesourcery.com> | |
5500 | ||
5501 | * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR, | |
5502 | AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION | |
5503 | clauses with parallel and kernels and loops. | |
5504 | * c-pragma.h (enum pragma_omp_clause): Add entries for | |
5505 | PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}. | |
5506 | * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS, | |
5507 | NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO, | |
5508 | INDEPENDENT,SEQ}. | |
5509 | (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}. | |
5510 | ||
e2f5cc96 MS |
5511 | 2015-11-05 Martin Sebor <msebor@redhat.com> |
5512 | ||
5513 | PR c++/67942 | |
5514 | * c.opt (-Wplacement-new): New option. | |
5515 | ||
e01d41e5 JJ |
5516 | 2015-11-05 Jakub Jelinek <jakub@redhat.com> |
5517 | ||
5518 | * c-common.h (c_finish_omp_atomic): Add TEST argument. | |
5519 | (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes. | |
5520 | * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call | |
5521 | save_expr or create_tmp_var* if TEST is true. | |
5522 | (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always. | |
5523 | Don't call add_stmt here. | |
5524 | (struct c_omp_check_loop_iv_data): New type. | |
5525 | (c_omp_check_loop_iv_r, c_omp_check_loop_iv, | |
5526 | c_omp_check_loop_iv_exprs): New functions. | |
5527 | (c_omp_split_clauses): Adjust for lastprivate being allowed on | |
5528 | distribute. | |
5529 | (c_omp_declare_simd_clauses_to_numbers): Change | |
5530 | OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers. | |
5531 | (c_omp_declare_simd_clauses_to_decls): Similarly change those | |
5532 | from numbers to PARM_DECLs. | |
5533 | ||
595278be MM |
5534 | 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com> |
5535 | ||
5536 | * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use | |
5537 | flag_checking. | |
5538 | ||
3f8257db | 5539 | 2015-11-03 Bernd Schmidt <bschmidt@redhat.com> |
c85158de MS |
5540 | |
5541 | PR c++-common/67882 | |
b3d5bc62 JJ |
5542 | * c-common.h (fold_offsetof_1): Add argument. |
5543 | * c-common.c (fold_offsetof_1): Diagnose more invalid | |
c85158de MS |
5544 | offsetof expressions that reference elements past the end of |
5545 | an array. | |
5546 | ||
4bf9e5a8 TS |
5547 | 2015-11-03 Thomas Schwinge <thomas@codesourcery.com> |
5548 | Chung-Lin Tang <cltang@codesourcery.com> | |
5549 | ||
5550 | * c-pragma.c (oacc_pragmas): Add "atomic". | |
5551 | * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC. | |
5552 | ||
3b1661a9 ES |
5553 | 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com> |
5554 | ||
5555 | * c-common.c (handle_target_clones_attribute): New. | |
5556 | (c_common_attribute_table): Add handle_target_clones_attribute. | |
5557 | (handle_always_inline_attribute): Add check on target_clones attribute. | |
5558 | (handle_target_attribute): Ditto. | |
5559 | ||
2adfab87 AM |
5560 | 2015-10-29 Andrew MacLeod <amacleod@redhat.com> |
5561 | ||
5562 | * array-notation-common.c: Reorder #include's and remove duplicates. | |
5563 | * c-ada-spec.c: Likewise. | |
5564 | * c-cilkplus.c: Likewise. | |
5565 | * c-common.c: Likewise. | |
5566 | * c-cppbuiltin.c: Likewise. | |
5567 | * c-dump.c: Likewise. | |
5568 | * c-format.c: Likewise. | |
5569 | * c-gimplify.c: Likewise. | |
5570 | * c-indentation.c: Likewise. | |
5571 | * c-lex.c: Likewise. | |
5572 | * c-omp.c: Likewise. | |
5573 | * c-opts.c: Likewise. | |
5574 | * c-pch.c: Likewise. | |
5575 | * c-ppoutput.c: Likewise. | |
5576 | * c-pragma.c: Likewise. | |
5577 | * c-pretty-print.c: Likewise. | |
5578 | * c-semantics.c: Likewise. | |
5579 | * c-ubsan.c: Likewise. | |
5580 | * cilk.c: Likewise. | |
5581 | * stub-objc.c: Likewise. | |
5582 | ||
d90ec4f2 JM |
5583 | 2015-10-28 Jason Merrill <jason@redhat.com> |
5584 | ||
5585 | * c-common.c (pointer_int_sum): Fold the MULT_EXPR. | |
5586 | ||
88bae6f4 TS |
5587 | 2015-10-27 Thomas Schwinge <thomas@codesourcery.com> |
5588 | James Norris <jnorris@codesourcery.com> | |
5589 | Cesar Philippidis <cesar@codesourcery.com> | |
5590 | ||
5591 | PR c/64765 | |
5592 | PR c/64880 | |
5593 | * c-common.h (c_oacc_split_loop_clauses): Declare function. | |
5594 | * c-omp.c (c_oacc_split_loop_clauses): New function. | |
5595 | ||
b1726d6c MS |
5596 | 2015-10-21 Martin Sebor <msebor@redhat.com> |
5597 | ||
5598 | PR driver/68043 | |
5599 | * c.opt: End each sentence that describes an option with a period. | |
5600 | ||
fa60eeb9 MP |
5601 | 2015-10-20 Marek Polacek <polacek@redhat.com> |
5602 | ||
5603 | * array-notation-common.c (is_cilkplus_vector_p): Define. | |
5604 | * c-common.h (is_cilkplus_vector_p): Declare. | |
5605 | ||
95979049 MP |
5606 | 2015-10-20 Marek Polacek <polacek@redhat.com> |
5607 | ||
5608 | * c.opt (std=gnu++11): Do not describe as experimental. | |
5609 | (std=gnu++14): Likewise. | |
5610 | ||
2a9fb712 JM |
5611 | 2015-10-19 Jason Merrill <jason@redhat.com> |
5612 | ||
5613 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
5614 | __cpp_nontype_template_args. | |
5615 | ||
13b380a3 JM |
5616 | 2015-10-19 Jason Merrill <jason@redhat.com> |
5617 | ||
5618 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
5619 | __cpp_enumerator_attributes, __cpp_fold_expressions, | |
5620 | __cpp_unicode_characters. | |
5621 | ||
d9a6bd32 JJ |
5622 | 2015-10-13 Jakub Jelinek <jakub@redhat.com> |
5623 | Aldy Hernandez <aldyh@redhat.com> | |
5624 | ||
5625 | * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9, | |
5626 | DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11. | |
5627 | (c_define_builtins): Likewise. | |
5628 | * c-common.h (enum c_omp_clause_split): Add | |
5629 | C_OMP_CLAUSE_SPLIT_TASKLOOP. | |
5630 | (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument. | |
5631 | (c_finish_omp_for): Add ORIG_DECLV argument. | |
5632 | * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as | |
5633 | 201511 instead of 201307. | |
5634 | * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set | |
5635 | OMP_CRITICAL_CLAUSES to it. | |
5636 | (c_finish_omp_ordered): Add CLAUSES argument, set | |
5637 | OMP_ORDERED_CLAUSES to it. | |
5638 | (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS | |
5639 | to it if OMP_FOR. Clear DECL_INITIAL on the IVs. | |
5640 | (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite | |
5641 | constructs and new OpenMP 4.5 clauses. Clear | |
5642 | OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add | |
5643 | verification code. | |
5644 | * c-pragma.c (omp_pragmas_simd): Add taskloop. | |
5645 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP. | |
5646 | (enum pragma_omp_clause): Add | |
5647 | PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR} | |
5648 | and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}. | |
5649 | ||
624d31fe RS |
5650 | 2015-10-05 Richard Sandiford <richard.sandiford@arm.com> |
5651 | ||
5652 | * c-lex.c (interpret_float): Use real_equal instead of | |
5653 | REAL_VALUES_EQUAL. | |
5654 | ||
b8fd7909 JM |
5655 | 2015-10-04 Jason Merrill <jason@redhat.com> |
5656 | ||
5657 | Implement N4514, C++ Extensions for Transactional Memory. | |
5658 | * c-common.c (c_common_reswords): Add C++ TM TS keywords. | |
5659 | (c_common_attribute_table): Add transaction_safe_dynamic. | |
5660 | transaction_safe now affects type identity. | |
5661 | (handle_tm_attribute): Handle transaction_safe_dynamic. | |
5662 | * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT, | |
5663 | RID_ATOMIC_CANCEL, RID_SYNCHRONIZED. | |
5664 | (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED. | |
5665 | (D_TRANSMEM): New. | |
5666 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory. | |
5667 | * c-pretty-print.c (pp_c_attributes_display): Don't print | |
5668 | transaction_safe in C++. | |
5669 | ||
12651878 MP |
5670 | 2015-10-02 Marek Polacek <polacek@redhat.com> |
5671 | ||
5672 | * c.opt (Wduplicated-cond): Don't enable by -Wall anymore. | |
5673 | ||
3e3b8d63 MP |
5674 | 2015-10-02 Marek Polacek <polacek@redhat.com> |
5675 | ||
5676 | PR c/64249 | |
5677 | * c-common.c (warn_duplicated_cond_add_or_warn): New function. | |
5678 | * c-common.h (warn_duplicated_cond_add_or_warn): Declare. | |
5679 | * c.opt (Wduplicated-cond): New option. | |
5680 | ||
0d1a8f75 JM |
5681 | 2015-10-01 Joseph Myers <joseph@codesourcery.com> |
5682 | ||
5683 | * c.opt (std=c11): Do not describe as experimental. | |
5684 | (std=gnu11): Likewise. | |
5685 | (std=iso9899:2011): Likewise. | |
5686 | ||
3e32ee19 NS |
5687 | 2015-09-28 Nathan Sidwell <nathan@codesourcery.com> |
5688 | ||
5689 | * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New. | |
5690 | (DEF_FUNCTION_TYPE_VAR_11): Delete. | |
5691 | ||
974348ee MP |
5692 | 2015-09-25 Marek Polacek <polacek@redhat.com> |
5693 | ||
5694 | * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code. | |
5695 | (ubsan_instrument_shift): Likewise. | |
5696 | ||
15dbc1a6 MP |
5697 | 2015-09-25 Marek Polacek <polacek@redhat.com> |
5698 | ||
5699 | PR sanitizer/64906 | |
5700 | * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1. | |
5701 | ||
6b95d7cc PP |
5702 | 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org> |
5703 | ||
5704 | * c-indentation.c (should_warn_for_misleading_indentation): | |
5705 | Compare next_stmt_vis_column with guard_line_first_nws instead | |
5706 | of with guard_line_vis_column. | |
5707 | ||
c1822f9c MLI |
5708 | 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5709 | ||
5710 | PR c/49654 | |
5711 | PR c/49655 | |
5712 | * c-pragma.c (handle_pragma_diagnostic): Detect non-warning | |
5713 | options and options not valid for the current language. | |
5714 | ||
d5398058 PP |
5715 | 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org> |
5716 | ||
5717 | * c-indentation.c (should_warn_for_misleading_indentation): | |
5718 | Float out and consolidate the calls to get_visual_column that | |
5719 | are passed guard_exploc as an argument. Compare | |
5720 | next_stmt_vis_column with guard_line_first_nws instead of with | |
5721 | body_line_first_nws. | |
5722 | ||
6b333269 NS |
5723 | 2015-09-22 Nathan Sidwell <nathan@codesourcery.com> |
5724 | ||
5725 | * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates, | |
5726 | Wnamespaces): New C++ warnings. | |
5727 | ||
a75f1574 JM |
5728 | 2015-09-22 Jason Merrill <jason@redhat.com> |
5729 | ||
5730 | * c-common.h (abi_compat_version_crosses): New. | |
5731 | (warn_abi_version): Declare. | |
5732 | * c-common.c: Define it. | |
5733 | * c-opts.c (c_common_post_options): Handle it. | |
5734 | flag_abi_compat_version defaults to 8. | |
5735 | ||
bdaaa8b7 VV |
5736 | 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com> |
5737 | ||
5738 | Complete the implementation of N4230, Nested namespace definition. | |
5739 | * c-cppbuiltin.c: Add __cpp_namespace_attributes and | |
5740 | __cpp_nested_namespace_definitions. | |
5741 | ||
eaa797e8 MLI |
5742 | 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5743 | ||
5744 | * c-pragma.c (handle_pragma_diagnostic): Fix wrong return. | |
5745 | ||
c4914de6 MLI |
5746 | 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5747 | ||
5748 | * c-pragma.c (handle_pragma_diagnostic): Use explicit location | |
5749 | when warning. | |
5750 | * c-pragma.h (pragma_lex): Add optional loc argument. | |
5751 | ||
fcb87c50 MM |
5752 | 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com> |
5753 | ||
5754 | * c-format.c (check_format_arg): Adjust to use common block size in all | |
5755 | object pools. | |
5756 | ||
31bdd08a DM |
5757 | 2015-09-15 David Malcolm <dmalcolm@redhat.com> |
5758 | ||
5759 | * c-format.c (location_from_offset): Update for change in | |
5760 | signature of location_get_source_line. | |
5761 | * c-indentation.c (get_visual_column): Likewise. | |
5762 | (line_contains_hash_if): Likewise. | |
5763 | ||
aa9f4b4c MP |
5764 | 2015-09-14 Marek Polacek <polacek@redhat.com> |
5765 | ||
5766 | * c-opts.c (c_common_post_options): Set C++ standard earlier, before | |
5767 | setting various warnings. | |
5768 | ||
aa256c4a MP |
5769 | 2015-09-14 Marek Polacek <polacek@redhat.com> |
5770 | ||
5771 | * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting | |
5772 | a negative value. | |
5773 | ||
0f876f22 MW |
5774 | 2015-09-11 Mark Wielaard <mjw@redhat.com> |
5775 | ||
5776 | PR c/28901 | |
5777 | * c.opt (Wunused-variable): Option from common.opt. | |
5778 | (Wunused-const-variable): New option. | |
5779 | ||
273aa49e PC |
5780 | 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com> |
5781 | ||
5782 | PR c++/53184 | |
5783 | * c.opt ([Wsubobject-linkage]): Add. | |
5784 | ||
1807ffc1 MS |
5785 | 2015-09-03 Martin Sebor <msebor@redhat.com> |
5786 | ||
5787 | PR c/66516 | |
5788 | * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new | |
5789 | functions. | |
5790 | * c-common.c (reject_gcc_builtin): Define. | |
5791 | ||
38942840 BI |
5792 | 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com> |
5793 | ||
5794 | PR middle-end/60586 | |
5795 | * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New | |
5796 | prototype. | |
5797 | * c-gimplify.c (c_gimplify_expr): Added a call to the function | |
5798 | cilk_gimplify_call_params_in_spawned_fn. | |
5799 | * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function. | |
5800 | (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR | |
5801 | unwrapping. | |
5802 | ||
c316b5e4 MP |
5803 | 2015-08-25 Marek Polacek <polacek@redhat.com> |
5804 | ||
5805 | PR middle-end/67330 | |
5806 | * c-common.c (handle_weak_attribute): Don't check whether the | |
5807 | visibility can be changed here. | |
5808 | ||
584a7c46 MLI |
5809 | 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5810 | ||
5811 | * c-lex.c (c_lex_with_flags): Use explicit locations. | |
5812 | ||
a79683d5 TS |
5813 | 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org> |
5814 | ||
5815 | * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h, | |
5816 | c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless | |
5817 | ||
61717a45 FXC |
5818 | 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
5819 | ||
5820 | PR middle-end/36757 | |
5821 | * c-common.c (check_builtin_function_arguments): Add check | |
5822 | for BUILT_IN_SIGNBIT argument. | |
5823 | ||
329524f5 PC |
5824 | 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com> |
5825 | ||
5826 | PR c++/67160 | |
5827 | * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value | |
5828 | in c++1z mode. | |
5829 | ||
4ee55665 MP |
5830 | 2015-08-17 Marek Polacek <polacek@redhat.com> |
5831 | ||
5832 | * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing | |
5833 | with whitespaces before qualifier names. | |
5834 | ||
b893e375 MP |
5835 | 2015-08-12 Marek Polacek <polacek@redhat.com> |
5836 | ||
5837 | PR c++/55095 | |
5838 | * c-common.c (maybe_warn_shift_overflow): Properly handle | |
5839 | left-shifting 1 into the sign bit. | |
5840 | ||
c2d89095 MLI |
5841 | 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5842 | ||
5843 | * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy. | |
5844 | ||
971e17ff AS |
5845 | 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com> |
5846 | Braden Obrzut <admin@maniacsvault.net> | |
5847 | Jason Merrill <jason@redhat.com> | |
5848 | ||
5849 | Add C++ Concepts TS support. | |
5850 | * c-common.c (c_common_reswords): Add __is_same_as, concept, requires. | |
5851 | * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES. | |
5852 | (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New. | |
5853 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts. | |
5854 | * c-opts.c (set_std_cxx1z): Set flag_concepts. | |
5855 | * c.opt (fconcepts): New. | |
5856 | ||
b3d5bc62 JJ |
5857 | 2015-08-02 Martin Sebor <msebor@redhat.com> |
5858 | ||
5859 | * c.opt (-Wframe-address): New warning option. | |
5860 | ||
8ebca419 PP |
5861 | 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org> |
5862 | ||
5863 | * c-indentation.c (should_warn_for_misleading_indentation): | |
5864 | Improve heuristics. | |
5865 | ||
1a1e101f PP |
5866 | 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org> |
5867 | ||
5868 | * c-indentation.c (get_visual_column): Add parameter first_nws, | |
5869 | use it. Update comment documenting the function. | |
5870 | (is_first_nonwhitespace_on_line): Remove. | |
5871 | (should_warn_for_misleading_indentation): Replace usage of | |
5872 | of is_first_nonwhitespace_on_line with get_visual_column. | |
5873 | ||
992118a1 PP |
5874 | 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org> |
5875 | ||
5876 | * c-indentation.h (struct token_indent_info): Define. | |
5877 | (get_token_indent_info): Define. | |
5878 | (warn_for_misleading_information): Declare. | |
5879 | * c-common.h (warn_for_misleading_information): Remove. | |
5880 | * c-identation.c (warn_for_misleading_indentation): | |
5881 | Change declaration to take three token_indent_infos. Adjust | |
5882 | accordingly. | |
5883 | * c-identation.c (should_warn_for_misleading_indentation): | |
5884 | Likewise. Bail out early if the body is a compound statement. | |
5885 | (guard_tinfo_to_string): Define. | |
5886 | ||
e8fa3817 JM |
5887 | 2015-07-30 Jason Merrill <jason@redhat.com> |
5888 | ||
5889 | * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print | |
5890 | '*' for reference decay. | |
5891 | ||
173864e8 MP |
5892 | 2015-07-30 Marek Polacek <polacek@redhat.com> |
5893 | ||
5894 | * c-common.c (warn_tautological_cmp): Bail for float types. | |
5895 | ||
f2afe6dd MP |
5896 | 2015-07-27 Marek Polacek <polacek@redhat.com> |
5897 | ||
5898 | PR bootstrap/67030 | |
5899 | * c-common.c (warn_tautological_cmp): Don't warn for macro expansion. | |
5900 | ||
05b28fd6 MP |
5901 | 2015-07-27 Marek Polacek <polacek@redhat.com> |
5902 | ||
5903 | PR c++/66555 | |
5904 | PR c/54979 | |
5905 | * c-common.c (find_array_ref_with_const_idx_r): New function. | |
5906 | (warn_tautological_cmp): New function. | |
5907 | * c-common.h (warn_tautological_cmp): Declare. | |
5908 | * c.opt (Wtautological-compare): New option. | |
5909 | ||
5a5062b8 MP |
5910 | 2015-07-23 Marek Polacek <polacek@redhat.com> |
5911 | ||
5912 | * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout. | |
5913 | (ubsan_instrument_shift): Likewise. | |
5914 | ||
dc891fe7 MP |
5915 | 2015-07-23 Marek Polacek <polacek@redhat.com> |
5916 | ||
5917 | PR sanitizer/66908 | |
5918 | * c-ubsan.c: Include gimplify.h. | |
5919 | (ubsan_instrument_division): Unshare OP0 and OP1. | |
5920 | (ubsan_instrument_shift): Likewise. | |
5921 | ||
451b5e48 MP |
5922 | 2015-07-20 Marek Polacek <polacek@redhat.com> |
5923 | Richard Sandiford <richard.sandiford@arm.com> | |
5924 | ||
5925 | PR c++/55095 | |
5926 | * c-common.c (c_fully_fold_internal): Warn about left shift overflows. | |
5927 | Use EXPR_LOC_OR_LOC. | |
5928 | (maybe_warn_shift_overflow): New function. | |
5929 | * c-common.h (maybe_warn_shift_overflow): Declare. | |
5930 | * c-opts.c (c_common_post_options): Set warn_shift_overflow. | |
5931 | * c.opt (Wshift-overflow): New option. | |
5932 | ||
fb0b2914 ML |
5933 | 2015-07-16 Martin Liska <mliska@suse.cz> |
5934 | ||
5935 | * c-format.c (static void check_format_info_main): Use | |
5936 | object_allocator instead of pool_allocator. | |
5937 | (check_format_arg): Likewise. | |
5938 | (check_format_info_main): Likewise. | |
5939 | ||
903f5c23 AM |
5940 | 2015-07-15 Andrew MacLeod <amacleod@redhat.com> |
5941 | ||
5942 | * c-opts.c: Remove multiline #include comment. | |
5943 | ||
026c3cfd AH |
5944 | 2015-07-12 Aldy Hernandez <aldyh@redhat.com> |
5945 | ||
5946 | * c-common.c: Fix double word typos. | |
5947 | ||
bb49ee66 EB |
5948 | 2015-07-10 Eric Botcazou <ebotcazou@adacore.com> |
5949 | ||
5950 | * c-ada-spec.h (cpp_operation): Revert latest change. | |
5951 | * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit | |
5952 | constructors and destructors. | |
5953 | ||
1916bcb5 AM |
5954 | 2015-07-09 Andrew MacLeod <amacleod@redhat.com> |
5955 | ||
5956 | * c-common.h: Adjust includes for flags.h changes. | |
5957 | * stub-objc.c: Likewise. | |
026c3cfd | 5958 | |
a9dcd529 EB |
5959 | 2015-07-08 Eric Botcazou <ebotcazou@adacore.com> |
5960 | ||
5961 | * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR. | |
5962 | * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors. | |
5963 | ||
b03b462f JJ |
5964 | 2015-07-08 Jakub Jelinek <jakub@redhat.com> |
5965 | ||
5966 | * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses | |
5967 | are to be removed, return NULL rather than original clauses list. | |
5968 | ||
c7131fb2 AM |
5969 | 2015-07-07 Andrew MacLeod <amacleod@redhat.com> |
5970 | ||
5971 | * array-notation-common.c: Adjust includes. | |
5972 | * c-ada-spec.c: Likewise. | |
5973 | * c-cilkplus.c: Likewise. | |
5974 | * c-common.h: Likewise. | |
5975 | * c-cppbuiltin.c: Likewise. | |
5976 | * c-dump.c: Likewise. | |
5977 | * c-format.c: Likewise. | |
5978 | * c-gimplify.c: Likewise. | |
5979 | * c-indentation.c: Likewise. | |
5980 | * c-lex.c: Likewise. | |
5981 | * c-omp.c: Likewise. | |
5982 | * c-opts.c: Likewise. | |
5983 | * c-pch.c: Likewise. | |
5984 | * c-ppoutput.c: Likewise. | |
5985 | * c-pragma.c: Likewise. | |
5986 | * c-pretty-print.c: Likewise. | |
5987 | * c-semantics.c: Likewise. | |
5988 | * c-ubsan.c: Likewise. | |
5989 | * cilk.c: Likewise. | |
5990 | * stub-objc.c: Likewise. | |
5991 | ||
2a7fb83f EB |
5992 | 2015-07-07 Eric Botcazou <ebotcazou@adacore.com> |
5993 | ||
5994 | * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR. | |
5995 | * c-ada-spec.c (print_ada_declaration): Skip move constructors. | |
5996 | ||
a03c9bf1 JM |
5997 | 2015-07-01 Jason Merrill <jason@redhat.com> |
5998 | ||
36a85135 JM |
5999 | * c-common.h (D_CXX11): Rename from D_CXX0X. |
6000 | (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X. | |
6001 | * c-common.c: Adjust. | |
6002 | ||
e7fa68d5 JM |
6003 | * c-opts.c (c_common_post_options): Default to C++14. |
6004 | ||
a03c9bf1 JM |
6005 | * c-opts.c (c_common_post_options): Highest ABI level is now 10. |
6006 | ||
fe95b036 ESR |
6007 | 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net> |
6008 | ||
6009 | Implement N4197 - Adding u8 character literals | |
b3d5bc62 | 6010 | * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like |
a64be36b | 6011 | CPP_CHAR. |
b3d5bc62 | 6012 | * c-common.c (c_parse_error): Print CPP_UTF8CHAR and |
a64be36b | 6013 | CPP_UTF8CHAR_USERDEF tokens. |
b3d5bc62 | 6014 | * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF |
a64be36b EB |
6015 | and CPP_UTF8CHAR tokens. |
6016 | (lex_charconst): Treat CPP_UTF8CHAR token. | |
fe95b036 | 6017 | |
da2e71c9 MLI |
6018 | 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
6019 | ||
6020 | PR fortran/66605 | |
6021 | * c-common.c (do_warn_unused_parameter): Move here. | |
6022 | * c-common.h (do_warn_unused_parameter): Declare. | |
6023 | ||
b155cfd9 MP |
6024 | 2015-06-29 Marek Polacek <polacek@redhat.com> |
6025 | ||
6026 | PR c/66322 | |
6027 | * c-common.c (check_case_bounds): Add bool * parameter. Set | |
6028 | OUTSIDE_RANGE_P. | |
6029 | (c_add_case_label): Add bool * parameter. Pass it down to | |
6030 | check_case_bounds. | |
6031 | (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool | |
6032 | warning here. | |
6033 | * c-common.h (c_add_case_label, c_do_switch_warnings): Update | |
6034 | declarations. | |
6035 | ||
31521951 MP |
6036 | 2015-06-27 Marek Polacek <polacek@redhat.com> |
6037 | ||
6038 | * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P | |
6039 | or VECTOR_INTEGER_TYPE_P throughout. | |
6040 | * c-gimplify.c: Likewise. | |
6041 | ||
22d03525 MP |
6042 | 2015-06-26 Marek Polacek <polacek@redhat.com> |
6043 | ||
6044 | * array-notation-common.c (find_rank): Use INDIRECT_REF_P. | |
6045 | * c-common.c (c_fully_fold_internal): Likewise. | |
6046 | (c_alignof_expr): Likewise. | |
6047 | * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise. | |
6048 | * c-ubsan.c (ubsan_instrument_bounds): Likewise. | |
b1726d6c | 6049 | * cilk.c (create_parm_list): Likewise. |
22d03525 | 6050 | |
af05e6e5 MP |
6051 | 2015-06-26 Marek Polacek <polacek@redhat.com> |
6052 | ||
6053 | * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P. | |
6054 | ||
f0889939 AM |
6055 | 2015-06-25 Andrew MacLeod <amacleod@redhat.com> |
6056 | ||
6057 | * c-common.c: Remove ipa-ref.h and plugin-api.h from include list. | |
6058 | * c-gimplify.c: Likewise. | |
6059 | * c-pragma.c: Likewise. | |
6060 | * c-ubsan.c: Likewise. | |
6061 | * cilk.c: Likewise. | |
6062 | ||
ca752f39 RS |
6063 | 2015-06-25 Richard Sandiford <richard.sandiford@arm.com> |
6064 | ||
6065 | * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than | |
6066 | ggc_hasher. | |
6067 | ||
16a16ec7 AM |
6068 | 2015-06-25 Andrew MacLeod <amacleod@redhat.com> |
6069 | ||
6070 | * cilk.c: Move calls.h after tm.h in the include chain. | |
6071 | ||
0ae9bd27 MP |
6072 | 2015-06-25 Marek Polacek <polacek@redhat.com> |
6073 | ||
6074 | * array-notation-common.c: Use VAR_P throughout. | |
6075 | * c-ada-spec.c: Likewise. | |
6076 | * c-common.c: Likewise. | |
6077 | * c-format.c: Likewise. | |
6078 | * c-gimplify.c: Likewise. | |
6079 | * c-omp.c: Likewise. | |
6080 | * c-pragma.c: Likewise. | |
6081 | * c-pretty-print.c: Likewise. | |
6082 | * cilk.c: Likewise. | |
6083 | ||
62f9079a MP |
6084 | 2015-06-25 Marek Polacek <polacek@redhat.com> |
6085 | ||
6086 | * cilk.c (extract_free_variables): Use is_global_var. | |
6087 | ||
0fa16060 RS |
6088 | 2015-06-23 Richard Sandiford <richard.sandiford@arm.com> |
6089 | ||
6090 | * c-common.c: Don't include target-def.h. | |
6091 | ||
a68ae2e1 MP |
6092 | 2015-06-23 Marek Polacek <polacek@redhat.com> |
6093 | ||
6094 | * c-common.c (warn_logical_operator): Use tree_int_cst_equal | |
6095 | when comparing INTEGER_CSTs. | |
6096 | ||
c6a2f2d9 PMR |
6097 | 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com> |
6098 | ||
6099 | * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS. | |
6100 | * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL | |
6101 | (dump_ada_template): Skip partially specialized types. | |
6102 | ||
6b4db501 MM |
6103 | 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com> |
6104 | ||
6105 | * c-common.c (scalar_to_vector): Use std::swap instead of manually | |
6106 | swapping. | |
6107 | ||
abb226c9 AM |
6108 | 2015-06-17 Andrew MacLeod <amacleod@redhat.com> |
6109 | ||
6110 | * array-notation-common.c: Do not include input.h, line-map.h or is-a.h. | |
6111 | * c-ada-spec.c: Likewise. | |
6112 | * c-cilkplus.c: Likewise. | |
6113 | * c-common.c: Likewise. | |
6114 | * c-common.h: Likewise. | |
6115 | * c-cppbuiltin.c: Likewise. | |
6116 | * c-dump.c: Likewise. | |
6117 | * c-format.c: Likewise. | |
6118 | * c-gimplify.c: Likewise. | |
6119 | * c-indentation.c: Likewise. | |
6120 | * c-lex.c: Likewise. | |
6121 | * c-omp.c: Likewise. | |
6122 | * c-opts.c: Likewise. | |
6123 | * c-pch.c: Likewise. | |
6124 | * c-ppoutput.c: Likewise. | |
6125 | * c-pragma.c: Likewise. | |
6126 | * c-pretty-print.c: Likewise. | |
6127 | * c-semantics.c: Likewise. | |
6128 | * c-ubsan.c: Likewise. | |
6129 | * cilk.c: Likewise. | |
6130 | * stub-objc.c: Likewise. | |
6131 | ||
076fecad PP |
6132 | 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org> |
6133 | ||
6134 | PR c++/65168 | |
6135 | * c-common.c (c_common_truthvalue_conversion): Warn when | |
6136 | converting an address of a reference to a truth value. | |
6137 | ||
13fdf2e2 AM |
6138 | 2015-06-08 Andrew MacLeod <amacleod@redhat.com> |
6139 | ||
6140 | * array-notation-common.c : Adjust include files. | |
6141 | * c-ada-spec.c : Likewise. | |
6142 | * c-cilkplus.c : Likewise. | |
6143 | * c-common.c : Likewise. | |
6144 | * c-common.h : Likewise. | |
6145 | * c-cppbuiltin.c : Likewise. | |
6146 | * c-dump.c : Likewise. | |
6147 | * c-format.c : Likewise. | |
6148 | * c-gimplify.c : Likewise. | |
6149 | * c-indentation.c : Likewise. | |
6150 | * c-lex.c : Likewise. | |
6151 | * c-omp.c : Likewise. | |
6152 | * c-opts.c : Likewise. | |
6153 | * c-pch.c : Likewise. | |
6154 | * c-ppoutput.c : Likewise. | |
6155 | * c-pragma.c : Likewise. | |
6156 | * c-pretty-print.c : Likewise. | |
6157 | * c-semantics.c : Likewise. | |
6158 | * c-ubsan.c : Likewise. | |
6159 | * cilk.c : Likewise. | |
6160 | * stub-objc.c : Likewise. | |
6161 | ||
a1661b90 MP |
6162 | 2015-06-08 Marek Polacek <polacek@redhat.com> |
6163 | ||
6164 | PR c/66415 | |
6165 | * c-format.c (location_from_offset): Return LOC if LINE is null. | |
6166 | ||
d7438551 AH |
6167 | 2015-06-05 Aldy Hernandez <aldyh@redhat.com> |
6168 | ||
6169 | * c-common.h (c_parse_final_cleanups): New prototype. | |
6170 | * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups. | |
6171 | ||
b3d5bc62 JJ |
6172 | 2015-06-04 Sriraman Tallam <tmsriram@google.com> |
6173 | ||
6174 | * c-common.c (noplt): New attribute. | |
6175 | (handle_noplt_attribute): New handler. | |
6176 | ||
ecb9f223 AM |
6177 | 2015-06-04 Andrew MacLeod <amacleod@redhat.com> |
6178 | ||
6179 | * array-notation-common.c: Adjust includes for restructured coretypes.h. | |
6180 | * c-ada-spec.c: Likewise. | |
6181 | * c-cilkplus.c: Likewise. | |
6182 | * c-common.c: Likewise. | |
6183 | * c-common.h: Likewise. | |
6184 | * c-cppbuiltin.c: Likewise. | |
6185 | * c-dump.c: Likewise. | |
6186 | * c-format.c: Likewise. | |
6187 | * c-gimplify.c: Likewise. | |
6188 | * c-indentation.c: Likewise. | |
6189 | * c-lex.c: Likewise. | |
6190 | * c-omp.c: Likewise. | |
6191 | * c-opts.c: Likewise. | |
6192 | * c-pch.c: Likewise. | |
6193 | * c-ppoutput.c: Likewise. | |
6194 | * c-pragma.c: Likewise. | |
6195 | * c-pretty-print.c: Likewise. | |
6196 | * c-semantics.c: Likewise. | |
6197 | * c-ubsan.c: Likewise. | |
6198 | * cilk.c: Likewise. | |
6199 | * stub-objc.c: Likewise. | |
6200 | ||
6ac48155 DM |
6201 | 2015-06-02 David Malcolm <dmalcolm@redhat.com> |
6202 | ||
6203 | PR c/66220: | |
6204 | * c-indentation.c (should_warn_for_misleading_indentation): Use | |
6205 | expand_location rather than expand_location_to_spelling_point. | |
6206 | Don't warn if the guarding statement is more indented than the | |
6207 | next/body stmts. | |
6208 | ||
773ce42e DM |
6209 | 2015-06-02 David Malcolm <dmalcolm@redhat.com> |
6210 | ||
6211 | * c-indentation.c (warn_for_misleading_indentation): Bail out | |
6212 | immediately if -Wmisleading-indentation isn't enabled. | |
6213 | ||
4fef8379 ML |
6214 | 2015-06-01 Martin Liska <mliska@suse.cz> |
6215 | ||
6216 | * c-format.c (check_format_arg):Use new type-based pool allocator. | |
6217 | (check_format_info_main) Likewise. | |
6218 | ||
1edfb384 EB |
6219 | 2015-05-31 Eric Botcazou <ebotcazou@adacore.com> |
6220 | ||
6221 | * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant. | |
6222 | (has_nontrivial_methods): Likewise. | |
6223 | ||
9677ef52 MP |
6224 | 2015-05-25 Marek Polacek <polacek@redhat.com> |
6225 | ||
6226 | * c-ubsan.c (ubsan_instrument_shift): Use type0. | |
6227 | ||
fd5c817a MP |
6228 | 2015-05-22 Marek Polacek <polacek@redhat.com> |
6229 | ||
6230 | PR c/47043 | |
6231 | * c-common.c (handle_deprecated_attribute): Allow CONST_DECL. | |
6232 | ||
a2f45fe6 | 6233 | 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
581edfa3 TS |
6234 | |
6235 | * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with | |
6236 | STACK_GROWS_DOWNWARD. | |
6237 | ||
a2f45fe6 | 6238 | 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
62f9f30b TS |
6239 | |
6240 | * c-cppbuiltin.c (c_cpp_builtins): Check the value of | |
6241 | STACK_GROWS_DOWNWARD rather than if it is defined. | |
6242 | ||
0fee2ac2 | 6243 | 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org> |
b1726d6c | 6244 | |
0fee2ac2 MLI |
6245 | PR c/52952 |
6246 | * c-format.c (location_column_from_byte_offset): New. | |
6247 | (location_from_offset): New. | |
6248 | (struct format_wanted_type): Add offset_loc field. | |
6249 | (check_format_info): Move handling of location for extra arguments | |
6250 | closer to the point of warning. | |
6251 | (check_format_info_main): Pass the result of location_from_offset | |
6252 | to warning_at. | |
6253 | (format_type_warning): Pass the result of location_from_offset | |
6254 | to warning_at. | |
6255 | ||
cf4ef6f7 MP |
6256 | 2015-05-20 Marek Polacek <polacek@redhat.com> |
6257 | ||
6258 | * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P. | |
6259 | ||
3a65ee74 MP |
6260 | 2015-05-20 Marek Polacek <polacek@redhat.com> |
6261 | ||
6262 | * c-ada-spec.c (dump_sloc): Use DECL_P. | |
6263 | ||
21b634ae MP |
6264 | 2015-05-20 Marek Polacek <polacek@redhat.com> |
6265 | ||
6266 | * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout. | |
6267 | * c-common.c: Likewise. | |
6268 | ||
0e50b624 DM |
6269 | 2015-05-19 David Malcolm <dmalcolm@redhat.com> |
6270 | ||
6271 | * c-common.h (fe_file_change): Strengthen param from | |
6272 | const line_map * to const line_map_ordinary *. | |
6273 | (pp_file_change): Likewise. | |
6274 | * c-lex.c (fe_file_change): Likewise. | |
6275 | (cb_define): Use linemap_check_ordinary when invoking | |
6276 | SOURCE_LINE. | |
6277 | (cb_undef): Likewise. | |
6278 | * c-opts.c (c_finish_options): Use linemap_check_ordinary when | |
6279 | invoking cb_file_change. | |
6280 | (c_finish_options): Likewise. | |
6281 | (push_command_line_include): Likewise. | |
6282 | (cb_file_change): Strengthen param "new_map" from | |
6283 | const line_map * to const line_map_ordinary *. | |
6284 | * c-ppoutput.c (cb_define): Likewise for local "map". | |
6285 | (pp_file_change): Likewise for param "map" and local "from". | |
6286 | ||
fab27f52 MM |
6287 | 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com> |
6288 | ||
6289 | * c-common.c (shorten_compare): Use std::swap instead of explicit swaps. | |
6290 | ||
2fe1d762 TV |
6291 | 2015-05-18 Tom de Vries <tom@codesourcery.com> |
6292 | ||
6293 | * c-common.c (build_va_arg_1): New function. | |
6294 | (build_va_arg): Add address operator to va_list operand if necessary. | |
6295 | ||
7a37fa90 MM |
6296 | 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com> |
6297 | ||
6298 | PR c/48956 | |
6299 | * c-common.c (int_safely_convertible_to_real_p): Define. | |
6300 | (unsafe_conversion_p): Check conversions involving complex types. | |
6301 | (conversion_warning): Add new warning message for conversions which | |
6302 | discard imaginary component. | |
6303 | * c-common.h: (enum conversion_safety): Add new enumerator for such | |
6304 | conversions. | |
6305 | ||
3aa3c9fc MP |
6306 | 2015-05-14 Marek Polacek <polacek@redhat.com> |
6307 | ||
6308 | PR c/66066 | |
6309 | PR c/66127 | |
6310 | * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal. | |
6311 | (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with | |
6312 | C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and | |
6313 | use it. If FOR_INT_CONST, require that all evaluated operands be | |
6314 | INTEGER_CSTs. | |
6315 | ||
c3388e62 DM |
6316 | 2015-05-12 David Malcolm <dmalcolm@redhat.com> |
6317 | ||
6318 | * c-common.h (warn_for_misleading_indentation): New prototype. | |
6319 | * c-indentation.c: New file. | |
6320 | * c.opt (Wmisleading-indentation): New option. | |
6321 | ||
c7b38fd5 TV |
6322 | 2015-05-12 Tom de Vries <tom@codesourcery.com> |
6323 | ||
6324 | PR tree-optimization/66010 | |
6325 | * c-common.c (build_va_arg): Don't mark ap addressable unless necessary. | |
6326 | ||
381bf11e JM |
6327 | 2015-05-09 Jason Merrill <jason@redhat.com> |
6328 | ||
edff0c06 JM |
6329 | * c-opts.c (c_common_post_options): Also clear |
6330 | cpp_opts->cpp_warn_cxx11_compat. | |
6331 | ||
129211bc JM |
6332 | * c-common.h (enum cxx_dialect): Add cxx_unset. |
6333 | * c-common.c (cxx_dialect): Initialize to cxx_unset. | |
6334 | * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset. | |
6335 | ||
381bf11e JM |
6336 | * c.opt (std=c++14): Remove Undocumented flag and experimental warning. |
6337 | (std=gnu++0x): Mark as Undocumented. | |
6338 | (std=gnu++1y): Add deprecated message. | |
6339 | ||
fe191308 JM |
6340 | 2015-05-08 Jason Merrill <jason@redhat.com> |
6341 | ||
765189ff JM |
6342 | * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat. |
6343 | * c-opts.c: Adjust. | |
6344 | ||
fe191308 JM |
6345 | * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat. |
6346 | ||
755e528f MP |
6347 | 2015-05-08 Marek Polacek <polacek@redhat.com> |
6348 | ||
6349 | PR c/64918 | |
6350 | * c.opt (Woverride-init-side-effects): New option. | |
6351 | ||
0173bd2a MP |
6352 | 2015-05-07 Marek Polacek <polacek@redhat.com> |
6353 | ||
6354 | PR c/65179 | |
6355 | * c-common.c (c_fully_fold_internal): Warn when left shifting a | |
6356 | negative value. | |
6357 | * c.opt (Wshift-negative-value): New option. | |
6358 | * c-opts.c (c_common_post_options): Set warn_shift_negative_value | |
6359 | when -Wextra and C99/C++11 mode. | |
6360 | ||
e0f0d3b9 MP |
6361 | 2015-05-07 Marek Polacek <polacek@redhat.com> |
6362 | Martin Uecker <uecker@eecs.berkeley.edu> | |
6363 | ||
6364 | * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting | |
6365 | flexible member array-like members if SANITIZE_BOUNDS_STRICT. | |
6366 | ||
8243e2a9 JM |
6367 | 2015-05-05 Jason Merrill <jason@redhat.com> |
6368 | ||
6369 | * c.opt (Wterminate): New. | |
6370 | ||
577cd070 MP |
6371 | 2015-04-30 Marek Polacek <polacek@redhat.com> |
6372 | ||
6373 | * c-common.c (maybe_warn_bool_compare): When comparing with 0/1, | |
6374 | require that the non-constant be of a boolean type. | |
6375 | ||
0373796b JT |
6376 | 2015-04-29 Josh Triplett <josh@joshtriplett.org> |
6377 | ||
e0f0d3b9 MP |
6378 | * c-common.c (handle_section_attribute): Refactor to reduce |
6379 | nesting and distinguish between error cases. | |
0373796b | 6380 | |
716c0ba6 MP |
6381 | 2015-04-29 Marek Polacek <polacek@redhat.com> |
6382 | ||
6383 | PR c/64610 | |
6384 | * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean | |
6385 | with 0/1. | |
6386 | ||
8848828b JJ |
6387 | 2015-04-29 Jakub Jelinek <jakub@redhat.com> |
6388 | ||
6389 | * c-common.h (omp_clause_mask): Unconditionally define as a class. | |
6390 | Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of | |
6391 | HOST_BITS_PER_WIDE_INT. | |
6392 | ||
ecd0e562 TV |
6393 | 2015-04-28 Tom de Vries <tom@codesourcery.com> |
6394 | ||
6395 | PR tree-optimization/65887 | |
6396 | * c-common.c (build_va_arg): Mark va_arg ap argument as addressable. | |
6397 | ||
2a877204 | 6398 | 2015-04-28 Eric Botcazou <ebotcazou@adacore.com> |
e0f0d3b9 | 6399 | Pierre-Marie de Rodat <derodat@adacore.com> |
2a877204 EB |
6400 | |
6401 | * c-ada-spec.c (in_function): Delete. | |
6402 | (dump_generic_ada_node): Do not change in_function and remove the | |
6403 | redundant code dealing with it. | |
6404 | (print_ada_declaration): Do not change in_function. Use INDENT_INCR. | |
6405 | (print_ada_methods): Output the static member functions in a nested | |
6406 | package after the regular methods as well as associated renamings. | |
6407 | ||
4853031e MP |
6408 | 2015-04-24 Marek Polacek <polacek@redhat.com> |
6409 | ||
6410 | PR c/65830 | |
6411 | * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative | |
6412 | and OPT_Wshift_count_overflow. | |
6413 | ||
8c2b7f79 MP |
6414 | PR c/63357 |
6415 | * c-common.c (warn_logical_operator): Warn if the operands have the | |
6416 | same expressions. | |
6417 | ||
b8787813 MP |
6418 | 2015-04-24 Marek Polacek <polacek@redhat.com> |
6419 | ||
6420 | PR c/61534 | |
6421 | * c-common.c (warn_logical_operator): Bail if either operand comes | |
6422 | from a macro expansion. | |
6423 | ||
8fba1830 BRF |
6424 | 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
6425 | ||
6426 | PR target/55143 | |
6427 | * c-common.c (c_default_pointer_mode): Add definition. | |
6428 | * c-common.h (c_default_pointer_mode): Add declaration. | |
6429 | ||
17958621 JJ |
6430 | 2015-03-11 Jakub Jelinek <jakub@redhat.com> |
6431 | ||
6432 | * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup | |
6433 | on record_builtin_type argument. | |
6434 | ||
7ccb1a11 JJ |
6435 | 2015-03-10 Jakub Jelinek <jakub@redhat.com> |
6436 | ||
6437 | PR c/65120 | |
6438 | * c-common.c (warn_logical_not_parentheses): Don't warn for | |
6439 | !x == 0 or !x != 0. | |
6440 | ||
04fd785e MP |
6441 | 2015-03-07 Marek Polacek <polacek@redhat.com> |
6442 | ||
6443 | PR sanitizer/65280 | |
6444 | * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF | |
6445 | before trying to figure out whether we have a flexible array member. | |
6446 | ||
a4e26206 | 6447 | 2015-03-06 Eric Botcazou <ebotcazou@adacore.com> |
8e745a17 | 6448 | Jonathan Wakely <jwakely.gcc@gmail.com> |
a4e26206 EB |
6449 | |
6450 | * c-ada-spec.c (dump_ada_double_name): Fix pasto. | |
6451 | ||
0d2489f4 EB |
6452 | 2015-03-05 Eric Botcazou <ebotcazou@adacore.com> |
6453 | ||
6454 | PR ada/65319 | |
6455 | * c-ada-spec.c (print_destructor): Remove obsolete code. | |
6456 | ||
83ed54d7 EB |
6457 | 2015-03-01 Eric Botcazou <ebotcazou@adacore.com> |
6458 | ||
6459 | * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX. | |
6460 | (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and | |
6461 | DECL_TEMPLATE_RESULT emulations. | |
6462 | (dump_ada_template)): Add guard for TYPE_METHODS. | |
6463 | ||
7631f0e2 MP |
6464 | 2015-02-27 Marek Polacek <polacek@redhat.com> |
6465 | ||
6466 | PR c/65040 | |
6467 | * c.opt (Wformat-signedness): Don't enable by -Wformat=2. | |
6468 | ||
d1783ae5 KT |
6469 | 2015-02-27 Kai Tietz <ktietz@redhat.com> |
6470 | ||
6471 | PR c/35330 | |
6472 | * c-pragma.c (handle_pragma_weak): Do not try to create | |
6473 | weak/alias of declarations not being function, or variable | |
6474 | declarations. | |
6475 | ||
56a9f6bc TS |
6476 | 2015-02-24 Thomas Schwinge <thomas@codesourcery.com> |
6477 | ||
6478 | PR libgomp/64625 | |
6479 | * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12): | |
6480 | Remove macros. | |
6481 | (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros. | |
6482 | ||
3d5cb23d MP |
6483 | 2015-02-16 Marek Polacek <polacek@redhat.com> |
6484 | ||
6485 | PR c/65066 | |
6486 | * c-format.c (check_format_types): Handle null param. | |
6487 | ||
fa008882 MP |
6488 | 2015-02-13 Marek Polacek <polacek@redhat.com> |
6489 | ||
6490 | PR c/65040 | |
6491 | * c-format.c (check_format_types): Don't warn about different | |
6492 | signedness if the original value is in the range of WANTED_TYPE. | |
6493 | ||
785f21af JM |
6494 | 2015-02-12 Jason Merrill <jason@redhat.com> |
6495 | ||
6496 | PR c++/64956 | |
6497 | * c-opts.c (c_common_post_options): Change flag_abi_version from 0 | |
6498 | to the current highest version. | |
6499 | * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0. | |
6500 | ||
4886ec8e JJ |
6501 | 2015-02-04 Jakub Jelinek <jakub@redhat.com> |
6502 | ||
6503 | PR c/64824 | |
6504 | PR c/64868 | |
6505 | * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR | |
6506 | instead of RDIV_EXPR. Use build_binary_op instead of | |
6507 | build2_loc. | |
6508 | ||
40fecdd6 JM |
6509 | 2015-01-30 Joseph Myers <joseph@codesourcery.com> |
6510 | ||
6511 | * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed | |
6512 | to pass input_location as first argument. | |
6513 | ||
a0c88d06 TV |
6514 | 2015-01-23 Tom de Vries <tom@codesourcery.com> |
6515 | ||
6516 | PR libgomp/64672 | |
6517 | * c.opt (fopenacc): Mark as LTO option. | |
6518 | ||
1506ae0e TV |
6519 | 2015-01-23 Tom de Vries <tom@codesourcery.com> |
6520 | ||
6521 | PR libgomp/64707 | |
6522 | * c.opt (fopenmp): Mark as LTO option. | |
6523 | ||
31be63ab JJ |
6524 | 2015-01-21 Jakub Jelinek <jakub@redhat.com> |
6525 | ||
6526 | PR c/63307 | |
b1726d6c | 6527 | * cilk.c (fill_decls_vec): Only put decls into vector v. |
31be63ab JJ |
6528 | (compare_decls): Fix up formatting. |
6529 | ||
6530 | 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com> | |
6531 | ||
6532 | PR c/63307 | |
6533 | * cilk.c: Include vec.h. | |
6534 | (struct cilk_decls): New structure. | |
6535 | (wrapper_parm_cb): Split this function to... | |
6536 | (fill_decls_vec): ...this... | |
6537 | (create_parm_list): ...and this. | |
6538 | (compare_decls): New function. | |
6539 | (for_local_cb): Remove. | |
6540 | (wrapper_local_cb): Ditto. | |
6541 | (build_wrapper_type): For now first traverse and fill vector of | |
6542 | declarations then sort it and then deal with sorted vector. | |
6543 | (cilk_outline): Ditto. | |
6544 | (declare_one_free_variable): Ditto. | |
6545 | ||
6875457f JM |
6546 | 2015-01-21 Jason Merrill <jason@redhat.com> |
6547 | ||
6548 | PR c++/64629 | |
6549 | * c-format.c (check_format_arg): Call decl_constant_value. | |
6550 | ||
185c9e56 ML |
6551 | 2015-01-19 Martin Liska <mliska@suse.cz> |
6552 | ||
6553 | * c-common.c (handle_noicf_attribute): New function. | |
6554 | ||
41dbbb37 TS |
6555 | 2015-01-15 Thomas Schwinge <thomas@codesourcery.com> |
6556 | Bernd Schmidt <bernds@codesourcery.com> | |
6557 | James Norris <jnorris@codesourcery.com> | |
6558 | Cesar Philippidis <cesar@codesourcery.com> | |
6559 | Ilmir Usmanov <i.usmanov@samsung.com> | |
6560 | Jakub Jelinek <jakub@redhat.com> | |
6561 | ||
6562 | * c.opt (fopenacc): New option. | |
6563 | * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC. | |
6564 | * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12): | |
6565 | New macros. | |
6566 | * c-common.h (c_finish_oacc_wait): New prototype. | |
6567 | * c-omp.c: Include "omp-low.h" and "gomp-constants.h". | |
6568 | (c_finish_oacc_wait): New function. | |
6569 | * c-pragma.c (oacc_pragmas): New variable. | |
6570 | (c_pp_lookup_pragma, init_pragma): Handle it. | |
6571 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE, | |
6572 | PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA, | |
6573 | PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL, | |
6574 | PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT. | |
6575 | (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC, | |
6576 | PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE, | |
6577 | PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN, | |
6578 | PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE, | |
6579 | PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE, | |
6580 | PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE, | |
6581 | PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST, | |
6582 | PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS, | |
6583 | PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT, | |
6584 | PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY, | |
6585 | PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN, | |
6586 | PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT, | |
6587 | PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE, | |
6588 | PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF, | |
6589 | PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR, | |
6590 | PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT, | |
6591 | PRAGMA_OACC_CLAUSE_WORKER. | |
6592 | ||
3f8257db | 6593 | 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com> |
5434dc07 MD |
6594 | |
6595 | * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__ | |
6596 | for the new option fstack-protector_explicit. | |
6597 | * c-common.c (c_common_attribute_table): Add stack_protect attribute. | |
6598 | (handle_stack_protect_attribute): New function. | |
6599 | ||
3f8257db | 6600 | 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu> |
de1b5c17 MU |
6601 | |
6602 | * c.opt: New option -Warray-bounds=. | |
6603 | ||
adfac8df JJ |
6604 | 2015-01-09 Michael Collison <michael.collison@linaro.org> |
6605 | ||
6606 | * array-notation-common.c: Include hash-set.h, machmode.h, | |
6607 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
6608 | fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h. | |
6609 | * c-ada-spec.c: Ditto. | |
6610 | * c-cilkplus.c: Ditto. | |
6611 | * c-common.c: Include input.h due to flattening of tree.h. | |
6612 | Define macro GCC_C_COMMON_C. | |
6613 | * c-common.h: Flatten tree.h header files into c-common.h. | |
6614 | Remove include of tree-core.h. | |
6615 | * c-cppbuiltin.c: Include hash-set.h, machmode.h, | |
6616 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
6617 | fold-const.h, wide-int.h, and inchash.h due to | |
6618 | flattening of tree.h. | |
6619 | * c-dump.c: Ditto. | |
6620 | * c-format.c: Flatten tree.h header files into c-common.h. | |
6621 | * c-cppbuiltin.c: Include hash-set.h, machmode.h, | |
6622 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
6623 | fold-const.h, wide-int.h, and inchash.h due to | |
6624 | flattening of tree.h. | |
6625 | * c-dump.c: Include hash-set.h, machmode.h, | |
6626 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
6627 | fold-const.h, wide-int.h, and inchash.h due to | |
6628 | flattening of tree.h. | |
6629 | * c-format.c: Include hash-set.h, machmode.h, | |
6630 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
6631 | fold-const.h, wide-int.h, inchash.h and real.h due to | |
6632 | flattening of tree.h. | |
6633 | * c-gimplify.c: Include hash-set.h, machmode.h, | |
6634 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
6635 | fold-const.h, wide-int.h, and inchash.h due to | |
6636 | flattening of tree.h. | |
6637 | * cilk.c: Ditto. | |
6638 | * c-lex.c: Ditto. | |
6639 | * c-omp.c: Ditto. | |
6640 | * c-opts.c: Ditto. | |
6641 | * c-pch.c: Ditto. | |
6642 | * c-ppoutput.c: Ditto. | |
6643 | * c-pragma.c: Ditto. | |
6644 | * c-pretty-print.c: Ditto. | |
6645 | * c-semantics.c: Ditto. | |
6646 | * c-ubsan.c: Ditto. | |
6647 | * stub-objc.c: Ditto. | |
6648 | ||
f5481fc4 JM |
6649 | 2015-01-08 Jason Merrill <jason@redhat.com> |
6650 | ||
6651 | * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use | |
6652 | do_ubsan_in_current_function. | |
6653 | (ubsan_maybe_instrument_reference_or_call): Likewise. | |
6654 | * c-ubsan.h: Declare it. | |
6655 | ||
de35aa66 MS |
6656 | 2015-01-08 Mike Stump <mikestump@comcast.net> |
6657 | ||
6658 | * c-common.c (c_common_attribute_table): Add no_sanitize_thread. | |
6659 | ||
4a9a42ab MP |
6660 | 2015-01-07 Marek Polacek <polacek@redhat.com> |
6661 | ||
6662 | PR c/64440 | |
6663 | * c-common.c (c_fully_fold_internal): Warn for division and modulo | |
6664 | if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero. | |
6665 | ||
2f42e5de TS |
6666 | 2015-01-05 Trevor Saunders <tsaunders@mozilla.com> |
6667 | ||
6668 | PR c++/31397 | |
6669 | * c.opt (Wsuggest-override): New option. | |
6670 | ||
5624e564 JJ |
6671 | 2015-01-05 Jakub Jelinek <jakub@redhat.com> |
6672 | ||
6673 | Update copyright years. | |
6674 | ||
5bd012f8 MP |
6675 | 2015-01-05 Marek Polacek <polacek@redhat.com> |
6676 | ||
6677 | PR c/64423 | |
6678 | * c-common.c (warn_array_subscript_with_type_char): Add location_t | |
6679 | parameter. Use it. | |
6680 | * c-common.h (warn_array_subscript_with_type_char): Update | |
6681 | declaration. | |
6682 | ||
a7fa8d18 ESR |
6683 | 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net> |
6684 | ||
6685 | * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro. | |
6686 | Control macro with flag_sized_deallocation. | |
6687 | ||
3f8257db | 6688 | 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu> |
768952be MU |
6689 | |
6690 | * c.opt (Wdiscarded-array-qualifiers): New option. | |
6691 | ||
1f8d3e84 JJ |
6692 | 2014-12-19 Jakub Jelinek <jakub@redhat.com> |
6693 | ||
6694 | PR preprocessor/63831 | |
6695 | * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute | |
6696 | and __has_cpp_attribute here. | |
6697 | * c-ppoutput.c (init_pp_output): Set cb->has_attribute to | |
6698 | c_common_has_attribute. | |
6699 | * c-common.h (c_common_has_attribute): New prototype. | |
6700 | * c-lex.c (init_c_lex): Set cb->has_attribute to | |
6701 | c_common_has_attribute instead of cb_has_attribute. | |
6702 | (get_token_no_padding): New function. | |
6703 | (cb_has_attribute): Renamed to ... | |
6704 | (c_common_has_attribute): ... this. No longer static. Use | |
6705 | get_token_no_padding, require ()s, don't build TREE_LIST | |
6706 | unnecessarily, fix up formatting, adjust diagnostics, call | |
6707 | init_attributes. | |
6708 | ||
20b06add JM |
6709 | 2014-12-15 Jason Merrill <jason@redhat.com> |
6710 | ||
6711 | * c.opt (-fsized-deallocation, -Wc++14-compat): New. | |
6712 | (-Wsized-deallocation): New. | |
6713 | * c-opts.c (c_common_post_options): -fsized-deallocation defaults | |
6714 | to on in C++14 and up. | |
6715 | ||
94a073b2 JM |
6716 | 2014-12-11 Jason Merrill <jason@redhat.com> |
6717 | ||
acaa5911 JM |
6718 | * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr. |
6719 | ||
94a073b2 JM |
6720 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if |
6721 | we aren't complaining about VLAs. | |
6722 | ||
7fb66c15 MP |
6723 | 2014-12-06 Marek Polacek <polacek@redhat.com> |
6724 | ||
6725 | PR tree-optimization/64183 | |
6726 | * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a | |
6727 | shift-expression if it is integer_type_node. Use types_compatible_p. | |
6728 | ||
b731b390 JJ |
6729 | 2014-11-29 Jakub Jelinek <jakub@redhat.com> |
6730 | ||
6731 | * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL | |
6732 | last argument from create_tmp_var_raw and create_tmp_var calls. | |
6733 | * cilk.c (gimplify_cilk_spawn): Likewise. | |
6734 | * c-omp.c (c_finish_omp_atomic): Likewise. | |
6735 | ||
6a4da643 MP |
6736 | 2014-11-28 Marek Polacek <polacek@redhat.com> |
6737 | ||
6738 | * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR | |
6739 | instead of unsigned_type_node. | |
6740 | ||
541e35a6 MP |
6741 | 2014-11-28 Marek Polacek <polacek@redhat.com> |
6742 | ||
6743 | PR c/63862 | |
6744 | * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR | |
6745 | to op1_utype. | |
6746 | * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift | |
6747 | expression to unsigned_type_node. | |
6748 | ||
dcc97066 MW |
6749 | 2014-11-20 Mark Wielaard <mjw@redhat.com> |
6750 | ||
6751 | PR debug/38757 | |
6752 | * c-opts.c (set_std_c89): Set lang_hooks.name. | |
6753 | (set_std_c99): Likewise. | |
6754 | (set_std_c11): Likewise. | |
6755 | (set_std_cxx98): Likewise. | |
6756 | (set_std_cxx11): Likewise. | |
6757 | (set_std_cxx14): Likewise. | |
6758 | (set_std_cxx1z): Likewise. | |
6759 | ||
aa7da51a JJ |
6760 | 2014-11-21 Jakub Jelinek <jakub@redhat.com> |
6761 | ||
6762 | PR target/63764 | |
6763 | * c-common.h (convert_vector_to_pointer_for_subscript): Change | |
6764 | return type to bool. | |
009a3480 | 6765 | * c-common.c: Include gimple-expr.h. |
aa7da51a JJ |
6766 | (convert_vector_to_pointer_for_subscript): Change return type to |
6767 | bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true | |
6768 | and copy it into a TARGET_EXPR and use that instead of *vecp | |
6769 | directly. | |
6770 | ||
538dd0b7 DM |
6771 | 2014-11-19 David Malcolm <dmalcolm@redhat.com> |
6772 | ||
6773 | Merger of git branch "gimple-classes-v2-option-3". | |
6774 | * ChangeLog.gimple-classes: New. | |
6775 | * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack" | |
6776 | from being just a vec<gimple> to a vec<gbind *>. | |
6777 | ||
c39a5e99 JJ |
6778 | 2014-11-18 Jakub Jelinek <jakub@redhat.com> |
6779 | ||
6780 | PR sanitizer/63813 | |
6781 | * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type | |
6782 | argument to ptype, set type to TREE_TYPE (ptype). Don't call | |
6783 | get_pointer_alignment for non-pointers. Use ptype, or if it is | |
6784 | reference type, corresponding pointer type, as type of kind | |
6785 | argument. | |
6786 | (ubsan_maybe_instrument_reference, | |
6787 | ubsan_maybe_instrument_member_call): Adjust callers. | |
6788 | ||
8537a4a9 MP |
6789 | 2014-11-15 Marek Polacek <polacek@redhat.com> |
6790 | ||
6791 | PR middle-end/63884 | |
6792 | * array-notation-common.c (is_sec_implicit_index_fn): Return false | |
6793 | for NULL fndecl. | |
6794 | (extract_array_notation_exprs): Return for NULL node. | |
6795 | ||
2079956a JM |
6796 | 2014-11-12 Joseph Myers <joseph@codesourcery.com> |
6797 | ||
6798 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and | |
6799 | undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state. | |
6800 | ||
1304953e JJ |
6801 | 2014-11-12 Jakub Jelinek <jakub@redhat.com> |
6802 | ||
6803 | PR c/59708 | |
6804 | * c-common.c (check_builtin_function_arguments): Handle | |
6805 | BUILT_IN_{ADD,SUB,MUL}_OVERFLOW. | |
6806 | ||
e5e44252 AK |
6807 | 2014-11-10 Andi Kleen <ak@linux.intel.com> |
6808 | ||
6809 | PR c/60804 | |
6810 | * c-common.h (check_no_cilk): Declare. | |
6811 | * cilk.c (get_error_location): New function. | |
6812 | (check_no_cilk): Dito. | |
6813 | ||
e64b984d AK |
6814 | 2014-11-10 Andi Kleen <ak@linux.intel.com> |
6815 | ||
6816 | * cilk.c (recognize_spawn): Use expression location | |
6817 | for error message. | |
6818 | ||
13c21655 PC |
6819 | 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com> |
6820 | ||
6821 | * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add. | |
6822 | ||
42fd12b1 ESR |
6823 | 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net> |
6824 | ||
6825 | * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros; | |
6826 | (__cpp_rtti, __cpp_exceptions): New macros for C++98; | |
6827 | (__cpp_range_based_for, __cpp_initializer_lists, | |
6828 | __cpp_delegating_constructors, __cpp_nsdmi, | |
6829 | __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros | |
6830 | for C++11; (__cpp_attribute_deprecated): Remove in favor of | |
6831 | __has_cpp_attribute. | |
6832 | * c-lex.c (cb_has_attribute): New callback CPP function; | |
6833 | (init_c_lex): Set has_attribute callback. | |
6834 | ||
6f450181 RB |
6835 | 2014-11-04 Richard Biener <rguenther@suse.de> |
6836 | ||
6837 | * c-common.c (shorten_compare): Do not shorten mixed | |
6838 | DFP and non-DFP compares. | |
6839 | ||
26f0e1d6 ESR |
6840 | 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net> |
6841 | ||
6842 | * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests. | |
6843 | * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test. | |
6844 | Commentary and rearrangement of tests. | |
6845 | * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test. | |
6846 | Commentary and rearrangement of tests. | |
ab20d992 | 6847 | * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto. |
26f0e1d6 ESR |
6848 | * g++.dg/cpp1y/feat-cxx98.C: Commentary. |
6849 | ||
ef4bddc2 RS |
6850 | 2014-10-29 Richard Sandiford <richard.sandiford@arm.com> |
6851 | ||
6852 | * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant | |
6853 | enum from machine_mode. | |
6854 | ||
c582198b AM |
6855 | 2014-10-28 Andrew MacLeod <amacleod@redhat.com> |
6856 | ||
adfac8df JJ |
6857 | * c-common.c: Adjust include files. |
6858 | * c-gimplify.c: Ditto. | |
6859 | * cilk.c: Ditto. | |
6860 | * c-pragma.c: Ditto. | |
6861 | * c-ubsan.c: Ditto. | |
c582198b | 6862 | |
60393bbc AM |
6863 | 2014-10-27 Andrew MacLeod <amacleod@redhat.com> |
6864 | ||
6865 | * c-gimplify.c: Adjust include files. | |
6866 | ||
d723bb7c MLI |
6867 | 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org> |
6868 | ||
6869 | PR c++/53061 | |
6870 | * c-opts.c (c_common_diagnostics_set_defaults): Renamed from | |
6871 | c_common_initialize_diagnostics. | |
6872 | * c-common.h: Likewise. | |
6873 | ||
90f3520e MP |
6874 | 2014-10-24 Marek Polacek <polacek@redhat.com> |
6875 | ||
6876 | PR c/56980 | |
6877 | * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't | |
6878 | print "struct"/"union"/"enum" for typedefed names. | |
6879 | ||
59d7607a MP |
6880 | 2014-10-23 Marek Polacek <polacek@redhat.com> |
6881 | ||
6882 | * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR | |
6883 | in unsigned type. | |
6884 | ||
d95a2703 JJ |
6885 | 2014-10-22 Jakub Jelinek <jakub@redhat.com> |
6886 | Yury Gribov <y.gribov@samsung.com> | |
6887 | ||
6888 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift, | |
6889 | ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask | |
6890 | instead of flag_sanitize_recover as bool flag. | |
6891 | ||
8e6ef852 KY |
6892 | 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com> |
6893 | ||
6894 | * cilk.c: Revert previous change. | |
6895 | ||
948cf550 IZ |
6896 | 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com> |
6897 | ||
6898 | PR c/63307 | |
6899 | * cilk.c: Include vec.h. | |
6900 | (struct cilk_decls): New structure. | |
6901 | (wrapper_parm_cb): Split this function to... | |
6902 | (fill_decls_vec): ...this... | |
6903 | (create_parm_list): ...and this. | |
6904 | (compare_decls): New function. | |
6905 | (for_local_cb): Remove. | |
6906 | (wrapper_local_cb): Ditto. | |
6907 | (build_wrapper_type): For now first traverse and fill vector of | |
6908 | declarations then sort it and then deal with sorted vector. | |
6909 | (cilk_outline): Ditto. | |
6910 | (declare_one_free_variable): Ditto. | |
6911 | ||
92574c7c MP |
6912 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
6913 | ||
6914 | * c-opts.c (c_common_post_options): Set warn_implicit_int. | |
6915 | * c.opt (Wimplicit-int): Initialize to -1. | |
6916 | ||
83685514 AM |
6917 | 2014-10-16 Andrew MacLeod <amacleod@redhat.com> |
6918 | ||
6919 | * c-pragma.c: Adjust include files. | |
6920 | * c-semantics.c: Likewise. | |
6921 | ||
5b8300ea DD |
6922 | 2014-10-16 DJ Delorie <dj@redhat.com> |
6923 | ||
6924 | * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are | |
6925 | multiples of bytes. | |
6926 | ||
5f83e90b JM |
6927 | 2014-10-14 Jason Merrill <jason@redhat.com> |
6928 | ||
6929 | PR c++/63455 | |
6930 | * c-common.h (CPP_PREPARSED_EXPR): New. | |
6931 | (N_CP_TTYPES): Adjust. | |
6932 | ||
d73326ca MP |
6933 | 2014-10-15 Marek Polacek <polacek@redhat.com> |
6934 | ||
6935 | * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C. | |
6936 | ||
78a7c317 DD |
6937 | 2014-10-14 DJ Delorie <dj@redhat.com> |
6938 | ||
6939 | * c-pretty-print.c (pp_c_integer_constant): Check for all __intN | |
6940 | types, not just __int128. | |
6941 | * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN | |
6942 | types, not just __int128. | |
6943 | (cpp_atomic_builtins): Round pointer sizes up. | |
6944 | (type_suffix): Use type precision, not specific types. | |
6945 | * c-common.c (c_common_reswords): Remove __int128 special case. | |
6946 | (c_common_type_for_size): Check for all __intN types, not just | |
6947 | __int128. | |
6948 | (c_common_type_for_mode): Likewise. | |
6949 | (c_common_signed_or_unsigned_type): Likewise. | |
6950 | (c_build_bitfield_integer_type): Likewise. | |
6951 | (c_common_nodes_and_builtins): Likewise. | |
6952 | (keyword_begins_type_specifier): Likewise. | |
6953 | * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all | |
6954 | __intN variants. | |
6955 | ||
2a22f99c TS |
6956 | 2014-10-12 Trevor Saunders <tsaunders@mozilla.com> |
6957 | ||
6958 | * c-common.c: Use hash_table instead of hashtab. | |
6959 | ||
2a8ef767 ESR |
6960 | 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net> |
6961 | ||
adfac8df | 6962 | * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the |
2a8ef767 ESR |
6963 | C++11 section. |
6964 | ||
3c9aabbd MG |
6965 | 2014-10-03 Marc Glisse <marc.glisse@inria.fr> |
6966 | ||
6967 | PR c++/54427 | |
6968 | PR c++/57198 | |
6969 | PR c++/58845 | |
6970 | * c-common.c (warn_logical_operator): Punt for vectors. | |
6971 | ||
a15f7cb8 ESR |
6972 | 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net> |
6973 | ||
6974 | Implement SD-6: SG10 Feature Test Recommendations | |
6975 | * c-cppbuiltin.c (c_cpp_builtins()): Define language feature | |
6976 | macros and the __has_header macro. | |
6977 | ||
8d0cf15e JM |
6978 | 2014-09-30 Jason Merrill <jason@redhat.com> |
6979 | ||
dd5d5481 JM |
6980 | * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and |
6981 | RID_IS_TRIVIALLY_CONSTRUCTIBLE. | |
6982 | * c-common.c (c_common_reswords): Add __is_trivially_copyable. | |
6983 | ||
b752325e JM |
6984 | * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE. |
6985 | * c-common.c (c_common_reswords): Add __is_trivially_copyable. | |
6986 | ||
8d0cf15e JM |
6987 | * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO. |
6988 | * c-common.c (c_common_reswords): Remove __is_convertible_to. | |
6989 | ||
083e891e MP |
6990 | 2014-09-24 Marek Polacek <polacek@redhat.com> |
6991 | ||
6992 | PR c/61405 | |
6993 | PR c/53874 | |
6994 | * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD. | |
6995 | ||
7861b648 AK |
6996 | 2014-09-23 Andi Kleen <ak@linux.intel.com> |
6997 | ||
6998 | * c-common.c (handle_no_reorder_attribute): New function. | |
6999 | (c_common_attribute_table): Add no_reorder attribute. | |
7000 | ||
9a79452d JM |
7001 | 2014-09-22 Joseph Myers <joseph@codesourcery.com> |
7002 | ||
7003 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
7004 | __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point | |
7005 | modes. | |
7006 | ||
dd69f047 JM |
7007 | 2014-09-18 Joseph Myers <joseph@codesourcery.com> |
7008 | ||
7009 | * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__ | |
7010 | for supported floating-point modes. | |
7011 | ||
737a4826 MLI |
7012 | 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7013 | ||
7014 | * c.opt (Wpsabi): Use LangEnabledBy. | |
7015 | * c-opts.c (c_common_handle_option): Do not handle here. | |
7016 | ||
8cc4b7a2 JM |
7017 | 2014-09-12 Joseph Myers <joseph@codesourcery.com> |
7018 | ||
7019 | * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__ | |
7020 | macros for floating-point modes. | |
7021 | ||
179b5a55 MG |
7022 | 2014-09-11 Marc Glisse <marc.glisse@inria.fr> |
7023 | ||
7024 | PR target/58757 | |
7025 | * c-cppbuiltin.c (builtin_define_float_constants): Correct | |
7026 | __*_DENORM_MIN__ without denormals. | |
7027 | ||
570a11fe JJ |
7028 | 2014-09-10 Jakub Jelinek <jakub@redhat.com> |
7029 | ||
7030 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift, | |
7031 | ubsan_instrument_vla, ubsan_instrument_return): Adjust | |
7032 | ubsan_create_data callers. | |
7033 | (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if | |
7034 | index is constant or BIT_AND_EXPR with constant mask and is | |
7035 | small enough for the bound. | |
7036 | * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of | |
7037 | ARRAY_REF, make sure the inner ARRAY_REF is not walked again. | |
7038 | ||
b559c810 MLI |
7039 | 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7040 | ||
7041 | * c.opt: Add CppReason to various flags. | |
7042 | (Wdate-time): Re-sort. | |
7043 | * c-common.c: Include c-common.h earlier. | |
7044 | (struct reason_option_codes_t): Delete. | |
7045 | (c_option_controlling_cpp_error): Prefix global type and struct | |
7046 | with cpp_. | |
7047 | ||
1ef33fd4 MLI |
7048 | 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7049 | ||
7050 | * c.opt (Wnormalized): New. | |
7051 | (Wnormalized=): Use Enum and Reject Negative. | |
7052 | * c-opts.c (c_common_handle_option): Do not handle Wnormalized here. | |
7053 | ||
66bb34c0 JM |
7054 | 2014-09-08 Joseph Myers <joseph@codesourcery.com> |
7055 | ||
7056 | * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa | |
7057 | digits of floating-point modes if -fbuilding-libgcc. | |
7058 | ||
53d68b9f JM |
7059 | 2014-09-05 Joseph Myers <joseph@codesourcery.com> |
7060 | ||
7061 | * c-cppbuiltin.c (c_cpp_builtins): Also define | |
7062 | __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__, | |
7063 | __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__, | |
7064 | __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__, | |
7065 | __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__, | |
7066 | __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__, | |
7067 | __LIBGCC_STACK_GROWS_DOWNWARD__, | |
7068 | __LIBGCC_DONT_USE_BUILTIN_SETJMP__, | |
7069 | __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__, | |
7070 | __LIBGCC_DWARF_FRAME_REGISTERS__, | |
7071 | __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__, | |
7072 | __LIBGCC_STACK_POINTER_REGNUM__ and | |
7073 | __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc. | |
7074 | (builtin_define_with_value): Handle backslash-escaping in string | |
7075 | macro values. | |
7076 | ||
f65586dc RB |
7077 | 2014-09-05 Richard Biener <rguenther@suse.de> |
7078 | ||
7079 | PR middle-end/63148 | |
7080 | * c-format.c (check_format_arg): Properly handle | |
7081 | effectively signed POINTER_PLUS_EXPR offset. | |
7082 | ||
2b71f4a4 MLI |
7083 | 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7084 | ||
7085 | * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels, | |
7086 | Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic, | |
7087 | (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var | |
7088 | and Init. | |
7089 | * c-opts.c (c_common_handle_option): Do not handle here. | |
7090 | (sanitize_cpp_opts): Likewise. | |
7091 | * c-common.c (struct reason_option_codes_t): Handle | |
7092 | CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC. | |
7093 | ||
d2e4feca MP |
7094 | 2014-09-03 Marek Polacek <polacek@redhat.com> |
7095 | ||
7096 | * c.opt (Wlogical-not-parentheses): Enable by -Wall. | |
7097 | ||
9a771876 JJ |
7098 | 2014-09-02 Jakub Jelinek <jakub@redhat.com> |
7099 | Balaji V. Iyer <balaji.v.iyer@intel.com> | |
7100 | Igor Zamyatin <igor.zamyatin@intel.com> | |
7101 | ||
7102 | * c-cilkplus.c (cilk_for_number_of_iterations): New function. | |
7103 | * c-common.c (c_common_reswords): Added _Cilk_for. | |
7104 | * c-common.h (enum rid): Added RID_CILK_FOR. | |
7105 | (cilk_for_number_of_iterations): Add declaration. | |
7106 | * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and | |
7107 | CILK_FOR. | |
7108 | * c-pragma.c (init_pragma): Register "grainsize" pragma. | |
7109 | * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE. | |
7110 | ||
81b5d104 MLI |
7111 | 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7112 | ||
7113 | * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels, | |
7114 | Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs, | |
7115 | Wundef): Use CPP, Var and Init. | |
7116 | * c-opts.c (c_common_handle_option): Do not handle the above flags here. | |
7117 | ||
b753b37b MLI |
7118 | 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7119 | ||
7120 | * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init. | |
7121 | * c-opts.c (c_common_handle_option): Do not handle here. | |
7122 | ||
028aee17 JM |
7123 | 2014-08-25 Jason Merrill <jason@redhat.com> |
7124 | ||
7125 | * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for | |
7126 | -std=c++14 and -std=gnu++14, rather than the reverse. | |
7127 | * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and | |
7128 | OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14. | |
7129 | * c-common.h (cxx_dialect): Remove cxx1y. | |
7130 | ||
e4276ba5 ESR |
7131 | 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net> |
7132 | ||
7133 | * c-common.h (enum cxx_dialect): Add cxx14. | |
7134 | * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14. | |
7135 | * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from | |
7136 | cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11. | |
7137 | ||
a545cacd JM |
7138 | 2014-08-22 Jason Merrill <jason@redhat.com> |
7139 | ||
7140 | * c.opt (std=gnu++17): Fix alias. | |
7141 | ||
59ea0364 MP |
7142 | 2014-08-22 Marek Polacek <polacek@redhat.com> |
7143 | ||
7144 | PR c++/62199 | |
7145 | * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't | |
7146 | check for vector types. Drop LHS argument. | |
7147 | * c-common.h (warn_logical_not_parentheses): Adjust. | |
7148 | ||
596e808c MLI |
7149 | 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7150 | ||
7151 | * c.opt (Wcomment): Use CPP, Var and LangEnabledBy. | |
7152 | (Wmultichar): Likewise. | |
7153 | (Wdate-time): Use C-family languages instead of Common. Use CPP | |
7154 | and Var. | |
7155 | * c-opts.c (c_common_handle_option): Do not handle the above | |
7156 | options here. | |
7157 | (sanitize_cpp_opts): Likewise. | |
7158 | ||
18767f65 MLI |
7159 | 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7160 | ||
7161 | PR fortran/44054 | |
7162 | * c-opts.c: Include tree-diagnostics.h. | |
7163 | (c_diagnostic_finalizer): New. | |
7164 | (c_common_initialize_diagnostics): Use it. | |
7165 | ||
b4413594 MLI |
7166 | 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7167 | ||
7168 | PR preprocessor/51303 | |
7169 | * c-common.c (struct reason_option_codes_t option_codes): | |
7170 | Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically. | |
7171 | ||
43f9a13c MLI |
7172 | 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7173 | ||
7174 | PR c/60975 | |
7175 | PR c/53063 | |
7176 | * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy. | |
7177 | * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto. | |
7178 | (c_common_post_options): Call init_global_opts_from_cpp. | |
7179 | (sanitize_cpp_opts): Do not handle Wvariadic-macros here. | |
7180 | ||
04159acf MP |
7181 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
7182 | ||
7183 | PR c++/62153 | |
7184 | * c-common.c (maybe_warn_bool_compare): New function. | |
7185 | * c-common.h (maybe_warn_bool_compare): Declare. | |
7186 | * c.opt (Wbool-compare): New option. | |
7187 | ||
35aff4fb MP |
7188 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
7189 | ||
7190 | * c.opt (Wc99-c11-compat): New option. | |
7191 | ||
177cce46 MP |
7192 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
7193 | ||
7194 | * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according | |
7195 | to warn_c90_c99_compat. | |
7196 | * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize | |
7197 | to -1. | |
7198 | ||
6ae9194f MLI |
7199 | 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7200 | Steven Bosscher <steven@gcc.gnu.org> | |
7201 | ||
7202 | PR c/52952 | |
7203 | * c-format.c: Add extra_arg_loc and format_string_loc to struct | |
7204 | format_check_results. | |
7205 | (check_function_format): Use true and add comment for boolean | |
7206 | argument. | |
7207 | (finish_dollar_format_checking): Use explicit location when warning. | |
7208 | (check_format_info): Likewise. | |
7209 | (check_format_arg): Set extra_arg_loc and format_string_loc. | |
7210 | (check_format_info_main): Use explicit location when warning. | |
7211 | (check_format_types): Pass explicit location. | |
7212 | (format_type_warning): Likewise. | |
7213 | ||
8e54f6d3 MLI |
7214 | 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7215 | ||
7216 | PR fortran/44054 | |
7217 | * c-format.c: Handle Fortran flags. | |
7218 | ||
cd4e76fc IZ |
7219 | 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com> |
7220 | ||
7221 | PR other/61962 | |
7222 | * array-notation-common.c (find_rank): Added handling for other | |
7223 | types of references. | |
7224 | ||
f3bede71 MP |
7225 | 2014-08-10 Marek Polacek <polacek@redhat.com> |
7226 | ||
7227 | PR c/51849 | |
7228 | * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp. | |
7229 | * c.opt (Wc90-c99-compat): Add option. | |
7230 | ||
9f25a338 TS |
7231 | 2014-08-07 Trevor Saunders <tsaunders@mozilla.com> |
7232 | ||
7233 | * c-gimplify.c, cilk.c: Remove includes of pointer-set.h. | |
7234 | ||
62e4eb35 MP |
7235 | 2014-08-03 Marek Polacek <polacek@redhat.com> |
7236 | ||
ab20d992 | 7237 | * c-common.c (check_case_value): Add location_t parameter. Use it. |
62e4eb35 MP |
7238 | (c_add_case_label): Pass loc to check_case_value. |
7239 | ||
b787e7a2 TS |
7240 | 2014-08-02 Trevor Saunders <tsaunders@mozilla.com> |
7241 | ||
7242 | * cilk.c: Use hash_map instead of pointer_map. | |
7243 | ||
6e2830c3 TS |
7244 | 2014-08-02 Trevor Saunders <tsaunders@mozilla.com> |
7245 | ||
7246 | * c-gimplify.c: Use hash_set instead of pointer_set. | |
7247 | ||
a7ee52fb IZ |
7248 | 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com> |
7249 | ||
7250 | PR middle-end/61455 | |
7251 | * array-notation-common.c (extract_array_notation_exprs): Handling | |
7252 | of DECL_EXPR added. | |
7253 | ||
944fa280 JJ |
7254 | 2014-08-01 Jakub Jelinek <jakub@redhat.com> |
7255 | ||
7256 | * c-common.h (min_align_of_type): Removed prototype. | |
7257 | * c-common.c (min_align_of_type): Removed. | |
7258 | * c-ubsan.h (ubsan_maybe_instrument_reference, | |
7259 | ubsan_maybe_instrument_member_call): New prototypes. | |
7260 | * c-ubsan.c: Include stor-layout.h and builtins.h. | |
7261 | (ubsan_maybe_instrument_reference_or_call, | |
7262 | ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New | |
7263 | functions. | |
7264 | ||
b4dfdc11 MG |
7265 | 2014-07-31 Marc Glisse <marc.glisse@inria.fr> |
7266 | ||
7267 | PR c++/60517 | |
7268 | * c.opt (-Wreturn-local-addr): Move to common.opt. | |
7269 | ||
a41844e5 JM |
7270 | 2014-07-30 Jason Merrill <jason@redhat.com> |
7271 | ||
7272 | PR c++/61659 | |
7273 | PR c++/61687 | |
7274 | Revert: | |
7275 | * c.opt (-fuse-all-virtuals): New. | |
7276 | ||
976d5a22 TT |
7277 | 2014-07-30 Tom Tromey <tromey@redhat.com> |
7278 | ||
7279 | PR c/59855 | |
7280 | * c.opt (Wdesignated-init): New option. | |
7281 | * c-common.c (c_common_attribute_table): Add "designated_init". | |
7282 | (handle_designated_init): New function. | |
7283 | ||
cdc94aca MP |
7284 | 2014-07-24 Marek Polacek <polacek@redhat.com> |
7285 | ||
7286 | PR c/57653 | |
7287 | * c-opts.c (c_finish_options): If -imacros is in effect, return. | |
7288 | ||
f41373b6 DS |
7289 | 2014-07-16 Dodji Seketeli <dodji@redhat.com> |
7290 | ||
7291 | PR preprocessor/60723 - missing system-ness marks for macro tokens | |
7292 | * c-ppoutput.c (struct print::prev_was_system_token): New data | |
7293 | member. | |
7294 | (init_pp_output): Initialize it. | |
7295 | (maybe_print_line_1, maybe_print_line, print_line_1, print_line) | |
7296 | (do_line_change): Return a flag saying if a line marker was | |
7297 | emitted or not. | |
7298 | (scan_translation_unit): Detect if the system-ness of the token we | |
7299 | are about to emit is different from the one of the previously | |
7300 | emitted token. If so, emit a line marker. Avoid emitting useless | |
7301 | adjacent line markers. Avoid emitting line markers for tokens | |
7302 | originating from the expansion of built-in macros. | |
7303 | (scan_translation_unit_directives_only): Adjust. | |
7304 | ||
4d661eaa MP |
7305 | 2014-07-15 Marek Polacek <polacek@redhat.com> |
7306 | ||
7307 | * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if | |
7308 | TYPE_MAX_VALUE is NULL. | |
7309 | ||
b108f48f JJ |
7310 | 2014-07-14 Jakub Jelinek <jakub@redhat.com> |
7311 | ||
7312 | PR middle-end/61294 | |
7313 | * c.opt (Wmemset-transposed-args): New warning. | |
7314 | ||
c0221884 JM |
7315 | 2014-07-10 Jason Merrill <jason@redhat.com> |
7316 | ||
7317 | PR c++/61659 | |
7318 | PR c++/61687 | |
7319 | * c.opt (-fuse-all-virtuals): New. | |
7320 | ||
63dfbb95 RB |
7321 | 2014-07-09 Richard Biener <rguenther@suse.de> |
7322 | ||
7323 | PR c-family/61741 | |
7324 | * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions | |
7325 | using unsigned arithmetic if overflow does not wrap instead of | |
7326 | if overflow is undefined. | |
7327 | ||
773ec47f MP |
7328 | 2014-07-06 Marek Polacek <polacek@redhat.com> |
7329 | ||
7330 | PR c/6940 | |
7331 | * c.opt (Wsizeof-array-argument): New option. | |
7332 | ||
00a7ba58 JJ |
7333 | 2014-07-03 Jakub Jelinek <jakub@redhat.com> |
7334 | ||
b1726d6c | 7335 | * c-ada-spec.c (dump_ada_nodes): Don't call qsort if |
00a7ba58 JJ |
7336 | comments->count <= 1, as comments->entries might be NULL. |
7337 | ||
52ec0ea3 MP |
7338 | 2014-07-01 Marek Polacek <polacek@redhat.com> |
7339 | ||
7340 | * c.opt (Wint-conversion): New option. | |
7341 | ||
d5c3d343 MP |
7342 | 2014-07-01 Marek Polacek <polacek@redhat.com> |
7343 | ||
7344 | PR c/58286 | |
7345 | * c.opt (Wincompatible-pointer-types): New option. | |
7346 | ||
6e7ceb17 PC |
7347 | 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com> |
7348 | ||
7349 | PR c++/51400 | |
7350 | * c-common.c (handle_noreturn_attribute, handle_const_attribute): | |
7351 | Do not discard TYPE_QUALS of type. | |
7352 | ||
da73100b JM |
7353 | 2014-06-26 Jason Merrill <jason@redhat.com> |
7354 | ||
7355 | * c-common.h (enum cxx_dialect): Add cxx1z. | |
7356 | * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New. | |
7357 | * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it. | |
7358 | ||
08eedf75 TJ |
7359 | 2014-06-26 Teresa Johnson <tejohnson@google.com> |
7360 | ||
7361 | * c-common.h (get_dump_info): Declare. | |
7362 | * c-gimplify.c (c_genericize): Use saved dump files. | |
7363 | * c-opts.c (c_common_parse_file): Begin and end dumps | |
7364 | once around parsing invocation. | |
7365 | (get_dump_info): New function. | |
7366 | ||
7b56b2f8 MP |
7367 | 2014-06-23 Marek Polacek <polacek@redhat.com> |
7368 | Andrew MacLeod <amacleod@redhat.com> | |
7369 | ||
7370 | PR c/61553 | |
7371 | * c-common.c (get_atomic_generic_size): Don't segfault if the | |
7372 | type doesn't have a size. | |
7373 | ||
0e37a2f3 MP |
7374 | 2014-06-20 Marek Polacek <polacek@redhat.com> |
7375 | ||
7376 | * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h". | |
7377 | (ubsan_walk_array_refs_r): New function. | |
7378 | (c_genericize): Instrument array bounds. | |
7379 | * c-ubsan.c: Include "internal-fn.h". | |
7380 | (ubsan_instrument_division): Mark instrumented arrays as having | |
7381 | side effects. Adjust ubsan_type_descriptor call. | |
7382 | (ubsan_instrument_shift): Likewise. | |
7383 | (ubsan_instrument_vla): Adjust ubsan_type_descriptor call. | |
7384 | (ubsan_instrument_bounds): New function. | |
7385 | (ubsan_array_ref_instrumented_p): New function. | |
7386 | (ubsan_maybe_instrument_array_ref): New function. | |
7387 | * c-ubsan.h (ubsan_instrument_bounds): Declare. | |
7388 | (ubsan_array_ref_instrumented_p): Declare. | |
7389 | (ubsan_maybe_instrument_array_ref): Declare. | |
7390 | ||
7391 | 2014-06-20 Hale Wang <hale.wang@arm.com> | |
dd6fe7d4 HW |
7392 | |
7393 | PR lto/61123 | |
7394 | * c.opt (fshort-enums): Add to LTO. | |
7395 | * c.opt (fshort-wchar): Likewise. | |
7396 | ||
5c3d09f7 MP |
7397 | 2014-06-16 Marek Polacek <polacek@redhat.com> |
7398 | ||
7399 | PR c/60439 | |
7400 | * c.opt (Wswitch-bool): Add Var. | |
7401 | ||
9cf32741 JJ |
7402 | 2014-06-12 Jakub Jelinek <jakub@redhat.com> |
7403 | ||
7404 | PR middle-end/61486 | |
7405 | * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in | |
7406 | #pragma omp target teams or | |
7407 | #pragma omp {,target }teams distribute simd. | |
7408 | ||
62984918 JM |
7409 | 2014-06-12 Jason Merrill <jason@redhat.com> |
7410 | ||
7411 | * c.opt (Wabi=, fabi-compat-version): New. | |
7412 | * c-opts.c (c_common_handle_option): Handle -Wabi=. | |
7413 | (c_common_post_options): Handle flag_abi_compat_version default. | |
7414 | Disallow -fabi-compat-version=1. | |
7415 | * c-common.h (abi_version_crosses): New. | |
7416 | ||
f961457f JH |
7417 | 2014-06-11 Jan Hubicka <hubicka@ucw.cz> |
7418 | ||
adfac8df | 7419 | * c-common.c (handle_section_attribute): Update handling for |
f961457f JH |
7420 | section names that are no longer trees. |
7421 | ||
92d28cbb JJ |
7422 | 2014-06-10 Jakub Jelinek <jakub@redhat.com> |
7423 | ||
7424 | PR fortran/60928 | |
7425 | * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK... | |
7426 | (omp_pragmas): ... back here. | |
7427 | ||
742938c9 MP |
7428 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
7429 | ||
7430 | PR c/49706 | |
7431 | * c-common.c (warn_logical_not_parentheses): New function. | |
7432 | * c-common.h (warn_logical_not_parentheses): Declare. | |
7433 | * c.opt (Wlogical-not-parentheses): New option. | |
7434 | ||
9d548dfb MP |
7435 | 2014-06-04 Marek Polacek <polacek@redhat.com> |
7436 | ||
7437 | PR c/30020 | |
7438 | * c-common.c (check_case_bounds): Add location parameter. | |
7439 | Use it. | |
7440 | (c_add_case_label): Pass loc to check_case_bounds. | |
7441 | ||
fedfecef MP |
7442 | 2014-06-03 Marek Polacek <polacek@redhat.com> |
7443 | ||
7444 | PR c/60439 | |
7445 | * c.opt (Wswitch-bool): New option. | |
7446 | ||
f6a7cffc TS |
7447 | 2014-05-22 Thomas Schwinge <thomas@codesourcery.com> |
7448 | ||
040d18b6 TS |
7449 | * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl): |
7450 | Remove prototypes. | |
7451 | (record_types_used_by_current_var_decl): Move prototype to where | |
7452 | it belongs. | |
7453 | ||
f6a7cffc TS |
7454 | * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6) |
7455 | (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8) | |
7456 | (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes. | |
7457 | ||
632f2871 RS |
7458 | 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com> |
7459 | ||
7460 | * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete. | |
7461 | * c-common.c (c_common_nodes_and_builtins): Don't initialize | |
7462 | void_zero_node. | |
7463 | * c-pretty-print.c (pp_c_void_constant): New function. | |
7464 | (c_pretty_printer::constant, c_pretty_printer::primary_expression) | |
7465 | (c_pretty_printer::expression): Handle VOID_CST. | |
7466 | * cilk.c (extract_free_variables): Likewise. | |
7467 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift) | |
7468 | (ubsan_instrument_vla): Use void_node instead of void_zero_node. | |
7469 | ||
766090c2 TS |
7470 | 2014-05-17 Trevor Saunders <tsaunders@mozilla.com> |
7471 | ||
7472 | * c-common.h (sorted_fields_type): Remove variable_size GTY attribute. | |
7473 | * c-pragma.c (push_alignment): Adjust. | |
7474 | (handle_pragma_push_options): Likewise. | |
7475 | ||
661a0813 MP |
7476 | 2014-05-09 Marek Polacek <polacek@redhat.com> |
7477 | ||
7478 | PR c/50459 | |
7479 | * c-common.c (check_user_alignment): Return -1 if alignment is error | |
7480 | node. | |
7481 | (handle_aligned_attribute): Don't call default_conversion on | |
7482 | FUNCTION_DECLs. | |
7483 | (handle_vector_size_attribute): Likewise. | |
7484 | (handle_tm_wrap_attribute): Handle case when wrap_decl is error node. | |
7485 | (handle_sentinel_attribute): Call default_conversion and allow even | |
7486 | integral types as an argument. | |
7487 | ||
2793eeab MP |
7488 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
7489 | ||
7490 | PR c/61053 | |
7491 | * c-common.c (min_align_of_type): New function factored out from... | |
7492 | (c_sizeof_or_alignof_type): ...here. | |
7493 | * c-common.h (min_align_of_type): Declare. | |
7494 | ||
f827930a MP |
7495 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
7496 | ||
7497 | PR c/61077 | |
7498 | * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified | |
7499 | parameter type of main. | |
7500 | ||
ca49b74e DD |
7501 | 2014-05-07 DJ Delorie <dj@redhat.com> |
7502 | ||
7503 | * c-cppbuiltin.c (print_bits_of_hex): New. | |
7504 | (builtin_define_type_minmax): Print values using hex so as not to | |
7505 | require a pre-computed list of string values. | |
7506 | ||
1d60af08 KZ |
7507 | 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com> |
7508 | Mike Stump <mikestump@comcast.net> | |
7509 | Richard Sandiford <rdsandiford@googlemail.com> | |
7510 | ||
7511 | * c-ada-spec.c: Include wide-int.h. | |
7512 | (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove. | |
7513 | (dump_generic_ada_node): Use wide-int interfaces. | |
7514 | * c-common.c: Include wide-int-print.h. | |
7515 | (shorten_compare): Use wide-int interfaces and tree_int_cst_lt. | |
7516 | (pointer_int_sum): Use wide-int interfaces. | |
7517 | (c_common_nodes_and_builtins): Use make_int_cst. | |
7518 | (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p. | |
7519 | (handle_alloc_size_attribute): Use wide-int interfaces. | |
7520 | (get_nonnull_operand): Likewise. | |
7521 | * c-format.c (get_constant): Use tree_fits_uhwi_p. | |
7522 | * c-lex.c: Include wide-int.h. | |
7523 | (narrowest_unsigned_type): Take a widest_int rather than two | |
7524 | HOST_WIDE_INTs. | |
7525 | (narrowest_signed_type): Likewise. | |
7526 | (interpret_integer): Update accordingly. Use wide-int interfaces. | |
7527 | (lex_charconst): Use wide-int interfaces. | |
7528 | * c-pretty-print.c: Include wide-int.h. | |
7529 | (pp_c_integer_constant): Use wide-int interfaces. | |
7530 | * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of | |
7531 | INT_CST_LT_UNSIGNED. | |
7532 | ||
b15458be RB |
7533 | 2014-05-06 Richard Biener <rguenther@suse.de> |
7534 | ||
7535 | * c-opts.c (c_common_post_options): For -freestanding, | |
7536 | -fno-hosted and -fno-builtin disable pattern recognition | |
7537 | if not enabled explicitely. | |
7538 | ||
6577374e MP |
7539 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
7540 | ||
7541 | * c.opt (Wsizeof-pointer-memaccess): Describe option. | |
7542 | ||
d00887e8 MP |
7543 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
7544 | ||
7545 | PR c/43245 | |
7546 | * c.opt (Wdiscarded-qualifiers): Add. | |
7547 | ||
f8ed5150 MP |
7548 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
7549 | ||
7550 | * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform | |
7551 | INT_MIN / -1 sanitization only for integer types. | |
7552 | ||
45484dcf MP |
7553 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
7554 | ||
7555 | PR c/18079 | |
7556 | * c-common.c (handle_noinline_attribute): Warn if the attribute | |
7557 | conflicts with always_inline attribute. | |
7558 | (handle_always_inline_attribute): Warn if the attribute conflicts | |
7559 | with noinline attribute. | |
7560 | ||
38e514c0 MP |
7561 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
7562 | ||
7563 | PR c/60156 | |
7564 | * c-common.c (check_main_parameter_types): Warn about variadic main. | |
7565 | ||
44875f92 MS |
7566 | 2014-04-24 Mike Stump <mikestump@comcast.net> |
7567 | ||
7568 | * c.opt (Wshadow-ivar): Default to on. | |
7569 | ||
dcaaa5a0 DP |
7570 | 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com> |
7571 | ||
7572 | * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add. | |
7573 | ||
c07d7c02 MP |
7574 | 2014-04-23 Marek Polacek <polacek@redhat.com> |
7575 | ||
7576 | * c-common.c (handle_tm_wrap_attribute): Tweak error message. | |
7577 | ||
1c33c9b7 JJ |
7578 | 2014-04-22 Jakub Jelinek <jakub@redhat.com> |
7579 | ||
7580 | PR sanitizer/60275 | |
7581 | * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap () | |
7582 | if flag_sanitize_undefined_trap_on_error. | |
7583 | (ubsan_instrument_division, ubsan_instrument_shift, | |
7584 | ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort () | |
7585 | if !flag_sanitize_recover. | |
7586 | ||
793c625f MG |
7587 | 2014-04-22 Marc Glisse <marc.glisse@inria.fr> |
7588 | ||
7589 | PR libstdc++/43622 | |
7590 | * c-common.c (registered_builtin_types): Make non-static. | |
7591 | * c-common.h (registered_builtin_types): Declare. | |
7592 | ||
b0f1bf36 | 7593 | 2014-04-14 Richard Biener <rguenther@suse.de> |
ab20d992 | 7594 | Marc Glisse <marc.glisse@inria.fr> |
b0f1bf36 RB |
7595 | |
7596 | PR c/60819 | |
7597 | * c-common.c (convert_vector_to_pointer_for_subscript): Properly | |
7598 | apply may-alias the scalar pointer type when applicable. | |
7599 | ||
3b07fa4a IZ |
7600 | 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com> |
7601 | ||
7602 | PR middle-end/60467 | |
7603 | * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL | |
7604 | as possible argument for Cilk_spawn. | |
7605 | ||
cbbd2b1c TB |
7606 | 2014-04-11 Tobias Burnus <burnus@net-b.de> |
7607 | ||
7608 | PR c/60194 | |
7609 | * c.opt (Wformat-signedness): Add | |
7610 | * c-format.c(check_format_types): Use it. | |
7611 | ||
6415bd5d JM |
7612 | 2014-04-11 Jason Merrill <jason@redhat.com> |
7613 | ||
7614 | PR c++/57926 | |
7615 | * c-common.c (sync_resolve_size, get_atomic_generic_size): Call | |
7616 | default_conversion for an array argument. | |
7617 | ||
6525783a MP |
7618 | 2014-04-08 Marek Polacek <polacek@redhat.com> |
7619 | ||
7620 | PR sanitizer/60745 | |
7621 | * c-ubsan.c: Include asan.h. | |
7622 | (ubsan_instrument_return): Call initialize_sanitizer_builtins. | |
7623 | ||
880a467b NS |
7624 | 2014-04-03 Nathan Sidwell <nathan@codesourcery.com> |
7625 | ||
7626 | * c.opt (Wnon-virtual-dtor): Auto set when Weffc++. | |
7627 | ||
7b59ff2d MP |
7628 | 2014-04-02 Marek Polacek <polacek@redhat.com> |
7629 | ||
7630 | * c-common.h (c_expand_expr): Remove declaration. | |
7631 | ||
8edbfaa6 JJ |
7632 | 2014-03-28 Jakub Jelinek <jakub@redhat.com> |
7633 | ||
7634 | PR c++/60689 | |
7635 | * c-common.c (add_atomic_size_parameter): When creating new | |
7636 | params vector, push the size argument first. | |
7637 | ||
07d72e1d JJ |
7638 | 2014-03-26 Jakub Jelinek <jakub@redhat.com> |
7639 | ||
7640 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift, | |
7641 | ubsan_instrument_vla, ubsan_instrument_return): Adjust | |
7642 | ubsan_create_data callers. | |
7643 | ||
b35e0fa0 JJ |
7644 | 2014-03-22 Jakub Jelinek <jakub@redhat.com> |
7645 | ||
7646 | PR debug/60603 | |
7647 | * c-opts.c (c_finish_options): Restore cb_file_change call to | |
7648 | <built-in>. | |
7649 | ||
39a1ebb3 JJ |
7650 | 2014-03-13 Jakub Jelinek <jakub@redhat.com> |
7651 | ||
7652 | PR middle-end/36282 | |
7653 | * c-pragma.c (apply_pragma_weak): Only look at | |
7654 | TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if | |
7655 | DECL_ASSEMBLER_NAME_SET_P (decl). | |
7656 | (maybe_apply_pending_pragma_weaks): Exit early if | |
7657 | vec_safe_is_empty (pending_weaks) rather than only when | |
7658 | !pending_weaks. | |
7659 | (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P, | |
7660 | set assembler name back to NULL afterwards. | |
7661 | ||
a07f6ed2 JM |
7662 | 2014-03-11 Jason Merrill <jason@redhat.com> |
7663 | ||
7664 | * c.opt: Add -std=gnu++14. | |
7665 | ||
75b107f5 IB |
7666 | 2014-03-11 Ian Bolton <ian.bolton@arm.com> |
7667 | ||
7668 | * c-opts.c (c_common_post_options): Don't override | |
7669 | -ffp-contract=fast if unsafe-math-optimizations is on. | |
7670 | ||
f42c637e PM |
7671 | 2014-03-08 Paulo Matos <paulo@matos-sorge.com> |
7672 | ||
22b15758 | 7673 | * c.opt: Enable LTO FE for fshort-double. |
f42c637e | 7674 | |
70e24808 JM |
7675 | 2014-03-07 Jason Merrill <jason@redhat.com> |
7676 | ||
7677 | * c.opt: Add -std=c++14. | |
7678 | ||
3af9c5e9 MP |
7679 | 2014-03-06 Marek Polacek <polacek@redhat.com> |
7680 | ||
7681 | PR c/60197 | |
7682 | * cilk.c (contains_cilk_spawn_stmt): New function. | |
7683 | (contains_cilk_spawn_stmt_walker): Likewise. | |
7684 | (recognize_spawn): Give error on invalid use of _Cilk_spawn. | |
7685 | * c-common.h (contains_cilk_spawn_stmt): Add declaration. | |
7686 | ||
b3bdf019 JJ |
7687 | 2014-03-03 Jakub Jelinek <jakub@redhat.com> |
7688 | ||
7689 | * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD. | |
7690 | (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD | |
7691 | even when flag_preprocess_only. | |
7692 | ||
ca7e759d JM |
7693 | 2014-02-26 Jason Merrill <jason@redhat.com> |
7694 | ||
7695 | PR c++/59231 | |
7696 | PR c++/11586 | |
7697 | * c-common.c (shorten_compare): Don't check | |
7698 | c_inhibit_evaluation_warnings. | |
7699 | ||
28e41874 JJ |
7700 | 2014-02-19 Jakub Jelinek <jakub@redhat.com> |
7701 | ||
cca615af JJ |
7702 | PR c/37743 |
7703 | * c-common.c (c_common_nodes_and_builtins): When initializing | |
7704 | c_uint{16,32,64}_type_node, also set corresponding | |
7705 | uint{16,32,64}_type_node to the same value. | |
7706 | ||
28e41874 JJ |
7707 | PR c++/60267 |
7708 | * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma | |
7709 | for PRAGMA_IVDEP if flag_preprocess_only. | |
7710 | ||
c2bf53a1 JJ |
7711 | 2014-02-12 Jakub Jelinek <jakub@redhat.com> |
7712 | ||
7713 | PR c/60101 | |
7714 | * c-common.c (merge_tlist): If copy is true, call new_tlist, | |
7715 | if false, add ADD itself, rather than vice versa. | |
7716 | (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero | |
7717 | copy. For SAVE_EXPR, only call merge_tlist once. | |
7718 | ||
8fcbce72 JJ |
7719 | 2014-02-08 Jakub Jelinek <jakub@redhat.com> |
7720 | ||
7721 | PR middle-end/60092 | |
7722 | * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p | |
7723 | and tree_to_uhwi. | |
7724 | (handle_alloc_align_attribute, handle_assume_aligned_attribute): New | |
7725 | functions. | |
7726 | (c_common_attribute_table): Add alloc_align and assume_aligned | |
7727 | attributes. | |
7728 | ||
0a756a3f MP |
7729 | 2014-02-06 Marek Polacek <polacek@redhat.com> |
7730 | ||
7731 | PR c/60087 | |
7732 | * c-common.c (warn_for_sign_compare): Call warning_at with location | |
7733 | instead of warning. | |
7734 | ||
7ec4847a MP |
7735 | 2014-02-05 Marek Polacek <polacek@redhat.com> |
7736 | ||
7737 | PR c/53123 | |
7738 | * c-omp.c (c_finish_omp_atomic): Remove unreachable return | |
7739 | statement. | |
7740 | ||
66f20604 MP |
7741 | 2014-02-04 Marek Polacek <polacek@redhat.com> |
7742 | ||
7743 | PR c/60036 | |
7744 | * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or | |
7745 | SAVE_EXPR. | |
7746 | ||
5d77fb19 MG |
7747 | 2014-02-03 Marc Glisse <marc.glisse@inria.fr> |
7748 | ||
7749 | PR c++/53017 | |
7750 | PR c++/59211 | |
7751 | * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute, | |
7752 | handle_vector_size_attribute, handle_nonnull_attribute): Call | |
7753 | default_conversion on the attribute argument. | |
7754 | (handle_nonnull_attribute): Increment the argument number. | |
7755 | ||
81e5eca8 MP |
7756 | 2014-01-31 Marek Polacek <polacek@redhat.com> |
7757 | ||
7758 | PR c/59963 | |
7759 | * c-common.c (add_atomic_size_parameter): Pass vNULL to | |
7760 | build_function_call_vec. | |
7761 | (resolve_overloaded_builtin): Likewise. | |
7762 | * c-common.h (build_function_call_vec): Adjust declaration. | |
7763 | ||
68fca595 MP |
7764 | 2014-01-30 Marek Polacek <polacek@redhat.com> |
7765 | ||
7766 | PR c/59940 | |
7767 | * c-common.h (unsafe_conversion_p): Adjust declaration. | |
7768 | (warnings_for_convert_and_check): Likewise. | |
7769 | (convert_and_check): Likewise. | |
7770 | * c-common.c (unsafe_conversion_p): Add location parameter. Call | |
7771 | expansion_point_location_if_in_system_header on it. | |
7772 | (warnings_for_convert_and_check): Add location parameter. Call | |
7773 | expansion_point_location_if_in_system_header on it. Use it. | |
7774 | (convert_and_check): Add location parameter. Use it. | |
7775 | (conversion_warning): Likewise. | |
7776 | (c_add_case_label): Adjust convert_and_check calls. | |
7777 | (scalar_to_vector): Adjust unsafe_conversion_p calls. | |
7778 | ||
b72271b9 BI |
7779 | 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7780 | ||
7781 | * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with | |
7782 | flag_cilkplus. | |
7783 | * c-pragma.c (init_pragma): Likewise. | |
7784 | * c.opt: Likewise. | |
7785 | ||
393e8e8b MP |
7786 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
7787 | ||
7788 | PR c/59846 | |
7789 | * c-common.c (shorten_compare): Add location_t parameter. | |
7790 | * c-common.h (shorten_binary_op): Adjust declaration. | |
7791 | ||
f04dda30 MP |
7792 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
7793 | ||
7794 | PR c/58346 | |
7795 | * c-common.c (pointer_to_zero_sized_aggr_p): New function. | |
7796 | * c-common.h: Declare it. | |
7797 | ||
621955cb EB |
7798 | 2014-01-20 Eric Botcazou <ebotcazou@adacore.com> |
7799 | ||
7800 | * c-ada-spec.h (dump_ada_specs): Revert prototype change. | |
7801 | * c-ada-spec.c (dump_ads): Likewise. | |
7802 | (cpp_check): Likewise. | |
7803 | (dump_ada_specs): Likewise. | |
7804 | ||
7805 | 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com> | |
67bf2939 LA |
7806 | |
7807 | PR c++/49718 | |
7808 | * c-common.c (handle_no_instrument_function_attribute): Allow | |
7809 | no_instrument_function attribute in class member | |
7810 | definition/declaration. | |
7811 | ||
241f845a JJ |
7812 | 2014-01-15 Jakub Jelinek <jakub@redhat.com> |
7813 | ||
7814 | PR c/58943 | |
7815 | * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around | |
7816 | build_modify_expr with non-NOP_EXPR opcode. Handle return from it | |
7817 | being COMPOUND_EXPR. | |
7818 | (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first | |
7819 | operand a SAVE_EXPR and second MODIFY_EXPR. | |
7820 | ||
e83b8e2e JJ |
7821 | 2014-01-09 Jakub Jelinek <jakub@redhat.com> |
7822 | ||
7823 | PR target/58115 | |
7824 | * c-pch.c (c_common_write_pch): Call | |
7825 | prepare_target_option_nodes_for_pch. | |
7826 | ||
23a5b65a RS |
7827 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
7828 | ||
7829 | Update copyright years | |
7830 | ||
f9030485 RS |
7831 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
7832 | ||
7833 | * array-notation-common.c, c-cilkplus.c: Use the standard form for | |
7834 | the copyright notice. | |
7835 | ||
f2aa696b EB |
7836 | 2013-12-28 Eric Botcazou <ebotcazou@adacore.com> |
7837 | ||
7838 | * c-ada-spec.c (print_constructor): New function. | |
7839 | (print_destructor): Retrieve the origin of the destructor. | |
7840 | (print_ada_declaration): Revamp handling of constructors/destructors. | |
7841 | ||
3f8257db | 7842 | 2013-12-23 Stuart Hastings <stuart@apple.com> |
1f26ac87 JM |
7843 | Bill Maddox <maddox@google.com> |
7844 | Jason Merrill <jason@redhat.com> | |
7845 | ||
7846 | * c.opt: Add -fdeclone-ctor-dtor. | |
7847 | * c-opts.c (c_common_post_options): Default to on iff -Os. | |
7848 | ||
41958c28 BI |
7849 | 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7850 | ||
7851 | * c-common.c (c_common_attribute_table): Added "cilk simd function" | |
7852 | attribute. | |
7853 | * c-pragma.h (enum pragma_cilk_clause): Remove. | |
ab20d992 | 7854 | (enum pragma_omp_clause): Added the following fields: |
41958c28 BI |
7855 | PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK, |
7856 | PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE, | |
7857 | PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE, | |
7858 | PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE, | |
7859 | PRAGMA_CILK_CLAUSE_UNIFORM. | |
7860 | ||
b1726d6c | 7861 | |
12893402 BI |
7862 | 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7863 | ||
7864 | * cilk.c (cilk_outline): Made this function non-static. | |
7865 | (gimplify_cilk_spawn): Removed pre_p and post_p arguments. | |
7866 | (create_cilk_wrapper): Added a new parameter: a function pointer. | |
7867 | (c_install_body_w_frame_cleanup): Remove | |
7868 | (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case. | |
7869 | * c-common.h (cilk_outline): New prototype. | |
7870 | (gimplify_cilk_spawn): Removed two parameters. | |
7871 | (cilk_install_body_with_frame_cleanup): New prototype. | |
7872 | * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and | |
7873 | CILK_SPAWN_STMT case. | |
7874 | ||
085b42ed BS |
7875 | 2013-12-11 Bernd Schmidt <bernds@codesourcery.com> |
7876 | ||
2ce064c3 BS |
7877 | * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR. |
7878 | ||
085b42ed BS |
7879 | * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE. |
7880 | (int_array_type_node): Remove. | |
7881 | * c-common.c (c_common_nodes_and_builtins): Don't build it. | |
7882 | ||
9e36c9ed MP |
7883 | 2013-12-05 Marek Polacek <polacek@redhat.com> |
7884 | ||
7885 | PR c/52023 | |
7886 | * c-common.c (c_sizeof_or_alignof_type): Move a declaration into | |
7887 | [ADJUST_FIELD_ALIGN]. | |
7888 | ||
296674db JM |
7889 | 2013-12-04 Joseph Myers <joseph@codesourcery.com> |
7890 | ||
7891 | PR c/52023 | |
7892 | * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof | |
7893 | and check field alignment if set. | |
7894 | * c-common.h (c_sizeof_or_alignof_type): Update prototype. | |
7895 | (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type. | |
7896 | ||
b1726d6c | 7897 | 2013-12-04 Jakub Jelinek <jakub@redhat.com> |
31e071ae MP |
7898 | Marek Polacek <polacek@redhat.com> |
7899 | ||
7900 | * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow | |
7901 | sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS. | |
7902 | ||
d7947e19 L |
7903 | 2013-11-29 H.J. Lu <hongjiu.lu@intel.com> |
7904 | ||
7905 | PR c/59309 | |
7906 | * cilk.c (gimplify_cilk_spawn): Properly handle function without | |
7907 | arguments. | |
7908 | ||
fad7652e JJ |
7909 | 2013-11-29 Jakub Jelinek <jakub@redhat.com> |
7910 | ||
7911 | PR c/59280 | |
7912 | * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE, | |
7913 | goto invalid. If it is error_mark_node, don't issue further | |
7914 | diagnostics. | |
7915 | ||
8b5e1202 SO |
7916 | 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com> |
7917 | ||
7918 | * c.opt (Wopenmp-simd): New. | |
7919 | ||
0a508bb6 JJ |
7920 | 2013-11-22 Jakub Jelinek <jakub@redhat.com> |
7921 | ||
7922 | * c-ubsan.h (ubsan_instrument_return): New prototype. | |
7923 | * c-ubsan.c (ubsan_instrument_return): New function. | |
7924 | ||
2fb9a547 AM |
7925 | 2013-11-22 Andrew MacLeod <amacleod@redhat.com> |
7926 | ||
7927 | * c-common.c: Add required include files from gimple.h. | |
ab20d992 JJ |
7928 | * c-gimplify.c: Likewise. |
7929 | * cilk.c: Likewise. | |
2fb9a547 | 7930 | |
8400e75e DM |
7931 | 2013-11-22 David Malcolm <dmalcolm@redhat.com> |
7932 | ||
7933 | * c-common.c (unsafe_conversion_p): Remove use of | |
7934 | EXPR_LOC_OR_HERE macro. | |
7935 | (conversion_warning): Likewise. | |
7936 | (warnings_for_convert_and_check): Likewise. | |
7937 | (warn_for_collisions_1): Likewise. | |
7938 | (shorten_compare): Likewise, and remove use of in_system_header | |
7939 | macro, using the location from the former. | |
7940 | * c-lex.c (dump_one_header): Remove use of input_filename macro. | |
7941 | (cb_def_pragma): Remove use of in_system_header macro. | |
7942 | (lex_string): Likewise. | |
7943 | * c-pragma.c (handle_pragma_float_const_decimal64): Likewise. | |
7944 | ||
eb1ce453 KZ |
7945 | 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com> |
7946 | Mike Stump <mikestump@comcast.net> | |
7947 | Richard Sandiford <rdsandiford@googlemail.com> | |
7948 | ||
7949 | * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi | |
7950 | instead of TREE_INT_CST_LOW, in cases where there is a protecting | |
7951 | tree_fits_shwi_p or tree_fits_uhwi_p. | |
7952 | (dump_generic_ada_node): Likewise. | |
7953 | * c-format.c (check_format_arg): Likewise. | |
7954 | * c-pretty-print.c (pp_c_integer_constant): Likewise. | |
7955 | ||
6b3b8c27 KZ |
7956 | 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com> |
7957 | ||
7958 | * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi. | |
7959 | ||
49b0aa18 JC |
7960 | 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com> |
7961 | ||
7962 | PR c/53001 | |
7963 | * c-common.c (unsafe_conversion_p): Make this function | |
7964 | return an enumeration with more detail. | |
7965 | (conversion_warning): Use the new return type of | |
7966 | unsafe_conversion_p to separately warn either about conversions | |
7967 | that lower floating point number precision or about the other | |
7968 | kinds of conversions. | |
7969 | * c-common.h (enum conversion_safety): New enumeration. | |
8e745a17 JJ |
7970 | (unsafe_conversion_p): switching return type to |
7971 | conversion_safety enumeration. | |
49b0aa18 JC |
7972 | * c.opt: Adding new warning -Wfloat-conversion and |
7973 | enabling it with -Wconversion. | |
7974 | ||
b826515a BS |
7975 | 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net> |
7976 | ||
8e745a17 JJ |
7977 | * c-opts.c: Include plugin.h. |
7978 | (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE. | |
b826515a | 7979 | |
b9a55b13 MP |
7980 | 2013-11-19 Marek Polacek <polacek@redhat.com> |
7981 | ||
7982 | * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data | |
7983 | call. | |
7984 | (ubsan_instrument_shift): Likewise. | |
7985 | (ubsan_instrument_vla): Likewise. | |
7986 | ||
7d362f6c RS |
7987 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
7988 | ||
7989 | * c-common.c (convert_vector_to_pointer_for_subscript): Remove | |
7990 | cast to unsigned type. | |
7991 | ||
386b1f1f RS |
7992 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
7993 | ||
7994 | * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than | |
7995 | tree_low_cst. | |
7996 | (complete_array_type): Update comment to refer to tree_to_[su]hwi | |
7997 | rather than tree_low_cst. | |
7998 | ||
ae7e9ddd RS |
7999 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
8000 | ||
8001 | * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with | |
8002 | tree_to_uhwi throughout. | |
8003 | ||
9439e9a1 RS |
8004 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
8005 | ||
8006 | * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace | |
8007 | tree_low_cst (..., 0) with tree_to_shwi throughout. | |
8008 | ||
cc269bb6 RS |
8009 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
8010 | ||
8011 | * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace | |
8012 | host_integerp (..., 1) with tree_fits_uhwi_p throughout. | |
8013 | ||
9541ffee RS |
8014 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
8015 | ||
8016 | * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace | |
8017 | host_integerp (..., 0) with tree_fits_shwi_p throughout. | |
8018 | ||
c02065fc AH |
8019 | 2013-11-15 Aldy Hernandez <aldyh@redhat.com> |
8020 | ||
8021 | * c-cilkplus.c: New file. | |
8022 | * c-common.c (readonly_error): Add location argument. | |
8023 | * c-common.h (readonly_error): Same. | |
8024 | (c_finish_cilk_clauses): Protoize. | |
8025 | (c_check_cilk_loop): Same. | |
8026 | c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes. | |
8027 | Do not fail on error_mark_node. | |
8028 | Abstract increment canonicalization to here... | |
8029 | (c_omp_for_incr_canonicalize_ptr): New. | |
8030 | c-pragma.c (init_pragma): Register "simd" pragma. | |
8031 | c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD. | |
8032 | (enum pragma_cilk_clause): New. | |
8033 | ||
9cc65f15 RS |
8034 | 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com> |
8035 | ||
8036 | * c-pretty-print.c (pp_c_character_constant): Remove unnecessary | |
8037 | wchar_type and host_integerp checks. | |
8038 | ||
18f429e2 AM |
8039 | 2013-11-14 Andrew MacLeod <amacleod@redhat.com> |
8040 | ||
8041 | * c-common.c: Likewise. | |
8042 | * c-gimplify.c: Likewise. | |
8043 | * cilk.c: Likewise. | |
8044 | ||
d8a2d370 DN |
8045 | 2013-11-14 Diego Novillo <dnovillo@google.com> |
8046 | ||
8047 | * c-common.c: Include fold-const.h. | |
8048 | Include stor-layout.h. | |
8049 | Include calls.h. | |
8050 | Include stringpool.h. | |
8051 | Include attribs.h. | |
8052 | Include varasm.h. | |
8053 | Include trans-mem.h. | |
8054 | * c-cppbuiltin.c: Include stor-layout.h. | |
8055 | Include stringpool.h. | |
8056 | * c-format.c: Include stringpool.h. | |
8057 | * c-lex.c: Include stringpool.h. | |
8058 | Include stor-layout.h. | |
8059 | * c-pragma.c: Include stringpool.h. | |
8060 | Include attribs.h. | |
8061 | Include varasm.h. | |
8062 | Include gcc-symtab.h. | |
8063 | * c-pretty-print.c: Include stor-layout.h. | |
8064 | Include attribs.h. | |
8065 | * cilk.c: Include stringpool.h. | |
8066 | Include calls.h. | |
8067 | ||
38b7bc7f JM |
8068 | 2013-11-13 Joseph Myers <joseph@codesourcery.com> |
8069 | ||
8070 | * c-common.h (enum rid): Add RID_AUTO_TYPE. | |
8071 | * c-common.c (c_common_reswords): Add __auto_type. | |
8072 | (keyword_begins_type_specifier): Handle RID_AUTO_TYPE. | |
8073 | ||
45b0be94 AM |
8074 | 2013-11-12 Andrew MacLeod <amacleod@redhat.com> |
8075 | ||
18f429e2 AM |
8076 | * c-common.c: Include gimplify.h. |
8077 | * c-gimplify.c: Likewise. | |
8078 | * cilk.c: Likewise. | |
8079 | * c-omp.c: Include gimple-expr.h instead of gimple.h. | |
8080 | * c-ubsan.c: Don't include gimple.h. | |
45b0be94 | 8081 | |
582d9b50 JM |
8082 | 2013-11-12 Joseph Myers <joseph@codesourcery.com> |
8083 | ||
8084 | * c-common.c (c_common_reswords): Add _Thread_local. | |
8085 | ||
6b28e197 JM |
8086 | 2013-11-09 Joseph Myers <joseph@codesourcery.com> |
8087 | ||
8088 | * c-common.c (atomic_size_supported_p): New function. | |
8089 | (resolve_overloaded_atomic_exchange) | |
8090 | (resolve_overloaded_atomic_compare_exchange) | |
8091 | (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): | |
8092 | Use it instead of comparing size with a local list of sizes. | |
8093 | ||
267bac10 JM |
8094 | 2013-11-07 Andrew MacLeod <amacleod@redhat.com> |
8095 | Joseph Myers <joseph@codesourcery.com> | |
8096 | ||
8097 | * c-common.h (enum rid): Add RID_ATOMIC. | |
8098 | * c-common.c (c_common_reswords): Add _Atomic. | |
8099 | (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument. | |
8100 | (keyword_is_type_qualifier): Accept RID_ATOMIC. | |
8101 | * c-format.c (check_format_types): Check for extra _Atomic | |
8102 | qualifiers in format argument. | |
8103 | * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier. | |
8104 | (pp_c_type_qualifier_list): Mention _Atomic in comment. | |
8105 | ||
5157b91e TB |
8106 | 2013-11-06 Tobias Burnus <burnus@net-b.de> |
8107 | ||
8108 | * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME. | |
8109 | ||
6dbe0958 JM |
8110 | 2013-11-06 Joseph Myers <joseph@codesourcery.com> |
8111 | ||
8112 | * c-opts.c (c_common_post_options): Set -ffp-contract=off in C | |
8113 | standards modes. | |
8114 | * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast | |
8115 | to mean lack of IEEE 754 support. | |
8116 | ||
e8ff5196 TB |
8117 | 2013-11-05 Tobias Burnus <burnus@net-b.de> |
8118 | ||
8119 | * c.opt (-Wdate-time): New option | |
8120 | * c-opts.c (sanitize_cpp_opts): Pass on to libcpp. | |
8121 | ||
254a0760 JM |
8122 | 2013-11-05 Joseph Myers <joseph@codesourcery.com> |
8123 | ||
8124 | * c-cppbuiltin.c (cpp_iec_559_value): Test | |
8125 | flag_excess_precision_cmdline not flag_excess_precision. | |
8126 | ||
6d7f7e0a TB |
8127 | 2013-11-05 Tobias Burnus <burnus@net-b.de> |
8128 | ||
8129 | * c.opt (fopenmp-simd): New option. | |
8130 | * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ... | |
8131 | (omp_pragmas): ... this new struct. | |
8132 | (c_pp_lookup_pragma): Also walk omp_pragmas. | |
8133 | (init_pragma): Init pragmas for -fopenmp-simd. | |
8134 | ||
55a7f02f MP |
8135 | 2013-11-04 Marek Polacek <polacek@redhat.com> |
8136 | ||
8137 | PR c++/58979 | |
8138 | * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case. | |
8139 | ||
9193fb05 JM |
8140 | 2013-11-04 Joseph Myers <joseph@codesourcery.com> |
8141 | ||
8142 | * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value): | |
8143 | New functions. | |
8144 | (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX. | |
8145 | ||
94159ecf EB |
8146 | 2013-11-04 Eric Botcazou <ebotcazou@adacore.com> |
8147 | ||
8148 | * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL. | |
8149 | (dump_ada_specs): Adjust prototype of second callback. | |
8150 | * c-ada-spec.c (cpp_check): New global variable. | |
8151 | (dump_ada_nodes): Remove cpp_check parameter and do not pass it down. | |
8152 | (print_generic_ada_decl): Likewise. | |
8153 | (has_static_fields): Change return type to bool and add guard. | |
8154 | (has_nontrivial_methods): New predicate. | |
8155 | (is_tagged_type): Change return type to bool. | |
8156 | (separate_class_package): Call has_nontrivial_methods. | |
8157 | (pp_ada_tree_identifier): Minor tweaks. | |
8158 | (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node. | |
8159 | (dump_ada_array_domains): Likewise. | |
8160 | (dump_ada_array_type): Likewise. | |
8161 | (dump_template_types): Remove cpp_check parameter and do not pass it to | |
8162 | dump_generic_ada_node. | |
8163 | (dump_ada_template): Likewise. | |
8164 | (dump_generic_ada_node): Remove cpp_check parameter and do not pass it | |
8165 | recursively. | |
8166 | (print_ada_methods): Change return type to integer. Remove cpp_check | |
8167 | parameter and do not pass it down. | |
8168 | (dump_nested_types): Remove cpp_check parameter and do not pass it to | |
8169 | dump_generic_ada_node. | |
8170 | (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before | |
8171 | accessing methods. | |
8172 | (print_ada_struct_decl): Remove cpp_check parameter and do not pass it | |
8173 | down. Use has_nontrivial_methods to recognize C++ classes. Use return | |
8174 | value of print_ada_methods. | |
8175 | (dump_ads): Rename cpp_check parameter to check and adjust prototype. | |
8176 | Set cpp_check to it before invoking dump_ada_nodes. | |
8177 | (dump_ada_specs): Likewise. | |
8178 | ||
b906f4ca MP |
8179 | 2013-11-03 Marek Polacek <polacek@redhat.com> |
8180 | ||
8181 | * c-ubsan.c: Don't include hash-table.h. | |
8182 | (ubsan_instrument_vla): New function. | |
8183 | * c-ubsan.h: Declare it. | |
8184 | ||
5e20cdc9 DM |
8185 | 2013-10-31 David Malcolm <dmalcolm@redhat.com> |
8186 | ||
8187 | Automated part of renaming of symtab_node_base to symtab_node. | |
8188 | ||
8189 | Patch autogenerated by rename_symtab.py from | |
8190 | https://github.com/davidmalcolm/gcc-refactoring-scripts | |
8191 | revision 58bb219cc090b2f4516a9297d868c245495ee622 | |
8192 | ||
8193 | * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename | |
8194 | symtab_node_base to symtab_node. | |
8195 | ||
7057e645 ESR |
8196 | 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net> |
8197 | ||
8e745a17 | 8198 | Implement C++14 digit separators. |
7057e645 ESR |
8199 | * c-lex.c (interpret_float): Remove digit separators from scratch string |
8200 | before building real literal. | |
8201 | ||
193ea7bc JJ |
8202 | 2013-10-30 Jakub Jelinek <jakub@redhat.com> |
8203 | ||
8204 | * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC. | |
8205 | ||
939b37da BI |
8206 | 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com> |
8207 | ||
8208 | * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync | |
8209 | fields. | |
8210 | (c_define_builtins): Called cilk_init_builtins if Cilk Plus is | |
8211 | enabled. | |
8212 | * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC. | |
8213 | (insert_cilk_frame): New prototype. | |
8214 | (cilk_init_builtins): Likewise. | |
8215 | (gimplify_cilk_spawn): Likewise. | |
8216 | (c_cilk_install_body_w_frame_cleanup): Likewise. | |
8217 | (cilk_detect_spawn_and_unwrap): Likewise. | |
8218 | (cilk_set_spawn_marker): Likewise. | |
8219 | (build_cilk_sync): Likewise. | |
8220 | (build_cilk_spawn): Likewise. | |
8221 | * cilk.c: New file. | |
8222 | ||
67348ccc DM |
8223 | 2013-10-29 David Malcolm <dmalcolm@redhat.com> |
8224 | ||
8225 | Patch autogenerated by refactor_symtab.py from | |
8226 | https://github.com/davidmalcolm/gcc-refactoring-scripts | |
8227 | revision 58bb219cc090b2f4516a9297d868c245495ee622 | |
8228 | ||
8229 | * c-gimplify.c (c_genericize): Update for conversion of symtab types | |
8230 | to a true class hierarchy. | |
8231 | * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise. | |
8232 | ||
d570872d RS |
8233 | 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com> |
8234 | ||
8235 | * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend. | |
8236 | ||
98906124 JL |
8237 | 2013-10-26 Jeff Law <law@redhat.com> |
8238 | ||
adfac8df JJ |
8239 | * c-common.c (c_define_builtins): Remove mudflap support. |
8240 | * c.opt: Ignore and warn for mudflap options. | |
98906124 | 8241 | |
d73749df | 8242 | 2013-10-24 Tobias Burnus <burnus@net-b.de> |
8170608b TB |
8243 | |
8244 | PR other/33426 | |
8245 | * c-pragma.c (init_pragma) Add #pragma ivdep handling. | |
8246 | * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP. | |
8247 | ||
3f04b1bb JM |
8248 | 2013-10-23 Jason Merrill <jason@redhat.com> |
8249 | ||
8250 | * c-format.c (gcc_cxxdiag_char_table): Add %X. | |
8251 | ||
acf0174b JJ |
8252 | 2013-10-11 Jakub Jelinek <jakub@redhat.com> |
8253 | ||
acd15a28 JJ |
8254 | * c-common.h (omp_clause_mask::operator !=): New method. |
8255 | * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0) | |
8256 | instead of if (mask & something) tests everywhere. | |
8257 | ||
acf0174b JJ |
8258 | * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to |
8259 | 201307 instead of 201107. | |
8260 | * c-common.c (DEF_FUNCTION_TYPE_8): Define. | |
8261 | (c_common_attribute_table): Add "omp declare target" and | |
8262 | "omp declare simd" attributes. | |
8263 | (handle_omp_declare_target_attribute, | |
8264 | handle_omp_declare_simd_attribute): New functions. | |
8265 | * c-omp.c: Include c-pragma.h. | |
8266 | (c_finish_omp_taskgroup): New function. | |
8267 | (c_finish_omp_atomic): Add swapped argument, if true, | |
8268 | build the operation first with rhs, lhs arguments and use NOP_EXPR | |
8269 | build_modify_expr. | |
8270 | (c_finish_omp_for): Add code argument, pass it down to make_code. | |
8271 | (c_omp_split_clauses): New function. | |
8272 | (c_split_parallel_clauses): Removed. | |
8273 | (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers, | |
8274 | c_omp_declare_simd_clauses_to_decls): New functions. | |
8275 | * c-common.h (omp_clause_mask): New type. | |
8276 | (OMP_CLAUSE_MASK_1): Define. | |
8277 | (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=, | |
8278 | omp_clause_mask::operator |=, omp_clause_mask::operator ~, | |
8279 | omp_clause_mask::operator |, omp_clause_mask::operator &, | |
8280 | omp_clause_mask::operator <<, omp_clause_mask::operator >>, | |
8281 | omp_clause_mask::operator ==): New methods. | |
8282 | (enum c_omp_clause_split): New. | |
8283 | (c_finish_omp_taskgroup): New prototype. | |
8284 | (c_finish_omp_atomic): Add swapped argument. | |
8285 | (c_finish_omp_for): Add code argument. | |
8286 | (c_omp_split_clauses): New prototype. | |
8287 | (c_split_parallel_clauses): Removed. | |
8288 | (c_omp_declare_simd_clauses_to_numbers, | |
8289 | c_omp_declare_simd_clauses_to_decls): New prototypes. | |
8290 | * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs. | |
8291 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL, | |
8292 | PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION, | |
8293 | PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD, | |
8294 | PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS. | |
8295 | Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS. | |
8296 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED, | |
8297 | PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE, | |
8298 | PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR, | |
8299 | PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH, | |
8300 | PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP, | |
8301 | PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS, | |
8302 | PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND, | |
8303 | PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS, | |
8304 | PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP, | |
8305 | PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and | |
8306 | PRAGMA_OMP_CLAUSE_UNIFORM. | |
8307 | ||
826cacfe MG |
8308 | 2013-10-09 Marc Glisse <marc.glisse@inria.fr> |
8309 | ||
8310 | PR tree-optimization/20318 | |
8311 | * c-common.c (handle_returns_nonnull_attribute): New function. | |
8312 | (c_common_attribute_table): Add returns_nonnull. | |
8313 | ||
2284b034 MG |
8314 | 2013-10-03 Marc Glisse <marc.glisse@inria.fr> |
8315 | ||
8316 | PR c++/19476 | |
8317 | * c.opt (fcheck-new): Move to common.opt. | |
8318 | ||
b56e9788 MP |
8319 | 2013-09-25 Marek Polacek <polacek@redhat.com> |
8320 | Jakub Jelinek <jakub@redhat.com> | |
8321 | ||
8322 | PR sanitizer/58413 | |
8323 | * c-ubsan.c (ubsan_instrument_shift): Don't instrument | |
8324 | an expression if we can prove it is correct. | |
8325 | (ubsan_instrument_division): Likewise. Remove unnecessary | |
8326 | check. | |
8327 | ||
ce6923c5 MP |
8328 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
8329 | ||
8330 | PR sanitizer/58411 | |
8331 | * c-common.c (handle_no_sanitize_undefined_attribute): New function. | |
8332 | Declare it. | |
8333 | (struct attribute_spec c_common_att): Add no_sanitize_undefined. | |
8334 | ||
fb5610fb IS |
8335 | 2013-09-14 Iain Sandoe <iain@codesourcery.com> |
8336 | ||
8337 | PR target/48094 | |
8338 | * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version, | |
8339 | fobjc-gc, freplace-objc-classes): Accept for LTO. | |
8340 | ||
88b0e79e JC |
8341 | 2013-09-13 Jacek Caban <jacek@codeweavers.com> |
8342 | ||
8343 | * c-target.def: New hook | |
8344 | ||
c9b0866a PC |
8345 | 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com> |
8346 | ||
8347 | PR c++/43452 | |
8348 | * c.opt (Wdelete-incomplete): Add. | |
8349 | ||
0af94e6f JR |
8350 | 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com> |
8351 | ||
8352 | * c-common.c (same_scalar_type_ignoring_signedness): Delete. | |
8353 | (vector_types_compatible_elements_p): New function. | |
8354 | * c-common.h: (same_scalar_type_ignoring_signedness): Delete | |
8355 | declaration. | |
8356 | (vector_types_compatible_elements_p): Declare. | |
8357 | ||
7c26172c GDR |
8358 | 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
8359 | ||
8360 | * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now | |
8361 | a virtual member function. | |
8362 | (pp_simple_type_specifier): Remove. | |
8363 | (pp_c_type_specifier): Likewise. | |
8364 | * c-pretty-print.c (c_pretty_printer::simple_type_specifier): | |
8365 | Rename from pp_c_type_specifier. Adjust. | |
8366 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
8367 | simple_type_specifier. | |
8368 | ||
20059c8b GDR |
8369 | 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
8370 | ||
8371 | * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual | |
8372 | member function. | |
8373 | (c_pretty_printer::storage_class_specifier): Likewise. | |
8374 | (c_pretty_printer::initializer): Likewise. | |
8375 | (pp_declaration): Remove. | |
8376 | (pp_declaration_specifiers): Likewise. | |
8377 | (pp_abstract_declarator): Likewise. | |
8378 | (pp_declarator): Likewise. | |
8379 | (pp_type_id): Likewise. | |
8380 | (pp_statement): Likewise. | |
8381 | (pp_constant): Likewise. | |
8382 | (pp_id_expression): Likewise. | |
8383 | (pp_primary_expression): Likewise. | |
8384 | (pp_unary_expression): Likewise. | |
8385 | (pp_multiplicative_expression): Likewise. | |
8386 | (pp_conditional_expression): Likewise. | |
8387 | (pp_assignment_expression): Likewise. | |
8388 | (pp_expression): Likewise. | |
8389 | (pp_c_type_id): Likewise. | |
8390 | (pp_c_storage_class_specifier): Likewise. | |
8391 | * c-pretty-print.c (pp_c_type_cast): Tidy. | |
8392 | (pp_c_pointer): Likewise. | |
8393 | (pp_c_type_specifier): Likewise. | |
8394 | (pp_c_parameter_type_list): Likewise. | |
8395 | (pp_c_function_definition): Likewise. | |
8396 | (pp_c_init_declarator): Likewise. | |
8397 | (pp_c_initializer_list): Likewise. | |
8398 | (pp_c_constructor_elts): Likewise. | |
8399 | (c_pretty_printer::direct_abstract_declarator): Likewise. | |
8400 | (c_pretty_printer::declaration_specifiers): Likewise. | |
8401 | (c_pretty_printer::primary_expression): Likewise. | |
8402 | (c_pretty_printer::postfix_expression): Likewise. | |
8403 | (c_pretty_printer::type_id): Rename from pp_c_type_id. | |
8404 | (c_pretty_printer::storage_class_specifier): Rename from | |
8405 | pp_c_storage_class_specifier. | |
8406 | (c_pretty_printer::initializer): Rename from pp_c_initializer. | |
8407 | (c_pretty_printer::c_pretty_printer): Do not assign to type_id, | |
8408 | storage_class_specifier, initializer, offset_list, flags. | |
8409 | ||
de5a5fa1 MP |
8410 | 2013-08-30 Marek Polacek <polacek@redhat.com> |
8411 | ||
8412 | * c-ubsan.c: New file. | |
8413 | * c-ubsan.h: New file. | |
8414 | ||
8f0e4d72 GDR |
8415 | 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net> |
8416 | ||
8417 | * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual | |
8418 | member function. | |
8419 | (c_pretty_printer::declaration_specifiers): Likewise. | |
8420 | (c_pretty_printer::declarator): Likewise. | |
8421 | (c_pretty_printer::abstract_declarator): Likewise. | |
8422 | (c_pretty_printer::direct_abstract_declarator): Likewise. | |
8423 | (c_pretty_printer::direct_declarator): Likewise. | |
8424 | (c_pretty_printer::function_specifier): Likewise. | |
8425 | (pp_declaration): Adjust. | |
8426 | (pp_declaration_specifiers): Likewise. | |
8427 | (pp_abstract_declarator): Likewise. | |
8428 | (pp_direct_declarator): Likewise. | |
8429 | (pp_function_specifier): Likewise. | |
8430 | (pp_direct_abstract_declarator): Remove as unused. | |
8431 | (pp_c_declaration): Remove. | |
8432 | (pp_c_declaration_specifiers): Likewise. | |
8433 | (pp_c_declarator): Likewise. | |
8434 | (pp_c_direct_declarator): Likewise. | |
8435 | (pp_c_function_specifier): Likewise. | |
8436 | (pp_c_direct_abstract_declarator): Likewise. | |
8437 | * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename | |
8438 | from pp_c_abstract_declarator. Adjust. | |
ab20d992 | 8439 | (c_pretty_printer::direct_abstract_declarator): Rename from |
8f0e4d72 GDR |
8440 | pp_c_direct_abstract_declarator. Adjust. |
8441 | (c_pretty_printer::function_specifier): Rename from | |
8442 | pp_c_function_specifier. Adjust. | |
8443 | (c_pretty_printer::declaration_specifiers): Rename from | |
8444 | pp_c_declaration_specifiers. Adjust. | |
8445 | (c_pretty_printer::direct_declarator): Rename from | |
8446 | pp_c_direct_declarator. Adjust. | |
8447 | (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust. | |
8448 | (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust. | |
8449 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
8450 | declaration, declaration_specifiers, declarator, | |
8451 | direct_declarator, direct_abstract_declarator, function_specifier. | |
8452 | ||
00d34d3a GDR |
8453 | 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net> |
8454 | ||
8455 | * c-pretty-print.h (c_pretty_printer::unary_expression): Now a | |
8456 | virtual member function. | |
8457 | (c_pretty_printer::multiplicative_expression): Likewise. | |
8458 | (c_pretty_printer::conditional_expression): Likewise. | |
8459 | (c_pretty_printer::assignment_expression): Likewise. | |
8460 | (c_pretty_printer::expression): Likewise. | |
8461 | (pp_unary_expression): Adjust. | |
8462 | (pp_multiplicative_expression): Likewise. | |
8463 | (pp_assignment_expression): Likewise. | |
8464 | (pp_conditional_expression): Likewise. | |
8465 | (pp_expression): Likewise. | |
8466 | * c-pretty-print.c (c_pretty_printer::unary_expression): Rename | |
8467 | from pp_c_unary_expression. Adjust. | |
8468 | (c_pretty_printer::multiplicative_expression): Rename from | |
8469 | pp_c_multiplicative_expression. Adjust. | |
8470 | (c_pretty_printer::conditional_expression): Rename from | |
8471 | pp_c_conditional_expression. Adjust. | |
8472 | (c_pretty_printer::assignment_expression): Rename from | |
8473 | pp_c_assignment_expression. Adjust. | |
8474 | (c_pretty_printer::expression): Rename from pp_c_expression. Adjust. | |
8475 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
8476 | unary_expression, multiplicative_expression, | |
8477 | conditional_expression, expression. | |
8478 | ||
fb22178f GDR |
8479 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
8480 | ||
8481 | * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a | |
8482 | virtual member function. | |
8483 | (pp_postfix_expression): Adjust. | |
8484 | (pp_c_postfix_expression): Remove. | |
8485 | * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename | |
8486 | from pp_c_postfix_expression. Adjust. | |
8487 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
8488 | postfix_expression. | |
8489 | ||
7ecc2600 GDR |
8490 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
8491 | ||
8492 | * c-pretty-print.h (c_pretty_printer::primary_expression): Now a | |
8493 | virtua member function. | |
8494 | (pp_primary_expression): Adjust. | |
8495 | (pp_c_primary_expression): Remove. | |
8496 | * c-pretty-print.c (c_pretty_printer::primary_expression): Rename | |
8497 | from pp_c_primary_expression. Adjust. | |
8498 | (pp_c_initializer_list): Use pp_primary_expression. | |
8499 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
8500 | primary_expression. | |
8501 | ||
0691175f GDR |
8502 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
8503 | ||
8504 | * c-pretty-print.h (c_pretty_printer::translate_string): Declare. | |
8505 | * c-pretty-print.c (M_): Remove. | |
8506 | (c_pretty_printer::translate_string): Define. | |
8507 | (pp_c_type_specifier): Use it. | |
8508 | (pp_c_primary_expression): Likewise. | |
8509 | (pp_c_expression): Likewise. | |
8510 | ||
66dfe4c4 GDR |
8511 | 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net> |
8512 | ||
8513 | * c-pretty-print.h (c_pretty_printer::id_expression): Now a | |
8514 | virtual function. | |
8515 | (pp_c_id_expression): Remove. | |
8516 | (pp_id_expression): Adjust. | |
8517 | * c-pretty-print.c (c_pretty_printer::id_expression): Rename from | |
8518 | pp_c_id_expression. Adjust. | |
8519 | (pp_c_postfix_expression): Use pp_id_expression. | |
8520 | (c_pretty_printer::c_pretty_printer): Do not assign to id_expression. | |
8521 | ||
ca43e9d5 GDR |
8522 | 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net> |
8523 | ||
8524 | * c-pretty-print.h (c_pretty_printer::constant): Now a virtual | |
8525 | member function. | |
8526 | (pp_constant): Adjust. | |
8527 | (pp_c_constant): Remove. | |
8528 | * c-pretty-print.c (c_pretty_printer::constant): Rename from | |
8529 | pp_c_constant. Adjust. | |
8530 | (pp_c_constant) | |
8531 | (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant. | |
8532 | (c_pretty_printer::c_pretty_printer): Remove assignment to constant. | |
8533 | ||
da6ca2b5 GDR |
8534 | 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
8535 | ||
8536 | * c-pretty-print.h (pp_c_pretty_printer_init): Remove. | |
8537 | (c_pretty_printer::c_pretty_printer): Declare. | |
8538 | * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from | |
8539 | c_pretty_printer_init. Adjust. | |
8540 | (print_c_tree): Do not call c_pretty_printer_init. | |
8541 | * c-ada-spec.c (dump_ads): Remove call to pp_construct. | |
8542 | ||
65a372f4 AC |
8543 | 2013-08-09 Arnaud Charlet <charlet@adacore.com> |
8544 | ||
8545 | * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name | |
8546 | ||
fd9b0f32 PC |
8547 | 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com> |
8548 | ||
8549 | PR c++/58080 | |
8550 | * c-common.c (pointer_int_sum): Add bool parameter. | |
8551 | * c-common.h (pointer_int_sum): Adjust declaration. | |
8552 | ||
e0aec1e9 GDR |
8553 | 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net> |
8554 | ||
8555 | * c-pretty-print.c (print_c_tree): Simplify. Use non-static local | |
8556 | c_pretty_printer variable. | |
8557 | ||
b066401f GDR |
8558 | 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
8559 | ||
8560 | * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer. | |
8561 | (pp_base): Remove. | |
8562 | (pp_c_base): Likewise. Adjust users. | |
8563 | * c-pretty-print.c (pp_c_maybe_whitespace): Adjust. | |
8564 | (pp_c_whitespace): Do not call pp_base. | |
8565 | (pp_c_left_paren): Likewise. | |
8566 | (pp_c_right_paren): Likewise. | |
8567 | (pp_c_left_brace): Likewise. | |
8568 | (pp_c_right_brace): Likewise. | |
8569 | (pp_c_left_bracket): Likewise. | |
8570 | (pp_c_right_bracket): Likewise. | |
8571 | (pp_c_dot): Likewise. | |
8572 | (pp_c_ampersand): Likewise. | |
8573 | (pp_c_star): Likewise. | |
8574 | (pp_c_arrow): Likewise. | |
8575 | (pp_c_semicolon): Likewise. | |
8576 | (pp_c_complement): Likewise. | |
8577 | (pp_c_exclamation): Likewise. | |
8578 | (pp_c_direct_declarator): Likewise. | |
8579 | (pp_c_ws_string): Likewise. | |
8580 | (pp_c_identifier): Likewise. | |
8581 | (pp_c_statement): Likewise. | |
8582 | (print_c_tree): Likewise. | |
8583 | ||
65e5a578 ESR |
8584 | 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net> |
8585 | ||
8586 | PR c++/58072 | |
8587 | * c-common.c (c_parse_error): Catch user-defined literal tokens and | |
8588 | provide useful error strings. | |
8589 | ||
137a1a27 GDR |
8590 | 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
8591 | ||
8592 | * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty | |
8593 | printer functions instead of pp_string or operators and punctuators. | |
8594 | (dump_generic_ada_node): Likewise. | |
8595 | * c-pretty-print.c (pp_c_type_specifier): Likewise. | |
8596 | (pp_c_relational_expression): Likewise. | |
8597 | (pp_c_logical_or_expression): Likewise. | |
8598 | ||
07838b13 GDR |
8599 | 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
8600 | ||
8601 | * c-ada-spec.c (print_ada_macros): Use specialized pretty printer | |
8602 | functions instead of pp_character. | |
8603 | (pp_ada_tree_identifier): Likewise. | |
8604 | (dump_ada_double_name): Likewise. | |
8605 | (dump_ada_function_declaration): Likewise. | |
8606 | (dump_ada_array_domains): Likewise. | |
8607 | (dump_template_types): Likewise. | |
8608 | (dump_generic_ada_node): Likewise. | |
8609 | (print_ada_declaration): Likewise. | |
8610 | (print_ada_struct_decl): Likewise. | |
8611 | * c-pretty-print.c (pp_c_integer_constant): Likewise. | |
8612 | ||
433cc7b0 TT |
8613 | 2013-07-23 Tom Tromey <tromey@redhat.com> |
8614 | ||
8615 | * c-common.h (enum rid) <RID_GENERIC>: New constant. | |
8616 | * c-common.c (c_common_reswords): Add _Generic. | |
8617 | ||
688010ba OB |
8618 | 2013-07-21 OndÅ\99ej BÃlka <neleai@seznam.cz> |
8619 | ||
8620 | * c-common.c: Fix typos. | |
8621 | * c-common.h: Likewise. | |
8622 | ||
2a99e5e6 LL |
8623 | 2013-07-13 Lubos Lunak <l.lunak@suse.cz> |
8624 | ||
8625 | PR c++/55203 | |
8626 | * c-common.c (c_common_attribute_table): Add warn_unused. | |
8627 | (handle_warn_unused_attribute): New. | |
8628 | ||
c26302d5 JJ |
8629 | 2013-07-10 Jakub Jelinek <jakub@redhat.com> |
8630 | ||
8631 | * c-ppoutput.c (scan_translation_unit): Call account_for_newlines | |
8632 | for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT. | |
8633 | ||
dfeadaa0 PC |
8634 | 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com> |
8635 | ||
8636 | PR c++/57869 | |
8637 | * c.opt: Add Wconditionally-supported. | |
8638 | ||
6a2fa4b2 GS |
8639 | 2013-07-08 Graham Stott <graham.stott@btinternet.com> |
8640 | ||
adfac8df | 8641 | * array-notation-common.c (length_mismatch_in_expr_p): Delete |
6a2fa4b2 GS |
8642 | unused variables l_length and l_node. |
8643 | ||
ecdbd01a | 8644 | 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com> |
40d3d530 JR |
8645 | |
8646 | PR c/57821 | |
8647 | * c-common.c (complete_array_type): Delay folding first index | |
8648 | like other indices. When folding, check for index overflow. | |
8649 | ||
bedc293e MG |
8650 | 2013-06-27 Marc Glisse <marc.glisse@inria.fr> |
8651 | ||
8652 | PR c++/57509 | |
8653 | * c-common.h (c_build_vec_perm_expr): New complain argument. | |
8654 | * c-common.c (c_build_vec_perm_expr): Likewise. | |
8655 | Use save_expr also in C++. | |
8656 | ||
604b2bfc GDR |
8657 | 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
8658 | ||
8659 | * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x. | |
8660 | * c-cppbuiltin.c (c_cpp_builtins): Likewise. | |
8661 | * c-opts.c (c_common_post_options): Likewise. | |
8662 | ||
dfeadaa0 | 8663 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
713b46fa BI |
8664 | |
8665 | * array-notation-common.c (length_mismatch_in_expr): Changed the | |
8666 | parameter type's from a dynamic array to a vec_tree. Also removed | |
8667 | the size parameters. | |
8668 | * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per | |
8669 | the change above. | |
8670 | ||
2ce86d2e BI |
8671 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
8672 | ||
8673 | * c-common.h (struct cilkplus_an_parts): New structure. | |
8674 | (struct cilkplus_an_loop_parts): Likewise. | |
8675 | (cilkplus_extract_an_triplets): New prototype. | |
8676 | (fix_sec_implicit_args): Likewise. | |
8677 | * array-notation-common.c (cilkplus_extract_an_triplets): New function. | |
8678 | (fix_sec_implicit_args): Likewise. | |
604b2bfc | 8679 | |
07a6825b BI |
8680 | 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com> |
8681 | ||
8682 | * array-notation-common.c (find_inv_trees): Removed an unwanted | |
8683 | typecasting. | |
8684 | * c-common.h (struct inv_list::additional_tcodes): Changed type from | |
8685 | enum rid to enum tree_code. | |
8686 | ||
08346abd JH |
8687 | 2013-06-11 Jan Hubicka <jh@suse.cz> |
8688 | ||
8689 | * c-common.c (handle_alias_ifunc_attribute): Do not set | |
8690 | DECL_EXTERNAL for weakref variables. | |
8691 | * c-pragma.c (handle_pragma_weak): Make sure aliases | |
8692 | are not declared as external. | |
8693 | ||
d60f1706 BI |
8694 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
8695 | ||
8696 | * array-notation-common.c (length_mismatch_in_expr_p): Moved this | |
8697 | function from c/c-array-notation.c. | |
8698 | (is_cilkplus_reduce_builtin): Likewise. | |
8699 | (find_rank): Likewise. | |
8700 | (extract_array_notation_exprs): Likewise. | |
8701 | (replace_array_notations): Likewise. | |
8702 | (find_inv_trees): Likewise. | |
8703 | (replace_inv_trees): Likewise. | |
8704 | (contains_array_notation_expr): Likewise. | |
8705 | (find_correct_array_notation_type): Likewise. | |
8706 | * c-common.h (struct inv_list): Moved this struct from the file | |
8707 | c/c-array-notation.c and added a new field called additional tcodes. | |
8708 | (length_mismatch_in_expr_p): New prototype. | |
8709 | (is_cilkplus_reduce_builtin): Likewise. | |
8710 | (find_rank): Likewise. | |
8711 | (extract_array_notation_exprs): Likewise. | |
8712 | (replace_array_notation): Likewise. | |
8713 | (find_inv_trees): Likewise. | |
8714 | (replace_inv_trees): Likewise. | |
8715 | (find_correct_array_notation_type): Likewise. | |
dfeadaa0 | 8716 | |
36536d79 BI |
8717 | 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
8718 | ||
8719 | * c-common.c (c_define_builtins): When cilkplus is enabled, the | |
8720 | function array_notation_init_builtins is called. | |
8721 | (c_common_init_ts): Added ARRAY_NOTATION_REF as typed. | |
8722 | * c-common.def (ARRAY_NOTATION_REF): New tree. | |
8723 | * c-common.h (build_array_notation_expr): New function declaration. | |
8724 | (build_array_notation_ref): Likewise. | |
8725 | (extract_sec_implicit_index_arg): New extern declaration. | |
8726 | (is_sec_implicit_index_fn): Likewise. | |
8727 | (ARRAY_NOTATION_CHECK): New define. | |
8728 | (ARRAY_NOTATION_ARRAY): Likewise. | |
8729 | (ARRAY_NOTATION_START): Likewise. | |
8730 | (ARRAY_NOTATION_LENGTH): Likewise. | |
8731 | (ARRAY_NOTATION_STRIDE): Likewise. | |
8732 | * c-pretty-print.c (pp_c_postifix_expression): Added a new case for | |
8733 | ARRAY_NOTATION_REF. | |
8734 | (pp_c_expression): Likewise. | |
8735 | * c.opt (flag_enable_cilkplus): New flag. | |
8736 | * array-notation-common.c: New file. | |
8737 | ||
f7716d57 JJ |
8738 | 2013-05-14 Jakub Jelinek <jakub@redhat.com> |
8739 | ||
8740 | PR c++/57274 | |
8741 | * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR. | |
8742 | ||
a5e0cd1d MG |
8743 | 2013-05-10 Marc Glisse <marc.glisse@inria.fr> |
8744 | ||
8745 | * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for | |
8746 | vectors. | |
8747 | ||
f6bc1c4a HS |
8748 | 2013-05-07 Han Shen <shenhan@google.com> |
8749 | ||
8750 | * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3". | |
8751 | ||
3f12f6e9 SKS |
8752 | 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
8753 | ||
8754 | * c-common.c (check_user_alignment): Emit error for negative values. | |
8755 | ||
61949153 PC |
8756 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
8757 | ||
8758 | * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y. | |
8759 | ||
e93e18e9 PC |
8760 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
8761 | ||
8762 | * c-cppbuiltin.c (c_cpp_builtins): Do not define | |
8763 | __GXX_EXPERIMENTAL_CXX1Y__. | |
8764 | ||
44d90fe1 | 8765 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
8e745a17 | 8766 | Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
44d90fe1 PC |
8767 | |
8768 | * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented. | |
8769 | * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns | |
8770 | to simply use OPT_Wpointer_arith. | |
8771 | (c_sizeof_or_alignof_type): Likewise. | |
8772 | ||
13f39b2e PC |
8773 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
8774 | ||
8775 | * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__. | |
8776 | ||
4b84d650 JJ |
8777 | 2013-04-12 Jakub Jelinek <jakub@redhat.com> |
8778 | ||
8779 | * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table, | |
8780 | gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format | |
8781 | specifiers. | |
8782 | ||
fb037b5d SB |
8783 | 2013-04-07 Steven Bosscher <steven@gcc.gnu.org> |
8784 | ||
8785 | * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment. | |
8786 | ||
4e856798 PC |
8787 | 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com> |
8788 | ||
8789 | * c-common.c (pointer_int_sum): Remove dead code. | |
8790 | ||
4b1baac8 RS |
8791 | 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com> |
8792 | ||
8793 | PR middle-end/56524 | |
8794 | * c-common.c (handle_optimize_attribute): Don't call | |
8795 | save_optabs_if_changed. | |
8796 | ||
0b50e654 JJ |
8797 | 2013-03-05 Jakub Jelinek <jakub@redhat.com> |
8798 | ||
8799 | PR middle-end/56461 | |
8800 | * c-pch.c (pch_init): Free target_validity at the end. | |
8801 | ||
48c41403 JJ |
8802 | 2013-03-04 Jakub Jelinek <jakub@redhat.com> |
8803 | ||
8804 | * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags. | |
8805 | ||
e664c61c KS |
8806 | 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com> |
8807 | Jakub Jelinek <jakub@redhat.com> | |
8808 | ||
8809 | PR sanitizer/56454 | |
8810 | * c-common.c (handle_no_sanitize_address_attribute): New function. | |
8811 | (c_common_attribute_table): Add no_sanitize_address attribute. | |
8812 | (handle_no_address_safety_analysis_attribute): Add | |
8813 | no_sanitize_address attribute, not no_address_safety_analysis | |
8814 | attribute. | |
8815 | ||
a475fd3d | 8816 | 2013-02-18 Aldy Hernandez <aldyh@redhat.com> |
135204dd AH |
8817 | |
8818 | PR target/52555 | |
8819 | * c-common.c (handle_optimize_attribute): Call | |
8820 | save_optabs_if_changed. | |
8821 | ||
f6007d99 JJ |
8822 | 2013-02-18 Jakub Jelinek <jakub@redhat.com> |
8823 | Steven Bosscher <steven@gcc.gnu.org> | |
8824 | ||
8825 | PR pch/54117 | |
8826 | * c-opts.c (c_common_post_options): If debug info is enabled | |
8827 | and non-dwarf*, refuse to load PCH files and when writing PCH | |
8828 | file warn. | |
8829 | ||
cf35e2b1 JJ |
8830 | 2013-02-05 Jakub Jelinek <jakub@redhat.com> |
8831 | ||
8832 | PR middle-end/56167 | |
8833 | * c-common.c (handle_error_attribute): Fix condition. | |
8834 | ||
32887460 JJ |
8835 | 2013-01-30 Jakub Jelinek <jakub@redhat.com> |
8836 | ||
8837 | PR c++/55742 | |
8838 | * c-common.c (handle_target_attribute): Revert 2012-12-26 change. | |
8839 | ||
5af057d8 JM |
8840 | 2013-01-18 Jason Merrill <jason@redhat.com> |
8841 | ||
8842 | PR target/54908 | |
8843 | * c.opt (-fextern-tls-init): New. | |
8844 | * c-opts.c (c_common_post_options): Handle it. | |
8845 | ||
cc83c823 JJ |
8846 | 2013-01-09 Jakub Jelinek <jakub@redhat.com> |
8847 | ||
8848 | PR c/48418 | |
8849 | * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and | |
8850 | RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST | |
8851 | and is either negative or bigger or equal to type precision | |
8852 | of the first operand. | |
8853 | ||
a859517f MP |
8854 | 2012-12-03 Marek Polacek <polacek@redhat.com> |
8855 | ||
8856 | PR c/55570 | |
8857 | * c-common.c (check_user_alignment): Swap order of tests, | |
8858 | check TREE_CODE first. | |
8859 | ||
2d7aa578 ESR |
8860 | 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net> |
8861 | ||
8862 | PR c++/52654 | |
8863 | * c-common.h (overflow_type): New enum. | |
8864 | (build_userdef_literal): Add overflow_type argument. | |
8865 | (tree_userdef_literal): Add overflow_type. | |
8866 | (USERDEF_LITERAL_OVERFLOW): New access macro. | |
8867 | * c-common.c (build_userdef_literal): Add overflow_type | |
8868 | argument. | |
8869 | * c-lex.c (c_lex_with_flags): Add overflow_type to | |
8870 | build_userdef_literal calls. | |
8871 | (interpret_integer, interpret_float): Add overflow_type argument. | |
8872 | ||
cc3c4f62 RB |
8873 | 2012-11-28 Richard Biener <rguenther@suse.de> |
8874 | ||
8875 | PR c/35634 | |
8876 | * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions | |
8877 | here and use a type with proper overflow behavior for types that would | |
8878 | need to be promoted for the arithmetic. | |
8879 | ||
77bc5132 JJ |
8880 | 2012-11-23 Jakub Jelinek <jakub@redhat.com> |
8881 | ||
8882 | PR sanitizer/55435 | |
8883 | * c-common.c (handle_no_address_safety_analysis_attribute): New | |
8884 | function. | |
8885 | (c_common_attribute_table): Add no_address_safety_analysis. | |
8886 | ||
5dc99c46 SB |
8887 | 2012-11-16 Simon Baldwin <simonb@google.com> |
8888 | ||
8889 | * c.opt: Add f[no-]canonical-system-headers. | |
8890 | * c-opts.c (c_common_handle_option): Handle | |
8891 | OPT_fcanonical_system_headers. | |
8892 | ||
a4a0016d ESR |
8893 | 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net> |
8894 | ||
8895 | PR c++/54413 | |
8896 | * c-opts.c (c_common_handle_option): Set new flags. | |
8897 | * c.opt: Describe new flags. | |
8898 | ||
7dbb85a7 JM |
8899 | 2012-11-09 Jason Merrill <jason@redhat.com> |
8900 | ||
8901 | * c.opt (Wabi-tag): New. | |
8902 | ||
ad7bac31 AK |
8903 | 2012-11-09 Andi Kleen <ak@linux.intel.com> |
8904 | ||
8905 | PR 55139 | |
8906 | * c-common.c (get_atomic_generic_size): Mask with | |
8e745a17 | 8907 | MEMMODEL_MASK |
ad7bac31 | 8908 | |
7332899a MLI |
8909 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8910 | ||
8911 | PR c/53063 | |
8912 | * c.opt (Wformat): Make it Alias Wformat=1. | |
8913 | (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral, | |
8914 | Wformat-security,Wformat-y2k,Wformat-zero-length): Use | |
8915 | LangEnabledBy. | |
8916 | (Wformat=): RejectNegative. Use LangEnabledBy. | |
8917 | (Wnonnull): Use LangEnabledBy. | |
8918 | * c-opts.c (c_common_handle_option): Do not handle Wformat here. | |
8919 | * c-format.c (set_Wformat): Delete. | |
8920 | (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_. | |
ab20d992 JJ |
8921 | (maybe_read_dollar_number): Likewise. |
8922 | (avoid_dollar_number): Likewise. | |
8923 | (finish_dollar_format_checking): Likewise. | |
8924 | (check_format_info): Likewise. | |
8925 | (check_format_info_main): Likewise. | |
8926 | (check_format_types): Likewise. | |
8927 | (format_type_warning): Likewise. | |
8928 | * c-common.c (int): Likewise. | |
8929 | (check_function_sentinel): Likewise. | |
8e745a17 | 8930 | * c-common.h (warn_format,set_Wformat): Do not declare here. |
7332899a | 8931 | |
34a180a6 MLI |
8932 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8933 | ||
8934 | PR c/53063 | |
8935 | * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare, | |
8936 | Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros): | |
8937 | Use LangEnabledBy. | |
8938 | (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from | |
8939 | common.opt. | |
8940 | (Wvariadic-macros): Init(1). | |
8941 | * c-opts.c (c_common_handle_option): Do not handle them | |
8942 | explicitly. | |
8943 | (c_common_post_options): Likewise. | |
8944 | (sanitize_cpp_opts): warn_unused_macros is now | |
8945 | cpp_warn_unused_macros. | |
8946 | (push_command_line_include): Likewise. | |
8947 | * c-common.c (warn_unknown_pragmas): Do not define. | |
8948 | * c-common.h (warn_unknown_pragmas): Do not declare. | |
8949 | ||
3f46d6a5 MLI |
8950 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8951 | ||
8952 | PR c/51294 | |
8953 | * c-common.c (conversion_warning): Handle conditional expressions. | |
8954 | ||
880661a4 JW |
8955 | 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com> |
8956 | ||
8957 | PR c++/54930 | |
8958 | * c.opt (Wreturn_local_addr): Define new option. | |
8959 | ||
4514a96b JM |
8960 | 2012-10-25 Jason Merrill <jason@redhat.com> |
8961 | ||
f14edc1a JM |
8962 | * c.opt (Wvirtual-move-assign): New. |
8963 | ||
4514a96b JM |
8964 | * c.opt (Winherited-variadic-ctor): New. |
8965 | ||
93100c6b MG |
8966 | 2012-10-25 Marc Glisse <marc.glisse@inria.fr> |
8967 | ||
8968 | PR c++/54427 | |
8969 | * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR. | |
8970 | ||
1efcb8c6 JM |
8971 | 2012-10-23 Joseph Myers <joseph@codesourcery.com> |
8972 | ||
8973 | * c-common.h (pch_cpp_save_state): Declare. | |
8974 | * c-target.def (c_preinclude): New hook. | |
8975 | * c-opts.c (done_preinclude): New. | |
8976 | (push_command_line_include): Handle default preincluded header. | |
8977 | (cb_file_change): Call pch_cpp_save_state when calling | |
8978 | push_command_line_include. | |
8979 | * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved) | |
8980 | (pch_cpp_save_state): New. | |
8981 | (pch_init): Call pch_cpp_save_state conditionally, instead of | |
8982 | calling cpp_save_state. | |
8983 | ||
4a0ae68e MLI |
8984 | 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8985 | ||
8986 | PR c/53063 | |
8987 | PR c/40989 | |
8988 | * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit, | |
8989 | Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess, | |
8990 | Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point, | |
8991 | Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused, | |
8992 | Wvolatile-register-var): Add LangEnabledBy or EnabledBy. | |
8993 | * c-opts.c (c_common_handle_option): Remove explicit handling from | |
8994 | here. | |
8995 | (c_common_post_options): Likewise. | |
8996 | ||
67e4210b EB |
8997 | 2012-10-18 Eric Botcazou <ebotcazou@adacore.com> |
8998 | ||
8999 | * c-ada-spec.c (LOCATION_COL): Delete. | |
9000 | (compare_location): New function. | |
9001 | (compare_node): Use it. | |
9002 | (compare_comment): Likewise. | |
9003 | ||
65d4f2cd MLI |
9004 | 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9005 | ||
9006 | PR c/53063 | |
9007 | PR c/40989 | |
9008 | * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy. | |
9009 | * c-opts.c (c_common_handle_option): Do not set them here. Add | |
9010 | comment. | |
9011 | (c_common_post_options): Likewise. | |
9012 | ||
909881cb EB |
9013 | 2012-10-16 Eric Botcazou <ebotcazou@adacore.com> |
9014 | ||
9015 | * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define. | |
9016 | (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially. | |
9017 | Remove POINTER_TYPE handling, add large unsigned handling and use | |
9018 | ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers. | |
9019 | ||
3a785c97 JJ |
9020 | 2012-10-12 Jakub Jelinek <jakub@redhat.com> |
9021 | ||
9022 | PR c/54381 | |
9023 | * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype. | |
9024 | * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3 | |
9025 | locs and array of 3 trees instead of just single loc and single | |
9026 | sizeof_arg tree. Handle __builtin___*_chk builtins too, and | |
9027 | also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins. | |
9028 | For *cmp* builtins that take two sources strings report warnings | |
9029 | about first and second source, not about destination and source. | |
9030 | ||
5e54f81d MG |
9031 | 2012-10-12 Marc Glisse <marc.glisse@inria.fr> |
9032 | ||
9033 | PR c++/53055 | |
9034 | * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New. | |
9035 | ||
f5b02f1e EB |
9036 | 2012-10-11 Eric Botcazou <ebotcazou@adacore.com> |
9037 | ||
9038 | * c-ada-spec.c (dump_ada_template): Bail out for template declarations | |
9039 | declaring something coming from another file. | |
9040 | ||
b46dbc6c AC |
9041 | 2012-10-10 Arnaud Charlet <charlet@adacore.com> |
9042 | ||
f5b02f1e | 9043 | PR ada/54845 |
b46dbc6c AC |
9044 | * c-ada-spec.c (print_ada_struct_decl): Increase buf size. |
9045 | ||
5d9de0d0 PC |
9046 | 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com> |
9047 | ||
9048 | PR c++/54194 | |
9049 | * c-common.c (warn_about_parentheses): Add location_t parameter; | |
9050 | use EXPR_LOC_OR_LOC. | |
9051 | * c-common.h: Update declaration. | |
9052 | ||
a212e43f MG |
9053 | 2012-10-09 Marc Glisse <marc.glisse@inria.fr> |
9054 | ||
9055 | PR c++/54427 | |
9056 | * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support | |
9057 | more operations. Make error messages optional. | |
9058 | * c-common.h (enum stv_conv): Moved from c-typeck.c. | |
9059 | (scalar_to_vector): Declare. | |
9060 | ||
b1db7f91 JM |
9061 | 2012-10-08 Jason Merrill <jason@redhat.com> |
9062 | ||
9063 | * c-common.c (c_common_reswords): Add thread_local. | |
9064 | ||
e28d52cf DS |
9065 | 2012-10-08 Dodji Seketeli <dodji@redhat.com> |
9066 | ||
9067 | PR c++/53528 C++11 attribute support | |
9068 | * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare | |
9069 | new functions. | |
9070 | * c-common.c (check_cxx_fundamental_alignment_constraints): New | |
9071 | static function. | |
9072 | (handle_aligned_attribute): In choose strictest alignment | |
9073 | among many. Use new check_cxx_fundamental_alignment_constraints. | |
9074 | (handle_transparent_union_attribute): In c++11 attribute syntax, | |
9075 | don't look through typedefs. | |
9076 | ||
3b78de56 AC |
9077 | 2012-10-04 Arnaud Charlet <charlet@adacore.com> |
9078 | ||
9079 | * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW. | |
9080 | * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition | |
9081 | out of dumpfile.h. | |
9082 | ||
6040bb5f DC |
9083 | 2012-09-25 Dehao Chen <dehao@google.com> |
9084 | ||
9085 | PR middle-end/54645 | |
3b78de56 | 9086 | * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data |
6040bb5f DC |
9087 | map when read in the pch. |
9088 | ||
3f8257db | 9089 | 2012-09-18 Arnaud Charlet <charlet@adacore.com> |
0b07a57e AC |
9090 | |
9091 | * c-ada-spec.c: Style fixes. | |
9092 | ||
3f8257db | 9093 | 2012-09-18 Thomas Quinot <quinot@adacore.com> |
da5182be TQ |
9094 | |
9095 | * c.opt (-fada-spec-parent): Define new command line switch. | |
9096 | * c-ada-spec.c (get_ada_package): When -fada-spec-parent | |
9097 | is specified, generate binding spec as a child of the specified unit. | |
9098 | ||
0ccb505d PC |
9099 | 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com> |
9100 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
9101 | ||
9102 | PR c++/53210 | |
9103 | * c.opt ([Winit-self]): Enabled by -Wall in C++. | |
9104 | ||
c583af79 AC |
9105 | 2012-08-23 Arnaud Charlet <charlet@adacore.com> |
9106 | ||
9107 | * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only | |
9108 | for pointers, and add missing Convention C pragma. | |
9109 | (print_ada_struct_decl): Add missing aliased keyword. | |
9110 | (dump_ads): Add pragma Ada_2005 and Style_Checks (Off). | |
9111 | ||
1a4049e7 JJ |
9112 | 2012-08-17 Jakub Jelinek <jakub@redhat.com> |
9113 | ||
9114 | * c-common.c (sizeof_pointer_memaccess_warning): New function. | |
9115 | * c.opt (-Wsizeof-pointer-memaccess): Add new option. | |
9116 | * c-opts.c (c_common_handle_option): Enable it for -Wall. | |
9117 | * c-common.h (sizeof_pointer_memaccess_warning): Add prototype. | |
9118 | * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def. | |
9119 | ||
70b5e7dc RG |
9120 | 2012-08-10 Richard Guenther <rguenther@suse.de> |
9121 | ||
9122 | * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names. | |
9123 | ||
f8923f7e SB |
9124 | 2012-08-07 Steven Bosscher <steven@gcc.gnu.org> |
9125 | ||
9126 | * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush | |
9127 | instead of separate pp_newline and pp_flush. | |
9128 | (print_c_tree): Likewise. | |
9129 | ||
e45abe1f RH |
9130 | 2012-07-26 Richard Henderson <rth@redhat.com> |
9131 | ||
9132 | * c-common.c (handle_hot_attribute): Allow labels. | |
9133 | (handle_cold_attribute): Likewise. | |
9134 | ||
332f1d24 JJ |
9135 | 2012-07-20 Jakub Jelinek <jakub@redhat.com> |
9136 | ||
9137 | PR c++/28656 | |
9138 | * c-common.c (check_function_nonnull): Handle multiple nonnull | |
9139 | attributes properly. | |
9140 | ||
7ee2468b SB |
9141 | 2012-07-16 Steven Bosscher <steven@gcc.gnu.org> |
9142 | ||
9143 | * c-gimplify.c: Include dumpfile.h instead of tree-dump.h. | |
9144 | * c-ada-spec.c: Likewise. | |
9145 | * c-dump.c (dump_stmt): Move to cp/dump.c, the only user. | |
9146 | ||
ee7b28eb SB |
9147 | 2012-07-14 Steven Bosscher <steven@gcc.gnu.org> |
9148 | ||
9149 | * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define. | |
9150 | Remove code conditional on it. | |
9151 | ||
6bdf3519 SB |
9152 | 2012-07-11 Steven Bosscher <steven@gcc.gnu.org> |
9153 | ||
9154 | * c-gimplify.c: Do not include basic-block.h. | |
9155 | * c-common.c: Do not include linfuncs.h. | |
9156 | ||
532aafad SB |
9157 | 2012-07-08 Steven Bosscher <steven@gcc.gnu.org> |
9158 | ||
9159 | * c-common.h: Include tree.h. | |
9160 | ||
8d0d1915 JM |
9161 | 2012-07-02 Jason Merrill <jason@redhat.com> |
9162 | ||
9163 | PR c++/53524 | |
9164 | * c-common.c (get_priority): Call default_conversion. | |
9165 | ||
fbc873ad UB |
9166 | 2012-07-01 Uros Bizjak <ubizjak@gmail.com> |
9167 | ||
9168 | * c-pch.c (c_common_write_pch): Remove unused variables. | |
9169 | ||
d4a10d0a SB |
9170 | 2012-06-29 Steven Bosscher <steven@gcc.gnu.org> |
9171 | ||
9172 | * cppspec.c: Moved from gcc/ to here. | |
9173 | ||
6f3a2e23 KT |
9174 | 2012-06-27 Kai Tietz <ktietz@redhat.com> |
9175 | ||
9176 | PR preprocessor/37215 | |
9177 | * c-ppoutput.c (preprocess_file): Check for nonempty buffer. | |
9178 | ||
8ca92d04 SB |
9179 | 2012-06-21 Steven Bosscher <steven@gcc.gnu.org> |
9180 | ||
9181 | * c-common.h (c_common_print_pch_checksum): Remove. | |
9182 | * c-pch.c: Do not include output.h. | |
9183 | (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME. | |
9184 | (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined. | |
9185 | (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined. | |
9186 | (struct c_pch_header): Remove. | |
9187 | (get_ident): Update gpch version. | |
9188 | (pch_init): Do not print executable_checksum to asm_out_file. | |
9189 | Do not fail if there is no asm_out_file to read back from. Set | |
9190 | asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined. | |
9191 | (c_common_write_pch): Verify that nothing was written to asm_out_file | |
9192 | since pch_init was called. Do not write a c_pch_header, and do not | |
9193 | copy from asm_out_file to the PCH. | |
9194 | (c_common_read_pch): Do not read a c_pch_header, and do not restore | |
9195 | the content of asm_out_file from the PCH. | |
9196 | (c_common_print_pch_checksum): Remove. | |
9197 | * c-opts.c (c_common_init): Print out executable_checksum directly. | |
9198 | ||
70f42967 SB |
9199 | 2012-06-19 Steven Bosscher <steven@gcc.gnu.org> |
9200 | ||
9201 | * c-target.def (objc_declare_unresolved_class_reference, | |
9202 | objc_declare_class_definition): Add new hooks. | |
9203 | ||
a8781821 SB |
9204 | 2012-06-19 Steven Bosscher <steven@gcc.gnu.org> |
9205 | ||
9206 | * c-lex.c: Do not include output.h. | |
9207 | (cb_ident): Try to put out .ident with targetm.asm_out.output_ident. | |
9208 | Remove uses of ASM_OUTPUT_IDENT. | |
9209 | ||
9e1a8dd1 RR |
9210 | 2012-06-15 Marc Glisse <marc.glisse@inria.fr> |
9211 | ||
9212 | PR c++/51033 | |
9213 | * c-common.h (c_build_vec_perm_expr): Move decl here. | |
9214 | * c-common.c (c_build_vec_perm_expr): Move definition | |
9215 | here. | |
9216 | ||
6f07a821 SB |
9217 | 2012-06-06 Steven Bosscher <steven@gcc.gnu.org> |
9218 | ||
9219 | * c.opt (fconserve-space): Turn into a no-op. | |
9220 | ||
9faeb493 | 9221 | 2012-06-04 Sterling Augustine <saugustine@google.com> |
c265f413 SA |
9222 | |
9223 | * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator. | |
9224 | * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at | |
9225 | both the start and end of the function. | |
9226 | ||
a4b7d13c SB |
9227 | 2012-06-04 Steven Bosscher <steven@gcc.gnu.org> |
9228 | ||
9229 | * c-common.c: Do not include output.h. | |
9230 | * c-pragma.c: Likewise. | |
9231 | ||
c265f413 SA |
9232 | 2012-06-04 Steven Bosscher <steven@gcc.gnu.org> |
9233 | ||
9234 | * error.c (dump_decl): Check pp_c_flag_gnu_v3. | |
9235 | (decl_as_dwarf_string, lang_decl_dwarf_name): New functions. | |
9236 | (lang_decl_name): Handle namespace decls. | |
9237 | ||
be7a421e SB |
9238 | 2012-05-31 Steven Bosscher <steven@gcc.gnu.org> |
9239 | ||
9240 | * c-ada-spec.c: Do not include output.h. | |
9241 | * c-semantics.c: Likewise. | |
9242 | ||
65de6659 JM |
9243 | 2012-05-29 Joseph Myers <joseph@codesourcery.com> |
9244 | ||
9245 | * c-common.c: Fix typo. | |
9246 | ||
ca5f4331 MM |
9247 | 2012-05-29 Michael Matz <matz@suse.de> |
9248 | ||
9249 | * c-common.h (c_expand_decl): Remove prototype. | |
9250 | ||
4f7f7aca MLI |
9251 | 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9252 | ||
9253 | * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall). | |
9254 | * c-opts.c (c_common_handle_option): Remove code handling | |
9255 | warn_missing_braces. | |
9256 | ||
4a792f9b PC |
9257 | 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com> |
9258 | ||
9259 | PR c++/25137 | |
9260 | * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable | |
9261 | -Wmissing_braces. | |
9262 | ||
650dc14a DS |
9263 | 2012-05-22 Dodji Seketeli <dodji@redhat.com> |
9264 | ||
9265 | PR c++/53322 | |
9266 | * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused). | |
9267 | ||
9b095bf1 MLI |
9268 | 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9269 | ||
9270 | * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here. | |
9271 | * c-opts.c (c_common_handle_option): Do not handle explicitly | |
9272 | Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors. | |
9273 | ||
0b2c4be5 DS |
9274 | 2012-05-16 Dodji Seketeli <dodji@redhat.com> |
9275 | ||
9276 | PR preprocessor/7263 | |
ab20d992 | 9277 | * c-lex.c (c_lex_with_flags): Pass a virtual location to the call |
0b2c4be5 DS |
9278 | to cpp_classify_number. For diagnostics, use the precise location |
9279 | instead of the global input_location. | |
9280 | ||
a1bde5af PC |
9281 | 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com> |
9282 | ||
d02924ef | 9283 | PR c++/11856 |
a1bde5af PC |
9284 | * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings. |
9285 | ||
d1ede5f4 BS |
9286 | 2012-05-14 Bernd Schmidt <bernds@codesourcery.com> |
9287 | ||
a1bde5af | 9288 | * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary. |
d1ede5f4 | 9289 | |
f2bc201f MLI |
9290 | 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9291 | ||
9292 | PR 53063 | |
9293 | * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init, | |
9294 | Wreorder): Use LangEnabledBy. | |
9295 | * c-opts.c (c_common_handle_option): Do not enable them | |
9296 | explicitly. Call lang-specific generated functions. | |
9297 | (c_common_post_options): Do not set them here. | |
9298 | ||
95744782 MLI |
9299 | 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9300 | ||
9301 | * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers, | |
9302 | Wmissing-field-initializers,Wmissing-parameter-type, | |
9303 | Wold-style-declaration,Woverride-init): Use EnabledBy. | |
9304 | * c-opts.c (c_common_post_options): Do not set here explicitly. | |
9305 | ||
7d5a5747 MLI |
9306 | 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9307 | ||
9308 | PR 53063 | |
9309 | * c-opts.c (c_common_handle_option): Use handle_generated_option | |
9310 | to enable sub-options. | |
9311 | ||
5a3c9cf2 PC |
9312 | 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com> |
9313 | ||
9314 | PR c++/53158 | |
9315 | * c-common.c (warnings_for_convert_and_check): Use warning_at. | |
9316 | ||
3ac8781c RG |
9317 | 2012-05-10 Richard Guenther <rguenther@suse.de> |
9318 | ||
9319 | * c-common.c (c_sizeof_or_alignof_type): Remove assert and | |
9320 | adjust commentary about TYPE_IS_SIZETYPE types. | |
9321 | ||
1e537948 MLI |
9322 | 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9323 | ||
9324 | PR c++/53261 | |
9325 | * c-common.c (warn_logical_operator): Check that argument of | |
9326 | integer_zerop is not NULL. | |
9327 | ||
f2c4a785 MLI |
9328 | 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9329 | ||
9330 | PR c/43772 | |
9331 | * c-common.c (warn_logical_operator): Do not warn if either side | |
9332 | is already true or false. | |
9333 | ||
50f305ca MLI |
9334 | 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9335 | ||
9336 | PR c/51712 | |
9337 | * c-common.c (expr_original_type): New. | |
9338 | (shorten_compare): Do not warn for enumeration types. | |
9339 | ||
0c3641b0 MLI |
9340 | 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9341 | ||
9342 | * c.opt (fpermissive): Add Var(flag_permissive). | |
9343 | ||
7edaa4d2 MG |
9344 | 2012-04-30 Marc Glisse <marc.glisse@inria.fr> |
9345 | ||
9346 | PR c++/51033 | |
9347 | * c-common.c (convert_vector_to_pointer_for_subscript): New function. | |
9348 | * c-common.h (convert_vector_to_pointer_for_subscript): Declare it. | |
9349 | ||
b9c8da34 DS |
9350 | 2012-04-30 Dodji Seketeli <dodji@redhat.com> |
9351 | ||
9352 | Add -Wvarargs option | |
ab20d992 | 9353 | * c.opt (Wvarargs): Define new option. |
b9c8da34 | 9354 | |
e6c69da0 MLI |
9355 | 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9356 | ||
9357 | * c-common.c (check_function_arguments): Replace | |
9358 | Wmissing-format-attribute with Wsuggest-attribute=format. | |
9359 | ||
90137d8f MLI |
9360 | 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9361 | ||
9362 | * c.opt (Wsuggest-attribute=format): New. Alias of | |
9363 | Wmissing-format-attribute. | |
9364 | * c-format.c (decode_format_type): Replace | |
9365 | Wmissing-format-attribute with Wsuggest-attribute=format. | |
9366 | (check_function_format): Likewise. | |
9367 | ||
9faeb493 | 9368 | 2012-04-27 Ollie Wild <aaw@google.com> |
7f5f5f98 OW |
9369 | |
9370 | * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping. | |
9371 | * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix. | |
9372 | * c.opt: Add Wliteral-suffix. | |
9373 | ||
c1771a20 MLI |
9374 | 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9375 | ||
9376 | PR c/44774 | |
9377 | * c.opt (Wpedantic): New. | |
9378 | (pedantic): Alias Wpedantic. | |
9379 | * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic. | |
9380 | (c_common_post_options): Likewise. | |
9381 | (sanitize_cpp_opts): Likewise. | |
9382 | * c-lex.c (interpret_float): Likewise. | |
9383 | * c-format.c (check_format_types): Likewise. | |
9384 | * c-common.c (pointer_int_sum): Likewise. | |
9385 | (c_sizeof_or_alignof_type): Likewise. | |
9386 | (c_add_case_label): Likewise. | |
9387 | (c_do_switch_warnings): Likewise. | |
9388 | * c-pragma.c (handle_pragma_float_const_decimal64): Likewise. | |
9389 | ||
04b391c1 JM |
9390 | 2012-04-15 Jason Merrill <jason@redhat.com> |
9391 | ||
9392 | PR c++/52818 | |
9393 | * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99. | |
9394 | (C_STD_NAME): Distinguish between C++98 and C++11. | |
9395 | ||
ac868f29 EB |
9396 | 2012-04-11 Eric Botcazou <ebotcazou@adacore.com> |
9397 | ||
9398 | PR target/52624 | |
9399 | * c-common.h (uint16_type_node): Rename into... | |
9400 | (c_uint16_type_node): ...this. | |
9401 | * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming. | |
9402 | * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise. | |
9403 | ||
fd4116f4 MLI |
9404 | 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9405 | ||
9406 | * c-common.c (warn_if_unused_value): Move definition to here. | |
9407 | * c-common.h (warn_if_unused_value): Move declaration to here. | |
9408 | ||
573ac65e WB |
9409 | 2012-03-23 William Bader <williambader@hotmail.com> |
9410 | ||
9411 | * c-lex.c (c_lex_with_flags): Avoid declarations after stmts. | |
9412 | ||
552b8185 JM |
9413 | 2012-03-20 Jason Merrill <jason@redhat.com> |
9414 | ||
9415 | * c-common.h (enum cxx_dialect): Add cxx1y. | |
9416 | * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect | |
9417 | test. | |
9418 | * c-cppbuiltin.c (c_cpp_builtins): Likewise. | |
9419 | * c-opts.c (c_common_post_options): Likewise. | |
9420 | (set_std_cxx1y): New. | |
9421 | (c_common_handle_option): Call it. | |
9422 | * c.opt (-std=c++1y, -std=gnu++1y): New flags. | |
9423 | ||
04398fa8 PC |
9424 | 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com> |
9425 | ||
9426 | PR c++/14710 | |
9427 | * c.opt ([Wuseless-cast]): Add. | |
9428 | ||
d2a12ae7 RG |
9429 | 2012-03-16 Richard Guenther <rguenther@suse.de> |
9430 | ||
9431 | * c-pretty-print.c (pp_c_initializer_list): Adjust. | |
9432 | ||
a12bf402 MLI |
9433 | 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
9434 | ||
9435 | PR c++/44783 | |
9436 | * c.opt (ftemplate-backtrace-limit) Add. | |
9437 | ||
5c30094f RO |
9438 | 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
9439 | ||
9440 | * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix | |
9441 | handling. | |
9442 | * c-pragma.c (handle_pragma_extern_prefix): Remove. | |
9443 | (init_pragma): Don't register extern_prefix. | |
9444 | ||
21fa2faf RG |
9445 | 2012-03-12 Richard Guenther <rguenther@suse.de> |
9446 | ||
9447 | * c-common.c (c_common_get_narrower): Use c_common_type_for_size. | |
9448 | (builtin_type_for_size): Likewise. | |
9449 | ||
e3793c6f JJ |
9450 | 2012-02-13 Jakub Jelinek <jakub@redhat.com> |
9451 | ||
9452 | PR c++/52215 | |
9453 | * c-common.c (sync_resolve_params): Don't decide whether to convert | |
9454 | or not based on TYPE_SIZE comparison, convert whenever arg_type | |
9455 | is unsigned INTEGER_TYPE. | |
9456 | ||
93286335 PC |
9457 | 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com> |
9458 | ||
9459 | PR c/52118 | |
9460 | * c.opt ([Wunused-local-typedefs]): Fix description. | |
9461 | ||
7a421706 MS |
9462 | 2012-01-24 Mike Stump <mikestump@comcast.net> |
9463 | ||
9464 | * c-common.c (c_common_type_for_mode): Match signed/unsigned types | |
9465 | exactly. | |
9466 | ||
ba9b1f11 RG |
9467 | 2012-01-18 Richard Guenther <rguenther@suse.de> |
9468 | ||
9469 | * c-opts.c (c_common_post_options): Reset LTO flags if | |
9470 | we are about to generate a PCH. | |
9471 | ||
465406be PC |
9472 | 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com> |
9473 | ||
9474 | PR c++/51777 | |
9475 | * c-pretty-print.c (pp_c_integer_constant): For unsigned constants | |
9476 | use pp_unsigned_wide_integer. | |
9477 | ||
aee15221 RG |
9478 | 2012-01-10 Richard Guenther <rguenther@suse.de> |
9479 | ||
9480 | PR middle-end/51806 | |
9481 | * c-opts.c (c_common_handle_option): Move -Werror handling | |
9482 | to language independent code. | |
9483 | ||
5720c0dc RG |
9484 | 2012-01-05 Richard Guenther <rguenther@suse.de> |
9485 | ||
9486 | PR middle-end/51764 | |
9487 | * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here | |
9488 | from common.opt. | |
9489 | ||
73ac190a PC |
9490 | 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com> |
9491 | ||
9492 | PR c++/51316 | |
9493 | * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof | |
9494 | of array types with an unknown bound. | |
9495 | ||
48b0b196 JM |
9496 | 2011-12-20 Joseph Myers <joseph@codesourcery.com> |
9497 | ||
9498 | * c-common.c (flag_isoc99): Update comment to refer to C11. | |
9499 | (flag_isoc1x): Change to flag_isoc11. | |
9500 | * c-common.h (flag_isoc99): Update comment to refer to C11. | |
9501 | (flag_isoc1x): Change to flag_isoc11. | |
9502 | * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to | |
9503 | C11. | |
9504 | * c-opts.c (set_std_c1x): Change to set_std_c11. | |
9505 | (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11. | |
9506 | Call set_std_c11. | |
9507 | (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11. | |
9508 | (set_std_c1): Use CLK_STDC11 and CLK_GNUC11. | |
9509 | * c.opt (std=c1x): Change to std=c11. Document as non-draft | |
9510 | standard. | |
9511 | (std=c1x, std=iso9899:2011): Add as aliases of std=c11. | |
9512 | (std=gnu1x): Change to std=gnu11. Refer to non-draft standard. | |
9513 | (std=gnu1x): Make alias of std=gnu11. | |
9514 | ||
d58d6eb5 JM |
9515 | 2011-12-19 Jason Merrill <jason@redhat.com> |
9516 | ||
9517 | PR c++/51228 | |
9518 | * c-common.c (handle_transparent_union_attribute): Check the first | |
9519 | field if the type is complete. | |
9520 | ||
b3908fcc JW |
9521 | 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com> |
9522 | ||
9523 | PR libstdc++/51365 | |
9524 | * c-common.c (RID_IS_FINAL): Add. | |
9525 | * c-common.h (RID_IS_FINAL): Add. | |
9526 | ||
fea3ca91 IS |
9527 | 2011-11-30 Iain Sandoe <iains@gcc.gnu.org> |
9528 | ||
9529 | * c.opt (fgnu-runtime): Provide full description. | |
9530 | (fnext-runtime): Likewise. | |
9531 | * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove. | |
9532 | ||
62bad7cd AM |
9533 | 2011-11-28 Andrew MacLeod <amacleod@redhat.com> |
9534 | ||
9535 | * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic | |
9536 | predefines in one place. Add LOCK_FREE predefines. | |
9537 | (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to | |
9538 | new func. | |
9539 | ||
c466c4ff AM |
9540 | 2011-11-24 Andrew MacLeod <amacleod@redhat.com> |
9541 | ||
9542 | PR c/51256 | |
9faeb493 | 9543 | * c-common.c (get_atomic_generic_size): Check for various error |
c466c4ff | 9544 | conditions |
9faeb493 UB |
9545 | (resolve_overloaded_atomic_exchange, |
9546 | resolve_overloaded_atomic_compare_exchange, | |
c466c4ff AM |
9547 | resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return |
9548 | error_mark_node for error conditions. | |
9faeb493 | 9549 | |
a5952633 RG |
9550 | 2011-11-08 Richard Guenther <rguenther@suse.de> |
9551 | ||
9552 | PR middle-end/51010 | |
ab20d992 | 9553 | * c-pretty-print.c (pp_c_expression): Handle SSA_NAMEs. |
a5952633 | 9554 | |
0a35513e AH |
9555 | 2011-11-07 Richard Henderson <rth@redhat.com> |
9556 | Aldy Hernandez <aldyh@redhat.com> | |
9557 | Torvald Riegel <triegel@redhat.com> | |
9558 | ||
9559 | Merged from transactional-memory. | |
9560 | ||
9561 | * c-common.c (handle_tm_wrap_attribute, | |
9562 | handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New. | |
9563 | (struct c_common_reswords): Added __transaction* keywords. | |
9564 | (struct c_common_attribute_table): Added transaction* and tm_regparm | |
9565 | attributes. | |
9566 | * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT* | |
9567 | masks. | |
9568 | (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr, | |
9569 | find_tm_attribute): Declare. | |
9570 | ||
6d87092d JM |
9571 | 2011-11-07 Jason Merrill <jason@redhat.com> |
9572 | ||
9573 | PR c++/35688 | |
9574 | * c-common.c, c-common.h: Revert yesterday's changes. | |
9575 | ||
8e7860a1 JM |
9576 | 2011-11-06 Jason Merrill <jason@redhat.com> |
9577 | ||
9578 | PR c++/35688 | |
9579 | * c-common.c (decl_has_visibility_attr): Split out from... | |
9580 | (c_determine_visibility): ...here. | |
9581 | * c-common.h: Declare it. | |
9582 | ||
d19fa6b5 JM |
9583 | 2011-11-06 Joseph Myers <joseph@codesourcery.com> |
9584 | ||
9585 | * c-common.c (c_common_reswords): Add _Alignas and _Alignof. | |
9586 | (c_sizeof_or_alignof_type): Diagnose alignof applied to a function | |
9587 | type. | |
9588 | (check_user_alignment): New. Split out of | |
9589 | handle_aligned_attribute. Disallow integer constants with | |
9590 | noninteger types. Conditionally allow zero. | |
9591 | (handle_aligned_attribute): Use check_user_alignment. | |
9592 | * c-common.h (RID_ALIGNAS, check_user_alignment): New. | |
9593 | ||
86951993 AM |
9594 | 2011-11-06 Andrew MacLeod <amacleod@redhat.com> |
9595 | Richard Henderson <rth@redhat.com> | |
9596 | ||
9597 | Merged from cxx-mem-model. | |
9598 | ||
9599 | * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns. | |
9faeb493 | 9600 | * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak |
86951993 AM |
9601 | parameters that are the same type size. |
9602 | (get_atomic_generic_size): New. Find size of generic | |
9603 | atomic function parameters and do typechecking. | |
9604 | (add_atomic_size_parameter): New. Insert size into parameter list. | |
9605 | (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to | |
9606 | either __atomic_exchange_n or external library call. | |
9faeb493 | 9607 | (resolve_overloaded_atomic_compare_exchange): Restructure |
86951993 | 9608 | __atomic_compare_exchange to either _n variant or external library call. |
9faeb493 | 9609 | (resolve_overloaded_atomic_load): Restructure __atomic_load to either |
86951993 AM |
9610 | __atomic_load_n or an external library call. |
9611 | (resolve_overloaded_atomic_store): Restructure __atomic_store to either | |
9612 | __atomic_store_n or an external library call. | |
9613 | (resolve_overloaded_builtin): Handle new __atomic builtins. | |
9614 | ||
cf9e9959 EB |
9615 | 2011-11-04 Eric Botcazou <ebotcazou@adacore.com> |
9616 | ||
9617 | PR c++/50608 | |
9618 | * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1. | |
9619 | (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust. | |
9620 | <INDIRECT_REF>: Return the argument. | |
9621 | <ARRAY_REF>: Remove special code for negative offset. | |
9622 | Call fold_build_pointer_plus instead of size_binop. | |
9623 | (fold_offsetof): Remove STOP_REF argument and adjust. | |
9624 | * c-common.h (fold_offsetof_1): Declare. | |
9625 | (fold_offsetof): Remove STOP_REF argument. | |
9626 | ||
25339f10 JM |
9627 | 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com> |
9628 | ||
9629 | PR c++/50810 | |
9630 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
9631 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
9632 | Wnarrowing for C++0x and C++98. | |
9633 | * c.opt ([Wnarrowing]): Update. | |
9634 | ||
89401152 PC |
9635 | 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com> |
9636 | ||
9637 | PR c++/44277 | |
9638 | * c.opt: Add Wzero-as-null-pointer-constant. | |
9639 | ||
97e3ad20 JM |
9640 | 2011-10-31 Jason Merrill <jason@redhat.com> |
9641 | ||
15694fdd JM |
9642 | * c.opt (-fdeduce-init-list): Off by default. |
9643 | ||
97e3ad20 JM |
9644 | PR c++/50920 |
9645 | * c-common.h (cxx_dialect): Add cxx11 and cxx03. | |
9646 | * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03, | |
9647 | and -Wc++11-compat. | |
9648 | * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x. | |
9649 | ||
fb9120e3 RAV |
9650 | 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov> |
9651 | ||
9652 | PR c++/30066 | |
9653 | * c.opt (fvisibility-inlines-hidden): Description change. | |
9654 | ||
3ce4f9e4 ESR |
9655 | 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net> |
9656 | ||
9657 | Implement C++11 user-defined literals. | |
9658 | * c-common.c (build_userdef_literal): New. | |
9659 | * c-common.def: New tree code. | |
9660 | * c-common.h (tree_userdef_literal): New tree struct and accessors. | |
9661 | * c-lex.c (interpret_float): Add suffix parm. | |
9662 | (c_lex_with_flags): Build literal tokens. | |
9663 | ||
5f53c243 PC |
9664 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> |
9665 | ||
9666 | PR c++/50841 | |
9667 | Revert: | |
9668 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> | |
9669 | ||
9670 | PR c++/50810 | |
9671 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
9672 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
9673 | Wnarrowing for C++0x and C++98. | |
9674 | * c.opt ([Wnarrowing]): Update. | |
9675 | ||
263734e1 PC |
9676 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> |
9677 | ||
9678 | PR c++/50810 | |
9679 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
9680 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
9681 | Wnarrowing for C++0x and C++98. | |
9682 | * c.opt ([Wnarrowing]): Update. | |
9683 | ||
d2e312d7 PC |
9684 | 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com> |
9685 | ||
9686 | PR c++/45385 | |
9687 | * c-common.c (conversion_warning): Remove code looking for | |
9688 | artificial operands. | |
9689 | ||
d17687f6 DS |
9690 | 2011-10-18 Dodji Seketeli <dodji@redhat.com> |
9691 | ||
9692 | PR bootstrap/50760 | |
9693 | * c-lex.c (fe_file_change): Use LINEMAP_SYSP when | |
9faeb493 | 9694 | !NO_IMPLICIT_EXTERN_C. |
d17687f6 | 9695 | |
fc8396e9 PC |
9696 | 2011-10-17 Michael Spertus <mike_spertus@symantec.com> |
9697 | ||
9698 | * c-common.c (c_common_reswords): Add __bases, | |
9699 | __direct_bases. | |
9700 | * c-common.h: Add RID_BASES and RID_DIRECT_BASES. | |
9701 | ||
9702 | 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com> | |
9703 | ||
9704 | PR c++/50757 | |
9705 | * c.opt ([Wnonnull]): Add C++ and Objective-C++. | |
9706 | ||
847e697a TT |
9707 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
9708 | Dodji Seketeli <dodji@redhat.com> | |
9709 | ||
9710 | * c.opt (fdebug-cpp): New option. | |
9711 | * c-opts.c (c_common_handle_option): Handle the option. | |
9712 | * c-ppoutput.c (maybe_print_line_1): New static function. Takes an | |
9713 | output stream in parameter. Factorized from ... | |
9714 | (maybe_print_line): ... this. Dump location debug information when | |
9715 | -fdebug-cpp is in effect. | |
9716 | (print_line_1): New static function. Takes an output stream in | |
9717 | parameter. Factorized from ... | |
9718 | (print_line): ... here. Dump location information when -fdebug-cpp | |
9719 | is in effect. | |
9720 | (scan_translation_unit): Dump location information when | |
9721 | -fdebug-cpp is in effect. | |
9722 | ||
92582b75 TT |
9723 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
9724 | Dodji Seketeli <dodji@redhat.com> | |
9725 | ||
9726 | * c.opt (ftrack-macro-expansion): New option. Handle it with and | |
9727 | without argument. | |
9728 | * c-opts.c (c_common_handle_option)<case | |
9729 | OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New | |
9730 | cases. Handle -ftrack-macro-expansion with and without argument. | |
9731 | ||
46427374 TT |
9732 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
9733 | Dodji Seketeli <dodji@redhat.com> | |
9734 | ||
9735 | * c-ppoutput.c (scan_translation_unit, maybe_print_line) | |
9736 | (print_line, cb_define, do_line_change): Adjust to avoid touching | |
9737 | the internals of struct line_map. Use the public API instead. | |
9738 | * c-pch.c (c_common_read_pch): Likewise. | |
9739 | * c-lex.c (fe_file_change): Likewise. | |
9740 | ||
fc8396e9 PC |
9741 | 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com> |
9742 | ||
9743 | PR c++/17212 | |
9744 | * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++. | |
9745 | ||
9746 | 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com> | |
9747 | ||
9748 | PR c++/33067 | |
9749 | * c-pretty-print.c (pp_c_floating_constant): Output | |
9750 | max_digits10 (in the ISO C++ WG N1822 sense) decimal digits. | |
9751 | ||
e79983f4 MM |
9752 | 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com> |
9753 | ||
9754 | * c-common.c (def_builtin_1): Delete old interface with two | |
9755 | parallel arrays to hold standard builtin declarations, and replace | |
9756 | it with a function based interface that can support creating | |
9757 | builtins on the fly in the future. Change all uses, and poison | |
9758 | the old names. Make sure 0 is not a legitimate builtin index. | |
9759 | * c-omp.c (c_finish_omp_barrier): Ditto. | |
9760 | (c_finish_omp_taskwait): Ditto. | |
9761 | (c_finish_omp_flush): Ditto. | |
9762 | ||
6637388f TG |
9763 | 2011-10-11 Tristan Gingold <gingold@adacore.com> |
9764 | ||
9765 | * c.opt: (fallow-parameterless-variadic-functions): New. | |
9766 | ||
3797cb21 DS |
9767 | 2011-09-08 Dodji Seketeli <dodji@redhat.com> |
9768 | ||
9769 | PR c++/33255 - Support -Wunused-local-typedefs warning | |
9770 | * c-common.h (struct c_language_function::local_typedefs): New | |
9771 | field. | |
9faeb493 UB |
9772 | (record_locally_defined_typedef, maybe_record_typedef_use) |
9773 | (maybe_warn_unused_local_typedefs): Declare new functions. | |
3797cb21 | 9774 | * c-common.c (record_locally_defined_typedef) |
9faeb493 UB |
9775 | (maybe_record_typedef_use) |
9776 | (maybe_warn_unused_local_typedefs): Define new functions. | |
3797cb21 DS |
9777 | * c.opt: Declare new -Wunused-local-typedefs flag. |
9778 | ||
693ddb1b EB |
9779 | 2011-09-06 Eric Botcazou <ebotcazou@adacore.com> |
9780 | ||
9781 | PR middle-end/50266 | |
9782 | * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like | |
9783 | computations. | |
9784 | ||
830c740f RG |
9785 | 2011-09-05 Richard Guenther <rguenther@suse.de> |
9786 | ||
9787 | * c-common.c (complete_array_type): Use ssize_int (-1) instead | |
9788 | of integer_minus_one_node for empty array upper bounds. | |
9789 | ||
892a371f DS |
9790 | 2011-08-28 Dodji Seketeli <dodji@redhat.com> |
9791 | ||
9792 | * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as | |
9793 | it's the first time it's being called on this main TU. | |
9794 | ||
0e3fdb48 RB |
9795 | 2011-08-24 Richard Guenther <rguenther@suse.de> |
9796 | ||
9797 | PR c/49396 | |
9798 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional. | |
9799 | ||
9800 | 2011-08-22 Gabriel Charette <gchare@google.com> | |
e3dfef44 GC |
9801 | |
9802 | * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens | |
9803 | defined in cpp_init_builtins and c_cpp_builtins. | |
9804 | ||
d4a83c10 JM |
9805 | 2011-08-19 Joseph Myers <joseph@codesourcery.com> |
9806 | ||
9807 | * c-common.c (c_common_reswords): Add __builtin_complex. | |
9808 | * c-common.h (RID_BUILTIN_COMPLEX): New. | |
9809 | ||
bbceee64 JM |
9810 | 2011-08-18 Joseph Myers <joseph@codesourcery.com> |
9811 | ||
9812 | * c-common.c (c_common_reswords): Add _Noreturn. | |
9813 | (keyword_is_function_specifier): Handle RID_NORETURN. | |
9814 | * c-common.h (RID_NORETURN): New. | |
9815 | ||
3f8257db | 9816 | 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
0e3a99ae AS |
9817 | |
9818 | * c-common.c (unsafe_conversion_p): New function. Check if it is | |
9819 | unsafe to convert an expression to the type. | |
9820 | (conversion_warning): Adjust, use unsafe_conversion_p. | |
9821 | * c-common.h (unsafe_conversion_p): New function declaration. | |
9822 | ||
20906c66 JJ |
9823 | 2011-08-02 Jakub Jelinek <jakub@redhat.com> |
9824 | ||
9825 | * c-common.h (c_finish_omp_atomic): Adjust prototype. | |
9826 | (c_finish_omp_taskyield): New prototype. | |
9827 | * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1 | |
9828 | arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and | |
9829 | OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1 | |
9830 | or RHS1 have side-effects, evaluate those too in the right spot, | |
9831 | if it is a decl and LHS is also a decl, error out if they | |
9832 | aren't the same. | |
9833 | (c_finish_omp_taskyield): New function. | |
9834 | * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107. | |
9835 | * c-pragma.c (omp_pragmas): Add taskyield. | |
9836 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD. | |
9837 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and | |
9838 | PRAGMA_OMP_CLAUSE_MERGEABLE. | |
9839 | ||
770e5a2e DS |
9840 | 2011-07-25 Dodji Seketeli <dodji@redhat.com> |
9841 | ||
9842 | * c-common.h (set_underlying_type): Remove parm name from | |
9843 | declaration. | |
9844 | ||
1baae426 RG |
9845 | 2011-07-25 Romain Geissler <romain.geissler@gmail.com> |
9846 | ||
9847 | * c-pretty-print.h: Search c-common.h in c-family. | |
9faeb493 | 9848 | |
fcb21722 JM |
9849 | 2011-07-22 Jason Merrill <jason@redhat.com> |
9850 | ||
76f86d00 JM |
9851 | PR c++/49793 |
9852 | * c.opt (Wnarrowing): New. | |
9853 | ||
3a636414 JM |
9854 | PR c++/30112 |
9855 | * c-common.h: Declare c_linkage_bindings. | |
9856 | * c-pragma.c (handle_pragma_redefine_extname): Use it. | |
9857 | ||
fcb21722 JM |
9858 | PR c++/49813 |
9859 | * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99. | |
9860 | * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well | |
9861 | as flag_isoc99 for 'restrict'. | |
9862 | (pp_c_specifier_qualifier_list): Likewise for _Complex. | |
9863 | ||
02614448 ILT |
9864 | 2011-07-21 Ian Lance Taylor <iant@google.com> |
9865 | ||
9866 | PR middle-end/49705 | |
9867 | * c-common.c (c_disable_warnings): New static function. | |
9868 | (c_enable_warnings): New static function. | |
9869 | (c_fully_fold_internal): Change local unused_p to bool. Call | |
9870 | c_disable_warnings and c_enable_warnings rather than change | |
9871 | c_inhibit_evaluation_warnings. | |
9872 | ||
34429675 JM |
9873 | 2011-07-20 Jason Merrill <jason@redhat.com> |
9874 | ||
9875 | PR c++/6709 (DR 743) | |
9876 | PR c++/42603 (DR 950) | |
9877 | * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h. | |
9878 | (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise. | |
9879 | (CPP_DECLTYPE): New. | |
9880 | * c-common.c (c_parse_error): Handle CPP_DECLTYPE. | |
9881 | ||
5d49b6a7 RG |
9882 | 2011-07-19 Richard Guenther <rguenther@suse.de> |
9883 | ||
9884 | * c-common.c (pointer_int_sum): Use fold_build_pointer_plus. | |
9885 | * c-omp.c (c_finish_omp_for): Likewise. | |
9886 | ||
e84a58ff EB |
9887 | 2011-07-12 Eric Botcazou <ebotcazou@adacore.com> |
9888 | ||
9889 | * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop | |
9890 | body on the next line. | |
9891 | ||
329af3c7 JM |
9892 | 2011-07-08 Jason Merrill <jason@redhat.com> |
9893 | ||
4063e61b JM |
9894 | PR c++/45437 |
9895 | * c-omp.c (check_omp_for_incr_expr): Handle preevaluation. | |
9896 | ||
329af3c7 JM |
9897 | PR c++/49673 |
9898 | * c-common.c (c_apply_type_quals_to_decl): Don't check | |
9899 | TYPE_NEEDS_CONSTRUCTING. | |
9900 | ||
1a072294 RG |
9901 | 2011-07-06 Richard Guenther <rguenther@suse.de> |
9902 | ||
9903 | * c-common.c (c_common_nodes_and_builtins): | |
9904 | Merge calls to build_common_tree_nodes and build_common_tree_nodes_2. | |
9905 | ||
fce5dddd RG |
9906 | 2011-07-05 Richard Guenther <rguenther@suse.de> |
9907 | ||
9908 | * c-common.c (c_common_nodes_and_builtins): Build all common | |
9909 | tree nodes first. | |
9910 | ||
45d439ac JJ |
9911 | 2011-06-27 Jakub Jelinek <jakub@redhat.com> |
9912 | ||
56300785 JJ |
9913 | * c-common.h (c_tree_chain_next): New static inline function. |
9914 | ||
45d439ac JJ |
9915 | * c-common.c (check_builtin_function_arguments): Handle |
9916 | BUILT_IN_ASSUME_ALIGNED. | |
9917 | ||
e0a8ecf2 AM |
9918 | 2011-06-21 Andrew MacLeod <amacleod@redhat.com> |
9919 | ||
9920 | * c-common.c: Add sync_ or SYNC__ to builtin names. | |
9921 | * c-omp.c: Add sync_ or SYNC__ to builtin names. | |
dfb43cd5 PV |
9922 | |
9923 | 2011-06-20 Pierre Vittet <piervit@pvittet.com> | |
9924 | ||
9925 | * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New | |
9926 | handler. | |
9927 | (gen_pragma_handler): New union. | |
9928 | (internal_pragma_handler): New type. | |
9929 | (c_register_pragma_with_data) | |
9930 | (c_register_pragma_with_expansion_and_data): New functions. | |
9931 | ||
9932 | * c-pragma.c (registered_pragmas, c_register_pragma_1) | |
9933 | (c_register_pragma, c_register_pragma_with_expansion) | |
9934 | (c_invoke_pragma_handler): Changed to work with | |
9935 | internal_pragma_handler. | |
9936 | (c_register_pragma_with_data) | |
9937 | (c_register_pragma_with_expansion_and_data): New functions. | |
9938 | ||
677f3fa8 JM |
9939 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> |
9940 | ||
9941 | * c-common.c: Include common/common-target.h. | |
9942 | (handle_section_attribute): Use | |
9943 | targetm_common.have_named_sections. | |
9944 | * c-cppbuiltin.c: Include common/common-target.h. | |
9945 | (c_cpp_builtins): Use targetm_common.except_unwind_info. | |
9946 | ||
d7fc8c14 RG |
9947 | 2011-06-10 Richard Guenther <rguenther@suse.de> |
9948 | ||
9949 | * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier | |
9950 | to print a IDENTIFIER_NODE. | |
9951 | ||
10e48e39 RO |
9952 | 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
9953 | Joseph Myers <joseph@codesourcery.com> | |
9954 | ||
9955 | * c.opt (fbuilding-libgcc): New option. | |
9956 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
9957 | __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc. | |
9958 | ||
6976ae51 JM |
9959 | 2011-06-07 Jason Merrill <jason@redhat.com> |
9960 | ||
3ff60975 JM |
9961 | * c-common.c (max_tinst_depth): Lower default to 900. |
9962 | ||
6976ae51 JM |
9963 | * c-format.c (gcc_cxxdiag_char_table): Add 'S' format. |
9964 | ||
009db074 RG |
9965 | 2011-06-07 Richard Guenther <rguenther@suse.de> |
9966 | ||
9967 | * c-common.c (c_common_nodes_and_builtins): Do not set | |
9968 | size_type_node or call set_sizetype. | |
9969 | ||
b4592b92 DS |
9970 | 2011-06-07 Dodji Seketeli <dodji@redhat.com> |
9971 | ||
9972 | PR debug/49130 | |
9973 | * c-pretty-print.c (pp_c_integer_constant): Consider the canonical | |
9faeb493 | 9974 | type when using pointer comparison to compare types. |
b4592b92 | 9975 | |
014ab419 JW |
9976 | 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com> |
9977 | ||
9978 | * c.opt: Add -Wdelete-non-virtual-dtor. | |
9979 | * c-opts.c (c_common_handle_option): Include it in -Wall. | |
9980 | ||
4f60111f NF |
9981 | 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org> |
9982 | ||
9983 | PR bootstrap/49190 | |
9984 | ||
9985 | Revert: | |
9986 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> | |
9987 | ||
9988 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
9989 | not tree_common. | |
9990 | ||
4cc4f2f4 JJ |
9991 | 2011-05-27 Jakub Jelinek <jakub@redhat.com> |
9992 | ||
9993 | PR c++/49165 | |
9994 | * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For | |
9995 | C++ don't call c_common_truthvalue_conversion on void type arms. | |
9996 | ||
38e01f9e NF |
9997 | 2011-05-27 Nathan Froyd <froydnj@codesourcery.com> |
9998 | ||
9999 | * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC. | |
10000 | (stmt_list_stack): Define. | |
10001 | (cur_stmt_list): Adjust for new type of x_cur_stmt_list. | |
10002 | * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise. | |
10003 | ||
92e948a8 NF |
10004 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
10005 | ||
10006 | * c-common.c (warning_candidate_p): Check for BLOCKs. | |
10007 | ||
a2fc3e63 NF |
10008 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
10009 | ||
10010 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
10011 | not tree_common. | |
10012 | ||
0957c029 JJ |
10013 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> |
10014 | ||
10015 | * c-common.c (def_fn_type): Remove extra va_end. | |
10016 | ||
828fb3ba JM |
10017 | 2011-05-23 Jason Merrill <jason@redhat.com> |
10018 | ||
10019 | PR c++/48106 | |
10020 | * c-common.c (c_common_get_narrower): New. | |
10021 | (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it. | |
10022 | ||
dde05067 NF |
10023 | 2011-05-23 Nathan Froyd <froydnj@codesourcery.com> |
10024 | ||
10025 | * c-common.h (check_function_arguments): Tweak prototype of | |
10026 | check_function_arguments. | |
10027 | * c-common.c (check_function_arguments): Likewise. Adjust | |
10028 | calls to check_function_nonnull, check_function_format, and | |
10029 | check_function_sentinel. | |
10030 | (check_function_sentinel): Take a FUNCTION_TYPE rather than | |
10031 | separate attributes and typelist arguments. Use | |
10032 | FOREACH_FUNCTION_ARGS to iterate over argument types. | |
10033 | ||
3c0d13bf PC |
10034 | 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com> |
10035 | ||
10036 | * c-common.c (c_common_reswords): Reorder. | |
10037 | * c-common.h (rid): Likewise. | |
10038 | ||
8242dd04 NF |
10039 | 2011-05-10 Nathan Froyd <froydnj@codesourcery.com> |
10040 | ||
10041 | * c-common.c (def_fn_type): Don't call build_function_type, call | |
10042 | build_function_type_array or build_varargs_function_type_array | |
10043 | instead. | |
10044 | (c_common_nodes_and_builtins): Likewise. | |
10045 | ||
3d528853 NF |
10046 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
10047 | ||
10048 | * c-common.c (c_add_case_label): Omit the loc argument to | |
10049 | build_case_label. | |
10050 | * c-common.h (build_case_label): Remove. | |
10051 | * c-semantics.c (build_case_label): Remove. | |
10052 | ||
a04a722b JM |
10053 | 2011-05-05 Joseph Myers <joseph@codesourcery.com> |
10054 | ||
10055 | * c-objc.h (objc_start_method_definition): Update prototype. | |
10056 | * stub-objc.c (objc_start_method_definition): Add extra parameter. | |
10057 | ||
e19a18d4 NF |
10058 | 2011-05-04 Nathan Froyd <froydnj@codesourcery.com> |
10059 | ||
10060 | * c-common.c (check_main_parameter_types): Reindent. Don't use | |
10061 | TYPE_ARG_TYPES directly. | |
10062 | (handle_nonnull_attribute): Likewise. | |
10063 | (sync_resolve_params): Likewise. | |
10064 | * c-format.c (handle_format_arg_attribute): Likewise. Adjust call | |
10065 | to check_format_string. | |
10066 | (handle_format_attribute): Likewise. | |
10067 | (check_format_string): Take a function type to examine instead of | |
10068 | a type list. Use a function_arg_iterator to step through argument | |
10069 | types. | |
10070 | ||
c62c040f RG |
10071 | 2011-05-04 Richard Guenther <rguenther@suse.de> |
10072 | ||
10073 | * c-common.c (fix_string_type): Use size_int for index type bounds. | |
10074 | (start_fname_decls): Do not pass NULL to build_int_cst. | |
10075 | (c_init_attributes): Likewise. | |
10076 | * c-lex.c (c_lex_with_flags): Likewise. | |
10077 | ||
c12ff9d8 JM |
10078 | 2011-04-27 Jason Merrill <jason@redhat.com> |
10079 | ||
10080 | * c-common.c (make_tree_vector_from_list): New. | |
10081 | * c-common.h: Declare it. | |
10082 | ||
304dfbe3 RG |
10083 | 2011-04-26 Richard Guenther <rguenther@suse.de> |
10084 | ||
10085 | PR preprocessor/48248 | |
10086 | * c-ppoutput.c (maybe_print_line): Always optimize newlines | |
10087 | for output size with -P. | |
10088 | ||
3c0d13bf PC |
10089 | 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com> |
10090 | ||
10091 | * c-common.c (struct c_common_resword): Add __underlying_type. | |
10092 | * c-common.h (enum rid): Add RID_UNDERLYING_TYPE. | |
10093 | ||
04695783 JM |
10094 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
10095 | ||
10096 | * c-format.c (init_dollar_format_checking): Remove useless | |
10097 | if-before-free. | |
10098 | ||
0dc33c3c NP |
10099 | 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com> |
10100 | ||
10101 | * c-objc.h (objc_get_interface_ivars): Removed. | |
3c0d13bf | 10102 | (objc_detect_field_duplicates): New. |
0dc33c3c | 10103 | * stub-objc.c: Likewise. |
3c0d13bf | 10104 | |
c59633d9 NP |
10105 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
10106 | ||
10107 | * stub-objc.c (objc_declare_protocols): Renamed to | |
10108 | objc_declare_protocol. | |
10109 | * c-objc.h: Likewise. | |
3c0d13bf | 10110 | |
32dabdaf NP |
10111 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
10112 | ||
10113 | * stub-objc.c (objc_declare_class): Updated argument name. | |
10114 | ||
81f653d6 NF |
10115 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> |
10116 | ||
10117 | * c-common.h (c_common_init_ts): Declare. | |
10118 | * c-common.c (c_common_init_ts): Define. | |
10119 | ||
eb345401 NP |
10120 | 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com> |
10121 | ||
10122 | * c-objc.h (objc_build_message_expr): Updated prototype. | |
10123 | * stub-objc.c (objc_build_message_expr): Likewise. | |
9faeb493 | 10124 | |
a358e188 MJ |
10125 | 2011-04-12 Martin Jambor <mjambor@suse.cz> |
10126 | ||
10127 | * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead | |
10128 | of cgraph_node. | |
10129 | ||
e6313a78 RG |
10130 | 2011-04-11 Richard Guenther <rguenther@suse.de> |
10131 | ||
10132 | * c-common.c (complete_array_type): Build a range type of | |
10133 | proper type. | |
10134 | ||
dcf0c47e NF |
10135 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> |
10136 | ||
10137 | * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES. | |
10138 | (handle_type_generic_attribute): Likewise. | |
10139 | ||
1ee44b26 JM |
10140 | 2011-04-07 Jason Merrill <jason@redhat.com> |
10141 | ||
10142 | PR c++/48450 | |
10143 | * c-common.c (c_common_truthvalue_conversion): Don't ignore | |
10144 | conversion from C++0x scoped enum. | |
10145 | ||
acce4e77 JM |
10146 | 2011-04-06 Joseph Myers <joseph@codesourcery.com> |
10147 | ||
10148 | * c-target-def.h: New file. | |
10149 | * c-target.def: New file. | |
10150 | * c-target.h: New file. | |
10151 | * c-common.c (targetcm): Don't define here. | |
10152 | * c-common.h (default_handle_c_option): Declare. | |
10153 | * c-format.c: Include c-target.h instead of target.h. | |
10154 | * c-opts.c: Include c-target.h instead of target.h. Explicitly | |
10155 | include tm.h. | |
10156 | (default_handle_c_option): Move from targhooks.c. | |
10157 | ||
e2eefb55 JJ |
10158 | 2011-03-29 Jakub Jelinek <jakub@redhat.com> |
10159 | ||
10160 | PR preprocessor/48248 | |
10161 | * c-ppoutput.c (print): Add src_file field. | |
10162 | (init_pp_output): Initialize it. | |
10163 | (maybe_print_line): Don't optimize by adding up to 8 newlines | |
10164 | if map->to_file and print.src_file are different file. | |
10165 | (print_line): Update print.src_file. | |
10166 | ||
ba78087b KT |
10167 | 2011-03-25 Kai Tietz <ktietz@redhat.com> |
10168 | ||
10169 | * c-ada-spec.c (compare_comment): Use filename_cmp | |
10170 | instead of strcmp for filename. | |
10171 | ||
0edf1bb2 JL |
10172 | 2011-03-25 Jeff Law <law@redhat.com> |
10173 | ||
adfac8df | 10174 | * c-common.c (def_fn_type): Add missing va_end. |
0edf1bb2 | 10175 | |
c7dc8804 JM |
10176 | 2011-03-25 Jason Merrill <jason@redhat.com> |
10177 | ||
10178 | * c.opt: Add -std=c++03. | |
10179 | ||
d1d879b1 EB |
10180 | 2011-03-22 Eric Botcazou <ebotcazou@adacore.com> |
10181 | ||
10182 | * c-ada-spec.c (dump_ada_template): Skip non-class instances. | |
10183 | ||
3f8257db | 10184 | 2011-03-17 Kai Tietz <ktietz@redhat.com> |
62d784f7 KT |
10185 | |
10186 | PR target/12171 | |
5050afdf KT |
10187 | * c-pretty-print.c (pp_c_specifier_qualifier_list): |
10188 | Display allowed attributes for function pointer types. | |
10189 | (pp_c_attributes_display): New function to display | |
10190 | attributes having affects_type_identity flag set to true. | |
10191 | * c-pretty-print.h (pp_c_attributes_display): New prototype. | |
10192 | ||
62d784f7 KT |
10193 | * c-common.c (c_common_attribute_table): |
10194 | Add new element. | |
10195 | (c_common_format_attribute_table): Likewise. | |
10196 | ||
82d37118 JM |
10197 | 2011-03-18 Jason Merrill <jason@redhat.com> |
10198 | ||
49a000c3 JM |
10199 | * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth). |
10200 | * c-common.h: Don't declare it here. | |
10201 | * c-common.c: Or define it here. | |
10202 | * c-opts.c (c_common_handle_option): Or set it here. | |
10203 | ||
82d37118 JM |
10204 | PR c++/35315 |
10205 | * c-common.c (handle_transparent_union_attribute): Don't | |
10206 | make a duplicate type in C++. | |
10207 | ||
17bc631c JM |
10208 | 2011-03-15 Jason Merrill <jason@redhat.com> |
10209 | ||
10210 | * c-common.c (max_constexpr_depth): New. | |
10211 | * c-common.h: Declare it. | |
10212 | * c-opts.c (c_common_handle_option): Set it. | |
10213 | * c.opt (fconstexpr-depth): New option. | |
10214 | ||
1b9b91a6 JM |
10215 | 2011-03-11 Jason Merrill <jason@redhat.com> |
10216 | ||
f231b5ff JM |
10217 | * c-common.c (attribute_takes_identifier_p): Add missing const. |
10218 | ||
1b9b91a6 JM |
10219 | PR c++/46803 |
10220 | * c-common.c (attribute_takes_identifier_p): Assume that an | |
10221 | unknown attribute takes an identifier. | |
10222 | ||
a19e4d44 NF |
10223 | 2011-03-07 Nathan Froyd <froydnj@codesourcery.com> |
10224 | ||
10225 | PR c/47786 | |
10226 | * c-common.c (c_type_hash): Call list_length instead of iterating | |
10227 | through DECL_CHAIN. Rename 'i' to 'n_elements'. | |
10228 | ||
982d62f6 JJ |
10229 | 2011-02-19 Jakub Jelinek <jakub@redhat.com> |
10230 | ||
10231 | PR c/47809 | |
10232 | * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR. | |
10233 | ||
0a256240 NP |
10234 | 2011-02-17 Iain Sandoe <iains@gcc.gnu.org> |
10235 | ||
10236 | * c.opt (fobjc-abi-version=) New. | |
10237 | (fobjc-nilcheck): New. | |
10238 | ||
ba9e6dd5 NF |
10239 | 2011-02-03 Nathan Froyd <froydnj@codesourcery.com> |
10240 | ||
10241 | PR c++/46890 | |
10242 | * c-common.h (keyword_is_decl_specifier): Declare. | |
10243 | * c-common.c (keyword_is_decl_specifier): Define. | |
10244 | (keyword_is_function_specifier): New function. | |
10245 | ||
7273813a JJ |
10246 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
10247 | ||
10248 | PR c/47473 | |
10249 | * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure | |
10250 | EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of | |
10251 | REAL_TYPE. | |
10252 | ||
908ef79b AC |
10253 | 2011-01-26 Arnaud Charlet <charlet@adacore.com> |
10254 | ||
10255 | * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type. | |
10256 | ||
237e9384 JJ |
10257 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
10258 | ||
10259 | PR pch/47430 | |
10260 | * c-opts.c (c_common_post_options): Call c_common_no_more_pch | |
10261 | after init_c_lex if pch_file is set. | |
10262 | ||
47ea1edf DK |
10263 | 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com> |
10264 | ||
d4dba752 | 10265 | PR c++/43601 |
47ea1edf DK |
10266 | * c.opt (-fkeep-inline-dllexport): New switch. |
10267 | ||
2aa9c6ae RG |
10268 | 2011-01-12 Richard Guenther <rguenther@suse.de> |
10269 | ||
10270 | PR middle-end/32511 | |
10271 | * c-common.c (handle_weak_attribute): Warn instead of error | |
10272 | on declaring an inline function weak. | |
10273 | ||
7bd11157 TT |
10274 | 2011-01-05 Tom Tromey <tromey@redhat.com> |
10275 | ||
10276 | * c-common.h (lvalue_error): Update. | |
10277 | * c-common.c (lvalue_error): Add 'loc' argument. Call error_at, | |
10278 | not error. | |
10279 | ||
0e66e494 | 10280 | 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com> |
9faeb493 | 10281 | |
b4f588c4 NP |
10282 | PR objc/47075 |
10283 | * c-objc.h (objc_finish_message_expr): Added argument to | |
10284 | prototype. | |
10285 | ||
f4da8dce NF |
10286 | 2010-12-22 Nathan Froyd <froydnj@codesourcery.com> |
10287 | ||
10288 | * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute): | |
10289 | Use prototype_p. | |
10290 | ||
46270f14 NP |
10291 | 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com> |
10292 | ||
10293 | * c-objc.h (objc_maybe_warn_exceptions): New. | |
9faeb493 | 10294 | * stub-objc.c (objc_maybe_warn_exceptions): New. |
46270f14 | 10295 | |
4816c593 NF |
10296 | 2010-12-10 Nathan Froyd <froydnj@codesourcery.com> |
10297 | ||
10298 | * c-common.h (readonly_error): Declare. | |
10299 | * c-common.c (readonly_error): Define. | |
10300 | ||
7a6daeb0 NF |
10301 | 2010-12-09 Nathan Froyd <froydnj@codesourcery.com> |
10302 | ||
10303 | * c-common.h (invalid_indirection_error): Declare. | |
10304 | * c-common.c (invalid_indirection_error): Define. | |
10305 | ||
892f6119 RG |
10306 | 2010-12-03 Richard Guenther <rguenther@suse.de> |
10307 | ||
10308 | PR c/46745 | |
10309 | * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF. | |
10310 | (pp_c_unary_expression): Likewise. | |
10311 | (pp_c_expression): Likewise. | |
10312 | ||
6c39e757 NP |
10313 | 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com> |
10314 | ||
10315 | * c-common.h (objc_finish_function): New. | |
10316 | (objc_non_volatilized_type): Removed. | |
10317 | (objc_type_quals_match): Removed. | |
10318 | * stub-objc.c (objc_finish_function): New. | |
10319 | (objc_non_volatilized_type): Removed. | |
10320 | (objc_type_quals_match): Removed. | |
9faeb493 | 10321 | |
7c475d11 JM |
10322 | 2010-11-30 Joseph Myers <joseph@codesourcery.com> |
10323 | ||
10324 | * c-common.h (parse_optimize_options): Declare. | |
10325 | * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c, | |
10326 | c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h. | |
10327 | ||
71f3e391 JM |
10328 | 2010-11-29 Joseph Myers <joseph@codesourcery.com> |
10329 | ||
10330 | * c-opts.c (check_deps_environment_vars): Use getenv instead of | |
10331 | GET_ENVIRONMENT. | |
10332 | * c-pch.c (O_BINARY): Don't define here. | |
10333 | * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>. | |
10334 | ||
d5fabb58 JM |
10335 | 2010-11-25 Joseph Myers <joseph@codesourcery.com> |
10336 | ||
10337 | * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to | |
10338 | targetm.except_unwind_info. | |
10339 | ||
299404a1 JM |
10340 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
10341 | ||
10342 | * c-opts.c (c_common_handle_option): Pass location to | |
10343 | set_struct_debug_option. | |
10344 | ||
c98cd5bf JM |
10345 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
10346 | ||
10347 | * c-common.c (visibility_options): Move from ../opts.c. | |
10348 | * c-common.h (struct visibility_flags, visibility_options): | |
10349 | Declare here. | |
10350 | * c-opts.c (finish_options): Rename to c_finish_options. | |
10351 | (c_common_init): Update call to finish_options. | |
10352 | ||
a9546771 NP |
10353 | 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com> |
10354 | ||
10355 | PR objc/34033 | |
10356 | * c-lex.c (lex_string): Check that each string in an Objective-C | |
10357 | string concat sequence starts with either one or zero '@', and | |
10358 | that there are no spurious '@' signs at the end. | |
10359 | ||
24a57808 JM |
10360 | 2010-11-20 Joseph Myers <joseph@codesourcery.com> |
10361 | ||
10362 | * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK, | |
10363 | HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and | |
10364 | HANDLE_PRAGMA_VISIBILITY. | |
10365 | * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK, | |
10366 | HANDLE_PRAGMA_VISIBILITY): Don't define. | |
10367 | (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test. | |
10368 | ||
a9aa2c3a NF |
10369 | 2010-11-20 Nathan Froyd <froydnj@codesourcery.com> |
10370 | ||
10371 | PR c++/16189 | |
10372 | PR c++/36888 | |
10373 | PR c++/45331 | |
10374 | * c-common.h (keyword_begins_type_specifier): Declare. | |
10375 | (keyword_is_storage_class_specifier): Declare. | |
10376 | (keyword_is_type_qualifier): Declare. | |
10377 | * c-common.c (keyword_begins_type_specifier): New function. | |
10378 | (keyword_is_storage_class_specifier): New function. | |
10379 | (keyword_is_type_qualifier): Declare. | |
10380 | ||
5386338c JM |
10381 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
10382 | ||
10383 | PR c/46547 | |
10384 | * c-common.c (in_late_binary_op): Define. | |
10385 | (c_common_truthvalue_conversion): Check in_late_binary_op before | |
10386 | calling c_save_expr. | |
10387 | * c-common.h (in_late_binary_op): Declare. | |
10388 | ||
69ccdddb JM |
10389 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
10390 | ||
10391 | * c-opts.c (c_common_handle_option): Update calls to | |
10392 | set_struct_debug_option. | |
10393 | ||
6b192a09 NP |
10394 | 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com> |
10395 | ||
10396 | * c-common.h (objc_declare_protocols): Added additional argument. | |
10397 | * stub-objc.c (objc_declare_protocol): Same change. | |
9faeb493 | 10398 | |
fb52b50a NF |
10399 | 2010-11-18 Nathan Froyd <froydnj@codesourcery.com> |
10400 | ||
10401 | PR c/33193 | |
10402 | * c-common.h (build_real_imag_expr): Declare. | |
10403 | * c-semantics.c (build_real_imag_expr): Define. | |
10404 | ||
b37421c6 JM |
10405 | 2010-11-17 Joseph Myers <joseph@codesourcery.com> |
10406 | ||
10407 | * c-opts.c (c_common_parse_file): Take no arguments. | |
10408 | * c-common.h (c_common_parse_file): Update prototype. | |
10409 | ||
07078664 JJ |
10410 | 2010-11-16 Jakub Jelinek <jakub@redhat.com> |
10411 | ||
10412 | PR c++/46401 | |
10413 | * c-common.c (warning_candidate_p): Don't track non-const calls | |
10414 | or STRING_CSTs. | |
10415 | ||
c6a13190 ILT |
10416 | 2010-11-15 Ian Lance Taylor <iant@google.com> |
10417 | ||
10418 | * c-lex.c (init_c_lex): Set macro debug callbacks if | |
10419 | flag_dump_go_spec is set. | |
10420 | ||
925e8657 NP |
10421 | 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com> |
10422 | ||
10423 | * c-common.h (objc_build_incr_expr_for_property_ref): New. | |
10424 | * stub-objc.c (objc_build_incr_expr_for_property_ref): New. | |
10425 | ||
bb0a9581 NF |
10426 | 2010-11-15 Nathan Froyd <froydnj@codesourcery.com> |
10427 | ||
10428 | PR preprocessor/45038 | |
10429 | * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++ | |
10430 | dialects. | |
10431 | ||
c5fa0890 JM |
10432 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
10433 | ||
10434 | * c-common.h (c_family_lang_mask): Declare. | |
10435 | * c-opts.c (c_family_lang_mask): Make extern. | |
10436 | * c-pragma.c (handle_pragma_diagnostic): Use | |
10437 | control_warning_option. | |
10438 | ||
a4d8c676 JM |
10439 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
10440 | ||
10441 | * c-common.c (parse_optimize_options): Update call to | |
10442 | decode_options. | |
10443 | * c-common.h (c_common_handle_option): Update prototype. | |
10444 | * c-opts.c (c_common_handle_option): Take location_t parameter and | |
10445 | pass it to other functions. | |
10446 | ||
f954bd2c JM |
10447 | 2010-11-11 Joseph Myers <joseph@codesourcery.com> |
10448 | ||
10449 | * c-opts.c (warning_as_error_callback): Remove. | |
10450 | (c_common_initialize_diagnostics): Don't call | |
10451 | register_warning_as_error_callback. | |
10452 | (c_common_handle_option): Handle -Werror=normalized= here. | |
10453 | ||
d8a07487 JM |
10454 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
10455 | ||
10456 | * c-common.c (handle_mode_attribute): Use %' and word "signedness" | |
10457 | in diagnostic. | |
10458 | * c-opts.c (c_common_parse_file): Start diagnostics with lowercase | |
10459 | letter. | |
10460 | * c-pragma.c (handle_pragma_target, handle_pragma_optimize): | |
10461 | Remove trailing '.' from diagnostics. | |
10462 | * c.opt (Wwrite-strings_: Avoid '`' in help text. | |
10463 | ||
d5478783 JM |
10464 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
10465 | ||
10466 | * c-common.c (parse_optimize_options): Pass global_dc to | |
10467 | decode_options. | |
10468 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
10469 | set_Wstrict_aliasing. | |
10470 | * c.opt (v): Don't mark Common or document here. | |
10471 | ||
91ebb981 IS |
10472 | 2010-11-06 Iain Sandoe <iains@gcc.gnu.org> |
10473 | ||
10474 | PR target/44981 | |
10475 | * c-format.c (format_type): New type gcc_objc_string_format_type. | |
10476 | (valid_stringptr_type_p): New. | |
10477 | (handle_format_arg_attribute): Use valid_stringptr_type_p (). | |
9faeb493 | 10478 | (check_format_string): Pass expected type, use |
91ebb981 IS |
10479 | valid_stringptr_type_p (), check that the format string types are |
10480 | consistent with the format specification. | |
10481 | (decode_format_attr): Warn if NSString is used outside objective-c. | |
10482 | (format_types_orig): Add NSString. | |
10483 | (format_name): New. | |
10484 | (format_flags): New. | |
10485 | (check_format_arg): Handle format strings requiring an external parser. | |
10486 | first_target_format_type: New variable. | |
10487 | (handle_format_attribute): Set up first_target_format_type, pass the | |
10488 | expected format arg string type to check_format_string(). | |
ab20d992 | 10489 | * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag. |
91ebb981 IS |
10490 | * stub-objc.c (objc_string_ref_type_p): New. |
10491 | (objc_check_format_arg): New. | |
10492 | ||
bede2adc NP |
10493 | 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com> |
10494 | ||
9faeb493 | 10495 | Fixed using the Objective-C 2.0 dot-syntax with class names. |
bede2adc NP |
10496 | * c-common.h (objc_build_class_component_ref): New. |
10497 | * stub-objc.c (objc_build_class_component_ref): New. | |
10498 | ||
9a179d01 NP |
10499 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
10500 | ||
10501 | * c.opt (Wproperty-assign-default): New option. | |
10502 | ||
22d8d616 NP |
10503 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
10504 | ||
10505 | Implemented -fobjc-std=objc1 flag. | |
10506 | * c.opt (fobjc-std=objc1): New option. | |
10507 | ||
2debdb4f NP |
10508 | 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com> |
10509 | ||
10510 | Implemented format and noreturn attributes for Objective-C methods. | |
10511 | * c-common.c (handle_noreturn_attribute): Recognize 'noreturn' | |
10512 | attribute for Objective-C methods. | |
10513 | ||
ec52b111 JM |
10514 | 2010-10-31 Jason Merrill <jason@redhat.com> |
10515 | ||
10516 | * c-common.c (conversion_warning, warn_for_collisions_1): Use | |
10517 | EXPR_LOC_OR_HERE. | |
10518 | ||
46a88c12 NP |
10519 | 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com> |
10520 | ||
10521 | Implemented Objective-C 2.0 @property, @synthesize and @dynamic. | |
10522 | * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR. | |
10523 | (objc_add_property_declaration): Removed arguments for copies and | |
10524 | ivar. | |
10525 | (objc_build_getter_call): Renamed to | |
10526 | objc_maybe_build_component_ref. | |
10527 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
10528 | (objc_is_property_ref): New. | |
10529 | * c-common.c (c_common_reswords): Removed copies and ivar. | |
10530 | * stub-objc.c (objc_add_property_declaration): Removed arguments | |
10531 | for copies and ivar. | |
10532 | (objc_build_getter_call): Renamed to | |
10533 | objc_maybe_build_component_ref. | |
10534 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
10535 | (objc_is_property_ref): New. | |
9faeb493 | 10536 | |
1e4bf85b AC |
10537 | 2010-10-29 Arnaud Charlet <charlet@adacore.com> |
10538 | Matthew Gingell <gingell@adacore.com> | |
10539 | ||
10540 | * c-ada-spec.c (separate_class_package): New function. | |
10541 | (pp_ada_tree_identifier): Prefix references to C++ classes with the | |
10542 | name of their enclosing package. | |
10543 | (print_ada_declaration): Use separate_class_package. | |
10544 | ||
81f0bab2 JM |
10545 | 2010-10-27 Jason Merrill <jason@redhat.com> |
10546 | ||
2b08f2c5 JM |
10547 | * c-common.c (c_common_reswords): Add __is_literal_type. |
10548 | * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE. | |
10549 | ||
81f0bab2 JM |
10550 | * c-common.c (check_case_value): Remove special C++ code. |
10551 | ||
200290f2 NP |
10552 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
10553 | ||
10554 | * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN, | |
10555 | RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR | |
10556 | and RID_LAST_PATTR. | |
10557 | (objc_add_property_declaration): Added additional arguments. | |
10558 | (objc_property_attribute_kind): Removed. | |
10559 | (objc_set_property_attr): Removed. | |
10560 | * c-common.c (c_common_reswords): Added readwrite, assign, retain, | |
10561 | copy and nonatomic. | |
10562 | * stub-objc.c (objc_add_property_declaration): Added additional | |
10563 | arguments. | |
10564 | (objc_set_property_attr): Removed. | |
9faeb493 | 10565 | |
f614132b NP |
10566 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
10567 | ||
10568 | * c-common.h (objc_add_property_variable): Renamed to | |
10569 | objc_add_property_declaration. Added location argument. | |
10570 | * stub-objc.c (objc_add_property_variable): Same change. | |
b1726d6c | 10571 | |
b8a18805 NP |
10572 | 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com> |
10573 | ||
10574 | * c-common.h (objc_maybe_printable_name): New. | |
10575 | * stub-objc.c (objc_maybe_printable_name): New. | |
10576 | ||
3f8257db JJ |
10577 | 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
10578 | Andrew Pinski <pinskia@gmail.com> | |
30cd1c5d AS |
10579 | |
10580 | * c-common.h (c_common_mark_addressable_vec): Declare. | |
10581 | * c-common.c (c_common_mark_addressable_vec): New function. | |
10582 | ||
249a82c4 NP |
10583 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
10584 | ||
10585 | * c-common.h (objc_set_method_type): Removed. | |
10586 | (objc_add_method_declaration): Added boolean argument. | |
10587 | (objc_start_method_definition): Same change. | |
10588 | (objc_build_method_signature): Same change. | |
10589 | * stub-objc.c (objc_set_method_type): Removed. | |
10590 | (objc_add_method_declaration): Added boolean argument. | |
10591 | (objc_start_method_definition): Same change. | |
10592 | (objc_build_method_signature): Same change. | |
10593 | ||
977e30bc NP |
10594 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
10595 | ||
10596 | * c-common.h (finish_file): Removed. | |
10597 | (objc_write_global_declarations): New. | |
10598 | * c-opts.c (c_common_parse_file): Do not call finish_file. | |
10599 | * stub-objc.c (objc_write_global_declarations): New. | |
9faeb493 | 10600 | |
da57d1b9 NP |
10601 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
10602 | ||
10603 | Implemented parsing @synthesize and @dynamic for | |
10604 | Objective-C/Objective-C++. | |
10605 | * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC. | |
10606 | (objc_add_synthesize_declaration): New. | |
10607 | (objc_add_dynamic_declaration): New. | |
10608 | * c-common.c (c_common_reswords): Add synthesize and dynamic. | |
10609 | * stub-objc.c (objc_add_synthesize_declaration): New. | |
10610 | (objc_add_dynamic_declaration): New. | |
9faeb493 | 10611 | |
0069111f MM |
10612 | 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com> |
10613 | ||
10614 | PR target/46041 | |
10615 | * c-cppbuiltin.c (mode_has_fma): Move function here from | |
10616 | builtins.c. Don't use the fma optab, instead just use the | |
10617 | HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when | |
10618 | using -save-temps. | |
10619 | ||
e426b47b NP |
10620 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
10621 | ||
10622 | Merge from 'apple/trunk' branch on FSF servers. | |
0069111f | 10623 | |
3f8257db | 10624 | 2005-11-08 Fariborz Jahanian <fjahanian@apple.com> |
e426b47b | 10625 | |
9faeb493 | 10626 | Radar 4330422 |
e426b47b NP |
10627 | * c-common.h (objc_non_volatilized_type): New declaration |
10628 | * stub-objc.c (objc_non_volatilized_type): New stub. | |
10629 | ||
90fbfdc3 NP |
10630 | 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com> |
10631 | ||
e426b47b | 10632 | Merge from 'apple/trunk' branch on FSF servers. |
90fbfdc3 | 10633 | |
ab20d992 | 10634 | 2006-03-27 Fariborz Jahanian <fjahanian@apple.com> |
90fbfdc3 | 10635 | |
9faeb493 | 10636 | Radar 4133425 |
90fbfdc3 | 10637 | * c-common.h (objc_diagnose_private_ivar): New decl. |
0069111f | 10638 | * stub-objc.c (objc_diagnose_private_ivar): New stub. |
90fbfdc3 | 10639 | |
c37d8c30 IS |
10640 | 2010-10-17 Iain Sandoe <iains@gcc.gnu.org> |
10641 | ||
10642 | * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE. | |
10643 | * c-common.h (enum rid): Add RID_AT_PACKAGE. | |
10644 | (objc_ivar_visibility_kind): New enum. | |
10645 | (objc_set_visibility): Adjust prototype to use visibility enum. | |
0069111f | 10646 | * stub-objc.c (objc_set_visibility): Adjust stub to use |
c37d8c30 IS |
10647 | visibility enum. |
10648 | ||
1b1562a5 MM |
10649 | 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com> |
10650 | ||
10651 | * c-cppbuiltin.c (builtin_define_float_constants): Emit | |
10652 | __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine | |
10653 | has the appropriate fma builtins. | |
10654 | (c_cpp_builtins): Adjust call to builtin_define_float_constants. | |
10655 | ||
668ea4b1 IS |
10656 | 2010-10-14 Iain Sandoe <iains@gcc.gnu.org> |
10657 | ||
1b1562a5 | 10658 | merge from FSF apple 'trunk' branch. |
3f8257db | 10659 | 2006 Fariborz Jahanian <fjahanian@apple.com> |
1b1562a5 | 10660 | |
668ea4b1 IS |
10661 | Radars 4436866, 4505126, 4506903, 4517826 |
10662 | * c-common.c (c_common_resword): Define @property and its attributes. | |
10663 | * c-common.h: Define property attribute enum entries. | |
10664 | (OBJC_IS_PATTR_KEYWORD): New. | |
10665 | (objc_property_attribute_kind): New enum. | |
10666 | Declare objc_set_property_attr (), objc_add_property_variable (), | |
10667 | objc_build_getter_call () and objc_build_setter_call (). | |
10668 | * stub-objc.c (objc_set_property_attr): New stub. | |
10669 | (objc_add_property_variable): Likewise. | |
10670 | (objc_build_getter_call): Likewise. | |
10671 | (objc_build_setter_call) Likewise. | |
1b1562a5 | 10672 | |
a1178b30 IS |
10673 | 2010-10-13 Iain Sandoe <iains@gcc.gnu.org> |
10674 | ||
1b1562a5 | 10675 | merge from FSF apple 'trunk' branch. |
ab20d992 | 10676 | 2006-04-26 Fariborz Jahanian <fjahanian@apple.com> |
a1178b30 IS |
10677 | |
10678 | Radar 3803157 (method attributes) | |
10679 | * c-common.c (handle_deprecated_attribute): Recognize | |
10680 | objc methods as valid declarations. | |
10681 | * c-common.h: Declare objc_method_decl (). | |
1b1562a5 | 10682 | * stub-objc.c (objc_method_decl): New stub. |
a1178b30 | 10683 | |
a75bfaa6 JM |
10684 | 2010-10-08 Joseph Myers <joseph@codesourcery.com> |
10685 | ||
10686 | * c-common.c (parse_optimize_options): Call | |
10687 | decode_cmdline_options_to_array_default_mask before | |
10688 | decode_options. Update arguments to decode_options. | |
10689 | * c-common.h (c_common_init_options_struct): Declare. | |
10690 | * c-opts.c (c_common_init_options_struct): New. Split out from | |
10691 | c_common_init_options. | |
10692 | ||
f05b9d93 NP |
10693 | 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com> |
10694 | ||
10695 | Implemented fast enumeration for Objective-C. | |
10696 | * c-common.h (objc_finish_foreach_loop): New. | |
10697 | * stub-objc.c (objc_finish_foreach_loop): New. | |
10698 | ||
1ebe4b4f JM |
10699 | 2010-10-05 Joseph Myers <joseph@codesourcery.com> |
10700 | ||
10701 | * c-common.h (struct diagnostic_context): Don't declare here. | |
10702 | (c_common_initialize_diagnostics): Declare using | |
10703 | diagnostic_context typedef. | |
10704 | * c-opts.c (c_common_handle_option): Pass global_dc to | |
10705 | handle_generated_option. | |
10706 | ||
d4d24ba4 JM |
10707 | 2010-10-04 Joseph Myers <joseph@codesourcery.com> |
10708 | ||
10709 | * c-opts.c (c_common_handle_option): Pass &global_options_set to | |
10710 | handle_generated_option. | |
10711 | ||
478a1c5b ILT |
10712 | 2010-10-03 Ian Lance Taylor <iant@google.com> |
10713 | ||
10714 | * c.opt (-fplan9-extensions): New option. | |
10715 | ||
82a1c2fe FXC |
10716 | 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
10717 | ||
10718 | * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision): | |
10719 | Remove. | |
10720 | (c_cpp_builtins): Call functions from cppbuiltin.c instead | |
10721 | of duplicating code. | |
10722 | ||
92902b1b IS |
10723 | 2010-09-30 Iain Sandoe <iains@gcc.gnu.org> |
10724 | ||
10725 | * c-common.c: Add two new entries for @optional | |
10726 | and @required keywords. | |
10727 | ||
10728 | merge from FSF 'apple/trunk' branch. | |
3f8257db | 10729 | 2006-01-30 Fariborz Jahanian <fjahanian@apple.com> |
92902b1b IS |
10730 | |
10731 | Radar 4386773 | |
10732 | * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new | |
10733 | objective-c keywords. | |
10734 | (objc_set_method_opt): New declaration. | |
10735 | * stub-objc.c (objc_set_method_opt): New stub. | |
9faeb493 | 10736 | |
46625112 JM |
10737 | 2010-09-30 Joseph Myers <joseph@codesourcery.com> |
10738 | ||
10739 | * c-common.c (handle_optimize_attribute): Pass &global_options to | |
10740 | cl_optimization_save and cl_optimization_restore. | |
10741 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
10742 | handle_generated_option. | |
10743 | * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var. | |
10744 | (handle_pragma_pop_options, handle_pragma_reset_options): Pass | |
10745 | &global_options to cl_optimization_restore. | |
10746 | ||
49b91f05 NP |
10747 | 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com> |
10748 | ||
10749 | * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME | |
10750 | Objective-C/Objective-C++ keywords. | |
10751 | ||
13ed556f | 10752 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
a6341d57 | 10753 | |
9faeb493 UB |
10754 | Merge from 'apple/trunk' branch on FSF servers. |
10755 | ||
3f8257db | 10756 | 2005-10-04 Fariborz Jahanian <fjahanian@apple.com> |
a6341d57 NP |
10757 | |
10758 | Radar 4281748 | |
10759 | * c-common.h (objc_check_global_decl): New declaration. | |
10760 | * stub-objc.c (objc_check_global_decl): New stub. | |
10761 | ||
f0036cca JM |
10762 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
10763 | ||
10764 | * c.opt: Don't use VarExists. | |
10765 | ||
e3339d0f JM |
10766 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
10767 | ||
10768 | * c-common.c (c_cpp_error): Update names of diagnostic_context | |
10769 | members. | |
10770 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of | |
10771 | cl_optimization members. | |
10772 | * c-opts.c (warning_as_error_callback, c_common_handle_option, | |
10773 | sanitize_cpp_opts, finish_options): Update names of cpp_options | |
10774 | members. | |
10775 | ||
1973201f NP |
10776 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
10777 | ||
10778 | * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments. | |
10779 | (objc_is_reserved_word): Removed. | |
10780 | * c-common.c: Updated comments. | |
10781 | * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of | |
10782 | objc_is_reserved_word. | |
10783 | * stub-objc.c (objc_is_reserved_word): Removed. | |
10784 | ||
f7e71da5 IS |
10785 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
10786 | ||
9faeb493 | 10787 | * c-common.h (objc_add_method_declaration): Adjust prototype to |
f7e71da5 IS |
10788 | include attributes. |
10789 | (objc_start_method_definition): Likewise. | |
10790 | (objc_build_keyword_decl): Likewise. | |
10791 | * stub-objc.c:(objc_add_method_declaration): Handle attributes. | |
10792 | (objc_start_method_definition): Likewise. | |
10793 | (objc_build_keyword_decl): Likewise. | |
10794 | ||
c165dca7 IS |
10795 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
10796 | ||
10797 | * c-common.h (objc_start_class_interface): Adjust prototype. | |
10798 | (objc_start_category_interface): Likewise. | |
10799 | (objc_start_protocol): Likewise. | |
10800 | * stub-objc.c (objc_start_protocol): Adjust for extra argument. | |
10801 | (objc_start_class_interface): Likewise. | |
10802 | (objc_start_category_interface): Likewise. | |
10803 | ||
7458026b ILT |
10804 | 2010-09-27 Ian Lance Taylor <iant@google.com> |
10805 | ||
10806 | * c-common.c (c_common_attribute_table): Add no_split_stack. | |
10807 | (handle_no_split_stack_attribute): New static function. | |
10808 | ||
b581b85b NP |
10809 | 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com> |
10810 | ||
9faeb493 | 10811 | Merge from 'apple/trunk' branch on FSF servers. |
b581b85b | 10812 | |
3f8257db | 10813 | 2005-12-15 Fariborz Jahanian <fjahanian@apple.com> |
b581b85b | 10814 | |
9faeb493 | 10815 | Radar 4229905 |
b581b85b NP |
10816 | * c-common.h (objc_have_common_type): New declaration. |
10817 | * stub-objc.c (objc_have_common_type): New stub. | |
10818 | ||
10819 | 2005-06-22 Ziemowit Laski <zlaski@apple.com> | |
10820 | ||
10821 | Radar 4154928 | |
10822 | * c-common.h (objc_common_type): New prototype. | |
9faeb493 | 10823 | * stub-objc.c (objc_common_type): New stub. |
b581b85b | 10824 | |
46a4da10 JH |
10825 | 2010-09-24 Jan Hubicka <jh@suse.cz> |
10826 | ||
10827 | * c-common.c (handle_leaf_attribute): New function. | |
10828 | (struct attribute_spec c_common_att): Add leaf. | |
10829 | ||
e200444e JM |
10830 | 2010-09-22 Joseph Myers <joseph@codesourcery.com> |
10831 | ||
10832 | * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments, | |
10833 | -comments-in-macros, -define-macro, -define-macro=, -dependencies, | |
10834 | -dump, -dump=, -imacros, -imacros=, -include, -include=, | |
10835 | -include-barrier, -include-directory, -include-directory=, | |
10836 | -include-directory-after, -include-directory-after=, | |
10837 | -include-prefix, -include-prefix=, -include-with-prefix, | |
10838 | -include-with-prefix=, -include-with-prefix-after, | |
10839 | -include-with-prefix-after=, -include-with-prefix-before, | |
10840 | -include-with-prefix-before=, -no-integrated-cpp, | |
10841 | -no-line-commands, -no-standard-includes, -no-warnings, -output, | |
10842 | -output=, -pedantic, -pedantic-errors, -preprocess, | |
10843 | -print-missing-file-dependencies, -trace-includes, -traditional, | |
10844 | -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=, | |
10845 | -user-dependencies, -verbose, -write-dependencies, | |
10846 | -write-user-dependencies, no-integrated-cpp, traditional): New. | |
10847 | ||
29a80ea6 NP |
10848 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> |
10849 | ||
10850 | PR objc/23710 | |
ac1fc2fc NP |
10851 | * c-common.h (objc_start_method_definition): Return bool instead |
10852 | of void. | |
10853 | * stub-objc.c (objc_start_method_definition): Return bool instead | |
10854 | of void. | |
10855 | ||
10856 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> | |
10857 | ||
10858 | PR objc/25965 | |
10859 | * c-common.h (objc_get_interface_ivars): New declaration. | |
10860 | * stub-objc.c (objc_get_interface_ivars): New stub. | |
29a80ea6 | 10861 | |
de621752 ILT |
10862 | 2010-09-15 Ian Lance Taylor <iant@google.com> |
10863 | ||
10864 | * c-common.c (parse_optimize_options): Do not capitalize warning | |
06730c5d | 10865 | messages. Remove period at end of warning message. |
de621752 | 10866 | |
ba885ec5 NS |
10867 | 2010-09-09 Nathan Sidwell <nathan@codesourcery.com> |
10868 | ||
10869 | * c-common.c (handle_alias_ifunc_attribute): New, broken out of ... | |
10870 | (handle_alias_attribute): ... here. | |
10871 | (handle_ifunc_attribute): New. | |
10872 | ||
c5ee1358 MM |
10873 | 2010-09-06 Mark Mitchell <mark@codesourcery.com> |
10874 | ||
10875 | * c-common.h (do_warn_double_promotion): Declare. | |
10876 | * c-common.c (do_warn_double_promotion): Define. | |
10877 | ||
0a0b3574 MM |
10878 | 2010-09-05 Mark Mitchell <mark@codesourcery.com> |
10879 | ||
10880 | * c.opt (Wdouble-promotion): New. | |
10881 | ||
d1779886 JM |
10882 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
10883 | ||
10884 | * c.opt (falt-external-templates, fhuge-objects, fvtable-gc, | |
10885 | fvtable-thunks, fxref): Mark no longer supported in help text. | |
10886 | ||
2d2bd949 JM |
10887 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
10888 | ||
10889 | * c.opt (Wimport, fall-virtual, falt-external-templates, | |
10890 | fdefault-inline, fenum-int-equiv, fexternal-templates, | |
10891 | fguiding-decls, fhonor-std, fhuge-objects, flabels-ok, | |
10892 | fname-mangling-version-, fnew-abi, fnonnull-objects, | |
10893 | foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable, | |
10894 | fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as | |
10895 | applicable. | |
10896 | (fhandle-exceptions): Mark with Alias and Warn. | |
10897 | * c-opts.c (c_common_handle_option): Don't handle options marked | |
10898 | as ignored. | |
10899 | ||
5de8299c JM |
10900 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
10901 | ||
10902 | * c.opt (Wcomments, Werror-implicit-function-declaration, | |
10903 | ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x, | |
10904 | std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as | |
10905 | aliases. | |
10906 | * c-common.c (option_codes): Use OPT_Wcomment instead of | |
10907 | OPT_Wcomments. | |
10908 | * c-opts.c (warning_as_error_callback, c_common_handle_option): | |
10909 | Don't handle options marked as aliases. | |
10910 | ||
0ceb0201 RG |
10911 | 2010-08-25 Richard Guenther <rguenther@suse.de> |
10912 | ||
10913 | * c-common.c (c_common_get_alias_set): Remove special | |
10914 | handling for pointers. | |
10915 | ||
ac47786e NF |
10916 | 2010-08-20 Nathan Froyd <froydnj@codesourcery.com> |
10917 | ||
10918 | * c-common.c: Use FOR_EACH_VEC_ELT. | |
10919 | * c-gimplify.c: Likewise. | |
10920 | * c-pragma.c: Likewise. | |
10921 | ||
c878765b JM |
10922 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
10923 | ||
10924 | * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of | |
10925 | RejectDriver. | |
10926 | (MMDX): Change back to MMD. Mark NoDriverArg instead of | |
10927 | RejectDriver. | |
10928 | * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD | |
10929 | instead of OPT_MDX and OPT_MMDX. | |
10930 | ||
603349bf JM |
10931 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
10932 | ||
10933 | * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver. | |
10934 | ||
644fa7ac JM |
10935 | 2010-08-12 Joseph Myers <joseph@codesourcery.com> |
10936 | ||
10937 | * c.opt (MD, MMD): Change to MDX and MMDX. | |
10938 | * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX. | |
10939 | ||
481e1176 JM |
10940 | 2010-08-11 Joseph Myers <joseph@codesourcery.com> |
10941 | ||
10942 | * c-opts.c (c_common_handle_option): Call handle_generated_option | |
10943 | instead of handle_option. | |
10944 | ||
ac8dc9f7 NF |
10945 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
10946 | ||
10947 | * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push. | |
10948 | (maybe_apply_renaming_pragma): Delete unneeded declarations. | |
10949 | ||
4f8c876d NF |
10950 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
10951 | ||
10952 | * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it. | |
10953 | (pending_redefine_extname): Change type to a VEC. | |
10954 | (add_to_renaming_pragma_list): Update for new type of | |
10955 | pending_redefine_extname. | |
ac8dc9f7 | 10956 | (maybe_apply_renaming_pragma): Likewise. |
4f8c876d | 10957 | |
3b0c690e AC |
10958 | 2010-08-04 Arnaud Charlet <charlet@adacore.com> |
10959 | ||
10960 | * c-ada-spec.c (dump_ada_template): Mark underlying instance type as | |
10961 | visited. | |
10962 | (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to | |
10963 | decide whether a type has already been declared/seen. | |
10964 | Do not go to the original type. | |
10965 | (dump_nested_types): New parameter forward. | |
10966 | Generate forward declaration if needed and mark type as visited. | |
10967 | (print_ada_declaration): Call dump_nested_types if not already done. | |
10968 | Mark types as visited. | |
10969 | ||
1890bccc JM |
10970 | 2010-08-03 Joseph Myers <joseph@codesourcery.com> |
10971 | ||
10972 | * c.opt (-print-pch-checksum): Remove option. | |
10973 | * c-opts.c (c_common_handle_option): Don't handle | |
10974 | OPT_print_pch_checksum. | |
10975 | ||
5f20c657 JM |
10976 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
10977 | ||
10978 | * c-common.h (c_common_handle_option): Update prototype and return | |
10979 | value type. | |
10980 | * c-opts.c (c_common_handle_option): Update prototype and return | |
10981 | value type. Update calls to handle_option and | |
10982 | enable_warning_as_error. | |
10983 | ||
f551f80c JJ |
10984 | 2010-07-27 Jakub Jelinek <jakub@redhat.com> |
10985 | ||
10986 | PR c/45079 | |
10987 | * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR. | |
10988 | ||
61ff2bdc JM |
10989 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
10990 | ||
10991 | * c-common.h (c_common_missing_argument): Remove. | |
10992 | * c-opts.c (c_common_missing_argument): Remove. | |
10993 | * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=, | |
10994 | idirafter, imacros, include, isysroot, isystem, iquote): Add | |
10995 | MissingArgError. | |
10996 | * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove. | |
10997 | ||
7a9bf9a4 JM |
10998 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
10999 | ||
11000 | * c-common.h (c_common_option_lang_mask, | |
11001 | c_common_initialize_diagnostics, c_common_complain_wrong_lang_p): | |
11002 | New. | |
11003 | (c_common_init_options): Update prototype. | |
11004 | * c-opts.c (c_common_option_lang_mask): New. | |
11005 | (c_common_initialize_diagnostics): Split out of | |
11006 | c_common_init_options. | |
11007 | (accept_all_c_family_options, c_common_complain_wrong_lang_p): | |
11008 | New. | |
11009 | (c_common_init_options): Update prototype. Use decoded options in | |
11010 | search for -lang-asm. | |
11011 | ||
910ad8de NF |
11012 | 2010-07-15 Nathan Froyd <froydnj@codesourcery.com> |
11013 | ||
11014 | * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN. | |
11015 | * c-format.c: Likewise. | |
11016 | ||
718f9c0f MLI |
11017 | 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org> |
11018 | ||
11019 | * c-common.h: Include diagnostic-core.h. Error if already | |
11020 | included. | |
11021 | * c-semantics.c: Do not define GCC_DIAG_STYLE here. | |
11022 | ||
4d451982 MLI |
11023 | 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
11024 | ||
adfac8df | 11025 | * c-common.c (IN_GCC_FRONTEND): Do not undef. |
4d451982 MLI |
11026 | Do not include expr.h |
11027 | (vector_mode_valid_p): Move here. | |
11028 | ||
119fe915 SB |
11029 | 2010-06-21 DJ Delorie <dj@redhat.com> |
11030 | ||
11031 | * c-pragma.c (handle_pragma_diagnostic): Add push/pop, | |
11032 | allow these pragmas anywhere. | |
11033 | ||
11034 | 2010-06-14 Jakub Jelinek <jakub@redhat.com> | |
11035 | ||
11036 | PR bootstrap/44509 | |
11037 | * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h. | |
11038 | (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers. | |
11039 | (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use | |
11040 | ggc_strdup instead of xstrdup. | |
11041 | ||
11042 | 2010-06-10 Jakub Jelinek <jakub@redhat.com> | |
11043 | ||
11044 | * c-cppbuiltin.c: Include cpp-id-data.h. | |
11045 | (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables. | |
11046 | (lazy_hex_fp_value): New function. | |
11047 | (builtin_define_with_hex_fp_value): Provide definitions lazily. | |
11048 | ||
6662d794 MLI |
11049 | 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
11050 | ||
11051 | * c-gimplify.c: Do not include tree-flow.h | |
11052 | ||
38f8b050 JR |
11053 | 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com> |
11054 | ||
11055 | PR other/44034 | |
11056 | * c-common.c: Rename targetm member: | |
11057 | targetm.enum_va_list -> targetm.enum_va_list_p | |
11058 | ||
9589f23e AS |
11059 | 2010-06-28 Anatoly Sokolov <aesok@post.ru> |
11060 | ||
11061 | * c-common.c (shorten_compare): Adjust call to force_fit_type_double. | |
11062 | ||
3b06d379 SB |
11063 | 2010-06-28 Steven Bosscher <steven@gcc.gnu.org> |
11064 | ||
11065 | * c-cppbuiltin.c: Do not include except.h. | |
11066 | ||
d166d4c3 AK |
11067 | 2010-06-24 Andi Kleen <ak@linux.intel.com> |
11068 | ||
9faeb493 UB |
11069 | * c-common.c (warn_for_omitted_condop): New. |
11070 | * c-common.h (warn_for_omitted_condop): Add prototype. | |
d166d4c3 | 11071 | |
70cb8be6 JM |
11072 | 2010-06-21 Joseph Myers <joseph@codesourcery.com> |
11073 | ||
11074 | * c.opt (lang-objc): Remove. | |
11075 | * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc. | |
11076 | ||
a4c97feb JR |
11077 | 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com> |
11078 | ||
11079 | * c-opts.c: Include "tm_p.h". | |
11080 | ||
6e2f1956 JM |
11081 | 2010-06-20 Joseph Myers <joseph@codesourcery.com> |
11082 | ||
11083 | * c-common.c (parse_optimize_options): Update call to | |
11084 | decode_options. | |
11085 | ||
bc87224e NF |
11086 | 2010-06-18 Nathan Froyd <froydnj@codesourcery.com> |
11087 | ||
11088 | * c-common.c (record_types_used_by_current_var_decl): Adjust for | |
11089 | new type of types_used_by_cur_var_decl. | |
11090 | ||
b49cf425 JR |
11091 | 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com> |
11092 | ||
11093 | PR bootstrap/44512 | |
11094 | * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast | |
11095 | for C++ standard compliance. | |
11096 | ||
59f9c2ed JM |
11097 | 2010-06-16 Jason Merrill <jason@redhat.com> |
11098 | ||
11099 | * c.opt: Add -Wnoexcept. | |
11100 | ||
33766b66 RG |
11101 | 2010-06-16 Richard Guenther <rguenther@suse.de> |
11102 | ||
11103 | PR c/44555 | |
11104 | * c-common.c (c_common_truthvalue_conversion): Remove | |
11105 | premature and wrong optimization concering ADDR_EXPRs. | |
11106 | ||
eff7e30c AC |
11107 | 2010-06-15 Arnaud Charlet <charlet@adacore.com> |
11108 | ||
11109 | * c-ada-spec.c (dump_sloc): Remove column info. | |
11110 | (is_simple_enum): New function. | |
11111 | (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada | |
11112 | enum types when relevant. | |
11113 | ||
6312e84d MLI |
11114 | 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
11115 | ||
9faeb493 | 11116 | * c-common.c (conversion_warning): Warn at expression |
6312e84d MLI |
11117 | location. |
11118 | ||
1cb42611 JM |
11119 | 2010-06-10 Joseph Myers <joseph@codesourcery.com> |
11120 | ||
11121 | * c-opts.c (c_common_handle_option): Don't handle | |
11122 | OPT_fshow_column. | |
11123 | ||
a9429e29 LB |
11124 | 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com> |
11125 | ||
11126 | * c-pragma.c (push_alignment): Use typed GC allocation. | |
11127 | (handle_pragma_push_options): Likewise. | |
11128 | ||
11129 | * c-common.c (parse_optimize_options): Likewise. | |
11130 | ||
11131 | * c-common.h (struct sorted_fields_type): Add variable_size GTY | |
11132 | option. | |
11133 | ||
5498f011 JM |
11134 | 2010-06-07 Joseph Myers <joseph@codesourcery.com> |
11135 | ||
11136 | * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin, | |
11137 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
11138 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
11139 | flag_signed_bitfields, warn_strict_null_sentinel, | |
11140 | flag_nil_receivers, flag_zero_link, flag_replace_objc_classes, | |
11141 | flag_gen_declaration, flag_no_gnu_keywords, | |
11142 | flag_implement_inlines, flag_implicit_templates, | |
11143 | flag_implicit_inline_templates, flag_optional_diags, | |
11144 | flag_elide_constructors, flag_default_inline, flag_rtti, | |
11145 | flag_conserve_space, flag_access_control, flag_check_new, | |
11146 | flag_new_for_scope, flag_weak, flag_working_directory, | |
11147 | flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr, | |
11148 | flag_enforce_eh_specs, flag_threadsafe_statics, | |
11149 | flag_pretty_templates): Remove. | |
11150 | * c-common.h (flag_preprocess_only, flag_nil_receivers, | |
11151 | flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link, | |
11152 | flag_replace_objc_classes, flag_undef, flag_no_builtin, | |
11153 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
11154 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
11155 | flag_const_strings, flag_signed_bitfields, flag_gen_declaration, | |
11156 | flag_no_gnu_keywords, flag_implement_inlines, | |
11157 | flag_implicit_templates, flag_implicit_inline_templates, | |
11158 | flag_optional_diags, flag_elide_constructors, flag_default_inline, | |
11159 | flag_rtti, flag_conserve_space, flag_access_control, | |
11160 | flag_check_new, flag_new_for_scope, flag_weak, | |
11161 | flag_working_directory, flag_use_cxa_atexit, | |
11162 | flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs, | |
11163 | flag_threadsafe_statics, flag_pretty_templates, | |
11164 | warn_strict_null_sentinel): Remove. | |
11165 | * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm, | |
11166 | fbuiltin, fcheck-new, fconserve-space, felide-constructors, | |
11167 | fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines, | |
11168 | fimplicit-inline-templates, fimplicit-templates, | |
11169 | flax-vector-conversions, fms-extensions, fnil-receivers, | |
11170 | fnonansi-builtins, fpretty-templates, freplace-objc-classes, | |
11171 | frtti, fshort-double, fshort-enums, fshort-wchar, | |
11172 | fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics, | |
11173 | funsigned-bitfields, funsigned-char, fuse-cxa-atexit, | |
11174 | fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link, | |
11175 | gen-decls, undef): Use Var. | |
11176 | (fdefault-inline, foptional-diags): Document as doing nothing. | |
11177 | * c-opts.c (c_common_handle_option): Remove cases for options now | |
11178 | using Var. Mark ignored options as such. | |
11179 | ||
39dabefd SB |
11180 | 2010-06-05 Steven Bosscher <steven@gcc.gnu.org> |
11181 | ||
9faeb493 | 11182 | * c-common.c: Moved to here from parent directory. |
39dabefd SB |
11183 | * c-common.def: Likewise. |
11184 | * c-common.h: Likewise. | |
11185 | * c-cppbuiltin.c: Likewise. | |
11186 | * c-dump.c: Likewise. | |
11187 | * c-format.c: Likewise. | |
11188 | * c-format.h : Likewise. | |
11189 | * c-gimplify.c: Likewise. | |
11190 | * c-lex.c: Likewise. | |
11191 | * c-omp.c: Likewise. | |
11192 | * c.opt: Likewise. | |
11193 | * c-opts.c: Likewise. | |
11194 | * c-pch.c: Likewise. | |
11195 | * c-ppoutput.c: Likewise. | |
11196 | * c-pragma.c: Likewise. | |
11197 | * c-pragma.h: Likewise. | |
11198 | * c-pretty-print.c: Likewise. | |
11199 | * c-pretty-print.h: Likewise. | |
11200 | * c-semantics.c: Likewise. | |
11201 | * stub-objc.c: Likewise. | |
11202 | ||
11203 | * c-common.c: Include gt-c-family-c-common.h. | |
11204 | * c-pragma.c: Include gt-c-family-c-pragma.h. | |
11205 | \f | |
8d9254fc | 11206 | Copyright (C) 2010-2020 Free Software Foundation, Inc. |
39dabefd SB |
11207 | |
11208 | Copying and distribution of this file, with or without modification, | |
11209 | are permitted in any medium without royalty provided the copyright | |
11210 | notice and this notice are preserved. |