]>
Commit | Line | Data |
---|---|---|
eb0e7c34 RB |
1 | 2017-03-02 Richard Biener <rguenther@suse.de> |
2 | ||
3 | PR c/79756 | |
4 | * c-common.c (c_common_mark_addressable_vec): Look through | |
5 | C_MAYBE_CONST_EXPR. | |
6 | ||
9453ba0a ML |
7 | 2017-02-28 Martin Liska <mliska@suse.cz> |
8 | ||
9 | * c.opt: Replace space with tabular for options of <number> | |
10 | type. | |
11 | ||
6a825afe ML |
12 | 2017-02-28 Martin Liska <mliska@suse.cz> |
13 | ||
14 | * c.opt: Fix --help=option -Q for options which are of | |
15 | an enum type. | |
16 | ||
4227c9ad JJ |
17 | 2017-02-24 Jakub Jelinek <jakub@redhat.com> |
18 | ||
19 | PR c++/79588 | |
20 | * c-common.c (check_function_restrict): New function. | |
21 | (check_function_arguments): Add FNDECL argument. Call | |
22 | check_function_restrict if -Wrestrict. | |
23 | * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY | |
24 | and NARGS. Use auto_vec for ARG_POSITIONS, simplify. | |
25 | * c-common.h (check_function_arguments): Add FNDECL argument. | |
26 | (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS. | |
27 | ||
59909673 EB |
28 | 2017-02-24 Eric Botcazou <ebotcazou@adacore.com> |
29 | ||
30 | * c-ada-spec.c (dump_ada_function_declaration): Add comment about the | |
31 | treatment of parameters with pointer-to-tagged type and tidy up. | |
32 | (print_ada_methods): Remove the special treatment of C++ static member | |
33 | functions. | |
34 | ||
54dcd526 ML |
35 | 2017-02-22 Martin Liska <mliska@suse.cz> |
36 | ||
37 | * c.opt: Replace inequality signs with square brackets | |
38 | for -Wnornalized. | |
39 | ||
00bc9de3 JJ |
40 | 2017-02-21 Jakub Jelinek <jakub@redhat.com> |
41 | ||
42 | PR c++/79641 | |
43 | * c-attribs.c (handle_mode_attribute): Use build_qualified_type to | |
44 | preserve quals. | |
45 | ||
97fcf744 JM |
46 | 2017-02-17 Joseph Myers <joseph@codesourcery.com> |
47 | ||
48 | * c-cppbuiltin.c (builtin_define_float_constants): Define | |
49 | __DECIMAL_DIG__ to the value for long double. | |
50 | ||
c7545f1c MP |
51 | 2017-02-15 Marek Polacek <polacek@redhat.com> |
52 | ||
53 | PR c/79515 | |
54 | * c-warn.c (do_warn_double_promotion): Don't warn if an invalid | |
55 | conversion has occured. | |
56 | ||
c2e84327 DM |
57 | 2017-01-24 David Malcolm <dmalcolm@redhat.com> |
58 | ||
59 | * c-common.c (c_common_reswords): Add "__RTL". | |
60 | * c-common.h (enum rid): Add RID_RTL. | |
61 | ||
2ebd93e1 MP |
62 | 2017-01-20 Marek Polacek <polacek@redhat.com> |
63 | ||
64 | PR c/64279 | |
65 | * c-common.h (do_warn_duplicated_branches_r): Declare. | |
66 | * c-gimplify.c (c_genericize): Walk the function tree calling | |
67 | do_warn_duplicated_branches_r. | |
68 | * c-warn.c (expr_from_macro_expansion_r): New. | |
69 | (do_warn_duplicated_branches): New. | |
70 | (do_warn_duplicated_branches_r): New. | |
71 | * c.opt (Wduplicated-branches): New option. | |
72 | ||
0d80ab91 DM |
73 | 2017-01-17 David Malcolm <dmalcolm@redhat.com> |
74 | ||
75 | PR c++/71497 | |
76 | * c-indentation.c (warn_for_misleading_indentation): Use the past | |
77 | subjunctive in the note. | |
78 | ||
7f991c36 AH |
79 | 2017-01-17 Aldy Hernandez <aldyh@redhat.com> |
80 | ||
81 | PR c/79116 | |
82 | * array-notation-common.c (cilkplus_extract_an_triplets): Convert | |
83 | start type to integer_type. | |
84 | ||
1c70261c JJ |
85 | 2017-01-16 Jakub Jelinek <jakub@redhat.com> |
86 | ||
87 | PR driver/49726 | |
88 | * c.opt (gen-decls): Add Driver flag. | |
89 | ||
1ddca3f3 PC |
90 | 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com> |
91 | ||
92 | Revert: | |
93 | 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com> | |
94 | ||
95 | PR c++/71737 | |
96 | * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE. | |
97 | ||
7d2f3f1d PC |
98 | 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com> |
99 | ||
100 | PR c++/71737 | |
101 | * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE. | |
102 | ||
bce6f760 MS |
103 | 2017-01-12 Martin Sebor <msebor@redhat.com> |
104 | ||
105 | (-Wformat-overflow): ...to this. | |
106 | ||
bf5fbf46 MS |
107 | 2017-01-11 Martin Sebor <msebor@redhat.com> |
108 | ||
109 | PR c/78768 | |
110 | * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation): | |
111 | Also enable for LTO. | |
112 | ||
e363df3f JM |
113 | 2017-01-10 Jason Merrill <jason@redhat.com> |
114 | ||
115 | Implement P0195R2, C++17 variadic using. | |
116 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using. | |
117 | ||
bd2c6270 JJ |
118 | 2017-01-09 Jakub Jelinek <jakub@redhat.com> |
119 | ||
120 | PR translation/79019 | |
121 | PR translation/79020 | |
122 | * c.opt (Wnormalized=): Fix typo in description. | |
123 | ||
efcc8d38 MS |
124 | 2017-01-08 Martin Sebor <msebor@redhat.com> |
125 | ||
126 | PR middle-end/77708 | |
127 | * c.opt (-Wformat-truncation): New option. | |
128 | ||
435f3f7a AO |
129 | 2017-01-06 Alexandre Oliva <aoliva@redhat.com> |
130 | ||
131 | * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit | |
132 | value to unsigned short to fit in 4 hex digits without | |
133 | warnings. | |
134 | ||
4e89adf9 EB |
135 | 2017-01-05 Eric Botcazou <ebotcazou@adacore.com> |
136 | ||
137 | * c.opt (fsso-struct): Add 'native' value. | |
138 | ||
cd445b54 ML |
139 | 2017-01-05 Martin Liska <mliska@suse.cz> |
140 | ||
141 | PR pch/78970 | |
142 | * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled | |
143 | header. | |
144 | ||
a9342885 MP |
145 | 2017-01-04 Marek Polacek <polacek@redhat.com> |
146 | ||
147 | PR c++/64767 | |
148 | * c.opt (Wpointer-compare): New option. | |
149 | ||
fc73e60c JJ |
150 | 2017-01-04 Jakub Jelinek <jakub@redhat.com> |
151 | ||
152 | PR driver/78957 | |
153 | * c.opt (fsso-struct=): Add RejectNegative. | |
154 | ||
cbe34bb5 JJ |
155 | 2017-01-01 Jakub Jelinek <jakub@redhat.com> |
156 | ||
157 | Update copyright years. | |
158 | ||
d4a6c0ea ML |
159 | 2016-12-29 Martin Liska <mliska@suse.cz> |
160 | ||
161 | PR c/78933 | |
162 | * c.opt (strong-eval-order): Add RejectNegative keyword. | |
163 | ||
67a5ad7c JM |
164 | 2016-12-22 Jason Merrill <jason@redhat.com> |
165 | ||
166 | Implement P0522R0, matching of template template arguments. | |
167 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
168 | __cpp_template_template_args. | |
169 | ||
0dba7960 JJ |
170 | 2016-12-21 Jakub Jelinek <jakub@redhat.com> |
171 | ||
172 | PR bootstrap/78817 | |
173 | * c-common.c (struct nonnull_arg_ctx): New type. | |
174 | (check_function_nonnull): Return bool instead of void. Use | |
175 | nonnull_arg_ctx as context rather than just location_t. | |
176 | (check_nonnull_arg): Adjust for the new context type, set | |
177 | warned_p to true if a warning has been diagnosed. | |
178 | (check_function_arguments): Return bool instead of void. | |
179 | * c-common.h (check_function_arguments): Adjust prototype. | |
180 | ||
31bfc9b9 JM |
181 | 2016-12-21 Jason Merrill <jason@redhat.com> |
182 | ||
183 | * c.opt (-fnew-ttp-matching): New flag. | |
184 | * c-opts.c (c_common_post_options): Default on if -std=c++1z. | |
185 | ||
629b3d75 MJ |
186 | 2016-12-14 Martin Jambor <mjambor@suse.cz> |
187 | ||
188 | * c-omp.c: Include omp-general.h instead of omp-low.h. | |
189 | (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new | |
190 | name. | |
191 | ||
474da67e MS |
192 | 2016-12-14 Martin Sebor <msebor@redhat.com> |
193 | ||
194 | PR c/17308 | |
195 | * c-common.c (check_nonnull_arg): Disable when optimization | |
196 | is enabled. | |
197 | ||
fe366b87 MP |
198 | 2016-12-12 Marek Polacek <polacek@redhat.com> |
199 | ||
200 | PR c++/78647 | |
201 | * c-common.c (attribute_fallthrough_p): Return false for | |
202 | error_mark_node. | |
203 | ||
8bd9f164 MS |
204 | 2016-12-08 Martin Sebor <msebor@redhat.com> |
205 | ||
206 | PR c/78284 | |
207 | * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options. | |
208 | ||
060162e0 MS |
209 | 2016-12-08 Martin Sebor <msebor@redhat.com> |
210 | ||
211 | PR c/78165 | |
212 | * c-pretty-print (pp_c_integer_constant): Avoid formatting type | |
213 | suffix. | |
214 | gcc/testsuite/ChangeLog: | |
215 | ||
ee92e7ba MS |
216 | 2016-12-07 Martin Sebor <msebor@redhat.com> |
217 | ||
218 | PR c/53562 | |
219 | PR middle-end/77784 | |
220 | PR middle-end/78149 | |
221 | PR middle-end/78138 | |
222 | * c.opt (-Wstringop-overflow): New option. | |
223 | ||
84b0769e MO |
224 | 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com> |
225 | ||
226 | * c-attribs.c (asan odr indicator): New attribute. | |
227 | (handle_asan_odr_indicator_attribute): New function. | |
228 | ||
7fa6a965 PK |
229 | 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
230 | ||
231 | * c-common.c (c_common_nodes_and_builtins): Remove initialization of | |
232 | ptrdiff_type_node; | |
233 | ||
56d8ffc1 JG |
234 | 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com> |
235 | ||
236 | * c-common.c (excess_precision_mode_join): New. | |
237 | (c_ts18661_flt_eval_method): New. | |
238 | (c_c11_flt_eval_method): Likewise. | |
239 | (c_flt_eval_method): Likewise. | |
240 | * c-common.h (excess_precision_mode_join): New. | |
241 | (c_flt_eval_method): Likewise. | |
242 | * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New. | |
243 | (cpp_iec_559_value): Call it. | |
244 | (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__, | |
245 | call c_flt_eval_method to set __FLT_EVAL_METHOD__ and | |
246 | __FLT_EVAL_METHOD_TS_18661_3__. | |
247 | ||
04f0fcf7 JG |
248 | 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com> |
249 | ||
250 | * c-opts.c (c_common_post_options): Add logic to handle the default | |
251 | case for -fpermitted-flt-eval-methods. | |
252 | ||
fb2675cb PB |
253 | 2016-11-23 Paolo Bonzini <bonzini@gnu.org> |
254 | ||
255 | * c.opt (Wexpansion-to-defined): New. | |
256 | ||
ec1c5694 JJ |
257 | 2016-11-23 Jakub Jelinek <jakub@redhat.com> |
258 | ||
259 | PR target/78451 | |
260 | * c-pragma.c (handle_pragma_target): Don't replace | |
261 | current_target_pragma, but chainon the new args to the current one. | |
262 | ||
730c9e75 NS |
263 | 2016-11-22 Nathan Sidwell <nathan@acm.org> |
264 | ||
265 | * array-notation-common.c (cilkplus_extract_an_trplets): Fix | |
cacd29be | 266 | indentation and formatting. |
730c9e75 | 267 | |
89990732 MS |
268 | 2016-11-21 Martin Sebor <msebor@redhat.com> |
269 | ||
270 | * c.opt (-fprintf-return-value): Enable by default. | |
271 | ||
48330c93 BE |
272 | 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de> |
273 | ||
274 | PR c++/71973 | |
275 | * c.opt (-Wbuiltin-declaration-mismatch): New warning. | |
276 | * c-common.c (c_common_nodes_and_builtins): Initialize | |
277 | const_tm_ptr_type_node. | |
278 | ||
0d939c95 MP |
279 | 2016-11-16 Marek Polacek <polacek@redhat.com> |
280 | ||
281 | PR c/78285 | |
282 | * c-common.c (c_add_case_label): Turn error_at calls into inform. | |
283 | ||
8e745a17 JJ |
284 | 2016-11-14 Jakub Jelinek <jakub@redhat.com> |
285 | ||
286 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings. | |
287 | ||
1ee62b92 | 288 | 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com> |
8e745a17 JJ |
289 | Richard Biener <rguenther@suse.de> |
290 | ||
291 | * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types. | |
292 | * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI. | |
293 | * c.opt (fgimple): New option. | |
1ee62b92 | 294 | |
22b15758 UB |
295 | 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
296 | ||
297 | PR c/35503 | |
298 | * c-common.h (warn_for_restrict): Declare. | |
299 | * c-warn.c: Include gcc-rich-location.h. | |
300 | (warn_for_restrict): New function. | |
301 | * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier. | |
302 | (gcc_cdiag_char_table): Likewise. | |
303 | (gcc_cxxdiag_char_table): Likewise. | |
304 | * c.opt (Wrestrict): New option. | |
305 | ||
4be719cd EB |
306 | 2016-11-13 Eric Botcazou <ebotcazou@adacore.com> |
307 | ||
308 | * c-ada-spec.c (print_ada_declaration): For typedef declarations, look | |
309 | for nested types only if the type is a record or union and dump SLOC. | |
310 | ||
4a826ca6 JM |
311 | 2016-11-09 Jason Merrill <jason@redhat.com> |
312 | ||
313 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto. | |
314 | ||
2e955d50 JJ |
315 | 2016-11-09 Jakub Jelinek <jakub@redhat.com> |
316 | ||
317 | * c-ubsan.c (ubsan_instrument_shift): Handle split | |
318 | -fsanitize=shift-base and -fsanitize=shift-exponent. | |
319 | ||
51dc6603 JM |
320 | 2016-11-07 Jason Merrill <jason@redhat.com> |
321 | ||
322 | * c.opt (Wc++1z-compat): New. | |
323 | * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type. | |
324 | ||
6dc4a604 ML |
325 | 2016-11-07 Martin Liska <mliska@suse.cz> |
326 | ||
327 | * c-warn.c (warn_for_unused_label): Save all labels used | |
328 | in goto or in &label. | |
329 | ||
b302001e JM |
330 | 2016-11-03 Jason Merrill <jason@redhat.com> |
331 | ||
332 | * c-cppbuiltin.c (c_cpp_builtins): Correct | |
333 | __cpp_inheriting_constructors. | |
334 | ||
31f7f784 JM |
335 | 2016-11-01 Jason Merrill <jason@redhat.com> |
336 | ||
2bc78e3c JM |
337 | * c-cppbuiltin.c (c_cpp_builtins): Update |
338 | __cpp_inheriting_constructors. | |
339 | ||
31f7f784 JM |
340 | * c.opt (-fnew-inheriting-ctors): New. |
341 | * c-opts.c: Default to on for ABI 11+. | |
342 | ||
dcb466ec JJ |
343 | 2016-10-31 Jakub Jelinek <jakub@redhat.com> |
344 | ||
345 | PR c++/77948 | |
346 | * c.opt (fext-numeric-literals): Add Var and Init. | |
347 | * c-opts.c (c_common_handle_option): Don't clear | |
348 | cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}. | |
349 | (c_common_post_options): Clear it here if not set | |
350 | explicitly. | |
351 | ||
52e1b91e AH |
352 | 2016-10-28 Aldy Hernandez <aldyh@redhat.com> |
353 | ||
354 | PR debug/77773 | |
355 | * c-pretty-print.c (simple_type_specifier): Do not dereference `t' | |
356 | if NULL. | |
357 | ||
e16f1cc7 JJ |
358 | 2016-10-25 Jakub Jelinek <jakub@redhat.com> |
359 | ||
360 | * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER. | |
361 | * c-common.c (c_common_reswords): Add __builtin_launder. | |
362 | ||
f8348061 BE |
363 | 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de> |
364 | ||
365 | * c-common.c (c_common_truthvalue_conversion): Warn for | |
366 | multiplications in boolean context. Fix the quoting of '<<' and '<' | |
367 | in the shift warning. | |
368 | ||
eff89e01 BE |
369 | 2016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de> |
370 | ||
371 | * c-common.c (c_common_truthvalue_conversion): Fix the comment. | |
372 | ||
24bc7bf4 JM |
373 | 2016-10-20 Jason Merrill <jason@redhat.com> |
374 | ||
375 | * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value. | |
376 | ||
4c712374 BE |
377 | 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de> |
378 | ||
379 | * c-common.c (c_common_truthvalue_conversion): Warn only for signed | |
380 | integer shift ops in boolean context. | |
381 | ||
382 | 2016-10-18 Aldy Hernandez <aldyh@redhat.com> | |
adc577c5 AH |
383 | |
384 | * c.opt (Walloca): New. | |
385 | (Walloca-larger-than=): New. | |
386 | (Wvla-larger-than=): New. | |
387 | ||
8fa18c06 MP |
388 | 2016-10-17 Marek Polacek <polacek@redhat.com> |
389 | ||
390 | * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names. | |
391 | Return immediately when finding a match. | |
392 | (warn_tautological_cmp): Remove a boolean variable that is no longer | |
393 | needed. | |
394 | ||
b12b1915 MP |
395 | 2016-10-17 Marek Polacek <polacek@redhat.com> |
396 | ||
397 | * c-attribs.c: New file. | |
398 | * c-common.c: Move attributes handling to c-attribs.c. | |
399 | (get_nonnull_operand): No longer static. | |
400 | * c-common.h: Move the declarations from c-attribs.c to its own section. | |
401 | ||
2045acd9 JM |
402 | 2016-10-14 Jason Merrill <jason@redhat.com> |
403 | ||
404 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases | |
405 | and __cpp_deduction_guides. | |
406 | ||
14a2c9aa JM |
407 | 2016-10-13 Jason Merrill <jason@redhat.com> |
408 | ||
409 | * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables. | |
410 | ||
4d0cdd0c TP |
411 | 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com> |
412 | ||
413 | * c-cppbuiltin.c: Include memmodel.h. | |
414 | * c-opts.c: Likewise. | |
415 | * c-pragma.c: Likewise. | |
416 | * c-warn.c: Likewise. | |
417 | ||
70f6d5e1 JJ |
418 | 2016-10-12 Jakub Jelinek <jakub@redhat.com> |
419 | ||
420 | * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option. | |
421 | (Wimplicit-fallthrough=): Enable for these languages by -Wextra. | |
422 | * c-opts.c (sanitize_cpp_opts): Initialize | |
423 | cpp_opts->cpp_warn_implicit_fallthrough. | |
424 | ||
78f61294 MP |
425 | 2016-10-11 Marek Polacek <polacek@redhat.com> |
426 | ||
427 | * c-common.c (warning_candidate_p): Change the return type to bool | |
428 | and return true/false instead of 1/0. | |
429 | (vector_mode_valid_p): Likewise. | |
430 | ||
038b5cc0 MP |
431 | 2016-10-11 Marek Polacek <polacek@redhat.com> |
432 | ||
433 | * c-common.c (fold_for_warn): No longer static. | |
434 | (bool_promoted_to_int_p): Likewise. | |
435 | (c_common_get_narrower): Likewise. | |
436 | (constant_expression_warning): Move to c-warn.c. | |
437 | (constant_expression_error): Likewise. | |
438 | (overflow_warning): Likewise. | |
439 | (warn_logical_operator): Likewise. | |
440 | (find_array_ref_with_const_idx_r): Likewise. | |
441 | (warn_tautological_cmp): Likewise. | |
442 | (expr_has_boolean_operands_p): Likewise. | |
443 | (warn_logical_not_parentheses): Likewise. | |
444 | (warn_if_unused_value): Likewise. | |
445 | (strict_aliasing_warning): Likewise. | |
446 | (sizeof_pointer_memaccess_warning): Likewise. | |
447 | (check_main_parameter_types): Likewise. | |
448 | (conversion_warning): Likewise. | |
449 | (warnings_for_convert_and_check): Likewise. | |
450 | (match_case_to_enum_1): Likewise. | |
451 | (match_case_to_enum): Likewise. | |
452 | (c_do_switch_warnings): Likewise. | |
453 | (warn_for_omitted_condop): Likewise. | |
454 | (readonly_error): Likewise. | |
455 | (lvalue_error): Likewise. | |
456 | (invalid_indirection_error): Likewise. | |
457 | (warn_array_subscript_with_type_char): Likewise. | |
458 | (warn_about_parentheses): Likewise. | |
459 | (warn_for_unused_label): Likewise. | |
460 | (warn_for_div_by_zero): Likewise. | |
461 | (warn_for_memset): Likewise. | |
462 | (warn_for_sign_compare): Likewise. | |
463 | (do_warn_double_promotion): Likewise. | |
464 | (do_warn_unused_parameter): Likewise. | |
465 | (record_locally_defined_typedef): Likewise. | |
466 | (maybe_record_typedef_use): Likewise. | |
467 | (maybe_warn_unused_local_typedefs): Likewise. | |
468 | (maybe_warn_bool_compare): Likewise. | |
469 | (maybe_warn_shift_overflow): Likewise. | |
470 | (warn_duplicated_cond_add_or_warn): Likewise. | |
471 | (diagnose_mismatched_attributes): Likewise. | |
472 | * c-common.h: Move the declarations from c-warn.c to its own section. | |
473 | * c-warn.c: New file. | |
474 | ||
627be19f JM |
475 | 2016-10-08 Jason Merrill <jason@redhat.com> |
476 | ||
477 | * c-common.c (c_common_truthvalue_conversion): Don't distribute | |
478 | into COND_EXPR in C++. | |
479 | ||
7bad794a JJ |
480 | 2016-10-08 Jakub Jelinek <jakub@redhat.com> |
481 | ||
482 | * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT | |
483 | token with PREV_FALLTHROUGH, skip all following CPP_PADDING and | |
484 | CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards. | |
485 | ||
be845b04 JJ |
486 | 2016-10-07 Jakub Jelinek <jakub@redhat.com> |
487 | ||
488 | Implement LWG2296 helper intrinsic | |
489 | * c-common.h (enum rid): Add RID_ADDRESSOF. | |
490 | * c-common.c (c_common_reswords): Add __builtin_addressof. | |
491 | ||
c09c4992 BE |
492 | 2016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de> |
493 | ||
494 | PR c++/77700 | |
495 | * c-common.c (c_common_truthvalue_conversion): Warn also for | |
496 | suspicious enum values in boolean context. | |
497 | ||
342cfb3e JJ |
498 | 2016-10-06 Jakub Jelinek <jakub@redhat.com> |
499 | ||
500 | Implement P0258R2 - helper for C++17 | |
501 | std::has_unique_object_representations trait | |
502 | * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS. | |
503 | * c-common.c (c_common_reswords): Add | |
504 | __has_unique_object_representations. | |
505 | ||
2e69f143 JJ |
506 | 2016-10-05 Jakub Jelinek <jakub@redhat.com> |
507 | ||
508 | PR sanitizer/66343 | |
509 | * c-ubsan.c (ubsan_instrument_return): Don't call | |
510 | initialize_sanitizer_builtins here. | |
511 | ||
700fff34 BE |
512 | 2016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de> |
513 | ||
514 | * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious | |
515 | conditional expression in boolean context when only one arm is | |
516 | non-boolean. | |
517 | ||
9563bfcd JJ |
518 | 2016-10-05 Jakub Jelinek <jakub@redhat.com> |
519 | ||
04a32443 JJ |
520 | PR sanitizer/77823 |
521 | * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0 | |
522 | is not integral. | |
523 | ||
9563bfcd JJ |
524 | * c-common.c (c_common_reswords): Update comment for C++11. |
525 | ||
f1644724 JM |
526 | 2016-10-04 Jason Merrill <jason@redhat.com> |
527 | ||
528 | * c-common.c (make_tree_vector_from_ctor): New. | |
529 | * c-common.h: Declare it. | |
530 | ||
5a79befb JJ |
531 | 2016-10-04 Jakub Jelinek <jakub@redhat.com> |
532 | ||
533 | * c-cppbuiltin.c (c_cpp_builtins): Don't define | |
534 | __LIBGCC_JCR_SECTION_NAME__. | |
535 | ||
1633d3b9 BE |
536 | 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de> |
537 | ||
538 | * c-common.c (c_common_truthvalue_conversion): Warn for suspicious | |
539 | left shift in boolean context. | |
540 | ||
a2c6e7f2 JJ |
541 | 2016-09-29 Jakub Jelinek <jakub@redhat.com> |
542 | ||
543 | Implement P0001R1 - C++17 removal of register storage class specifier | |
544 | * c.opt (Wregister): New warning. | |
545 | * c-opts.c (c_common_post_options): Enable -Wregister by | |
546 | default for C++17. | |
547 | ||
75304c87 JG |
548 | 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com> |
549 | ||
550 | * c-opts.c (c_common_post_options): Remove special case for | |
551 | TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard | |
552 | in C++. | |
553 | ||
bbfac6da JJ |
554 | 2016-09-27 Jakub Jelinek <jakub@redhat.com> |
555 | ||
6e39060a JJ |
556 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for |
557 | -std=c++1z. | |
558 | ||
bbfac6da JJ |
559 | * c-ada-spec.c (print_ada_declaration): Remove break after return. |
560 | ||
e73cf9a2 TP |
561 | 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com> |
562 | ||
563 | * c-common.c: Include memmodel.h. | |
564 | ||
c6147dc4 MP |
565 | 2016-09-26 Marek Polacek <polacek@redhat.com> |
566 | ||
567 | * c-lex.c (c_common_has_attribute): Handle attribute fallthrough. | |
568 | ||
81fea426 MP |
569 | 2016-09-26 Marek Polacek <polacek@redhat.com> |
570 | ||
571 | PR c/7652 | |
572 | * c-common.c (c_common_attribute_table): Add fallthrough attribute. | |
573 | (handle_fallthrough_attribute): New function. | |
574 | (attribute_fallthrough_p): New function. | |
575 | * c-common.h (attribute_fallthrough_p): Declare. | |
576 | ||
9a2300e9 MP |
577 | 2016-09-24 Marek Polacek <polacek@redhat.com> |
578 | ||
579 | PR c/77490 | |
580 | * c.opt (Wbool-operation): New. | |
581 | ||
a09e9e35 BE |
582 | 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de> |
583 | ||
584 | * c-common.c (c_common_truthvalue_conversion): Inhibit | |
585 | Wint-in-bool-context warning with from_macro_definition_at. | |
586 | Mention the expression will always evaluate to true. | |
587 | ||
d43b4ccc MS |
588 | 2016-09-21 Martin Sebor <msebor@redhat.com> |
589 | ||
590 | PR bootstrap/77676 | |
591 | * c.opt (fprintf-return-value): Temporarily initialize to zero | |
592 | to unblock bootstrap failures. | |
593 | ||
2e1c20b1 JJ |
594 | 2016-09-21 Jakub Jelinek <jakub@redhat.com> |
595 | ||
596 | PR c++/77651 | |
597 | * c.opt (Waligned-new=): Add RejectNegative. | |
598 | (faligned-new=): Likewise. Spelling fix - change | |
599 | aligned_new_threshhold to aligned_new_threshold. | |
600 | * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold | |
601 | to aligned_new_threshold. | |
602 | ||
88d0c3f0 MS |
603 | 2016-09-20 Martin Sebor <msebor@redhat.com> |
604 | ||
605 | PR middle-end/49905 | |
606 | * c.opt: Add -Wformat-length and -fprintf-return-value. | |
607 | ||
144a96e4 BE |
608 | 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de> |
609 | ||
610 | PR c++/77434 | |
611 | * c.opt (Wint-in-bool-context): New warning. | |
612 | * c-common.c (c_common_truthvalue_conversion): Warn on integer | |
613 | constants in boolean context. | |
614 | ||
63012d9a JM |
615 | 2016-09-19 Joseph Myers <joseph@codesourcery.com> |
616 | ||
617 | * c-common.c (max_align_t_align): Also consider alignment of | |
618 | float128_type_node. | |
619 | ||
931388ce JM |
620 | 2016-09-15 Jason Merrill <jason@redhat.com> |
621 | ||
622 | * c-common.c (check_cxx_fundamental_alignment_constraints): Check | |
623 | DECL_EXTERNAL. | |
624 | ||
38711381 JM |
625 | 2016-09-14 Jason Merrill <jason@redhat.com> |
626 | ||
627 | * c-common.c (check_cxx_fundamental_alignment_constraints): Don't | |
628 | limit FIELD_DECL, either. | |
629 | ||
e51fbec3 MP |
630 | 2016-09-14 Marek Polacek <polacek@redhat.com> |
631 | ||
632 | * c-common.c (c_common_truthvalue_conversion): Use false instead of 0. | |
633 | * c-common.h (build_unary_op): Change nonconvert parameter type to bool. | |
634 | * c-omp.c (c_finish_omp_atomic): Use false instead of 0. | |
635 | ||
254830ba DM |
636 | 2016-09-13 David Malcolm <dmalcolm@redhat.com> |
637 | ||
638 | * c-common.c (warn_logical_not_parentheses): Replace | |
639 | rich_location::add_fixit_insert calls with add_fixit_insert_before | |
640 | and add_fixit_insert_after, eliminating the "next_loc" calculation. | |
641 | ||
42763690 JM |
642 | 2016-09-13 Jason Merrill <jason@redhat.com> |
643 | Tom de Vries <tom@codesourcery.com> | |
644 | ||
645 | PR c++/77427 | |
646 | * c-common.c (set_underlying_type): Don't treat array as builtin type. | |
647 | ||
9453eee9 JM |
648 | 2016-09-13 Jason Merrill <jason@redhat.com> |
649 | ||
650 | * c-common.c (check_cxx_fundamental_alignment_constraints): Don't | |
651 | limit types at all. | |
652 | ||
e96809e3 JM |
653 | 2016-09-12 Jason Merrill <jason@redhat.com> |
654 | ||
655 | * c-common.c (check_cxx_fundamental_alignment_constraints): Fix | |
656 | bit/byte confusion, allow large alignment for types. | |
657 | ||
54dcdb88 BE |
658 | 2016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de> |
659 | ||
660 | PR c++/77496 | |
661 | * c-common.c (warn_for_omitted_condop): Also warn for boolean data. | |
662 | ||
d1463eb9 DM |
663 | 2016-09-12 David Malcolm <dmalcolm@redhat.com> |
664 | ||
665 | PR c/72858 | |
666 | * c-format.c (argument_parser::check_argument_type): Add params | |
667 | "type_start" and "conversion_char". Use the former to generate | |
668 | offset_to_type_start and pass it and conversion_char to | |
669 | check_format_types. | |
670 | (check_format_info_main): Capture the start of the type | |
671 | information as "type_start", and pass it an format_char | |
672 | to arg_parser.check_argument_type. | |
673 | (check_format_types): Provide an example in the leading comment. | |
674 | Add params "offset_to_type_start" and "conversion_char"; pass | |
675 | them to format_type_warning calls. | |
676 | (test_get_modifier_for_format_len): Likewise. | |
677 | (matching_type_p): New function. | |
678 | (get_format_for_type): Add param "conversion_char" and move | |
679 | implementation into... | |
680 | (get_format_for_type_1): ...new function, called twice. | |
681 | Use new function matching_type_p rather than checking for | |
682 | TYPE_CANONICAL equality. | |
683 | (get_corrected_substring): New function. | |
684 | (format_type_warning): Provide an example in the leading comment. | |
685 | Add params "offset_to_type_start" and "conversion_char". Replace | |
686 | call to get_format_for_type with call to get_corrected_substring | |
687 | and move rejection of hints for widths/precisions there. | |
688 | (assert_format_for_type_streq): Add param "conversion_char". | |
689 | (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR. | |
690 | (test_get_format_for_type_printf): Add conversion chars to the | |
691 | tests, adding coverage for various combinations of integer | |
692 | vs double conversions, and for preserving octal and hexadecimal | |
693 | conversions. | |
694 | (test_get_format_for_type_scanf): Add conversion chars to the | |
695 | tests. | |
696 | ||
5b28efbb TV |
697 | 2016-09-10 Tom de Vries <tom@codesourcery.com> |
698 | ||
699 | PR C/71602 | |
700 | * c-common.c (build_va_arg): Handle more strict | |
701 | targetm.canonical_va_list_type. Replace first argument type error with | |
702 | assert. | |
703 | ||
3f0177e7 MS |
704 | 2016-09-09 Martin Sebor <msebor@redhat.com> |
705 | ||
706 | PR c/77520 | |
707 | PR c/77521 | |
708 | * c-format.c (argument_parser::find_format_char_info): Use %qc | |
709 | format directive unconditionally. | |
710 | ||
af63ba4b JM |
711 | 2016-09-09 Jason Merrill <jason@redhat.com> |
712 | ||
713 | Implement C++17 new of over-aligned types. | |
714 | * c.opt: Add -faligned-new and -Waligned-new. | |
715 | * c-common.c (max_align_t_align): Split out from... | |
716 | (cxx_fundamental_alignment_p): ...here. | |
717 | * c-common.h: Declare it. | |
718 | * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new. | |
719 | ||
c65248cb JM |
720 | 2016-09-09 Joseph Myers <joseph@codesourcery.com> |
721 | ||
722 | * c-cppbuiltin.c (builtin_define_type_width): New function. | |
723 | (builtin_define_stdint_macros, c_cpp_builtins): Define type width | |
724 | macros. | |
725 | ||
e5106e27 DM |
726 | 2016-09-07 David Malcolm <dmalcolm@redhat.com> |
727 | ||
728 | * c-common.c (get_cpp_ttype_from_string_type): Handle being passed | |
729 | a POINTER_TYPE. | |
730 | (substring_loc::get_location): Move to substring-locations.c, | |
731 | keeping implementation as... | |
732 | (c_get_substring_location): New function, from the above, reworked | |
733 | to use accessors rather than member lookup. | |
734 | * c-common.h (class substring_loc): Move to substring-locations.h, | |
735 | replacing with a forward decl. | |
736 | (c_get_substring_location): New decl. | |
737 | * c-format.c: Include "substring-locations.h". | |
738 | (format_warning_va): Move to substring-locations.c. | |
739 | (format_warning_at_substring): Likewise. | |
740 | ||
a42e7952 MS |
741 | 2016-09-06 Martin Sebor <msebor@redhat.com> |
742 | ||
743 | PR c/77336 | |
744 | * c-format.c (check_function_format): Avoid issuing warnings for | |
745 | functions unless they call format functions with non-constant | |
746 | format strings. | |
747 | ||
b772a565 RB |
748 | 2016-09-06 Richard Biener <rguenther@suse.de> |
749 | ||
750 | PR c/77450 | |
751 | * c-common.c (c_common_mark_addressable_vec): Handle | |
752 | COMPOUND_LITERAL_EXPR. | |
753 | ||
25ff5dd3 MP |
754 | 2016-09-05 Marek Polacek <polacek@redhat.com> |
755 | ||
756 | PR c/77423 | |
757 | * c-common.c (bool_promoted_to_int_p): New function. | |
758 | (expr_has_boolean_operands_p): New function. | |
759 | (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p. | |
760 | (maybe_warn_bool_compare): Use bool_promoted_to_int_p. | |
761 | ||
21234eb5 TV |
762 | 2016-09-04 Tom de Vries <tom@codesourcery.com> |
763 | ||
764 | revert: | |
765 | 2016-08-29 Tom de Vries <tom@codesourcery.com> | |
766 | ||
767 | * c-common.c (build_va_arg): Replace first argument type error | |
768 | with assert. | |
769 | ||
9dc5773f JJ |
770 | 2016-09-02 Jakub Jelinek <jakub@redhat.com> |
771 | ||
772 | PR c/65467 | |
773 | * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions. | |
774 | (c_finish_omp_for): Reject _Atomic qualified iterators. | |
775 | ||
776 | 2016-09-01 Martin Sebor <msebor@redhat.com> | |
3d7b83b6 MS |
777 | |
778 | * c-ada-spec.c (dump_ada_function_declaration): Increase buffer | |
779 | size to guarantee it fits the output of the formatted function | |
780 | regardless of its arguments. | |
781 | ||
295844f6 MP |
782 | 2016-09-01 Marek Polacek <polacek@redhat.com> |
783 | ||
784 | PR c/7652 | |
785 | * c-common.c (resolve_overloaded_builtin): Fix formatting. Add | |
786 | FALLTHRU comments. | |
787 | ||
3d06b6f2 MP |
788 | 2016-08-29 Marek Polacek <polacek@redhat.com> |
789 | ||
790 | PR c/77292 | |
791 | * c-common.c (warn_logical_not_parentheses): Don't warn for | |
792 | a comparison or a logical operator. | |
793 | ||
34cedad5 TV |
794 | 2016-08-29 Tom de Vries <tom@codesourcery.com> |
795 | ||
796 | * c-common.c (build_va_arg): Fix type comparison assert. | |
797 | ||
f162d717 TV |
798 | 2016-08-29 Tom de Vries <tom@codesourcery.com> |
799 | ||
800 | * c-common.c (build_va_arg): Replace first argument type error | |
801 | with assert. | |
802 | ||
ba9bbd6f TV |
803 | 2016-08-29 Tom de Vries <tom@codesourcery.com> |
804 | ||
805 | PR c/77398 | |
806 | * c-common.c (build_va_arg): Add first argument error. Build va_arg | |
807 | with error_mark_node as va_list instead of with illegal va_list. | |
808 | ||
ebef225f MP |
809 | 2016-08-25 Marek Polacek <polacek@redhat.com> |
810 | David Malcolm <dmalcolm@redhat.com> | |
811 | ||
812 | * c-common.c (warn_logical_not_parentheses): Print fixit hints. | |
813 | * c-common.h (warn_logical_not_parentheses): Update declaration. | |
814 | ||
b00e6e75 MP |
815 | 2016-08-22 Marek Polacek <polacek@redhat.com> |
816 | ||
817 | PR c++/77321 | |
818 | * c-common.c (warn_for_memset): Check type for null. | |
819 | ||
6dc198e3 JM |
820 | 2016-08-22 Joseph Myers <joseph@codesourcery.com> |
821 | ||
822 | * c-family/c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and | |
823 | _FloatNx types for suffixes for built-in functions. | |
824 | ||
c65699ef JM |
825 | 2016-08-19 Joseph Myers <joseph@codesourcery.com> |
826 | ||
827 | PR c/32187 | |
828 | * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32) | |
829 | (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X) | |
830 | (RID_FLOAT128X): New enum rid values. | |
831 | (CASE_RID_FLOATN_NX): New macro. | |
832 | * c-common.c (c_common_reswords): Add _FloatN and _FloatNx | |
833 | keywords. | |
834 | (c_common_type_for_mode): Check for _FloatN and _FloatNx and | |
835 | corresponding complex types. | |
836 | (c_common_nodes_and_builtins): For non-C++, register _FloatN and | |
837 | _FloatNx and corresponding complex types. | |
838 | (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX. | |
839 | * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN | |
840 | and _FloatNx types for the widest type for determining | |
841 | DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as | |
842 | __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL. | |
843 | (c_cpp_builtins): Call builtin_define_float_constants for _FloatN | |
844 | and _FloatNx types. | |
845 | * c-lex.c (interpret_float): Handle _FloatN and _FloatNx | |
846 | constants. | |
847 | * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and | |
848 | _FloatNx types. | |
849 | ||
cc015f3a DM |
850 | 2016-08-18 David Malcolm <dmalcolm@redhat.com> |
851 | ||
852 | * c-opts.c (c_diagnostic_finalizer): Update for change to | |
853 | diagnostic_show_locus. | |
854 | ||
cb18fd07 DM |
855 | 2016-08-18 David Malcolm <dmalcolm@redhat.com> |
856 | ||
857 | * c-common.c: Include "spellcheck.h". | |
858 | (cb_get_suggestion): New function. | |
859 | * c-common.h (cb_get_suggestion): New decl. | |
860 | * c-lex.c (init_c_lex): Initialize cb->get_suggestion to | |
861 | cb_get_suggestion. | |
862 | ||
a76989dc MP |
863 | 2016-08-18 Marek Polacek <polacek@redhat.com> |
864 | ||
865 | PR c/71514 | |
866 | * c-common.c (get_atomic_generic_size): Disallow pointer-to-function | |
867 | and pointer-to-VLA. | |
868 | ||
65e736c0 DM |
869 | 2016-08-16 David Malcolm <dmalcolm@redhat.com> |
870 | ||
871 | PR c/72857 | |
872 | * c-common.c (substring_loc::get_range): Rename to... | |
873 | (substring_loc::get_location): ...this, converting param from a | |
874 | source_range * to a location_t *. Call | |
875 | get_source_location_for_substring rather than | |
876 | get_source_range_for_substring, and pass in m_caret_idx. | |
877 | * c-common.h (substring_loc::substring_loc): Add param "caret_idx". | |
878 | (substring_loc::get_range): Replace with... | |
879 | (substring_loc::get_location): ...this. | |
880 | (substring_loc::set_caret_index): New method. | |
881 | (substring_loc): Add field m_caret_idx. | |
882 | * c-format.c (format_warning_va): Update for above changes. | |
883 | Rename local "substring_loc" to "fmt_substring_loc" to avoid | |
884 | clashing with type name. | |
885 | (format_warning_at_char): Add caret_idx param to substring_loc ctor. | |
886 | (check_argument_type): Likewise. | |
887 | (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc" | |
888 | Use a copy when emitting warnings, setting the caret index from TYPE. | |
889 | ||
7e1dde14 | 890 | 2016-08-16 Eric Botcazou <ebotcazou@adacore.com> |
8e745a17 | 891 | Arnaud Charlet <charlet@adacore.com> |
7e1dde14 EB |
892 | |
893 | * c-ada-spec.c (dump_number): New function. | |
894 | (handle_escape_character): Likewise. | |
895 | (print_ada_macros): Add handling of constant integers and strings. | |
896 | ||
191816a3 MP |
897 | 2016-08-12 Marek Polacek <polacek@redhat.com> |
898 | ||
899 | PR c/7652 | |
900 | * c-common.c (scalar_to_vector): Adjust fall through comment. | |
901 | * c-opts.c (c_common_handle_option): Likewise. | |
902 | * c-pragma.c (handle_pragma_pack): Add FALLTHRU. | |
903 | * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust | |
904 | fall through comment. | |
905 | * cilk.c (extract_free_variables): Add FALLTHRU. | |
906 | ||
452df4a4 JM |
907 | 2016-08-10 Jason Merrill <jason@redhat.com> |
908 | ||
909 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr. | |
910 | ||
f3365c12 JM |
911 | 2016-08-09 Jason Merrill <jason@redhat.com> |
912 | ||
913 | * c-common.c (c_common_attribute_table): vector_size affects type | |
914 | identity. | |
915 | ||
f0bc3323 MP |
916 | 2016-08-09 Marek Polacek <polacek@redhat.com> |
917 | ||
918 | PR c/7652 | |
919 | * c-ada-spec.c (dump_generic_ada_node): Add return. | |
920 | ||
98e5a19a JM |
921 | 2016-08-09 Jason Merrill <jason@redhat.com> |
922 | ||
923 | * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for | |
924 | C++17 constexpr lambdas. | |
925 | ||
895aa8e1 DM |
926 | 2016-08-08 David Malcolm <dmalcolm@redhat.com> |
927 | ||
928 | PR c/64955 | |
929 | * c-common.h (selftest::c_format_c_tests): New declaration. | |
930 | (selftest::run_c_tests): New declaration. | |
931 | * c-format.c: Include "selftest.h. | |
932 | (format_warning_va): Add param "corrected_substring" and use | |
933 | it to add a replacement fix-it hint. | |
934 | (format_warning_at_substring): Likewise. | |
935 | (format_warning_at_char): Update for new param of | |
936 | format_warning_va. | |
937 | (argument_parser::check_argument_type): Pass "fki" to | |
938 | check_format_types. | |
939 | (check_format_types): Add param "fki" and pass it to | |
940 | format_type_warning. | |
941 | (deref_n_times): New function. | |
942 | (get_modifier_for_format_len): New function. | |
943 | (selftest::test_get_modifier_for_format_len): New function. | |
944 | (get_format_for_type): New function. | |
945 | (format_type_warning): Add param "fki" and use it to attempt | |
946 | to provide hints for argument types when calling | |
947 | format_warning_at_substring. | |
948 | (selftest::get_info): New function. | |
949 | (selftest::assert_format_for_type_streq): New function. | |
950 | (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro. | |
951 | (selftest::test_get_format_for_type_printf): New function. | |
952 | (selftest::test_get_format_for_type_scanf): New function. | |
953 | (selftest::c_format_c_tests): New function. | |
954 | ||
e52ed3fe DM |
955 | 2016-08-08 David Malcolm <dmalcolm@redhat.com> |
956 | ||
957 | PR c/52952 | |
958 | * c-format.c: Include "diagnostic.h". | |
959 | (location_column_from_byte_offset): Delete. | |
960 | (location_from_offset): Delete. | |
961 | (format_warning_va): New function. | |
962 | (format_warning_at_substring): New function. | |
963 | (format_warning_at_char): New function. | |
964 | (check_format_arg): Capture location of format_tree and pass to | |
965 | check_format_info_main. | |
966 | (argument_parser): Add fields "start_of_this_format" and | |
967 | "format_string_cst". | |
968 | (flag_chars_t::validate): Add param "format_string_cst". Convert | |
969 | warning_at call using location_from_offset to call to | |
970 | format_warning_at_char. | |
971 | (argument_parser::argument_parser): Add param "format_string_cst_" | |
972 | and use use it to initialize field "format_string_cst". | |
973 | Initialize new field "start_of_this_format". | |
974 | (argument_parser::read_format_flags): Convert warning_at call | |
975 | using location_from_offset to a call to format_warning_at_char. | |
976 | (argument_parser::read_any_format_left_precision): Likewise. | |
977 | (argument_parser::read_any_format_precision): Likewise. | |
978 | (argument_parser::read_any_other_modifier): Likewise. | |
979 | (argument_parser::find_format_char_info): Likewise, in three places. | |
980 | (argument_parser::parse_any_scan_set): Likewise, in one place. | |
981 | (argument_parser::handle_conversions): Likewise, in two places. | |
982 | (argument_parser::check_argument_type): Add param "fmt_param_loc" | |
983 | and use it to make a substring_loc. Pass the latter to | |
984 | check_format_types. | |
985 | (check_format_info_main): Add params "fmt_param_loc" and | |
986 | "format_string_cst". Convert warning_at calls using | |
987 | location_from_offset to calls to format_warning_at_char. Pass the | |
988 | new params to the arg_parser ctor. Pass "format_string_cst" to | |
989 | flag_chars.validate. Pass "fmt_param_loc" to | |
990 | arg_parser.check_argument_type. | |
991 | (check_format_types): Convert first param from a location_t | |
992 | to a const substring_loc & and rename to "fmt_loc". Attempt | |
993 | to extract the range of the relevant parameter and pass it | |
994 | to format_type_warning. | |
995 | (format_type_warning): Convert first param from a location_t | |
996 | to a const substring_loc & and rename to "fmt_loc". Add | |
997 | params "param_range" and "type". Replace calls to warning_at | |
998 | with calls to format_warning_at_substring. | |
999 | ||
1c4d457e DM |
1000 | 2016-08-08 David Malcolm <dmalcolm@redhat.com> |
1001 | ||
1002 | * c-format.c (class flag_chars_t): New class. | |
1003 | (struct length_modifier): New struct. | |
1004 | (class argument_parser): New class. | |
1005 | (flag_chars_t::flag_chars_t): New ctor. | |
1006 | (flag_chars_t::has_char_p): New method. | |
1007 | (flag_chars_t::add_char): New method. | |
1008 | (flag_chars_t::validate): New method. | |
1009 | (flag_chars_t::get_alloc_flag): New method. | |
1010 | (flag_chars_t::assignment_suppression_p): New method. | |
1011 | (argument_parser::argument_parser): New ctor. | |
1012 | (argument_parser::read_any_dollar): New method. | |
1013 | (argument_parser::read_format_flags): New method. | |
1014 | (argument_parser::read_any_format_width): New method. | |
1015 | (argument_parser::read_any_format_left_precision): New method. | |
1016 | (argument_parser::read_any_format_precision): New method. | |
1017 | (argument_parser::handle_alloc_chars): New method. | |
1018 | (argument_parser::read_any_length_modifier): New method. | |
1019 | (argument_parser::read_any_other_modifier): New method. | |
1020 | (argument_parser::find_format_char_info): New method. | |
1021 | (argument_parser::validate_flag_pairs): New method. | |
1022 | (argument_parser::give_y2k_warnings): New method. | |
1023 | (argument_parser::parse_any_scan_set): New method. | |
1024 | (argument_parser::handle_conversions): New method. | |
1025 | (argument_parser::check_argument_type): New method. | |
1026 | (check_format_info_main): Introduce classes argument_parser | |
1027 | and flag_chars_t, moving the code within the loop into methods | |
1028 | of these classes. Make various locals "const". | |
1029 | ||
88fa5555 DM |
1030 | 2016-08-05 David Malcolm <dmalcolm@redhat.com> |
1031 | ||
1032 | * c-common.c: Include "substring-locations.h". | |
1033 | (get_cpp_ttype_from_string_type): New function. | |
1034 | (g_string_concat_db): New global. | |
1035 | (substring_loc::get_range): New method. | |
1036 | * c-common.h (g_string_concat_db): New declaration. | |
1037 | (class substring_loc): New class. | |
1038 | * c-lex.c (lex_string): When concatenating strings, capture the | |
1039 | locations of all tokens using a new obstack, and record the | |
1040 | concatenation locations within g_string_concat_db. | |
1041 | * c-opts.c (c_common_init_options): Construct g_string_concat_db | |
1042 | on the ggc-heap. | |
1043 | ||
78169471 MP |
1044 | 2016-07-29 Marek Polacek <polacek@redhat.com> |
1045 | ||
638fc14f MP |
1046 | PR c/71926 |
1047 | * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the | |
1048 | parentheses warning. | |
1049 | ||
78169471 MP |
1050 | PR c/71574 |
1051 | * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL. | |
1052 | ||
1225d6b1 ML |
1053 | 2016-07-28 Martin Liska <mliska@suse.cz> |
1054 | ||
1055 | PR gcov-profile/68025 | |
1056 | * c-common.c (handle_no_profile_instrument_function_attribute): | |
1057 | ||
ec1e2a40 BE |
1058 | 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de> |
1059 | ||
1060 | * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of | |
1061 | BITS_PER_UNIT_LOG. | |
1062 | ||
5ec2cd9f JM |
1063 | 2016-07-25 Jason Merrill <jason@redhat.com> |
1064 | ||
1065 | PR c++/65970 | |
1066 | * c.opt (fconstexpr-loop-limit): New. | |
1067 | ||
9dc5773f | 1068 | 2016-07-22 Martin Sebor <msebor@redhat.com> |
2e6b45af MS |
1069 | |
1070 | PR c++/71675 | |
1071 | * c-common.c (resolve_overloaded_builtin): Avoid converting | |
1072 | __atomic_compare_exchange_n return type to that of what its | |
1073 | first argument points to. | |
1074 | ||
e3fe09c1 UB |
1075 | 2016-07-22 Uros Bizjak <ubizjak@gmail.com> |
1076 | ||
1077 | * c-common.c: Use HOST_WIDE_INT_M1U instead of | |
1078 | ~(unsigned HOST_WIDE_INT) 0. | |
1079 | ||
bc91c436 ML |
1080 | 2016-07-22 Martin Liska <mliska@suse.cz> |
1081 | ||
1082 | PR gcov-profile/69028 | |
1083 | PR gcov-profile/62047 | |
1084 | * cilk.c (create_cilk_helper_decl): Set location of a new decl | |
1085 | to the current_function_decl. | |
1086 | ||
451dcc66 JM |
1087 | 2016-07-21 Jason Merrill <jason@redhat.com> |
1088 | ||
1089 | PR c++/65168 | |
1090 | * c-common.c (c_common_truthvalue_conversion): Check | |
1091 | c_inhibit_evaluation_warnings for warning about address of | |
1092 | reference. | |
1093 | ||
de6a69ee DM |
1094 | 2016-07-20 David Malcolm <dmalcolm@redhat.com> |
1095 | ||
1096 | * c-common.h (lookup_name_fuzzy): Convert return type from tree to | |
1097 | const char *. | |
1098 | ||
d022c55a JM |
1099 | 2016-07-15 Jason Merrill <jason@redhat.com> |
1100 | ||
1101 | * c-opts.c (c_common_post_options): Update -fabi-version default to 11. | |
1102 | ||
ddbbcb19 JJ |
1103 | 2016-07-15 Jakub Jelinek <jakub@redhat.com> |
1104 | ||
1105 | PR c/71858 | |
1106 | * c-common.h (enum lookup_name_fuzzy_kind): Add | |
1107 | FUZZY_LOOKUP_FUNCTION_NAME. | |
1108 | ||
d0cf395a JM |
1109 | 2016-07-08 Jason Merrill <jason@redhat.com> |
1110 | ||
1111 | P0145: Refining Expression Order for C++. | |
1112 | * c.opts (-fargs-in-order): Rename to -fstrong-eval-order. | |
1113 | * c-opts.c: Adjust. | |
1114 | ||
98d44e93 MT |
1115 | 2016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de> |
1116 | ||
1117 | PR c++/71214 | |
1118 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references. | |
1119 | ||
f9d8d994 TS |
1120 | 2016-06-29 Thomas Schwinge <thomas@codesourcery.com> |
1121 | ||
1122 | * c-pragma.h (enum pragma_kind): Rename | |
1123 | PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all | |
1124 | users. | |
1125 | ||
4aa83879 RB |
1126 | 2016-06-29 Richard Biener <rguenther@suse.de> |
1127 | ||
1128 | PR middle-end/71002 | |
1129 | * c-common.c (c_common_get_alias_set): Remove union type punning case. | |
1130 | ||
a25bd9e6 JM |
1131 | 2016-06-24 Jason Merrill <jason@redhat.com> |
1132 | ||
1133 | P0145R2: Refining Expression Order for C++. | |
1134 | * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of | |
1135 | MODIFY_EXPR. | |
1136 | ||
a86451b9 JJ |
1137 | 2016-06-24 Jakub Jelinek <jakub@redhat.com> |
1138 | ||
1139 | * c-common.c (check_builtin_function_arguments): Require last | |
1140 | argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type. | |
1141 | Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW | |
1142 | if the last argument is pointer to enumerated or boolean type. | |
1143 | ||
1a4f11c8 DM |
1144 | 2016-06-22 David Malcolm <dmalcolm@redhat.com> |
1145 | ||
1146 | PR c/70339 | |
1147 | * c-common.h (enum lookup_name_fuzzy_kind): New enum. | |
1148 | (lookup_name_fuzzy): New prototype. | |
1149 | ||
fe55692c JDA |
1150 | 2016-06-21 John David Anglin <danglin@gcc.gnu.org> |
1151 | ||
1152 | * c-common.c (get_source_date_epoch): Use int64_t instead of long long. | |
1153 | ||
4eb24e01 JM |
1154 | 2016-06-14 Jason Merrill <jason@redhat.com> |
1155 | ||
1156 | P0145R2: Refining Expression Order for C++. | |
1157 | * c.opt (fargs-in-order): New. | |
1158 | * c-opts.c (c_common_post_options): Adjust flag_args_in_order. | |
1159 | ||
ef7cf206 JJ |
1160 | 2016-06-13 Jakub Jelinek <jakub@redhat.com> |
1161 | ||
0dda258b JJ |
1162 | PR sanitizer/71498 |
1163 | * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on | |
1164 | all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY. | |
1165 | ||
ef7cf206 JJ |
1166 | PR preprocessor/71183 |
1167 | * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch | |
1168 | to cb_get_source_date_epoch. | |
1169 | ||
50b15873 JJ |
1170 | 2016-06-10 Jakub Jelinek <jakub@redhat.com> |
1171 | ||
1172 | PR c/68657 | |
1173 | * c.opt (Wpsabi): Add Warning flag. | |
1174 | ||
4d926e34 MS |
1175 | 2016-06-10 Martin Sebor <msebor@redhat.com> |
1176 | ||
1177 | PR c/71392 | |
1178 | * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept | |
1179 | the nonnull attribute in type-generic builtins. | |
1180 | ||
e01b4e16 MS |
1181 | 2016-06-09 Martin Sebor <msebor@redhat.com> |
1182 | ||
1183 | PR c/70883 | |
1184 | * c-common.c (builtin_function_validate_nargs): Make text of error | |
1185 | message consistent with others like it. | |
1186 | ||
44a845ca MS |
1187 | 2016-06-08 Martin Sebor <msebor@redhat.com> |
1188 | Jakub Jelinek <jakub@redhat.com> | |
1189 | ||
1190 | PR c++/70507 | |
1191 | PR c/68120 | |
1192 | * c-common.c (check_builtin_function_arguments): Handle | |
1193 | BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P. | |
1194 | ||
a80a7051 RB |
1195 | 2016-06-08 Richard Biener <rguenther@suse.de> |
1196 | ||
1197 | * c-common.c (parse_optimize_options): Improve diagnostic messages. | |
1198 | ||
bfd67b47 RB |
1199 | 2016-06-07 Richard Biener <rguenther@suse.de> |
1200 | ||
1201 | PR c/61564 | |
1202 | * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION | |
1203 | options and warn about others. | |
1204 | ||
15c98b2e ES |
1205 | 2016-06-01 Eduard Sanou <dhole@openmailbox.org> |
1206 | ||
1207 | * c-common.c (get_source_date_epoch): Rename to | |
1208 | cb_get_source_date_epoch. | |
1209 | * c-common.c (cb_get_source_date_epoch): Use a single generic erorr | |
1210 | message when the parsing fails. Use error_at instead of fatal_error. | |
1211 | * c-common.h (get_source_date_epoch): Rename to | |
1212 | cb_get_source_date_epoch. | |
1213 | * c-common.h (cb_get_source_date_epoch): Prototype. | |
1214 | * c-common.h (MAX_SOURCE_DATE_EPOCH): Define. | |
1215 | * c-common.h (c_omp_region_type): Remove trailing comma. | |
1216 | * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback. | |
1217 | * c-lex.c (c_lex_with_flags): Remove initialization of | |
1218 | pfile->source_date_epoch. | |
1219 | ||
00631022 JJ |
1220 | 2016-05-30 Jakub Jelinek <jakub@redhat.com> |
1221 | ||
1222 | PR c++/71349 | |
1223 | * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to | |
1224 | C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to | |
1225 | C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct, | |
1226 | instead of C_OMP_CLAUSE_SPLIT_FOR. | |
1227 | ||
f17a223d RB |
1228 | 2016-05-24 Richard Biener <rguenther@suse.de> |
1229 | ||
1230 | PR middle-end/70434 | |
1231 | PR c/69504 | |
1232 | * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ... | |
1233 | (convert_vector_to_array_for_subscript): ... this. | |
1234 | * c-common.c (convert_vector_to_pointer_for_subscript): Use a | |
1235 | VIEW_CONVERT_EXPR to an array type. Rename to ... | |
1236 | (convert_vector_to_array_for_subscript): ... this. | |
1237 | ||
4f2e1536 MP |
1238 | 2016-05-12 Marek Polacek <polacek@redhat.com> |
1239 | ||
1240 | PR c/70756 | |
1241 | * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of | |
1242 | size_in_bytes and pass LOC to it. | |
1243 | ||
d6e83a8d MM |
1244 | 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com> |
1245 | ||
1246 | PR c/43651 | |
1247 | * c.opt (Wduplicate-decl-specifier): New option. | |
1248 | ||
5c3a10fb MP |
1249 | 2016-05-11 Marek Polacek <polacek@redhat.com> |
1250 | ||
1251 | PR c++/71024 | |
1252 | * c-common.c (diagnose_mismatched_attributes): New function. | |
1253 | * c-common.h (diagnose_mismatched_attributes): Declare. | |
1254 | ||
deef7113 MP |
1255 | 2016-05-04 Marek Polacek <polacek@redhat.com> |
1256 | ||
1257 | * c.opt (Wdangling-else): New option. | |
1258 | ||
79ce98bc MP |
1259 | 2016-05-03 Marek Polacek <polacek@redhat.com> |
1260 | ||
1261 | PR c/70859 | |
1262 | * c-common.c (builtin_function_validate_nargs): Add location | |
1263 | parameter. Use it. | |
1264 | (check_builtin_function_arguments): Add location and arguments | |
1265 | parameters. Use them. | |
1266 | * c-common.h (check_builtin_function_arguments): Update declaration. | |
1267 | ||
381cdae4 RB |
1268 | 2016-05-03 Richard Biener <rguenther@suse.de> |
1269 | ||
1270 | * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not | |
1271 | allow call args to gimplify to SSA names. | |
1272 | ||
1d793c34 MP |
1273 | 2016-05-03 Marek Polacek <polacek@redhat.com> |
1274 | ||
1275 | * c-common.h (enum c_omp_region_type): Remove stray comma. | |
1276 | ||
77886428 CP |
1277 | 2016-05-02 Cesar Philippidis <cesar@codesourcery.com> |
1278 | ||
1279 | * c-common.h (enum c_omp_region_type): Define. | |
1280 | ||
697e0b28 RS |
1281 | 2016-05-02 Richard Sandiford <richard.sandiford@arm.com> |
1282 | ||
1283 | * c-common.c (shorten_compare): Use wi::to_wide. | |
1284 | ||
e7ff0319 CP |
1285 | 2016-04-29 Cesar Philippidis <cesar@codesourcery.com> |
1286 | ||
1287 | PR middle-end/70626 | |
1288 | * c-common.h (c_oacc_split_loop_clauses): Add boolean argument. | |
1289 | * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate | |
1290 | reduction clauses in acc parallel loops. | |
1291 | ||
2fff3db8 MP |
1292 | 2016-04-29 Marek Polacek <polacek@redhat.com> |
1293 | ||
1294 | PR c/70852 | |
1295 | * c-common.c (warn_for_memset): Check domain before accessing it. | |
1296 | ||
509063eb DV |
1297 | 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com> |
1298 | ||
1299 | PR/69089 | |
1300 | * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the | |
1301 | "aligned" attribute. | |
1302 | ||
b632761d JM |
1303 | 2016-04-28 Jason Merrill <jason@redhat.com> |
1304 | ||
1305 | * c-lex.c (c_common_has_attribute): Handle nodiscard. | |
1306 | ||
174f6622 ES |
1307 | 2016-04-28 Eduard Sanou <dhole@openmailbox.org> |
1308 | Matthias Klose <doko@debian.org> | |
1309 | ||
1310 | * c-common.c (get_source_date_epoch): New function, gets the environment | |
1311 | variable SOURCE_DATE_EPOCH and parses it as long long with error | |
1312 | handling. | |
1313 | * c-common.h (get_source_date_epoch): Prototype. | |
1314 | * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch. | |
1315 | ||
6bc2bb18 RB |
1316 | 2015-04-27 Ryan Burn <contact@rnburn.com> |
1317 | ||
1318 | PR c++/69024 | |
1319 | PR c++/68997 | |
1320 | * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage. | |
1321 | (cilk_recognize_spawn): Renamed from recognize_spawn and change to | |
1322 | external linkage. | |
1323 | (cilk_detect_and_unwrap): Corresponding changes. | |
1324 | (extract_free_variables): Don't extract free variables from | |
1325 | AGGR_INIT_EXPR slot. | |
1326 | * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype. | |
1327 | (cilk_recognize_spawn): Likewise. | |
1328 | ||
c1e1f433 BS |
1329 | 2016-04-27 Bernd Schmidt <bschmidt@redhat.com> |
1330 | ||
1331 | * c.opt (Wmemset-elt-size): New option. | |
1332 | * c-common.c (warn_for_memset): New function. | |
1333 | * c-common.h (warn_for_memset): Declare. | |
1334 | ||
d067e05f JM |
1335 | 2016-04-25 Jason Merrill <jason@redhat.com> |
1336 | ||
1337 | * c-common.c (handle_unused_attribute): Accept CONST_DECL. | |
1338 | No longer static. | |
1339 | * c-common.h: Declare it. | |
1340 | * c-lex.c (c_common_has_attribute): Add maybe_unused. | |
1341 | ||
9aa36ae5 JM |
1342 | 2016-04-22 Jason Merrill <jason@redhat.com> |
1343 | ||
1344 | * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for. | |
1345 | ||
477d4906 IV |
1346 | 2016-04-20 Ilya Verbin <ilya.verbin@intel.com> |
1347 | ||
1348 | PR c++/69363 | |
1349 | * c-cilkplus.c (c_finish_cilk_clauses): Remove function. | |
1350 | * c-common.h (c_finish_cilk_clauses): Remove declaration. | |
1351 | ||
fe37c7af MM |
1352 | 2016-04-18 Michael Matz <matz@suse.de> |
1353 | ||
1354 | * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN | |
1355 | and SET_DECL_ALIGN. | |
1356 | ||
23f2660f EB |
1357 | 2016-04-17 Eric Botcazou <ebotcazou@adacore.com> |
1358 | ||
1359 | * c-ada-spec.c (get_underlying_decl): Return the typedef, if any. | |
1360 | (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access | |
1361 | to incomplete types. | |
1362 | (dump_nested_type): Remove redundant tests and tidy up. | |
1363 | (print_ada_declaration): Also set TREE_VISITED on the declaration of | |
1364 | a type which is the typedef of an original type. | |
1365 | ||
1e77281b MP |
1366 | 2016-04-15 Marek Polacek <polacek@redhat.com> |
1367 | ||
1368 | PR c/70651 | |
1369 | * c-common.c (build_va_arg): Change two asserts into errors and return | |
1370 | error_mark_node. | |
1371 | ||
b3a77f21 MP |
1372 | 2016-04-13 Marek Polacek <polacek@redhat.com> |
1373 | ||
1374 | PR c++/70639 | |
1375 | * c-indentation.c (should_warn_for_misleading_indentation): Bail out | |
1376 | for switch statements, too. | |
1377 | ||
322b8466 JM |
1378 | 2016-03-28 Jason Merrill <jason@redhat.com> |
1379 | ||
1380 | * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for. | |
1381 | ||
fbdb6baf MP |
1382 | 2016-03-23 Marek Polacek <polacek@redhat.com> |
1383 | ||
1384 | PR c++/69884 | |
1385 | * c.opt (Wignored-attributes): New option. | |
1386 | ||
5c240f4d DM |
1387 | 2016-03-22 David Malcolm <dmalcolm@redhat.com> |
1388 | ||
1389 | PR c/69993 | |
1390 | * c-indentation.c (warn_for_misleading_indentation): Rewrite the | |
1391 | diagnostic text, reversing the order of the warning and note so | |
1392 | that they appear in source order. | |
1393 | ||
14ba7b28 MP |
1394 | 2016-03-17 Marek Polacek <polacek@redhat.com> |
1395 | ||
1396 | PR c/69407 | |
1397 | * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch | |
1398 | operations. | |
1399 | ||
08a1cadc JM |
1400 | 2016-03-14 Jason Merrill <jason@redhat.com> |
1401 | ||
2aaeea19 JM |
1402 | * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float. |
1403 | ||
08a1cadc JM |
1404 | * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for. |
1405 | ||
c06d25bb RB |
1406 | 2016-03-09 Richard Biener <rguenther@suse.de> |
1407 | ||
1408 | PR c/70143 | |
1409 | * c-common.c (strict_aliasing_warning): Add back | |
1410 | alias_sets_conflict_p check. | |
1411 | ||
80aac5c8 JM |
1412 | 2016-03-08 Jason Merrill <jason@redhat.com> |
1413 | ||
1414 | * c-opts.c (set_std_cxx1z): Don't enable concepts. | |
1415 | ||
64b23c13 DM |
1416 | 2016-03-04 David Malcolm <dmalcolm@redhat.com> |
1417 | ||
1418 | PR c/68187 | |
1419 | * c-indentation.c (get_visual_column): Move code to determine next | |
1420 | tab stop to... | |
1421 | (next_tab_stop): ...this new function. | |
1422 | (line_contains_hash_if): Delete function. | |
1423 | (detect_preprocessor_logic): Delete function. | |
1424 | (get_first_nws_vis_column): New function. | |
1425 | (detect_intervening_unindent): New function. | |
1426 | (should_warn_for_misleading_indentation): Replace call to | |
1427 | detect_preprocessor_logic with a call to | |
1428 | detect_intervening_unindent. | |
1429 | ||
729526f5 DM |
1430 | 2016-03-04 David Malcolm <dmalcolm@redhat.com> |
1431 | ||
1432 | PR c/68187 | |
1433 | * c-indentation.c (should_warn_for_misleading_indentation): When | |
1434 | suppressing warnings about cases where the guard and body are on | |
1435 | the same column, only use the first non-whitespace column in place | |
1436 | of the guard token column when dealing with "else" clauses. | |
1437 | When rejecting aligned BODY and NEXT, loosen the requirement | |
1438 | from equality with the first non-whitespace of guard to simply | |
1439 | that they not be indented relative to it. | |
1440 | ||
e9a35493 RB |
1441 | 2016-03-04 Richard Biener <rguenther@suse.de> |
1442 | ||
1443 | PR c++/70054 | |
1444 | * c-common.c (strict_aliasing_warning): Use alias_set_subset_of | |
1445 | instead of alias_sets_conflict_p. | |
1446 | ||
1be56bc5 MP |
1447 | 2016-03-01 Marek Polacek <polacek@redhat.com> |
1448 | ||
1449 | PR c++/69795 | |
1450 | * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than | |
1451 | any DECL. | |
1452 | ||
35886f0b MS |
1453 | 2016-02-22 Martin Sebor <msebor@redhat.com> |
1454 | ||
1455 | PR middle-end/69780 | |
1456 | * c-common.c (check_builtin_function_arguments): Validate and | |
1457 | reject invalid arguments to __builtin_alloca_with_align. | |
1458 | ||
4246c8da MW |
1459 | 2016-02-20 Mark Wielaard <mjw@redhat.com> |
1460 | ||
1461 | PR c/28901 | |
1462 | * c.opt (Wunused-const-variable): Turn into Alias for... | |
1463 | (Wunused-const-variable=): New option. | |
1464 | ||
268be88c BE |
1465 | 2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de> |
1466 | ||
1467 | PR c++/69865 | |
1468 | * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from | |
1469 | here... | |
1470 | (c_common_init_options): ...to here. | |
1471 | (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99. | |
1472 | ||
871b3f47 JJ |
1473 | 2016-02-19 Jakub Jelinek <jakub@redhat.com> |
1474 | ||
1475 | PR c++/69826 | |
1476 | * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE. | |
1477 | (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for | |
1478 | flag_preprocess_only. | |
1479 | ||
bf14eba2 JJ |
1480 | 2016-02-16 Jakub Jelinek <jakub@redhat.com> |
1481 | ||
1482 | PR c/69835 | |
1483 | * c.opt (Wnonnull-compare): Enable for -Wall. | |
1484 | ||
ba6b3795 JJ |
1485 | 2016-02-15 Jakub Jelinek <jakub@redhat.com> |
1486 | ||
1487 | PR c++/69797 | |
1488 | * c-common.c (sync_resolve_size): Diagnose too few arguments | |
1489 | even when params is non-NULL empty vector. | |
1490 | ||
a011cd92 BS |
1491 | 2016-02-08 Bernd Schmidt <bschmidt@redhat.com> |
1492 | ||
1493 | PR target/60410 | |
1494 | * c.opt (fshort-double): Remove. | |
1495 | ||
46cb9332 MS |
1496 | 2016-02-05 Martin Sebor <msebor@redhat.com> |
1497 | ||
1498 | PR c++/69662 | |
1499 | * c.opt (Warning options): Update -Wplacement-new to take | |
1500 | an optional argument. | |
1501 | ||
e1b81f2b JJ |
1502 | 2016-02-01 Jakub Jelinek <jakub@redhat.com> |
1503 | ||
1504 | PR preprocessor/69543 | |
1505 | PR c/69558 | |
1506 | * c-pragma.c (handle_pragma_diagnostic): Pass input_location | |
1507 | instead of loc to control_warning_option. | |
1508 | ||
b6adbb9f NS |
1509 | 2016-02-01 Nathan Sidwell <nathan@codesourcery.com> |
1510 | ||
1511 | * c.opt (fopenacc-dim=): New option. | |
1512 | ||
5d70666e RB |
1513 | 2016-01-27 Ryan Burn <contact@rnburn.com> |
1514 | ||
1515 | PR cilkplus/69267 | |
1516 | * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use | |
1517 | gimplify_arg. Removed superfluous post_p argument. | |
1518 | * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed | |
1519 | superfluous post_p argument. | |
1520 | * c-gimplify.c (c_gimplify_expr): Likewise. | |
1521 | ||
01e1dea3 DM |
1522 | 2016-01-26 David Malcolm <dmalcolm@redhat.com> |
1523 | ||
1524 | PR other/69006 | |
1525 | * c-opts.c (c_diagnostic_finalizer): Replace invocation of | |
1526 | pp_newline_and_flush with pp_flush. | |
1527 | ||
9f04a53e MS |
1528 | 2016-01-20 Martin Sebor <msebor@redhat.com> |
1529 | ||
1530 | PR c/69405 | |
1531 | * c-common.c (sync_resolve_size): Avoid printing diagnostic about | |
1532 | an incompatible argument when the argument isn't a valid tree node. | |
1533 | ||
7f26f7df JM |
1534 | 2016-01-18 Jason Merrill <jason@redhat.com> |
1535 | ||
1536 | PR c++/68767 | |
1537 | * c-common.c (check_function_arguments_recurse): Fold the whole | |
1538 | COND_EXPR, not just the condition. | |
1539 | ||
f62bf092 TV |
1540 | 2016-01-18 Tom de Vries <tom@codesourcery.com> |
1541 | ||
1542 | * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION, | |
1543 | classify as loop clause. | |
1544 | ||
e0a575ff JJ |
1545 | 2016-01-15 Jakub Jelinek <jakub@redhat.com> |
1546 | ||
1547 | PR bootstrap/68271 | |
1548 | * c-pragma.c (c_register_pragma_1): Adjust comment to note that | |
1549 | C++ FE no longer has limit on number of pragmas. | |
1550 | ||
1551 | 2015-01-14 Ryan Burn <contact@rnburn.com> | |
b6e3db06 RB |
1552 | |
1553 | PR c++/69048 | |
1554 | * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr | |
c47eaca6 | 1555 | to add missing cleanup point. |
b6e3db06 | 1556 | |
c7df95d8 DM |
1557 | 2016-01-14 David Malcolm <dmalcolm@redhat.com> |
1558 | ||
1559 | PR c++/68819 | |
1560 | * c-indentation.c (get_visual_column): Add location_t param. | |
1561 | Handle the column number being zero by effectively disabling the | |
1562 | warning, with an "inform". | |
1563 | (should_warn_for_misleading_indentation): Add location_t argument | |
1564 | for all uses of get_visual_column. | |
1565 | ||
21efdd80 PP |
1566 | 2016-01-10 Patrick Palka <ppalka@gcc.gnu.org> |
1567 | ||
1568 | PR c++/69029 | |
1569 | * c-indentation.c (should_warn_for_misleading_indentation): | |
1570 | Don't warn about do-while statements. | |
1571 | ||
7a127fa7 MS |
1572 | 2016-01-07 Martin Sebor <msebor@redhat.com> |
1573 | ||
1574 | PR c/68966 | |
1575 | * c-common.c (sync_resolve_size): Reject first argument when it's | |
1576 | a pointer to _Bool. | |
1577 | ||
c589e975 DM |
1578 | 2016-01-05 David Malcolm <dmalcolm@redhat.com> |
1579 | ||
1580 | PR c/69122 | |
1581 | * c-indentation.c (get_visual_column): Remove default argument. | |
1582 | (should_warn_for_misleading_indentation): For the multiline case, | |
1583 | update call to get_visual_column for next_stmt_exploc so that it | |
1584 | captures the location of the first non-whitespace character in the | |
1585 | relevant line. Don't issue warnings if there is non-whitespace | |
1586 | before the next statement. | |
1587 | ||
818ab71a JJ |
1588 | 2016-01-04 Jakub Jelinek <jakub@redhat.com> |
1589 | ||
1590 | Update copyright years. | |
1591 | ||
745e411d DM |
1592 | 2015-12-21 David Malcolm <dmalcolm@redhat.com> |
1593 | ||
1594 | * c-common.c (binary_op_error): Convert first param from | |
1595 | location_t to rich_location * and use it when emitting an error. | |
1596 | * c-common.h (binary_op_error): Convert first param from | |
1597 | location_t to rich_location *. | |
1598 | ||
de67c4c3 DM |
1599 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
1600 | ||
1601 | * c-common.h (conflict_marker_get_final_tok_kind): New prototype. | |
1602 | * c-lex.c (conflict_marker_get_final_tok_kind): New function. | |
1603 | ||
4a38b02b IV |
1604 | 2015-12-15 Ilya Verbin <ilya.verbin@intel.com> |
1605 | ||
1606 | * c-common.c (c_common_attribute_table): Handle "omp declare target | |
1607 | link" attribute. | |
1608 | ||
54d62f51 JJ |
1609 | 2015-12-14 Jakub Jelinek <jakub@redhat.com> |
1610 | ||
1611 | PR c/68833 | |
1612 | * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option. | |
1613 | ||
8d4227c8 TB |
1614 | 2014-12-12 Tobias Burnus <burnus@net-b.de> |
1615 | ||
1616 | PR fortran/68815 | |
1617 | * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining | |
1618 | specifiers (%d, %i,%u and %c). | |
1619 | ||
f6069ccc DM |
1620 | 2015-12-10 David Malcolm <dmalcolm@redhat.com> |
1621 | ||
1622 | * c.opt (Wmisleading-indentation): Add to -Wall for C and C++. | |
1623 | ||
63bbf46d JJ |
1624 | 2015-12-08 Jakub Jelinek <jakub@redhat.com> |
1625 | ||
1626 | PR c/48088 | |
1627 | PR c/68657 | |
1628 | * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning. | |
1629 | * c-pragma.c (handle_pragma_diagnostic): Adjust | |
1630 | control_warning_option caller. | |
1631 | ||
f79520bb DM |
1632 | 2015-12-07 David Malcolm <dmalcolm@redhat.com> |
1633 | ||
1634 | * c-common.c (c_cpp_error): Update for change to | |
1635 | rich_location::set_range. | |
1636 | ||
b3d5bc62 JJ |
1637 | 2015-12-04 Paolo Bonzini <bonzini@gnu.org> |
1638 | ||
1639 | * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if | |
1640 | shifting 1 out of the sign bit. | |
1641 | ||
1642 | 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com> | |
1643 | ||
1644 | * c-common.c (c_common_attribute_table[]): Update max arguments | |
1645 | count for "simd" attribute. | |
1646 | (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments. | |
1647 | ||
6eb4a537 JJ |
1648 | 2015-12-03 Jakub Jelinek <jakub@redhat.com> |
1649 | ||
1650 | PR preprocessor/57580 | |
1651 | * c-ppoutput.c (print): Change printed field to bool. | |
1652 | Move src_file last for smaller padding. | |
1653 | (init_pp_output): Set print.printed to false instead of 0. | |
1654 | (scan_translation_unit): Fix up formatting. Set print.printed | |
1655 | to true after printing something other than newline. | |
1656 | (scan_translation_unit_trad): Set print.printed to true instead of 1. | |
1657 | (maybe_print_line_1): Set print.printed to false instead of 0. | |
1658 | (print_line_1): Likewise. | |
1659 | (do_line_change): Set print.printed to true instead of 1. | |
1660 | (cb_define, dump_queued_macros, cb_include, cb_def_pragma, | |
1661 | dump_macro): Set print.printed to false after printing newline. | |
1662 | ||
4250754e JM |
1663 | 2015-12-02 Jason Merrill <jason@redhat.com> |
1664 | ||
f479b43d JM |
1665 | * c-common.c (fold_for_warn): New. |
1666 | (warn_logical_operator, warn_tautological_cmp) | |
1667 | (check_function_arguments_recurse, maybe_warn_bool_compare): Use it. | |
1668 | ||
4250754e JM |
1669 | * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold) |
1670 | (c_fully_fold_internal, decl_constant_value_for_optimization): | |
1671 | Move to c/c-fold.c. | |
1672 | * c-common.h: Don't declare decl_constant_value_for_optimization. | |
1673 | ||
e9e32ee6 JM |
1674 | 2015-12-02 Joseph Myers <joseph@codesourcery.com> |
1675 | ||
1676 | PR c/68162 | |
1677 | * c-common.h (c_build_qualified_type): Add extra default | |
1678 | arguments. | |
1679 | ||
37d5ad46 JB |
1680 | 2015-12-01 Julian Brown <julian@codesourcery.com> |
1681 | Cesar Philippidis <cesar@codesourcery.com> | |
1682 | James Norris <James_Norris@mentor.com> | |
1683 | ||
1684 | * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA. | |
1685 | * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA. | |
1686 | (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE. | |
1687 | ||
f07862c7 EB |
1688 | 2015-11-30 Eric Botcazou <ebotcazou@adacore.com> |
1689 | ||
1690 | * c-ada-spec.c (print_ada_macros): Remove redundant blank line. | |
1691 | (decl_sloc_common): Delete and move bulk of processing to... | |
1692 | (decl_sloc): ...here. | |
1693 | (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE. | |
1694 | (dump_ada_double_name): Remove S parameter and compute the suffix. | |
1695 | (dump_ada_array_type): Add PARENT parameter. Simplify computation of | |
1696 | element type and deal with an anonymous one. | |
1697 | (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro. | |
1698 | (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type | |
1699 | and remove reference to QUAL_UNION_TYPE. | |
1700 | (dump_nested_types): Make 2 passes on the fields and move bulk to... | |
1701 | (dump_nested_type): ...here. New function extracted from above. | |
1702 | Generate a full declaration for anonymous element type of arrays. | |
1703 | (print_ada_declaration): Really skip anonymous declarations. Remove | |
1704 | references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type. | |
1705 | Clean up processing of declarations of array types and objects. | |
1706 | (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE. | |
1707 | Remove obsolete code and tidy up. | |
1708 | ||
75c8aac3 JH |
1709 | 2015-11-29 Jan Hubicka <hubicka@ucw.cz> |
1710 | ||
1711 | PR c/67581 | |
1712 | * c-common.c (handle_transparent_union_attribute): Update | |
1713 | also type variants. | |
1714 | ||
b58d3df2 ML |
1715 | 2015-11-27 Martin Liska <mliska@suse.cz> |
1716 | ||
1717 | PR c++/68312 | |
1718 | * array-notation-common.c (cilkplus_extract_an_triplets): | |
1719 | Release vector of vectors. | |
1720 | * cilk.c (gimplify_cilk_spawn): Free allocated memory. | |
1721 | ||
89a01fcf EB |
1722 | 2015-11-26 Eric Botcazou <ebotcazou@adacore.com> |
1723 | ||
1724 | PR c++/68527 | |
1725 | * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node. | |
1726 | (print_ada_struct_decl): Likewise. | |
1727 | ||
cc5c5226 IZ |
1728 | 2015-11-23 Igor Zamyatin <igor.zamyatin@intel.com> |
1729 | ||
1730 | PR c++/68001 | |
1731 | * c-gimplify.c (c_gimplify_expr): Stop the process if see an error. | |
1732 | * cilk.c (recognize_spawn): Determine location in a more precise | |
1733 | way. | |
1734 | ||
269adb9d JM |
1735 | 2015-11-19 Jason Merrill <jason@redhat.com> |
1736 | ||
1737 | * c-common.c (shorten_compare): But look through macros from | |
1738 | system headers. | |
1739 | ||
d0eccfcd JM |
1740 | 2015-11-18 Jason Merrill <jason@redhat.com> |
1741 | ||
1742 | * c-common.c (shorten_compare): Don't -Wtype-limits if the | |
1743 | non-constant operand comes from a macro. | |
1744 | ||
3e44547c JM |
1745 | 2015-11-17 Jason Merrill <jason@redhat.com> |
1746 | ||
1747 | PR bootstrap/68346 | |
1748 | * c-common.c (warn_tautological_cmp): Fold before checking for | |
1749 | constants. | |
1750 | ||
0f62c7a0 MP |
1751 | 2015-11-16 Marek Polacek <polacek@redhat.com> |
1752 | ||
1753 | PR c++/68362 | |
1754 | * c-common.c (check_case_bounds): Fold low and high cases. | |
1755 | ||
a868811e MP |
1756 | 2015-11-16 Marek Polacek <polacek@redhat.com> |
1757 | ||
1758 | * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P. | |
1759 | * c-common.c (c_common_get_alias_set): Likewise. | |
1760 | (handle_visibility_attribute): Likewise. | |
1761 | ||
fff77217 KY |
1762 | 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com> |
1763 | ||
1764 | * c-common.c (handle_simd_attribute): New. | |
1765 | (struct attribute_spec): Add entry for "simd". | |
1766 | (handle_simd_attribute): New. | |
1767 | ||
269e63b7 KT |
1768 | 2015-11-13 Kai Tietz <ktietz70@googlemail.com> |
1769 | ||
1770 | * c-lex.c (interpret_float): Use fold_convert. | |
1771 | ||
ebedc9a3 DM |
1772 | 2015-11-13 David Malcolm <dmalcolm@redhat.com> |
1773 | ||
1774 | * c-common.c (c_fully_fold_internal): Capture existing souce_range, | |
1775 | and store it on the result. | |
1776 | * c-opts.c (c_common_init_options): Set | |
1777 | global_dc->colorize_source_p. | |
1778 | ||
6e232ba4 JN |
1779 | 2015-11-12 James Norris <jnorris@codesourcery.com> |
1780 | Joseph Myers <joseph@codesourcery.com> | |
1781 | ||
1782 | * c-pragma.c (oacc_pragmas): Add entry for declare directive. | |
1783 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE. | |
1784 | (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and | |
1785 | PRAGMA_OACC_CLAUSE_LINK. | |
1786 | ||
e78bede6 MP |
1787 | 2015-11-11 Marek Polacek <polacek@redhat.com> |
1788 | ||
1789 | PR c/68107 | |
1790 | PR c++/68266 | |
1791 | * c-common.c (valid_array_size_p): New function. | |
1792 | * c-common.h (valid_array_size_p): Declare. | |
1793 | ||
3f8257db | 1794 | 2015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr> |
4ac93c7c DH |
1795 | |
1796 | PR bootstrap/68271 | |
1797 | * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256. | |
1798 | ||
69f293c9 AM |
1799 | 2015-11-11 Andrew MacLeod <amacleod@redhat.com> |
1800 | ||
1801 | * array-notation-common.c: Remove unused header files. | |
1802 | * c-ada-spec.c: Likewise. | |
1803 | * c-cilkplus.c: Likewise. | |
1804 | * c-common.c: Likewise. | |
1805 | * c-cppbuiltin.c: Likewise. | |
1806 | * c-dump.c: Likewise. | |
1807 | * c-format.c: Likewise. | |
1808 | * c-gimplify.c: Likewise. | |
1809 | * c-indentation.c: Likewise. | |
1810 | * c-lex.c: Likewise. | |
1811 | * c-omp.c: Likewise. | |
1812 | * c-opts.c: Likewise. | |
1813 | * c-pch.c: Likewise. | |
1814 | * c-ppoutput.c: Likewise. | |
1815 | * c-pragma.c: Likewise. | |
1816 | * c-pretty-print.c: Likewise. | |
1817 | * c-semantics.c: Likewise. | |
1818 | * c-ubsan.c: Likewise. | |
1819 | * cilk.c: Likewise. | |
1820 | * stub-objc.c: Likewise. | |
1821 | ||
3a40d81d NS |
1822 | 2015-11-09 Thomas Schwinge <thomas@codesourcery.com> |
1823 | Cesar Philippidis <cesar@codesourcery.com> | |
1824 | James Norris <jnorris@codesourcery.com> | |
1825 | Julian Brown <julian@codesourcery.com> | |
1826 | Nathan Sidwell <nathan@codesourcery.com> | |
1827 | ||
1828 | * c-pragma.c (oacc_pragmas): Add "routine". | |
1829 | * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE. | |
1830 | ||
ee45a32d EB |
1831 | 2015-11-08 Eric Botcazou <ebotcazou@adacore.com> |
1832 | ||
1833 | * c-common.c (c_common_attributes): Add scalar_storage_order. | |
1834 | (handle_scalar_storage_order_attribute): New function. | |
1835 | * c-pragma.c (global_sso): New variable. | |
1836 | (maybe_apply_pragma_scalar_storage_order): New function. | |
1837 | (handle_pragma_scalar_storage_order): Likewise. | |
1838 | (init_pragma): Register scalar_storage_order. | |
1839 | * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare. | |
1840 | * c.opt (Wscalar-storage-order): New warning. | |
1841 | (fsso-struct=): New option. | |
1842 | ||
eb11eb15 MS |
1843 | 2015-11-08 Martin Sebor <msebor@redhat.com> |
1844 | ||
1845 | * c.opt (Wplacement-new): Add a period to the end of a sentence. | |
1846 | ||
0aad0198 RS |
1847 | 2015-11-07 Richard Sandiford <richard.sandiford@arm.com> |
1848 | ||
1849 | * c-common.c: Don't undef DEF_BUILTIN. | |
1850 | ||
8a645150 DM |
1851 | 2015-11-06 David Malcolm <dmalcolm@redhat.com> |
1852 | ||
1853 | * c-common.c (c_cpp_error): Convert parameter from location_t to | |
1854 | rich_location *. Eliminate the "column_override" parameter and | |
1855 | the call to diagnostic_override_column. | |
1856 | Update the "done_lexing" clause to set range 0 | |
1857 | on the rich_location, rather than overwriting a location_t. | |
1858 | * c-common.h (c_cpp_error): Convert parameter from location_t to | |
1859 | rich_location *. Eliminate the "column_override" parameter. | |
1860 | ||
7a5e4956 CP |
1861 | 2015-11-05 Cesar Philippidis <cesar@codesourcery.com> |
1862 | Thomas Schwinge <thomas@codesourcery.com> | |
1863 | James Norris <jnorris@codesourcery.com> | |
1864 | ||
1865 | * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR, | |
1866 | AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION | |
1867 | clauses with parallel and kernels and loops. | |
1868 | * c-pragma.h (enum pragma_omp_clause): Add entries for | |
1869 | PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}. | |
1870 | * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS, | |
1871 | NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO, | |
1872 | INDEPENDENT,SEQ}. | |
1873 | (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}. | |
1874 | ||
e2f5cc96 MS |
1875 | 2015-11-05 Martin Sebor <msebor@redhat.com> |
1876 | ||
1877 | PR c++/67942 | |
1878 | * c.opt (-Wplacement-new): New option. | |
1879 | ||
e01d41e5 JJ |
1880 | 2015-11-05 Jakub Jelinek <jakub@redhat.com> |
1881 | ||
1882 | * c-common.h (c_finish_omp_atomic): Add TEST argument. | |
1883 | (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes. | |
1884 | * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call | |
1885 | save_expr or create_tmp_var* if TEST is true. | |
1886 | (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always. | |
1887 | Don't call add_stmt here. | |
1888 | (struct c_omp_check_loop_iv_data): New type. | |
1889 | (c_omp_check_loop_iv_r, c_omp_check_loop_iv, | |
1890 | c_omp_check_loop_iv_exprs): New functions. | |
1891 | (c_omp_split_clauses): Adjust for lastprivate being allowed on | |
1892 | distribute. | |
1893 | (c_omp_declare_simd_clauses_to_numbers): Change | |
1894 | OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers. | |
1895 | (c_omp_declare_simd_clauses_to_decls): Similarly change those | |
1896 | from numbers to PARM_DECLs. | |
1897 | ||
595278be MM |
1898 | 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com> |
1899 | ||
1900 | * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use | |
1901 | flag_checking. | |
1902 | ||
3f8257db | 1903 | 2015-11-03 Bernd Schmidt <bschmidt@redhat.com> |
c85158de MS |
1904 | |
1905 | PR c++-common/67882 | |
b3d5bc62 JJ |
1906 | * c-common.h (fold_offsetof_1): Add argument. |
1907 | * c-common.c (fold_offsetof_1): Diagnose more invalid | |
c85158de MS |
1908 | offsetof expressions that reference elements past the end of |
1909 | an array. | |
1910 | ||
4bf9e5a8 TS |
1911 | 2015-11-03 Thomas Schwinge <thomas@codesourcery.com> |
1912 | Chung-Lin Tang <cltang@codesourcery.com> | |
1913 | ||
1914 | * c-pragma.c (oacc_pragmas): Add "atomic". | |
1915 | * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC. | |
1916 | ||
3b1661a9 ES |
1917 | 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com> |
1918 | ||
1919 | * c-common.c (handle_target_clones_attribute): New. | |
1920 | (c_common_attribute_table): Add handle_target_clones_attribute. | |
1921 | (handle_always_inline_attribute): Add check on target_clones attribute. | |
1922 | (handle_target_attribute): Ditto. | |
1923 | ||
2adfab87 AM |
1924 | 2015-10-29 Andrew MacLeod <amacleod@redhat.com> |
1925 | ||
1926 | * array-notation-common.c: Reorder #include's and remove duplicates. | |
1927 | * c-ada-spec.c: Likewise. | |
1928 | * c-cilkplus.c: Likewise. | |
1929 | * c-common.c: Likewise. | |
1930 | * c-cppbuiltin.c: Likewise. | |
1931 | * c-dump.c: Likewise. | |
1932 | * c-format.c: Likewise. | |
1933 | * c-gimplify.c: Likewise. | |
1934 | * c-indentation.c: Likewise. | |
1935 | * c-lex.c: Likewise. | |
1936 | * c-omp.c: Likewise. | |
1937 | * c-opts.c: Likewise. | |
1938 | * c-pch.c: Likewise. | |
1939 | * c-ppoutput.c: Likewise. | |
1940 | * c-pragma.c: Likewise. | |
1941 | * c-pretty-print.c: Likewise. | |
1942 | * c-semantics.c: Likewise. | |
1943 | * c-ubsan.c: Likewise. | |
1944 | * cilk.c: Likewise. | |
1945 | * stub-objc.c: Likewise. | |
1946 | ||
d90ec4f2 JM |
1947 | 2015-10-28 Jason Merrill <jason@redhat.com> |
1948 | ||
1949 | * c-common.c (pointer_int_sum): Fold the MULT_EXPR. | |
1950 | ||
88bae6f4 TS |
1951 | 2015-10-27 Thomas Schwinge <thomas@codesourcery.com> |
1952 | James Norris <jnorris@codesourcery.com> | |
1953 | Cesar Philippidis <cesar@codesourcery.com> | |
1954 | ||
1955 | PR c/64765 | |
1956 | PR c/64880 | |
1957 | * c-common.h (c_oacc_split_loop_clauses): Declare function. | |
1958 | * c-omp.c (c_oacc_split_loop_clauses): New function. | |
1959 | ||
b1726d6c MS |
1960 | 2015-10-21 Martin Sebor <msebor@redhat.com> |
1961 | ||
1962 | PR driver/68043 | |
1963 | * c.opt: End each sentence that describes an option with a period. | |
1964 | ||
fa60eeb9 MP |
1965 | 2015-10-20 Marek Polacek <polacek@redhat.com> |
1966 | ||
1967 | * array-notation-common.c (is_cilkplus_vector_p): Define. | |
1968 | * c-common.h (is_cilkplus_vector_p): Declare. | |
1969 | ||
95979049 MP |
1970 | 2015-10-20 Marek Polacek <polacek@redhat.com> |
1971 | ||
1972 | * c.opt (std=gnu++11): Do not describe as experimental. | |
1973 | (std=gnu++14): Likewise. | |
1974 | ||
2a9fb712 JM |
1975 | 2015-10-19 Jason Merrill <jason@redhat.com> |
1976 | ||
1977 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
1978 | __cpp_nontype_template_args. | |
1979 | ||
13b380a3 JM |
1980 | 2015-10-19 Jason Merrill <jason@redhat.com> |
1981 | ||
1982 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
1983 | __cpp_enumerator_attributes, __cpp_fold_expressions, | |
1984 | __cpp_unicode_characters. | |
1985 | ||
d9a6bd32 JJ |
1986 | 2015-10-13 Jakub Jelinek <jakub@redhat.com> |
1987 | Aldy Hernandez <aldyh@redhat.com> | |
1988 | ||
1989 | * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9, | |
1990 | DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11. | |
1991 | (c_define_builtins): Likewise. | |
1992 | * c-common.h (enum c_omp_clause_split): Add | |
1993 | C_OMP_CLAUSE_SPLIT_TASKLOOP. | |
1994 | (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument. | |
1995 | (c_finish_omp_for): Add ORIG_DECLV argument. | |
1996 | * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as | |
1997 | 201511 instead of 201307. | |
1998 | * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set | |
1999 | OMP_CRITICAL_CLAUSES to it. | |
2000 | (c_finish_omp_ordered): Add CLAUSES argument, set | |
2001 | OMP_ORDERED_CLAUSES to it. | |
2002 | (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS | |
2003 | to it if OMP_FOR. Clear DECL_INITIAL on the IVs. | |
2004 | (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite | |
2005 | constructs and new OpenMP 4.5 clauses. Clear | |
2006 | OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add | |
2007 | verification code. | |
2008 | * c-pragma.c (omp_pragmas_simd): Add taskloop. | |
2009 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP. | |
2010 | (enum pragma_omp_clause): Add | |
2011 | PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR} | |
2012 | and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}. | |
2013 | ||
624d31fe RS |
2014 | 2015-10-05 Richard Sandiford <richard.sandiford@arm.com> |
2015 | ||
2016 | * c-lex.c (interpret_float): Use real_equal instead of | |
2017 | REAL_VALUES_EQUAL. | |
2018 | ||
b8fd7909 JM |
2019 | 2015-10-04 Jason Merrill <jason@redhat.com> |
2020 | ||
2021 | Implement N4514, C++ Extensions for Transactional Memory. | |
2022 | * c-common.c (c_common_reswords): Add C++ TM TS keywords. | |
2023 | (c_common_attribute_table): Add transaction_safe_dynamic. | |
2024 | transaction_safe now affects type identity. | |
2025 | (handle_tm_attribute): Handle transaction_safe_dynamic. | |
2026 | * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT, | |
2027 | RID_ATOMIC_CANCEL, RID_SYNCHRONIZED. | |
2028 | (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED. | |
2029 | (D_TRANSMEM): New. | |
2030 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory. | |
2031 | * c-pretty-print.c (pp_c_attributes_display): Don't print | |
2032 | transaction_safe in C++. | |
2033 | ||
12651878 MP |
2034 | 2015-10-02 Marek Polacek <polacek@redhat.com> |
2035 | ||
2036 | * c.opt (Wduplicated-cond): Don't enable by -Wall anymore. | |
2037 | ||
3e3b8d63 MP |
2038 | 2015-10-02 Marek Polacek <polacek@redhat.com> |
2039 | ||
2040 | PR c/64249 | |
2041 | * c-common.c (warn_duplicated_cond_add_or_warn): New function. | |
2042 | * c-common.h (warn_duplicated_cond_add_or_warn): Declare. | |
2043 | * c.opt (Wduplicated-cond): New option. | |
2044 | ||
0d1a8f75 JM |
2045 | 2015-10-01 Joseph Myers <joseph@codesourcery.com> |
2046 | ||
2047 | * c.opt (std=c11): Do not describe as experimental. | |
2048 | (std=gnu11): Likewise. | |
2049 | (std=iso9899:2011): Likewise. | |
2050 | ||
3e32ee19 NS |
2051 | 2015-09-28 Nathan Sidwell <nathan@codesourcery.com> |
2052 | ||
2053 | * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New. | |
2054 | (DEF_FUNCTION_TYPE_VAR_11): Delete. | |
2055 | ||
974348ee MP |
2056 | 2015-09-25 Marek Polacek <polacek@redhat.com> |
2057 | ||
2058 | * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code. | |
2059 | (ubsan_instrument_shift): Likewise. | |
2060 | ||
15dbc1a6 MP |
2061 | 2015-09-25 Marek Polacek <polacek@redhat.com> |
2062 | ||
2063 | PR sanitizer/64906 | |
2064 | * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1. | |
2065 | ||
6b95d7cc PP |
2066 | 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org> |
2067 | ||
2068 | * c-indentation.c (should_warn_for_misleading_indentation): | |
2069 | Compare next_stmt_vis_column with guard_line_first_nws instead | |
2070 | of with guard_line_vis_column. | |
2071 | ||
c1822f9c MLI |
2072 | 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2073 | ||
2074 | PR c/49654 | |
2075 | PR c/49655 | |
2076 | * c-pragma.c (handle_pragma_diagnostic): Detect non-warning | |
2077 | options and options not valid for the current language. | |
2078 | ||
d5398058 PP |
2079 | 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org> |
2080 | ||
2081 | * c-indentation.c (should_warn_for_misleading_indentation): | |
2082 | Float out and consolidate the calls to get_visual_column that | |
2083 | are passed guard_exploc as an argument. Compare | |
2084 | next_stmt_vis_column with guard_line_first_nws instead of with | |
2085 | body_line_first_nws. | |
2086 | ||
6b333269 NS |
2087 | 2015-09-22 Nathan Sidwell <nathan@codesourcery.com> |
2088 | ||
2089 | * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates, | |
2090 | Wnamespaces): New C++ warnings. | |
2091 | ||
a75f1574 JM |
2092 | 2015-09-22 Jason Merrill <jason@redhat.com> |
2093 | ||
2094 | * c-common.h (abi_compat_version_crosses): New. | |
2095 | (warn_abi_version): Declare. | |
2096 | * c-common.c: Define it. | |
2097 | * c-opts.c (c_common_post_options): Handle it. | |
2098 | flag_abi_compat_version defaults to 8. | |
2099 | ||
bdaaa8b7 VV |
2100 | 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com> |
2101 | ||
2102 | Complete the implementation of N4230, Nested namespace definition. | |
2103 | * c-cppbuiltin.c: Add __cpp_namespace_attributes and | |
2104 | __cpp_nested_namespace_definitions. | |
2105 | ||
eaa797e8 MLI |
2106 | 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2107 | ||
2108 | * c-pragma.c (handle_pragma_diagnostic): Fix wrong return. | |
2109 | ||
c4914de6 MLI |
2110 | 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2111 | ||
2112 | * c-pragma.c (handle_pragma_diagnostic): Use explicit location | |
2113 | when warning. | |
2114 | * c-pragma.h (pragma_lex): Add optional loc argument. | |
2115 | ||
fcb87c50 MM |
2116 | 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com> |
2117 | ||
2118 | * c-format.c (check_format_arg): Adjust to use common block size in all | |
2119 | object pools. | |
2120 | ||
31bdd08a DM |
2121 | 2015-09-15 David Malcolm <dmalcolm@redhat.com> |
2122 | ||
2123 | * c-format.c (location_from_offset): Update for change in | |
2124 | signature of location_get_source_line. | |
2125 | * c-indentation.c (get_visual_column): Likewise. | |
2126 | (line_contains_hash_if): Likewise. | |
2127 | ||
aa9f4b4c MP |
2128 | 2015-09-14 Marek Polacek <polacek@redhat.com> |
2129 | ||
2130 | * c-opts.c (c_common_post_options): Set C++ standard earlier, before | |
2131 | setting various warnings. | |
2132 | ||
aa256c4a MP |
2133 | 2015-09-14 Marek Polacek <polacek@redhat.com> |
2134 | ||
2135 | * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting | |
2136 | a negative value. | |
2137 | ||
0f876f22 MW |
2138 | 2015-09-11 Mark Wielaard <mjw@redhat.com> |
2139 | ||
2140 | PR c/28901 | |
2141 | * c.opt (Wunused-variable): Option from common.opt. | |
2142 | (Wunused-const-variable): New option. | |
2143 | ||
273aa49e PC |
2144 | 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com> |
2145 | ||
2146 | PR c++/53184 | |
2147 | * c.opt ([Wsubobject-linkage]): Add. | |
2148 | ||
1807ffc1 MS |
2149 | 2015-09-03 Martin Sebor <msebor@redhat.com> |
2150 | ||
2151 | PR c/66516 | |
2152 | * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new | |
2153 | functions. | |
2154 | * c-common.c (reject_gcc_builtin): Define. | |
2155 | ||
38942840 BI |
2156 | 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com> |
2157 | ||
2158 | PR middle-end/60586 | |
2159 | * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New | |
2160 | prototype. | |
2161 | * c-gimplify.c (c_gimplify_expr): Added a call to the function | |
2162 | cilk_gimplify_call_params_in_spawned_fn. | |
2163 | * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function. | |
2164 | (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR | |
2165 | unwrapping. | |
2166 | ||
c316b5e4 MP |
2167 | 2015-08-25 Marek Polacek <polacek@redhat.com> |
2168 | ||
2169 | PR middle-end/67330 | |
2170 | * c-common.c (handle_weak_attribute): Don't check whether the | |
2171 | visibility can be changed here. | |
2172 | ||
584a7c46 MLI |
2173 | 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2174 | ||
2175 | * c-lex.c (c_lex_with_flags): Use explicit locations. | |
2176 | ||
a79683d5 TS |
2177 | 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org> |
2178 | ||
2179 | * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h, | |
2180 | c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless | |
2181 | ||
61717a45 FXC |
2182 | 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
2183 | ||
2184 | PR middle-end/36757 | |
2185 | * c-common.c (check_builtin_function_arguments): Add check | |
2186 | for BUILT_IN_SIGNBIT argument. | |
2187 | ||
329524f5 PC |
2188 | 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com> |
2189 | ||
2190 | PR c++/67160 | |
2191 | * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value | |
2192 | in c++1z mode. | |
2193 | ||
4ee55665 MP |
2194 | 2015-08-17 Marek Polacek <polacek@redhat.com> |
2195 | ||
2196 | * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing | |
2197 | with whitespaces before qualifier names. | |
2198 | ||
b893e375 MP |
2199 | 2015-08-12 Marek Polacek <polacek@redhat.com> |
2200 | ||
2201 | PR c++/55095 | |
2202 | * c-common.c (maybe_warn_shift_overflow): Properly handle | |
2203 | left-shifting 1 into the sign bit. | |
2204 | ||
c2d89095 MLI |
2205 | 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2206 | ||
2207 | * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy. | |
2208 | ||
971e17ff AS |
2209 | 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com> |
2210 | Braden Obrzut <admin@maniacsvault.net> | |
2211 | Jason Merrill <jason@redhat.com> | |
2212 | ||
2213 | Add C++ Concepts TS support. | |
2214 | * c-common.c (c_common_reswords): Add __is_same_as, concept, requires. | |
2215 | * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES. | |
2216 | (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New. | |
2217 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts. | |
2218 | * c-opts.c (set_std_cxx1z): Set flag_concepts. | |
2219 | * c.opt (fconcepts): New. | |
2220 | ||
b3d5bc62 JJ |
2221 | 2015-08-02 Martin Sebor <msebor@redhat.com> |
2222 | ||
2223 | * c.opt (-Wframe-address): New warning option. | |
2224 | ||
8ebca419 PP |
2225 | 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org> |
2226 | ||
2227 | * c-indentation.c (should_warn_for_misleading_indentation): | |
2228 | Improve heuristics. | |
2229 | ||
1a1e101f PP |
2230 | 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org> |
2231 | ||
2232 | * c-indentation.c (get_visual_column): Add parameter first_nws, | |
2233 | use it. Update comment documenting the function. | |
2234 | (is_first_nonwhitespace_on_line): Remove. | |
2235 | (should_warn_for_misleading_indentation): Replace usage of | |
2236 | of is_first_nonwhitespace_on_line with get_visual_column. | |
2237 | ||
992118a1 PP |
2238 | 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org> |
2239 | ||
2240 | * c-indentation.h (struct token_indent_info): Define. | |
2241 | (get_token_indent_info): Define. | |
2242 | (warn_for_misleading_information): Declare. | |
2243 | * c-common.h (warn_for_misleading_information): Remove. | |
2244 | * c-identation.c (warn_for_misleading_indentation): | |
2245 | Change declaration to take three token_indent_infos. Adjust | |
2246 | accordingly. | |
2247 | * c-identation.c (should_warn_for_misleading_indentation): | |
2248 | Likewise. Bail out early if the body is a compound statement. | |
2249 | (guard_tinfo_to_string): Define. | |
2250 | ||
e8fa3817 JM |
2251 | 2015-07-30 Jason Merrill <jason@redhat.com> |
2252 | ||
2253 | * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print | |
2254 | '*' for reference decay. | |
2255 | ||
173864e8 MP |
2256 | 2015-07-30 Marek Polacek <polacek@redhat.com> |
2257 | ||
2258 | * c-common.c (warn_tautological_cmp): Bail for float types. | |
2259 | ||
f2afe6dd MP |
2260 | 2015-07-27 Marek Polacek <polacek@redhat.com> |
2261 | ||
2262 | PR bootstrap/67030 | |
2263 | * c-common.c (warn_tautological_cmp): Don't warn for macro expansion. | |
2264 | ||
05b28fd6 MP |
2265 | 2015-07-27 Marek Polacek <polacek@redhat.com> |
2266 | ||
2267 | PR c++/66555 | |
2268 | PR c/54979 | |
2269 | * c-common.c (find_array_ref_with_const_idx_r): New function. | |
2270 | (warn_tautological_cmp): New function. | |
2271 | * c-common.h (warn_tautological_cmp): Declare. | |
2272 | * c.opt (Wtautological-compare): New option. | |
2273 | ||
5a5062b8 MP |
2274 | 2015-07-23 Marek Polacek <polacek@redhat.com> |
2275 | ||
2276 | * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout. | |
2277 | (ubsan_instrument_shift): Likewise. | |
2278 | ||
dc891fe7 MP |
2279 | 2015-07-23 Marek Polacek <polacek@redhat.com> |
2280 | ||
2281 | PR sanitizer/66908 | |
2282 | * c-ubsan.c: Include gimplify.h. | |
2283 | (ubsan_instrument_division): Unshare OP0 and OP1. | |
2284 | (ubsan_instrument_shift): Likewise. | |
2285 | ||
451b5e48 MP |
2286 | 2015-07-20 Marek Polacek <polacek@redhat.com> |
2287 | Richard Sandiford <richard.sandiford@arm.com> | |
2288 | ||
2289 | PR c++/55095 | |
2290 | * c-common.c (c_fully_fold_internal): Warn about left shift overflows. | |
2291 | Use EXPR_LOC_OR_LOC. | |
2292 | (maybe_warn_shift_overflow): New function. | |
2293 | * c-common.h (maybe_warn_shift_overflow): Declare. | |
2294 | * c-opts.c (c_common_post_options): Set warn_shift_overflow. | |
2295 | * c.opt (Wshift-overflow): New option. | |
2296 | ||
fb0b2914 ML |
2297 | 2015-07-16 Martin Liska <mliska@suse.cz> |
2298 | ||
2299 | * c-format.c (static void check_format_info_main): Use | |
2300 | object_allocator instead of pool_allocator. | |
2301 | (check_format_arg): Likewise. | |
2302 | (check_format_info_main): Likewise. | |
2303 | ||
903f5c23 AM |
2304 | 2015-07-15 Andrew MacLeod <amacleod@redhat.com> |
2305 | ||
2306 | * c-opts.c: Remove multiline #include comment. | |
2307 | ||
026c3cfd AH |
2308 | 2015-07-12 Aldy Hernandez <aldyh@redhat.com> |
2309 | ||
2310 | * c-common.c: Fix double word typos. | |
2311 | ||
bb49ee66 EB |
2312 | 2015-07-10 Eric Botcazou <ebotcazou@adacore.com> |
2313 | ||
2314 | * c-ada-spec.h (cpp_operation): Revert latest change. | |
2315 | * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit | |
2316 | constructors and destructors. | |
2317 | ||
1916bcb5 AM |
2318 | 2015-07-09 Andrew MacLeod <amacleod@redhat.com> |
2319 | ||
2320 | * c-common.h: Adjust includes for flags.h changes. | |
2321 | * stub-objc.c: Likewise. | |
026c3cfd | 2322 | |
a9dcd529 EB |
2323 | 2015-07-08 Eric Botcazou <ebotcazou@adacore.com> |
2324 | ||
2325 | * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR. | |
2326 | * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors. | |
2327 | ||
b03b462f JJ |
2328 | 2015-07-08 Jakub Jelinek <jakub@redhat.com> |
2329 | ||
2330 | * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses | |
2331 | are to be removed, return NULL rather than original clauses list. | |
2332 | ||
c7131fb2 AM |
2333 | 2015-07-07 Andrew MacLeod <amacleod@redhat.com> |
2334 | ||
2335 | * array-notation-common.c: Adjust includes. | |
2336 | * c-ada-spec.c: Likewise. | |
2337 | * c-cilkplus.c: Likewise. | |
2338 | * c-common.h: Likewise. | |
2339 | * c-cppbuiltin.c: Likewise. | |
2340 | * c-dump.c: Likewise. | |
2341 | * c-format.c: Likewise. | |
2342 | * c-gimplify.c: Likewise. | |
2343 | * c-indentation.c: Likewise. | |
2344 | * c-lex.c: Likewise. | |
2345 | * c-omp.c: Likewise. | |
2346 | * c-opts.c: Likewise. | |
2347 | * c-pch.c: Likewise. | |
2348 | * c-ppoutput.c: Likewise. | |
2349 | * c-pragma.c: Likewise. | |
2350 | * c-pretty-print.c: Likewise. | |
2351 | * c-semantics.c: Likewise. | |
2352 | * c-ubsan.c: Likewise. | |
2353 | * cilk.c: Likewise. | |
2354 | * stub-objc.c: Likewise. | |
2355 | ||
2a7fb83f EB |
2356 | 2015-07-07 Eric Botcazou <ebotcazou@adacore.com> |
2357 | ||
2358 | * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR. | |
2359 | * c-ada-spec.c (print_ada_declaration): Skip move constructors. | |
2360 | ||
a03c9bf1 JM |
2361 | 2015-07-01 Jason Merrill <jason@redhat.com> |
2362 | ||
36a85135 JM |
2363 | * c-common.h (D_CXX11): Rename from D_CXX0X. |
2364 | (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X. | |
2365 | * c-common.c: Adjust. | |
2366 | ||
e7fa68d5 JM |
2367 | * c-opts.c (c_common_post_options): Default to C++14. |
2368 | ||
a03c9bf1 JM |
2369 | * c-opts.c (c_common_post_options): Highest ABI level is now 10. |
2370 | ||
fe95b036 ESR |
2371 | 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net> |
2372 | ||
2373 | Implement N4197 - Adding u8 character literals | |
b3d5bc62 | 2374 | * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like |
a64be36b | 2375 | CPP_CHAR. |
b3d5bc62 | 2376 | * c-common.c (c_parse_error): Print CPP_UTF8CHAR and |
a64be36b | 2377 | CPP_UTF8CHAR_USERDEF tokens. |
b3d5bc62 | 2378 | * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF |
a64be36b EB |
2379 | and CPP_UTF8CHAR tokens. |
2380 | (lex_charconst): Treat CPP_UTF8CHAR token. | |
fe95b036 | 2381 | |
da2e71c9 MLI |
2382 | 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2383 | ||
2384 | PR fortran/66605 | |
2385 | * c-common.c (do_warn_unused_parameter): Move here. | |
2386 | * c-common.h (do_warn_unused_parameter): Declare. | |
2387 | ||
b155cfd9 MP |
2388 | 2015-06-29 Marek Polacek <polacek@redhat.com> |
2389 | ||
2390 | PR c/66322 | |
2391 | * c-common.c (check_case_bounds): Add bool * parameter. Set | |
2392 | OUTSIDE_RANGE_P. | |
2393 | (c_add_case_label): Add bool * parameter. Pass it down to | |
2394 | check_case_bounds. | |
2395 | (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool | |
2396 | warning here. | |
2397 | * c-common.h (c_add_case_label, c_do_switch_warnings): Update | |
2398 | declarations. | |
2399 | ||
31521951 MP |
2400 | 2015-06-27 Marek Polacek <polacek@redhat.com> |
2401 | ||
2402 | * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P | |
2403 | or VECTOR_INTEGER_TYPE_P throughout. | |
2404 | * c-gimplify.c: Likewise. | |
2405 | ||
22d03525 MP |
2406 | 2015-06-26 Marek Polacek <polacek@redhat.com> |
2407 | ||
2408 | * array-notation-common.c (find_rank): Use INDIRECT_REF_P. | |
2409 | * c-common.c (c_fully_fold_internal): Likewise. | |
2410 | (c_alignof_expr): Likewise. | |
2411 | * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise. | |
2412 | * c-ubsan.c (ubsan_instrument_bounds): Likewise. | |
b1726d6c | 2413 | * cilk.c (create_parm_list): Likewise. |
22d03525 | 2414 | |
af05e6e5 MP |
2415 | 2015-06-26 Marek Polacek <polacek@redhat.com> |
2416 | ||
2417 | * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P. | |
2418 | ||
f0889939 AM |
2419 | 2015-06-25 Andrew MacLeod <amacleod@redhat.com> |
2420 | ||
2421 | * c-common.c: Remove ipa-ref.h and plugin-api.h from include list. | |
2422 | * c-gimplify.c: Likewise. | |
2423 | * c-pragma.c: Likewise. | |
2424 | * c-ubsan.c: Likewise. | |
2425 | * cilk.c: Likewise. | |
2426 | ||
ca752f39 RS |
2427 | 2015-06-25 Richard Sandiford <richard.sandiford@arm.com> |
2428 | ||
2429 | * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than | |
2430 | ggc_hasher. | |
2431 | ||
16a16ec7 AM |
2432 | 2015-06-25 Andrew MacLeod <amacleod@redhat.com> |
2433 | ||
2434 | * cilk.c: Move calls.h after tm.h in the include chain. | |
2435 | ||
0ae9bd27 MP |
2436 | 2015-06-25 Marek Polacek <polacek@redhat.com> |
2437 | ||
2438 | * array-notation-common.c: Use VAR_P throughout. | |
2439 | * c-ada-spec.c: Likewise. | |
2440 | * c-common.c: Likewise. | |
2441 | * c-format.c: Likewise. | |
2442 | * c-gimplify.c: Likewise. | |
2443 | * c-omp.c: Likewise. | |
2444 | * c-pragma.c: Likewise. | |
2445 | * c-pretty-print.c: Likewise. | |
2446 | * cilk.c: Likewise. | |
2447 | ||
62f9079a MP |
2448 | 2015-06-25 Marek Polacek <polacek@redhat.com> |
2449 | ||
2450 | * cilk.c (extract_free_variables): Use is_global_var. | |
2451 | ||
0fa16060 RS |
2452 | 2015-06-23 Richard Sandiford <richard.sandiford@arm.com> |
2453 | ||
2454 | * c-common.c: Don't include target-def.h. | |
2455 | ||
a68ae2e1 MP |
2456 | 2015-06-23 Marek Polacek <polacek@redhat.com> |
2457 | ||
2458 | * c-common.c (warn_logical_operator): Use tree_int_cst_equal | |
2459 | when comparing INTEGER_CSTs. | |
2460 | ||
c6a2f2d9 PMR |
2461 | 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com> |
2462 | ||
2463 | * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS. | |
2464 | * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL | |
2465 | (dump_ada_template): Skip partially specialized types. | |
2466 | ||
6b4db501 MM |
2467 | 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com> |
2468 | ||
2469 | * c-common.c (scalar_to_vector): Use std::swap instead of manually | |
2470 | swapping. | |
2471 | ||
abb226c9 AM |
2472 | 2015-06-17 Andrew MacLeod <amacleod@redhat.com> |
2473 | ||
2474 | * array-notation-common.c: Do not include input.h, line-map.h or is-a.h. | |
2475 | * c-ada-spec.c: Likewise. | |
2476 | * c-cilkplus.c: Likewise. | |
2477 | * c-common.c: Likewise. | |
2478 | * c-common.h: Likewise. | |
2479 | * c-cppbuiltin.c: Likewise. | |
2480 | * c-dump.c: Likewise. | |
2481 | * c-format.c: Likewise. | |
2482 | * c-gimplify.c: Likewise. | |
2483 | * c-indentation.c: Likewise. | |
2484 | * c-lex.c: Likewise. | |
2485 | * c-omp.c: Likewise. | |
2486 | * c-opts.c: Likewise. | |
2487 | * c-pch.c: Likewise. | |
2488 | * c-ppoutput.c: Likewise. | |
2489 | * c-pragma.c: Likewise. | |
2490 | * c-pretty-print.c: Likewise. | |
2491 | * c-semantics.c: Likewise. | |
2492 | * c-ubsan.c: Likewise. | |
2493 | * cilk.c: Likewise. | |
2494 | * stub-objc.c: Likewise. | |
2495 | ||
076fecad PP |
2496 | 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org> |
2497 | ||
2498 | PR c++/65168 | |
2499 | * c-common.c (c_common_truthvalue_conversion): Warn when | |
2500 | converting an address of a reference to a truth value. | |
2501 | ||
13fdf2e2 AM |
2502 | 2015-06-08 Andrew MacLeod <amacleod@redhat.com> |
2503 | ||
2504 | * array-notation-common.c : Adjust include files. | |
2505 | * c-ada-spec.c : Likewise. | |
2506 | * c-cilkplus.c : Likewise. | |
2507 | * c-common.c : Likewise. | |
2508 | * c-common.h : Likewise. | |
2509 | * c-cppbuiltin.c : Likewise. | |
2510 | * c-dump.c : Likewise. | |
2511 | * c-format.c : Likewise. | |
2512 | * c-gimplify.c : Likewise. | |
2513 | * c-indentation.c : Likewise. | |
2514 | * c-lex.c : Likewise. | |
2515 | * c-omp.c : Likewise. | |
2516 | * c-opts.c : Likewise. | |
2517 | * c-pch.c : Likewise. | |
2518 | * c-ppoutput.c : Likewise. | |
2519 | * c-pragma.c : Likewise. | |
2520 | * c-pretty-print.c : Likewise. | |
2521 | * c-semantics.c : Likewise. | |
2522 | * c-ubsan.c : Likewise. | |
2523 | * cilk.c : Likewise. | |
2524 | * stub-objc.c : Likewise. | |
2525 | ||
a1661b90 MP |
2526 | 2015-06-08 Marek Polacek <polacek@redhat.com> |
2527 | ||
2528 | PR c/66415 | |
2529 | * c-format.c (location_from_offset): Return LOC if LINE is null. | |
2530 | ||
d7438551 AH |
2531 | 2015-06-05 Aldy Hernandez <aldyh@redhat.com> |
2532 | ||
2533 | * c-common.h (c_parse_final_cleanups): New prototype. | |
2534 | * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups. | |
2535 | ||
b3d5bc62 JJ |
2536 | 2015-06-04 Sriraman Tallam <tmsriram@google.com> |
2537 | ||
2538 | * c-common.c (noplt): New attribute. | |
2539 | (handle_noplt_attribute): New handler. | |
2540 | ||
ecb9f223 AM |
2541 | 2015-06-04 Andrew MacLeod <amacleod@redhat.com> |
2542 | ||
2543 | * array-notation-common.c: Adjust includes for restructured coretypes.h. | |
2544 | * c-ada-spec.c: Likewise. | |
2545 | * c-cilkplus.c: Likewise. | |
2546 | * c-common.c: Likewise. | |
2547 | * c-common.h: Likewise. | |
2548 | * c-cppbuiltin.c: Likewise. | |
2549 | * c-dump.c: Likewise. | |
2550 | * c-format.c: Likewise. | |
2551 | * c-gimplify.c: Likewise. | |
2552 | * c-indentation.c: Likewise. | |
2553 | * c-lex.c: Likewise. | |
2554 | * c-omp.c: Likewise. | |
2555 | * c-opts.c: Likewise. | |
2556 | * c-pch.c: Likewise. | |
2557 | * c-ppoutput.c: Likewise. | |
2558 | * c-pragma.c: Likewise. | |
2559 | * c-pretty-print.c: Likewise. | |
2560 | * c-semantics.c: Likewise. | |
2561 | * c-ubsan.c: Likewise. | |
2562 | * cilk.c: Likewise. | |
2563 | * stub-objc.c: Likewise. | |
2564 | ||
6ac48155 DM |
2565 | 2015-06-02 David Malcolm <dmalcolm@redhat.com> |
2566 | ||
2567 | PR c/66220: | |
2568 | * c-indentation.c (should_warn_for_misleading_indentation): Use | |
2569 | expand_location rather than expand_location_to_spelling_point. | |
2570 | Don't warn if the guarding statement is more indented than the | |
2571 | next/body stmts. | |
2572 | ||
773ce42e DM |
2573 | 2015-06-02 David Malcolm <dmalcolm@redhat.com> |
2574 | ||
2575 | * c-indentation.c (warn_for_misleading_indentation): Bail out | |
2576 | immediately if -Wmisleading-indentation isn't enabled. | |
2577 | ||
4fef8379 ML |
2578 | 2015-06-01 Martin Liska <mliska@suse.cz> |
2579 | ||
2580 | * c-format.c (check_format_arg):Use new type-based pool allocator. | |
2581 | (check_format_info_main) Likewise. | |
2582 | ||
1edfb384 EB |
2583 | 2015-05-31 Eric Botcazou <ebotcazou@adacore.com> |
2584 | ||
2585 | * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant. | |
2586 | (has_nontrivial_methods): Likewise. | |
2587 | ||
9677ef52 MP |
2588 | 2015-05-25 Marek Polacek <polacek@redhat.com> |
2589 | ||
2590 | * c-ubsan.c (ubsan_instrument_shift): Use type0. | |
2591 | ||
fd5c817a MP |
2592 | 2015-05-22 Marek Polacek <polacek@redhat.com> |
2593 | ||
2594 | PR c/47043 | |
2595 | * c-common.c (handle_deprecated_attribute): Allow CONST_DECL. | |
2596 | ||
a2f45fe6 | 2597 | 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
581edfa3 TS |
2598 | |
2599 | * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with | |
2600 | STACK_GROWS_DOWNWARD. | |
2601 | ||
a2f45fe6 | 2602 | 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
62f9f30b TS |
2603 | |
2604 | * c-cppbuiltin.c (c_cpp_builtins): Check the value of | |
2605 | STACK_GROWS_DOWNWARD rather than if it is defined. | |
2606 | ||
0fee2ac2 | 2607 | 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org> |
b1726d6c | 2608 | |
0fee2ac2 MLI |
2609 | PR c/52952 |
2610 | * c-format.c (location_column_from_byte_offset): New. | |
2611 | (location_from_offset): New. | |
2612 | (struct format_wanted_type): Add offset_loc field. | |
2613 | (check_format_info): Move handling of location for extra arguments | |
2614 | closer to the point of warning. | |
2615 | (check_format_info_main): Pass the result of location_from_offset | |
2616 | to warning_at. | |
2617 | (format_type_warning): Pass the result of location_from_offset | |
2618 | to warning_at. | |
2619 | ||
cf4ef6f7 MP |
2620 | 2015-05-20 Marek Polacek <polacek@redhat.com> |
2621 | ||
2622 | * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P. | |
2623 | ||
3a65ee74 MP |
2624 | 2015-05-20 Marek Polacek <polacek@redhat.com> |
2625 | ||
2626 | * c-ada-spec.c (dump_sloc): Use DECL_P. | |
2627 | ||
21b634ae MP |
2628 | 2015-05-20 Marek Polacek <polacek@redhat.com> |
2629 | ||
2630 | * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout. | |
2631 | * c-common.c: Likewise. | |
2632 | ||
0e50b624 DM |
2633 | 2015-05-19 David Malcolm <dmalcolm@redhat.com> |
2634 | ||
2635 | * c-common.h (fe_file_change): Strengthen param from | |
2636 | const line_map * to const line_map_ordinary *. | |
2637 | (pp_file_change): Likewise. | |
2638 | * c-lex.c (fe_file_change): Likewise. | |
2639 | (cb_define): Use linemap_check_ordinary when invoking | |
2640 | SOURCE_LINE. | |
2641 | (cb_undef): Likewise. | |
2642 | * c-opts.c (c_finish_options): Use linemap_check_ordinary when | |
2643 | invoking cb_file_change. | |
2644 | (c_finish_options): Likewise. | |
2645 | (push_command_line_include): Likewise. | |
2646 | (cb_file_change): Strengthen param "new_map" from | |
2647 | const line_map * to const line_map_ordinary *. | |
2648 | * c-ppoutput.c (cb_define): Likewise for local "map". | |
2649 | (pp_file_change): Likewise for param "map" and local "from". | |
2650 | ||
fab27f52 MM |
2651 | 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com> |
2652 | ||
2653 | * c-common.c (shorten_compare): Use std::swap instead of explicit swaps. | |
2654 | ||
2fe1d762 TV |
2655 | 2015-05-18 Tom de Vries <tom@codesourcery.com> |
2656 | ||
2657 | * c-common.c (build_va_arg_1): New function. | |
2658 | (build_va_arg): Add address operator to va_list operand if necessary. | |
2659 | ||
7a37fa90 MM |
2660 | 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com> |
2661 | ||
2662 | PR c/48956 | |
2663 | * c-common.c (int_safely_convertible_to_real_p): Define. | |
2664 | (unsafe_conversion_p): Check conversions involving complex types. | |
2665 | (conversion_warning): Add new warning message for conversions which | |
2666 | discard imaginary component. | |
2667 | * c-common.h: (enum conversion_safety): Add new enumerator for such | |
2668 | conversions. | |
2669 | ||
3aa3c9fc MP |
2670 | 2015-05-14 Marek Polacek <polacek@redhat.com> |
2671 | ||
2672 | PR c/66066 | |
2673 | PR c/66127 | |
2674 | * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal. | |
2675 | (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with | |
2676 | C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and | |
2677 | use it. If FOR_INT_CONST, require that all evaluated operands be | |
2678 | INTEGER_CSTs. | |
2679 | ||
c3388e62 DM |
2680 | 2015-05-12 David Malcolm <dmalcolm@redhat.com> |
2681 | ||
2682 | * c-common.h (warn_for_misleading_indentation): New prototype. | |
2683 | * c-indentation.c: New file. | |
2684 | * c.opt (Wmisleading-indentation): New option. | |
2685 | ||
c7b38fd5 TV |
2686 | 2015-05-12 Tom de Vries <tom@codesourcery.com> |
2687 | ||
2688 | PR tree-optimization/66010 | |
2689 | * c-common.c (build_va_arg): Don't mark ap addressable unless necessary. | |
2690 | ||
381bf11e JM |
2691 | 2015-05-09 Jason Merrill <jason@redhat.com> |
2692 | ||
edff0c06 JM |
2693 | * c-opts.c (c_common_post_options): Also clear |
2694 | cpp_opts->cpp_warn_cxx11_compat. | |
2695 | ||
129211bc JM |
2696 | * c-common.h (enum cxx_dialect): Add cxx_unset. |
2697 | * c-common.c (cxx_dialect): Initialize to cxx_unset. | |
2698 | * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset. | |
2699 | ||
381bf11e JM |
2700 | * c.opt (std=c++14): Remove Undocumented flag and experimental warning. |
2701 | (std=gnu++0x): Mark as Undocumented. | |
2702 | (std=gnu++1y): Add deprecated message. | |
2703 | ||
fe191308 JM |
2704 | 2015-05-08 Jason Merrill <jason@redhat.com> |
2705 | ||
765189ff JM |
2706 | * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat. |
2707 | * c-opts.c: Adjust. | |
2708 | ||
fe191308 JM |
2709 | * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat. |
2710 | ||
755e528f MP |
2711 | 2015-05-08 Marek Polacek <polacek@redhat.com> |
2712 | ||
2713 | PR c/64918 | |
2714 | * c.opt (Woverride-init-side-effects): New option. | |
2715 | ||
0173bd2a MP |
2716 | 2015-05-07 Marek Polacek <polacek@redhat.com> |
2717 | ||
2718 | PR c/65179 | |
2719 | * c-common.c (c_fully_fold_internal): Warn when left shifting a | |
2720 | negative value. | |
2721 | * c.opt (Wshift-negative-value): New option. | |
2722 | * c-opts.c (c_common_post_options): Set warn_shift_negative_value | |
2723 | when -Wextra and C99/C++11 mode. | |
2724 | ||
e0f0d3b9 MP |
2725 | 2015-05-07 Marek Polacek <polacek@redhat.com> |
2726 | Martin Uecker <uecker@eecs.berkeley.edu> | |
2727 | ||
2728 | * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting | |
2729 | flexible member array-like members if SANITIZE_BOUNDS_STRICT. | |
2730 | ||
8243e2a9 JM |
2731 | 2015-05-05 Jason Merrill <jason@redhat.com> |
2732 | ||
2733 | * c.opt (Wterminate): New. | |
2734 | ||
577cd070 MP |
2735 | 2015-04-30 Marek Polacek <polacek@redhat.com> |
2736 | ||
2737 | * c-common.c (maybe_warn_bool_compare): When comparing with 0/1, | |
2738 | require that the non-constant be of a boolean type. | |
2739 | ||
0373796b JT |
2740 | 2015-04-29 Josh Triplett <josh@joshtriplett.org> |
2741 | ||
e0f0d3b9 MP |
2742 | * c-common.c (handle_section_attribute): Refactor to reduce |
2743 | nesting and distinguish between error cases. | |
0373796b | 2744 | |
716c0ba6 MP |
2745 | 2015-04-29 Marek Polacek <polacek@redhat.com> |
2746 | ||
2747 | PR c/64610 | |
2748 | * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean | |
2749 | with 0/1. | |
2750 | ||
8848828b JJ |
2751 | 2015-04-29 Jakub Jelinek <jakub@redhat.com> |
2752 | ||
2753 | * c-common.h (omp_clause_mask): Unconditionally define as a class. | |
2754 | Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of | |
2755 | HOST_BITS_PER_WIDE_INT. | |
2756 | ||
ecd0e562 TV |
2757 | 2015-04-28 Tom de Vries <tom@codesourcery.com> |
2758 | ||
2759 | PR tree-optimization/65887 | |
2760 | * c-common.c (build_va_arg): Mark va_arg ap argument as addressable. | |
2761 | ||
2a877204 | 2762 | 2015-04-28 Eric Botcazou <ebotcazou@adacore.com> |
e0f0d3b9 | 2763 | Pierre-Marie de Rodat <derodat@adacore.com> |
2a877204 EB |
2764 | |
2765 | * c-ada-spec.c (in_function): Delete. | |
2766 | (dump_generic_ada_node): Do not change in_function and remove the | |
2767 | redundant code dealing with it. | |
2768 | (print_ada_declaration): Do not change in_function. Use INDENT_INCR. | |
2769 | (print_ada_methods): Output the static member functions in a nested | |
2770 | package after the regular methods as well as associated renamings. | |
2771 | ||
4853031e MP |
2772 | 2015-04-24 Marek Polacek <polacek@redhat.com> |
2773 | ||
2774 | PR c/65830 | |
2775 | * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative | |
2776 | and OPT_Wshift_count_overflow. | |
2777 | ||
8c2b7f79 MP |
2778 | PR c/63357 |
2779 | * c-common.c (warn_logical_operator): Warn if the operands have the | |
2780 | same expressions. | |
2781 | ||
b8787813 MP |
2782 | 2015-04-24 Marek Polacek <polacek@redhat.com> |
2783 | ||
2784 | PR c/61534 | |
2785 | * c-common.c (warn_logical_operator): Bail if either operand comes | |
2786 | from a macro expansion. | |
2787 | ||
8fba1830 BRF |
2788 | 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
2789 | ||
2790 | PR target/55143 | |
2791 | * c-common.c (c_default_pointer_mode): Add definition. | |
2792 | * c-common.h (c_default_pointer_mode): Add declaration. | |
2793 | ||
17958621 JJ |
2794 | 2015-03-11 Jakub Jelinek <jakub@redhat.com> |
2795 | ||
2796 | * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup | |
2797 | on record_builtin_type argument. | |
2798 | ||
7ccb1a11 JJ |
2799 | 2015-03-10 Jakub Jelinek <jakub@redhat.com> |
2800 | ||
2801 | PR c/65120 | |
2802 | * c-common.c (warn_logical_not_parentheses): Don't warn for | |
2803 | !x == 0 or !x != 0. | |
2804 | ||
04fd785e MP |
2805 | 2015-03-07 Marek Polacek <polacek@redhat.com> |
2806 | ||
2807 | PR sanitizer/65280 | |
2808 | * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF | |
2809 | before trying to figure out whether we have a flexible array member. | |
2810 | ||
a4e26206 | 2811 | 2015-03-06 Eric Botcazou <ebotcazou@adacore.com> |
8e745a17 | 2812 | Jonathan Wakely <jwakely.gcc@gmail.com> |
a4e26206 EB |
2813 | |
2814 | * c-ada-spec.c (dump_ada_double_name): Fix pasto. | |
2815 | ||
0d2489f4 EB |
2816 | 2015-03-05 Eric Botcazou <ebotcazou@adacore.com> |
2817 | ||
2818 | PR ada/65319 | |
2819 | * c-ada-spec.c (print_destructor): Remove obsolete code. | |
2820 | ||
83ed54d7 EB |
2821 | 2015-03-01 Eric Botcazou <ebotcazou@adacore.com> |
2822 | ||
2823 | * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX. | |
2824 | (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and | |
2825 | DECL_TEMPLATE_RESULT emulations. | |
2826 | (dump_ada_template)): Add guard for TYPE_METHODS. | |
2827 | ||
7631f0e2 MP |
2828 | 2015-02-27 Marek Polacek <polacek@redhat.com> |
2829 | ||
2830 | PR c/65040 | |
2831 | * c.opt (Wformat-signedness): Don't enable by -Wformat=2. | |
2832 | ||
d1783ae5 KT |
2833 | 2015-02-27 Kai Tietz <ktietz@redhat.com> |
2834 | ||
2835 | PR c/35330 | |
2836 | * c-pragma.c (handle_pragma_weak): Do not try to create | |
2837 | weak/alias of declarations not being function, or variable | |
2838 | declarations. | |
2839 | ||
56a9f6bc TS |
2840 | 2015-02-24 Thomas Schwinge <thomas@codesourcery.com> |
2841 | ||
2842 | PR libgomp/64625 | |
2843 | * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12): | |
2844 | Remove macros. | |
2845 | (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros. | |
2846 | ||
3d5cb23d MP |
2847 | 2015-02-16 Marek Polacek <polacek@redhat.com> |
2848 | ||
2849 | PR c/65066 | |
2850 | * c-format.c (check_format_types): Handle null param. | |
2851 | ||
fa008882 MP |
2852 | 2015-02-13 Marek Polacek <polacek@redhat.com> |
2853 | ||
2854 | PR c/65040 | |
2855 | * c-format.c (check_format_types): Don't warn about different | |
2856 | signedness if the original value is in the range of WANTED_TYPE. | |
2857 | ||
785f21af JM |
2858 | 2015-02-12 Jason Merrill <jason@redhat.com> |
2859 | ||
2860 | PR c++/64956 | |
2861 | * c-opts.c (c_common_post_options): Change flag_abi_version from 0 | |
2862 | to the current highest version. | |
2863 | * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0. | |
2864 | ||
4886ec8e JJ |
2865 | 2015-02-04 Jakub Jelinek <jakub@redhat.com> |
2866 | ||
2867 | PR c/64824 | |
2868 | PR c/64868 | |
2869 | * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR | |
2870 | instead of RDIV_EXPR. Use build_binary_op instead of | |
2871 | build2_loc. | |
2872 | ||
40fecdd6 JM |
2873 | 2015-01-30 Joseph Myers <joseph@codesourcery.com> |
2874 | ||
2875 | * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed | |
2876 | to pass input_location as first argument. | |
2877 | ||
a0c88d06 TV |
2878 | 2015-01-23 Tom de Vries <tom@codesourcery.com> |
2879 | ||
2880 | PR libgomp/64672 | |
2881 | * c.opt (fopenacc): Mark as LTO option. | |
2882 | ||
1506ae0e TV |
2883 | 2015-01-23 Tom de Vries <tom@codesourcery.com> |
2884 | ||
2885 | PR libgomp/64707 | |
2886 | * c.opt (fopenmp): Mark as LTO option. | |
2887 | ||
31be63ab JJ |
2888 | 2015-01-21 Jakub Jelinek <jakub@redhat.com> |
2889 | ||
2890 | PR c/63307 | |
b1726d6c | 2891 | * cilk.c (fill_decls_vec): Only put decls into vector v. |
31be63ab JJ |
2892 | (compare_decls): Fix up formatting. |
2893 | ||
2894 | 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com> | |
2895 | ||
2896 | PR c/63307 | |
2897 | * cilk.c: Include vec.h. | |
2898 | (struct cilk_decls): New structure. | |
2899 | (wrapper_parm_cb): Split this function to... | |
2900 | (fill_decls_vec): ...this... | |
2901 | (create_parm_list): ...and this. | |
2902 | (compare_decls): New function. | |
2903 | (for_local_cb): Remove. | |
2904 | (wrapper_local_cb): Ditto. | |
2905 | (build_wrapper_type): For now first traverse and fill vector of | |
2906 | declarations then sort it and then deal with sorted vector. | |
2907 | (cilk_outline): Ditto. | |
2908 | (declare_one_free_variable): Ditto. | |
2909 | ||
6875457f JM |
2910 | 2015-01-21 Jason Merrill <jason@redhat.com> |
2911 | ||
2912 | PR c++/64629 | |
2913 | * c-format.c (check_format_arg): Call decl_constant_value. | |
2914 | ||
185c9e56 ML |
2915 | 2015-01-19 Martin Liska <mliska@suse.cz> |
2916 | ||
2917 | * c-common.c (handle_noicf_attribute): New function. | |
2918 | ||
41dbbb37 TS |
2919 | 2015-01-15 Thomas Schwinge <thomas@codesourcery.com> |
2920 | Bernd Schmidt <bernds@codesourcery.com> | |
2921 | James Norris <jnorris@codesourcery.com> | |
2922 | Cesar Philippidis <cesar@codesourcery.com> | |
2923 | Ilmir Usmanov <i.usmanov@samsung.com> | |
2924 | Jakub Jelinek <jakub@redhat.com> | |
2925 | ||
2926 | * c.opt (fopenacc): New option. | |
2927 | * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC. | |
2928 | * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12): | |
2929 | New macros. | |
2930 | * c-common.h (c_finish_oacc_wait): New prototype. | |
2931 | * c-omp.c: Include "omp-low.h" and "gomp-constants.h". | |
2932 | (c_finish_oacc_wait): New function. | |
2933 | * c-pragma.c (oacc_pragmas): New variable. | |
2934 | (c_pp_lookup_pragma, init_pragma): Handle it. | |
2935 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE, | |
2936 | PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA, | |
2937 | PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL, | |
2938 | PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT. | |
2939 | (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC, | |
2940 | PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE, | |
2941 | PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN, | |
2942 | PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE, | |
2943 | PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE, | |
2944 | PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE, | |
2945 | PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST, | |
2946 | PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS, | |
2947 | PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT, | |
2948 | PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY, | |
2949 | PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN, | |
2950 | PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT, | |
2951 | PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE, | |
2952 | PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF, | |
2953 | PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR, | |
2954 | PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT, | |
2955 | PRAGMA_OACC_CLAUSE_WORKER. | |
2956 | ||
3f8257db | 2957 | 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com> |
5434dc07 MD |
2958 | |
2959 | * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__ | |
2960 | for the new option fstack-protector_explicit. | |
2961 | * c-common.c (c_common_attribute_table): Add stack_protect attribute. | |
2962 | (handle_stack_protect_attribute): New function. | |
2963 | ||
3f8257db | 2964 | 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu> |
de1b5c17 MU |
2965 | |
2966 | * c.opt: New option -Warray-bounds=. | |
2967 | ||
adfac8df JJ |
2968 | 2015-01-09 Michael Collison <michael.collison@linaro.org> |
2969 | ||
2970 | * array-notation-common.c: Include hash-set.h, machmode.h, | |
2971 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
2972 | fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h. | |
2973 | * c-ada-spec.c: Ditto. | |
2974 | * c-cilkplus.c: Ditto. | |
2975 | * c-common.c: Include input.h due to flattening of tree.h. | |
2976 | Define macro GCC_C_COMMON_C. | |
2977 | * c-common.h: Flatten tree.h header files into c-common.h. | |
2978 | Remove include of tree-core.h. | |
2979 | * c-cppbuiltin.c: Include hash-set.h, machmode.h, | |
2980 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
2981 | fold-const.h, wide-int.h, and inchash.h due to | |
2982 | flattening of tree.h. | |
2983 | * c-dump.c: Ditto. | |
2984 | * c-format.c: Flatten tree.h header files into c-common.h. | |
2985 | * c-cppbuiltin.c: Include hash-set.h, machmode.h, | |
2986 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
2987 | fold-const.h, wide-int.h, and inchash.h due to | |
2988 | flattening of tree.h. | |
2989 | * c-dump.c: Include hash-set.h, machmode.h, | |
2990 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
2991 | fold-const.h, wide-int.h, and inchash.h due to | |
2992 | flattening of tree.h. | |
2993 | * c-format.c: Include hash-set.h, machmode.h, | |
2994 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
2995 | fold-const.h, wide-int.h, inchash.h and real.h due to | |
2996 | flattening of tree.h. | |
2997 | * c-gimplify.c: Include hash-set.h, machmode.h, | |
2998 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
2999 | fold-const.h, wide-int.h, and inchash.h due to | |
3000 | flattening of tree.h. | |
3001 | * cilk.c: Ditto. | |
3002 | * c-lex.c: Ditto. | |
3003 | * c-omp.c: Ditto. | |
3004 | * c-opts.c: Ditto. | |
3005 | * c-pch.c: Ditto. | |
3006 | * c-ppoutput.c: Ditto. | |
3007 | * c-pragma.c: Ditto. | |
3008 | * c-pretty-print.c: Ditto. | |
3009 | * c-semantics.c: Ditto. | |
3010 | * c-ubsan.c: Ditto. | |
3011 | * stub-objc.c: Ditto. | |
3012 | ||
f5481fc4 JM |
3013 | 2015-01-08 Jason Merrill <jason@redhat.com> |
3014 | ||
3015 | * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use | |
3016 | do_ubsan_in_current_function. | |
3017 | (ubsan_maybe_instrument_reference_or_call): Likewise. | |
3018 | * c-ubsan.h: Declare it. | |
3019 | ||
de35aa66 MS |
3020 | 2015-01-08 Mike Stump <mikestump@comcast.net> |
3021 | ||
3022 | * c-common.c (c_common_attribute_table): Add no_sanitize_thread. | |
3023 | ||
4a9a42ab MP |
3024 | 2015-01-07 Marek Polacek <polacek@redhat.com> |
3025 | ||
3026 | PR c/64440 | |
3027 | * c-common.c (c_fully_fold_internal): Warn for division and modulo | |
3028 | if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero. | |
3029 | ||
2f42e5de TS |
3030 | 2015-01-05 Trevor Saunders <tsaunders@mozilla.com> |
3031 | ||
3032 | PR c++/31397 | |
3033 | * c.opt (Wsuggest-override): New option. | |
3034 | ||
5624e564 JJ |
3035 | 2015-01-05 Jakub Jelinek <jakub@redhat.com> |
3036 | ||
3037 | Update copyright years. | |
3038 | ||
5bd012f8 MP |
3039 | 2015-01-05 Marek Polacek <polacek@redhat.com> |
3040 | ||
3041 | PR c/64423 | |
3042 | * c-common.c (warn_array_subscript_with_type_char): Add location_t | |
3043 | parameter. Use it. | |
3044 | * c-common.h (warn_array_subscript_with_type_char): Update | |
3045 | declaration. | |
3046 | ||
a7fa8d18 ESR |
3047 | 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net> |
3048 | ||
3049 | * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro. | |
3050 | Control macro with flag_sized_deallocation. | |
3051 | ||
3f8257db | 3052 | 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu> |
768952be MU |
3053 | |
3054 | * c.opt (Wdiscarded-array-qualifiers): New option. | |
3055 | ||
1f8d3e84 JJ |
3056 | 2014-12-19 Jakub Jelinek <jakub@redhat.com> |
3057 | ||
3058 | PR preprocessor/63831 | |
3059 | * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute | |
3060 | and __has_cpp_attribute here. | |
3061 | * c-ppoutput.c (init_pp_output): Set cb->has_attribute to | |
3062 | c_common_has_attribute. | |
3063 | * c-common.h (c_common_has_attribute): New prototype. | |
3064 | * c-lex.c (init_c_lex): Set cb->has_attribute to | |
3065 | c_common_has_attribute instead of cb_has_attribute. | |
3066 | (get_token_no_padding): New function. | |
3067 | (cb_has_attribute): Renamed to ... | |
3068 | (c_common_has_attribute): ... this. No longer static. Use | |
3069 | get_token_no_padding, require ()s, don't build TREE_LIST | |
3070 | unnecessarily, fix up formatting, adjust diagnostics, call | |
3071 | init_attributes. | |
3072 | ||
20b06add JM |
3073 | 2014-12-15 Jason Merrill <jason@redhat.com> |
3074 | ||
3075 | * c.opt (-fsized-deallocation, -Wc++14-compat): New. | |
3076 | (-Wsized-deallocation): New. | |
3077 | * c-opts.c (c_common_post_options): -fsized-deallocation defaults | |
3078 | to on in C++14 and up. | |
3079 | ||
94a073b2 JM |
3080 | 2014-12-11 Jason Merrill <jason@redhat.com> |
3081 | ||
acaa5911 JM |
3082 | * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr. |
3083 | ||
94a073b2 JM |
3084 | * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if |
3085 | we aren't complaining about VLAs. | |
3086 | ||
7fb66c15 MP |
3087 | 2014-12-06 Marek Polacek <polacek@redhat.com> |
3088 | ||
3089 | PR tree-optimization/64183 | |
3090 | * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a | |
3091 | shift-expression if it is integer_type_node. Use types_compatible_p. | |
3092 | ||
b731b390 JJ |
3093 | 2014-11-29 Jakub Jelinek <jakub@redhat.com> |
3094 | ||
3095 | * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL | |
3096 | last argument from create_tmp_var_raw and create_tmp_var calls. | |
3097 | * cilk.c (gimplify_cilk_spawn): Likewise. | |
3098 | * c-omp.c (c_finish_omp_atomic): Likewise. | |
3099 | ||
6a4da643 MP |
3100 | 2014-11-28 Marek Polacek <polacek@redhat.com> |
3101 | ||
3102 | * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR | |
3103 | instead of unsigned_type_node. | |
3104 | ||
541e35a6 MP |
3105 | 2014-11-28 Marek Polacek <polacek@redhat.com> |
3106 | ||
3107 | PR c/63862 | |
3108 | * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR | |
3109 | to op1_utype. | |
3110 | * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift | |
3111 | expression to unsigned_type_node. | |
3112 | ||
dcc97066 MW |
3113 | 2014-11-20 Mark Wielaard <mjw@redhat.com> |
3114 | ||
3115 | PR debug/38757 | |
3116 | * c-opts.c (set_std_c89): Set lang_hooks.name. | |
3117 | (set_std_c99): Likewise. | |
3118 | (set_std_c11): Likewise. | |
3119 | (set_std_cxx98): Likewise. | |
3120 | (set_std_cxx11): Likewise. | |
3121 | (set_std_cxx14): Likewise. | |
3122 | (set_std_cxx1z): Likewise. | |
3123 | ||
aa7da51a JJ |
3124 | 2014-11-21 Jakub Jelinek <jakub@redhat.com> |
3125 | ||
3126 | PR target/63764 | |
3127 | * c-common.h (convert_vector_to_pointer_for_subscript): Change | |
3128 | return type to bool. | |
009a3480 | 3129 | * c-common.c: Include gimple-expr.h. |
aa7da51a JJ |
3130 | (convert_vector_to_pointer_for_subscript): Change return type to |
3131 | bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true | |
3132 | and copy it into a TARGET_EXPR and use that instead of *vecp | |
3133 | directly. | |
3134 | ||
538dd0b7 DM |
3135 | 2014-11-19 David Malcolm <dmalcolm@redhat.com> |
3136 | ||
3137 | Merger of git branch "gimple-classes-v2-option-3". | |
3138 | * ChangeLog.gimple-classes: New. | |
3139 | * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack" | |
3140 | from being just a vec<gimple> to a vec<gbind *>. | |
3141 | ||
c39a5e99 JJ |
3142 | 2014-11-18 Jakub Jelinek <jakub@redhat.com> |
3143 | ||
3144 | PR sanitizer/63813 | |
3145 | * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type | |
3146 | argument to ptype, set type to TREE_TYPE (ptype). Don't call | |
3147 | get_pointer_alignment for non-pointers. Use ptype, or if it is | |
3148 | reference type, corresponding pointer type, as type of kind | |
3149 | argument. | |
3150 | (ubsan_maybe_instrument_reference, | |
3151 | ubsan_maybe_instrument_member_call): Adjust callers. | |
3152 | ||
8537a4a9 MP |
3153 | 2014-11-15 Marek Polacek <polacek@redhat.com> |
3154 | ||
3155 | PR middle-end/63884 | |
3156 | * array-notation-common.c (is_sec_implicit_index_fn): Return false | |
3157 | for NULL fndecl. | |
3158 | (extract_array_notation_exprs): Return for NULL node. | |
3159 | ||
2079956a JM |
3160 | 2014-11-12 Joseph Myers <joseph@codesourcery.com> |
3161 | ||
3162 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and | |
3163 | undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state. | |
3164 | ||
1304953e JJ |
3165 | 2014-11-12 Jakub Jelinek <jakub@redhat.com> |
3166 | ||
3167 | PR c/59708 | |
3168 | * c-common.c (check_builtin_function_arguments): Handle | |
3169 | BUILT_IN_{ADD,SUB,MUL}_OVERFLOW. | |
3170 | ||
e5e44252 AK |
3171 | 2014-11-10 Andi Kleen <ak@linux.intel.com> |
3172 | ||
3173 | PR c/60804 | |
3174 | * c-common.h (check_no_cilk): Declare. | |
3175 | * cilk.c (get_error_location): New function. | |
3176 | (check_no_cilk): Dito. | |
3177 | ||
e64b984d AK |
3178 | 2014-11-10 Andi Kleen <ak@linux.intel.com> |
3179 | ||
3180 | * cilk.c (recognize_spawn): Use expression location | |
3181 | for error message. | |
3182 | ||
13c21655 PC |
3183 | 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com> |
3184 | ||
3185 | * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add. | |
3186 | ||
42fd12b1 ESR |
3187 | 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net> |
3188 | ||
3189 | * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros; | |
3190 | (__cpp_rtti, __cpp_exceptions): New macros for C++98; | |
3191 | (__cpp_range_based_for, __cpp_initializer_lists, | |
3192 | __cpp_delegating_constructors, __cpp_nsdmi, | |
3193 | __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros | |
3194 | for C++11; (__cpp_attribute_deprecated): Remove in favor of | |
3195 | __has_cpp_attribute. | |
3196 | * c-lex.c (cb_has_attribute): New callback CPP function; | |
3197 | (init_c_lex): Set has_attribute callback. | |
3198 | ||
6f450181 RB |
3199 | 2014-11-04 Richard Biener <rguenther@suse.de> |
3200 | ||
3201 | * c-common.c (shorten_compare): Do not shorten mixed | |
3202 | DFP and non-DFP compares. | |
3203 | ||
26f0e1d6 ESR |
3204 | 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net> |
3205 | ||
3206 | * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests. | |
3207 | * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test. | |
3208 | Commentary and rearrangement of tests. | |
3209 | * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test. | |
3210 | Commentary and rearrangement of tests. | |
3211 | * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto | |
3212 | * g++.dg/cpp1y/feat-cxx98.C: Commentary. | |
3213 | ||
ef4bddc2 RS |
3214 | 2014-10-29 Richard Sandiford <richard.sandiford@arm.com> |
3215 | ||
3216 | * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant | |
3217 | enum from machine_mode. | |
3218 | ||
c582198b AM |
3219 | 2014-10-28 Andrew MacLeod <amacleod@redhat.com> |
3220 | ||
adfac8df JJ |
3221 | * c-common.c: Adjust include files. |
3222 | * c-gimplify.c: Ditto. | |
3223 | * cilk.c: Ditto. | |
3224 | * c-pragma.c: Ditto. | |
3225 | * c-ubsan.c: Ditto. | |
c582198b | 3226 | |
60393bbc AM |
3227 | 2014-10-27 Andrew MacLeod <amacleod@redhat.com> |
3228 | ||
3229 | * c-gimplify.c: Adjust include files. | |
3230 | ||
d723bb7c MLI |
3231 | 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3232 | ||
3233 | PR c++/53061 | |
3234 | * c-opts.c (c_common_diagnostics_set_defaults): Renamed from | |
3235 | c_common_initialize_diagnostics. | |
3236 | * c-common.h: Likewise. | |
3237 | ||
90f3520e MP |
3238 | 2014-10-24 Marek Polacek <polacek@redhat.com> |
3239 | ||
3240 | PR c/56980 | |
3241 | * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't | |
3242 | print "struct"/"union"/"enum" for typedefed names. | |
3243 | ||
59d7607a MP |
3244 | 2014-10-23 Marek Polacek <polacek@redhat.com> |
3245 | ||
3246 | * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR | |
3247 | in unsigned type. | |
3248 | ||
d95a2703 JJ |
3249 | 2014-10-22 Jakub Jelinek <jakub@redhat.com> |
3250 | Yury Gribov <y.gribov@samsung.com> | |
3251 | ||
3252 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift, | |
3253 | ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask | |
3254 | instead of flag_sanitize_recover as bool flag. | |
3255 | ||
8e6ef852 KY |
3256 | 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com> |
3257 | ||
3258 | * cilk.c: Revert previous change. | |
3259 | ||
948cf550 IZ |
3260 | 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com> |
3261 | ||
3262 | PR c/63307 | |
3263 | * cilk.c: Include vec.h. | |
3264 | (struct cilk_decls): New structure. | |
3265 | (wrapper_parm_cb): Split this function to... | |
3266 | (fill_decls_vec): ...this... | |
3267 | (create_parm_list): ...and this. | |
3268 | (compare_decls): New function. | |
3269 | (for_local_cb): Remove. | |
3270 | (wrapper_local_cb): Ditto. | |
3271 | (build_wrapper_type): For now first traverse and fill vector of | |
3272 | declarations then sort it and then deal with sorted vector. | |
3273 | (cilk_outline): Ditto. | |
3274 | (declare_one_free_variable): Ditto. | |
3275 | ||
92574c7c MP |
3276 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
3277 | ||
3278 | * c-opts.c (c_common_post_options): Set warn_implicit_int. | |
3279 | * c.opt (Wimplicit-int): Initialize to -1. | |
3280 | ||
83685514 AM |
3281 | 2014-10-16 Andrew MacLeod <amacleod@redhat.com> |
3282 | ||
3283 | * c-pragma.c: Adjust include files. | |
3284 | * c-semantics.c: Likewise. | |
3285 | ||
5b8300ea DD |
3286 | 2014-10-16 DJ Delorie <dj@redhat.com> |
3287 | ||
3288 | * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are | |
3289 | multiples of bytes. | |
3290 | ||
5f83e90b JM |
3291 | 2014-10-14 Jason Merrill <jason@redhat.com> |
3292 | ||
3293 | PR c++/63455 | |
3294 | * c-common.h (CPP_PREPARSED_EXPR): New. | |
3295 | (N_CP_TTYPES): Adjust. | |
3296 | ||
d73326ca MP |
3297 | 2014-10-15 Marek Polacek <polacek@redhat.com> |
3298 | ||
3299 | * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C. | |
3300 | ||
78a7c317 DD |
3301 | 2014-10-14 DJ Delorie <dj@redhat.com> |
3302 | ||
3303 | * c-pretty-print.c (pp_c_integer_constant): Check for all __intN | |
3304 | types, not just __int128. | |
3305 | * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN | |
3306 | types, not just __int128. | |
3307 | (cpp_atomic_builtins): Round pointer sizes up. | |
3308 | (type_suffix): Use type precision, not specific types. | |
3309 | * c-common.c (c_common_reswords): Remove __int128 special case. | |
3310 | (c_common_type_for_size): Check for all __intN types, not just | |
3311 | __int128. | |
3312 | (c_common_type_for_mode): Likewise. | |
3313 | (c_common_signed_or_unsigned_type): Likewise. | |
3314 | (c_build_bitfield_integer_type): Likewise. | |
3315 | (c_common_nodes_and_builtins): Likewise. | |
3316 | (keyword_begins_type_specifier): Likewise. | |
3317 | * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all | |
3318 | __intN variants. | |
3319 | ||
2a22f99c TS |
3320 | 2014-10-12 Trevor Saunders <tsaunders@mozilla.com> |
3321 | ||
3322 | * c-common.c: Use hash_table instead of hashtab. | |
3323 | ||
2a8ef767 ESR |
3324 | 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net> |
3325 | ||
adfac8df | 3326 | * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the |
2a8ef767 ESR |
3327 | C++11 section. |
3328 | ||
3c9aabbd MG |
3329 | 2014-10-03 Marc Glisse <marc.glisse@inria.fr> |
3330 | ||
3331 | PR c++/54427 | |
3332 | PR c++/57198 | |
3333 | PR c++/58845 | |
3334 | * c-common.c (warn_logical_operator): Punt for vectors. | |
3335 | ||
a15f7cb8 ESR |
3336 | 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net> |
3337 | ||
3338 | Implement SD-6: SG10 Feature Test Recommendations | |
3339 | * c-cppbuiltin.c (c_cpp_builtins()): Define language feature | |
3340 | macros and the __has_header macro. | |
3341 | ||
8d0cf15e JM |
3342 | 2014-09-30 Jason Merrill <jason@redhat.com> |
3343 | ||
dd5d5481 JM |
3344 | * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and |
3345 | RID_IS_TRIVIALLY_CONSTRUCTIBLE. | |
3346 | * c-common.c (c_common_reswords): Add __is_trivially_copyable. | |
3347 | ||
b752325e JM |
3348 | * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE. |
3349 | * c-common.c (c_common_reswords): Add __is_trivially_copyable. | |
3350 | ||
8d0cf15e JM |
3351 | * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO. |
3352 | * c-common.c (c_common_reswords): Remove __is_convertible_to. | |
3353 | ||
083e891e MP |
3354 | 2014-09-24 Marek Polacek <polacek@redhat.com> |
3355 | ||
3356 | PR c/61405 | |
3357 | PR c/53874 | |
3358 | * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD. | |
3359 | ||
7861b648 AK |
3360 | 2014-09-23 Andi Kleen <ak@linux.intel.com> |
3361 | ||
3362 | * c-common.c (handle_no_reorder_attribute): New function. | |
3363 | (c_common_attribute_table): Add no_reorder attribute. | |
3364 | ||
9a79452d JM |
3365 | 2014-09-22 Joseph Myers <joseph@codesourcery.com> |
3366 | ||
3367 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
3368 | __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point | |
3369 | modes. | |
3370 | ||
dd69f047 JM |
3371 | 2014-09-18 Joseph Myers <joseph@codesourcery.com> |
3372 | ||
3373 | * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__ | |
3374 | for supported floating-point modes. | |
3375 | ||
737a4826 MLI |
3376 | 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3377 | ||
3378 | * c.opt (Wpsabi): Use LangEnabledBy. | |
3379 | * c-opts.c (c_common_handle_option): Do not handle here. | |
3380 | ||
8cc4b7a2 JM |
3381 | 2014-09-12 Joseph Myers <joseph@codesourcery.com> |
3382 | ||
3383 | * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__ | |
3384 | macros for floating-point modes. | |
3385 | ||
179b5a55 MG |
3386 | 2014-09-11 Marc Glisse <marc.glisse@inria.fr> |
3387 | ||
3388 | PR target/58757 | |
3389 | * c-cppbuiltin.c (builtin_define_float_constants): Correct | |
3390 | __*_DENORM_MIN__ without denormals. | |
3391 | ||
570a11fe JJ |
3392 | 2014-09-10 Jakub Jelinek <jakub@redhat.com> |
3393 | ||
3394 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift, | |
3395 | ubsan_instrument_vla, ubsan_instrument_return): Adjust | |
3396 | ubsan_create_data callers. | |
3397 | (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if | |
3398 | index is constant or BIT_AND_EXPR with constant mask and is | |
3399 | small enough for the bound. | |
3400 | * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of | |
3401 | ARRAY_REF, make sure the inner ARRAY_REF is not walked again. | |
3402 | ||
b559c810 MLI |
3403 | 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3404 | ||
3405 | * c.opt: Add CppReason to various flags. | |
3406 | (Wdate-time): Re-sort. | |
3407 | * c-common.c: Include c-common.h earlier. | |
3408 | (struct reason_option_codes_t): Delete. | |
3409 | (c_option_controlling_cpp_error): Prefix global type and struct | |
3410 | with cpp_. | |
3411 | ||
1ef33fd4 MLI |
3412 | 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3413 | ||
3414 | * c.opt (Wnormalized): New. | |
3415 | (Wnormalized=): Use Enum and Reject Negative. | |
3416 | * c-opts.c (c_common_handle_option): Do not handle Wnormalized here. | |
3417 | ||
66bb34c0 JM |
3418 | 2014-09-08 Joseph Myers <joseph@codesourcery.com> |
3419 | ||
3420 | * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa | |
3421 | digits of floating-point modes if -fbuilding-libgcc. | |
3422 | ||
53d68b9f JM |
3423 | 2014-09-05 Joseph Myers <joseph@codesourcery.com> |
3424 | ||
3425 | * c-cppbuiltin.c (c_cpp_builtins): Also define | |
3426 | __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__, | |
3427 | __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__, | |
3428 | __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__, | |
3429 | __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__, | |
3430 | __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__, | |
3431 | __LIBGCC_STACK_GROWS_DOWNWARD__, | |
3432 | __LIBGCC_DONT_USE_BUILTIN_SETJMP__, | |
3433 | __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__, | |
3434 | __LIBGCC_DWARF_FRAME_REGISTERS__, | |
3435 | __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__, | |
3436 | __LIBGCC_STACK_POINTER_REGNUM__ and | |
3437 | __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc. | |
3438 | (builtin_define_with_value): Handle backslash-escaping in string | |
3439 | macro values. | |
3440 | ||
f65586dc RB |
3441 | 2014-09-05 Richard Biener <rguenther@suse.de> |
3442 | ||
3443 | PR middle-end/63148 | |
3444 | * c-format.c (check_format_arg): Properly handle | |
3445 | effectively signed POINTER_PLUS_EXPR offset. | |
3446 | ||
2b71f4a4 MLI |
3447 | 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3448 | ||
3449 | * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels, | |
3450 | Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic, | |
3451 | (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var | |
3452 | and Init. | |
3453 | * c-opts.c (c_common_handle_option): Do not handle here. | |
3454 | (sanitize_cpp_opts): Likewise. | |
3455 | * c-common.c (struct reason_option_codes_t): Handle | |
3456 | CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC. | |
3457 | ||
d2e4feca MP |
3458 | 2014-09-03 Marek Polacek <polacek@redhat.com> |
3459 | ||
3460 | * c.opt (Wlogical-not-parentheses): Enable by -Wall. | |
3461 | ||
9a771876 JJ |
3462 | 2014-09-02 Jakub Jelinek <jakub@redhat.com> |
3463 | Balaji V. Iyer <balaji.v.iyer@intel.com> | |
3464 | Igor Zamyatin <igor.zamyatin@intel.com> | |
3465 | ||
3466 | * c-cilkplus.c (cilk_for_number_of_iterations): New function. | |
3467 | * c-common.c (c_common_reswords): Added _Cilk_for. | |
3468 | * c-common.h (enum rid): Added RID_CILK_FOR. | |
3469 | (cilk_for_number_of_iterations): Add declaration. | |
3470 | * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and | |
3471 | CILK_FOR. | |
3472 | * c-pragma.c (init_pragma): Register "grainsize" pragma. | |
3473 | * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE. | |
3474 | ||
81b5d104 MLI |
3475 | 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3476 | ||
3477 | * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels, | |
3478 | Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs, | |
3479 | Wundef): Use CPP, Var and Init. | |
3480 | * c-opts.c (c_common_handle_option): Do not handle the above flags here. | |
3481 | ||
b753b37b MLI |
3482 | 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3483 | ||
3484 | * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init. | |
3485 | * c-opts.c (c_common_handle_option): Do not handle here. | |
3486 | ||
028aee17 JM |
3487 | 2014-08-25 Jason Merrill <jason@redhat.com> |
3488 | ||
3489 | * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for | |
3490 | -std=c++14 and -std=gnu++14, rather than the reverse. | |
3491 | * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and | |
3492 | OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14. | |
3493 | * c-common.h (cxx_dialect): Remove cxx1y. | |
3494 | ||
e4276ba5 ESR |
3495 | 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net> |
3496 | ||
3497 | * c-common.h (enum cxx_dialect): Add cxx14. | |
3498 | * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14. | |
3499 | * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from | |
3500 | cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11. | |
3501 | ||
a545cacd JM |
3502 | 2014-08-22 Jason Merrill <jason@redhat.com> |
3503 | ||
3504 | * c.opt (std=gnu++17): Fix alias. | |
3505 | ||
59ea0364 MP |
3506 | 2014-08-22 Marek Polacek <polacek@redhat.com> |
3507 | ||
3508 | PR c++/62199 | |
3509 | * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't | |
3510 | check for vector types. Drop LHS argument. | |
3511 | * c-common.h (warn_logical_not_parentheses): Adjust. | |
3512 | ||
596e808c MLI |
3513 | 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3514 | ||
3515 | * c.opt (Wcomment): Use CPP, Var and LangEnabledBy. | |
3516 | (Wmultichar): Likewise. | |
3517 | (Wdate-time): Use C-family languages instead of Common. Use CPP | |
3518 | and Var. | |
3519 | * c-opts.c (c_common_handle_option): Do not handle the above | |
3520 | options here. | |
3521 | (sanitize_cpp_opts): Likewise. | |
3522 | ||
18767f65 MLI |
3523 | 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3524 | ||
3525 | PR fortran/44054 | |
3526 | * c-opts.c: Include tree-diagnostics.h. | |
3527 | (c_diagnostic_finalizer): New. | |
3528 | (c_common_initialize_diagnostics): Use it. | |
3529 | ||
b4413594 MLI |
3530 | 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3531 | ||
3532 | PR preprocessor/51303 | |
3533 | * c-common.c (struct reason_option_codes_t option_codes): | |
3534 | Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically. | |
3535 | ||
43f9a13c MLI |
3536 | 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3537 | ||
3538 | PR c/60975 | |
3539 | PR c/53063 | |
3540 | * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy. | |
3541 | * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto. | |
3542 | (c_common_post_options): Call init_global_opts_from_cpp. | |
3543 | (sanitize_cpp_opts): Do not handle Wvariadic-macros here. | |
3544 | ||
04159acf MP |
3545 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
3546 | ||
3547 | PR c++/62153 | |
3548 | * c-common.c (maybe_warn_bool_compare): New function. | |
3549 | * c-common.h (maybe_warn_bool_compare): Declare. | |
3550 | * c.opt (Wbool-compare): New option. | |
3551 | ||
35aff4fb MP |
3552 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
3553 | ||
3554 | * c.opt (Wc99-c11-compat): New option. | |
3555 | ||
177cce46 MP |
3556 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
3557 | ||
3558 | * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according | |
3559 | to warn_c90_c99_compat. | |
3560 | * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize | |
3561 | to -1. | |
3562 | ||
6ae9194f MLI |
3563 | 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3564 | Steven Bosscher <steven@gcc.gnu.org> | |
3565 | ||
3566 | PR c/52952 | |
3567 | * c-format.c: Add extra_arg_loc and format_string_loc to struct | |
3568 | format_check_results. | |
3569 | (check_function_format): Use true and add comment for boolean | |
3570 | argument. | |
3571 | (finish_dollar_format_checking): Use explicit location when warning. | |
3572 | (check_format_info): Likewise. | |
3573 | (check_format_arg): Set extra_arg_loc and format_string_loc. | |
3574 | (check_format_info_main): Use explicit location when warning. | |
3575 | (check_format_types): Pass explicit location. | |
3576 | (format_type_warning): Likewise. | |
3577 | ||
8e54f6d3 MLI |
3578 | 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
3579 | ||
3580 | PR fortran/44054 | |
3581 | * c-format.c: Handle Fortran flags. | |
3582 | ||
cd4e76fc IZ |
3583 | 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com> |
3584 | ||
3585 | PR other/61962 | |
3586 | * array-notation-common.c (find_rank): Added handling for other | |
3587 | types of references. | |
3588 | ||
f3bede71 MP |
3589 | 2014-08-10 Marek Polacek <polacek@redhat.com> |
3590 | ||
3591 | PR c/51849 | |
3592 | * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp. | |
3593 | * c.opt (Wc90-c99-compat): Add option. | |
3594 | ||
9f25a338 TS |
3595 | 2014-08-07 Trevor Saunders <tsaunders@mozilla.com> |
3596 | ||
3597 | * c-gimplify.c, cilk.c: Remove includes of pointer-set.h. | |
3598 | ||
62e4eb35 MP |
3599 | 2014-08-03 Marek Polacek <polacek@redhat.com> |
3600 | ||
3601 | * c-common.c (check_case_value): Add location_t parameter. Use it. | |
3602 | (c_add_case_label): Pass loc to check_case_value. | |
3603 | ||
b787e7a2 TS |
3604 | 2014-08-02 Trevor Saunders <tsaunders@mozilla.com> |
3605 | ||
3606 | * cilk.c: Use hash_map instead of pointer_map. | |
3607 | ||
6e2830c3 TS |
3608 | 2014-08-02 Trevor Saunders <tsaunders@mozilla.com> |
3609 | ||
3610 | * c-gimplify.c: Use hash_set instead of pointer_set. | |
3611 | ||
a7ee52fb IZ |
3612 | 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com> |
3613 | ||
3614 | PR middle-end/61455 | |
3615 | * array-notation-common.c (extract_array_notation_exprs): Handling | |
3616 | of DECL_EXPR added. | |
3617 | ||
944fa280 JJ |
3618 | 2014-08-01 Jakub Jelinek <jakub@redhat.com> |
3619 | ||
3620 | * c-common.h (min_align_of_type): Removed prototype. | |
3621 | * c-common.c (min_align_of_type): Removed. | |
3622 | * c-ubsan.h (ubsan_maybe_instrument_reference, | |
3623 | ubsan_maybe_instrument_member_call): New prototypes. | |
3624 | * c-ubsan.c: Include stor-layout.h and builtins.h. | |
3625 | (ubsan_maybe_instrument_reference_or_call, | |
3626 | ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New | |
3627 | functions. | |
3628 | ||
b4dfdc11 MG |
3629 | 2014-07-31 Marc Glisse <marc.glisse@inria.fr> |
3630 | ||
3631 | PR c++/60517 | |
3632 | * c.opt (-Wreturn-local-addr): Move to common.opt. | |
3633 | ||
a41844e5 JM |
3634 | 2014-07-30 Jason Merrill <jason@redhat.com> |
3635 | ||
3636 | PR c++/61659 | |
3637 | PR c++/61687 | |
3638 | Revert: | |
3639 | * c.opt (-fuse-all-virtuals): New. | |
3640 | ||
976d5a22 TT |
3641 | 2014-07-30 Tom Tromey <tromey@redhat.com> |
3642 | ||
3643 | PR c/59855 | |
3644 | * c.opt (Wdesignated-init): New option. | |
3645 | * c-common.c (c_common_attribute_table): Add "designated_init". | |
3646 | (handle_designated_init): New function. | |
3647 | ||
cdc94aca MP |
3648 | 2014-07-24 Marek Polacek <polacek@redhat.com> |
3649 | ||
3650 | PR c/57653 | |
3651 | * c-opts.c (c_finish_options): If -imacros is in effect, return. | |
3652 | ||
f41373b6 DS |
3653 | 2014-07-16 Dodji Seketeli <dodji@redhat.com> |
3654 | ||
3655 | PR preprocessor/60723 - missing system-ness marks for macro tokens | |
3656 | * c-ppoutput.c (struct print::prev_was_system_token): New data | |
3657 | member. | |
3658 | (init_pp_output): Initialize it. | |
3659 | (maybe_print_line_1, maybe_print_line, print_line_1, print_line) | |
3660 | (do_line_change): Return a flag saying if a line marker was | |
3661 | emitted or not. | |
3662 | (scan_translation_unit): Detect if the system-ness of the token we | |
3663 | are about to emit is different from the one of the previously | |
3664 | emitted token. If so, emit a line marker. Avoid emitting useless | |
3665 | adjacent line markers. Avoid emitting line markers for tokens | |
3666 | originating from the expansion of built-in macros. | |
3667 | (scan_translation_unit_directives_only): Adjust. | |
3668 | ||
4d661eaa MP |
3669 | 2014-07-15 Marek Polacek <polacek@redhat.com> |
3670 | ||
3671 | * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if | |
3672 | TYPE_MAX_VALUE is NULL. | |
3673 | ||
b108f48f JJ |
3674 | 2014-07-14 Jakub Jelinek <jakub@redhat.com> |
3675 | ||
3676 | PR middle-end/61294 | |
3677 | * c.opt (Wmemset-transposed-args): New warning. | |
3678 | ||
c0221884 JM |
3679 | 2014-07-10 Jason Merrill <jason@redhat.com> |
3680 | ||
3681 | PR c++/61659 | |
3682 | PR c++/61687 | |
3683 | * c.opt (-fuse-all-virtuals): New. | |
3684 | ||
63dfbb95 RB |
3685 | 2014-07-09 Richard Biener <rguenther@suse.de> |
3686 | ||
3687 | PR c-family/61741 | |
3688 | * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions | |
3689 | using unsigned arithmetic if overflow does not wrap instead of | |
3690 | if overflow is undefined. | |
3691 | ||
773ec47f MP |
3692 | 2014-07-06 Marek Polacek <polacek@redhat.com> |
3693 | ||
3694 | PR c/6940 | |
3695 | * c.opt (Wsizeof-array-argument): New option. | |
3696 | ||
00a7ba58 JJ |
3697 | 2014-07-03 Jakub Jelinek <jakub@redhat.com> |
3698 | ||
b1726d6c | 3699 | * c-ada-spec.c (dump_ada_nodes): Don't call qsort if |
00a7ba58 JJ |
3700 | comments->count <= 1, as comments->entries might be NULL. |
3701 | ||
52ec0ea3 MP |
3702 | 2014-07-01 Marek Polacek <polacek@redhat.com> |
3703 | ||
3704 | * c.opt (Wint-conversion): New option. | |
3705 | ||
d5c3d343 MP |
3706 | 2014-07-01 Marek Polacek <polacek@redhat.com> |
3707 | ||
3708 | PR c/58286 | |
3709 | * c.opt (Wincompatible-pointer-types): New option. | |
3710 | ||
6e7ceb17 PC |
3711 | 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com> |
3712 | ||
3713 | PR c++/51400 | |
3714 | * c-common.c (handle_noreturn_attribute, handle_const_attribute): | |
3715 | Do not discard TYPE_QUALS of type. | |
3716 | ||
da73100b JM |
3717 | 2014-06-26 Jason Merrill <jason@redhat.com> |
3718 | ||
3719 | * c-common.h (enum cxx_dialect): Add cxx1z. | |
3720 | * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New. | |
3721 | * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it. | |
3722 | ||
08eedf75 TJ |
3723 | 2014-06-26 Teresa Johnson <tejohnson@google.com> |
3724 | ||
3725 | * c-common.h (get_dump_info): Declare. | |
3726 | * c-gimplify.c (c_genericize): Use saved dump files. | |
3727 | * c-opts.c (c_common_parse_file): Begin and end dumps | |
3728 | once around parsing invocation. | |
3729 | (get_dump_info): New function. | |
3730 | ||
7b56b2f8 MP |
3731 | 2014-06-23 Marek Polacek <polacek@redhat.com> |
3732 | Andrew MacLeod <amacleod@redhat.com> | |
3733 | ||
3734 | PR c/61553 | |
3735 | * c-common.c (get_atomic_generic_size): Don't segfault if the | |
3736 | type doesn't have a size. | |
3737 | ||
0e37a2f3 MP |
3738 | 2014-06-20 Marek Polacek <polacek@redhat.com> |
3739 | ||
3740 | * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h". | |
3741 | (ubsan_walk_array_refs_r): New function. | |
3742 | (c_genericize): Instrument array bounds. | |
3743 | * c-ubsan.c: Include "internal-fn.h". | |
3744 | (ubsan_instrument_division): Mark instrumented arrays as having | |
3745 | side effects. Adjust ubsan_type_descriptor call. | |
3746 | (ubsan_instrument_shift): Likewise. | |
3747 | (ubsan_instrument_vla): Adjust ubsan_type_descriptor call. | |
3748 | (ubsan_instrument_bounds): New function. | |
3749 | (ubsan_array_ref_instrumented_p): New function. | |
3750 | (ubsan_maybe_instrument_array_ref): New function. | |
3751 | * c-ubsan.h (ubsan_instrument_bounds): Declare. | |
3752 | (ubsan_array_ref_instrumented_p): Declare. | |
3753 | (ubsan_maybe_instrument_array_ref): Declare. | |
3754 | ||
3755 | 2014-06-20 Hale Wang <hale.wang@arm.com> | |
dd6fe7d4 HW |
3756 | |
3757 | PR lto/61123 | |
3758 | * c.opt (fshort-enums): Add to LTO. | |
3759 | * c.opt (fshort-wchar): Likewise. | |
3760 | ||
5c3d09f7 MP |
3761 | 2014-06-16 Marek Polacek <polacek@redhat.com> |
3762 | ||
3763 | PR c/60439 | |
3764 | * c.opt (Wswitch-bool): Add Var. | |
3765 | ||
9cf32741 JJ |
3766 | 2014-06-12 Jakub Jelinek <jakub@redhat.com> |
3767 | ||
3768 | PR middle-end/61486 | |
3769 | * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in | |
3770 | #pragma omp target teams or | |
3771 | #pragma omp {,target }teams distribute simd. | |
3772 | ||
62984918 JM |
3773 | 2014-06-12 Jason Merrill <jason@redhat.com> |
3774 | ||
3775 | * c.opt (Wabi=, fabi-compat-version): New. | |
3776 | * c-opts.c (c_common_handle_option): Handle -Wabi=. | |
3777 | (c_common_post_options): Handle flag_abi_compat_version default. | |
3778 | Disallow -fabi-compat-version=1. | |
3779 | * c-common.h (abi_version_crosses): New. | |
3780 | ||
f961457f JH |
3781 | 2014-06-11 Jan Hubicka <hubicka@ucw.cz> |
3782 | ||
adfac8df | 3783 | * c-common.c (handle_section_attribute): Update handling for |
f961457f JH |
3784 | section names that are no longer trees. |
3785 | ||
92d28cbb JJ |
3786 | 2014-06-10 Jakub Jelinek <jakub@redhat.com> |
3787 | ||
3788 | PR fortran/60928 | |
3789 | * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK... | |
3790 | (omp_pragmas): ... back here. | |
3791 | ||
742938c9 MP |
3792 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
3793 | ||
3794 | PR c/49706 | |
3795 | * c-common.c (warn_logical_not_parentheses): New function. | |
3796 | * c-common.h (warn_logical_not_parentheses): Declare. | |
3797 | * c.opt (Wlogical-not-parentheses): New option. | |
3798 | ||
9d548dfb MP |
3799 | 2014-06-04 Marek Polacek <polacek@redhat.com> |
3800 | ||
3801 | PR c/30020 | |
3802 | * c-common.c (check_case_bounds): Add location parameter. | |
3803 | Use it. | |
3804 | (c_add_case_label): Pass loc to check_case_bounds. | |
3805 | ||
fedfecef MP |
3806 | 2014-06-03 Marek Polacek <polacek@redhat.com> |
3807 | ||
3808 | PR c/60439 | |
3809 | * c.opt (Wswitch-bool): New option. | |
3810 | ||
f6a7cffc TS |
3811 | 2014-05-22 Thomas Schwinge <thomas@codesourcery.com> |
3812 | ||
040d18b6 TS |
3813 | * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl): |
3814 | Remove prototypes. | |
3815 | (record_types_used_by_current_var_decl): Move prototype to where | |
3816 | it belongs. | |
3817 | ||
f6a7cffc TS |
3818 | * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6) |
3819 | (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8) | |
3820 | (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes. | |
3821 | ||
632f2871 RS |
3822 | 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com> |
3823 | ||
3824 | * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete. | |
3825 | * c-common.c (c_common_nodes_and_builtins): Don't initialize | |
3826 | void_zero_node. | |
3827 | * c-pretty-print.c (pp_c_void_constant): New function. | |
3828 | (c_pretty_printer::constant, c_pretty_printer::primary_expression) | |
3829 | (c_pretty_printer::expression): Handle VOID_CST. | |
3830 | * cilk.c (extract_free_variables): Likewise. | |
3831 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift) | |
3832 | (ubsan_instrument_vla): Use void_node instead of void_zero_node. | |
3833 | ||
766090c2 TS |
3834 | 2014-05-17 Trevor Saunders <tsaunders@mozilla.com> |
3835 | ||
3836 | * c-common.h (sorted_fields_type): Remove variable_size GTY attribute. | |
3837 | * c-pragma.c (push_alignment): Adjust. | |
3838 | (handle_pragma_push_options): Likewise. | |
3839 | ||
661a0813 MP |
3840 | 2014-05-09 Marek Polacek <polacek@redhat.com> |
3841 | ||
3842 | PR c/50459 | |
3843 | * c-common.c (check_user_alignment): Return -1 if alignment is error | |
3844 | node. | |
3845 | (handle_aligned_attribute): Don't call default_conversion on | |
3846 | FUNCTION_DECLs. | |
3847 | (handle_vector_size_attribute): Likewise. | |
3848 | (handle_tm_wrap_attribute): Handle case when wrap_decl is error node. | |
3849 | (handle_sentinel_attribute): Call default_conversion and allow even | |
3850 | integral types as an argument. | |
3851 | ||
2793eeab MP |
3852 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
3853 | ||
3854 | PR c/61053 | |
3855 | * c-common.c (min_align_of_type): New function factored out from... | |
3856 | (c_sizeof_or_alignof_type): ...here. | |
3857 | * c-common.h (min_align_of_type): Declare. | |
3858 | ||
f827930a MP |
3859 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
3860 | ||
3861 | PR c/61077 | |
3862 | * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified | |
3863 | parameter type of main. | |
3864 | ||
ca49b74e DD |
3865 | 2014-05-07 DJ Delorie <dj@redhat.com> |
3866 | ||
3867 | * c-cppbuiltin.c (print_bits_of_hex): New. | |
3868 | (builtin_define_type_minmax): Print values using hex so as not to | |
3869 | require a pre-computed list of string values. | |
3870 | ||
1d60af08 KZ |
3871 | 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com> |
3872 | Mike Stump <mikestump@comcast.net> | |
3873 | Richard Sandiford <rdsandiford@googlemail.com> | |
3874 | ||
3875 | * c-ada-spec.c: Include wide-int.h. | |
3876 | (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove. | |
3877 | (dump_generic_ada_node): Use wide-int interfaces. | |
3878 | * c-common.c: Include wide-int-print.h. | |
3879 | (shorten_compare): Use wide-int interfaces and tree_int_cst_lt. | |
3880 | (pointer_int_sum): Use wide-int interfaces. | |
3881 | (c_common_nodes_and_builtins): Use make_int_cst. | |
3882 | (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p. | |
3883 | (handle_alloc_size_attribute): Use wide-int interfaces. | |
3884 | (get_nonnull_operand): Likewise. | |
3885 | * c-format.c (get_constant): Use tree_fits_uhwi_p. | |
3886 | * c-lex.c: Include wide-int.h. | |
3887 | (narrowest_unsigned_type): Take a widest_int rather than two | |
3888 | HOST_WIDE_INTs. | |
3889 | (narrowest_signed_type): Likewise. | |
3890 | (interpret_integer): Update accordingly. Use wide-int interfaces. | |
3891 | (lex_charconst): Use wide-int interfaces. | |
3892 | * c-pretty-print.c: Include wide-int.h. | |
3893 | (pp_c_integer_constant): Use wide-int interfaces. | |
3894 | * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of | |
3895 | INT_CST_LT_UNSIGNED. | |
3896 | ||
b15458be RB |
3897 | 2014-05-06 Richard Biener <rguenther@suse.de> |
3898 | ||
3899 | * c-opts.c (c_common_post_options): For -freestanding, | |
3900 | -fno-hosted and -fno-builtin disable pattern recognition | |
3901 | if not enabled explicitely. | |
3902 | ||
6577374e MP |
3903 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
3904 | ||
3905 | * c.opt (Wsizeof-pointer-memaccess): Describe option. | |
3906 | ||
d00887e8 MP |
3907 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
3908 | ||
3909 | PR c/43245 | |
3910 | * c.opt (Wdiscarded-qualifiers): Add. | |
3911 | ||
f8ed5150 MP |
3912 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
3913 | ||
3914 | * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform | |
3915 | INT_MIN / -1 sanitization only for integer types. | |
3916 | ||
45484dcf MP |
3917 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
3918 | ||
3919 | PR c/18079 | |
3920 | * c-common.c (handle_noinline_attribute): Warn if the attribute | |
3921 | conflicts with always_inline attribute. | |
3922 | (handle_always_inline_attribute): Warn if the attribute conflicts | |
3923 | with noinline attribute. | |
3924 | ||
38e514c0 MP |
3925 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
3926 | ||
3927 | PR c/60156 | |
3928 | * c-common.c (check_main_parameter_types): Warn about variadic main. | |
3929 | ||
44875f92 MS |
3930 | 2014-04-24 Mike Stump <mikestump@comcast.net> |
3931 | ||
3932 | * c.opt (Wshadow-ivar): Default to on. | |
3933 | ||
dcaaa5a0 DP |
3934 | 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com> |
3935 | ||
3936 | * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add. | |
3937 | ||
c07d7c02 MP |
3938 | 2014-04-23 Marek Polacek <polacek@redhat.com> |
3939 | ||
3940 | * c-common.c (handle_tm_wrap_attribute): Tweak error message. | |
3941 | ||
1c33c9b7 JJ |
3942 | 2014-04-22 Jakub Jelinek <jakub@redhat.com> |
3943 | ||
3944 | PR sanitizer/60275 | |
3945 | * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap () | |
3946 | if flag_sanitize_undefined_trap_on_error. | |
3947 | (ubsan_instrument_division, ubsan_instrument_shift, | |
3948 | ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort () | |
3949 | if !flag_sanitize_recover. | |
3950 | ||
793c625f MG |
3951 | 2014-04-22 Marc Glisse <marc.glisse@inria.fr> |
3952 | ||
3953 | PR libstdc++/43622 | |
3954 | * c-common.c (registered_builtin_types): Make non-static. | |
3955 | * c-common.h (registered_builtin_types): Declare. | |
3956 | ||
b0f1bf36 RB |
3957 | 2014-04-14 Richard Biener <rguenther@suse.de> |
3958 | Marc Glisse <marc.glisse@inria.fr> | |
3959 | ||
3960 | PR c/60819 | |
3961 | * c-common.c (convert_vector_to_pointer_for_subscript): Properly | |
3962 | apply may-alias the scalar pointer type when applicable. | |
3963 | ||
3b07fa4a IZ |
3964 | 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com> |
3965 | ||
3966 | PR middle-end/60467 | |
3967 | * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL | |
3968 | as possible argument for Cilk_spawn. | |
3969 | ||
cbbd2b1c TB |
3970 | 2014-04-11 Tobias Burnus <burnus@net-b.de> |
3971 | ||
3972 | PR c/60194 | |
3973 | * c.opt (Wformat-signedness): Add | |
3974 | * c-format.c(check_format_types): Use it. | |
3975 | ||
6415bd5d JM |
3976 | 2014-04-11 Jason Merrill <jason@redhat.com> |
3977 | ||
3978 | PR c++/57926 | |
3979 | * c-common.c (sync_resolve_size, get_atomic_generic_size): Call | |
3980 | default_conversion for an array argument. | |
3981 | ||
6525783a MP |
3982 | 2014-04-08 Marek Polacek <polacek@redhat.com> |
3983 | ||
3984 | PR sanitizer/60745 | |
3985 | * c-ubsan.c: Include asan.h. | |
3986 | (ubsan_instrument_return): Call initialize_sanitizer_builtins. | |
3987 | ||
880a467b NS |
3988 | 2014-04-03 Nathan Sidwell <nathan@codesourcery.com> |
3989 | ||
3990 | * c.opt (Wnon-virtual-dtor): Auto set when Weffc++. | |
3991 | ||
7b59ff2d MP |
3992 | 2014-04-02 Marek Polacek <polacek@redhat.com> |
3993 | ||
3994 | * c-common.h (c_expand_expr): Remove declaration. | |
3995 | ||
8edbfaa6 JJ |
3996 | 2014-03-28 Jakub Jelinek <jakub@redhat.com> |
3997 | ||
3998 | PR c++/60689 | |
3999 | * c-common.c (add_atomic_size_parameter): When creating new | |
4000 | params vector, push the size argument first. | |
4001 | ||
07d72e1d JJ |
4002 | 2014-03-26 Jakub Jelinek <jakub@redhat.com> |
4003 | ||
4004 | * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift, | |
4005 | ubsan_instrument_vla, ubsan_instrument_return): Adjust | |
4006 | ubsan_create_data callers. | |
4007 | ||
b35e0fa0 JJ |
4008 | 2014-03-22 Jakub Jelinek <jakub@redhat.com> |
4009 | ||
4010 | PR debug/60603 | |
4011 | * c-opts.c (c_finish_options): Restore cb_file_change call to | |
4012 | <built-in>. | |
4013 | ||
39a1ebb3 JJ |
4014 | 2014-03-13 Jakub Jelinek <jakub@redhat.com> |
4015 | ||
4016 | PR middle-end/36282 | |
4017 | * c-pragma.c (apply_pragma_weak): Only look at | |
4018 | TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if | |
4019 | DECL_ASSEMBLER_NAME_SET_P (decl). | |
4020 | (maybe_apply_pending_pragma_weaks): Exit early if | |
4021 | vec_safe_is_empty (pending_weaks) rather than only when | |
4022 | !pending_weaks. | |
4023 | (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P, | |
4024 | set assembler name back to NULL afterwards. | |
4025 | ||
a07f6ed2 JM |
4026 | 2014-03-11 Jason Merrill <jason@redhat.com> |
4027 | ||
4028 | * c.opt: Add -std=gnu++14. | |
4029 | ||
75b107f5 IB |
4030 | 2014-03-11 Ian Bolton <ian.bolton@arm.com> |
4031 | ||
4032 | * c-opts.c (c_common_post_options): Don't override | |
4033 | -ffp-contract=fast if unsafe-math-optimizations is on. | |
4034 | ||
f42c637e PM |
4035 | 2014-03-08 Paulo Matos <paulo@matos-sorge.com> |
4036 | ||
22b15758 | 4037 | * c.opt: Enable LTO FE for fshort-double. |
f42c637e | 4038 | |
70e24808 JM |
4039 | 2014-03-07 Jason Merrill <jason@redhat.com> |
4040 | ||
4041 | * c.opt: Add -std=c++14. | |
4042 | ||
3af9c5e9 MP |
4043 | 2014-03-06 Marek Polacek <polacek@redhat.com> |
4044 | ||
4045 | PR c/60197 | |
4046 | * cilk.c (contains_cilk_spawn_stmt): New function. | |
4047 | (contains_cilk_spawn_stmt_walker): Likewise. | |
4048 | (recognize_spawn): Give error on invalid use of _Cilk_spawn. | |
4049 | * c-common.h (contains_cilk_spawn_stmt): Add declaration. | |
4050 | ||
b3bdf019 JJ |
4051 | 2014-03-03 Jakub Jelinek <jakub@redhat.com> |
4052 | ||
4053 | * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD. | |
4054 | (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD | |
4055 | even when flag_preprocess_only. | |
4056 | ||
ca7e759d JM |
4057 | 2014-02-26 Jason Merrill <jason@redhat.com> |
4058 | ||
4059 | PR c++/59231 | |
4060 | PR c++/11586 | |
4061 | * c-common.c (shorten_compare): Don't check | |
4062 | c_inhibit_evaluation_warnings. | |
4063 | ||
28e41874 JJ |
4064 | 2014-02-19 Jakub Jelinek <jakub@redhat.com> |
4065 | ||
cca615af JJ |
4066 | PR c/37743 |
4067 | * c-common.c (c_common_nodes_and_builtins): When initializing | |
4068 | c_uint{16,32,64}_type_node, also set corresponding | |
4069 | uint{16,32,64}_type_node to the same value. | |
4070 | ||
28e41874 JJ |
4071 | PR c++/60267 |
4072 | * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma | |
4073 | for PRAGMA_IVDEP if flag_preprocess_only. | |
4074 | ||
c2bf53a1 JJ |
4075 | 2014-02-12 Jakub Jelinek <jakub@redhat.com> |
4076 | ||
4077 | PR c/60101 | |
4078 | * c-common.c (merge_tlist): If copy is true, call new_tlist, | |
4079 | if false, add ADD itself, rather than vice versa. | |
4080 | (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero | |
4081 | copy. For SAVE_EXPR, only call merge_tlist once. | |
4082 | ||
8fcbce72 JJ |
4083 | 2014-02-08 Jakub Jelinek <jakub@redhat.com> |
4084 | ||
4085 | PR middle-end/60092 | |
4086 | * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p | |
4087 | and tree_to_uhwi. | |
4088 | (handle_alloc_align_attribute, handle_assume_aligned_attribute): New | |
4089 | functions. | |
4090 | (c_common_attribute_table): Add alloc_align and assume_aligned | |
4091 | attributes. | |
4092 | ||
0a756a3f MP |
4093 | 2014-02-06 Marek Polacek <polacek@redhat.com> |
4094 | ||
4095 | PR c/60087 | |
4096 | * c-common.c (warn_for_sign_compare): Call warning_at with location | |
4097 | instead of warning. | |
4098 | ||
7ec4847a MP |
4099 | 2014-02-05 Marek Polacek <polacek@redhat.com> |
4100 | ||
4101 | PR c/53123 | |
4102 | * c-omp.c (c_finish_omp_atomic): Remove unreachable return | |
4103 | statement. | |
4104 | ||
66f20604 MP |
4105 | 2014-02-04 Marek Polacek <polacek@redhat.com> |
4106 | ||
4107 | PR c/60036 | |
4108 | * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or | |
4109 | SAVE_EXPR. | |
4110 | ||
5d77fb19 MG |
4111 | 2014-02-03 Marc Glisse <marc.glisse@inria.fr> |
4112 | ||
4113 | PR c++/53017 | |
4114 | PR c++/59211 | |
4115 | * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute, | |
4116 | handle_vector_size_attribute, handle_nonnull_attribute): Call | |
4117 | default_conversion on the attribute argument. | |
4118 | (handle_nonnull_attribute): Increment the argument number. | |
4119 | ||
81e5eca8 MP |
4120 | 2014-01-31 Marek Polacek <polacek@redhat.com> |
4121 | ||
4122 | PR c/59963 | |
4123 | * c-common.c (add_atomic_size_parameter): Pass vNULL to | |
4124 | build_function_call_vec. | |
4125 | (resolve_overloaded_builtin): Likewise. | |
4126 | * c-common.h (build_function_call_vec): Adjust declaration. | |
4127 | ||
68fca595 MP |
4128 | 2014-01-30 Marek Polacek <polacek@redhat.com> |
4129 | ||
4130 | PR c/59940 | |
4131 | * c-common.h (unsafe_conversion_p): Adjust declaration. | |
4132 | (warnings_for_convert_and_check): Likewise. | |
4133 | (convert_and_check): Likewise. | |
4134 | * c-common.c (unsafe_conversion_p): Add location parameter. Call | |
4135 | expansion_point_location_if_in_system_header on it. | |
4136 | (warnings_for_convert_and_check): Add location parameter. Call | |
4137 | expansion_point_location_if_in_system_header on it. Use it. | |
4138 | (convert_and_check): Add location parameter. Use it. | |
4139 | (conversion_warning): Likewise. | |
4140 | (c_add_case_label): Adjust convert_and_check calls. | |
4141 | (scalar_to_vector): Adjust unsafe_conversion_p calls. | |
4142 | ||
b72271b9 BI |
4143 | 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com> |
4144 | ||
4145 | * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with | |
4146 | flag_cilkplus. | |
4147 | * c-pragma.c (init_pragma): Likewise. | |
4148 | * c.opt: Likewise. | |
4149 | ||
393e8e8b MP |
4150 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
4151 | ||
4152 | PR c/59846 | |
4153 | * c-common.c (shorten_compare): Add location_t parameter. | |
4154 | * c-common.h (shorten_binary_op): Adjust declaration. | |
4155 | ||
f04dda30 MP |
4156 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
4157 | ||
4158 | PR c/58346 | |
4159 | * c-common.c (pointer_to_zero_sized_aggr_p): New function. | |
4160 | * c-common.h: Declare it. | |
4161 | ||
621955cb EB |
4162 | 2014-01-20 Eric Botcazou <ebotcazou@adacore.com> |
4163 | ||
4164 | * c-ada-spec.h (dump_ada_specs): Revert prototype change. | |
4165 | * c-ada-spec.c (dump_ads): Likewise. | |
4166 | (cpp_check): Likewise. | |
4167 | (dump_ada_specs): Likewise. | |
4168 | ||
4169 | 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com> | |
67bf2939 LA |
4170 | |
4171 | PR c++/49718 | |
4172 | * c-common.c (handle_no_instrument_function_attribute): Allow | |
4173 | no_instrument_function attribute in class member | |
4174 | definition/declaration. | |
4175 | ||
241f845a JJ |
4176 | 2014-01-15 Jakub Jelinek <jakub@redhat.com> |
4177 | ||
4178 | PR c/58943 | |
4179 | * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around | |
4180 | build_modify_expr with non-NOP_EXPR opcode. Handle return from it | |
4181 | being COMPOUND_EXPR. | |
4182 | (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first | |
4183 | operand a SAVE_EXPR and second MODIFY_EXPR. | |
4184 | ||
e83b8e2e JJ |
4185 | 2014-01-09 Jakub Jelinek <jakub@redhat.com> |
4186 | ||
4187 | PR target/58115 | |
4188 | * c-pch.c (c_common_write_pch): Call | |
4189 | prepare_target_option_nodes_for_pch. | |
4190 | ||
23a5b65a RS |
4191 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
4192 | ||
4193 | Update copyright years | |
4194 | ||
f9030485 RS |
4195 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
4196 | ||
4197 | * array-notation-common.c, c-cilkplus.c: Use the standard form for | |
4198 | the copyright notice. | |
4199 | ||
f2aa696b EB |
4200 | 2013-12-28 Eric Botcazou <ebotcazou@adacore.com> |
4201 | ||
4202 | * c-ada-spec.c (print_constructor): New function. | |
4203 | (print_destructor): Retrieve the origin of the destructor. | |
4204 | (print_ada_declaration): Revamp handling of constructors/destructors. | |
4205 | ||
3f8257db | 4206 | 2013-12-23 Stuart Hastings <stuart@apple.com> |
1f26ac87 JM |
4207 | Bill Maddox <maddox@google.com> |
4208 | Jason Merrill <jason@redhat.com> | |
4209 | ||
4210 | * c.opt: Add -fdeclone-ctor-dtor. | |
4211 | * c-opts.c (c_common_post_options): Default to on iff -Os. | |
4212 | ||
41958c28 BI |
4213 | 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com> |
4214 | ||
4215 | * c-common.c (c_common_attribute_table): Added "cilk simd function" | |
4216 | attribute. | |
4217 | * c-pragma.h (enum pragma_cilk_clause): Remove. | |
4218 | (enum pragma_omp_clause): Added the following fields: | |
4219 | PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK, | |
4220 | PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE, | |
4221 | PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE, | |
4222 | PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE, | |
4223 | PRAGMA_CILK_CLAUSE_UNIFORM. | |
4224 | ||
b1726d6c | 4225 | |
12893402 BI |
4226 | 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com> |
4227 | ||
4228 | * cilk.c (cilk_outline): Made this function non-static. | |
4229 | (gimplify_cilk_spawn): Removed pre_p and post_p arguments. | |
4230 | (create_cilk_wrapper): Added a new parameter: a function pointer. | |
4231 | (c_install_body_w_frame_cleanup): Remove | |
4232 | (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case. | |
4233 | * c-common.h (cilk_outline): New prototype. | |
4234 | (gimplify_cilk_spawn): Removed two parameters. | |
4235 | (cilk_install_body_with_frame_cleanup): New prototype. | |
4236 | * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and | |
4237 | CILK_SPAWN_STMT case. | |
4238 | ||
085b42ed BS |
4239 | 2013-12-11 Bernd Schmidt <bernds@codesourcery.com> |
4240 | ||
2ce064c3 BS |
4241 | * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR. |
4242 | ||
085b42ed BS |
4243 | * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE. |
4244 | (int_array_type_node): Remove. | |
4245 | * c-common.c (c_common_nodes_and_builtins): Don't build it. | |
4246 | ||
9e36c9ed MP |
4247 | 2013-12-05 Marek Polacek <polacek@redhat.com> |
4248 | ||
4249 | PR c/52023 | |
4250 | * c-common.c (c_sizeof_or_alignof_type): Move a declaration into | |
4251 | [ADJUST_FIELD_ALIGN]. | |
4252 | ||
296674db JM |
4253 | 2013-12-04 Joseph Myers <joseph@codesourcery.com> |
4254 | ||
4255 | PR c/52023 | |
4256 | * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof | |
4257 | and check field alignment if set. | |
4258 | * c-common.h (c_sizeof_or_alignof_type): Update prototype. | |
4259 | (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type. | |
4260 | ||
b1726d6c | 4261 | 2013-12-04 Jakub Jelinek <jakub@redhat.com> |
31e071ae MP |
4262 | Marek Polacek <polacek@redhat.com> |
4263 | ||
4264 | * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow | |
4265 | sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS. | |
4266 | ||
d7947e19 L |
4267 | 2013-11-29 H.J. Lu <hongjiu.lu@intel.com> |
4268 | ||
4269 | PR c/59309 | |
4270 | * cilk.c (gimplify_cilk_spawn): Properly handle function without | |
4271 | arguments. | |
4272 | ||
fad7652e JJ |
4273 | 2013-11-29 Jakub Jelinek <jakub@redhat.com> |
4274 | ||
4275 | PR c/59280 | |
4276 | * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE, | |
4277 | goto invalid. If it is error_mark_node, don't issue further | |
4278 | diagnostics. | |
4279 | ||
8b5e1202 SO |
4280 | 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com> |
4281 | ||
4282 | * c.opt (Wopenmp-simd): New. | |
4283 | ||
0a508bb6 JJ |
4284 | 2013-11-22 Jakub Jelinek <jakub@redhat.com> |
4285 | ||
4286 | * c-ubsan.h (ubsan_instrument_return): New prototype. | |
4287 | * c-ubsan.c (ubsan_instrument_return): New function. | |
4288 | ||
2fb9a547 AM |
4289 | 2013-11-22 Andrew MacLeod <amacleod@redhat.com> |
4290 | ||
4291 | * c-common.c: Add required include files from gimple.h. | |
4292 | * c-gimplify.c: Likewise | |
4293 | * cilk.c: Likewise | |
4294 | ||
8400e75e DM |
4295 | 2013-11-22 David Malcolm <dmalcolm@redhat.com> |
4296 | ||
4297 | * c-common.c (unsafe_conversion_p): Remove use of | |
4298 | EXPR_LOC_OR_HERE macro. | |
4299 | (conversion_warning): Likewise. | |
4300 | (warnings_for_convert_and_check): Likewise. | |
4301 | (warn_for_collisions_1): Likewise. | |
4302 | (shorten_compare): Likewise, and remove use of in_system_header | |
4303 | macro, using the location from the former. | |
4304 | * c-lex.c (dump_one_header): Remove use of input_filename macro. | |
4305 | (cb_def_pragma): Remove use of in_system_header macro. | |
4306 | (lex_string): Likewise. | |
4307 | * c-pragma.c (handle_pragma_float_const_decimal64): Likewise. | |
4308 | ||
eb1ce453 KZ |
4309 | 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com> |
4310 | Mike Stump <mikestump@comcast.net> | |
4311 | Richard Sandiford <rdsandiford@googlemail.com> | |
4312 | ||
4313 | * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi | |
4314 | instead of TREE_INT_CST_LOW, in cases where there is a protecting | |
4315 | tree_fits_shwi_p or tree_fits_uhwi_p. | |
4316 | (dump_generic_ada_node): Likewise. | |
4317 | * c-format.c (check_format_arg): Likewise. | |
4318 | * c-pretty-print.c (pp_c_integer_constant): Likewise. | |
4319 | ||
6b3b8c27 KZ |
4320 | 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com> |
4321 | ||
4322 | * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi. | |
4323 | ||
49b0aa18 JC |
4324 | 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com> |
4325 | ||
4326 | PR c/53001 | |
4327 | * c-common.c (unsafe_conversion_p): Make this function | |
4328 | return an enumeration with more detail. | |
4329 | (conversion_warning): Use the new return type of | |
4330 | unsafe_conversion_p to separately warn either about conversions | |
4331 | that lower floating point number precision or about the other | |
4332 | kinds of conversions. | |
4333 | * c-common.h (enum conversion_safety): New enumeration. | |
8e745a17 JJ |
4334 | (unsafe_conversion_p): switching return type to |
4335 | conversion_safety enumeration. | |
49b0aa18 JC |
4336 | * c.opt: Adding new warning -Wfloat-conversion and |
4337 | enabling it with -Wconversion. | |
4338 | ||
b826515a BS |
4339 | 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net> |
4340 | ||
8e745a17 JJ |
4341 | * c-opts.c: Include plugin.h. |
4342 | (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE. | |
b826515a | 4343 | |
b9a55b13 MP |
4344 | 2013-11-19 Marek Polacek <polacek@redhat.com> |
4345 | ||
4346 | * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data | |
4347 | call. | |
4348 | (ubsan_instrument_shift): Likewise. | |
4349 | (ubsan_instrument_vla): Likewise. | |
4350 | ||
7d362f6c RS |
4351 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
4352 | ||
4353 | * c-common.c (convert_vector_to_pointer_for_subscript): Remove | |
4354 | cast to unsigned type. | |
4355 | ||
386b1f1f RS |
4356 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
4357 | ||
4358 | * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than | |
4359 | tree_low_cst. | |
4360 | (complete_array_type): Update comment to refer to tree_to_[su]hwi | |
4361 | rather than tree_low_cst. | |
4362 | ||
ae7e9ddd RS |
4363 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
4364 | ||
4365 | * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with | |
4366 | tree_to_uhwi throughout. | |
4367 | ||
9439e9a1 RS |
4368 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
4369 | ||
4370 | * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace | |
4371 | tree_low_cst (..., 0) with tree_to_shwi throughout. | |
4372 | ||
cc269bb6 RS |
4373 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
4374 | ||
4375 | * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace | |
4376 | host_integerp (..., 1) with tree_fits_uhwi_p throughout. | |
4377 | ||
9541ffee RS |
4378 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
4379 | ||
4380 | * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace | |
4381 | host_integerp (..., 0) with tree_fits_shwi_p throughout. | |
4382 | ||
c02065fc AH |
4383 | 2013-11-15 Aldy Hernandez <aldyh@redhat.com> |
4384 | ||
4385 | * c-cilkplus.c: New file. | |
4386 | * c-common.c (readonly_error): Add location argument. | |
4387 | * c-common.h (readonly_error): Same. | |
4388 | (c_finish_cilk_clauses): Protoize. | |
4389 | (c_check_cilk_loop): Same. | |
4390 | c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes. | |
4391 | Do not fail on error_mark_node. | |
4392 | Abstract increment canonicalization to here... | |
4393 | (c_omp_for_incr_canonicalize_ptr): New. | |
4394 | c-pragma.c (init_pragma): Register "simd" pragma. | |
4395 | c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD. | |
4396 | (enum pragma_cilk_clause): New. | |
4397 | ||
9cc65f15 RS |
4398 | 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com> |
4399 | ||
4400 | * c-pretty-print.c (pp_c_character_constant): Remove unnecessary | |
4401 | wchar_type and host_integerp checks. | |
4402 | ||
18f429e2 AM |
4403 | 2013-11-14 Andrew MacLeod <amacleod@redhat.com> |
4404 | ||
4405 | * c-common.c: Likewise. | |
4406 | * c-gimplify.c: Likewise. | |
4407 | * cilk.c: Likewise. | |
4408 | ||
d8a2d370 DN |
4409 | 2013-11-14 Diego Novillo <dnovillo@google.com> |
4410 | ||
4411 | * c-common.c: Include fold-const.h. | |
4412 | Include stor-layout.h. | |
4413 | Include calls.h. | |
4414 | Include stringpool.h. | |
4415 | Include attribs.h. | |
4416 | Include varasm.h. | |
4417 | Include trans-mem.h. | |
4418 | * c-cppbuiltin.c: Include stor-layout.h. | |
4419 | Include stringpool.h. | |
4420 | * c-format.c: Include stringpool.h. | |
4421 | * c-lex.c: Include stringpool.h. | |
4422 | Include stor-layout.h. | |
4423 | * c-pragma.c: Include stringpool.h. | |
4424 | Include attribs.h. | |
4425 | Include varasm.h. | |
4426 | Include gcc-symtab.h. | |
4427 | * c-pretty-print.c: Include stor-layout.h. | |
4428 | Include attribs.h. | |
4429 | * cilk.c: Include stringpool.h. | |
4430 | Include calls.h. | |
4431 | ||
38b7bc7f JM |
4432 | 2013-11-13 Joseph Myers <joseph@codesourcery.com> |
4433 | ||
4434 | * c-common.h (enum rid): Add RID_AUTO_TYPE. | |
4435 | * c-common.c (c_common_reswords): Add __auto_type. | |
4436 | (keyword_begins_type_specifier): Handle RID_AUTO_TYPE. | |
4437 | ||
45b0be94 AM |
4438 | 2013-11-12 Andrew MacLeod <amacleod@redhat.com> |
4439 | ||
18f429e2 AM |
4440 | * c-common.c: Include gimplify.h. |
4441 | * c-gimplify.c: Likewise. | |
4442 | * cilk.c: Likewise. | |
4443 | * c-omp.c: Include gimple-expr.h instead of gimple.h. | |
4444 | * c-ubsan.c: Don't include gimple.h. | |
45b0be94 | 4445 | |
582d9b50 JM |
4446 | 2013-11-12 Joseph Myers <joseph@codesourcery.com> |
4447 | ||
4448 | * c-common.c (c_common_reswords): Add _Thread_local. | |
4449 | ||
6b28e197 JM |
4450 | 2013-11-09 Joseph Myers <joseph@codesourcery.com> |
4451 | ||
4452 | * c-common.c (atomic_size_supported_p): New function. | |
4453 | (resolve_overloaded_atomic_exchange) | |
4454 | (resolve_overloaded_atomic_compare_exchange) | |
4455 | (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): | |
4456 | Use it instead of comparing size with a local list of sizes. | |
4457 | ||
267bac10 JM |
4458 | 2013-11-07 Andrew MacLeod <amacleod@redhat.com> |
4459 | Joseph Myers <joseph@codesourcery.com> | |
4460 | ||
4461 | * c-common.h (enum rid): Add RID_ATOMIC. | |
4462 | * c-common.c (c_common_reswords): Add _Atomic. | |
4463 | (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument. | |
4464 | (keyword_is_type_qualifier): Accept RID_ATOMIC. | |
4465 | * c-format.c (check_format_types): Check for extra _Atomic | |
4466 | qualifiers in format argument. | |
4467 | * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier. | |
4468 | (pp_c_type_qualifier_list): Mention _Atomic in comment. | |
4469 | ||
5157b91e TB |
4470 | 2013-11-06 Tobias Burnus <burnus@net-b.de> |
4471 | ||
4472 | * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME. | |
4473 | ||
6dbe0958 JM |
4474 | 2013-11-06 Joseph Myers <joseph@codesourcery.com> |
4475 | ||
4476 | * c-opts.c (c_common_post_options): Set -ffp-contract=off in C | |
4477 | standards modes. | |
4478 | * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast | |
4479 | to mean lack of IEEE 754 support. | |
4480 | ||
e8ff5196 TB |
4481 | 2013-11-05 Tobias Burnus <burnus@net-b.de> |
4482 | ||
4483 | * c.opt (-Wdate-time): New option | |
4484 | * c-opts.c (sanitize_cpp_opts): Pass on to libcpp. | |
4485 | ||
254a0760 JM |
4486 | 2013-11-05 Joseph Myers <joseph@codesourcery.com> |
4487 | ||
4488 | * c-cppbuiltin.c (cpp_iec_559_value): Test | |
4489 | flag_excess_precision_cmdline not flag_excess_precision. | |
4490 | ||
6d7f7e0a TB |
4491 | 2013-11-05 Tobias Burnus <burnus@net-b.de> |
4492 | ||
4493 | * c.opt (fopenmp-simd): New option. | |
4494 | * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ... | |
4495 | (omp_pragmas): ... this new struct. | |
4496 | (c_pp_lookup_pragma): Also walk omp_pragmas. | |
4497 | (init_pragma): Init pragmas for -fopenmp-simd. | |
4498 | ||
55a7f02f MP |
4499 | 2013-11-04 Marek Polacek <polacek@redhat.com> |
4500 | ||
4501 | PR c++/58979 | |
4502 | * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case. | |
4503 | ||
9193fb05 JM |
4504 | 2013-11-04 Joseph Myers <joseph@codesourcery.com> |
4505 | ||
4506 | * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value): | |
4507 | New functions. | |
4508 | (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX. | |
4509 | ||
94159ecf EB |
4510 | 2013-11-04 Eric Botcazou <ebotcazou@adacore.com> |
4511 | ||
4512 | * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL. | |
4513 | (dump_ada_specs): Adjust prototype of second callback. | |
4514 | * c-ada-spec.c (cpp_check): New global variable. | |
4515 | (dump_ada_nodes): Remove cpp_check parameter and do not pass it down. | |
4516 | (print_generic_ada_decl): Likewise. | |
4517 | (has_static_fields): Change return type to bool and add guard. | |
4518 | (has_nontrivial_methods): New predicate. | |
4519 | (is_tagged_type): Change return type to bool. | |
4520 | (separate_class_package): Call has_nontrivial_methods. | |
4521 | (pp_ada_tree_identifier): Minor tweaks. | |
4522 | (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node. | |
4523 | (dump_ada_array_domains): Likewise. | |
4524 | (dump_ada_array_type): Likewise. | |
4525 | (dump_template_types): Remove cpp_check parameter and do not pass it to | |
4526 | dump_generic_ada_node. | |
4527 | (dump_ada_template): Likewise. | |
4528 | (dump_generic_ada_node): Remove cpp_check parameter and do not pass it | |
4529 | recursively. | |
4530 | (print_ada_methods): Change return type to integer. Remove cpp_check | |
4531 | parameter and do not pass it down. | |
4532 | (dump_nested_types): Remove cpp_check parameter and do not pass it to | |
4533 | dump_generic_ada_node. | |
4534 | (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before | |
4535 | accessing methods. | |
4536 | (print_ada_struct_decl): Remove cpp_check parameter and do not pass it | |
4537 | down. Use has_nontrivial_methods to recognize C++ classes. Use return | |
4538 | value of print_ada_methods. | |
4539 | (dump_ads): Rename cpp_check parameter to check and adjust prototype. | |
4540 | Set cpp_check to it before invoking dump_ada_nodes. | |
4541 | (dump_ada_specs): Likewise. | |
4542 | ||
b906f4ca MP |
4543 | 2013-11-03 Marek Polacek <polacek@redhat.com> |
4544 | ||
4545 | * c-ubsan.c: Don't include hash-table.h. | |
4546 | (ubsan_instrument_vla): New function. | |
4547 | * c-ubsan.h: Declare it. | |
4548 | ||
5e20cdc9 DM |
4549 | 2013-10-31 David Malcolm <dmalcolm@redhat.com> |
4550 | ||
4551 | Automated part of renaming of symtab_node_base to symtab_node. | |
4552 | ||
4553 | Patch autogenerated by rename_symtab.py from | |
4554 | https://github.com/davidmalcolm/gcc-refactoring-scripts | |
4555 | revision 58bb219cc090b2f4516a9297d868c245495ee622 | |
4556 | ||
4557 | * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename | |
4558 | symtab_node_base to symtab_node. | |
4559 | ||
7057e645 ESR |
4560 | 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net> |
4561 | ||
8e745a17 | 4562 | Implement C++14 digit separators. |
7057e645 ESR |
4563 | * c-lex.c (interpret_float): Remove digit separators from scratch string |
4564 | before building real literal. | |
4565 | ||
193ea7bc JJ |
4566 | 2013-10-30 Jakub Jelinek <jakub@redhat.com> |
4567 | ||
4568 | * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC. | |
4569 | ||
939b37da BI |
4570 | 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com> |
4571 | ||
4572 | * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync | |
4573 | fields. | |
4574 | (c_define_builtins): Called cilk_init_builtins if Cilk Plus is | |
4575 | enabled. | |
4576 | * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC. | |
4577 | (insert_cilk_frame): New prototype. | |
4578 | (cilk_init_builtins): Likewise. | |
4579 | (gimplify_cilk_spawn): Likewise. | |
4580 | (c_cilk_install_body_w_frame_cleanup): Likewise. | |
4581 | (cilk_detect_spawn_and_unwrap): Likewise. | |
4582 | (cilk_set_spawn_marker): Likewise. | |
4583 | (build_cilk_sync): Likewise. | |
4584 | (build_cilk_spawn): Likewise. | |
4585 | * cilk.c: New file. | |
4586 | ||
67348ccc DM |
4587 | 2013-10-29 David Malcolm <dmalcolm@redhat.com> |
4588 | ||
4589 | Patch autogenerated by refactor_symtab.py from | |
4590 | https://github.com/davidmalcolm/gcc-refactoring-scripts | |
4591 | revision 58bb219cc090b2f4516a9297d868c245495ee622 | |
4592 | ||
4593 | * c-gimplify.c (c_genericize): Update for conversion of symtab types | |
4594 | to a true class hierarchy. | |
4595 | * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise. | |
4596 | ||
d570872d RS |
4597 | 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com> |
4598 | ||
4599 | * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend. | |
4600 | ||
98906124 JL |
4601 | 2013-10-26 Jeff Law <law@redhat.com> |
4602 | ||
adfac8df JJ |
4603 | * c-common.c (c_define_builtins): Remove mudflap support. |
4604 | * c.opt: Ignore and warn for mudflap options. | |
98906124 | 4605 | |
d73749df | 4606 | 2013-10-24 Tobias Burnus <burnus@net-b.de> |
8170608b TB |
4607 | |
4608 | PR other/33426 | |
4609 | * c-pragma.c (init_pragma) Add #pragma ivdep handling. | |
4610 | * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP. | |
4611 | ||
3f04b1bb JM |
4612 | 2013-10-23 Jason Merrill <jason@redhat.com> |
4613 | ||
4614 | * c-format.c (gcc_cxxdiag_char_table): Add %X. | |
4615 | ||
acf0174b JJ |
4616 | 2013-10-11 Jakub Jelinek <jakub@redhat.com> |
4617 | ||
acd15a28 JJ |
4618 | * c-common.h (omp_clause_mask::operator !=): New method. |
4619 | * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0) | |
4620 | instead of if (mask & something) tests everywhere. | |
4621 | ||
acf0174b JJ |
4622 | * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to |
4623 | 201307 instead of 201107. | |
4624 | * c-common.c (DEF_FUNCTION_TYPE_8): Define. | |
4625 | (c_common_attribute_table): Add "omp declare target" and | |
4626 | "omp declare simd" attributes. | |
4627 | (handle_omp_declare_target_attribute, | |
4628 | handle_omp_declare_simd_attribute): New functions. | |
4629 | * c-omp.c: Include c-pragma.h. | |
4630 | (c_finish_omp_taskgroup): New function. | |
4631 | (c_finish_omp_atomic): Add swapped argument, if true, | |
4632 | build the operation first with rhs, lhs arguments and use NOP_EXPR | |
4633 | build_modify_expr. | |
4634 | (c_finish_omp_for): Add code argument, pass it down to make_code. | |
4635 | (c_omp_split_clauses): New function. | |
4636 | (c_split_parallel_clauses): Removed. | |
4637 | (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers, | |
4638 | c_omp_declare_simd_clauses_to_decls): New functions. | |
4639 | * c-common.h (omp_clause_mask): New type. | |
4640 | (OMP_CLAUSE_MASK_1): Define. | |
4641 | (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=, | |
4642 | omp_clause_mask::operator |=, omp_clause_mask::operator ~, | |
4643 | omp_clause_mask::operator |, omp_clause_mask::operator &, | |
4644 | omp_clause_mask::operator <<, omp_clause_mask::operator >>, | |
4645 | omp_clause_mask::operator ==): New methods. | |
4646 | (enum c_omp_clause_split): New. | |
4647 | (c_finish_omp_taskgroup): New prototype. | |
4648 | (c_finish_omp_atomic): Add swapped argument. | |
4649 | (c_finish_omp_for): Add code argument. | |
4650 | (c_omp_split_clauses): New prototype. | |
4651 | (c_split_parallel_clauses): Removed. | |
4652 | (c_omp_declare_simd_clauses_to_numbers, | |
4653 | c_omp_declare_simd_clauses_to_decls): New prototypes. | |
4654 | * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs. | |
4655 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL, | |
4656 | PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION, | |
4657 | PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD, | |
4658 | PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS. | |
4659 | Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS. | |
4660 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED, | |
4661 | PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE, | |
4662 | PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR, | |
4663 | PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH, | |
4664 | PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP, | |
4665 | PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS, | |
4666 | PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND, | |
4667 | PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS, | |
4668 | PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP, | |
4669 | PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and | |
4670 | PRAGMA_OMP_CLAUSE_UNIFORM. | |
4671 | ||
826cacfe MG |
4672 | 2013-10-09 Marc Glisse <marc.glisse@inria.fr> |
4673 | ||
4674 | PR tree-optimization/20318 | |
4675 | * c-common.c (handle_returns_nonnull_attribute): New function. | |
4676 | (c_common_attribute_table): Add returns_nonnull. | |
4677 | ||
2284b034 MG |
4678 | 2013-10-03 Marc Glisse <marc.glisse@inria.fr> |
4679 | ||
4680 | PR c++/19476 | |
4681 | * c.opt (fcheck-new): Move to common.opt. | |
4682 | ||
b56e9788 MP |
4683 | 2013-09-25 Marek Polacek <polacek@redhat.com> |
4684 | Jakub Jelinek <jakub@redhat.com> | |
4685 | ||
4686 | PR sanitizer/58413 | |
4687 | * c-ubsan.c (ubsan_instrument_shift): Don't instrument | |
4688 | an expression if we can prove it is correct. | |
4689 | (ubsan_instrument_division): Likewise. Remove unnecessary | |
4690 | check. | |
4691 | ||
ce6923c5 MP |
4692 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
4693 | ||
4694 | PR sanitizer/58411 | |
4695 | * c-common.c (handle_no_sanitize_undefined_attribute): New function. | |
4696 | Declare it. | |
4697 | (struct attribute_spec c_common_att): Add no_sanitize_undefined. | |
4698 | ||
fb5610fb IS |
4699 | 2013-09-14 Iain Sandoe <iain@codesourcery.com> |
4700 | ||
4701 | PR target/48094 | |
4702 | * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version, | |
4703 | fobjc-gc, freplace-objc-classes): Accept for LTO. | |
4704 | ||
88b0e79e JC |
4705 | 2013-09-13 Jacek Caban <jacek@codeweavers.com> |
4706 | ||
4707 | * c-target.def: New hook | |
4708 | ||
c9b0866a PC |
4709 | 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com> |
4710 | ||
4711 | PR c++/43452 | |
4712 | * c.opt (Wdelete-incomplete): Add. | |
4713 | ||
0af94e6f JR |
4714 | 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com> |
4715 | ||
4716 | * c-common.c (same_scalar_type_ignoring_signedness): Delete. | |
4717 | (vector_types_compatible_elements_p): New function. | |
4718 | * c-common.h: (same_scalar_type_ignoring_signedness): Delete | |
4719 | declaration. | |
4720 | (vector_types_compatible_elements_p): Declare. | |
4721 | ||
7c26172c GDR |
4722 | 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
4723 | ||
4724 | * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now | |
4725 | a virtual member function. | |
4726 | (pp_simple_type_specifier): Remove. | |
4727 | (pp_c_type_specifier): Likewise. | |
4728 | * c-pretty-print.c (c_pretty_printer::simple_type_specifier): | |
4729 | Rename from pp_c_type_specifier. Adjust. | |
4730 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
4731 | simple_type_specifier. | |
4732 | ||
20059c8b GDR |
4733 | 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
4734 | ||
4735 | * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual | |
4736 | member function. | |
4737 | (c_pretty_printer::storage_class_specifier): Likewise. | |
4738 | (c_pretty_printer::initializer): Likewise. | |
4739 | (pp_declaration): Remove. | |
4740 | (pp_declaration_specifiers): Likewise. | |
4741 | (pp_abstract_declarator): Likewise. | |
4742 | (pp_declarator): Likewise. | |
4743 | (pp_type_id): Likewise. | |
4744 | (pp_statement): Likewise. | |
4745 | (pp_constant): Likewise. | |
4746 | (pp_id_expression): Likewise. | |
4747 | (pp_primary_expression): Likewise. | |
4748 | (pp_unary_expression): Likewise. | |
4749 | (pp_multiplicative_expression): Likewise. | |
4750 | (pp_conditional_expression): Likewise. | |
4751 | (pp_assignment_expression): Likewise. | |
4752 | (pp_expression): Likewise. | |
4753 | (pp_c_type_id): Likewise. | |
4754 | (pp_c_storage_class_specifier): Likewise. | |
4755 | * c-pretty-print.c (pp_c_type_cast): Tidy. | |
4756 | (pp_c_pointer): Likewise. | |
4757 | (pp_c_type_specifier): Likewise. | |
4758 | (pp_c_parameter_type_list): Likewise. | |
4759 | (pp_c_function_definition): Likewise. | |
4760 | (pp_c_init_declarator): Likewise. | |
4761 | (pp_c_initializer_list): Likewise. | |
4762 | (pp_c_constructor_elts): Likewise. | |
4763 | (c_pretty_printer::direct_abstract_declarator): Likewise. | |
4764 | (c_pretty_printer::declaration_specifiers): Likewise. | |
4765 | (c_pretty_printer::primary_expression): Likewise. | |
4766 | (c_pretty_printer::postfix_expression): Likewise. | |
4767 | (c_pretty_printer::type_id): Rename from pp_c_type_id. | |
4768 | (c_pretty_printer::storage_class_specifier): Rename from | |
4769 | pp_c_storage_class_specifier. | |
4770 | (c_pretty_printer::initializer): Rename from pp_c_initializer. | |
4771 | (c_pretty_printer::c_pretty_printer): Do not assign to type_id, | |
4772 | storage_class_specifier, initializer, offset_list, flags. | |
4773 | ||
de5a5fa1 MP |
4774 | 2013-08-30 Marek Polacek <polacek@redhat.com> |
4775 | ||
4776 | * c-ubsan.c: New file. | |
4777 | * c-ubsan.h: New file. | |
4778 | ||
8f0e4d72 GDR |
4779 | 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net> |
4780 | ||
4781 | * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual | |
4782 | member function. | |
4783 | (c_pretty_printer::declaration_specifiers): Likewise. | |
4784 | (c_pretty_printer::declarator): Likewise. | |
4785 | (c_pretty_printer::abstract_declarator): Likewise. | |
4786 | (c_pretty_printer::direct_abstract_declarator): Likewise. | |
4787 | (c_pretty_printer::direct_declarator): Likewise. | |
4788 | (c_pretty_printer::function_specifier): Likewise. | |
4789 | (pp_declaration): Adjust. | |
4790 | (pp_declaration_specifiers): Likewise. | |
4791 | (pp_abstract_declarator): Likewise. | |
4792 | (pp_direct_declarator): Likewise. | |
4793 | (pp_function_specifier): Likewise. | |
4794 | (pp_direct_abstract_declarator): Remove as unused. | |
4795 | (pp_c_declaration): Remove. | |
4796 | (pp_c_declaration_specifiers): Likewise. | |
4797 | (pp_c_declarator): Likewise. | |
4798 | (pp_c_direct_declarator): Likewise. | |
4799 | (pp_c_function_specifier): Likewise. | |
4800 | (pp_c_direct_abstract_declarator): Likewise. | |
4801 | * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename | |
4802 | from pp_c_abstract_declarator. Adjust. | |
4803 | (c_pretty_printer::direct_abstract_declarator): Rename from | |
4804 | pp_c_direct_abstract_declarator. Adjust. | |
4805 | (c_pretty_printer::function_specifier): Rename from | |
4806 | pp_c_function_specifier. Adjust. | |
4807 | (c_pretty_printer::declaration_specifiers): Rename from | |
4808 | pp_c_declaration_specifiers. Adjust. | |
4809 | (c_pretty_printer::direct_declarator): Rename from | |
4810 | pp_c_direct_declarator. Adjust. | |
4811 | (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust. | |
4812 | (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust. | |
4813 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
4814 | declaration, declaration_specifiers, declarator, | |
4815 | direct_declarator, direct_abstract_declarator, function_specifier. | |
4816 | ||
00d34d3a GDR |
4817 | 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net> |
4818 | ||
4819 | * c-pretty-print.h (c_pretty_printer::unary_expression): Now a | |
4820 | virtual member function. | |
4821 | (c_pretty_printer::multiplicative_expression): Likewise. | |
4822 | (c_pretty_printer::conditional_expression): Likewise. | |
4823 | (c_pretty_printer::assignment_expression): Likewise. | |
4824 | (c_pretty_printer::expression): Likewise. | |
4825 | (pp_unary_expression): Adjust. | |
4826 | (pp_multiplicative_expression): Likewise. | |
4827 | (pp_assignment_expression): Likewise. | |
4828 | (pp_conditional_expression): Likewise. | |
4829 | (pp_expression): Likewise. | |
4830 | * c-pretty-print.c (c_pretty_printer::unary_expression): Rename | |
4831 | from pp_c_unary_expression. Adjust. | |
4832 | (c_pretty_printer::multiplicative_expression): Rename from | |
4833 | pp_c_multiplicative_expression. Adjust. | |
4834 | (c_pretty_printer::conditional_expression): Rename from | |
4835 | pp_c_conditional_expression. Adjust. | |
4836 | (c_pretty_printer::assignment_expression): Rename from | |
4837 | pp_c_assignment_expression. Adjust. | |
4838 | (c_pretty_printer::expression): Rename from pp_c_expression. Adjust. | |
4839 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
4840 | unary_expression, multiplicative_expression, | |
4841 | conditional_expression, expression. | |
4842 | ||
fb22178f GDR |
4843 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
4844 | ||
4845 | * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a | |
4846 | virtual member function. | |
4847 | (pp_postfix_expression): Adjust. | |
4848 | (pp_c_postfix_expression): Remove. | |
4849 | * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename | |
4850 | from pp_c_postfix_expression. Adjust. | |
4851 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
4852 | postfix_expression. | |
4853 | ||
7ecc2600 GDR |
4854 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
4855 | ||
4856 | * c-pretty-print.h (c_pretty_printer::primary_expression): Now a | |
4857 | virtua member function. | |
4858 | (pp_primary_expression): Adjust. | |
4859 | (pp_c_primary_expression): Remove. | |
4860 | * c-pretty-print.c (c_pretty_printer::primary_expression): Rename | |
4861 | from pp_c_primary_expression. Adjust. | |
4862 | (pp_c_initializer_list): Use pp_primary_expression. | |
4863 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
4864 | primary_expression. | |
4865 | ||
0691175f GDR |
4866 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
4867 | ||
4868 | * c-pretty-print.h (c_pretty_printer::translate_string): Declare. | |
4869 | * c-pretty-print.c (M_): Remove. | |
4870 | (c_pretty_printer::translate_string): Define. | |
4871 | (pp_c_type_specifier): Use it. | |
4872 | (pp_c_primary_expression): Likewise. | |
4873 | (pp_c_expression): Likewise. | |
4874 | ||
66dfe4c4 GDR |
4875 | 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net> |
4876 | ||
4877 | * c-pretty-print.h (c_pretty_printer::id_expression): Now a | |
4878 | virtual function. | |
4879 | (pp_c_id_expression): Remove. | |
4880 | (pp_id_expression): Adjust. | |
4881 | * c-pretty-print.c (c_pretty_printer::id_expression): Rename from | |
4882 | pp_c_id_expression. Adjust. | |
4883 | (pp_c_postfix_expression): Use pp_id_expression. | |
4884 | (c_pretty_printer::c_pretty_printer): Do not assign to id_expression. | |
4885 | ||
ca43e9d5 GDR |
4886 | 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net> |
4887 | ||
4888 | * c-pretty-print.h (c_pretty_printer::constant): Now a virtual | |
4889 | member function. | |
4890 | (pp_constant): Adjust. | |
4891 | (pp_c_constant): Remove. | |
4892 | * c-pretty-print.c (c_pretty_printer::constant): Rename from | |
4893 | pp_c_constant. Adjust. | |
4894 | (pp_c_constant) | |
4895 | (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant. | |
4896 | (c_pretty_printer::c_pretty_printer): Remove assignment to constant. | |
4897 | ||
da6ca2b5 GDR |
4898 | 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
4899 | ||
4900 | * c-pretty-print.h (pp_c_pretty_printer_init): Remove. | |
4901 | (c_pretty_printer::c_pretty_printer): Declare. | |
4902 | * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from | |
4903 | c_pretty_printer_init. Adjust. | |
4904 | (print_c_tree): Do not call c_pretty_printer_init. | |
4905 | * c-ada-spec.c (dump_ads): Remove call to pp_construct. | |
4906 | ||
65a372f4 AC |
4907 | 2013-08-09 Arnaud Charlet <charlet@adacore.com> |
4908 | ||
4909 | * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name | |
4910 | ||
fd9b0f32 PC |
4911 | 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com> |
4912 | ||
4913 | PR c++/58080 | |
4914 | * c-common.c (pointer_int_sum): Add bool parameter. | |
4915 | * c-common.h (pointer_int_sum): Adjust declaration. | |
4916 | ||
e0aec1e9 GDR |
4917 | 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net> |
4918 | ||
4919 | * c-pretty-print.c (print_c_tree): Simplify. Use non-static local | |
4920 | c_pretty_printer variable. | |
4921 | ||
b066401f GDR |
4922 | 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
4923 | ||
4924 | * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer. | |
4925 | (pp_base): Remove. | |
4926 | (pp_c_base): Likewise. Adjust users. | |
4927 | * c-pretty-print.c (pp_c_maybe_whitespace): Adjust. | |
4928 | (pp_c_whitespace): Do not call pp_base. | |
4929 | (pp_c_left_paren): Likewise. | |
4930 | (pp_c_right_paren): Likewise. | |
4931 | (pp_c_left_brace): Likewise. | |
4932 | (pp_c_right_brace): Likewise. | |
4933 | (pp_c_left_bracket): Likewise. | |
4934 | (pp_c_right_bracket): Likewise. | |
4935 | (pp_c_dot): Likewise. | |
4936 | (pp_c_ampersand): Likewise. | |
4937 | (pp_c_star): Likewise. | |
4938 | (pp_c_arrow): Likewise. | |
4939 | (pp_c_semicolon): Likewise. | |
4940 | (pp_c_complement): Likewise. | |
4941 | (pp_c_exclamation): Likewise. | |
4942 | (pp_c_direct_declarator): Likewise. | |
4943 | (pp_c_ws_string): Likewise. | |
4944 | (pp_c_identifier): Likewise. | |
4945 | (pp_c_statement): Likewise. | |
4946 | (print_c_tree): Likewise. | |
4947 | ||
65e5a578 ESR |
4948 | 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net> |
4949 | ||
4950 | PR c++/58072 | |
4951 | * c-common.c (c_parse_error): Catch user-defined literal tokens and | |
4952 | provide useful error strings. | |
4953 | ||
137a1a27 GDR |
4954 | 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
4955 | ||
4956 | * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty | |
4957 | printer functions instead of pp_string or operators and punctuators. | |
4958 | (dump_generic_ada_node): Likewise. | |
4959 | * c-pretty-print.c (pp_c_type_specifier): Likewise. | |
4960 | (pp_c_relational_expression): Likewise. | |
4961 | (pp_c_logical_or_expression): Likewise. | |
4962 | ||
07838b13 GDR |
4963 | 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
4964 | ||
4965 | * c-ada-spec.c (print_ada_macros): Use specialized pretty printer | |
4966 | functions instead of pp_character. | |
4967 | (pp_ada_tree_identifier): Likewise. | |
4968 | (dump_ada_double_name): Likewise. | |
4969 | (dump_ada_function_declaration): Likewise. | |
4970 | (dump_ada_array_domains): Likewise. | |
4971 | (dump_template_types): Likewise. | |
4972 | (dump_generic_ada_node): Likewise. | |
4973 | (print_ada_declaration): Likewise. | |
4974 | (print_ada_struct_decl): Likewise. | |
4975 | * c-pretty-print.c (pp_c_integer_constant): Likewise. | |
4976 | ||
433cc7b0 TT |
4977 | 2013-07-23 Tom Tromey <tromey@redhat.com> |
4978 | ||
4979 | * c-common.h (enum rid) <RID_GENERIC>: New constant. | |
4980 | * c-common.c (c_common_reswords): Add _Generic. | |
4981 | ||
688010ba OB |
4982 | 2013-07-21 OndÅ\99ej BÃlka <neleai@seznam.cz> |
4983 | ||
4984 | * c-common.c: Fix typos. | |
4985 | * c-common.h: Likewise. | |
4986 | ||
2a99e5e6 LL |
4987 | 2013-07-13 Lubos Lunak <l.lunak@suse.cz> |
4988 | ||
4989 | PR c++/55203 | |
4990 | * c-common.c (c_common_attribute_table): Add warn_unused. | |
4991 | (handle_warn_unused_attribute): New. | |
4992 | ||
c26302d5 JJ |
4993 | 2013-07-10 Jakub Jelinek <jakub@redhat.com> |
4994 | ||
4995 | * c-ppoutput.c (scan_translation_unit): Call account_for_newlines | |
4996 | for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT. | |
4997 | ||
dfeadaa0 PC |
4998 | 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com> |
4999 | ||
5000 | PR c++/57869 | |
5001 | * c.opt: Add Wconditionally-supported. | |
5002 | ||
6a2fa4b2 GS |
5003 | 2013-07-08 Graham Stott <graham.stott@btinternet.com> |
5004 | ||
adfac8df | 5005 | * array-notation-common.c (length_mismatch_in_expr_p): Delete |
6a2fa4b2 GS |
5006 | unused variables l_length and l_node. |
5007 | ||
ecdbd01a | 5008 | 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com> |
40d3d530 JR |
5009 | |
5010 | PR c/57821 | |
5011 | * c-common.c (complete_array_type): Delay folding first index | |
5012 | like other indices. When folding, check for index overflow. | |
5013 | ||
bedc293e MG |
5014 | 2013-06-27 Marc Glisse <marc.glisse@inria.fr> |
5015 | ||
5016 | PR c++/57509 | |
5017 | * c-common.h (c_build_vec_perm_expr): New complain argument. | |
5018 | * c-common.c (c_build_vec_perm_expr): Likewise. | |
5019 | Use save_expr also in C++. | |
5020 | ||
604b2bfc GDR |
5021 | 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
5022 | ||
5023 | * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x. | |
5024 | * c-cppbuiltin.c (c_cpp_builtins): Likewise. | |
5025 | * c-opts.c (c_common_post_options): Likewise. | |
5026 | ||
dfeadaa0 | 5027 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
713b46fa BI |
5028 | |
5029 | * array-notation-common.c (length_mismatch_in_expr): Changed the | |
5030 | parameter type's from a dynamic array to a vec_tree. Also removed | |
5031 | the size parameters. | |
5032 | * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per | |
5033 | the change above. | |
5034 | ||
2ce86d2e BI |
5035 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
5036 | ||
5037 | * c-common.h (struct cilkplus_an_parts): New structure. | |
5038 | (struct cilkplus_an_loop_parts): Likewise. | |
5039 | (cilkplus_extract_an_triplets): New prototype. | |
5040 | (fix_sec_implicit_args): Likewise. | |
5041 | * array-notation-common.c (cilkplus_extract_an_triplets): New function. | |
5042 | (fix_sec_implicit_args): Likewise. | |
604b2bfc | 5043 | |
07a6825b BI |
5044 | 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com> |
5045 | ||
5046 | * array-notation-common.c (find_inv_trees): Removed an unwanted | |
5047 | typecasting. | |
5048 | * c-common.h (struct inv_list::additional_tcodes): Changed type from | |
5049 | enum rid to enum tree_code. | |
5050 | ||
08346abd JH |
5051 | 2013-06-11 Jan Hubicka <jh@suse.cz> |
5052 | ||
5053 | * c-common.c (handle_alias_ifunc_attribute): Do not set | |
5054 | DECL_EXTERNAL for weakref variables. | |
5055 | * c-pragma.c (handle_pragma_weak): Make sure aliases | |
5056 | are not declared as external. | |
5057 | ||
d60f1706 BI |
5058 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
5059 | ||
5060 | * array-notation-common.c (length_mismatch_in_expr_p): Moved this | |
5061 | function from c/c-array-notation.c. | |
5062 | (is_cilkplus_reduce_builtin): Likewise. | |
5063 | (find_rank): Likewise. | |
5064 | (extract_array_notation_exprs): Likewise. | |
5065 | (replace_array_notations): Likewise. | |
5066 | (find_inv_trees): Likewise. | |
5067 | (replace_inv_trees): Likewise. | |
5068 | (contains_array_notation_expr): Likewise. | |
5069 | (find_correct_array_notation_type): Likewise. | |
5070 | * c-common.h (struct inv_list): Moved this struct from the file | |
5071 | c/c-array-notation.c and added a new field called additional tcodes. | |
5072 | (length_mismatch_in_expr_p): New prototype. | |
5073 | (is_cilkplus_reduce_builtin): Likewise. | |
5074 | (find_rank): Likewise. | |
5075 | (extract_array_notation_exprs): Likewise. | |
5076 | (replace_array_notation): Likewise. | |
5077 | (find_inv_trees): Likewise. | |
5078 | (replace_inv_trees): Likewise. | |
5079 | (find_correct_array_notation_type): Likewise. | |
dfeadaa0 | 5080 | |
36536d79 BI |
5081 | 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
5082 | ||
5083 | * c-common.c (c_define_builtins): When cilkplus is enabled, the | |
5084 | function array_notation_init_builtins is called. | |
5085 | (c_common_init_ts): Added ARRAY_NOTATION_REF as typed. | |
5086 | * c-common.def (ARRAY_NOTATION_REF): New tree. | |
5087 | * c-common.h (build_array_notation_expr): New function declaration. | |
5088 | (build_array_notation_ref): Likewise. | |
5089 | (extract_sec_implicit_index_arg): New extern declaration. | |
5090 | (is_sec_implicit_index_fn): Likewise. | |
5091 | (ARRAY_NOTATION_CHECK): New define. | |
5092 | (ARRAY_NOTATION_ARRAY): Likewise. | |
5093 | (ARRAY_NOTATION_START): Likewise. | |
5094 | (ARRAY_NOTATION_LENGTH): Likewise. | |
5095 | (ARRAY_NOTATION_STRIDE): Likewise. | |
5096 | * c-pretty-print.c (pp_c_postifix_expression): Added a new case for | |
5097 | ARRAY_NOTATION_REF. | |
5098 | (pp_c_expression): Likewise. | |
5099 | * c.opt (flag_enable_cilkplus): New flag. | |
5100 | * array-notation-common.c: New file. | |
5101 | ||
f7716d57 JJ |
5102 | 2013-05-14 Jakub Jelinek <jakub@redhat.com> |
5103 | ||
5104 | PR c++/57274 | |
5105 | * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR. | |
5106 | ||
a5e0cd1d MG |
5107 | 2013-05-10 Marc Glisse <marc.glisse@inria.fr> |
5108 | ||
5109 | * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for | |
5110 | vectors. | |
5111 | ||
f6bc1c4a HS |
5112 | 2013-05-07 Han Shen <shenhan@google.com> |
5113 | ||
5114 | * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3". | |
5115 | ||
3f12f6e9 SKS |
5116 | 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
5117 | ||
5118 | * c-common.c (check_user_alignment): Emit error for negative values. | |
5119 | ||
61949153 PC |
5120 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
5121 | ||
5122 | * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y. | |
5123 | ||
e93e18e9 PC |
5124 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
5125 | ||
5126 | * c-cppbuiltin.c (c_cpp_builtins): Do not define | |
5127 | __GXX_EXPERIMENTAL_CXX1Y__. | |
5128 | ||
44d90fe1 | 5129 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
8e745a17 | 5130 | Manuel Lopez-Ibanez <manu@gcc.gnu.org> |
44d90fe1 PC |
5131 | |
5132 | * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented. | |
5133 | * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns | |
5134 | to simply use OPT_Wpointer_arith. | |
5135 | (c_sizeof_or_alignof_type): Likewise. | |
5136 | ||
13f39b2e PC |
5137 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
5138 | ||
5139 | * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__. | |
5140 | ||
4b84d650 JJ |
5141 | 2013-04-12 Jakub Jelinek <jakub@redhat.com> |
5142 | ||
5143 | * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table, | |
5144 | gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format | |
5145 | specifiers. | |
5146 | ||
fb037b5d SB |
5147 | 2013-04-07 Steven Bosscher <steven@gcc.gnu.org> |
5148 | ||
5149 | * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment. | |
5150 | ||
4e856798 PC |
5151 | 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com> |
5152 | ||
5153 | * c-common.c (pointer_int_sum): Remove dead code. | |
5154 | ||
4b1baac8 RS |
5155 | 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com> |
5156 | ||
5157 | PR middle-end/56524 | |
5158 | * c-common.c (handle_optimize_attribute): Don't call | |
5159 | save_optabs_if_changed. | |
5160 | ||
0b50e654 JJ |
5161 | 2013-03-05 Jakub Jelinek <jakub@redhat.com> |
5162 | ||
5163 | PR middle-end/56461 | |
5164 | * c-pch.c (pch_init): Free target_validity at the end. | |
5165 | ||
48c41403 JJ |
5166 | 2013-03-04 Jakub Jelinek <jakub@redhat.com> |
5167 | ||
5168 | * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags. | |
5169 | ||
e664c61c KS |
5170 | 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com> |
5171 | Jakub Jelinek <jakub@redhat.com> | |
5172 | ||
5173 | PR sanitizer/56454 | |
5174 | * c-common.c (handle_no_sanitize_address_attribute): New function. | |
5175 | (c_common_attribute_table): Add no_sanitize_address attribute. | |
5176 | (handle_no_address_safety_analysis_attribute): Add | |
5177 | no_sanitize_address attribute, not no_address_safety_analysis | |
5178 | attribute. | |
5179 | ||
a475fd3d | 5180 | 2013-02-18 Aldy Hernandez <aldyh@redhat.com> |
135204dd AH |
5181 | |
5182 | PR target/52555 | |
5183 | * c-common.c (handle_optimize_attribute): Call | |
5184 | save_optabs_if_changed. | |
5185 | ||
f6007d99 JJ |
5186 | 2013-02-18 Jakub Jelinek <jakub@redhat.com> |
5187 | Steven Bosscher <steven@gcc.gnu.org> | |
5188 | ||
5189 | PR pch/54117 | |
5190 | * c-opts.c (c_common_post_options): If debug info is enabled | |
5191 | and non-dwarf*, refuse to load PCH files and when writing PCH | |
5192 | file warn. | |
5193 | ||
cf35e2b1 JJ |
5194 | 2013-02-05 Jakub Jelinek <jakub@redhat.com> |
5195 | ||
5196 | PR middle-end/56167 | |
5197 | * c-common.c (handle_error_attribute): Fix condition. | |
5198 | ||
32887460 JJ |
5199 | 2013-01-30 Jakub Jelinek <jakub@redhat.com> |
5200 | ||
5201 | PR c++/55742 | |
5202 | * c-common.c (handle_target_attribute): Revert 2012-12-26 change. | |
5203 | ||
5af057d8 JM |
5204 | 2013-01-18 Jason Merrill <jason@redhat.com> |
5205 | ||
5206 | PR target/54908 | |
5207 | * c.opt (-fextern-tls-init): New. | |
5208 | * c-opts.c (c_common_post_options): Handle it. | |
5209 | ||
cc83c823 JJ |
5210 | 2013-01-09 Jakub Jelinek <jakub@redhat.com> |
5211 | ||
5212 | PR c/48418 | |
5213 | * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and | |
5214 | RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST | |
5215 | and is either negative or bigger or equal to type precision | |
5216 | of the first operand. | |
5217 | ||
a859517f MP |
5218 | 2012-12-03 Marek Polacek <polacek@redhat.com> |
5219 | ||
5220 | PR c/55570 | |
5221 | * c-common.c (check_user_alignment): Swap order of tests, | |
5222 | check TREE_CODE first. | |
5223 | ||
2d7aa578 ESR |
5224 | 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net> |
5225 | ||
5226 | PR c++/52654 | |
5227 | * c-common.h (overflow_type): New enum. | |
5228 | (build_userdef_literal): Add overflow_type argument. | |
5229 | (tree_userdef_literal): Add overflow_type. | |
5230 | (USERDEF_LITERAL_OVERFLOW): New access macro. | |
5231 | * c-common.c (build_userdef_literal): Add overflow_type | |
5232 | argument. | |
5233 | * c-lex.c (c_lex_with_flags): Add overflow_type to | |
5234 | build_userdef_literal calls. | |
5235 | (interpret_integer, interpret_float): Add overflow_type argument. | |
5236 | ||
cc3c4f62 RB |
5237 | 2012-11-28 Richard Biener <rguenther@suse.de> |
5238 | ||
5239 | PR c/35634 | |
5240 | * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions | |
5241 | here and use a type with proper overflow behavior for types that would | |
5242 | need to be promoted for the arithmetic. | |
5243 | ||
77bc5132 JJ |
5244 | 2012-11-23 Jakub Jelinek <jakub@redhat.com> |
5245 | ||
5246 | PR sanitizer/55435 | |
5247 | * c-common.c (handle_no_address_safety_analysis_attribute): New | |
5248 | function. | |
5249 | (c_common_attribute_table): Add no_address_safety_analysis. | |
5250 | ||
5dc99c46 SB |
5251 | 2012-11-16 Simon Baldwin <simonb@google.com> |
5252 | ||
5253 | * c.opt: Add f[no-]canonical-system-headers. | |
5254 | * c-opts.c (c_common_handle_option): Handle | |
5255 | OPT_fcanonical_system_headers. | |
5256 | ||
a4a0016d ESR |
5257 | 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net> |
5258 | ||
5259 | PR c++/54413 | |
5260 | * c-opts.c (c_common_handle_option): Set new flags. | |
5261 | * c.opt: Describe new flags. | |
5262 | ||
7dbb85a7 JM |
5263 | 2012-11-09 Jason Merrill <jason@redhat.com> |
5264 | ||
5265 | * c.opt (Wabi-tag): New. | |
5266 | ||
ad7bac31 AK |
5267 | 2012-11-09 Andi Kleen <ak@linux.intel.com> |
5268 | ||
5269 | PR 55139 | |
5270 | * c-common.c (get_atomic_generic_size): Mask with | |
8e745a17 | 5271 | MEMMODEL_MASK |
ad7bac31 | 5272 | |
7332899a MLI |
5273 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5274 | ||
5275 | PR c/53063 | |
5276 | * c.opt (Wformat): Make it Alias Wformat=1. | |
5277 | (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral, | |
5278 | Wformat-security,Wformat-y2k,Wformat-zero-length): Use | |
5279 | LangEnabledBy. | |
5280 | (Wformat=): RejectNegative. Use LangEnabledBy. | |
5281 | (Wnonnull): Use LangEnabledBy. | |
5282 | * c-opts.c (c_common_handle_option): Do not handle Wformat here. | |
5283 | * c-format.c (set_Wformat): Delete. | |
5284 | (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_. | |
8e745a17 JJ |
5285 | (maybe_read_dollar_number): Likewise. |
5286 | (avoid_dollar_number): Likewise. | |
5287 | (finish_dollar_format_checking): Likewise. | |
5288 | (check_format_info): Likewise. | |
5289 | (check_format_info_main): Likewise. | |
5290 | (check_format_types): Likewise. | |
5291 | (format_type_warning): Likewise. | |
5292 | * c-common.c (int): Likewise. | |
5293 | (check_function_sentinel): Likewise. | |
5294 | * c-common.h (warn_format,set_Wformat): Do not declare here. | |
7332899a | 5295 | |
34a180a6 MLI |
5296 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5297 | ||
5298 | PR c/53063 | |
5299 | * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare, | |
5300 | Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros): | |
5301 | Use LangEnabledBy. | |
5302 | (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from | |
5303 | common.opt. | |
5304 | (Wvariadic-macros): Init(1). | |
5305 | * c-opts.c (c_common_handle_option): Do not handle them | |
5306 | explicitly. | |
5307 | (c_common_post_options): Likewise. | |
5308 | (sanitize_cpp_opts): warn_unused_macros is now | |
5309 | cpp_warn_unused_macros. | |
5310 | (push_command_line_include): Likewise. | |
5311 | * c-common.c (warn_unknown_pragmas): Do not define. | |
5312 | * c-common.h (warn_unknown_pragmas): Do not declare. | |
5313 | ||
3f46d6a5 MLI |
5314 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5315 | ||
5316 | PR c/51294 | |
5317 | * c-common.c (conversion_warning): Handle conditional expressions. | |
5318 | ||
880661a4 JW |
5319 | 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com> |
5320 | ||
5321 | PR c++/54930 | |
5322 | * c.opt (Wreturn_local_addr): Define new option. | |
5323 | ||
4514a96b JM |
5324 | 2012-10-25 Jason Merrill <jason@redhat.com> |
5325 | ||
f14edc1a JM |
5326 | * c.opt (Wvirtual-move-assign): New. |
5327 | ||
4514a96b JM |
5328 | * c.opt (Winherited-variadic-ctor): New. |
5329 | ||
93100c6b MG |
5330 | 2012-10-25 Marc Glisse <marc.glisse@inria.fr> |
5331 | ||
5332 | PR c++/54427 | |
5333 | * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR. | |
5334 | ||
1efcb8c6 JM |
5335 | 2012-10-23 Joseph Myers <joseph@codesourcery.com> |
5336 | ||
5337 | * c-common.h (pch_cpp_save_state): Declare. | |
5338 | * c-target.def (c_preinclude): New hook. | |
5339 | * c-opts.c (done_preinclude): New. | |
5340 | (push_command_line_include): Handle default preincluded header. | |
5341 | (cb_file_change): Call pch_cpp_save_state when calling | |
5342 | push_command_line_include. | |
5343 | * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved) | |
5344 | (pch_cpp_save_state): New. | |
5345 | (pch_init): Call pch_cpp_save_state conditionally, instead of | |
5346 | calling cpp_save_state. | |
5347 | ||
4a0ae68e MLI |
5348 | 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5349 | ||
5350 | PR c/53063 | |
5351 | PR c/40989 | |
5352 | * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit, | |
5353 | Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess, | |
5354 | Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point, | |
5355 | Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused, | |
5356 | Wvolatile-register-var): Add LangEnabledBy or EnabledBy. | |
5357 | * c-opts.c (c_common_handle_option): Remove explicit handling from | |
5358 | here. | |
5359 | (c_common_post_options): Likewise. | |
5360 | ||
67e4210b EB |
5361 | 2012-10-18 Eric Botcazou <ebotcazou@adacore.com> |
5362 | ||
5363 | * c-ada-spec.c (LOCATION_COL): Delete. | |
5364 | (compare_location): New function. | |
5365 | (compare_node): Use it. | |
5366 | (compare_comment): Likewise. | |
5367 | ||
65d4f2cd MLI |
5368 | 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5369 | ||
5370 | PR c/53063 | |
5371 | PR c/40989 | |
5372 | * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy. | |
5373 | * c-opts.c (c_common_handle_option): Do not set them here. Add | |
5374 | comment. | |
5375 | (c_common_post_options): Likewise. | |
5376 | ||
909881cb EB |
5377 | 2012-10-16 Eric Botcazou <ebotcazou@adacore.com> |
5378 | ||
5379 | * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define. | |
5380 | (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially. | |
5381 | Remove POINTER_TYPE handling, add large unsigned handling and use | |
5382 | ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers. | |
5383 | ||
3a785c97 JJ |
5384 | 2012-10-12 Jakub Jelinek <jakub@redhat.com> |
5385 | ||
5386 | PR c/54381 | |
5387 | * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype. | |
5388 | * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3 | |
5389 | locs and array of 3 trees instead of just single loc and single | |
5390 | sizeof_arg tree. Handle __builtin___*_chk builtins too, and | |
5391 | also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins. | |
5392 | For *cmp* builtins that take two sources strings report warnings | |
5393 | about first and second source, not about destination and source. | |
5394 | ||
5e54f81d MG |
5395 | 2012-10-12 Marc Glisse <marc.glisse@inria.fr> |
5396 | ||
5397 | PR c++/53055 | |
5398 | * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New. | |
5399 | ||
f5b02f1e EB |
5400 | 2012-10-11 Eric Botcazou <ebotcazou@adacore.com> |
5401 | ||
5402 | * c-ada-spec.c (dump_ada_template): Bail out for template declarations | |
5403 | declaring something coming from another file. | |
5404 | ||
b46dbc6c AC |
5405 | 2012-10-10 Arnaud Charlet <charlet@adacore.com> |
5406 | ||
f5b02f1e | 5407 | PR ada/54845 |
b46dbc6c AC |
5408 | * c-ada-spec.c (print_ada_struct_decl): Increase buf size. |
5409 | ||
5d9de0d0 PC |
5410 | 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com> |
5411 | ||
5412 | PR c++/54194 | |
5413 | * c-common.c (warn_about_parentheses): Add location_t parameter; | |
5414 | use EXPR_LOC_OR_LOC. | |
5415 | * c-common.h: Update declaration. | |
5416 | ||
a212e43f MG |
5417 | 2012-10-09 Marc Glisse <marc.glisse@inria.fr> |
5418 | ||
5419 | PR c++/54427 | |
5420 | * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support | |
5421 | more operations. Make error messages optional. | |
5422 | * c-common.h (enum stv_conv): Moved from c-typeck.c. | |
5423 | (scalar_to_vector): Declare. | |
5424 | ||
b1db7f91 JM |
5425 | 2012-10-08 Jason Merrill <jason@redhat.com> |
5426 | ||
5427 | * c-common.c (c_common_reswords): Add thread_local. | |
5428 | ||
e28d52cf DS |
5429 | 2012-10-08 Dodji Seketeli <dodji@redhat.com> |
5430 | ||
5431 | PR c++/53528 C++11 attribute support | |
5432 | * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare | |
5433 | new functions. | |
5434 | * c-common.c (check_cxx_fundamental_alignment_constraints): New | |
5435 | static function. | |
5436 | (handle_aligned_attribute): In choose strictest alignment | |
5437 | among many. Use new check_cxx_fundamental_alignment_constraints. | |
5438 | (handle_transparent_union_attribute): In c++11 attribute syntax, | |
5439 | don't look through typedefs. | |
5440 | ||
3b78de56 AC |
5441 | 2012-10-04 Arnaud Charlet <charlet@adacore.com> |
5442 | ||
5443 | * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW. | |
5444 | * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition | |
5445 | out of dumpfile.h. | |
5446 | ||
6040bb5f DC |
5447 | 2012-09-25 Dehao Chen <dehao@google.com> |
5448 | ||
5449 | PR middle-end/54645 | |
3b78de56 | 5450 | * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data |
6040bb5f DC |
5451 | map when read in the pch. |
5452 | ||
3f8257db | 5453 | 2012-09-18 Arnaud Charlet <charlet@adacore.com> |
0b07a57e AC |
5454 | |
5455 | * c-ada-spec.c: Style fixes. | |
5456 | ||
3f8257db | 5457 | 2012-09-18 Thomas Quinot <quinot@adacore.com> |
da5182be TQ |
5458 | |
5459 | * c.opt (-fada-spec-parent): Define new command line switch. | |
5460 | * c-ada-spec.c (get_ada_package): When -fada-spec-parent | |
5461 | is specified, generate binding spec as a child of the specified unit. | |
5462 | ||
0ccb505d PC |
5463 | 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com> |
5464 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
5465 | ||
5466 | PR c++/53210 | |
5467 | * c.opt ([Winit-self]): Enabled by -Wall in C++. | |
5468 | ||
c583af79 AC |
5469 | 2012-08-23 Arnaud Charlet <charlet@adacore.com> |
5470 | ||
5471 | * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only | |
5472 | for pointers, and add missing Convention C pragma. | |
5473 | (print_ada_struct_decl): Add missing aliased keyword. | |
5474 | (dump_ads): Add pragma Ada_2005 and Style_Checks (Off). | |
5475 | ||
1a4049e7 JJ |
5476 | 2012-08-17 Jakub Jelinek <jakub@redhat.com> |
5477 | ||
5478 | * c-common.c (sizeof_pointer_memaccess_warning): New function. | |
5479 | * c.opt (-Wsizeof-pointer-memaccess): Add new option. | |
5480 | * c-opts.c (c_common_handle_option): Enable it for -Wall. | |
5481 | * c-common.h (sizeof_pointer_memaccess_warning): Add prototype. | |
5482 | * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def. | |
5483 | ||
70b5e7dc RG |
5484 | 2012-08-10 Richard Guenther <rguenther@suse.de> |
5485 | ||
5486 | * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names. | |
5487 | ||
f8923f7e SB |
5488 | 2012-08-07 Steven Bosscher <steven@gcc.gnu.org> |
5489 | ||
5490 | * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush | |
5491 | instead of separate pp_newline and pp_flush. | |
5492 | (print_c_tree): Likewise. | |
5493 | ||
e45abe1f RH |
5494 | 2012-07-26 Richard Henderson <rth@redhat.com> |
5495 | ||
5496 | * c-common.c (handle_hot_attribute): Allow labels. | |
5497 | (handle_cold_attribute): Likewise. | |
5498 | ||
332f1d24 JJ |
5499 | 2012-07-20 Jakub Jelinek <jakub@redhat.com> |
5500 | ||
5501 | PR c++/28656 | |
5502 | * c-common.c (check_function_nonnull): Handle multiple nonnull | |
5503 | attributes properly. | |
5504 | ||
7ee2468b SB |
5505 | 2012-07-16 Steven Bosscher <steven@gcc.gnu.org> |
5506 | ||
5507 | * c-gimplify.c: Include dumpfile.h instead of tree-dump.h. | |
5508 | * c-ada-spec.c: Likewise. | |
5509 | * c-dump.c (dump_stmt): Move to cp/dump.c, the only user. | |
5510 | ||
ee7b28eb SB |
5511 | 2012-07-14 Steven Bosscher <steven@gcc.gnu.org> |
5512 | ||
5513 | * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define. | |
5514 | Remove code conditional on it. | |
5515 | ||
6bdf3519 SB |
5516 | 2012-07-11 Steven Bosscher <steven@gcc.gnu.org> |
5517 | ||
5518 | * c-gimplify.c: Do not include basic-block.h. | |
5519 | * c-common.c: Do not include linfuncs.h. | |
5520 | ||
532aafad SB |
5521 | 2012-07-08 Steven Bosscher <steven@gcc.gnu.org> |
5522 | ||
5523 | * c-common.h: Include tree.h. | |
5524 | ||
8d0d1915 JM |
5525 | 2012-07-02 Jason Merrill <jason@redhat.com> |
5526 | ||
5527 | PR c++/53524 | |
5528 | * c-common.c (get_priority): Call default_conversion. | |
5529 | ||
fbc873ad UB |
5530 | 2012-07-01 Uros Bizjak <ubizjak@gmail.com> |
5531 | ||
5532 | * c-pch.c (c_common_write_pch): Remove unused variables. | |
5533 | ||
d4a10d0a SB |
5534 | 2012-06-29 Steven Bosscher <steven@gcc.gnu.org> |
5535 | ||
5536 | * cppspec.c: Moved from gcc/ to here. | |
5537 | ||
6f3a2e23 KT |
5538 | 2012-06-27 Kai Tietz <ktietz@redhat.com> |
5539 | ||
5540 | PR preprocessor/37215 | |
5541 | * c-ppoutput.c (preprocess_file): Check for nonempty buffer. | |
5542 | ||
8ca92d04 SB |
5543 | 2012-06-21 Steven Bosscher <steven@gcc.gnu.org> |
5544 | ||
5545 | * c-common.h (c_common_print_pch_checksum): Remove. | |
5546 | * c-pch.c: Do not include output.h. | |
5547 | (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME. | |
5548 | (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined. | |
5549 | (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined. | |
5550 | (struct c_pch_header): Remove. | |
5551 | (get_ident): Update gpch version. | |
5552 | (pch_init): Do not print executable_checksum to asm_out_file. | |
5553 | Do not fail if there is no asm_out_file to read back from. Set | |
5554 | asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined. | |
5555 | (c_common_write_pch): Verify that nothing was written to asm_out_file | |
5556 | since pch_init was called. Do not write a c_pch_header, and do not | |
5557 | copy from asm_out_file to the PCH. | |
5558 | (c_common_read_pch): Do not read a c_pch_header, and do not restore | |
5559 | the content of asm_out_file from the PCH. | |
5560 | (c_common_print_pch_checksum): Remove. | |
5561 | * c-opts.c (c_common_init): Print out executable_checksum directly. | |
5562 | ||
70f42967 SB |
5563 | 2012-06-19 Steven Bosscher <steven@gcc.gnu.org> |
5564 | ||
5565 | * c-target.def (objc_declare_unresolved_class_reference, | |
5566 | objc_declare_class_definition): Add new hooks. | |
5567 | ||
a8781821 SB |
5568 | 2012-06-19 Steven Bosscher <steven@gcc.gnu.org> |
5569 | ||
5570 | * c-lex.c: Do not include output.h. | |
5571 | (cb_ident): Try to put out .ident with targetm.asm_out.output_ident. | |
5572 | Remove uses of ASM_OUTPUT_IDENT. | |
5573 | ||
9e1a8dd1 RR |
5574 | 2012-06-15 Marc Glisse <marc.glisse@inria.fr> |
5575 | ||
5576 | PR c++/51033 | |
5577 | * c-common.h (c_build_vec_perm_expr): Move decl here. | |
5578 | * c-common.c (c_build_vec_perm_expr): Move definition | |
5579 | here. | |
5580 | ||
6f07a821 SB |
5581 | 2012-06-06 Steven Bosscher <steven@gcc.gnu.org> |
5582 | ||
5583 | * c.opt (fconserve-space): Turn into a no-op. | |
5584 | ||
9faeb493 | 5585 | 2012-06-04 Sterling Augustine <saugustine@google.com> |
c265f413 SA |
5586 | |
5587 | * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator. | |
5588 | * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at | |
5589 | both the start and end of the function. | |
5590 | ||
a4b7d13c SB |
5591 | 2012-06-04 Steven Bosscher <steven@gcc.gnu.org> |
5592 | ||
5593 | * c-common.c: Do not include output.h. | |
5594 | * c-pragma.c: Likewise. | |
5595 | ||
c265f413 SA |
5596 | 2012-06-04 Steven Bosscher <steven@gcc.gnu.org> |
5597 | ||
5598 | * error.c (dump_decl): Check pp_c_flag_gnu_v3. | |
5599 | (decl_as_dwarf_string, lang_decl_dwarf_name): New functions. | |
5600 | (lang_decl_name): Handle namespace decls. | |
5601 | ||
be7a421e SB |
5602 | 2012-05-31 Steven Bosscher <steven@gcc.gnu.org> |
5603 | ||
5604 | * c-ada-spec.c: Do not include output.h. | |
5605 | * c-semantics.c: Likewise. | |
5606 | ||
65de6659 JM |
5607 | 2012-05-29 Joseph Myers <joseph@codesourcery.com> |
5608 | ||
5609 | * c-common.c: Fix typo. | |
5610 | ||
ca5f4331 MM |
5611 | 2012-05-29 Michael Matz <matz@suse.de> |
5612 | ||
5613 | * c-common.h (c_expand_decl): Remove prototype. | |
5614 | ||
4f7f7aca MLI |
5615 | 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5616 | ||
5617 | * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall). | |
5618 | * c-opts.c (c_common_handle_option): Remove code handling | |
5619 | warn_missing_braces. | |
5620 | ||
4a792f9b PC |
5621 | 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com> |
5622 | ||
5623 | PR c++/25137 | |
5624 | * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable | |
5625 | -Wmissing_braces. | |
5626 | ||
650dc14a DS |
5627 | 2012-05-22 Dodji Seketeli <dodji@redhat.com> |
5628 | ||
5629 | PR c++/53322 | |
5630 | * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused). | |
5631 | ||
9b095bf1 MLI |
5632 | 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5633 | ||
5634 | * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here. | |
5635 | * c-opts.c (c_common_handle_option): Do not handle explicitly | |
5636 | Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors. | |
5637 | ||
0b2c4be5 DS |
5638 | 2012-05-16 Dodji Seketeli <dodji@redhat.com> |
5639 | ||
5640 | PR preprocessor/7263 | |
5641 | * c-lex.c (c_lex_with_flags): Pass a virtual location to the call | |
5642 | to cpp_classify_number. For diagnostics, use the precise location | |
5643 | instead of the global input_location. | |
5644 | ||
a1bde5af PC |
5645 | 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com> |
5646 | ||
d02924ef | 5647 | PR c++/11856 |
a1bde5af PC |
5648 | * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings. |
5649 | ||
d1ede5f4 BS |
5650 | 2012-05-14 Bernd Schmidt <bernds@codesourcery.com> |
5651 | ||
a1bde5af | 5652 | * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary. |
d1ede5f4 | 5653 | |
f2bc201f MLI |
5654 | 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5655 | ||
5656 | PR 53063 | |
5657 | * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init, | |
5658 | Wreorder): Use LangEnabledBy. | |
5659 | * c-opts.c (c_common_handle_option): Do not enable them | |
5660 | explicitly. Call lang-specific generated functions. | |
5661 | (c_common_post_options): Do not set them here. | |
5662 | ||
95744782 MLI |
5663 | 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5664 | ||
5665 | * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers, | |
5666 | Wmissing-field-initializers,Wmissing-parameter-type, | |
5667 | Wold-style-declaration,Woverride-init): Use EnabledBy. | |
5668 | * c-opts.c (c_common_post_options): Do not set here explicitly. | |
5669 | ||
7d5a5747 MLI |
5670 | 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5671 | ||
5672 | PR 53063 | |
5673 | * c-opts.c (c_common_handle_option): Use handle_generated_option | |
5674 | to enable sub-options. | |
5675 | ||
5a3c9cf2 PC |
5676 | 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com> |
5677 | ||
5678 | PR c++/53158 | |
5679 | * c-common.c (warnings_for_convert_and_check): Use warning_at. | |
5680 | ||
3ac8781c RG |
5681 | 2012-05-10 Richard Guenther <rguenther@suse.de> |
5682 | ||
5683 | * c-common.c (c_sizeof_or_alignof_type): Remove assert and | |
5684 | adjust commentary about TYPE_IS_SIZETYPE types. | |
5685 | ||
1e537948 MLI |
5686 | 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5687 | ||
5688 | PR c++/53261 | |
5689 | * c-common.c (warn_logical_operator): Check that argument of | |
5690 | integer_zerop is not NULL. | |
5691 | ||
f2c4a785 MLI |
5692 | 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5693 | ||
5694 | PR c/43772 | |
5695 | * c-common.c (warn_logical_operator): Do not warn if either side | |
5696 | is already true or false. | |
5697 | ||
50f305ca MLI |
5698 | 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5699 | ||
5700 | PR c/51712 | |
5701 | * c-common.c (expr_original_type): New. | |
5702 | (shorten_compare): Do not warn for enumeration types. | |
5703 | ||
0c3641b0 MLI |
5704 | 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5705 | ||
5706 | * c.opt (fpermissive): Add Var(flag_permissive). | |
5707 | ||
7edaa4d2 MG |
5708 | 2012-04-30 Marc Glisse <marc.glisse@inria.fr> |
5709 | ||
5710 | PR c++/51033 | |
5711 | * c-common.c (convert_vector_to_pointer_for_subscript): New function. | |
5712 | * c-common.h (convert_vector_to_pointer_for_subscript): Declare it. | |
5713 | ||
b9c8da34 DS |
5714 | 2012-04-30 Dodji Seketeli <dodji@redhat.com> |
5715 | ||
5716 | Add -Wvarargs option | |
5717 | * c.opt (Wvarargs): Define new option. | |
5718 | ||
e6c69da0 MLI |
5719 | 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5720 | ||
5721 | * c-common.c (check_function_arguments): Replace | |
5722 | Wmissing-format-attribute with Wsuggest-attribute=format. | |
5723 | ||
90137d8f MLI |
5724 | 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5725 | ||
5726 | * c.opt (Wsuggest-attribute=format): New. Alias of | |
5727 | Wmissing-format-attribute. | |
5728 | * c-format.c (decode_format_type): Replace | |
5729 | Wmissing-format-attribute with Wsuggest-attribute=format. | |
5730 | (check_function_format): Likewise. | |
5731 | ||
9faeb493 | 5732 | 2012-04-27 Ollie Wild <aaw@google.com> |
7f5f5f98 OW |
5733 | |
5734 | * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping. | |
5735 | * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix. | |
5736 | * c.opt: Add Wliteral-suffix. | |
5737 | ||
c1771a20 MLI |
5738 | 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5739 | ||
5740 | PR c/44774 | |
5741 | * c.opt (Wpedantic): New. | |
5742 | (pedantic): Alias Wpedantic. | |
5743 | * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic. | |
5744 | (c_common_post_options): Likewise. | |
5745 | (sanitize_cpp_opts): Likewise. | |
5746 | * c-lex.c (interpret_float): Likewise. | |
5747 | * c-format.c (check_format_types): Likewise. | |
5748 | * c-common.c (pointer_int_sum): Likewise. | |
5749 | (c_sizeof_or_alignof_type): Likewise. | |
5750 | (c_add_case_label): Likewise. | |
5751 | (c_do_switch_warnings): Likewise. | |
5752 | * c-pragma.c (handle_pragma_float_const_decimal64): Likewise. | |
5753 | ||
04b391c1 JM |
5754 | 2012-04-15 Jason Merrill <jason@redhat.com> |
5755 | ||
5756 | PR c++/52818 | |
5757 | * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99. | |
5758 | (C_STD_NAME): Distinguish between C++98 and C++11. | |
5759 | ||
ac868f29 EB |
5760 | 2012-04-11 Eric Botcazou <ebotcazou@adacore.com> |
5761 | ||
5762 | PR target/52624 | |
5763 | * c-common.h (uint16_type_node): Rename into... | |
5764 | (c_uint16_type_node): ...this. | |
5765 | * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming. | |
5766 | * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise. | |
5767 | ||
fd4116f4 MLI |
5768 | 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5769 | ||
5770 | * c-common.c (warn_if_unused_value): Move definition to here. | |
5771 | * c-common.h (warn_if_unused_value): Move declaration to here. | |
5772 | ||
573ac65e WB |
5773 | 2012-03-23 William Bader <williambader@hotmail.com> |
5774 | ||
5775 | * c-lex.c (c_lex_with_flags): Avoid declarations after stmts. | |
5776 | ||
552b8185 JM |
5777 | 2012-03-20 Jason Merrill <jason@redhat.com> |
5778 | ||
5779 | * c-common.h (enum cxx_dialect): Add cxx1y. | |
5780 | * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect | |
5781 | test. | |
5782 | * c-cppbuiltin.c (c_cpp_builtins): Likewise. | |
5783 | * c-opts.c (c_common_post_options): Likewise. | |
5784 | (set_std_cxx1y): New. | |
5785 | (c_common_handle_option): Call it. | |
5786 | * c.opt (-std=c++1y, -std=gnu++1y): New flags. | |
5787 | ||
04398fa8 PC |
5788 | 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com> |
5789 | ||
5790 | PR c++/14710 | |
5791 | * c.opt ([Wuseless-cast]): Add. | |
5792 | ||
d2a12ae7 RG |
5793 | 2012-03-16 Richard Guenther <rguenther@suse.de> |
5794 | ||
5795 | * c-pretty-print.c (pp_c_initializer_list): Adjust. | |
5796 | ||
a12bf402 MLI |
5797 | 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5798 | ||
5799 | PR c++/44783 | |
5800 | * c.opt (ftemplate-backtrace-limit) Add. | |
5801 | ||
5c30094f RO |
5802 | 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
5803 | ||
5804 | * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix | |
5805 | handling. | |
5806 | * c-pragma.c (handle_pragma_extern_prefix): Remove. | |
5807 | (init_pragma): Don't register extern_prefix. | |
5808 | ||
21fa2faf RG |
5809 | 2012-03-12 Richard Guenther <rguenther@suse.de> |
5810 | ||
5811 | * c-common.c (c_common_get_narrower): Use c_common_type_for_size. | |
5812 | (builtin_type_for_size): Likewise. | |
5813 | ||
e3793c6f JJ |
5814 | 2012-02-13 Jakub Jelinek <jakub@redhat.com> |
5815 | ||
5816 | PR c++/52215 | |
5817 | * c-common.c (sync_resolve_params): Don't decide whether to convert | |
5818 | or not based on TYPE_SIZE comparison, convert whenever arg_type | |
5819 | is unsigned INTEGER_TYPE. | |
5820 | ||
93286335 PC |
5821 | 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com> |
5822 | ||
5823 | PR c/52118 | |
5824 | * c.opt ([Wunused-local-typedefs]): Fix description. | |
5825 | ||
7a421706 MS |
5826 | 2012-01-24 Mike Stump <mikestump@comcast.net> |
5827 | ||
5828 | * c-common.c (c_common_type_for_mode): Match signed/unsigned types | |
5829 | exactly. | |
5830 | ||
ba9b1f11 RG |
5831 | 2012-01-18 Richard Guenther <rguenther@suse.de> |
5832 | ||
5833 | * c-opts.c (c_common_post_options): Reset LTO flags if | |
5834 | we are about to generate a PCH. | |
5835 | ||
465406be PC |
5836 | 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com> |
5837 | ||
5838 | PR c++/51777 | |
5839 | * c-pretty-print.c (pp_c_integer_constant): For unsigned constants | |
5840 | use pp_unsigned_wide_integer. | |
5841 | ||
aee15221 RG |
5842 | 2012-01-10 Richard Guenther <rguenther@suse.de> |
5843 | ||
5844 | PR middle-end/51806 | |
5845 | * c-opts.c (c_common_handle_option): Move -Werror handling | |
5846 | to language independent code. | |
5847 | ||
5720c0dc RG |
5848 | 2012-01-05 Richard Guenther <rguenther@suse.de> |
5849 | ||
5850 | PR middle-end/51764 | |
5851 | * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here | |
5852 | from common.opt. | |
5853 | ||
73ac190a PC |
5854 | 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com> |
5855 | ||
5856 | PR c++/51316 | |
5857 | * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof | |
5858 | of array types with an unknown bound. | |
5859 | ||
48b0b196 JM |
5860 | 2011-12-20 Joseph Myers <joseph@codesourcery.com> |
5861 | ||
5862 | * c-common.c (flag_isoc99): Update comment to refer to C11. | |
5863 | (flag_isoc1x): Change to flag_isoc11. | |
5864 | * c-common.h (flag_isoc99): Update comment to refer to C11. | |
5865 | (flag_isoc1x): Change to flag_isoc11. | |
5866 | * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to | |
5867 | C11. | |
5868 | * c-opts.c (set_std_c1x): Change to set_std_c11. | |
5869 | (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11. | |
5870 | Call set_std_c11. | |
5871 | (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11. | |
5872 | (set_std_c1): Use CLK_STDC11 and CLK_GNUC11. | |
5873 | * c.opt (std=c1x): Change to std=c11. Document as non-draft | |
5874 | standard. | |
5875 | (std=c1x, std=iso9899:2011): Add as aliases of std=c11. | |
5876 | (std=gnu1x): Change to std=gnu11. Refer to non-draft standard. | |
5877 | (std=gnu1x): Make alias of std=gnu11. | |
5878 | ||
d58d6eb5 JM |
5879 | 2011-12-19 Jason Merrill <jason@redhat.com> |
5880 | ||
5881 | PR c++/51228 | |
5882 | * c-common.c (handle_transparent_union_attribute): Check the first | |
5883 | field if the type is complete. | |
5884 | ||
b3908fcc JW |
5885 | 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com> |
5886 | ||
5887 | PR libstdc++/51365 | |
5888 | * c-common.c (RID_IS_FINAL): Add. | |
5889 | * c-common.h (RID_IS_FINAL): Add. | |
5890 | ||
fea3ca91 IS |
5891 | 2011-11-30 Iain Sandoe <iains@gcc.gnu.org> |
5892 | ||
5893 | * c.opt (fgnu-runtime): Provide full description. | |
5894 | (fnext-runtime): Likewise. | |
5895 | * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove. | |
5896 | ||
62bad7cd AM |
5897 | 2011-11-28 Andrew MacLeod <amacleod@redhat.com> |
5898 | ||
5899 | * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic | |
5900 | predefines in one place. Add LOCK_FREE predefines. | |
5901 | (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to | |
5902 | new func. | |
5903 | ||
c466c4ff AM |
5904 | 2011-11-24 Andrew MacLeod <amacleod@redhat.com> |
5905 | ||
5906 | PR c/51256 | |
9faeb493 | 5907 | * c-common.c (get_atomic_generic_size): Check for various error |
c466c4ff | 5908 | conditions |
9faeb493 UB |
5909 | (resolve_overloaded_atomic_exchange, |
5910 | resolve_overloaded_atomic_compare_exchange, | |
c466c4ff AM |
5911 | resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return |
5912 | error_mark_node for error conditions. | |
9faeb493 | 5913 | |
a5952633 RG |
5914 | 2011-11-08 Richard Guenther <rguenther@suse.de> |
5915 | ||
5916 | PR middle-end/51010 | |
5917 | c-family/ | |
5918 | ||
0a35513e AH |
5919 | 2011-11-07 Richard Henderson <rth@redhat.com> |
5920 | Aldy Hernandez <aldyh@redhat.com> | |
5921 | Torvald Riegel <triegel@redhat.com> | |
5922 | ||
5923 | Merged from transactional-memory. | |
5924 | ||
5925 | * c-common.c (handle_tm_wrap_attribute, | |
5926 | handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New. | |
5927 | (struct c_common_reswords): Added __transaction* keywords. | |
5928 | (struct c_common_attribute_table): Added transaction* and tm_regparm | |
5929 | attributes. | |
5930 | * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT* | |
5931 | masks. | |
5932 | (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr, | |
5933 | find_tm_attribute): Declare. | |
5934 | ||
6d87092d JM |
5935 | 2011-11-07 Jason Merrill <jason@redhat.com> |
5936 | ||
5937 | PR c++/35688 | |
5938 | * c-common.c, c-common.h: Revert yesterday's changes. | |
5939 | ||
8e7860a1 JM |
5940 | 2011-11-06 Jason Merrill <jason@redhat.com> |
5941 | ||
5942 | PR c++/35688 | |
5943 | * c-common.c (decl_has_visibility_attr): Split out from... | |
5944 | (c_determine_visibility): ...here. | |
5945 | * c-common.h: Declare it. | |
5946 | ||
d19fa6b5 JM |
5947 | 2011-11-06 Joseph Myers <joseph@codesourcery.com> |
5948 | ||
5949 | * c-common.c (c_common_reswords): Add _Alignas and _Alignof. | |
5950 | (c_sizeof_or_alignof_type): Diagnose alignof applied to a function | |
5951 | type. | |
5952 | (check_user_alignment): New. Split out of | |
5953 | handle_aligned_attribute. Disallow integer constants with | |
5954 | noninteger types. Conditionally allow zero. | |
5955 | (handle_aligned_attribute): Use check_user_alignment. | |
5956 | * c-common.h (RID_ALIGNAS, check_user_alignment): New. | |
5957 | ||
86951993 AM |
5958 | 2011-11-06 Andrew MacLeod <amacleod@redhat.com> |
5959 | Richard Henderson <rth@redhat.com> | |
5960 | ||
5961 | Merged from cxx-mem-model. | |
5962 | ||
5963 | * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns. | |
9faeb493 | 5964 | * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak |
86951993 AM |
5965 | parameters that are the same type size. |
5966 | (get_atomic_generic_size): New. Find size of generic | |
5967 | atomic function parameters and do typechecking. | |
5968 | (add_atomic_size_parameter): New. Insert size into parameter list. | |
5969 | (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to | |
5970 | either __atomic_exchange_n or external library call. | |
9faeb493 | 5971 | (resolve_overloaded_atomic_compare_exchange): Restructure |
86951993 | 5972 | __atomic_compare_exchange to either _n variant or external library call. |
9faeb493 | 5973 | (resolve_overloaded_atomic_load): Restructure __atomic_load to either |
86951993 AM |
5974 | __atomic_load_n or an external library call. |
5975 | (resolve_overloaded_atomic_store): Restructure __atomic_store to either | |
5976 | __atomic_store_n or an external library call. | |
5977 | (resolve_overloaded_builtin): Handle new __atomic builtins. | |
5978 | ||
cf9e9959 EB |
5979 | 2011-11-04 Eric Botcazou <ebotcazou@adacore.com> |
5980 | ||
5981 | PR c++/50608 | |
5982 | * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1. | |
5983 | (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust. | |
5984 | <INDIRECT_REF>: Return the argument. | |
5985 | <ARRAY_REF>: Remove special code for negative offset. | |
5986 | Call fold_build_pointer_plus instead of size_binop. | |
5987 | (fold_offsetof): Remove STOP_REF argument and adjust. | |
5988 | * c-common.h (fold_offsetof_1): Declare. | |
5989 | (fold_offsetof): Remove STOP_REF argument. | |
5990 | ||
25339f10 JM |
5991 | 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com> |
5992 | ||
5993 | PR c++/50810 | |
5994 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
5995 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
5996 | Wnarrowing for C++0x and C++98. | |
5997 | * c.opt ([Wnarrowing]): Update. | |
5998 | ||
89401152 PC |
5999 | 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com> |
6000 | ||
6001 | PR c++/44277 | |
6002 | * c.opt: Add Wzero-as-null-pointer-constant. | |
6003 | ||
97e3ad20 JM |
6004 | 2011-10-31 Jason Merrill <jason@redhat.com> |
6005 | ||
15694fdd JM |
6006 | * c.opt (-fdeduce-init-list): Off by default. |
6007 | ||
97e3ad20 JM |
6008 | PR c++/50920 |
6009 | * c-common.h (cxx_dialect): Add cxx11 and cxx03. | |
6010 | * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03, | |
6011 | and -Wc++11-compat. | |
6012 | * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x. | |
6013 | ||
fb9120e3 RAV |
6014 | 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov> |
6015 | ||
6016 | PR c++/30066 | |
6017 | * c.opt (fvisibility-inlines-hidden): Description change. | |
6018 | ||
3ce4f9e4 ESR |
6019 | 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net> |
6020 | ||
6021 | Implement C++11 user-defined literals. | |
6022 | * c-common.c (build_userdef_literal): New. | |
6023 | * c-common.def: New tree code. | |
6024 | * c-common.h (tree_userdef_literal): New tree struct and accessors. | |
6025 | * c-lex.c (interpret_float): Add suffix parm. | |
6026 | (c_lex_with_flags): Build literal tokens. | |
6027 | ||
5f53c243 PC |
6028 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> |
6029 | ||
6030 | PR c++/50841 | |
6031 | Revert: | |
6032 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> | |
6033 | ||
6034 | PR c++/50810 | |
6035 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
6036 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
6037 | Wnarrowing for C++0x and C++98. | |
6038 | * c.opt ([Wnarrowing]): Update. | |
6039 | ||
263734e1 PC |
6040 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> |
6041 | ||
6042 | PR c++/50810 | |
6043 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
6044 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
6045 | Wnarrowing for C++0x and C++98. | |
6046 | * c.opt ([Wnarrowing]): Update. | |
6047 | ||
d2e312d7 PC |
6048 | 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com> |
6049 | ||
6050 | PR c++/45385 | |
6051 | * c-common.c (conversion_warning): Remove code looking for | |
6052 | artificial operands. | |
6053 | ||
d17687f6 DS |
6054 | 2011-10-18 Dodji Seketeli <dodji@redhat.com> |
6055 | ||
6056 | PR bootstrap/50760 | |
6057 | * c-lex.c (fe_file_change): Use LINEMAP_SYSP when | |
9faeb493 | 6058 | !NO_IMPLICIT_EXTERN_C. |
d17687f6 | 6059 | |
fc8396e9 PC |
6060 | 2011-10-17 Michael Spertus <mike_spertus@symantec.com> |
6061 | ||
6062 | * c-common.c (c_common_reswords): Add __bases, | |
6063 | __direct_bases. | |
6064 | * c-common.h: Add RID_BASES and RID_DIRECT_BASES. | |
6065 | ||
6066 | 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com> | |
6067 | ||
6068 | PR c++/50757 | |
6069 | * c.opt ([Wnonnull]): Add C++ and Objective-C++. | |
6070 | ||
847e697a TT |
6071 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
6072 | Dodji Seketeli <dodji@redhat.com> | |
6073 | ||
6074 | * c.opt (fdebug-cpp): New option. | |
6075 | * c-opts.c (c_common_handle_option): Handle the option. | |
6076 | * c-ppoutput.c (maybe_print_line_1): New static function. Takes an | |
6077 | output stream in parameter. Factorized from ... | |
6078 | (maybe_print_line): ... this. Dump location debug information when | |
6079 | -fdebug-cpp is in effect. | |
6080 | (print_line_1): New static function. Takes an output stream in | |
6081 | parameter. Factorized from ... | |
6082 | (print_line): ... here. Dump location information when -fdebug-cpp | |
6083 | is in effect. | |
6084 | (scan_translation_unit): Dump location information when | |
6085 | -fdebug-cpp is in effect. | |
6086 | ||
92582b75 TT |
6087 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
6088 | Dodji Seketeli <dodji@redhat.com> | |
6089 | ||
6090 | * c.opt (ftrack-macro-expansion): New option. Handle it with and | |
6091 | without argument. | |
6092 | * c-opts.c (c_common_handle_option)<case | |
6093 | OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New | |
6094 | cases. Handle -ftrack-macro-expansion with and without argument. | |
6095 | ||
46427374 TT |
6096 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
6097 | Dodji Seketeli <dodji@redhat.com> | |
6098 | ||
6099 | * c-ppoutput.c (scan_translation_unit, maybe_print_line) | |
6100 | (print_line, cb_define, do_line_change): Adjust to avoid touching | |
6101 | the internals of struct line_map. Use the public API instead. | |
6102 | * c-pch.c (c_common_read_pch): Likewise. | |
6103 | * c-lex.c (fe_file_change): Likewise. | |
6104 | ||
fc8396e9 PC |
6105 | 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com> |
6106 | ||
6107 | PR c++/17212 | |
6108 | * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++. | |
6109 | ||
6110 | 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com> | |
6111 | ||
6112 | PR c++/33067 | |
6113 | * c-pretty-print.c (pp_c_floating_constant): Output | |
6114 | max_digits10 (in the ISO C++ WG N1822 sense) decimal digits. | |
6115 | ||
e79983f4 MM |
6116 | 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com> |
6117 | ||
6118 | * c-common.c (def_builtin_1): Delete old interface with two | |
6119 | parallel arrays to hold standard builtin declarations, and replace | |
6120 | it with a function based interface that can support creating | |
6121 | builtins on the fly in the future. Change all uses, and poison | |
6122 | the old names. Make sure 0 is not a legitimate builtin index. | |
6123 | * c-omp.c (c_finish_omp_barrier): Ditto. | |
6124 | (c_finish_omp_taskwait): Ditto. | |
6125 | (c_finish_omp_flush): Ditto. | |
6126 | ||
6637388f TG |
6127 | 2011-10-11 Tristan Gingold <gingold@adacore.com> |
6128 | ||
6129 | * c.opt: (fallow-parameterless-variadic-functions): New. | |
6130 | ||
3797cb21 DS |
6131 | 2011-09-08 Dodji Seketeli <dodji@redhat.com> |
6132 | ||
6133 | PR c++/33255 - Support -Wunused-local-typedefs warning | |
6134 | * c-common.h (struct c_language_function::local_typedefs): New | |
6135 | field. | |
9faeb493 UB |
6136 | (record_locally_defined_typedef, maybe_record_typedef_use) |
6137 | (maybe_warn_unused_local_typedefs): Declare new functions. | |
3797cb21 | 6138 | * c-common.c (record_locally_defined_typedef) |
9faeb493 UB |
6139 | (maybe_record_typedef_use) |
6140 | (maybe_warn_unused_local_typedefs): Define new functions. | |
3797cb21 DS |
6141 | * c.opt: Declare new -Wunused-local-typedefs flag. |
6142 | ||
693ddb1b EB |
6143 | 2011-09-06 Eric Botcazou <ebotcazou@adacore.com> |
6144 | ||
6145 | PR middle-end/50266 | |
6146 | * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like | |
6147 | computations. | |
6148 | ||
830c740f RG |
6149 | 2011-09-05 Richard Guenther <rguenther@suse.de> |
6150 | ||
6151 | * c-common.c (complete_array_type): Use ssize_int (-1) instead | |
6152 | of integer_minus_one_node for empty array upper bounds. | |
6153 | ||
892a371f DS |
6154 | 2011-08-28 Dodji Seketeli <dodji@redhat.com> |
6155 | ||
6156 | * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as | |
6157 | it's the first time it's being called on this main TU. | |
6158 | ||
0e3fdb48 RB |
6159 | 2011-08-24 Richard Guenther <rguenther@suse.de> |
6160 | ||
6161 | PR c/49396 | |
6162 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional. | |
6163 | ||
6164 | 2011-08-22 Gabriel Charette <gchare@google.com> | |
e3dfef44 GC |
6165 | |
6166 | * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens | |
6167 | defined in cpp_init_builtins and c_cpp_builtins. | |
6168 | ||
d4a83c10 JM |
6169 | 2011-08-19 Joseph Myers <joseph@codesourcery.com> |
6170 | ||
6171 | * c-common.c (c_common_reswords): Add __builtin_complex. | |
6172 | * c-common.h (RID_BUILTIN_COMPLEX): New. | |
6173 | ||
bbceee64 JM |
6174 | 2011-08-18 Joseph Myers <joseph@codesourcery.com> |
6175 | ||
6176 | * c-common.c (c_common_reswords): Add _Noreturn. | |
6177 | (keyword_is_function_specifier): Handle RID_NORETURN. | |
6178 | * c-common.h (RID_NORETURN): New. | |
6179 | ||
3f8257db | 6180 | 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
0e3a99ae AS |
6181 | |
6182 | * c-common.c (unsafe_conversion_p): New function. Check if it is | |
6183 | unsafe to convert an expression to the type. | |
6184 | (conversion_warning): Adjust, use unsafe_conversion_p. | |
6185 | * c-common.h (unsafe_conversion_p): New function declaration. | |
6186 | ||
20906c66 JJ |
6187 | 2011-08-02 Jakub Jelinek <jakub@redhat.com> |
6188 | ||
6189 | * c-common.h (c_finish_omp_atomic): Adjust prototype. | |
6190 | (c_finish_omp_taskyield): New prototype. | |
6191 | * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1 | |
6192 | arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and | |
6193 | OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1 | |
6194 | or RHS1 have side-effects, evaluate those too in the right spot, | |
6195 | if it is a decl and LHS is also a decl, error out if they | |
6196 | aren't the same. | |
6197 | (c_finish_omp_taskyield): New function. | |
6198 | * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107. | |
6199 | * c-pragma.c (omp_pragmas): Add taskyield. | |
6200 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD. | |
6201 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and | |
6202 | PRAGMA_OMP_CLAUSE_MERGEABLE. | |
6203 | ||
770e5a2e DS |
6204 | 2011-07-25 Dodji Seketeli <dodji@redhat.com> |
6205 | ||
6206 | * c-common.h (set_underlying_type): Remove parm name from | |
6207 | declaration. | |
6208 | ||
1baae426 RG |
6209 | 2011-07-25 Romain Geissler <romain.geissler@gmail.com> |
6210 | ||
6211 | * c-pretty-print.h: Search c-common.h in c-family. | |
9faeb493 | 6212 | |
fcb21722 JM |
6213 | 2011-07-22 Jason Merrill <jason@redhat.com> |
6214 | ||
76f86d00 JM |
6215 | PR c++/49793 |
6216 | * c.opt (Wnarrowing): New. | |
6217 | ||
3a636414 JM |
6218 | PR c++/30112 |
6219 | * c-common.h: Declare c_linkage_bindings. | |
6220 | * c-pragma.c (handle_pragma_redefine_extname): Use it. | |
6221 | ||
fcb21722 JM |
6222 | PR c++/49813 |
6223 | * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99. | |
6224 | * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well | |
6225 | as flag_isoc99 for 'restrict'. | |
6226 | (pp_c_specifier_qualifier_list): Likewise for _Complex. | |
6227 | ||
02614448 ILT |
6228 | 2011-07-21 Ian Lance Taylor <iant@google.com> |
6229 | ||
6230 | PR middle-end/49705 | |
6231 | * c-common.c (c_disable_warnings): New static function. | |
6232 | (c_enable_warnings): New static function. | |
6233 | (c_fully_fold_internal): Change local unused_p to bool. Call | |
6234 | c_disable_warnings and c_enable_warnings rather than change | |
6235 | c_inhibit_evaluation_warnings. | |
6236 | ||
34429675 JM |
6237 | 2011-07-20 Jason Merrill <jason@redhat.com> |
6238 | ||
6239 | PR c++/6709 (DR 743) | |
6240 | PR c++/42603 (DR 950) | |
6241 | * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h. | |
6242 | (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise. | |
6243 | (CPP_DECLTYPE): New. | |
6244 | * c-common.c (c_parse_error): Handle CPP_DECLTYPE. | |
6245 | ||
5d49b6a7 RG |
6246 | 2011-07-19 Richard Guenther <rguenther@suse.de> |
6247 | ||
6248 | * c-common.c (pointer_int_sum): Use fold_build_pointer_plus. | |
6249 | * c-omp.c (c_finish_omp_for): Likewise. | |
6250 | ||
e84a58ff EB |
6251 | 2011-07-12 Eric Botcazou <ebotcazou@adacore.com> |
6252 | ||
6253 | * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop | |
6254 | body on the next line. | |
6255 | ||
329af3c7 JM |
6256 | 2011-07-08 Jason Merrill <jason@redhat.com> |
6257 | ||
4063e61b JM |
6258 | PR c++/45437 |
6259 | * c-omp.c (check_omp_for_incr_expr): Handle preevaluation. | |
6260 | ||
329af3c7 JM |
6261 | PR c++/49673 |
6262 | * c-common.c (c_apply_type_quals_to_decl): Don't check | |
6263 | TYPE_NEEDS_CONSTRUCTING. | |
6264 | ||
1a072294 RG |
6265 | 2011-07-06 Richard Guenther <rguenther@suse.de> |
6266 | ||
6267 | * c-common.c (c_common_nodes_and_builtins): | |
6268 | Merge calls to build_common_tree_nodes and build_common_tree_nodes_2. | |
6269 | ||
fce5dddd RG |
6270 | 2011-07-05 Richard Guenther <rguenther@suse.de> |
6271 | ||
6272 | * c-common.c (c_common_nodes_and_builtins): Build all common | |
6273 | tree nodes first. | |
6274 | ||
45d439ac JJ |
6275 | 2011-06-27 Jakub Jelinek <jakub@redhat.com> |
6276 | ||
56300785 JJ |
6277 | * c-common.h (c_tree_chain_next): New static inline function. |
6278 | ||
45d439ac JJ |
6279 | * c-common.c (check_builtin_function_arguments): Handle |
6280 | BUILT_IN_ASSUME_ALIGNED. | |
6281 | ||
e0a8ecf2 AM |
6282 | 2011-06-21 Andrew MacLeod <amacleod@redhat.com> |
6283 | ||
6284 | * c-common.c: Add sync_ or SYNC__ to builtin names. | |
6285 | * c-omp.c: Add sync_ or SYNC__ to builtin names. | |
dfb43cd5 PV |
6286 | |
6287 | 2011-06-20 Pierre Vittet <piervit@pvittet.com> | |
6288 | ||
6289 | * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New | |
6290 | handler. | |
6291 | (gen_pragma_handler): New union. | |
6292 | (internal_pragma_handler): New type. | |
6293 | (c_register_pragma_with_data) | |
6294 | (c_register_pragma_with_expansion_and_data): New functions. | |
6295 | ||
6296 | * c-pragma.c (registered_pragmas, c_register_pragma_1) | |
6297 | (c_register_pragma, c_register_pragma_with_expansion) | |
6298 | (c_invoke_pragma_handler): Changed to work with | |
6299 | internal_pragma_handler. | |
6300 | (c_register_pragma_with_data) | |
6301 | (c_register_pragma_with_expansion_and_data): New functions. | |
6302 | ||
677f3fa8 JM |
6303 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> |
6304 | ||
6305 | * c-common.c: Include common/common-target.h. | |
6306 | (handle_section_attribute): Use | |
6307 | targetm_common.have_named_sections. | |
6308 | * c-cppbuiltin.c: Include common/common-target.h. | |
6309 | (c_cpp_builtins): Use targetm_common.except_unwind_info. | |
6310 | ||
d7fc8c14 RG |
6311 | 2011-06-10 Richard Guenther <rguenther@suse.de> |
6312 | ||
6313 | * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier | |
6314 | to print a IDENTIFIER_NODE. | |
6315 | ||
10e48e39 RO |
6316 | 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
6317 | Joseph Myers <joseph@codesourcery.com> | |
6318 | ||
6319 | * c.opt (fbuilding-libgcc): New option. | |
6320 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
6321 | __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc. | |
6322 | ||
6976ae51 JM |
6323 | 2011-06-07 Jason Merrill <jason@redhat.com> |
6324 | ||
3ff60975 JM |
6325 | * c-common.c (max_tinst_depth): Lower default to 900. |
6326 | ||
6976ae51 JM |
6327 | * c-format.c (gcc_cxxdiag_char_table): Add 'S' format. |
6328 | ||
009db074 RG |
6329 | 2011-06-07 Richard Guenther <rguenther@suse.de> |
6330 | ||
6331 | * c-common.c (c_common_nodes_and_builtins): Do not set | |
6332 | size_type_node or call set_sizetype. | |
6333 | ||
b4592b92 DS |
6334 | 2011-06-07 Dodji Seketeli <dodji@redhat.com> |
6335 | ||
6336 | PR debug/49130 | |
6337 | * c-pretty-print.c (pp_c_integer_constant): Consider the canonical | |
9faeb493 | 6338 | type when using pointer comparison to compare types. |
b4592b92 | 6339 | |
014ab419 JW |
6340 | 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com> |
6341 | ||
6342 | * c.opt: Add -Wdelete-non-virtual-dtor. | |
6343 | * c-opts.c (c_common_handle_option): Include it in -Wall. | |
6344 | ||
4f60111f NF |
6345 | 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org> |
6346 | ||
6347 | PR bootstrap/49190 | |
6348 | ||
6349 | Revert: | |
6350 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> | |
6351 | ||
6352 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
6353 | not tree_common. | |
6354 | ||
4cc4f2f4 JJ |
6355 | 2011-05-27 Jakub Jelinek <jakub@redhat.com> |
6356 | ||
6357 | PR c++/49165 | |
6358 | * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For | |
6359 | C++ don't call c_common_truthvalue_conversion on void type arms. | |
6360 | ||
38e01f9e NF |
6361 | 2011-05-27 Nathan Froyd <froydnj@codesourcery.com> |
6362 | ||
6363 | * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC. | |
6364 | (stmt_list_stack): Define. | |
6365 | (cur_stmt_list): Adjust for new type of x_cur_stmt_list. | |
6366 | * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise. | |
6367 | ||
92e948a8 NF |
6368 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
6369 | ||
6370 | * c-common.c (warning_candidate_p): Check for BLOCKs. | |
6371 | ||
a2fc3e63 NF |
6372 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
6373 | ||
6374 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
6375 | not tree_common. | |
6376 | ||
0957c029 JJ |
6377 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> |
6378 | ||
6379 | * c-common.c (def_fn_type): Remove extra va_end. | |
6380 | ||
828fb3ba JM |
6381 | 2011-05-23 Jason Merrill <jason@redhat.com> |
6382 | ||
6383 | PR c++/48106 | |
6384 | * c-common.c (c_common_get_narrower): New. | |
6385 | (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it. | |
6386 | ||
dde05067 NF |
6387 | 2011-05-23 Nathan Froyd <froydnj@codesourcery.com> |
6388 | ||
6389 | * c-common.h (check_function_arguments): Tweak prototype of | |
6390 | check_function_arguments. | |
6391 | * c-common.c (check_function_arguments): Likewise. Adjust | |
6392 | calls to check_function_nonnull, check_function_format, and | |
6393 | check_function_sentinel. | |
6394 | (check_function_sentinel): Take a FUNCTION_TYPE rather than | |
6395 | separate attributes and typelist arguments. Use | |
6396 | FOREACH_FUNCTION_ARGS to iterate over argument types. | |
6397 | ||
3c0d13bf PC |
6398 | 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com> |
6399 | ||
6400 | * c-common.c (c_common_reswords): Reorder. | |
6401 | * c-common.h (rid): Likewise. | |
6402 | ||
8242dd04 NF |
6403 | 2011-05-10 Nathan Froyd <froydnj@codesourcery.com> |
6404 | ||
6405 | * c-common.c (def_fn_type): Don't call build_function_type, call | |
6406 | build_function_type_array or build_varargs_function_type_array | |
6407 | instead. | |
6408 | (c_common_nodes_and_builtins): Likewise. | |
6409 | ||
3d528853 NF |
6410 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
6411 | ||
6412 | * c-common.c (c_add_case_label): Omit the loc argument to | |
6413 | build_case_label. | |
6414 | * c-common.h (build_case_label): Remove. | |
6415 | * c-semantics.c (build_case_label): Remove. | |
6416 | ||
a04a722b JM |
6417 | 2011-05-05 Joseph Myers <joseph@codesourcery.com> |
6418 | ||
6419 | * c-objc.h (objc_start_method_definition): Update prototype. | |
6420 | * stub-objc.c (objc_start_method_definition): Add extra parameter. | |
6421 | ||
e19a18d4 NF |
6422 | 2011-05-04 Nathan Froyd <froydnj@codesourcery.com> |
6423 | ||
6424 | * c-common.c (check_main_parameter_types): Reindent. Don't use | |
6425 | TYPE_ARG_TYPES directly. | |
6426 | (handle_nonnull_attribute): Likewise. | |
6427 | (sync_resolve_params): Likewise. | |
6428 | * c-format.c (handle_format_arg_attribute): Likewise. Adjust call | |
6429 | to check_format_string. | |
6430 | (handle_format_attribute): Likewise. | |
6431 | (check_format_string): Take a function type to examine instead of | |
6432 | a type list. Use a function_arg_iterator to step through argument | |
6433 | types. | |
6434 | ||
c62c040f RG |
6435 | 2011-05-04 Richard Guenther <rguenther@suse.de> |
6436 | ||
6437 | * c-common.c (fix_string_type): Use size_int for index type bounds. | |
6438 | (start_fname_decls): Do not pass NULL to build_int_cst. | |
6439 | (c_init_attributes): Likewise. | |
6440 | * c-lex.c (c_lex_with_flags): Likewise. | |
6441 | ||
c12ff9d8 JM |
6442 | 2011-04-27 Jason Merrill <jason@redhat.com> |
6443 | ||
6444 | * c-common.c (make_tree_vector_from_list): New. | |
6445 | * c-common.h: Declare it. | |
6446 | ||
304dfbe3 RG |
6447 | 2011-04-26 Richard Guenther <rguenther@suse.de> |
6448 | ||
6449 | PR preprocessor/48248 | |
6450 | * c-ppoutput.c (maybe_print_line): Always optimize newlines | |
6451 | for output size with -P. | |
6452 | ||
3c0d13bf PC |
6453 | 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com> |
6454 | ||
6455 | * c-common.c (struct c_common_resword): Add __underlying_type. | |
6456 | * c-common.h (enum rid): Add RID_UNDERLYING_TYPE. | |
6457 | ||
04695783 JM |
6458 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
6459 | ||
6460 | * c-format.c (init_dollar_format_checking): Remove useless | |
6461 | if-before-free. | |
6462 | ||
0dc33c3c NP |
6463 | 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com> |
6464 | ||
6465 | * c-objc.h (objc_get_interface_ivars): Removed. | |
3c0d13bf | 6466 | (objc_detect_field_duplicates): New. |
0dc33c3c | 6467 | * stub-objc.c: Likewise. |
3c0d13bf | 6468 | |
c59633d9 NP |
6469 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
6470 | ||
6471 | * stub-objc.c (objc_declare_protocols): Renamed to | |
6472 | objc_declare_protocol. | |
6473 | * c-objc.h: Likewise. | |
3c0d13bf | 6474 | |
32dabdaf NP |
6475 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
6476 | ||
6477 | * stub-objc.c (objc_declare_class): Updated argument name. | |
6478 | ||
81f653d6 NF |
6479 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> |
6480 | ||
6481 | * c-common.h (c_common_init_ts): Declare. | |
6482 | * c-common.c (c_common_init_ts): Define. | |
6483 | ||
eb345401 NP |
6484 | 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com> |
6485 | ||
6486 | * c-objc.h (objc_build_message_expr): Updated prototype. | |
6487 | * stub-objc.c (objc_build_message_expr): Likewise. | |
9faeb493 | 6488 | |
a358e188 MJ |
6489 | 2011-04-12 Martin Jambor <mjambor@suse.cz> |
6490 | ||
6491 | * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead | |
6492 | of cgraph_node. | |
6493 | ||
e6313a78 RG |
6494 | 2011-04-11 Richard Guenther <rguenther@suse.de> |
6495 | ||
6496 | * c-common.c (complete_array_type): Build a range type of | |
6497 | proper type. | |
6498 | ||
dcf0c47e NF |
6499 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> |
6500 | ||
6501 | * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES. | |
6502 | (handle_type_generic_attribute): Likewise. | |
6503 | ||
1ee44b26 JM |
6504 | 2011-04-07 Jason Merrill <jason@redhat.com> |
6505 | ||
6506 | PR c++/48450 | |
6507 | * c-common.c (c_common_truthvalue_conversion): Don't ignore | |
6508 | conversion from C++0x scoped enum. | |
6509 | ||
acce4e77 JM |
6510 | 2011-04-06 Joseph Myers <joseph@codesourcery.com> |
6511 | ||
6512 | * c-target-def.h: New file. | |
6513 | * c-target.def: New file. | |
6514 | * c-target.h: New file. | |
6515 | * c-common.c (targetcm): Don't define here. | |
6516 | * c-common.h (default_handle_c_option): Declare. | |
6517 | * c-format.c: Include c-target.h instead of target.h. | |
6518 | * c-opts.c: Include c-target.h instead of target.h. Explicitly | |
6519 | include tm.h. | |
6520 | (default_handle_c_option): Move from targhooks.c. | |
6521 | ||
e2eefb55 JJ |
6522 | 2011-03-29 Jakub Jelinek <jakub@redhat.com> |
6523 | ||
6524 | PR preprocessor/48248 | |
6525 | * c-ppoutput.c (print): Add src_file field. | |
6526 | (init_pp_output): Initialize it. | |
6527 | (maybe_print_line): Don't optimize by adding up to 8 newlines | |
6528 | if map->to_file and print.src_file are different file. | |
6529 | (print_line): Update print.src_file. | |
6530 | ||
ba78087b KT |
6531 | 2011-03-25 Kai Tietz <ktietz@redhat.com> |
6532 | ||
6533 | * c-ada-spec.c (compare_comment): Use filename_cmp | |
6534 | instead of strcmp for filename. | |
6535 | ||
0edf1bb2 JL |
6536 | 2011-03-25 Jeff Law <law@redhat.com> |
6537 | ||
adfac8df | 6538 | * c-common.c (def_fn_type): Add missing va_end. |
0edf1bb2 | 6539 | |
c7dc8804 JM |
6540 | 2011-03-25 Jason Merrill <jason@redhat.com> |
6541 | ||
6542 | * c.opt: Add -std=c++03. | |
6543 | ||
d1d879b1 EB |
6544 | 2011-03-22 Eric Botcazou <ebotcazou@adacore.com> |
6545 | ||
6546 | * c-ada-spec.c (dump_ada_template): Skip non-class instances. | |
6547 | ||
3f8257db | 6548 | 2011-03-17 Kai Tietz <ktietz@redhat.com> |
62d784f7 KT |
6549 | |
6550 | PR target/12171 | |
5050afdf KT |
6551 | * c-pretty-print.c (pp_c_specifier_qualifier_list): |
6552 | Display allowed attributes for function pointer types. | |
6553 | (pp_c_attributes_display): New function to display | |
6554 | attributes having affects_type_identity flag set to true. | |
6555 | * c-pretty-print.h (pp_c_attributes_display): New prototype. | |
6556 | ||
62d784f7 KT |
6557 | * c-common.c (c_common_attribute_table): |
6558 | Add new element. | |
6559 | (c_common_format_attribute_table): Likewise. | |
6560 | ||
82d37118 JM |
6561 | 2011-03-18 Jason Merrill <jason@redhat.com> |
6562 | ||
49a000c3 JM |
6563 | * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth). |
6564 | * c-common.h: Don't declare it here. | |
6565 | * c-common.c: Or define it here. | |
6566 | * c-opts.c (c_common_handle_option): Or set it here. | |
6567 | ||
82d37118 JM |
6568 | PR c++/35315 |
6569 | * c-common.c (handle_transparent_union_attribute): Don't | |
6570 | make a duplicate type in C++. | |
6571 | ||
17bc631c JM |
6572 | 2011-03-15 Jason Merrill <jason@redhat.com> |
6573 | ||
6574 | * c-common.c (max_constexpr_depth): New. | |
6575 | * c-common.h: Declare it. | |
6576 | * c-opts.c (c_common_handle_option): Set it. | |
6577 | * c.opt (fconstexpr-depth): New option. | |
6578 | ||
1b9b91a6 JM |
6579 | 2011-03-11 Jason Merrill <jason@redhat.com> |
6580 | ||
f231b5ff JM |
6581 | * c-common.c (attribute_takes_identifier_p): Add missing const. |
6582 | ||
1b9b91a6 JM |
6583 | PR c++/46803 |
6584 | * c-common.c (attribute_takes_identifier_p): Assume that an | |
6585 | unknown attribute takes an identifier. | |
6586 | ||
a19e4d44 NF |
6587 | 2011-03-07 Nathan Froyd <froydnj@codesourcery.com> |
6588 | ||
6589 | PR c/47786 | |
6590 | * c-common.c (c_type_hash): Call list_length instead of iterating | |
6591 | through DECL_CHAIN. Rename 'i' to 'n_elements'. | |
6592 | ||
982d62f6 JJ |
6593 | 2011-02-19 Jakub Jelinek <jakub@redhat.com> |
6594 | ||
6595 | PR c/47809 | |
6596 | * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR. | |
6597 | ||
0a256240 NP |
6598 | 2011-02-17 Iain Sandoe <iains@gcc.gnu.org> |
6599 | ||
6600 | * c.opt (fobjc-abi-version=) New. | |
6601 | (fobjc-nilcheck): New. | |
6602 | ||
ba9e6dd5 NF |
6603 | 2011-02-03 Nathan Froyd <froydnj@codesourcery.com> |
6604 | ||
6605 | PR c++/46890 | |
6606 | * c-common.h (keyword_is_decl_specifier): Declare. | |
6607 | * c-common.c (keyword_is_decl_specifier): Define. | |
6608 | (keyword_is_function_specifier): New function. | |
6609 | ||
7273813a JJ |
6610 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
6611 | ||
6612 | PR c/47473 | |
6613 | * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure | |
6614 | EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of | |
6615 | REAL_TYPE. | |
6616 | ||
908ef79b AC |
6617 | 2011-01-26 Arnaud Charlet <charlet@adacore.com> |
6618 | ||
6619 | * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type. | |
6620 | ||
237e9384 JJ |
6621 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
6622 | ||
6623 | PR pch/47430 | |
6624 | * c-opts.c (c_common_post_options): Call c_common_no_more_pch | |
6625 | after init_c_lex if pch_file is set. | |
6626 | ||
47ea1edf DK |
6627 | 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com> |
6628 | ||
d4dba752 | 6629 | PR c++/43601 |
47ea1edf DK |
6630 | * c.opt (-fkeep-inline-dllexport): New switch. |
6631 | ||
2aa9c6ae RG |
6632 | 2011-01-12 Richard Guenther <rguenther@suse.de> |
6633 | ||
6634 | PR middle-end/32511 | |
6635 | * c-common.c (handle_weak_attribute): Warn instead of error | |
6636 | on declaring an inline function weak. | |
6637 | ||
7bd11157 TT |
6638 | 2011-01-05 Tom Tromey <tromey@redhat.com> |
6639 | ||
6640 | * c-common.h (lvalue_error): Update. | |
6641 | * c-common.c (lvalue_error): Add 'loc' argument. Call error_at, | |
6642 | not error. | |
6643 | ||
0e66e494 | 6644 | 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com> |
9faeb493 | 6645 | |
b4f588c4 NP |
6646 | PR objc/47075 |
6647 | * c-objc.h (objc_finish_message_expr): Added argument to | |
6648 | prototype. | |
6649 | ||
f4da8dce NF |
6650 | 2010-12-22 Nathan Froyd <froydnj@codesourcery.com> |
6651 | ||
6652 | * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute): | |
6653 | Use prototype_p. | |
6654 | ||
46270f14 NP |
6655 | 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com> |
6656 | ||
6657 | * c-objc.h (objc_maybe_warn_exceptions): New. | |
9faeb493 | 6658 | * stub-objc.c (objc_maybe_warn_exceptions): New. |
46270f14 | 6659 | |
4816c593 NF |
6660 | 2010-12-10 Nathan Froyd <froydnj@codesourcery.com> |
6661 | ||
6662 | * c-common.h (readonly_error): Declare. | |
6663 | * c-common.c (readonly_error): Define. | |
6664 | ||
7a6daeb0 NF |
6665 | 2010-12-09 Nathan Froyd <froydnj@codesourcery.com> |
6666 | ||
6667 | * c-common.h (invalid_indirection_error): Declare. | |
6668 | * c-common.c (invalid_indirection_error): Define. | |
6669 | ||
892f6119 RG |
6670 | 2010-12-03 Richard Guenther <rguenther@suse.de> |
6671 | ||
6672 | PR c/46745 | |
6673 | * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF. | |
6674 | (pp_c_unary_expression): Likewise. | |
6675 | (pp_c_expression): Likewise. | |
6676 | ||
6c39e757 NP |
6677 | 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com> |
6678 | ||
6679 | * c-common.h (objc_finish_function): New. | |
6680 | (objc_non_volatilized_type): Removed. | |
6681 | (objc_type_quals_match): Removed. | |
6682 | * stub-objc.c (objc_finish_function): New. | |
6683 | (objc_non_volatilized_type): Removed. | |
6684 | (objc_type_quals_match): Removed. | |
9faeb493 | 6685 | |
7c475d11 JM |
6686 | 2010-11-30 Joseph Myers <joseph@codesourcery.com> |
6687 | ||
6688 | * c-common.h (parse_optimize_options): Declare. | |
6689 | * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c, | |
6690 | c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h. | |
6691 | ||
71f3e391 JM |
6692 | 2010-11-29 Joseph Myers <joseph@codesourcery.com> |
6693 | ||
6694 | * c-opts.c (check_deps_environment_vars): Use getenv instead of | |
6695 | GET_ENVIRONMENT. | |
6696 | * c-pch.c (O_BINARY): Don't define here. | |
6697 | * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>. | |
6698 | ||
d5fabb58 JM |
6699 | 2010-11-25 Joseph Myers <joseph@codesourcery.com> |
6700 | ||
6701 | * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to | |
6702 | targetm.except_unwind_info. | |
6703 | ||
299404a1 JM |
6704 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
6705 | ||
6706 | * c-opts.c (c_common_handle_option): Pass location to | |
6707 | set_struct_debug_option. | |
6708 | ||
c98cd5bf JM |
6709 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
6710 | ||
6711 | * c-common.c (visibility_options): Move from ../opts.c. | |
6712 | * c-common.h (struct visibility_flags, visibility_options): | |
6713 | Declare here. | |
6714 | * c-opts.c (finish_options): Rename to c_finish_options. | |
6715 | (c_common_init): Update call to finish_options. | |
6716 | ||
a9546771 NP |
6717 | 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com> |
6718 | ||
6719 | PR objc/34033 | |
6720 | * c-lex.c (lex_string): Check that each string in an Objective-C | |
6721 | string concat sequence starts with either one or zero '@', and | |
6722 | that there are no spurious '@' signs at the end. | |
6723 | ||
24a57808 JM |
6724 | 2010-11-20 Joseph Myers <joseph@codesourcery.com> |
6725 | ||
6726 | * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK, | |
6727 | HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and | |
6728 | HANDLE_PRAGMA_VISIBILITY. | |
6729 | * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK, | |
6730 | HANDLE_PRAGMA_VISIBILITY): Don't define. | |
6731 | (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test. | |
6732 | ||
a9aa2c3a NF |
6733 | 2010-11-20 Nathan Froyd <froydnj@codesourcery.com> |
6734 | ||
6735 | PR c++/16189 | |
6736 | PR c++/36888 | |
6737 | PR c++/45331 | |
6738 | * c-common.h (keyword_begins_type_specifier): Declare. | |
6739 | (keyword_is_storage_class_specifier): Declare. | |
6740 | (keyword_is_type_qualifier): Declare. | |
6741 | * c-common.c (keyword_begins_type_specifier): New function. | |
6742 | (keyword_is_storage_class_specifier): New function. | |
6743 | (keyword_is_type_qualifier): Declare. | |
6744 | ||
5386338c JM |
6745 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
6746 | ||
6747 | PR c/46547 | |
6748 | * c-common.c (in_late_binary_op): Define. | |
6749 | (c_common_truthvalue_conversion): Check in_late_binary_op before | |
6750 | calling c_save_expr. | |
6751 | * c-common.h (in_late_binary_op): Declare. | |
6752 | ||
69ccdddb JM |
6753 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
6754 | ||
6755 | * c-opts.c (c_common_handle_option): Update calls to | |
6756 | set_struct_debug_option. | |
6757 | ||
6b192a09 NP |
6758 | 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com> |
6759 | ||
6760 | * c-common.h (objc_declare_protocols): Added additional argument. | |
6761 | * stub-objc.c (objc_declare_protocol): Same change. | |
9faeb493 | 6762 | |
fb52b50a NF |
6763 | 2010-11-18 Nathan Froyd <froydnj@codesourcery.com> |
6764 | ||
6765 | PR c/33193 | |
6766 | * c-common.h (build_real_imag_expr): Declare. | |
6767 | * c-semantics.c (build_real_imag_expr): Define. | |
6768 | ||
b37421c6 JM |
6769 | 2010-11-17 Joseph Myers <joseph@codesourcery.com> |
6770 | ||
6771 | * c-opts.c (c_common_parse_file): Take no arguments. | |
6772 | * c-common.h (c_common_parse_file): Update prototype. | |
6773 | ||
07078664 JJ |
6774 | 2010-11-16 Jakub Jelinek <jakub@redhat.com> |
6775 | ||
6776 | PR c++/46401 | |
6777 | * c-common.c (warning_candidate_p): Don't track non-const calls | |
6778 | or STRING_CSTs. | |
6779 | ||
c6a13190 ILT |
6780 | 2010-11-15 Ian Lance Taylor <iant@google.com> |
6781 | ||
6782 | * c-lex.c (init_c_lex): Set macro debug callbacks if | |
6783 | flag_dump_go_spec is set. | |
6784 | ||
925e8657 NP |
6785 | 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com> |
6786 | ||
6787 | * c-common.h (objc_build_incr_expr_for_property_ref): New. | |
6788 | * stub-objc.c (objc_build_incr_expr_for_property_ref): New. | |
6789 | ||
bb0a9581 NF |
6790 | 2010-11-15 Nathan Froyd <froydnj@codesourcery.com> |
6791 | ||
6792 | PR preprocessor/45038 | |
6793 | * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++ | |
6794 | dialects. | |
6795 | ||
c5fa0890 JM |
6796 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
6797 | ||
6798 | * c-common.h (c_family_lang_mask): Declare. | |
6799 | * c-opts.c (c_family_lang_mask): Make extern. | |
6800 | * c-pragma.c (handle_pragma_diagnostic): Use | |
6801 | control_warning_option. | |
6802 | ||
a4d8c676 JM |
6803 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
6804 | ||
6805 | * c-common.c (parse_optimize_options): Update call to | |
6806 | decode_options. | |
6807 | * c-common.h (c_common_handle_option): Update prototype. | |
6808 | * c-opts.c (c_common_handle_option): Take location_t parameter and | |
6809 | pass it to other functions. | |
6810 | ||
f954bd2c JM |
6811 | 2010-11-11 Joseph Myers <joseph@codesourcery.com> |
6812 | ||
6813 | * c-opts.c (warning_as_error_callback): Remove. | |
6814 | (c_common_initialize_diagnostics): Don't call | |
6815 | register_warning_as_error_callback. | |
6816 | (c_common_handle_option): Handle -Werror=normalized= here. | |
6817 | ||
d8a07487 JM |
6818 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
6819 | ||
6820 | * c-common.c (handle_mode_attribute): Use %' and word "signedness" | |
6821 | in diagnostic. | |
6822 | * c-opts.c (c_common_parse_file): Start diagnostics with lowercase | |
6823 | letter. | |
6824 | * c-pragma.c (handle_pragma_target, handle_pragma_optimize): | |
6825 | Remove trailing '.' from diagnostics. | |
6826 | * c.opt (Wwrite-strings_: Avoid '`' in help text. | |
6827 | ||
d5478783 JM |
6828 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
6829 | ||
6830 | * c-common.c (parse_optimize_options): Pass global_dc to | |
6831 | decode_options. | |
6832 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
6833 | set_Wstrict_aliasing. | |
6834 | * c.opt (v): Don't mark Common or document here. | |
6835 | ||
91ebb981 IS |
6836 | 2010-11-06 Iain Sandoe <iains@gcc.gnu.org> |
6837 | ||
6838 | PR target/44981 | |
6839 | * c-format.c (format_type): New type gcc_objc_string_format_type. | |
6840 | (valid_stringptr_type_p): New. | |
6841 | (handle_format_arg_attribute): Use valid_stringptr_type_p (). | |
9faeb493 | 6842 | (check_format_string): Pass expected type, use |
91ebb981 IS |
6843 | valid_stringptr_type_p (), check that the format string types are |
6844 | consistent with the format specification. | |
6845 | (decode_format_attr): Warn if NSString is used outside objective-c. | |
6846 | (format_types_orig): Add NSString. | |
6847 | (format_name): New. | |
6848 | (format_flags): New. | |
6849 | (check_format_arg): Handle format strings requiring an external parser. | |
6850 | first_target_format_type: New variable. | |
6851 | (handle_format_attribute): Set up first_target_format_type, pass the | |
6852 | expected format arg string type to check_format_string(). | |
6853 | * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag. | |
6854 | * stub-objc.c (objc_string_ref_type_p): New. | |
6855 | (objc_check_format_arg): New. | |
6856 | ||
bede2adc NP |
6857 | 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com> |
6858 | ||
9faeb493 | 6859 | Fixed using the Objective-C 2.0 dot-syntax with class names. |
bede2adc NP |
6860 | * c-common.h (objc_build_class_component_ref): New. |
6861 | * stub-objc.c (objc_build_class_component_ref): New. | |
6862 | ||
9a179d01 NP |
6863 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
6864 | ||
6865 | * c.opt (Wproperty-assign-default): New option. | |
6866 | ||
22d8d616 NP |
6867 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
6868 | ||
6869 | Implemented -fobjc-std=objc1 flag. | |
6870 | * c.opt (fobjc-std=objc1): New option. | |
6871 | ||
2debdb4f NP |
6872 | 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com> |
6873 | ||
6874 | Implemented format and noreturn attributes for Objective-C methods. | |
6875 | * c-common.c (handle_noreturn_attribute): Recognize 'noreturn' | |
6876 | attribute for Objective-C methods. | |
6877 | ||
ec52b111 JM |
6878 | 2010-10-31 Jason Merrill <jason@redhat.com> |
6879 | ||
6880 | * c-common.c (conversion_warning, warn_for_collisions_1): Use | |
6881 | EXPR_LOC_OR_HERE. | |
6882 | ||
46a88c12 NP |
6883 | 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com> |
6884 | ||
6885 | Implemented Objective-C 2.0 @property, @synthesize and @dynamic. | |
6886 | * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR. | |
6887 | (objc_add_property_declaration): Removed arguments for copies and | |
6888 | ivar. | |
6889 | (objc_build_getter_call): Renamed to | |
6890 | objc_maybe_build_component_ref. | |
6891 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
6892 | (objc_is_property_ref): New. | |
6893 | * c-common.c (c_common_reswords): Removed copies and ivar. | |
6894 | * stub-objc.c (objc_add_property_declaration): Removed arguments | |
6895 | for copies and ivar. | |
6896 | (objc_build_getter_call): Renamed to | |
6897 | objc_maybe_build_component_ref. | |
6898 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
6899 | (objc_is_property_ref): New. | |
9faeb493 | 6900 | |
1e4bf85b AC |
6901 | 2010-10-29 Arnaud Charlet <charlet@adacore.com> |
6902 | Matthew Gingell <gingell@adacore.com> | |
6903 | ||
6904 | * c-ada-spec.c (separate_class_package): New function. | |
6905 | (pp_ada_tree_identifier): Prefix references to C++ classes with the | |
6906 | name of their enclosing package. | |
6907 | (print_ada_declaration): Use separate_class_package. | |
6908 | ||
81f0bab2 JM |
6909 | 2010-10-27 Jason Merrill <jason@redhat.com> |
6910 | ||
2b08f2c5 JM |
6911 | * c-common.c (c_common_reswords): Add __is_literal_type. |
6912 | * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE. | |
6913 | ||
81f0bab2 JM |
6914 | * c-common.c (check_case_value): Remove special C++ code. |
6915 | ||
200290f2 NP |
6916 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
6917 | ||
6918 | * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN, | |
6919 | RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR | |
6920 | and RID_LAST_PATTR. | |
6921 | (objc_add_property_declaration): Added additional arguments. | |
6922 | (objc_property_attribute_kind): Removed. | |
6923 | (objc_set_property_attr): Removed. | |
6924 | * c-common.c (c_common_reswords): Added readwrite, assign, retain, | |
6925 | copy and nonatomic. | |
6926 | * stub-objc.c (objc_add_property_declaration): Added additional | |
6927 | arguments. | |
6928 | (objc_set_property_attr): Removed. | |
9faeb493 | 6929 | |
f614132b NP |
6930 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
6931 | ||
6932 | * c-common.h (objc_add_property_variable): Renamed to | |
6933 | objc_add_property_declaration. Added location argument. | |
6934 | * stub-objc.c (objc_add_property_variable): Same change. | |
b1726d6c | 6935 | |
b8a18805 NP |
6936 | 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com> |
6937 | ||
6938 | * c-common.h (objc_maybe_printable_name): New. | |
6939 | * stub-objc.c (objc_maybe_printable_name): New. | |
6940 | ||
3f8257db JJ |
6941 | 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
6942 | Andrew Pinski <pinskia@gmail.com> | |
30cd1c5d AS |
6943 | |
6944 | * c-common.h (c_common_mark_addressable_vec): Declare. | |
6945 | * c-common.c (c_common_mark_addressable_vec): New function. | |
6946 | ||
249a82c4 NP |
6947 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
6948 | ||
6949 | * c-common.h (objc_set_method_type): Removed. | |
6950 | (objc_add_method_declaration): Added boolean argument. | |
6951 | (objc_start_method_definition): Same change. | |
6952 | (objc_build_method_signature): Same change. | |
6953 | * stub-objc.c (objc_set_method_type): Removed. | |
6954 | (objc_add_method_declaration): Added boolean argument. | |
6955 | (objc_start_method_definition): Same change. | |
6956 | (objc_build_method_signature): Same change. | |
6957 | ||
977e30bc NP |
6958 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
6959 | ||
6960 | * c-common.h (finish_file): Removed. | |
6961 | (objc_write_global_declarations): New. | |
6962 | * c-opts.c (c_common_parse_file): Do not call finish_file. | |
6963 | * stub-objc.c (objc_write_global_declarations): New. | |
9faeb493 | 6964 | |
da57d1b9 NP |
6965 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
6966 | ||
6967 | Implemented parsing @synthesize and @dynamic for | |
6968 | Objective-C/Objective-C++. | |
6969 | * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC. | |
6970 | (objc_add_synthesize_declaration): New. | |
6971 | (objc_add_dynamic_declaration): New. | |
6972 | * c-common.c (c_common_reswords): Add synthesize and dynamic. | |
6973 | * stub-objc.c (objc_add_synthesize_declaration): New. | |
6974 | (objc_add_dynamic_declaration): New. | |
9faeb493 | 6975 | |
0069111f MM |
6976 | 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com> |
6977 | ||
6978 | PR target/46041 | |
6979 | * c-cppbuiltin.c (mode_has_fma): Move function here from | |
6980 | builtins.c. Don't use the fma optab, instead just use the | |
6981 | HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when | |
6982 | using -save-temps. | |
6983 | ||
e426b47b NP |
6984 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
6985 | ||
6986 | Merge from 'apple/trunk' branch on FSF servers. | |
0069111f | 6987 | |
3f8257db | 6988 | 2005-11-08 Fariborz Jahanian <fjahanian@apple.com> |
e426b47b | 6989 | |
9faeb493 | 6990 | Radar 4330422 |
e426b47b NP |
6991 | * c-common.h (objc_non_volatilized_type): New declaration |
6992 | * stub-objc.c (objc_non_volatilized_type): New stub. | |
6993 | ||
90fbfdc3 NP |
6994 | 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com> |
6995 | ||
e426b47b | 6996 | Merge from 'apple/trunk' branch on FSF servers. |
90fbfdc3 | 6997 | |
3f8257db | 6998 | 2006-03-27 Fariborz Jahanian <fjahanian@apple.com> |
90fbfdc3 | 6999 | |
9faeb493 | 7000 | Radar 4133425 |
90fbfdc3 | 7001 | * c-common.h (objc_diagnose_private_ivar): New decl. |
0069111f | 7002 | * stub-objc.c (objc_diagnose_private_ivar): New stub. |
90fbfdc3 | 7003 | |
c37d8c30 IS |
7004 | 2010-10-17 Iain Sandoe <iains@gcc.gnu.org> |
7005 | ||
7006 | * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE. | |
7007 | * c-common.h (enum rid): Add RID_AT_PACKAGE. | |
7008 | (objc_ivar_visibility_kind): New enum. | |
7009 | (objc_set_visibility): Adjust prototype to use visibility enum. | |
0069111f | 7010 | * stub-objc.c (objc_set_visibility): Adjust stub to use |
c37d8c30 IS |
7011 | visibility enum. |
7012 | ||
1b1562a5 MM |
7013 | 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com> |
7014 | ||
7015 | * c-cppbuiltin.c (builtin_define_float_constants): Emit | |
7016 | __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine | |
7017 | has the appropriate fma builtins. | |
7018 | (c_cpp_builtins): Adjust call to builtin_define_float_constants. | |
7019 | ||
668ea4b1 IS |
7020 | 2010-10-14 Iain Sandoe <iains@gcc.gnu.org> |
7021 | ||
1b1562a5 | 7022 | merge from FSF apple 'trunk' branch. |
3f8257db | 7023 | 2006 Fariborz Jahanian <fjahanian@apple.com> |
1b1562a5 | 7024 | |
668ea4b1 IS |
7025 | Radars 4436866, 4505126, 4506903, 4517826 |
7026 | * c-common.c (c_common_resword): Define @property and its attributes. | |
7027 | * c-common.h: Define property attribute enum entries. | |
7028 | (OBJC_IS_PATTR_KEYWORD): New. | |
7029 | (objc_property_attribute_kind): New enum. | |
7030 | Declare objc_set_property_attr (), objc_add_property_variable (), | |
7031 | objc_build_getter_call () and objc_build_setter_call (). | |
7032 | * stub-objc.c (objc_set_property_attr): New stub. | |
7033 | (objc_add_property_variable): Likewise. | |
7034 | (objc_build_getter_call): Likewise. | |
7035 | (objc_build_setter_call) Likewise. | |
1b1562a5 | 7036 | |
a1178b30 IS |
7037 | 2010-10-13 Iain Sandoe <iains@gcc.gnu.org> |
7038 | ||
1b1562a5 | 7039 | merge from FSF apple 'trunk' branch. |
3f8257db | 7040 | 2006-04-26 Fariborz Jahanian <fjahanian@apple.com> |
a1178b30 IS |
7041 | |
7042 | Radar 3803157 (method attributes) | |
7043 | * c-common.c (handle_deprecated_attribute): Recognize | |
7044 | objc methods as valid declarations. | |
7045 | * c-common.h: Declare objc_method_decl (). | |
1b1562a5 | 7046 | * stub-objc.c (objc_method_decl): New stub. |
a1178b30 | 7047 | |
a75bfaa6 JM |
7048 | 2010-10-08 Joseph Myers <joseph@codesourcery.com> |
7049 | ||
7050 | * c-common.c (parse_optimize_options): Call | |
7051 | decode_cmdline_options_to_array_default_mask before | |
7052 | decode_options. Update arguments to decode_options. | |
7053 | * c-common.h (c_common_init_options_struct): Declare. | |
7054 | * c-opts.c (c_common_init_options_struct): New. Split out from | |
7055 | c_common_init_options. | |
7056 | ||
f05b9d93 NP |
7057 | 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com> |
7058 | ||
7059 | Implemented fast enumeration for Objective-C. | |
7060 | * c-common.h (objc_finish_foreach_loop): New. | |
7061 | * stub-objc.c (objc_finish_foreach_loop): New. | |
7062 | ||
1ebe4b4f JM |
7063 | 2010-10-05 Joseph Myers <joseph@codesourcery.com> |
7064 | ||
7065 | * c-common.h (struct diagnostic_context): Don't declare here. | |
7066 | (c_common_initialize_diagnostics): Declare using | |
7067 | diagnostic_context typedef. | |
7068 | * c-opts.c (c_common_handle_option): Pass global_dc to | |
7069 | handle_generated_option. | |
7070 | ||
d4d24ba4 JM |
7071 | 2010-10-04 Joseph Myers <joseph@codesourcery.com> |
7072 | ||
7073 | * c-opts.c (c_common_handle_option): Pass &global_options_set to | |
7074 | handle_generated_option. | |
7075 | ||
478a1c5b ILT |
7076 | 2010-10-03 Ian Lance Taylor <iant@google.com> |
7077 | ||
7078 | * c.opt (-fplan9-extensions): New option. | |
7079 | ||
82a1c2fe FXC |
7080 | 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
7081 | ||
7082 | * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision): | |
7083 | Remove. | |
7084 | (c_cpp_builtins): Call functions from cppbuiltin.c instead | |
7085 | of duplicating code. | |
7086 | ||
92902b1b IS |
7087 | 2010-09-30 Iain Sandoe <iains@gcc.gnu.org> |
7088 | ||
7089 | * c-common.c: Add two new entries for @optional | |
7090 | and @required keywords. | |
7091 | ||
7092 | merge from FSF 'apple/trunk' branch. | |
3f8257db | 7093 | 2006-01-30 Fariborz Jahanian <fjahanian@apple.com> |
92902b1b IS |
7094 | |
7095 | Radar 4386773 | |
7096 | * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new | |
7097 | objective-c keywords. | |
7098 | (objc_set_method_opt): New declaration. | |
7099 | * stub-objc.c (objc_set_method_opt): New stub. | |
9faeb493 | 7100 | |
46625112 JM |
7101 | 2010-09-30 Joseph Myers <joseph@codesourcery.com> |
7102 | ||
7103 | * c-common.c (handle_optimize_attribute): Pass &global_options to | |
7104 | cl_optimization_save and cl_optimization_restore. | |
7105 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
7106 | handle_generated_option. | |
7107 | * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var. | |
7108 | (handle_pragma_pop_options, handle_pragma_reset_options): Pass | |
7109 | &global_options to cl_optimization_restore. | |
7110 | ||
49b91f05 NP |
7111 | 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com> |
7112 | ||
7113 | * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME | |
7114 | Objective-C/Objective-C++ keywords. | |
7115 | ||
13ed556f | 7116 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
a6341d57 | 7117 | |
9faeb493 UB |
7118 | Merge from 'apple/trunk' branch on FSF servers. |
7119 | ||
3f8257db | 7120 | 2005-10-04 Fariborz Jahanian <fjahanian@apple.com> |
a6341d57 NP |
7121 | |
7122 | Radar 4281748 | |
7123 | * c-common.h (objc_check_global_decl): New declaration. | |
7124 | * stub-objc.c (objc_check_global_decl): New stub. | |
7125 | ||
f0036cca JM |
7126 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
7127 | ||
7128 | * c.opt: Don't use VarExists. | |
7129 | ||
e3339d0f JM |
7130 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
7131 | ||
7132 | * c-common.c (c_cpp_error): Update names of diagnostic_context | |
7133 | members. | |
7134 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of | |
7135 | cl_optimization members. | |
7136 | * c-opts.c (warning_as_error_callback, c_common_handle_option, | |
7137 | sanitize_cpp_opts, finish_options): Update names of cpp_options | |
7138 | members. | |
7139 | ||
1973201f NP |
7140 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
7141 | ||
7142 | * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments. | |
7143 | (objc_is_reserved_word): Removed. | |
7144 | * c-common.c: Updated comments. | |
7145 | * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of | |
7146 | objc_is_reserved_word. | |
7147 | * stub-objc.c (objc_is_reserved_word): Removed. | |
7148 | ||
f7e71da5 IS |
7149 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
7150 | ||
9faeb493 | 7151 | * c-common.h (objc_add_method_declaration): Adjust prototype to |
f7e71da5 IS |
7152 | include attributes. |
7153 | (objc_start_method_definition): Likewise. | |
7154 | (objc_build_keyword_decl): Likewise. | |
7155 | * stub-objc.c:(objc_add_method_declaration): Handle attributes. | |
7156 | (objc_start_method_definition): Likewise. | |
7157 | (objc_build_keyword_decl): Likewise. | |
7158 | ||
c165dca7 IS |
7159 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
7160 | ||
7161 | * c-common.h (objc_start_class_interface): Adjust prototype. | |
7162 | (objc_start_category_interface): Likewise. | |
7163 | (objc_start_protocol): Likewise. | |
7164 | * stub-objc.c (objc_start_protocol): Adjust for extra argument. | |
7165 | (objc_start_class_interface): Likewise. | |
7166 | (objc_start_category_interface): Likewise. | |
7167 | ||
7458026b ILT |
7168 | 2010-09-27 Ian Lance Taylor <iant@google.com> |
7169 | ||
7170 | * c-common.c (c_common_attribute_table): Add no_split_stack. | |
7171 | (handle_no_split_stack_attribute): New static function. | |
7172 | ||
b581b85b NP |
7173 | 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com> |
7174 | ||
9faeb493 | 7175 | Merge from 'apple/trunk' branch on FSF servers. |
b581b85b | 7176 | |
3f8257db | 7177 | 2005-12-15 Fariborz Jahanian <fjahanian@apple.com> |
b581b85b | 7178 | |
9faeb493 | 7179 | Radar 4229905 |
b581b85b NP |
7180 | * c-common.h (objc_have_common_type): New declaration. |
7181 | * stub-objc.c (objc_have_common_type): New stub. | |
7182 | ||
7183 | 2005-06-22 Ziemowit Laski <zlaski@apple.com> | |
7184 | ||
7185 | Radar 4154928 | |
7186 | * c-common.h (objc_common_type): New prototype. | |
9faeb493 | 7187 | * stub-objc.c (objc_common_type): New stub. |
b581b85b | 7188 | |
46a4da10 JH |
7189 | 2010-09-24 Jan Hubicka <jh@suse.cz> |
7190 | ||
7191 | * c-common.c (handle_leaf_attribute): New function. | |
7192 | (struct attribute_spec c_common_att): Add leaf. | |
7193 | ||
e200444e JM |
7194 | 2010-09-22 Joseph Myers <joseph@codesourcery.com> |
7195 | ||
7196 | * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments, | |
7197 | -comments-in-macros, -define-macro, -define-macro=, -dependencies, | |
7198 | -dump, -dump=, -imacros, -imacros=, -include, -include=, | |
7199 | -include-barrier, -include-directory, -include-directory=, | |
7200 | -include-directory-after, -include-directory-after=, | |
7201 | -include-prefix, -include-prefix=, -include-with-prefix, | |
7202 | -include-with-prefix=, -include-with-prefix-after, | |
7203 | -include-with-prefix-after=, -include-with-prefix-before, | |
7204 | -include-with-prefix-before=, -no-integrated-cpp, | |
7205 | -no-line-commands, -no-standard-includes, -no-warnings, -output, | |
7206 | -output=, -pedantic, -pedantic-errors, -preprocess, | |
7207 | -print-missing-file-dependencies, -trace-includes, -traditional, | |
7208 | -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=, | |
7209 | -user-dependencies, -verbose, -write-dependencies, | |
7210 | -write-user-dependencies, no-integrated-cpp, traditional): New. | |
7211 | ||
29a80ea6 NP |
7212 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> |
7213 | ||
7214 | PR objc/23710 | |
ac1fc2fc NP |
7215 | * c-common.h (objc_start_method_definition): Return bool instead |
7216 | of void. | |
7217 | * stub-objc.c (objc_start_method_definition): Return bool instead | |
7218 | of void. | |
7219 | ||
7220 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> | |
7221 | ||
7222 | PR objc/25965 | |
7223 | * c-common.h (objc_get_interface_ivars): New declaration. | |
7224 | * stub-objc.c (objc_get_interface_ivars): New stub. | |
29a80ea6 | 7225 | |
de621752 ILT |
7226 | 2010-09-15 Ian Lance Taylor <iant@google.com> |
7227 | ||
7228 | * c-common.c (parse_optimize_options): Do not capitalize warning | |
06730c5d | 7229 | messages. Remove period at end of warning message. |
de621752 | 7230 | |
ba885ec5 NS |
7231 | 2010-09-09 Nathan Sidwell <nathan@codesourcery.com> |
7232 | ||
7233 | * c-common.c (handle_alias_ifunc_attribute): New, broken out of ... | |
7234 | (handle_alias_attribute): ... here. | |
7235 | (handle_ifunc_attribute): New. | |
7236 | ||
c5ee1358 MM |
7237 | 2010-09-06 Mark Mitchell <mark@codesourcery.com> |
7238 | ||
7239 | * c-common.h (do_warn_double_promotion): Declare. | |
7240 | * c-common.c (do_warn_double_promotion): Define. | |
7241 | ||
0a0b3574 MM |
7242 | 2010-09-05 Mark Mitchell <mark@codesourcery.com> |
7243 | ||
7244 | * c.opt (Wdouble-promotion): New. | |
7245 | ||
d1779886 JM |
7246 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
7247 | ||
7248 | * c.opt (falt-external-templates, fhuge-objects, fvtable-gc, | |
7249 | fvtable-thunks, fxref): Mark no longer supported in help text. | |
7250 | ||
2d2bd949 JM |
7251 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
7252 | ||
7253 | * c.opt (Wimport, fall-virtual, falt-external-templates, | |
7254 | fdefault-inline, fenum-int-equiv, fexternal-templates, | |
7255 | fguiding-decls, fhonor-std, fhuge-objects, flabels-ok, | |
7256 | fname-mangling-version-, fnew-abi, fnonnull-objects, | |
7257 | foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable, | |
7258 | fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as | |
7259 | applicable. | |
7260 | (fhandle-exceptions): Mark with Alias and Warn. | |
7261 | * c-opts.c (c_common_handle_option): Don't handle options marked | |
7262 | as ignored. | |
7263 | ||
5de8299c JM |
7264 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
7265 | ||
7266 | * c.opt (Wcomments, Werror-implicit-function-declaration, | |
7267 | ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x, | |
7268 | std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as | |
7269 | aliases. | |
7270 | * c-common.c (option_codes): Use OPT_Wcomment instead of | |
7271 | OPT_Wcomments. | |
7272 | * c-opts.c (warning_as_error_callback, c_common_handle_option): | |
7273 | Don't handle options marked as aliases. | |
7274 | ||
0ceb0201 RG |
7275 | 2010-08-25 Richard Guenther <rguenther@suse.de> |
7276 | ||
7277 | * c-common.c (c_common_get_alias_set): Remove special | |
7278 | handling for pointers. | |
7279 | ||
ac47786e NF |
7280 | 2010-08-20 Nathan Froyd <froydnj@codesourcery.com> |
7281 | ||
7282 | * c-common.c: Use FOR_EACH_VEC_ELT. | |
7283 | * c-gimplify.c: Likewise. | |
7284 | * c-pragma.c: Likewise. | |
7285 | ||
c878765b JM |
7286 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
7287 | ||
7288 | * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of | |
7289 | RejectDriver. | |
7290 | (MMDX): Change back to MMD. Mark NoDriverArg instead of | |
7291 | RejectDriver. | |
7292 | * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD | |
7293 | instead of OPT_MDX and OPT_MMDX. | |
7294 | ||
603349bf JM |
7295 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
7296 | ||
7297 | * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver. | |
7298 | ||
644fa7ac JM |
7299 | 2010-08-12 Joseph Myers <joseph@codesourcery.com> |
7300 | ||
7301 | * c.opt (MD, MMD): Change to MDX and MMDX. | |
7302 | * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX. | |
7303 | ||
481e1176 JM |
7304 | 2010-08-11 Joseph Myers <joseph@codesourcery.com> |
7305 | ||
7306 | * c-opts.c (c_common_handle_option): Call handle_generated_option | |
7307 | instead of handle_option. | |
7308 | ||
ac8dc9f7 NF |
7309 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
7310 | ||
7311 | * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push. | |
7312 | (maybe_apply_renaming_pragma): Delete unneeded declarations. | |
7313 | ||
4f8c876d NF |
7314 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
7315 | ||
7316 | * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it. | |
7317 | (pending_redefine_extname): Change type to a VEC. | |
7318 | (add_to_renaming_pragma_list): Update for new type of | |
7319 | pending_redefine_extname. | |
ac8dc9f7 | 7320 | (maybe_apply_renaming_pragma): Likewise. |
4f8c876d | 7321 | |
3b0c690e AC |
7322 | 2010-08-04 Arnaud Charlet <charlet@adacore.com> |
7323 | ||
7324 | * c-ada-spec.c (dump_ada_template): Mark underlying instance type as | |
7325 | visited. | |
7326 | (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to | |
7327 | decide whether a type has already been declared/seen. | |
7328 | Do not go to the original type. | |
7329 | (dump_nested_types): New parameter forward. | |
7330 | Generate forward declaration if needed and mark type as visited. | |
7331 | (print_ada_declaration): Call dump_nested_types if not already done. | |
7332 | Mark types as visited. | |
7333 | ||
1890bccc JM |
7334 | 2010-08-03 Joseph Myers <joseph@codesourcery.com> |
7335 | ||
7336 | * c.opt (-print-pch-checksum): Remove option. | |
7337 | * c-opts.c (c_common_handle_option): Don't handle | |
7338 | OPT_print_pch_checksum. | |
7339 | ||
5f20c657 JM |
7340 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
7341 | ||
7342 | * c-common.h (c_common_handle_option): Update prototype and return | |
7343 | value type. | |
7344 | * c-opts.c (c_common_handle_option): Update prototype and return | |
7345 | value type. Update calls to handle_option and | |
7346 | enable_warning_as_error. | |
7347 | ||
f551f80c JJ |
7348 | 2010-07-27 Jakub Jelinek <jakub@redhat.com> |
7349 | ||
7350 | PR c/45079 | |
7351 | * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR. | |
7352 | ||
61ff2bdc JM |
7353 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
7354 | ||
7355 | * c-common.h (c_common_missing_argument): Remove. | |
7356 | * c-opts.c (c_common_missing_argument): Remove. | |
7357 | * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=, | |
7358 | idirafter, imacros, include, isysroot, isystem, iquote): Add | |
7359 | MissingArgError. | |
7360 | * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove. | |
7361 | ||
7a9bf9a4 JM |
7362 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
7363 | ||
7364 | * c-common.h (c_common_option_lang_mask, | |
7365 | c_common_initialize_diagnostics, c_common_complain_wrong_lang_p): | |
7366 | New. | |
7367 | (c_common_init_options): Update prototype. | |
7368 | * c-opts.c (c_common_option_lang_mask): New. | |
7369 | (c_common_initialize_diagnostics): Split out of | |
7370 | c_common_init_options. | |
7371 | (accept_all_c_family_options, c_common_complain_wrong_lang_p): | |
7372 | New. | |
7373 | (c_common_init_options): Update prototype. Use decoded options in | |
7374 | search for -lang-asm. | |
7375 | ||
910ad8de NF |
7376 | 2010-07-15 Nathan Froyd <froydnj@codesourcery.com> |
7377 | ||
7378 | * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN. | |
7379 | * c-format.c: Likewise. | |
7380 | ||
718f9c0f MLI |
7381 | 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7382 | ||
7383 | * c-common.h: Include diagnostic-core.h. Error if already | |
7384 | included. | |
7385 | * c-semantics.c: Do not define GCC_DIAG_STYLE here. | |
7386 | ||
4d451982 MLI |
7387 | 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7388 | ||
adfac8df | 7389 | * c-common.c (IN_GCC_FRONTEND): Do not undef. |
4d451982 MLI |
7390 | Do not include expr.h |
7391 | (vector_mode_valid_p): Move here. | |
7392 | ||
119fe915 SB |
7393 | 2010-06-21 DJ Delorie <dj@redhat.com> |
7394 | ||
7395 | * c-pragma.c (handle_pragma_diagnostic): Add push/pop, | |
7396 | allow these pragmas anywhere. | |
7397 | ||
7398 | 2010-06-14 Jakub Jelinek <jakub@redhat.com> | |
7399 | ||
7400 | PR bootstrap/44509 | |
7401 | * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h. | |
7402 | (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers. | |
7403 | (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use | |
7404 | ggc_strdup instead of xstrdup. | |
7405 | ||
7406 | 2010-06-10 Jakub Jelinek <jakub@redhat.com> | |
7407 | ||
7408 | * c-cppbuiltin.c: Include cpp-id-data.h. | |
7409 | (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables. | |
7410 | (lazy_hex_fp_value): New function. | |
7411 | (builtin_define_with_hex_fp_value): Provide definitions lazily. | |
7412 | ||
6662d794 MLI |
7413 | 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7414 | ||
7415 | * c-gimplify.c: Do not include tree-flow.h | |
7416 | ||
38f8b050 JR |
7417 | 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com> |
7418 | ||
7419 | PR other/44034 | |
7420 | * c-common.c: Rename targetm member: | |
7421 | targetm.enum_va_list -> targetm.enum_va_list_p | |
7422 | ||
9589f23e AS |
7423 | 2010-06-28 Anatoly Sokolov <aesok@post.ru> |
7424 | ||
7425 | * c-common.c (shorten_compare): Adjust call to force_fit_type_double. | |
7426 | ||
3b06d379 SB |
7427 | 2010-06-28 Steven Bosscher <steven@gcc.gnu.org> |
7428 | ||
7429 | * c-cppbuiltin.c: Do not include except.h. | |
7430 | ||
d166d4c3 AK |
7431 | 2010-06-24 Andi Kleen <ak@linux.intel.com> |
7432 | ||
9faeb493 UB |
7433 | * c-common.c (warn_for_omitted_condop): New. |
7434 | * c-common.h (warn_for_omitted_condop): Add prototype. | |
d166d4c3 | 7435 | |
70cb8be6 JM |
7436 | 2010-06-21 Joseph Myers <joseph@codesourcery.com> |
7437 | ||
7438 | * c.opt (lang-objc): Remove. | |
7439 | * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc. | |
7440 | ||
a4c97feb JR |
7441 | 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com> |
7442 | ||
7443 | * c-opts.c: Include "tm_p.h". | |
7444 | ||
6e2f1956 JM |
7445 | 2010-06-20 Joseph Myers <joseph@codesourcery.com> |
7446 | ||
7447 | * c-common.c (parse_optimize_options): Update call to | |
7448 | decode_options. | |
7449 | ||
bc87224e NF |
7450 | 2010-06-18 Nathan Froyd <froydnj@codesourcery.com> |
7451 | ||
7452 | * c-common.c (record_types_used_by_current_var_decl): Adjust for | |
7453 | new type of types_used_by_cur_var_decl. | |
7454 | ||
b49cf425 JR |
7455 | 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com> |
7456 | ||
7457 | PR bootstrap/44512 | |
7458 | * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast | |
7459 | for C++ standard compliance. | |
7460 | ||
59f9c2ed JM |
7461 | 2010-06-16 Jason Merrill <jason@redhat.com> |
7462 | ||
7463 | * c.opt: Add -Wnoexcept. | |
7464 | ||
33766b66 RG |
7465 | 2010-06-16 Richard Guenther <rguenther@suse.de> |
7466 | ||
7467 | PR c/44555 | |
7468 | * c-common.c (c_common_truthvalue_conversion): Remove | |
7469 | premature and wrong optimization concering ADDR_EXPRs. | |
7470 | ||
eff7e30c AC |
7471 | 2010-06-15 Arnaud Charlet <charlet@adacore.com> |
7472 | ||
7473 | * c-ada-spec.c (dump_sloc): Remove column info. | |
7474 | (is_simple_enum): New function. | |
7475 | (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada | |
7476 | enum types when relevant. | |
7477 | ||
6312e84d MLI |
7478 | 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7479 | ||
9faeb493 | 7480 | * c-common.c (conversion_warning): Warn at expression |
6312e84d MLI |
7481 | location. |
7482 | ||
1cb42611 JM |
7483 | 2010-06-10 Joseph Myers <joseph@codesourcery.com> |
7484 | ||
7485 | * c-opts.c (c_common_handle_option): Don't handle | |
7486 | OPT_fshow_column. | |
7487 | ||
a9429e29 LB |
7488 | 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com> |
7489 | ||
7490 | * c-pragma.c (push_alignment): Use typed GC allocation. | |
7491 | (handle_pragma_push_options): Likewise. | |
7492 | ||
7493 | * c-common.c (parse_optimize_options): Likewise. | |
7494 | ||
7495 | * c-common.h (struct sorted_fields_type): Add variable_size GTY | |
7496 | option. | |
7497 | ||
5498f011 JM |
7498 | 2010-06-07 Joseph Myers <joseph@codesourcery.com> |
7499 | ||
7500 | * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin, | |
7501 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
7502 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
7503 | flag_signed_bitfields, warn_strict_null_sentinel, | |
7504 | flag_nil_receivers, flag_zero_link, flag_replace_objc_classes, | |
7505 | flag_gen_declaration, flag_no_gnu_keywords, | |
7506 | flag_implement_inlines, flag_implicit_templates, | |
7507 | flag_implicit_inline_templates, flag_optional_diags, | |
7508 | flag_elide_constructors, flag_default_inline, flag_rtti, | |
7509 | flag_conserve_space, flag_access_control, flag_check_new, | |
7510 | flag_new_for_scope, flag_weak, flag_working_directory, | |
7511 | flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr, | |
7512 | flag_enforce_eh_specs, flag_threadsafe_statics, | |
7513 | flag_pretty_templates): Remove. | |
7514 | * c-common.h (flag_preprocess_only, flag_nil_receivers, | |
7515 | flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link, | |
7516 | flag_replace_objc_classes, flag_undef, flag_no_builtin, | |
7517 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
7518 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
7519 | flag_const_strings, flag_signed_bitfields, flag_gen_declaration, | |
7520 | flag_no_gnu_keywords, flag_implement_inlines, | |
7521 | flag_implicit_templates, flag_implicit_inline_templates, | |
7522 | flag_optional_diags, flag_elide_constructors, flag_default_inline, | |
7523 | flag_rtti, flag_conserve_space, flag_access_control, | |
7524 | flag_check_new, flag_new_for_scope, flag_weak, | |
7525 | flag_working_directory, flag_use_cxa_atexit, | |
7526 | flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs, | |
7527 | flag_threadsafe_statics, flag_pretty_templates, | |
7528 | warn_strict_null_sentinel): Remove. | |
7529 | * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm, | |
7530 | fbuiltin, fcheck-new, fconserve-space, felide-constructors, | |
7531 | fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines, | |
7532 | fimplicit-inline-templates, fimplicit-templates, | |
7533 | flax-vector-conversions, fms-extensions, fnil-receivers, | |
7534 | fnonansi-builtins, fpretty-templates, freplace-objc-classes, | |
7535 | frtti, fshort-double, fshort-enums, fshort-wchar, | |
7536 | fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics, | |
7537 | funsigned-bitfields, funsigned-char, fuse-cxa-atexit, | |
7538 | fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link, | |
7539 | gen-decls, undef): Use Var. | |
7540 | (fdefault-inline, foptional-diags): Document as doing nothing. | |
7541 | * c-opts.c (c_common_handle_option): Remove cases for options now | |
7542 | using Var. Mark ignored options as such. | |
7543 | ||
39dabefd SB |
7544 | 2010-06-05 Steven Bosscher <steven@gcc.gnu.org> |
7545 | ||
9faeb493 | 7546 | * c-common.c: Moved to here from parent directory. |
39dabefd SB |
7547 | * c-common.def: Likewise. |
7548 | * c-common.h: Likewise. | |
7549 | * c-cppbuiltin.c: Likewise. | |
7550 | * c-dump.c: Likewise. | |
7551 | * c-format.c: Likewise. | |
7552 | * c-format.h : Likewise. | |
7553 | * c-gimplify.c: Likewise. | |
7554 | * c-lex.c: Likewise. | |
7555 | * c-omp.c: Likewise. | |
7556 | * c.opt: Likewise. | |
7557 | * c-opts.c: Likewise. | |
7558 | * c-pch.c: Likewise. | |
7559 | * c-ppoutput.c: Likewise. | |
7560 | * c-pragma.c: Likewise. | |
7561 | * c-pragma.h: Likewise. | |
7562 | * c-pretty-print.c: Likewise. | |
7563 | * c-pretty-print.h: Likewise. | |
7564 | * c-semantics.c: Likewise. | |
7565 | * stub-objc.c: Likewise. | |
7566 | ||
7567 | * c-common.c: Include gt-c-family-c-common.h. | |
7568 | * c-pragma.c: Include gt-c-family-c-pragma.h. | |
7569 | \f | |
cbe34bb5 | 7570 | Copyright (C) 2010-2017 Free Software Foundation, Inc. |
39dabefd SB |
7571 | |
7572 | Copying and distribution of this file, with or without modification, | |
7573 | are permitted in any medium without royalty provided the copyright | |
7574 | notice and this notice are preserved. |