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