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