]>
Commit | Line | Data |
---|---|---|
9e46467d | 1 | 2013-08-30 Marek Polacek <polacek@redhat.com> |
2 | ||
3 | * c-ubsan.c: New file. | |
4 | * c-ubsan.h: New file. | |
5 | ||
36a8d9b9 | 6 | 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net> |
7 | ||
8 | * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual | |
9 | member function. | |
10 | (c_pretty_printer::declaration_specifiers): Likewise. | |
11 | (c_pretty_printer::declarator): Likewise. | |
12 | (c_pretty_printer::abstract_declarator): Likewise. | |
13 | (c_pretty_printer::direct_abstract_declarator): Likewise. | |
14 | (c_pretty_printer::direct_declarator): Likewise. | |
15 | (c_pretty_printer::function_specifier): Likewise. | |
16 | (pp_declaration): Adjust. | |
17 | (pp_declaration_specifiers): Likewise. | |
18 | (pp_abstract_declarator): Likewise. | |
19 | (pp_direct_declarator): Likewise. | |
20 | (pp_function_specifier): Likewise. | |
21 | (pp_direct_abstract_declarator): Remove as unused. | |
22 | (pp_c_declaration): Remove. | |
23 | (pp_c_declaration_specifiers): Likewise. | |
24 | (pp_c_declarator): Likewise. | |
25 | (pp_c_direct_declarator): Likewise. | |
26 | (pp_c_function_specifier): Likewise. | |
27 | (pp_c_direct_abstract_declarator): Likewise. | |
28 | * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename | |
29 | from pp_c_abstract_declarator. Adjust. | |
30 | (c_pretty_printer::direct_abstract_declarator): Rename from | |
31 | pp_c_direct_abstract_declarator. Adjust. | |
32 | (c_pretty_printer::function_specifier): Rename from | |
33 | pp_c_function_specifier. Adjust. | |
34 | (c_pretty_printer::declaration_specifiers): Rename from | |
35 | pp_c_declaration_specifiers. Adjust. | |
36 | (c_pretty_printer::direct_declarator): Rename from | |
37 | pp_c_direct_declarator. Adjust. | |
38 | (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust. | |
39 | (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust. | |
40 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
41 | declaration, declaration_specifiers, declarator, | |
42 | direct_declarator, direct_abstract_declarator, function_specifier. | |
43 | ||
30635c2e | 44 | 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net> |
45 | ||
46 | * c-pretty-print.h (c_pretty_printer::unary_expression): Now a | |
47 | virtual member function. | |
48 | (c_pretty_printer::multiplicative_expression): Likewise. | |
49 | (c_pretty_printer::conditional_expression): Likewise. | |
50 | (c_pretty_printer::assignment_expression): Likewise. | |
51 | (c_pretty_printer::expression): Likewise. | |
52 | (pp_unary_expression): Adjust. | |
53 | (pp_multiplicative_expression): Likewise. | |
54 | (pp_assignment_expression): Likewise. | |
55 | (pp_conditional_expression): Likewise. | |
56 | (pp_expression): Likewise. | |
57 | * c-pretty-print.c (c_pretty_printer::unary_expression): Rename | |
58 | from pp_c_unary_expression. Adjust. | |
59 | (c_pretty_printer::multiplicative_expression): Rename from | |
60 | pp_c_multiplicative_expression. Adjust. | |
61 | (c_pretty_printer::conditional_expression): Rename from | |
62 | pp_c_conditional_expression. Adjust. | |
63 | (c_pretty_printer::assignment_expression): Rename from | |
64 | pp_c_assignment_expression. Adjust. | |
65 | (c_pretty_printer::expression): Rename from pp_c_expression. Adjust. | |
66 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
67 | unary_expression, multiplicative_expression, | |
68 | conditional_expression, expression. | |
69 | ||
027d08ed | 70 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
71 | ||
72 | * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a | |
73 | virtual member function. | |
74 | (pp_postfix_expression): Adjust. | |
75 | (pp_c_postfix_expression): Remove. | |
76 | * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename | |
77 | from pp_c_postfix_expression. Adjust. | |
78 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
79 | postfix_expression. | |
80 | ||
f873303a | 81 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
82 | ||
83 | * c-pretty-print.h (c_pretty_printer::primary_expression): Now a | |
84 | virtua member function. | |
85 | (pp_primary_expression): Adjust. | |
86 | (pp_c_primary_expression): Remove. | |
87 | * c-pretty-print.c (c_pretty_printer::primary_expression): Rename | |
88 | from pp_c_primary_expression. Adjust. | |
89 | (pp_c_initializer_list): Use pp_primary_expression. | |
90 | (c_pretty_printer::c_pretty_printer): Do not assign to | |
91 | primary_expression. | |
92 | ||
08e3e481 | 93 | 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net> |
94 | ||
95 | * c-pretty-print.h (c_pretty_printer::translate_string): Declare. | |
96 | * c-pretty-print.c (M_): Remove. | |
97 | (c_pretty_printer::translate_string): Define. | |
98 | (pp_c_type_specifier): Use it. | |
99 | (pp_c_primary_expression): Likewise. | |
100 | (pp_c_expression): Likewise. | |
101 | ||
1fc4a87f | 102 | 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net> |
103 | ||
104 | * c-pretty-print.h (c_pretty_printer::id_expression): Now a | |
105 | virtual function. | |
106 | (pp_c_id_expression): Remove. | |
107 | (pp_id_expression): Adjust. | |
108 | * c-pretty-print.c (c_pretty_printer::id_expression): Rename from | |
109 | pp_c_id_expression. Adjust. | |
110 | (pp_c_postfix_expression): Use pp_id_expression. | |
111 | (c_pretty_printer::c_pretty_printer): Do not assign to id_expression. | |
112 | ||
a6cb161b | 113 | 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net> |
114 | ||
115 | * c-pretty-print.h (c_pretty_printer::constant): Now a virtual | |
116 | member function. | |
117 | (pp_constant): Adjust. | |
118 | (pp_c_constant): Remove. | |
119 | * c-pretty-print.c (c_pretty_printer::constant): Rename from | |
120 | pp_c_constant. Adjust. | |
121 | (pp_c_constant) | |
122 | (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant. | |
123 | (c_pretty_printer::c_pretty_printer): Remove assignment to constant. | |
124 | ||
eed6bc21 | 125 | 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
126 | ||
127 | * c-pretty-print.h (pp_c_pretty_printer_init): Remove. | |
128 | (c_pretty_printer::c_pretty_printer): Declare. | |
129 | * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from | |
130 | c_pretty_printer_init. Adjust. | |
131 | (print_c_tree): Do not call c_pretty_printer_init. | |
132 | * c-ada-spec.c (dump_ads): Remove call to pp_construct. | |
133 | ||
df558d2e | 134 | 2013-08-09 Arnaud Charlet <charlet@adacore.com> |
135 | ||
136 | * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name | |
137 | ||
42f9a786 | 138 | 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com> |
139 | ||
140 | PR c++/58080 | |
141 | * c-common.c (pointer_int_sum): Add bool parameter. | |
142 | * c-common.h (pointer_int_sum): Adjust declaration. | |
143 | ||
f874ddad | 144 | 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net> |
145 | ||
146 | * c-pretty-print.c (print_c_tree): Simplify. Use non-static local | |
147 | c_pretty_printer variable. | |
148 | ||
a94db6b0 | 149 | 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
150 | ||
151 | * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer. | |
152 | (pp_base): Remove. | |
153 | (pp_c_base): Likewise. Adjust users. | |
154 | * c-pretty-print.c (pp_c_maybe_whitespace): Adjust. | |
155 | (pp_c_whitespace): Do not call pp_base. | |
156 | (pp_c_left_paren): Likewise. | |
157 | (pp_c_right_paren): Likewise. | |
158 | (pp_c_left_brace): Likewise. | |
159 | (pp_c_right_brace): Likewise. | |
160 | (pp_c_left_bracket): Likewise. | |
161 | (pp_c_right_bracket): Likewise. | |
162 | (pp_c_dot): Likewise. | |
163 | (pp_c_ampersand): Likewise. | |
164 | (pp_c_star): Likewise. | |
165 | (pp_c_arrow): Likewise. | |
166 | (pp_c_semicolon): Likewise. | |
167 | (pp_c_complement): Likewise. | |
168 | (pp_c_exclamation): Likewise. | |
169 | (pp_c_direct_declarator): Likewise. | |
170 | (pp_c_ws_string): Likewise. | |
171 | (pp_c_identifier): Likewise. | |
172 | (pp_c_statement): Likewise. | |
173 | (print_c_tree): Likewise. | |
174 | ||
1898176c | 175 | 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net> |
176 | ||
177 | PR c++/58072 | |
178 | * c-common.c (c_parse_error): Catch user-defined literal tokens and | |
179 | provide useful error strings. | |
180 | ||
70d60d1d | 181 | 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
182 | ||
183 | * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty | |
184 | printer functions instead of pp_string or operators and punctuators. | |
185 | (dump_generic_ada_node): Likewise. | |
186 | * c-pretty-print.c (pp_c_type_specifier): Likewise. | |
187 | (pp_c_relational_expression): Likewise. | |
188 | (pp_c_logical_or_expression): Likewise. | |
189 | ||
dda4f0ec | 190 | 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
191 | ||
192 | * c-ada-spec.c (print_ada_macros): Use specialized pretty printer | |
193 | functions instead of pp_character. | |
194 | (pp_ada_tree_identifier): Likewise. | |
195 | (dump_ada_double_name): Likewise. | |
196 | (dump_ada_function_declaration): Likewise. | |
197 | (dump_ada_array_domains): Likewise. | |
198 | (dump_template_types): Likewise. | |
199 | (dump_generic_ada_node): Likewise. | |
200 | (print_ada_declaration): Likewise. | |
201 | (print_ada_struct_decl): Likewise. | |
202 | * c-pretty-print.c (pp_c_integer_constant): Likewise. | |
203 | ||
7aa04c8d | 204 | 2013-07-23 Tom Tromey <tromey@redhat.com> |
205 | ||
206 | * c-common.h (enum rid) <RID_GENERIC>: New constant. | |
207 | * c-common.c (c_common_reswords): Add _Generic. | |
208 | ||
a04e8d62 | 209 | 2013-07-21 OndÅ\99ej BÃlka <neleai@seznam.cz> |
210 | ||
211 | * c-common.c: Fix typos. | |
212 | * c-common.h: Likewise. | |
213 | ||
a96c3cc1 | 214 | 2013-07-13 Lubos Lunak <l.lunak@suse.cz> |
215 | ||
216 | PR c++/55203 | |
217 | * c-common.c (c_common_attribute_table): Add warn_unused. | |
218 | (handle_warn_unused_attribute): New. | |
219 | ||
da31536d | 220 | 2013-07-10 Jakub Jelinek <jakub@redhat.com> |
221 | ||
222 | * c-ppoutput.c (scan_translation_unit): Call account_for_newlines | |
223 | for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT. | |
224 | ||
839f2f70 | 225 | 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com> |
226 | ||
227 | PR c++/57869 | |
228 | * c.opt: Add Wconditionally-supported. | |
229 | ||
73f353d0 | 230 | 2013-07-08 Graham Stott <graham.stott@btinternet.com> |
231 | ||
232 | * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete | |
233 | unused variables l_length and l_node. | |
234 | ||
f5298614 | 235 | 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com> |
236 | ||
237 | PR c/57821 | |
238 | * c-common.c (complete_array_type): Delay folding first index | |
239 | like other indices. When folding, check for index overflow. | |
240 | ||
68ea4406 | 241 | 2013-06-27 Marc Glisse <marc.glisse@inria.fr> |
242 | ||
243 | PR c++/57509 | |
244 | * c-common.h (c_build_vec_perm_expr): New complain argument. | |
245 | * c-common.c (c_build_vec_perm_expr): Likewise. | |
246 | Use save_expr also in C++. | |
247 | ||
60777f69 | 248 | 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
249 | ||
250 | * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x. | |
251 | * c-cppbuiltin.c (c_cpp_builtins): Likewise. | |
252 | * c-opts.c (c_common_post_options): Likewise. | |
253 | ||
839f2f70 | 254 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
50acebe0 | 255 | |
256 | * array-notation-common.c (length_mismatch_in_expr): Changed the | |
257 | parameter type's from a dynamic array to a vec_tree. Also removed | |
258 | the size parameters. | |
259 | * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per | |
260 | the change above. | |
261 | ||
e9331eab | 262 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
263 | ||
264 | * c-common.h (struct cilkplus_an_parts): New structure. | |
265 | (struct cilkplus_an_loop_parts): Likewise. | |
266 | (cilkplus_extract_an_triplets): New prototype. | |
267 | (fix_sec_implicit_args): Likewise. | |
268 | * array-notation-common.c (cilkplus_extract_an_triplets): New function. | |
269 | (fix_sec_implicit_args): Likewise. | |
60777f69 | 270 | |
a9c99fc4 | 271 | 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com> |
272 | ||
273 | * array-notation-common.c (find_inv_trees): Removed an unwanted | |
274 | typecasting. | |
275 | * c-common.h (struct inv_list::additional_tcodes): Changed type from | |
276 | enum rid to enum tree_code. | |
277 | ||
f2526cce | 278 | 2013-06-11 Jan Hubicka <jh@suse.cz> |
279 | ||
280 | * c-common.c (handle_alias_ifunc_attribute): Do not set | |
281 | DECL_EXTERNAL for weakref variables. | |
282 | * c-pragma.c (handle_pragma_weak): Make sure aliases | |
283 | are not declared as external. | |
284 | ||
09970d67 | 285 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
286 | ||
287 | * array-notation-common.c (length_mismatch_in_expr_p): Moved this | |
288 | function from c/c-array-notation.c. | |
289 | (is_cilkplus_reduce_builtin): Likewise. | |
290 | (find_rank): Likewise. | |
291 | (extract_array_notation_exprs): Likewise. | |
292 | (replace_array_notations): Likewise. | |
293 | (find_inv_trees): Likewise. | |
294 | (replace_inv_trees): Likewise. | |
295 | (contains_array_notation_expr): Likewise. | |
296 | (find_correct_array_notation_type): Likewise. | |
297 | * c-common.h (struct inv_list): Moved this struct from the file | |
298 | c/c-array-notation.c and added a new field called additional tcodes. | |
299 | (length_mismatch_in_expr_p): New prototype. | |
300 | (is_cilkplus_reduce_builtin): Likewise. | |
301 | (find_rank): Likewise. | |
302 | (extract_array_notation_exprs): Likewise. | |
303 | (replace_array_notation): Likewise. | |
304 | (find_inv_trees): Likewise. | |
305 | (replace_inv_trees): Likewise. | |
306 | (find_correct_array_notation_type): Likewise. | |
839f2f70 | 307 | |
3c6d4197 | 308 | 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
309 | ||
310 | * c-common.c (c_define_builtins): When cilkplus is enabled, the | |
311 | function array_notation_init_builtins is called. | |
312 | (c_common_init_ts): Added ARRAY_NOTATION_REF as typed. | |
313 | * c-common.def (ARRAY_NOTATION_REF): New tree. | |
314 | * c-common.h (build_array_notation_expr): New function declaration. | |
315 | (build_array_notation_ref): Likewise. | |
316 | (extract_sec_implicit_index_arg): New extern declaration. | |
317 | (is_sec_implicit_index_fn): Likewise. | |
318 | (ARRAY_NOTATION_CHECK): New define. | |
319 | (ARRAY_NOTATION_ARRAY): Likewise. | |
320 | (ARRAY_NOTATION_START): Likewise. | |
321 | (ARRAY_NOTATION_LENGTH): Likewise. | |
322 | (ARRAY_NOTATION_STRIDE): Likewise. | |
323 | * c-pretty-print.c (pp_c_postifix_expression): Added a new case for | |
324 | ARRAY_NOTATION_REF. | |
325 | (pp_c_expression): Likewise. | |
326 | * c.opt (flag_enable_cilkplus): New flag. | |
327 | * array-notation-common.c: New file. | |
328 | ||
8e71dad2 | 329 | 2013-05-14 Jakub Jelinek <jakub@redhat.com> |
330 | ||
331 | PR c++/57274 | |
332 | * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR. | |
333 | ||
432dd330 | 334 | 2013-05-10 Marc Glisse <marc.glisse@inria.fr> |
335 | ||
336 | * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for | |
337 | vectors. | |
338 | ||
b156ec37 | 339 | 2013-05-07 Han Shen <shenhan@google.com> |
340 | ||
341 | * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3". | |
342 | ||
1a087624 | 343 | 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
344 | ||
345 | * c-common.c (check_user_alignment): Emit error for negative values. | |
346 | ||
1638c736 | 347 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
348 | ||
349 | * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y. | |
350 | ||
949dbf93 | 351 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
352 | ||
353 | * c-cppbuiltin.c (c_cpp_builtins): Do not define | |
354 | __GXX_EXPERIMENTAL_CXX1Y__. | |
355 | ||
9205a6cc | 356 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
357 | Manuel Lopez-Ibanez <manu@gcc.gnu.org> | |
358 | ||
359 | * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented. | |
360 | * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns | |
361 | to simply use OPT_Wpointer_arith. | |
362 | (c_sizeof_or_alignof_type): Likewise. | |
363 | ||
05d0bce1 | 364 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
365 | ||
366 | * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__. | |
367 | ||
41609f8b | 368 | 2013-04-12 Jakub Jelinek <jakub@redhat.com> |
369 | ||
370 | * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table, | |
371 | gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format | |
372 | specifiers. | |
373 | ||
c671dc4f | 374 | 2013-04-07 Steven Bosscher <steven@gcc.gnu.org> |
375 | ||
376 | * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment. | |
377 | ||
ba125576 | 378 | 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com> |
379 | ||
380 | * c-common.c (pointer_int_sum): Remove dead code. | |
381 | ||
9d3fa937 | 382 | 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com> |
383 | ||
384 | PR middle-end/56524 | |
385 | * c-common.c (handle_optimize_attribute): Don't call | |
386 | save_optabs_if_changed. | |
387 | ||
5ceebb21 | 388 | 2013-03-05 Jakub Jelinek <jakub@redhat.com> |
389 | ||
390 | PR middle-end/56461 | |
391 | * c-pch.c (pch_init): Free target_validity at the end. | |
392 | ||
18eeed2b | 393 | 2013-03-04 Jakub Jelinek <jakub@redhat.com> |
394 | ||
395 | * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags. | |
396 | ||
a9196da9 | 397 | 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com> |
398 | Jakub Jelinek <jakub@redhat.com> | |
399 | ||
400 | PR sanitizer/56454 | |
401 | * c-common.c (handle_no_sanitize_address_attribute): New function. | |
402 | (c_common_attribute_table): Add no_sanitize_address attribute. | |
403 | (handle_no_address_safety_analysis_attribute): Add | |
404 | no_sanitize_address attribute, not no_address_safety_analysis | |
405 | attribute. | |
406 | ||
15c27dda | 407 | 2013-02-18 Aldy Hernandez <aldyh@redhat.com> |
08c7d04b | 408 | |
409 | PR target/52555 | |
410 | * c-common.c (handle_optimize_attribute): Call | |
411 | save_optabs_if_changed. | |
412 | ||
19426fe1 | 413 | 2013-02-18 Jakub Jelinek <jakub@redhat.com> |
414 | Steven Bosscher <steven@gcc.gnu.org> | |
415 | ||
416 | PR pch/54117 | |
417 | * c-opts.c (c_common_post_options): If debug info is enabled | |
418 | and non-dwarf*, refuse to load PCH files and when writing PCH | |
419 | file warn. | |
420 | ||
df936998 | 421 | 2013-02-05 Jakub Jelinek <jakub@redhat.com> |
422 | ||
423 | PR middle-end/56167 | |
424 | * c-common.c (handle_error_attribute): Fix condition. | |
425 | ||
ae0c3984 | 426 | 2013-01-30 Jakub Jelinek <jakub@redhat.com> |
427 | ||
428 | PR c++/55742 | |
429 | * c-common.c (handle_target_attribute): Revert 2012-12-26 change. | |
430 | ||
1c4973d7 | 431 | 2013-01-18 Jason Merrill <jason@redhat.com> |
432 | ||
433 | PR target/54908 | |
434 | * c.opt (-fextern-tls-init): New. | |
435 | * c-opts.c (c_common_post_options): Handle it. | |
436 | ||
7c834436 | 437 | 2013-01-09 Jakub Jelinek <jakub@redhat.com> |
438 | ||
439 | PR c/48418 | |
440 | * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and | |
441 | RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST | |
442 | and is either negative or bigger or equal to type precision | |
443 | of the first operand. | |
444 | ||
5abaa10a | 445 | 2012-12-03 Marek Polacek <polacek@redhat.com> |
446 | ||
447 | PR c/55570 | |
448 | * c-common.c (check_user_alignment): Swap order of tests, | |
449 | check TREE_CODE first. | |
450 | ||
324ca377 | 451 | 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net> |
452 | ||
453 | PR c++/52654 | |
454 | * c-common.h (overflow_type): New enum. | |
455 | (build_userdef_literal): Add overflow_type argument. | |
456 | (tree_userdef_literal): Add overflow_type. | |
457 | (USERDEF_LITERAL_OVERFLOW): New access macro. | |
458 | * c-common.c (build_userdef_literal): Add overflow_type | |
459 | argument. | |
460 | * c-lex.c (c_lex_with_flags): Add overflow_type to | |
461 | build_userdef_literal calls. | |
462 | (interpret_integer, interpret_float): Add overflow_type argument. | |
463 | ||
b4c4a429 | 464 | 2012-11-28 Richard Biener <rguenther@suse.de> |
465 | ||
466 | PR c/35634 | |
467 | * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions | |
468 | here and use a type with proper overflow behavior for types that would | |
469 | need to be promoted for the arithmetic. | |
470 | ||
d413ffdd | 471 | 2012-11-23 Jakub Jelinek <jakub@redhat.com> |
472 | ||
473 | PR sanitizer/55435 | |
474 | * c-common.c (handle_no_address_safety_analysis_attribute): New | |
475 | function. | |
476 | (c_common_attribute_table): Add no_address_safety_analysis. | |
477 | ||
52bc861d | 478 | 2012-11-16 Simon Baldwin <simonb@google.com> |
479 | ||
480 | * c.opt: Add f[no-]canonical-system-headers. | |
481 | * c-opts.c (c_common_handle_option): Handle | |
482 | OPT_fcanonical_system_headers. | |
483 | ||
2dd00636 | 484 | 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net> |
485 | ||
486 | PR c++/54413 | |
487 | * c-opts.c (c_common_handle_option): Set new flags. | |
488 | * c.opt: Describe new flags. | |
489 | ||
d4701f6c | 490 | 2012-11-09 Jason Merrill <jason@redhat.com> |
491 | ||
492 | * c.opt (Wabi-tag): New. | |
493 | ||
72d65da9 | 494 | 2012-11-09 Andi Kleen <ak@linux.intel.com> |
495 | ||
496 | PR 55139 | |
497 | * c-common.c (get_atomic_generic_size): Mask with | |
498 | MEMMODEL_MASK | |
499 | ||
77a357e3 | 500 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
501 | ||
502 | PR c/53063 | |
503 | * c.opt (Wformat): Make it Alias Wformat=1. | |
504 | (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral, | |
505 | Wformat-security,Wformat-y2k,Wformat-zero-length): Use | |
506 | LangEnabledBy. | |
507 | (Wformat=): RejectNegative. Use LangEnabledBy. | |
508 | (Wnonnull): Use LangEnabledBy. | |
509 | * c-opts.c (c_common_handle_option): Do not handle Wformat here. | |
510 | * c-format.c (set_Wformat): Delete. | |
511 | (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_. | |
512 | (maybe_read_dollar_number): Likewise. | |
513 | (avoid_dollar_number): Likewise. | |
514 | (finish_dollar_format_checking): Likewise. | |
515 | (check_format_info): Likewise. | |
516 | (check_format_info_main): Likewise. | |
517 | (check_format_types): Likewise. | |
518 | (format_type_warning): Likewise. | |
519 | * c-common.c (int): Likewise. | |
520 | (check_function_sentinel): Likewise. | |
521 | * c-common.h (warn_format,set_Wformat): Do not declare here. | |
522 | ||
45efa6b9 | 523 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
524 | ||
525 | PR c/53063 | |
526 | * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare, | |
527 | Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros): | |
528 | Use LangEnabledBy. | |
529 | (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from | |
530 | common.opt. | |
531 | (Wvariadic-macros): Init(1). | |
532 | * c-opts.c (c_common_handle_option): Do not handle them | |
533 | explicitly. | |
534 | (c_common_post_options): Likewise. | |
535 | (sanitize_cpp_opts): warn_unused_macros is now | |
536 | cpp_warn_unused_macros. | |
537 | (push_command_line_include): Likewise. | |
538 | * c-common.c (warn_unknown_pragmas): Do not define. | |
539 | * c-common.h (warn_unknown_pragmas): Do not declare. | |
540 | ||
0e4e775a | 541 | 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
542 | ||
543 | PR c/51294 | |
544 | * c-common.c (conversion_warning): Handle conditional expressions. | |
545 | ||
8b447d3f | 546 | 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com> |
547 | ||
548 | PR c++/54930 | |
549 | * c.opt (Wreturn_local_addr): Define new option. | |
550 | ||
f4a61754 | 551 | 2012-10-25 Jason Merrill <jason@redhat.com> |
552 | ||
ecb10e6a | 553 | * c.opt (Wvirtual-move-assign): New. |
554 | ||
f4a61754 | 555 | * c.opt (Winherited-variadic-ctor): New. |
556 | ||
7b463b19 | 557 | 2012-10-25 Marc Glisse <marc.glisse@inria.fr> |
558 | ||
559 | PR c++/54427 | |
560 | * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR. | |
561 | ||
6adc88f8 | 562 | 2012-10-23 Joseph Myers <joseph@codesourcery.com> |
563 | ||
564 | * c-common.h (pch_cpp_save_state): Declare. | |
565 | * c-target.def (c_preinclude): New hook. | |
566 | * c-opts.c (done_preinclude): New. | |
567 | (push_command_line_include): Handle default preincluded header. | |
568 | (cb_file_change): Call pch_cpp_save_state when calling | |
569 | push_command_line_include. | |
570 | * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved) | |
571 | (pch_cpp_save_state): New. | |
572 | (pch_init): Call pch_cpp_save_state conditionally, instead of | |
573 | calling cpp_save_state. | |
574 | ||
fa816b0b | 575 | 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org> |
576 | ||
577 | PR c/53063 | |
578 | PR c/40989 | |
579 | * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit, | |
580 | Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess, | |
581 | Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point, | |
582 | Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused, | |
583 | Wvolatile-register-var): Add LangEnabledBy or EnabledBy. | |
584 | * c-opts.c (c_common_handle_option): Remove explicit handling from | |
585 | here. | |
586 | (c_common_post_options): Likewise. | |
587 | ||
d214ccee | 588 | 2012-10-18 Eric Botcazou <ebotcazou@adacore.com> |
589 | ||
590 | * c-ada-spec.c (LOCATION_COL): Delete. | |
591 | (compare_location): New function. | |
592 | (compare_node): Use it. | |
593 | (compare_comment): Likewise. | |
594 | ||
77b27208 | 595 | 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org> |
596 | ||
597 | PR c/53063 | |
598 | PR c/40989 | |
599 | * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy. | |
600 | * c-opts.c (c_common_handle_option): Do not set them here. Add | |
601 | comment. | |
602 | (c_common_post_options): Likewise. | |
603 | ||
cc02ca4d | 604 | 2012-10-16 Eric Botcazou <ebotcazou@adacore.com> |
605 | ||
606 | * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define. | |
607 | (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially. | |
608 | Remove POINTER_TYPE handling, add large unsigned handling and use | |
609 | ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers. | |
610 | ||
57f872a2 | 611 | 2012-10-12 Jakub Jelinek <jakub@redhat.com> |
612 | ||
613 | PR c/54381 | |
614 | * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype. | |
615 | * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3 | |
616 | locs and array of 3 trees instead of just single loc and single | |
617 | sizeof_arg tree. Handle __builtin___*_chk builtins too, and | |
618 | also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins. | |
619 | For *cmp* builtins that take two sources strings report warnings | |
620 | about first and second source, not about destination and source. | |
621 | ||
7354ad2e | 622 | 2012-10-12 Marc Glisse <marc.glisse@inria.fr> |
623 | ||
624 | PR c++/53055 | |
625 | * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New. | |
626 | ||
1ac7f120 | 627 | 2012-10-11 Eric Botcazou <ebotcazou@adacore.com> |
628 | ||
629 | * c-ada-spec.c (dump_ada_template): Bail out for template declarations | |
630 | declaring something coming from another file. | |
631 | ||
1e0cc9e3 | 632 | 2012-10-10 Arnaud Charlet <charlet@adacore.com> |
633 | ||
1ac7f120 | 634 | PR ada/54845 |
1e0cc9e3 | 635 | * c-ada-spec.c (print_ada_struct_decl): Increase buf size. |
636 | ||
b0e7825e | 637 | 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com> |
638 | ||
639 | PR c++/54194 | |
640 | * c-common.c (warn_about_parentheses): Add location_t parameter; | |
641 | use EXPR_LOC_OR_LOC. | |
642 | * c-common.h: Update declaration. | |
643 | ||
41ed701a | 644 | 2012-10-09 Marc Glisse <marc.glisse@inria.fr> |
645 | ||
646 | PR c++/54427 | |
647 | * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support | |
648 | more operations. Make error messages optional. | |
649 | * c-common.h (enum stv_conv): Moved from c-typeck.c. | |
650 | (scalar_to_vector): Declare. | |
651 | ||
3740094c | 652 | 2012-10-08 Jason Merrill <jason@redhat.com> |
653 | ||
654 | * c-common.c (c_common_reswords): Add thread_local. | |
655 | ||
ffcdbf9c | 656 | 2012-10-08 Dodji Seketeli <dodji@redhat.com> |
657 | ||
658 | PR c++/53528 C++11 attribute support | |
659 | * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare | |
660 | new functions. | |
661 | * c-common.c (check_cxx_fundamental_alignment_constraints): New | |
662 | static function. | |
663 | (handle_aligned_attribute): In choose strictest alignment | |
664 | among many. Use new check_cxx_fundamental_alignment_constraints. | |
665 | (handle_transparent_union_attribute): In c++11 attribute syntax, | |
666 | don't look through typedefs. | |
667 | ||
ef34afc1 | 668 | 2012-10-04 Arnaud Charlet <charlet@adacore.com> |
669 | ||
670 | * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW. | |
671 | * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition | |
672 | out of dumpfile.h. | |
673 | ||
f1ff4562 | 674 | 2012-09-25 Dehao Chen <dehao@google.com> |
675 | ||
676 | PR middle-end/54645 | |
ef34afc1 | 677 | * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data |
f1ff4562 | 678 | map when read in the pch. |
679 | ||
735538a1 | 680 | 2012-09-18 Arnaud Charlet <charlet@adacore.com> |
681 | ||
682 | * c-ada-spec.c: Style fixes. | |
683 | ||
9120cdc8 | 684 | 2012-09-18 Thomas Quinot <quinot@adacore.com> |
685 | ||
686 | * c.opt (-fada-spec-parent): Define new command line switch. | |
687 | * c-ada-spec.c (get_ada_package): When -fada-spec-parent | |
688 | is specified, generate binding spec as a child of the specified unit. | |
689 | ||
8eba82c2 | 690 | 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com> |
691 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
692 | ||
693 | PR c++/53210 | |
694 | * c.opt ([Winit-self]): Enabled by -Wall in C++. | |
695 | ||
38682990 | 696 | 2012-08-23 Arnaud Charlet <charlet@adacore.com> |
697 | ||
698 | * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only | |
699 | for pointers, and add missing Convention C pragma. | |
700 | (print_ada_struct_decl): Add missing aliased keyword. | |
701 | (dump_ads): Add pragma Ada_2005 and Style_Checks (Off). | |
702 | ||
f003f5dc | 703 | 2012-08-17 Jakub Jelinek <jakub@redhat.com> |
704 | ||
705 | * c-common.c (sizeof_pointer_memaccess_warning): New function. | |
706 | * c.opt (-Wsizeof-pointer-memaccess): Add new option. | |
707 | * c-opts.c (c_common_handle_option): Enable it for -Wall. | |
708 | * c-common.h (sizeof_pointer_memaccess_warning): Add prototype. | |
709 | * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def. | |
710 | ||
ec11736b | 711 | 2012-08-10 Richard Guenther <rguenther@suse.de> |
712 | ||
713 | * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names. | |
714 | ||
5f7f600e | 715 | 2012-08-07 Steven Bosscher <steven@gcc.gnu.org> |
716 | ||
717 | * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush | |
718 | instead of separate pp_newline and pp_flush. | |
719 | (print_c_tree): Likewise. | |
720 | ||
758a38ab | 721 | 2012-07-26 Richard Henderson <rth@redhat.com> |
722 | ||
723 | * c-common.c (handle_hot_attribute): Allow labels. | |
724 | (handle_cold_attribute): Likewise. | |
725 | ||
9ca77b08 | 726 | 2012-07-20 Jakub Jelinek <jakub@redhat.com> |
727 | ||
728 | PR c++/28656 | |
729 | * c-common.c (check_function_nonnull): Handle multiple nonnull | |
730 | attributes properly. | |
731 | ||
b9ed1410 | 732 | 2012-07-16 Steven Bosscher <steven@gcc.gnu.org> |
733 | ||
734 | * c-gimplify.c: Include dumpfile.h instead of tree-dump.h. | |
735 | * c-ada-spec.c: Likewise. | |
736 | * c-dump.c (dump_stmt): Move to cp/dump.c, the only user. | |
737 | ||
c2a65b90 | 738 | 2012-07-14 Steven Bosscher <steven@gcc.gnu.org> |
739 | ||
740 | * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define. | |
741 | Remove code conditional on it. | |
742 | ||
88c5a1d1 | 743 | 2012-07-11 Steven Bosscher <steven@gcc.gnu.org> |
744 | ||
745 | * c-gimplify.c: Do not include basic-block.h. | |
746 | * c-common.c: Do not include linfuncs.h. | |
747 | ||
4a020a8c | 748 | 2012-07-08 Steven Bosscher <steven@gcc.gnu.org> |
749 | ||
750 | * c-common.h: Include tree.h. | |
751 | ||
c28ddc97 | 752 | 2012-07-02 Jason Merrill <jason@redhat.com> |
753 | ||
754 | PR c++/53524 | |
755 | * c-common.c (get_priority): Call default_conversion. | |
756 | ||
405ed67f | 757 | 2012-07-01 Uros Bizjak <ubizjak@gmail.com> |
758 | ||
759 | * c-pch.c (c_common_write_pch): Remove unused variables. | |
760 | ||
e53d55e7 | 761 | 2012-06-29 Steven Bosscher <steven@gcc.gnu.org> |
762 | ||
763 | * cppspec.c: Moved from gcc/ to here. | |
764 | ||
3d9c25ec | 765 | 2012-06-27 Kai Tietz <ktietz@redhat.com> |
766 | ||
767 | PR preprocessor/37215 | |
768 | * c-ppoutput.c (preprocess_file): Check for nonempty buffer. | |
769 | ||
3169c57a | 770 | 2012-06-21 Steven Bosscher <steven@gcc.gnu.org> |
771 | ||
772 | * c-common.h (c_common_print_pch_checksum): Remove. | |
773 | * c-pch.c: Do not include output.h. | |
774 | (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME. | |
775 | (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined. | |
776 | (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined. | |
777 | (struct c_pch_header): Remove. | |
778 | (get_ident): Update gpch version. | |
779 | (pch_init): Do not print executable_checksum to asm_out_file. | |
780 | Do not fail if there is no asm_out_file to read back from. Set | |
781 | asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined. | |
782 | (c_common_write_pch): Verify that nothing was written to asm_out_file | |
783 | since pch_init was called. Do not write a c_pch_header, and do not | |
784 | copy from asm_out_file to the PCH. | |
785 | (c_common_read_pch): Do not read a c_pch_header, and do not restore | |
786 | the content of asm_out_file from the PCH. | |
787 | (c_common_print_pch_checksum): Remove. | |
788 | * c-opts.c (c_common_init): Print out executable_checksum directly. | |
789 | ||
ff6624bc | 790 | 2012-06-19 Steven Bosscher <steven@gcc.gnu.org> |
791 | ||
792 | * c-target.def (objc_declare_unresolved_class_reference, | |
793 | objc_declare_class_definition): Add new hooks. | |
794 | ||
367b1459 | 795 | 2012-06-19 Steven Bosscher <steven@gcc.gnu.org> |
796 | ||
797 | * c-lex.c: Do not include output.h. | |
798 | (cb_ident): Try to put out .ident with targetm.asm_out.output_ident. | |
799 | Remove uses of ASM_OUTPUT_IDENT. | |
800 | ||
bf0cb017 | 801 | 2012-06-15 Marc Glisse <marc.glisse@inria.fr> |
802 | ||
803 | PR c++/51033 | |
804 | * c-common.h (c_build_vec_perm_expr): Move decl here. | |
805 | * c-common.c (c_build_vec_perm_expr): Move definition | |
806 | here. | |
807 | ||
b37a3600 | 808 | 2012-06-06 Steven Bosscher <steven@gcc.gnu.org> |
809 | ||
810 | * c.opt (fconserve-space): Turn into a no-op. | |
811 | ||
19931eea | 812 | 2012-06-04 Sterling Augustine <saugustine@google.com> |
5f9e7dd5 | 813 | |
814 | * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator. | |
815 | * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at | |
816 | both the start and end of the function. | |
817 | ||
dff12c10 | 818 | 2012-06-04 Steven Bosscher <steven@gcc.gnu.org> |
819 | ||
820 | * c-common.c: Do not include output.h. | |
821 | * c-pragma.c: Likewise. | |
822 | ||
5f9e7dd5 | 823 | 2012-06-04 Steven Bosscher <steven@gcc.gnu.org> |
824 | ||
825 | * error.c (dump_decl): Check pp_c_flag_gnu_v3. | |
826 | (decl_as_dwarf_string, lang_decl_dwarf_name): New functions. | |
827 | (lang_decl_name): Handle namespace decls. | |
828 | ||
b5369b7d | 829 | 2012-05-31 Steven Bosscher <steven@gcc.gnu.org> |
830 | ||
831 | * c-ada-spec.c: Do not include output.h. | |
832 | * c-semantics.c: Likewise. | |
833 | ||
8032877c | 834 | 2012-05-29 Joseph Myers <joseph@codesourcery.com> |
835 | ||
836 | * c-common.c: Fix typo. | |
837 | ||
7843e4bc | 838 | 2012-05-29 Michael Matz <matz@suse.de> |
839 | ||
840 | * c-common.h (c_expand_decl): Remove prototype. | |
841 | ||
8cf857d4 | 842 | 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
843 | ||
844 | * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall). | |
845 | * c-opts.c (c_common_handle_option): Remove code handling | |
846 | warn_missing_braces. | |
847 | ||
8b64dc3c | 848 | 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com> |
849 | ||
850 | PR c++/25137 | |
851 | * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable | |
852 | -Wmissing_braces. | |
853 | ||
43cbde16 | 854 | 2012-05-22 Dodji Seketeli <dodji@redhat.com> |
855 | ||
856 | PR c++/53322 | |
857 | * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused). | |
858 | ||
db490cb6 | 859 | 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org> |
860 | ||
861 | * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here. | |
862 | * c-opts.c (c_common_handle_option): Do not handle explicitly | |
863 | Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors. | |
864 | ||
a60f3e81 | 865 | 2012-05-16 Dodji Seketeli <dodji@redhat.com> |
866 | ||
867 | PR preprocessor/7263 | |
868 | * c-lex.c (c_lex_with_flags): Pass a virtual location to the call | |
869 | to cpp_classify_number. For diagnostics, use the precise location | |
870 | instead of the global input_location. | |
871 | ||
82e6ef7c | 872 | 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com> |
873 | ||
cd4797ff | 874 | PR c++/11856 |
82e6ef7c | 875 | * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings. |
876 | ||
258a168d | 877 | 2012-05-14 Bernd Schmidt <bernds@codesourcery.com> |
878 | ||
82e6ef7c | 879 | * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary. |
258a168d | 880 | |
d3b7ee7c | 881 | 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org> |
882 | ||
883 | PR 53063 | |
884 | * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init, | |
885 | Wreorder): Use LangEnabledBy. | |
886 | * c-opts.c (c_common_handle_option): Do not enable them | |
887 | explicitly. Call lang-specific generated functions. | |
888 | (c_common_post_options): Do not set them here. | |
889 | ||
70059cea | 890 | 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org> |
891 | ||
892 | * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers, | |
893 | Wmissing-field-initializers,Wmissing-parameter-type, | |
894 | Wold-style-declaration,Woverride-init): Use EnabledBy. | |
895 | * c-opts.c (c_common_post_options): Do not set here explicitly. | |
896 | ||
fbb6fbd8 | 897 | 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
898 | ||
899 | PR 53063 | |
900 | * c-opts.c (c_common_handle_option): Use handle_generated_option | |
901 | to enable sub-options. | |
902 | ||
61f69bc9 | 903 | 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com> |
904 | ||
905 | PR c++/53158 | |
906 | * c-common.c (warnings_for_convert_and_check): Use warning_at. | |
907 | ||
5a1fe2db | 908 | 2012-05-10 Richard Guenther <rguenther@suse.de> |
909 | ||
910 | * c-common.c (c_sizeof_or_alignof_type): Remove assert and | |
911 | adjust commentary about TYPE_IS_SIZETYPE types. | |
912 | ||
d42e7c5a | 913 | 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org> |
914 | ||
915 | PR c++/53261 | |
916 | * c-common.c (warn_logical_operator): Check that argument of | |
917 | integer_zerop is not NULL. | |
918 | ||
686369e8 | 919 | 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org> |
920 | ||
921 | PR c/43772 | |
922 | * c-common.c (warn_logical_operator): Do not warn if either side | |
923 | is already true or false. | |
924 | ||
03fe1dc2 | 925 | 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org> |
926 | ||
927 | PR c/51712 | |
928 | * c-common.c (expr_original_type): New. | |
929 | (shorten_compare): Do not warn for enumeration types. | |
930 | ||
bba5a206 | 931 | 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
932 | ||
933 | * c.opt (fpermissive): Add Var(flag_permissive). | |
934 | ||
7059d45d | 935 | 2012-04-30 Marc Glisse <marc.glisse@inria.fr> |
936 | ||
937 | PR c++/51033 | |
938 | * c-common.c (convert_vector_to_pointer_for_subscript): New function. | |
939 | * c-common.h (convert_vector_to_pointer_for_subscript): Declare it. | |
940 | ||
7edb1062 | 941 | 2012-04-30 Dodji Seketeli <dodji@redhat.com> |
942 | ||
943 | Add -Wvarargs option | |
944 | * c.opt (Wvarargs): Define new option. | |
945 | ||
068bea1e | 946 | 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
947 | ||
948 | * c-common.c (check_function_arguments): Replace | |
949 | Wmissing-format-attribute with Wsuggest-attribute=format. | |
950 | ||
b86527d8 | 951 | 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
952 | ||
953 | * c.opt (Wsuggest-attribute=format): New. Alias of | |
954 | Wmissing-format-attribute. | |
955 | * c-format.c (decode_format_type): Replace | |
956 | Wmissing-format-attribute with Wsuggest-attribute=format. | |
957 | (check_function_format): Likewise. | |
958 | ||
19931eea | 959 | 2012-04-27 Ollie Wild <aaw@google.com> |
76d340ac | 960 | |
961 | * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping. | |
962 | * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix. | |
963 | * c.opt: Add Wliteral-suffix. | |
964 | ||
29438999 | 965 | 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org> |
966 | ||
967 | PR c/44774 | |
968 | * c.opt (Wpedantic): New. | |
969 | (pedantic): Alias Wpedantic. | |
970 | * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic. | |
971 | (c_common_post_options): Likewise. | |
972 | (sanitize_cpp_opts): Likewise. | |
973 | * c-lex.c (interpret_float): Likewise. | |
974 | * c-format.c (check_format_types): Likewise. | |
975 | * c-common.c (pointer_int_sum): Likewise. | |
976 | (c_sizeof_or_alignof_type): Likewise. | |
977 | (c_add_case_label): Likewise. | |
978 | (c_do_switch_warnings): Likewise. | |
979 | * c-pragma.c (handle_pragma_float_const_decimal64): Likewise. | |
980 | ||
4f9d6b8b | 981 | 2012-04-15 Jason Merrill <jason@redhat.com> |
982 | ||
983 | PR c++/52818 | |
984 | * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99. | |
985 | (C_STD_NAME): Distinguish between C++98 and C++11. | |
986 | ||
74bdbe96 | 987 | 2012-04-11 Eric Botcazou <ebotcazou@adacore.com> |
988 | ||
989 | PR target/52624 | |
990 | * c-common.h (uint16_type_node): Rename into... | |
991 | (c_uint16_type_node): ...this. | |
992 | * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming. | |
993 | * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise. | |
994 | ||
3d177e8c | 995 | 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org> |
996 | ||
997 | * c-common.c (warn_if_unused_value): Move definition to here. | |
998 | * c-common.h (warn_if_unused_value): Move declaration to here. | |
999 | ||
6a9a958f | 1000 | 2012-03-23 William Bader <williambader@hotmail.com> |
1001 | ||
1002 | * c-lex.c (c_lex_with_flags): Avoid declarations after stmts. | |
1003 | ||
543efdbe | 1004 | 2012-03-20 Jason Merrill <jason@redhat.com> |
1005 | ||
1006 | * c-common.h (enum cxx_dialect): Add cxx1y. | |
1007 | * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect | |
1008 | test. | |
1009 | * c-cppbuiltin.c (c_cpp_builtins): Likewise. | |
1010 | * c-opts.c (c_common_post_options): Likewise. | |
1011 | (set_std_cxx1y): New. | |
1012 | (c_common_handle_option): Call it. | |
1013 | * c.opt (-std=c++1y, -std=gnu++1y): New flags. | |
1014 | ||
62206d34 | 1015 | 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com> |
1016 | ||
1017 | PR c++/14710 | |
1018 | * c.opt ([Wuseless-cast]): Add. | |
1019 | ||
fadf62f4 | 1020 | 2012-03-16 Richard Guenther <rguenther@suse.de> |
1021 | ||
1022 | * c-pretty-print.c (pp_c_initializer_list): Adjust. | |
1023 | ||
249faa35 | 1024 | 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1025 | ||
1026 | PR c++/44783 | |
1027 | * c.opt (ftemplate-backtrace-limit) Add. | |
1028 | ||
126b6848 | 1029 | 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1030 | ||
1031 | * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix | |
1032 | handling. | |
1033 | * c-pragma.c (handle_pragma_extern_prefix): Remove. | |
1034 | (init_pragma): Don't register extern_prefix. | |
1035 | ||
a51edb4c | 1036 | 2012-03-12 Richard Guenther <rguenther@suse.de> |
1037 | ||
1038 | * c-common.c (c_common_get_narrower): Use c_common_type_for_size. | |
1039 | (builtin_type_for_size): Likewise. | |
1040 | ||
0f6a7cb7 | 1041 | 2012-02-13 Jakub Jelinek <jakub@redhat.com> |
1042 | ||
1043 | PR c++/52215 | |
1044 | * c-common.c (sync_resolve_params): Don't decide whether to convert | |
1045 | or not based on TYPE_SIZE comparison, convert whenever arg_type | |
1046 | is unsigned INTEGER_TYPE. | |
1047 | ||
0779e32c | 1048 | 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com> |
1049 | ||
1050 | PR c/52118 | |
1051 | * c.opt ([Wunused-local-typedefs]): Fix description. | |
1052 | ||
baec58e1 | 1053 | 2012-01-24 Mike Stump <mikestump@comcast.net> |
1054 | ||
1055 | * c-common.c (c_common_type_for_mode): Match signed/unsigned types | |
1056 | exactly. | |
1057 | ||
c779d8cc | 1058 | 2012-01-18 Richard Guenther <rguenther@suse.de> |
1059 | ||
1060 | * c-opts.c (c_common_post_options): Reset LTO flags if | |
1061 | we are about to generate a PCH. | |
1062 | ||
ee917d24 | 1063 | 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com> |
1064 | ||
1065 | PR c++/51777 | |
1066 | * c-pretty-print.c (pp_c_integer_constant): For unsigned constants | |
1067 | use pp_unsigned_wide_integer. | |
1068 | ||
90e2341f | 1069 | 2012-01-10 Richard Guenther <rguenther@suse.de> |
1070 | ||
1071 | PR middle-end/51806 | |
1072 | * c-opts.c (c_common_handle_option): Move -Werror handling | |
1073 | to language independent code. | |
1074 | ||
9ea022ce | 1075 | 2012-01-05 Richard Guenther <rguenther@suse.de> |
1076 | ||
1077 | PR middle-end/51764 | |
1078 | * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here | |
1079 | from common.opt. | |
1080 | ||
3df19e1b | 1081 | 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com> |
1082 | ||
1083 | PR c++/51316 | |
1084 | * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof | |
1085 | of array types with an unknown bound. | |
1086 | ||
32074525 | 1087 | 2011-12-20 Joseph Myers <joseph@codesourcery.com> |
1088 | ||
1089 | * c-common.c (flag_isoc99): Update comment to refer to C11. | |
1090 | (flag_isoc1x): Change to flag_isoc11. | |
1091 | * c-common.h (flag_isoc99): Update comment to refer to C11. | |
1092 | (flag_isoc1x): Change to flag_isoc11. | |
1093 | * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to | |
1094 | C11. | |
1095 | * c-opts.c (set_std_c1x): Change to set_std_c11. | |
1096 | (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11. | |
1097 | Call set_std_c11. | |
1098 | (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11. | |
1099 | (set_std_c1): Use CLK_STDC11 and CLK_GNUC11. | |
1100 | * c.opt (std=c1x): Change to std=c11. Document as non-draft | |
1101 | standard. | |
1102 | (std=c1x, std=iso9899:2011): Add as aliases of std=c11. | |
1103 | (std=gnu1x): Change to std=gnu11. Refer to non-draft standard. | |
1104 | (std=gnu1x): Make alias of std=gnu11. | |
1105 | ||
fca86134 | 1106 | 2011-12-19 Jason Merrill <jason@redhat.com> |
1107 | ||
1108 | PR c++/51228 | |
1109 | * c-common.c (handle_transparent_union_attribute): Check the first | |
1110 | field if the type is complete. | |
1111 | ||
aa4313eb | 1112 | 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com> |
1113 | ||
1114 | PR libstdc++/51365 | |
1115 | * c-common.c (RID_IS_FINAL): Add. | |
1116 | * c-common.h (RID_IS_FINAL): Add. | |
1117 | ||
3f3d5ad4 | 1118 | 2011-11-30 Iain Sandoe <iains@gcc.gnu.org> |
1119 | ||
1120 | * c.opt (fgnu-runtime): Provide full description. | |
1121 | (fnext-runtime): Likewise. | |
1122 | * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove. | |
1123 | ||
c4606d19 | 1124 | 2011-11-28 Andrew MacLeod <amacleod@redhat.com> |
1125 | ||
1126 | * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic | |
1127 | predefines in one place. Add LOCK_FREE predefines. | |
1128 | (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to | |
1129 | new func. | |
1130 | ||
1d581089 | 1131 | 2011-11-24 Andrew MacLeod <amacleod@redhat.com> |
1132 | ||
1133 | PR c/51256 | |
19931eea | 1134 | * c-common.c (get_atomic_generic_size): Check for various error |
1d581089 | 1135 | conditions |
19931eea | 1136 | (resolve_overloaded_atomic_exchange, |
1137 | resolve_overloaded_atomic_compare_exchange, | |
1d581089 | 1138 | resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return |
1139 | error_mark_node for error conditions. | |
19931eea | 1140 | |
6aa221fa | 1141 | 2011-11-08 Richard Guenther <rguenther@suse.de> |
1142 | ||
1143 | PR middle-end/51010 | |
1144 | c-family/ | |
1145 | ||
4c0315d0 | 1146 | 2011-11-07 Richard Henderson <rth@redhat.com> |
1147 | Aldy Hernandez <aldyh@redhat.com> | |
1148 | Torvald Riegel <triegel@redhat.com> | |
1149 | ||
1150 | Merged from transactional-memory. | |
1151 | ||
1152 | * c-common.c (handle_tm_wrap_attribute, | |
1153 | handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New. | |
1154 | (struct c_common_reswords): Added __transaction* keywords. | |
1155 | (struct c_common_attribute_table): Added transaction* and tm_regparm | |
1156 | attributes. | |
1157 | * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT* | |
1158 | masks. | |
1159 | (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr, | |
1160 | find_tm_attribute): Declare. | |
1161 | ||
920f5a70 | 1162 | 2011-11-07 Jason Merrill <jason@redhat.com> |
1163 | ||
1164 | PR c++/35688 | |
1165 | * c-common.c, c-common.h: Revert yesterday's changes. | |
1166 | ||
b4f861b4 | 1167 | 2011-11-06 Jason Merrill <jason@redhat.com> |
1168 | ||
1169 | PR c++/35688 | |
1170 | * c-common.c (decl_has_visibility_attr): Split out from... | |
1171 | (c_determine_visibility): ...here. | |
1172 | * c-common.h: Declare it. | |
1173 | ||
83e25171 | 1174 | 2011-11-06 Joseph Myers <joseph@codesourcery.com> |
1175 | ||
1176 | * c-common.c (c_common_reswords): Add _Alignas and _Alignof. | |
1177 | (c_sizeof_or_alignof_type): Diagnose alignof applied to a function | |
1178 | type. | |
1179 | (check_user_alignment): New. Split out of | |
1180 | handle_aligned_attribute. Disallow integer constants with | |
1181 | noninteger types. Conditionally allow zero. | |
1182 | (handle_aligned_attribute): Use check_user_alignment. | |
1183 | * c-common.h (RID_ALIGNAS, check_user_alignment): New. | |
1184 | ||
1cd6e20d | 1185 | 2011-11-06 Andrew MacLeod <amacleod@redhat.com> |
1186 | Richard Henderson <rth@redhat.com> | |
1187 | ||
1188 | Merged from cxx-mem-model. | |
1189 | ||
1190 | * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns. | |
19931eea | 1191 | * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak |
1cd6e20d | 1192 | parameters that are the same type size. |
1193 | (get_atomic_generic_size): New. Find size of generic | |
1194 | atomic function parameters and do typechecking. | |
1195 | (add_atomic_size_parameter): New. Insert size into parameter list. | |
1196 | (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to | |
1197 | either __atomic_exchange_n or external library call. | |
19931eea | 1198 | (resolve_overloaded_atomic_compare_exchange): Restructure |
1cd6e20d | 1199 | __atomic_compare_exchange to either _n variant or external library call. |
19931eea | 1200 | (resolve_overloaded_atomic_load): Restructure __atomic_load to either |
1cd6e20d | 1201 | __atomic_load_n or an external library call. |
1202 | (resolve_overloaded_atomic_store): Restructure __atomic_store to either | |
1203 | __atomic_store_n or an external library call. | |
1204 | (resolve_overloaded_builtin): Handle new __atomic builtins. | |
1205 | ||
7549df0d | 1206 | 2011-11-04 Eric Botcazou <ebotcazou@adacore.com> |
1207 | ||
1208 | PR c++/50608 | |
1209 | * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1. | |
1210 | (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust. | |
1211 | <INDIRECT_REF>: Return the argument. | |
1212 | <ARRAY_REF>: Remove special code for negative offset. | |
1213 | Call fold_build_pointer_plus instead of size_binop. | |
1214 | (fold_offsetof): Remove STOP_REF argument and adjust. | |
1215 | * c-common.h (fold_offsetof_1): Declare. | |
1216 | (fold_offsetof): Remove STOP_REF argument. | |
1217 | ||
7e783eb3 | 1218 | 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com> |
1219 | ||
1220 | PR c++/50810 | |
1221 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
1222 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
1223 | Wnarrowing for C++0x and C++98. | |
1224 | * c.opt ([Wnarrowing]): Update. | |
1225 | ||
8fe701f5 | 1226 | 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com> |
1227 | ||
1228 | PR c++/44277 | |
1229 | * c.opt: Add Wzero-as-null-pointer-constant. | |
1230 | ||
0d84dc2d | 1231 | 2011-10-31 Jason Merrill <jason@redhat.com> |
1232 | ||
67031f52 | 1233 | * c.opt (-fdeduce-init-list): Off by default. |
1234 | ||
0d84dc2d | 1235 | PR c++/50920 |
1236 | * c-common.h (cxx_dialect): Add cxx11 and cxx03. | |
1237 | * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03, | |
1238 | and -Wc++11-compat. | |
1239 | * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x. | |
1240 | ||
66f24c41 | 1241 | 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov> |
1242 | ||
1243 | PR c++/30066 | |
1244 | * c.opt (fvisibility-inlines-hidden): Description change. | |
1245 | ||
244db24d | 1246 | 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net> |
1247 | ||
1248 | Implement C++11 user-defined literals. | |
1249 | * c-common.c (build_userdef_literal): New. | |
1250 | * c-common.def: New tree code. | |
1251 | * c-common.h (tree_userdef_literal): New tree struct and accessors. | |
1252 | * c-lex.c (interpret_float): Add suffix parm. | |
1253 | (c_lex_with_flags): Build literal tokens. | |
1254 | ||
235be70f | 1255 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> |
1256 | ||
1257 | PR c++/50841 | |
1258 | Revert: | |
1259 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> | |
1260 | ||
1261 | PR c++/50810 | |
1262 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
1263 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
1264 | Wnarrowing for C++0x and C++98. | |
1265 | * c.opt ([Wnarrowing]): Update. | |
1266 | ||
4fe0fb1c | 1267 | 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com> |
1268 | ||
1269 | PR c++/50810 | |
1270 | * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part | |
1271 | of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default | |
1272 | Wnarrowing for C++0x and C++98. | |
1273 | * c.opt ([Wnarrowing]): Update. | |
1274 | ||
5f7504f9 | 1275 | 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com> |
1276 | ||
1277 | PR c++/45385 | |
1278 | * c-common.c (conversion_warning): Remove code looking for | |
1279 | artificial operands. | |
1280 | ||
2a688977 | 1281 | 2011-10-18 Dodji Seketeli <dodji@redhat.com> |
1282 | ||
1283 | PR bootstrap/50760 | |
1284 | * c-lex.c (fe_file_change): Use LINEMAP_SYSP when | |
19931eea | 1285 | !NO_IMPLICIT_EXTERN_C. |
2a688977 | 1286 | |
326e3391 | 1287 | 2011-10-17 Michael Spertus <mike_spertus@symantec.com> |
1288 | ||
1289 | * c-common.c (c_common_reswords): Add __bases, | |
1290 | __direct_bases. | |
1291 | * c-common.h: Add RID_BASES and RID_DIRECT_BASES. | |
1292 | ||
1293 | 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com> | |
1294 | ||
1295 | PR c++/50757 | |
1296 | * c.opt ([Wnonnull]): Add C++ and Objective-C++. | |
1297 | ||
62db153a | 1298 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
1299 | Dodji Seketeli <dodji@redhat.com> | |
1300 | ||
1301 | * c.opt (fdebug-cpp): New option. | |
1302 | * c-opts.c (c_common_handle_option): Handle the option. | |
1303 | * c-ppoutput.c (maybe_print_line_1): New static function. Takes an | |
1304 | output stream in parameter. Factorized from ... | |
1305 | (maybe_print_line): ... this. Dump location debug information when | |
1306 | -fdebug-cpp is in effect. | |
1307 | (print_line_1): New static function. Takes an output stream in | |
1308 | parameter. Factorized from ... | |
1309 | (print_line): ... here. Dump location information when -fdebug-cpp | |
1310 | is in effect. | |
1311 | (scan_translation_unit): Dump location information when | |
1312 | -fdebug-cpp is in effect. | |
1313 | ||
ce70f433 | 1314 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
1315 | Dodji Seketeli <dodji@redhat.com> | |
1316 | ||
1317 | * c.opt (ftrack-macro-expansion): New option. Handle it with and | |
1318 | without argument. | |
1319 | * c-opts.c (c_common_handle_option)<case | |
1320 | OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New | |
1321 | cases. Handle -ftrack-macro-expansion with and without argument. | |
1322 | ||
97bfb9ef | 1323 | 2011-10-15 Tom Tromey <tromey@redhat.com> |
1324 | Dodji Seketeli <dodji@redhat.com> | |
1325 | ||
1326 | * c-ppoutput.c (scan_translation_unit, maybe_print_line) | |
1327 | (print_line, cb_define, do_line_change): Adjust to avoid touching | |
1328 | the internals of struct line_map. Use the public API instead. | |
1329 | * c-pch.c (c_common_read_pch): Likewise. | |
1330 | * c-lex.c (fe_file_change): Likewise. | |
1331 | ||
326e3391 | 1332 | 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com> |
1333 | ||
1334 | PR c++/17212 | |
1335 | * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++. | |
1336 | ||
1337 | 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com> | |
1338 | ||
1339 | PR c++/33067 | |
1340 | * c-pretty-print.c (pp_c_floating_constant): Output | |
1341 | max_digits10 (in the ISO C++ WG N1822 sense) decimal digits. | |
1342 | ||
b9a16870 | 1343 | 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com> |
1344 | ||
1345 | * c-common.c (def_builtin_1): Delete old interface with two | |
1346 | parallel arrays to hold standard builtin declarations, and replace | |
1347 | it with a function based interface that can support creating | |
1348 | builtins on the fly in the future. Change all uses, and poison | |
1349 | the old names. Make sure 0 is not a legitimate builtin index. | |
1350 | * c-omp.c (c_finish_omp_barrier): Ditto. | |
1351 | (c_finish_omp_taskwait): Ditto. | |
1352 | (c_finish_omp_flush): Ditto. | |
1353 | ||
c7964868 | 1354 | 2011-10-11 Tristan Gingold <gingold@adacore.com> |
1355 | ||
1356 | * c.opt: (fallow-parameterless-variadic-functions): New. | |
1357 | ||
a4e3ffad | 1358 | 2011-09-08 Dodji Seketeli <dodji@redhat.com> |
1359 | ||
1360 | PR c++/33255 - Support -Wunused-local-typedefs warning | |
1361 | * c-common.h (struct c_language_function::local_typedefs): New | |
1362 | field. | |
19931eea | 1363 | (record_locally_defined_typedef, maybe_record_typedef_use) |
1364 | (maybe_warn_unused_local_typedefs): Declare new functions. | |
a4e3ffad | 1365 | * c-common.c (record_locally_defined_typedef) |
19931eea | 1366 | (maybe_record_typedef_use) |
1367 | (maybe_warn_unused_local_typedefs): Define new functions. | |
a4e3ffad | 1368 | * c.opt: Declare new -Wunused-local-typedefs flag. |
1369 | ||
737a23cc | 1370 | 2011-09-06 Eric Botcazou <ebotcazou@adacore.com> |
1371 | ||
1372 | PR middle-end/50266 | |
1373 | * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like | |
1374 | computations. | |
1375 | ||
7542c3b4 | 1376 | 2011-09-05 Richard Guenther <rguenther@suse.de> |
1377 | ||
1378 | * c-common.c (complete_array_type): Use ssize_int (-1) instead | |
1379 | of integer_minus_one_node for empty array upper bounds. | |
1380 | ||
1dc92c59 | 1381 | 2011-08-28 Dodji Seketeli <dodji@redhat.com> |
1382 | ||
1383 | * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as | |
1384 | it's the first time it's being called on this main TU. | |
1385 | ||
2bdf2b6e | 1386 | 2011-08-24 Richard Guenther <rguenther@suse.de> |
1387 | ||
1388 | PR c/49396 | |
1389 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional. | |
1390 | ||
1391 | 2011-08-22 Gabriel Charette <gchare@google.com> | |
6ea2c7a3 | 1392 | |
1393 | * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens | |
1394 | defined in cpp_init_builtins and c_cpp_builtins. | |
1395 | ||
bff4ad11 | 1396 | 2011-08-19 Joseph Myers <joseph@codesourcery.com> |
1397 | ||
1398 | * c-common.c (c_common_reswords): Add __builtin_complex. | |
1399 | * c-common.h (RID_BUILTIN_COMPLEX): New. | |
1400 | ||
985c6e3a | 1401 | 2011-08-18 Joseph Myers <joseph@codesourcery.com> |
1402 | ||
1403 | * c-common.c (c_common_reswords): Add _Noreturn. | |
1404 | (keyword_is_function_specifier): Handle RID_NORETURN. | |
1405 | * c-common.h (RID_NORETURN): New. | |
1406 | ||
7dfa155b | 1407 | 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
1408 | ||
1409 | * c-common.c (unsafe_conversion_p): New function. Check if it is | |
1410 | unsafe to convert an expression to the type. | |
1411 | (conversion_warning): Adjust, use unsafe_conversion_p. | |
1412 | * c-common.h (unsafe_conversion_p): New function declaration. | |
1413 | ||
2169f33b | 1414 | 2011-08-02 Jakub Jelinek <jakub@redhat.com> |
1415 | ||
1416 | * c-common.h (c_finish_omp_atomic): Adjust prototype. | |
1417 | (c_finish_omp_taskyield): New prototype. | |
1418 | * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1 | |
1419 | arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and | |
1420 | OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1 | |
1421 | or RHS1 have side-effects, evaluate those too in the right spot, | |
1422 | if it is a decl and LHS is also a decl, error out if they | |
1423 | aren't the same. | |
1424 | (c_finish_omp_taskyield): New function. | |
1425 | * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107. | |
1426 | * c-pragma.c (omp_pragmas): Add taskyield. | |
1427 | * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD. | |
1428 | (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and | |
1429 | PRAGMA_OMP_CLAUSE_MERGEABLE. | |
1430 | ||
ab77850e | 1431 | 2011-07-25 Dodji Seketeli <dodji@redhat.com> |
1432 | ||
1433 | * c-common.h (set_underlying_type): Remove parm name from | |
1434 | declaration. | |
1435 | ||
6ee97920 | 1436 | 2011-07-25 Romain Geissler <romain.geissler@gmail.com> |
1437 | ||
1438 | * c-pretty-print.h: Search c-common.h in c-family. | |
19931eea | 1439 | |
dc251364 | 1440 | 2011-07-22 Jason Merrill <jason@redhat.com> |
1441 | ||
1a2a35f0 | 1442 | PR c++/49793 |
1443 | * c.opt (Wnarrowing): New. | |
1444 | ||
27282252 | 1445 | PR c++/30112 |
1446 | * c-common.h: Declare c_linkage_bindings. | |
1447 | * c-pragma.c (handle_pragma_redefine_extname): Use it. | |
1448 | ||
dc251364 | 1449 | PR c++/49813 |
1450 | * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99. | |
1451 | * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well | |
1452 | as flag_isoc99 for 'restrict'. | |
1453 | (pp_c_specifier_qualifier_list): Likewise for _Complex. | |
1454 | ||
fc501191 | 1455 | 2011-07-21 Ian Lance Taylor <iant@google.com> |
1456 | ||
1457 | PR middle-end/49705 | |
1458 | * c-common.c (c_disable_warnings): New static function. | |
1459 | (c_enable_warnings): New static function. | |
1460 | (c_fully_fold_internal): Change local unused_p to bool. Call | |
1461 | c_disable_warnings and c_enable_warnings rather than change | |
1462 | c_inhibit_evaluation_warnings. | |
1463 | ||
07b8f133 | 1464 | 2011-07-20 Jason Merrill <jason@redhat.com> |
1465 | ||
1466 | PR c++/6709 (DR 743) | |
1467 | PR c++/42603 (DR 950) | |
1468 | * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h. | |
1469 | (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise. | |
1470 | (CPP_DECLTYPE): New. | |
1471 | * c-common.c (c_parse_error): Handle CPP_DECLTYPE. | |
1472 | ||
2cc66f2a | 1473 | 2011-07-19 Richard Guenther <rguenther@suse.de> |
1474 | ||
1475 | * c-common.c (pointer_int_sum): Use fold_build_pointer_plus. | |
1476 | * c-omp.c (c_finish_omp_for): Likewise. | |
1477 | ||
3c802a1e | 1478 | 2011-07-12 Eric Botcazou <ebotcazou@adacore.com> |
1479 | ||
1480 | * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop | |
1481 | body on the next line. | |
1482 | ||
98a33d9f | 1483 | 2011-07-08 Jason Merrill <jason@redhat.com> |
1484 | ||
3115bda0 | 1485 | PR c++/45437 |
1486 | * c-omp.c (check_omp_for_incr_expr): Handle preevaluation. | |
1487 | ||
98a33d9f | 1488 | PR c++/49673 |
1489 | * c-common.c (c_apply_type_quals_to_decl): Don't check | |
1490 | TYPE_NEEDS_CONSTRUCTING. | |
1491 | ||
c38a75b7 | 1492 | 2011-07-06 Richard Guenther <rguenther@suse.de> |
1493 | ||
1494 | * c-common.c (c_common_nodes_and_builtins): | |
1495 | Merge calls to build_common_tree_nodes and build_common_tree_nodes_2. | |
1496 | ||
e593356b | 1497 | 2011-07-05 Richard Guenther <rguenther@suse.de> |
1498 | ||
1499 | * c-common.c (c_common_nodes_and_builtins): Build all common | |
1500 | tree nodes first. | |
1501 | ||
fca0886c | 1502 | 2011-06-27 Jakub Jelinek <jakub@redhat.com> |
1503 | ||
a68f7a8d | 1504 | * c-common.h (c_tree_chain_next): New static inline function. |
1505 | ||
fca0886c | 1506 | * c-common.c (check_builtin_function_arguments): Handle |
1507 | BUILT_IN_ASSUME_ALIGNED. | |
1508 | ||
2797f13a | 1509 | 2011-06-21 Andrew MacLeod <amacleod@redhat.com> |
1510 | ||
1511 | * c-common.c: Add sync_ or SYNC__ to builtin names. | |
1512 | * c-omp.c: Add sync_ or SYNC__ to builtin names. | |
9cad95b7 | 1513 | |
1514 | 2011-06-20 Pierre Vittet <piervit@pvittet.com> | |
1515 | ||
1516 | * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New | |
1517 | handler. | |
1518 | (gen_pragma_handler): New union. | |
1519 | (internal_pragma_handler): New type. | |
1520 | (c_register_pragma_with_data) | |
1521 | (c_register_pragma_with_expansion_and_data): New functions. | |
1522 | ||
1523 | * c-pragma.c (registered_pragmas, c_register_pragma_1) | |
1524 | (c_register_pragma, c_register_pragma_with_expansion) | |
1525 | (c_invoke_pragma_handler): Changed to work with | |
1526 | internal_pragma_handler. | |
1527 | (c_register_pragma_with_data) | |
1528 | (c_register_pragma_with_expansion_and_data): New functions. | |
1529 | ||
218e3e4e | 1530 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> |
1531 | ||
1532 | * c-common.c: Include common/common-target.h. | |
1533 | (handle_section_attribute): Use | |
1534 | targetm_common.have_named_sections. | |
1535 | * c-cppbuiltin.c: Include common/common-target.h. | |
1536 | (c_cpp_builtins): Use targetm_common.except_unwind_info. | |
1537 | ||
41e53ed2 | 1538 | 2011-06-10 Richard Guenther <rguenther@suse.de> |
1539 | ||
1540 | * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier | |
1541 | to print a IDENTIFIER_NODE. | |
1542 | ||
a6f06169 | 1543 | 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1544 | Joseph Myers <joseph@codesourcery.com> | |
1545 | ||
1546 | * c.opt (fbuilding-libgcc): New option. | |
1547 | * c-cppbuiltin.c (c_cpp_builtins): Define | |
1548 | __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc. | |
1549 | ||
1ea9269b | 1550 | 2011-06-07 Jason Merrill <jason@redhat.com> |
1551 | ||
8ce59854 | 1552 | * c-common.c (max_tinst_depth): Lower default to 900. |
1553 | ||
1ea9269b | 1554 | * c-format.c (gcc_cxxdiag_char_table): Add 'S' format. |
1555 | ||
1af0124d | 1556 | 2011-06-07 Richard Guenther <rguenther@suse.de> |
1557 | ||
1558 | * c-common.c (c_common_nodes_and_builtins): Do not set | |
1559 | size_type_node or call set_sizetype. | |
1560 | ||
0e9a4c01 | 1561 | 2011-06-07 Dodji Seketeli <dodji@redhat.com> |
1562 | ||
1563 | PR debug/49130 | |
1564 | * c-pretty-print.c (pp_c_integer_constant): Consider the canonical | |
19931eea | 1565 | type when using pointer comparison to compare types. |
0e9a4c01 | 1566 | |
90b40725 | 1567 | 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com> |
1568 | ||
1569 | * c.opt: Add -Wdelete-non-virtual-dtor. | |
1570 | * c-opts.c (c_common_handle_option): Include it in -Wall. | |
1571 | ||
fc9c9e87 | 1572 | 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org> |
1573 | ||
1574 | PR bootstrap/49190 | |
1575 | ||
1576 | Revert: | |
1577 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> | |
1578 | ||
1579 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
1580 | not tree_common. | |
1581 | ||
d0389adc | 1582 | 2011-05-27 Jakub Jelinek <jakub@redhat.com> |
1583 | ||
1584 | PR c++/49165 | |
1585 | * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For | |
1586 | C++ don't call c_common_truthvalue_conversion on void type arms. | |
1587 | ||
cacfdc02 | 1588 | 2011-05-27 Nathan Froyd <froydnj@codesourcery.com> |
1589 | ||
1590 | * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC. | |
1591 | (stmt_list_stack): Define. | |
1592 | (cur_stmt_list): Adjust for new type of x_cur_stmt_list. | |
1593 | * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise. | |
1594 | ||
027fc6ef | 1595 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
1596 | ||
1597 | * c-common.c (warning_candidate_p): Check for BLOCKs. | |
1598 | ||
f21317a1 | 1599 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
1600 | ||
1601 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
1602 | not tree_common. | |
1603 | ||
789e953d | 1604 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> |
1605 | ||
1606 | * c-common.c (def_fn_type): Remove extra va_end. | |
1607 | ||
7f506bca | 1608 | 2011-05-23 Jason Merrill <jason@redhat.com> |
1609 | ||
1610 | PR c++/48106 | |
1611 | * c-common.c (c_common_get_narrower): New. | |
1612 | (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it. | |
1613 | ||
774e9d58 | 1614 | 2011-05-23 Nathan Froyd <froydnj@codesourcery.com> |
1615 | ||
1616 | * c-common.h (check_function_arguments): Tweak prototype of | |
1617 | check_function_arguments. | |
1618 | * c-common.c (check_function_arguments): Likewise. Adjust | |
1619 | calls to check_function_nonnull, check_function_format, and | |
1620 | check_function_sentinel. | |
1621 | (check_function_sentinel): Take a FUNCTION_TYPE rather than | |
1622 | separate attributes and typelist arguments. Use | |
1623 | FOREACH_FUNCTION_ARGS to iterate over argument types. | |
1624 | ||
23407dc9 | 1625 | 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com> |
1626 | ||
1627 | * c-common.c (c_common_reswords): Reorder. | |
1628 | * c-common.h (rid): Likewise. | |
1629 | ||
3a939d12 | 1630 | 2011-05-10 Nathan Froyd <froydnj@codesourcery.com> |
1631 | ||
1632 | * c-common.c (def_fn_type): Don't call build_function_type, call | |
1633 | build_function_type_array or build_varargs_function_type_array | |
1634 | instead. | |
1635 | (c_common_nodes_and_builtins): Likewise. | |
1636 | ||
b6e3dd65 | 1637 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
1638 | ||
1639 | * c-common.c (c_add_case_label): Omit the loc argument to | |
1640 | build_case_label. | |
1641 | * c-common.h (build_case_label): Remove. | |
1642 | * c-semantics.c (build_case_label): Remove. | |
1643 | ||
4232a958 | 1644 | 2011-05-05 Joseph Myers <joseph@codesourcery.com> |
1645 | ||
1646 | * c-objc.h (objc_start_method_definition): Update prototype. | |
1647 | * stub-objc.c (objc_start_method_definition): Add extra parameter. | |
1648 | ||
d0af78c5 | 1649 | 2011-05-04 Nathan Froyd <froydnj@codesourcery.com> |
1650 | ||
1651 | * c-common.c (check_main_parameter_types): Reindent. Don't use | |
1652 | TYPE_ARG_TYPES directly. | |
1653 | (handle_nonnull_attribute): Likewise. | |
1654 | (sync_resolve_params): Likewise. | |
1655 | * c-format.c (handle_format_arg_attribute): Likewise. Adjust call | |
1656 | to check_format_string. | |
1657 | (handle_format_attribute): Likewise. | |
1658 | (check_format_string): Take a function type to examine instead of | |
1659 | a type list. Use a function_arg_iterator to step through argument | |
1660 | types. | |
1661 | ||
ceb7b692 | 1662 | 2011-05-04 Richard Guenther <rguenther@suse.de> |
1663 | ||
1664 | * c-common.c (fix_string_type): Use size_int for index type bounds. | |
1665 | (start_fname_decls): Do not pass NULL to build_int_cst. | |
1666 | (c_init_attributes): Likewise. | |
1667 | * c-lex.c (c_lex_with_flags): Likewise. | |
1668 | ||
c66c81be | 1669 | 2011-04-27 Jason Merrill <jason@redhat.com> |
1670 | ||
1671 | * c-common.c (make_tree_vector_from_list): New. | |
1672 | * c-common.h: Declare it. | |
1673 | ||
16930c72 | 1674 | 2011-04-26 Richard Guenther <rguenther@suse.de> |
1675 | ||
1676 | PR preprocessor/48248 | |
1677 | * c-ppoutput.c (maybe_print_line): Always optimize newlines | |
1678 | for output size with -P. | |
1679 | ||
23407dc9 | 1680 | 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com> |
1681 | ||
1682 | * c-common.c (struct c_common_resword): Add __underlying_type. | |
1683 | * c-common.h (enum rid): Add RID_UNDERLYING_TYPE. | |
1684 | ||
dd045aee | 1685 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
1686 | ||
1687 | * c-format.c (init_dollar_format_checking): Remove useless | |
1688 | if-before-free. | |
1689 | ||
394dd737 | 1690 | 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com> |
1691 | ||
1692 | * c-objc.h (objc_get_interface_ivars): Removed. | |
23407dc9 | 1693 | (objc_detect_field_duplicates): New. |
394dd737 | 1694 | * stub-objc.c: Likewise. |
23407dc9 | 1695 | |
a758bf7d | 1696 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
1697 | ||
1698 | * stub-objc.c (objc_declare_protocols): Renamed to | |
1699 | objc_declare_protocol. | |
1700 | * c-objc.h: Likewise. | |
23407dc9 | 1701 | |
29d7200d | 1702 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
1703 | ||
1704 | * stub-objc.c (objc_declare_class): Updated argument name. | |
1705 | ||
9b88d08d | 1706 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> |
1707 | ||
1708 | * c-common.h (c_common_init_ts): Declare. | |
1709 | * c-common.c (c_common_init_ts): Define. | |
1710 | ||
4185cf58 | 1711 | 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com> |
1712 | ||
1713 | * c-objc.h (objc_build_message_expr): Updated prototype. | |
1714 | * stub-objc.c (objc_build_message_expr): Likewise. | |
19931eea | 1715 | |
5a90471f | 1716 | 2011-04-12 Martin Jambor <mjambor@suse.cz> |
1717 | ||
1718 | * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead | |
1719 | of cgraph_node. | |
1720 | ||
783bb57e | 1721 | 2011-04-11 Richard Guenther <rguenther@suse.de> |
1722 | ||
1723 | * c-common.c (complete_array_type): Build a range type of | |
1724 | proper type. | |
1725 | ||
c33080b9 | 1726 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> |
1727 | ||
1728 | * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES. | |
1729 | (handle_type_generic_attribute): Likewise. | |
1730 | ||
f8913d47 | 1731 | 2011-04-07 Jason Merrill <jason@redhat.com> |
1732 | ||
1733 | PR c++/48450 | |
1734 | * c-common.c (c_common_truthvalue_conversion): Don't ignore | |
1735 | conversion from C++0x scoped enum. | |
1736 | ||
c94b1d0e | 1737 | 2011-04-06 Joseph Myers <joseph@codesourcery.com> |
1738 | ||
1739 | * c-target-def.h: New file. | |
1740 | * c-target.def: New file. | |
1741 | * c-target.h: New file. | |
1742 | * c-common.c (targetcm): Don't define here. | |
1743 | * c-common.h (default_handle_c_option): Declare. | |
1744 | * c-format.c: Include c-target.h instead of target.h. | |
1745 | * c-opts.c: Include c-target.h instead of target.h. Explicitly | |
1746 | include tm.h. | |
1747 | (default_handle_c_option): Move from targhooks.c. | |
1748 | ||
acb10f41 | 1749 | 2011-03-29 Jakub Jelinek <jakub@redhat.com> |
1750 | ||
1751 | PR preprocessor/48248 | |
1752 | * c-ppoutput.c (print): Add src_file field. | |
1753 | (init_pp_output): Initialize it. | |
1754 | (maybe_print_line): Don't optimize by adding up to 8 newlines | |
1755 | if map->to_file and print.src_file are different file. | |
1756 | (print_line): Update print.src_file. | |
1757 | ||
82715bcd | 1758 | 2011-03-25 Kai Tietz <ktietz@redhat.com> |
1759 | ||
1760 | * c-ada-spec.c (compare_comment): Use filename_cmp | |
1761 | instead of strcmp for filename. | |
1762 | ||
451c8e2f | 1763 | 2011-03-25 Jeff Law <law@redhat.com> |
1764 | ||
1765 | * c-family/c-common.c (def_fn_type): Add missing va_end. | |
1766 | ||
3c47771c | 1767 | 2011-03-25 Jason Merrill <jason@redhat.com> |
1768 | ||
1769 | * c.opt: Add -std=c++03. | |
1770 | ||
97e6200f | 1771 | 2011-03-22 Eric Botcazou <ebotcazou@adacore.com> |
1772 | ||
1773 | * c-ada-spec.c (dump_ada_template): Skip non-class instances. | |
1774 | ||
ac86af5d | 1775 | 2011-03-17 Kai Tietz |
1776 | ||
1777 | PR target/12171 | |
ee212425 | 1778 | * c-pretty-print.c (pp_c_specifier_qualifier_list): |
1779 | Display allowed attributes for function pointer types. | |
1780 | (pp_c_attributes_display): New function to display | |
1781 | attributes having affects_type_identity flag set to true. | |
1782 | * c-pretty-print.h (pp_c_attributes_display): New prototype. | |
1783 | ||
ac86af5d | 1784 | * c-common.c (c_common_attribute_table): |
1785 | Add new element. | |
1786 | (c_common_format_attribute_table): Likewise. | |
1787 | ||
914d1151 | 1788 | 2011-03-18 Jason Merrill <jason@redhat.com> |
1789 | ||
69788bdf | 1790 | * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth). |
1791 | * c-common.h: Don't declare it here. | |
1792 | * c-common.c: Or define it here. | |
1793 | * c-opts.c (c_common_handle_option): Or set it here. | |
1794 | ||
914d1151 | 1795 | PR c++/35315 |
1796 | * c-common.c (handle_transparent_union_attribute): Don't | |
1797 | make a duplicate type in C++. | |
1798 | ||
54cf6eed | 1799 | 2011-03-15 Jason Merrill <jason@redhat.com> |
1800 | ||
1801 | * c-common.c (max_constexpr_depth): New. | |
1802 | * c-common.h: Declare it. | |
1803 | * c-opts.c (c_common_handle_option): Set it. | |
1804 | * c.opt (fconstexpr-depth): New option. | |
1805 | ||
02cb1060 | 1806 | 2011-03-11 Jason Merrill <jason@redhat.com> |
1807 | ||
9bf1c74e | 1808 | * c-common.c (attribute_takes_identifier_p): Add missing const. |
1809 | ||
02cb1060 | 1810 | PR c++/46803 |
1811 | * c-common.c (attribute_takes_identifier_p): Assume that an | |
1812 | unknown attribute takes an identifier. | |
1813 | ||
ecf2703d | 1814 | 2011-03-07 Nathan Froyd <froydnj@codesourcery.com> |
1815 | ||
1816 | PR c/47786 | |
1817 | * c-common.c (c_type_hash): Call list_length instead of iterating | |
1818 | through DECL_CHAIN. Rename 'i' to 'n_elements'. | |
1819 | ||
2b19dfe4 | 1820 | 2011-02-19 Jakub Jelinek <jakub@redhat.com> |
1821 | ||
1822 | PR c/47809 | |
1823 | * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR. | |
1824 | ||
29cf2335 | 1825 | 2011-02-17 Iain Sandoe <iains@gcc.gnu.org> |
1826 | ||
1827 | * c.opt (fobjc-abi-version=) New. | |
1828 | (fobjc-nilcheck): New. | |
1829 | ||
fad3f658 | 1830 | 2011-02-03 Nathan Froyd <froydnj@codesourcery.com> |
1831 | ||
1832 | PR c++/46890 | |
1833 | * c-common.h (keyword_is_decl_specifier): Declare. | |
1834 | * c-common.c (keyword_is_decl_specifier): Define. | |
1835 | (keyword_is_function_specifier): New function. | |
1836 | ||
a12319b3 | 1837 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
1838 | ||
1839 | PR c/47473 | |
1840 | * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure | |
1841 | EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of | |
1842 | REAL_TYPE. | |
1843 | ||
5c128dc8 | 1844 | 2011-01-26 Arnaud Charlet <charlet@adacore.com> |
1845 | ||
1846 | * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type. | |
1847 | ||
8d67b0c7 | 1848 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
1849 | ||
1850 | PR pch/47430 | |
1851 | * c-opts.c (c_common_post_options): Call c_common_no_more_pch | |
1852 | after init_c_lex if pch_file is set. | |
1853 | ||
0675168d | 1854 | 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com> |
1855 | ||
e8911163 | 1856 | PR c++/43601 |
0675168d | 1857 | * c.opt (-fkeep-inline-dllexport): New switch. |
1858 | ||
0725e25c | 1859 | 2011-01-12 Richard Guenther <rguenther@suse.de> |
1860 | ||
1861 | PR middle-end/32511 | |
1862 | * c-common.c (handle_weak_attribute): Warn instead of error | |
1863 | on declaring an inline function weak. | |
1864 | ||
fdd84b77 | 1865 | 2011-01-05 Tom Tromey <tromey@redhat.com> |
1866 | ||
1867 | * c-common.h (lvalue_error): Update. | |
1868 | * c-common.c (lvalue_error): Add 'loc' argument. Call error_at, | |
1869 | not error. | |
1870 | ||
e6e73d14 | 1871 | 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com> |
19931eea | 1872 | |
d67e8485 | 1873 | PR objc/47075 |
1874 | * c-objc.h (objc_finish_message_expr): Added argument to | |
1875 | prototype. | |
1876 | ||
a36cf284 | 1877 | 2010-12-22 Nathan Froyd <froydnj@codesourcery.com> |
1878 | ||
1879 | * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute): | |
1880 | Use prototype_p. | |
1881 | ||
33b3681f | 1882 | 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com> |
1883 | ||
1884 | * c-objc.h (objc_maybe_warn_exceptions): New. | |
19931eea | 1885 | * stub-objc.c (objc_maybe_warn_exceptions): New. |
33b3681f | 1886 | |
a1f90215 | 1887 | 2010-12-10 Nathan Froyd <froydnj@codesourcery.com> |
1888 | ||
1889 | * c-common.h (readonly_error): Declare. | |
1890 | * c-common.c (readonly_error): Define. | |
1891 | ||
b1bbc8e5 | 1892 | 2010-12-09 Nathan Froyd <froydnj@codesourcery.com> |
1893 | ||
1894 | * c-common.h (invalid_indirection_error): Declare. | |
1895 | * c-common.c (invalid_indirection_error): Define. | |
1896 | ||
b0d55af9 | 1897 | 2010-12-03 Richard Guenther <rguenther@suse.de> |
1898 | ||
1899 | PR c/46745 | |
1900 | * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF. | |
1901 | (pp_c_unary_expression): Likewise. | |
1902 | (pp_c_expression): Likewise. | |
1903 | ||
d7489d8d | 1904 | 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com> |
1905 | ||
1906 | * c-common.h (objc_finish_function): New. | |
1907 | (objc_non_volatilized_type): Removed. | |
1908 | (objc_type_quals_match): Removed. | |
1909 | * stub-objc.c (objc_finish_function): New. | |
1910 | (objc_non_volatilized_type): Removed. | |
1911 | (objc_type_quals_match): Removed. | |
19931eea | 1912 | |
92468061 | 1913 | 2010-11-30 Joseph Myers <joseph@codesourcery.com> |
1914 | ||
1915 | * c-common.h (parse_optimize_options): Declare. | |
1916 | * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c, | |
1917 | c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h. | |
1918 | ||
967958e4 | 1919 | 2010-11-29 Joseph Myers <joseph@codesourcery.com> |
1920 | ||
1921 | * c-opts.c (check_deps_environment_vars): Use getenv instead of | |
1922 | GET_ENVIRONMENT. | |
1923 | * c-pch.c (O_BINARY): Don't define here. | |
1924 | * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>. | |
1925 | ||
b213bf24 | 1926 | 2010-11-25 Joseph Myers <joseph@codesourcery.com> |
1927 | ||
1928 | * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to | |
1929 | targetm.except_unwind_info. | |
1930 | ||
9faf44d6 | 1931 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
1932 | ||
1933 | * c-opts.c (c_common_handle_option): Pass location to | |
1934 | set_struct_debug_option. | |
1935 | ||
79396169 | 1936 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
1937 | ||
1938 | * c-common.c (visibility_options): Move from ../opts.c. | |
1939 | * c-common.h (struct visibility_flags, visibility_options): | |
1940 | Declare here. | |
1941 | * c-opts.c (finish_options): Rename to c_finish_options. | |
1942 | (c_common_init): Update call to finish_options. | |
1943 | ||
b4aa4123 | 1944 | 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com> |
1945 | ||
1946 | PR objc/34033 | |
1947 | * c-lex.c (lex_string): Check that each string in an Objective-C | |
1948 | string concat sequence starts with either one or zero '@', and | |
1949 | that there are no spurious '@' signs at the end. | |
1950 | ||
3e0e49f2 | 1951 | 2010-11-20 Joseph Myers <joseph@codesourcery.com> |
1952 | ||
1953 | * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK, | |
1954 | HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and | |
1955 | HANDLE_PRAGMA_VISIBILITY. | |
1956 | * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK, | |
1957 | HANDLE_PRAGMA_VISIBILITY): Don't define. | |
1958 | (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test. | |
1959 | ||
a9ffdd35 | 1960 | 2010-11-20 Nathan Froyd <froydnj@codesourcery.com> |
1961 | ||
1962 | PR c++/16189 | |
1963 | PR c++/36888 | |
1964 | PR c++/45331 | |
1965 | * c-common.h (keyword_begins_type_specifier): Declare. | |
1966 | (keyword_is_storage_class_specifier): Declare. | |
1967 | (keyword_is_type_qualifier): Declare. | |
1968 | * c-common.c (keyword_begins_type_specifier): New function. | |
1969 | (keyword_is_storage_class_specifier): New function. | |
1970 | (keyword_is_type_qualifier): Declare. | |
1971 | ||
93be21c0 | 1972 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
1973 | ||
1974 | PR c/46547 | |
1975 | * c-common.c (in_late_binary_op): Define. | |
1976 | (c_common_truthvalue_conversion): Check in_late_binary_op before | |
1977 | calling c_save_expr. | |
1978 | * c-common.h (in_late_binary_op): Declare. | |
1979 | ||
d7175aef | 1980 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
1981 | ||
1982 | * c-opts.c (c_common_handle_option): Update calls to | |
1983 | set_struct_debug_option. | |
1984 | ||
c213e196 | 1985 | 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com> |
1986 | ||
1987 | * c-common.h (objc_declare_protocols): Added additional argument. | |
1988 | * stub-objc.c (objc_declare_protocol): Same change. | |
19931eea | 1989 | |
0b5fc5d6 | 1990 | 2010-11-18 Nathan Froyd <froydnj@codesourcery.com> |
1991 | ||
1992 | PR c/33193 | |
1993 | * c-common.h (build_real_imag_expr): Declare. | |
1994 | * c-semantics.c (build_real_imag_expr): Define. | |
1995 | ||
b8ba44e7 | 1996 | 2010-11-17 Joseph Myers <joseph@codesourcery.com> |
1997 | ||
1998 | * c-opts.c (c_common_parse_file): Take no arguments. | |
1999 | * c-common.h (c_common_parse_file): Update prototype. | |
2000 | ||
6ef8d12f | 2001 | 2010-11-16 Jakub Jelinek <jakub@redhat.com> |
2002 | ||
2003 | PR c++/46401 | |
2004 | * c-common.c (warning_candidate_p): Don't track non-const calls | |
2005 | or STRING_CSTs. | |
2006 | ||
929d2a90 | 2007 | 2010-11-15 Ian Lance Taylor <iant@google.com> |
2008 | ||
2009 | * c-lex.c (init_c_lex): Set macro debug callbacks if | |
2010 | flag_dump_go_spec is set. | |
2011 | ||
e4a7640a | 2012 | 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com> |
2013 | ||
2014 | * c-common.h (objc_build_incr_expr_for_property_ref): New. | |
2015 | * stub-objc.c (objc_build_incr_expr_for_property_ref): New. | |
2016 | ||
597d2d81 | 2017 | 2010-11-15 Nathan Froyd <froydnj@codesourcery.com> |
2018 | ||
2019 | PR preprocessor/45038 | |
2020 | * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++ | |
2021 | dialects. | |
2022 | ||
c123f04d | 2023 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
2024 | ||
2025 | * c-common.h (c_family_lang_mask): Declare. | |
2026 | * c-opts.c (c_family_lang_mask): Make extern. | |
2027 | * c-pragma.c (handle_pragma_diagnostic): Use | |
2028 | control_warning_option. | |
2029 | ||
3c6c0e40 | 2030 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
2031 | ||
2032 | * c-common.c (parse_optimize_options): Update call to | |
2033 | decode_options. | |
2034 | * c-common.h (c_common_handle_option): Update prototype. | |
2035 | * c-opts.c (c_common_handle_option): Take location_t parameter and | |
2036 | pass it to other functions. | |
2037 | ||
19ec5c9e | 2038 | 2010-11-11 Joseph Myers <joseph@codesourcery.com> |
2039 | ||
2040 | * c-opts.c (warning_as_error_callback): Remove. | |
2041 | (c_common_initialize_diagnostics): Don't call | |
2042 | register_warning_as_error_callback. | |
2043 | (c_common_handle_option): Handle -Werror=normalized= here. | |
2044 | ||
bf776685 | 2045 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
2046 | ||
2047 | * c-common.c (handle_mode_attribute): Use %' and word "signedness" | |
2048 | in diagnostic. | |
2049 | * c-opts.c (c_common_parse_file): Start diagnostics with lowercase | |
2050 | letter. | |
2051 | * c-pragma.c (handle_pragma_target, handle_pragma_optimize): | |
2052 | Remove trailing '.' from diagnostics. | |
2053 | * c.opt (Wwrite-strings_: Avoid '`' in help text. | |
2054 | ||
6bd9d862 | 2055 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
2056 | ||
2057 | * c-common.c (parse_optimize_options): Pass global_dc to | |
2058 | decode_options. | |
2059 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
2060 | set_Wstrict_aliasing. | |
2061 | * c.opt (v): Don't mark Common or document here. | |
2062 | ||
1f6616ee | 2063 | 2010-11-06 Iain Sandoe <iains@gcc.gnu.org> |
2064 | ||
2065 | PR target/44981 | |
2066 | * c-format.c (format_type): New type gcc_objc_string_format_type. | |
2067 | (valid_stringptr_type_p): New. | |
2068 | (handle_format_arg_attribute): Use valid_stringptr_type_p (). | |
19931eea | 2069 | (check_format_string): Pass expected type, use |
1f6616ee | 2070 | valid_stringptr_type_p (), check that the format string types are |
2071 | consistent with the format specification. | |
2072 | (decode_format_attr): Warn if NSString is used outside objective-c. | |
2073 | (format_types_orig): Add NSString. | |
2074 | (format_name): New. | |
2075 | (format_flags): New. | |
2076 | (check_format_arg): Handle format strings requiring an external parser. | |
2077 | first_target_format_type: New variable. | |
2078 | (handle_format_attribute): Set up first_target_format_type, pass the | |
2079 | expected format arg string type to check_format_string(). | |
2080 | * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag. | |
2081 | * stub-objc.c (objc_string_ref_type_p): New. | |
2082 | (objc_check_format_arg): New. | |
2083 | ||
b0d0931f | 2084 | 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com> |
2085 | ||
19931eea | 2086 | Fixed using the Objective-C 2.0 dot-syntax with class names. |
b0d0931f | 2087 | * c-common.h (objc_build_class_component_ref): New. |
2088 | * stub-objc.c (objc_build_class_component_ref): New. | |
2089 | ||
f26877d5 | 2090 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
2091 | ||
2092 | * c.opt (Wproperty-assign-default): New option. | |
2093 | ||
1ef143b6 | 2094 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
2095 | ||
2096 | Implemented -fobjc-std=objc1 flag. | |
2097 | * c.opt (fobjc-std=objc1): New option. | |
2098 | ||
8c582e4f | 2099 | 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com> |
2100 | ||
2101 | Implemented format and noreturn attributes for Objective-C methods. | |
2102 | * c-common.c (handle_noreturn_attribute): Recognize 'noreturn' | |
2103 | attribute for Objective-C methods. | |
2104 | ||
8637f1db | 2105 | 2010-10-31 Jason Merrill <jason@redhat.com> |
2106 | ||
2107 | * c-common.c (conversion_warning, warn_for_collisions_1): Use | |
2108 | EXPR_LOC_OR_HERE. | |
2109 | ||
9d9f5bb3 | 2110 | 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com> |
2111 | ||
2112 | Implemented Objective-C 2.0 @property, @synthesize and @dynamic. | |
2113 | * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR. | |
2114 | (objc_add_property_declaration): Removed arguments for copies and | |
2115 | ivar. | |
2116 | (objc_build_getter_call): Renamed to | |
2117 | objc_maybe_build_component_ref. | |
2118 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
2119 | (objc_is_property_ref): New. | |
2120 | * c-common.c (c_common_reswords): Removed copies and ivar. | |
2121 | * stub-objc.c (objc_add_property_declaration): Removed arguments | |
2122 | for copies and ivar. | |
2123 | (objc_build_getter_call): Renamed to | |
2124 | objc_maybe_build_component_ref. | |
2125 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
2126 | (objc_is_property_ref): New. | |
19931eea | 2127 | |
56f907a0 | 2128 | 2010-10-29 Arnaud Charlet <charlet@adacore.com> |
2129 | Matthew Gingell <gingell@adacore.com> | |
2130 | ||
2131 | * c-ada-spec.c (separate_class_package): New function. | |
2132 | (pp_ada_tree_identifier): Prefix references to C++ classes with the | |
2133 | name of their enclosing package. | |
2134 | (print_ada_declaration): Use separate_class_package. | |
2135 | ||
b5fa273e | 2136 | 2010-10-27 Jason Merrill <jason@redhat.com> |
2137 | ||
5290e253 | 2138 | * c-common.c (c_common_reswords): Add __is_literal_type. |
2139 | * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE. | |
2140 | ||
b5fa273e | 2141 | * c-common.c (check_case_value): Remove special C++ code. |
2142 | ||
7590f0e5 | 2143 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
2144 | ||
2145 | * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN, | |
2146 | RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR | |
2147 | and RID_LAST_PATTR. | |
2148 | (objc_add_property_declaration): Added additional arguments. | |
2149 | (objc_property_attribute_kind): Removed. | |
2150 | (objc_set_property_attr): Removed. | |
2151 | * c-common.c (c_common_reswords): Added readwrite, assign, retain, | |
2152 | copy and nonatomic. | |
2153 | * stub-objc.c (objc_add_property_declaration): Added additional | |
2154 | arguments. | |
2155 | (objc_set_property_attr): Removed. | |
19931eea | 2156 | |
1d894bcf | 2157 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
2158 | ||
2159 | * c-common.h (objc_add_property_variable): Renamed to | |
2160 | objc_add_property_declaration. Added location argument. | |
2161 | * stub-objc.c (objc_add_property_variable): Same change. | |
2162 | ||
e23bf1fb | 2163 | 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com> |
2164 | ||
2165 | * c-common.h (objc_maybe_printable_name): New. | |
2166 | * stub-objc.c (objc_maybe_printable_name): New. | |
2167 | ||
93426222 | 2168 | 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
2169 | Andrew Pinski <pinskia@gmail.com> | |
2170 | ||
2171 | * c-common.h (c_common_mark_addressable_vec): Declare. | |
2172 | * c-common.c (c_common_mark_addressable_vec): New function. | |
2173 | ||
45b2b110 | 2174 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
2175 | ||
2176 | * c-common.h (objc_set_method_type): Removed. | |
2177 | (objc_add_method_declaration): Added boolean argument. | |
2178 | (objc_start_method_definition): Same change. | |
2179 | (objc_build_method_signature): Same change. | |
2180 | * stub-objc.c (objc_set_method_type): Removed. | |
2181 | (objc_add_method_declaration): Added boolean argument. | |
2182 | (objc_start_method_definition): Same change. | |
2183 | (objc_build_method_signature): Same change. | |
2184 | ||
64cd9619 | 2185 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
2186 | ||
2187 | * c-common.h (finish_file): Removed. | |
2188 | (objc_write_global_declarations): New. | |
2189 | * c-opts.c (c_common_parse_file): Do not call finish_file. | |
2190 | * stub-objc.c (objc_write_global_declarations): New. | |
19931eea | 2191 | |
e1f293c0 | 2192 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
2193 | ||
2194 | Implemented parsing @synthesize and @dynamic for | |
2195 | Objective-C/Objective-C++. | |
2196 | * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC. | |
2197 | (objc_add_synthesize_declaration): New. | |
2198 | (objc_add_dynamic_declaration): New. | |
2199 | * c-common.c (c_common_reswords): Add synthesize and dynamic. | |
2200 | * stub-objc.c (objc_add_synthesize_declaration): New. | |
2201 | (objc_add_dynamic_declaration): New. | |
19931eea | 2202 | |
ef97a312 | 2203 | 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com> |
2204 | ||
2205 | PR target/46041 | |
2206 | * c-cppbuiltin.c (mode_has_fma): Move function here from | |
2207 | builtins.c. Don't use the fma optab, instead just use the | |
2208 | HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when | |
2209 | using -save-temps. | |
2210 | ||
69b07042 | 2211 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
2212 | ||
2213 | Merge from 'apple/trunk' branch on FSF servers. | |
ef97a312 | 2214 | |
69b07042 | 2215 | 2005-11-08 Fariborz Jahanian <fjahanian@apple.com> |
2216 | ||
19931eea | 2217 | Radar 4330422 |
69b07042 | 2218 | * c-common.h (objc_non_volatilized_type): New declaration |
2219 | * stub-objc.c (objc_non_volatilized_type): New stub. | |
2220 | ||
f15f2e56 | 2221 | 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com> |
2222 | ||
69b07042 | 2223 | Merge from 'apple/trunk' branch on FSF servers. |
f15f2e56 | 2224 | |
2225 | 2006-03-27 Fariborz Jahanian <fjahanian@apple.com> | |
2226 | ||
19931eea | 2227 | Radar 4133425 |
f15f2e56 | 2228 | * c-common.h (objc_diagnose_private_ivar): New decl. |
ef97a312 | 2229 | * stub-objc.c (objc_diagnose_private_ivar): New stub. |
f15f2e56 | 2230 | |
4a8875ed | 2231 | 2010-10-17 Iain Sandoe <iains@gcc.gnu.org> |
2232 | ||
2233 | * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE. | |
2234 | * c-common.h (enum rid): Add RID_AT_PACKAGE. | |
2235 | (objc_ivar_visibility_kind): New enum. | |
2236 | (objc_set_visibility): Adjust prototype to use visibility enum. | |
ef97a312 | 2237 | * stub-objc.c (objc_set_visibility): Adjust stub to use |
4a8875ed | 2238 | visibility enum. |
2239 | ||
7e0713b1 | 2240 | 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com> |
2241 | ||
2242 | * c-cppbuiltin.c (builtin_define_float_constants): Emit | |
2243 | __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine | |
2244 | has the appropriate fma builtins. | |
2245 | (c_cpp_builtins): Adjust call to builtin_define_float_constants. | |
2246 | ||
86c110ac | 2247 | 2010-10-14 Iain Sandoe <iains@gcc.gnu.org> |
2248 | ||
7e0713b1 | 2249 | merge from FSF apple 'trunk' branch. |
86c110ac | 2250 | 2006 Fariborz Jahanian <fjahanian@apple.com> |
7e0713b1 | 2251 | |
86c110ac | 2252 | Radars 4436866, 4505126, 4506903, 4517826 |
2253 | * c-common.c (c_common_resword): Define @property and its attributes. | |
2254 | * c-common.h: Define property attribute enum entries. | |
2255 | (OBJC_IS_PATTR_KEYWORD): New. | |
2256 | (objc_property_attribute_kind): New enum. | |
2257 | Declare objc_set_property_attr (), objc_add_property_variable (), | |
2258 | objc_build_getter_call () and objc_build_setter_call (). | |
2259 | * stub-objc.c (objc_set_property_attr): New stub. | |
2260 | (objc_add_property_variable): Likewise. | |
2261 | (objc_build_getter_call): Likewise. | |
2262 | (objc_build_setter_call) Likewise. | |
7e0713b1 | 2263 | |
40c8d1dd | 2264 | 2010-10-13 Iain Sandoe <iains@gcc.gnu.org> |
2265 | ||
7e0713b1 | 2266 | merge from FSF apple 'trunk' branch. |
40c8d1dd | 2267 | 2006-04-26 Fariborz Jahanian <fjahanian@apple.com> |
2268 | ||
2269 | Radar 3803157 (method attributes) | |
2270 | * c-common.c (handle_deprecated_attribute): Recognize | |
2271 | objc methods as valid declarations. | |
2272 | * c-common.h: Declare objc_method_decl (). | |
7e0713b1 | 2273 | * stub-objc.c (objc_method_decl): New stub. |
40c8d1dd | 2274 | |
f3f006ad | 2275 | 2010-10-08 Joseph Myers <joseph@codesourcery.com> |
2276 | ||
2277 | * c-common.c (parse_optimize_options): Call | |
2278 | decode_cmdline_options_to_array_default_mask before | |
2279 | decode_options. Update arguments to decode_options. | |
2280 | * c-common.h (c_common_init_options_struct): Declare. | |
2281 | * c-opts.c (c_common_init_options_struct): New. Split out from | |
2282 | c_common_init_options. | |
2283 | ||
0a65c3bb | 2284 | 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com> |
2285 | ||
2286 | Implemented fast enumeration for Objective-C. | |
2287 | * c-common.h (objc_finish_foreach_loop): New. | |
2288 | * stub-objc.c (objc_finish_foreach_loop): New. | |
2289 | ||
24ca3b4e | 2290 | 2010-10-05 Joseph Myers <joseph@codesourcery.com> |
2291 | ||
2292 | * c-common.h (struct diagnostic_context): Don't declare here. | |
2293 | (c_common_initialize_diagnostics): Declare using | |
2294 | diagnostic_context typedef. | |
2295 | * c-opts.c (c_common_handle_option): Pass global_dc to | |
2296 | handle_generated_option. | |
2297 | ||
f83b64ca | 2298 | 2010-10-04 Joseph Myers <joseph@codesourcery.com> |
2299 | ||
2300 | * c-opts.c (c_common_handle_option): Pass &global_options_set to | |
2301 | handle_generated_option. | |
2302 | ||
2fdec027 | 2303 | 2010-10-03 Ian Lance Taylor <iant@google.com> |
2304 | ||
2305 | * c.opt (-fplan9-extensions): New option. | |
2306 | ||
41acdfa4 | 2307 | 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
2308 | ||
2309 | * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision): | |
2310 | Remove. | |
2311 | (c_cpp_builtins): Call functions from cppbuiltin.c instead | |
2312 | of duplicating code. | |
2313 | ||
069761fb | 2314 | 2010-09-30 Iain Sandoe <iains@gcc.gnu.org> |
2315 | ||
2316 | * c-common.c: Add two new entries for @optional | |
2317 | and @required keywords. | |
2318 | ||
2319 | merge from FSF 'apple/trunk' branch. | |
2320 | 2006-01-30 Fariborz Jahanian <fjahanian@apple.com> | |
2321 | ||
2322 | Radar 4386773 | |
2323 | * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new | |
2324 | objective-c keywords. | |
2325 | (objc_set_method_opt): New declaration. | |
2326 | * stub-objc.c (objc_set_method_opt): New stub. | |
19931eea | 2327 | |
2c5d2e39 | 2328 | 2010-09-30 Joseph Myers <joseph@codesourcery.com> |
2329 | ||
2330 | * c-common.c (handle_optimize_attribute): Pass &global_options to | |
2331 | cl_optimization_save and cl_optimization_restore. | |
2332 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
2333 | handle_generated_option. | |
2334 | * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var. | |
2335 | (handle_pragma_pop_options, handle_pragma_reset_options): Pass | |
2336 | &global_options to cl_optimization_restore. | |
2337 | ||
e5c75ac3 | 2338 | 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com> |
2339 | ||
2340 | * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME | |
2341 | Objective-C/Objective-C++ keywords. | |
2342 | ||
3511333e | 2343 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
e147d6aa | 2344 | |
19931eea | 2345 | Merge from 'apple/trunk' branch on FSF servers. |
2346 | ||
e147d6aa | 2347 | 2005-10-04 Fariborz Jahanian <fjahanian@apple.com> |
2348 | ||
2349 | Radar 4281748 | |
2350 | * c-common.h (objc_check_global_decl): New declaration. | |
2351 | * stub-objc.c (objc_check_global_decl): New stub. | |
2352 | ||
5461e683 | 2353 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
2354 | ||
2355 | * c.opt: Don't use VarExists. | |
2356 | ||
5ae82d58 | 2357 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
2358 | ||
2359 | * c-common.c (c_cpp_error): Update names of diagnostic_context | |
2360 | members. | |
2361 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of | |
2362 | cl_optimization members. | |
2363 | * c-opts.c (warning_as_error_callback, c_common_handle_option, | |
2364 | sanitize_cpp_opts, finish_options): Update names of cpp_options | |
2365 | members. | |
2366 | ||
b27e241e | 2367 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
2368 | ||
2369 | * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments. | |
2370 | (objc_is_reserved_word): Removed. | |
2371 | * c-common.c: Updated comments. | |
2372 | * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of | |
2373 | objc_is_reserved_word. | |
2374 | * stub-objc.c (objc_is_reserved_word): Removed. | |
2375 | ||
03fc2271 | 2376 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
2377 | ||
19931eea | 2378 | * c-common.h (objc_add_method_declaration): Adjust prototype to |
03fc2271 | 2379 | include attributes. |
2380 | (objc_start_method_definition): Likewise. | |
2381 | (objc_build_keyword_decl): Likewise. | |
2382 | * stub-objc.c:(objc_add_method_declaration): Handle attributes. | |
2383 | (objc_start_method_definition): Likewise. | |
2384 | (objc_build_keyword_decl): Likewise. | |
2385 | ||
a336eb4b | 2386 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
2387 | ||
2388 | * c-common.h (objc_start_class_interface): Adjust prototype. | |
2389 | (objc_start_category_interface): Likewise. | |
2390 | (objc_start_protocol): Likewise. | |
2391 | * stub-objc.c (objc_start_protocol): Adjust for extra argument. | |
2392 | (objc_start_class_interface): Likewise. | |
2393 | (objc_start_category_interface): Likewise. | |
2394 | ||
48b14f50 | 2395 | 2010-09-27 Ian Lance Taylor <iant@google.com> |
2396 | ||
2397 | * c-common.c (c_common_attribute_table): Add no_split_stack. | |
2398 | (handle_no_split_stack_attribute): New static function. | |
2399 | ||
4abfc532 | 2400 | 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com> |
2401 | ||
19931eea | 2402 | Merge from 'apple/trunk' branch on FSF servers. |
4abfc532 | 2403 | |
2404 | 2005-12-15 Fariborz Jahanian <fjahanian@apple.com> | |
2405 | ||
19931eea | 2406 | Radar 4229905 |
4abfc532 | 2407 | * c-common.h (objc_have_common_type): New declaration. |
2408 | * stub-objc.c (objc_have_common_type): New stub. | |
2409 | ||
2410 | 2005-06-22 Ziemowit Laski <zlaski@apple.com> | |
2411 | ||
2412 | Radar 4154928 | |
2413 | * c-common.h (objc_common_type): New prototype. | |
19931eea | 2414 | * stub-objc.c (objc_common_type): New stub. |
4abfc532 | 2415 | |
7bd95dfd | 2416 | 2010-09-24 Jan Hubicka <jh@suse.cz> |
2417 | ||
2418 | * c-common.c (handle_leaf_attribute): New function. | |
2419 | (struct attribute_spec c_common_att): Add leaf. | |
2420 | ||
5789e05b | 2421 | 2010-09-22 Joseph Myers <joseph@codesourcery.com> |
2422 | ||
2423 | * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments, | |
2424 | -comments-in-macros, -define-macro, -define-macro=, -dependencies, | |
2425 | -dump, -dump=, -imacros, -imacros=, -include, -include=, | |
2426 | -include-barrier, -include-directory, -include-directory=, | |
2427 | -include-directory-after, -include-directory-after=, | |
2428 | -include-prefix, -include-prefix=, -include-with-prefix, | |
2429 | -include-with-prefix=, -include-with-prefix-after, | |
2430 | -include-with-prefix-after=, -include-with-prefix-before, | |
2431 | -include-with-prefix-before=, -no-integrated-cpp, | |
2432 | -no-line-commands, -no-standard-includes, -no-warnings, -output, | |
2433 | -output=, -pedantic, -pedantic-errors, -preprocess, | |
2434 | -print-missing-file-dependencies, -trace-includes, -traditional, | |
2435 | -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=, | |
2436 | -user-dependencies, -verbose, -write-dependencies, | |
2437 | -write-user-dependencies, no-integrated-cpp, traditional): New. | |
2438 | ||
e6fb54ba | 2439 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> |
2440 | ||
2441 | PR objc/23710 | |
9b60f3b0 | 2442 | * c-common.h (objc_start_method_definition): Return bool instead |
2443 | of void. | |
2444 | * stub-objc.c (objc_start_method_definition): Return bool instead | |
2445 | of void. | |
2446 | ||
2447 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> | |
2448 | ||
2449 | PR objc/25965 | |
2450 | * c-common.h (objc_get_interface_ivars): New declaration. | |
2451 | * stub-objc.c (objc_get_interface_ivars): New stub. | |
e6fb54ba | 2452 | |
e44b0a1f | 2453 | 2010-09-15 Ian Lance Taylor <iant@google.com> |
2454 | ||
2455 | * c-common.c (parse_optimize_options): Do not capitalize warning | |
ebd7c4c1 | 2456 | messages. Remove period at end of warning message. |
e44b0a1f | 2457 | |
85c0a25c | 2458 | 2010-09-09 Nathan Sidwell <nathan@codesourcery.com> |
2459 | ||
2460 | * c-common.c (handle_alias_ifunc_attribute): New, broken out of ... | |
2461 | (handle_alias_attribute): ... here. | |
2462 | (handle_ifunc_attribute): New. | |
2463 | ||
5ba33bf4 | 2464 | 2010-09-06 Mark Mitchell <mark@codesourcery.com> |
2465 | ||
2466 | * c-common.h (do_warn_double_promotion): Declare. | |
2467 | * c-common.c (do_warn_double_promotion): Define. | |
2468 | ||
c920faa3 | 2469 | 2010-09-05 Mark Mitchell <mark@codesourcery.com> |
2470 | ||
2471 | * c.opt (Wdouble-promotion): New. | |
2472 | ||
9604e070 | 2473 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
2474 | ||
2475 | * c.opt (falt-external-templates, fhuge-objects, fvtable-gc, | |
2476 | fvtable-thunks, fxref): Mark no longer supported in help text. | |
2477 | ||
3b0273a1 | 2478 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
2479 | ||
2480 | * c.opt (Wimport, fall-virtual, falt-external-templates, | |
2481 | fdefault-inline, fenum-int-equiv, fexternal-templates, | |
2482 | fguiding-decls, fhonor-std, fhuge-objects, flabels-ok, | |
2483 | fname-mangling-version-, fnew-abi, fnonnull-objects, | |
2484 | foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable, | |
2485 | fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as | |
2486 | applicable. | |
2487 | (fhandle-exceptions): Mark with Alias and Warn. | |
2488 | * c-opts.c (c_common_handle_option): Don't handle options marked | |
2489 | as ignored. | |
2490 | ||
67089c6b | 2491 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
2492 | ||
2493 | * c.opt (Wcomments, Werror-implicit-function-declaration, | |
2494 | ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x, | |
2495 | std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as | |
2496 | aliases. | |
2497 | * c-common.c (option_codes): Use OPT_Wcomment instead of | |
2498 | OPT_Wcomments. | |
2499 | * c-opts.c (warning_as_error_callback, c_common_handle_option): | |
2500 | Don't handle options marked as aliases. | |
2501 | ||
2af087f2 | 2502 | 2010-08-25 Richard Guenther <rguenther@suse.de> |
2503 | ||
2504 | * c-common.c (c_common_get_alias_set): Remove special | |
2505 | handling for pointers. | |
2506 | ||
48148244 | 2507 | 2010-08-20 Nathan Froyd <froydnj@codesourcery.com> |
2508 | ||
2509 | * c-common.c: Use FOR_EACH_VEC_ELT. | |
2510 | * c-gimplify.c: Likewise. | |
2511 | * c-pragma.c: Likewise. | |
2512 | ||
89c69892 | 2513 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
2514 | ||
2515 | * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of | |
2516 | RejectDriver. | |
2517 | (MMDX): Change back to MMD. Mark NoDriverArg instead of | |
2518 | RejectDriver. | |
2519 | * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD | |
2520 | instead of OPT_MDX and OPT_MMDX. | |
2521 | ||
e28aa114 | 2522 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
2523 | ||
2524 | * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver. | |
2525 | ||
99b66d21 | 2526 | 2010-08-12 Joseph Myers <joseph@codesourcery.com> |
2527 | ||
2528 | * c.opt (MD, MMD): Change to MDX and MMDX. | |
2529 | * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX. | |
2530 | ||
666f4bf0 | 2531 | 2010-08-11 Joseph Myers <joseph@codesourcery.com> |
2532 | ||
2533 | * c-opts.c (c_common_handle_option): Call handle_generated_option | |
2534 | instead of handle_option. | |
2535 | ||
5ec815f6 | 2536 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
2537 | ||
2538 | * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push. | |
2539 | (maybe_apply_renaming_pragma): Delete unneeded declarations. | |
2540 | ||
d13143cf | 2541 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
2542 | ||
2543 | * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it. | |
2544 | (pending_redefine_extname): Change type to a VEC. | |
2545 | (add_to_renaming_pragma_list): Update for new type of | |
2546 | pending_redefine_extname. | |
5ec815f6 | 2547 | (maybe_apply_renaming_pragma): Likewise. |
d13143cf | 2548 | |
2008c983 | 2549 | 2010-08-04 Arnaud Charlet <charlet@adacore.com> |
2550 | ||
2551 | * c-ada-spec.c (dump_ada_template): Mark underlying instance type as | |
2552 | visited. | |
2553 | (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to | |
2554 | decide whether a type has already been declared/seen. | |
2555 | Do not go to the original type. | |
2556 | (dump_nested_types): New parameter forward. | |
2557 | Generate forward declaration if needed and mark type as visited. | |
2558 | (print_ada_declaration): Call dump_nested_types if not already done. | |
2559 | Mark types as visited. | |
2560 | ||
9b091a73 | 2561 | 2010-08-03 Joseph Myers <joseph@codesourcery.com> |
2562 | ||
2563 | * c.opt (-print-pch-checksum): Remove option. | |
2564 | * c-opts.c (c_common_handle_option): Don't handle | |
2565 | OPT_print_pch_checksum. | |
2566 | ||
b78351e5 | 2567 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
2568 | ||
2569 | * c-common.h (c_common_handle_option): Update prototype and return | |
2570 | value type. | |
2571 | * c-opts.c (c_common_handle_option): Update prototype and return | |
2572 | value type. Update calls to handle_option and | |
2573 | enable_warning_as_error. | |
2574 | ||
34416a90 | 2575 | 2010-07-27 Jakub Jelinek <jakub@redhat.com> |
2576 | ||
2577 | PR c/45079 | |
2578 | * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR. | |
2579 | ||
fecf9011 | 2580 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
2581 | ||
2582 | * c-common.h (c_common_missing_argument): Remove. | |
2583 | * c-opts.c (c_common_missing_argument): Remove. | |
2584 | * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=, | |
2585 | idirafter, imacros, include, isysroot, isystem, iquote): Add | |
2586 | MissingArgError. | |
2587 | * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove. | |
2588 | ||
e88d34f6 | 2589 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
2590 | ||
2591 | * c-common.h (c_common_option_lang_mask, | |
2592 | c_common_initialize_diagnostics, c_common_complain_wrong_lang_p): | |
2593 | New. | |
2594 | (c_common_init_options): Update prototype. | |
2595 | * c-opts.c (c_common_option_lang_mask): New. | |
2596 | (c_common_initialize_diagnostics): Split out of | |
2597 | c_common_init_options. | |
2598 | (accept_all_c_family_options, c_common_complain_wrong_lang_p): | |
2599 | New. | |
2600 | (c_common_init_options): Update prototype. Use decoded options in | |
2601 | search for -lang-asm. | |
2602 | ||
1767a056 | 2603 | 2010-07-15 Nathan Froyd <froydnj@codesourcery.com> |
2604 | ||
2605 | * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN. | |
2606 | * c-format.c: Likewise. | |
2607 | ||
0b205f4c | 2608 | 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2609 | ||
2610 | * c-common.h: Include diagnostic-core.h. Error if already | |
2611 | included. | |
2612 | * c-semantics.c: Do not define GCC_DIAG_STYLE here. | |
2613 | ||
1c58e3f1 | 2614 | 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2615 | ||
2616 | * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef. | |
2617 | Do not include expr.h | |
2618 | (vector_mode_valid_p): Move here. | |
2619 | ||
33cc157c | 2620 | 2010-06-21 DJ Delorie <dj@redhat.com> |
2621 | ||
2622 | * c-pragma.c (handle_pragma_diagnostic): Add push/pop, | |
2623 | allow these pragmas anywhere. | |
2624 | ||
2625 | 2010-06-14 Jakub Jelinek <jakub@redhat.com> | |
2626 | ||
2627 | PR bootstrap/44509 | |
2628 | * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h. | |
2629 | (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers. | |
2630 | (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use | |
2631 | ggc_strdup instead of xstrdup. | |
2632 | ||
2633 | 2010-06-10 Jakub Jelinek <jakub@redhat.com> | |
2634 | ||
2635 | * c-cppbuiltin.c: Include cpp-id-data.h. | |
2636 | (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables. | |
2637 | (lazy_hex_fp_value): New function. | |
2638 | (builtin_define_with_hex_fp_value): Provide definitions lazily. | |
2639 | ||
9b40bfbf | 2640 | 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2641 | ||
2642 | * c-gimplify.c: Do not include tree-flow.h | |
2643 | ||
202d6e5f | 2644 | 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com> |
2645 | ||
2646 | PR other/44034 | |
2647 | * c-common.c: Rename targetm member: | |
2648 | targetm.enum_va_list -> targetm.enum_va_list_p | |
2649 | ||
d3237426 | 2650 | 2010-06-28 Anatoly Sokolov <aesok@post.ru> |
2651 | ||
2652 | * c-common.c (shorten_compare): Adjust call to force_fit_type_double. | |
2653 | ||
596981c8 | 2654 | 2010-06-28 Steven Bosscher <steven@gcc.gnu.org> |
2655 | ||
2656 | * c-cppbuiltin.c: Do not include except.h. | |
2657 | ||
b9bdfa0b | 2658 | 2010-06-24 Andi Kleen <ak@linux.intel.com> |
2659 | ||
19931eea | 2660 | * c-common.c (warn_for_omitted_condop): New. |
2661 | * c-common.h (warn_for_omitted_condop): Add prototype. | |
b9bdfa0b | 2662 | |
55ad092d | 2663 | 2010-06-21 Joseph Myers <joseph@codesourcery.com> |
2664 | ||
2665 | * c.opt (lang-objc): Remove. | |
2666 | * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc. | |
2667 | ||
9e7c2572 | 2668 | 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com> |
2669 | ||
2670 | * c-opts.c: Include "tm_p.h". | |
2671 | ||
615ef0bb | 2672 | 2010-06-20 Joseph Myers <joseph@codesourcery.com> |
2673 | ||
2674 | * c-common.c (parse_optimize_options): Update call to | |
2675 | decode_options. | |
2676 | ||
aef48c9a | 2677 | 2010-06-18 Nathan Froyd <froydnj@codesourcery.com> |
2678 | ||
2679 | * c-common.c (record_types_used_by_current_var_decl): Adjust for | |
2680 | new type of types_used_by_cur_var_decl. | |
2681 | ||
d74003b4 | 2682 | 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com> |
2683 | ||
2684 | PR bootstrap/44512 | |
2685 | * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast | |
2686 | for C++ standard compliance. | |
2687 | ||
1194d077 | 2688 | 2010-06-16 Jason Merrill <jason@redhat.com> |
2689 | ||
2690 | * c.opt: Add -Wnoexcept. | |
2691 | ||
d473d901 | 2692 | 2010-06-16 Richard Guenther <rguenther@suse.de> |
2693 | ||
2694 | PR c/44555 | |
2695 | * c-common.c (c_common_truthvalue_conversion): Remove | |
2696 | premature and wrong optimization concering ADDR_EXPRs. | |
2697 | ||
b62dbfd3 | 2698 | 2010-06-15 Arnaud Charlet <charlet@adacore.com> |
2699 | ||
2700 | * c-ada-spec.c (dump_sloc): Remove column info. | |
2701 | (is_simple_enum): New function. | |
2702 | (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada | |
2703 | enum types when relevant. | |
2704 | ||
200dd99c | 2705 | 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
2706 | ||
19931eea | 2707 | * c-common.c (conversion_warning): Warn at expression |
200dd99c | 2708 | location. |
2709 | ||
abf6a617 | 2710 | 2010-06-10 Joseph Myers <joseph@codesourcery.com> |
2711 | ||
2712 | * c-opts.c (c_common_handle_option): Don't handle | |
2713 | OPT_fshow_column. | |
2714 | ||
ba72912a | 2715 | 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com> |
2716 | ||
2717 | * c-pragma.c (push_alignment): Use typed GC allocation. | |
2718 | (handle_pragma_push_options): Likewise. | |
2719 | ||
2720 | * c-common.c (parse_optimize_options): Likewise. | |
2721 | ||
2722 | * c-common.h (struct sorted_fields_type): Add variable_size GTY | |
2723 | option. | |
2724 | ||
4aafe913 | 2725 | 2010-06-07 Joseph Myers <joseph@codesourcery.com> |
2726 | ||
2727 | * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin, | |
2728 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
2729 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
2730 | flag_signed_bitfields, warn_strict_null_sentinel, | |
2731 | flag_nil_receivers, flag_zero_link, flag_replace_objc_classes, | |
2732 | flag_gen_declaration, flag_no_gnu_keywords, | |
2733 | flag_implement_inlines, flag_implicit_templates, | |
2734 | flag_implicit_inline_templates, flag_optional_diags, | |
2735 | flag_elide_constructors, flag_default_inline, flag_rtti, | |
2736 | flag_conserve_space, flag_access_control, flag_check_new, | |
2737 | flag_new_for_scope, flag_weak, flag_working_directory, | |
2738 | flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr, | |
2739 | flag_enforce_eh_specs, flag_threadsafe_statics, | |
2740 | flag_pretty_templates): Remove. | |
2741 | * c-common.h (flag_preprocess_only, flag_nil_receivers, | |
2742 | flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link, | |
2743 | flag_replace_objc_classes, flag_undef, flag_no_builtin, | |
2744 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
2745 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
2746 | flag_const_strings, flag_signed_bitfields, flag_gen_declaration, | |
2747 | flag_no_gnu_keywords, flag_implement_inlines, | |
2748 | flag_implicit_templates, flag_implicit_inline_templates, | |
2749 | flag_optional_diags, flag_elide_constructors, flag_default_inline, | |
2750 | flag_rtti, flag_conserve_space, flag_access_control, | |
2751 | flag_check_new, flag_new_for_scope, flag_weak, | |
2752 | flag_working_directory, flag_use_cxa_atexit, | |
2753 | flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs, | |
2754 | flag_threadsafe_statics, flag_pretty_templates, | |
2755 | warn_strict_null_sentinel): Remove. | |
2756 | * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm, | |
2757 | fbuiltin, fcheck-new, fconserve-space, felide-constructors, | |
2758 | fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines, | |
2759 | fimplicit-inline-templates, fimplicit-templates, | |
2760 | flax-vector-conversions, fms-extensions, fnil-receivers, | |
2761 | fnonansi-builtins, fpretty-templates, freplace-objc-classes, | |
2762 | frtti, fshort-double, fshort-enums, fshort-wchar, | |
2763 | fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics, | |
2764 | funsigned-bitfields, funsigned-char, fuse-cxa-atexit, | |
2765 | fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link, | |
2766 | gen-decls, undef): Use Var. | |
2767 | (fdefault-inline, foptional-diags): Document as doing nothing. | |
2768 | * c-opts.c (c_common_handle_option): Remove cases for options now | |
2769 | using Var. Mark ignored options as such. | |
2770 | ||
7bedc3a0 | 2771 | 2010-06-05 Steven Bosscher <steven@gcc.gnu.org> |
2772 | ||
19931eea | 2773 | * c-common.c: Moved to here from parent directory. |
7bedc3a0 | 2774 | * c-common.def: Likewise. |
2775 | * c-common.h: Likewise. | |
2776 | * c-cppbuiltin.c: Likewise. | |
2777 | * c-dump.c: Likewise. | |
2778 | * c-format.c: Likewise. | |
2779 | * c-format.h : Likewise. | |
2780 | * c-gimplify.c: Likewise. | |
2781 | * c-lex.c: Likewise. | |
2782 | * c-omp.c: Likewise. | |
2783 | * c.opt: Likewise. | |
2784 | * c-opts.c: Likewise. | |
2785 | * c-pch.c: Likewise. | |
2786 | * c-ppoutput.c: Likewise. | |
2787 | * c-pragma.c: Likewise. | |
2788 | * c-pragma.h: Likewise. | |
2789 | * c-pretty-print.c: Likewise. | |
2790 | * c-pretty-print.h: Likewise. | |
2791 | * c-semantics.c: Likewise. | |
2792 | * stub-objc.c: Likewise. | |
2793 | ||
2794 | * c-common.c: Include gt-c-family-c-common.h. | |
2795 | * c-pragma.c: Include gt-c-family-c-pragma.h. | |
2796 | \f | |
711789cc | 2797 | Copyright (C) 2010-2013 Free Software Foundation, Inc. |
7bedc3a0 | 2798 | |
2799 | Copying and distribution of this file, with or without modification, | |
2800 | are permitted in any medium without royalty provided the copyright | |
2801 | notice and this notice are preserved. |