]>
Commit | Line | Data |
---|---|---|
014ab419 JW |
1 | 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com> |
2 | ||
3 | * c.opt: Add -Wdelete-non-virtual-dtor. | |
4 | * c-opts.c (c_common_handle_option): Include it in -Wall. | |
5 | ||
4f60111f NF |
6 | 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org> |
7 | ||
8 | PR bootstrap/49190 | |
9 | ||
10 | Revert: | |
11 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> | |
12 | ||
13 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
14 | not tree_common. | |
15 | ||
4cc4f2f4 JJ |
16 | 2011-05-27 Jakub Jelinek <jakub@redhat.com> |
17 | ||
18 | PR c++/49165 | |
19 | * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For | |
20 | C++ don't call c_common_truthvalue_conversion on void type arms. | |
21 | ||
38e01f9e NF |
22 | 2011-05-27 Nathan Froyd <froydnj@codesourcery.com> |
23 | ||
24 | * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC. | |
25 | (stmt_list_stack): Define. | |
26 | (cur_stmt_list): Adjust for new type of x_cur_stmt_list. | |
27 | * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise. | |
28 | ||
92e948a8 NF |
29 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
30 | ||
31 | * c-common.c (warning_candidate_p): Check for BLOCKs. | |
32 | ||
a2fc3e63 NF |
33 | 2011-05-26 Nathan Froyd <froydnj@codesourcery.com> |
34 | ||
35 | * c-common.h (struct c_common_identifier): Inherit from tree_typed, | |
36 | not tree_common. | |
37 | ||
0957c029 JJ |
38 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> |
39 | ||
40 | * c-common.c (def_fn_type): Remove extra va_end. | |
41 | ||
828fb3ba JM |
42 | 2011-05-23 Jason Merrill <jason@redhat.com> |
43 | ||
44 | PR c++/48106 | |
45 | * c-common.c (c_common_get_narrower): New. | |
46 | (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it. | |
47 | ||
dde05067 NF |
48 | 2011-05-23 Nathan Froyd <froydnj@codesourcery.com> |
49 | ||
50 | * c-common.h (check_function_arguments): Tweak prototype of | |
51 | check_function_arguments. | |
52 | * c-common.c (check_function_arguments): Likewise. Adjust | |
53 | calls to check_function_nonnull, check_function_format, and | |
54 | check_function_sentinel. | |
55 | (check_function_sentinel): Take a FUNCTION_TYPE rather than | |
56 | separate attributes and typelist arguments. Use | |
57 | FOREACH_FUNCTION_ARGS to iterate over argument types. | |
58 | ||
3c0d13bf PC |
59 | 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com> |
60 | ||
61 | * c-common.c (c_common_reswords): Reorder. | |
62 | * c-common.h (rid): Likewise. | |
63 | ||
8242dd04 NF |
64 | 2011-05-10 Nathan Froyd <froydnj@codesourcery.com> |
65 | ||
66 | * c-common.c (def_fn_type): Don't call build_function_type, call | |
67 | build_function_type_array or build_varargs_function_type_array | |
68 | instead. | |
69 | (c_common_nodes_and_builtins): Likewise. | |
70 | ||
3d528853 NF |
71 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
72 | ||
73 | * c-common.c (c_add_case_label): Omit the loc argument to | |
74 | build_case_label. | |
75 | * c-common.h (build_case_label): Remove. | |
76 | * c-semantics.c (build_case_label): Remove. | |
77 | ||
a04a722b JM |
78 | 2011-05-05 Joseph Myers <joseph@codesourcery.com> |
79 | ||
80 | * c-objc.h (objc_start_method_definition): Update prototype. | |
81 | * stub-objc.c (objc_start_method_definition): Add extra parameter. | |
82 | ||
e19a18d4 NF |
83 | 2011-05-04 Nathan Froyd <froydnj@codesourcery.com> |
84 | ||
85 | * c-common.c (check_main_parameter_types): Reindent. Don't use | |
86 | TYPE_ARG_TYPES directly. | |
87 | (handle_nonnull_attribute): Likewise. | |
88 | (sync_resolve_params): Likewise. | |
89 | * c-format.c (handle_format_arg_attribute): Likewise. Adjust call | |
90 | to check_format_string. | |
91 | (handle_format_attribute): Likewise. | |
92 | (check_format_string): Take a function type to examine instead of | |
93 | a type list. Use a function_arg_iterator to step through argument | |
94 | types. | |
95 | ||
c62c040f RG |
96 | 2011-05-04 Richard Guenther <rguenther@suse.de> |
97 | ||
98 | * c-common.c (fix_string_type): Use size_int for index type bounds. | |
99 | (start_fname_decls): Do not pass NULL to build_int_cst. | |
100 | (c_init_attributes): Likewise. | |
101 | * c-lex.c (c_lex_with_flags): Likewise. | |
102 | ||
c12ff9d8 JM |
103 | 2011-04-27 Jason Merrill <jason@redhat.com> |
104 | ||
105 | * c-common.c (make_tree_vector_from_list): New. | |
106 | * c-common.h: Declare it. | |
107 | ||
304dfbe3 RG |
108 | 2011-04-26 Richard Guenther <rguenther@suse.de> |
109 | ||
110 | PR preprocessor/48248 | |
111 | * c-ppoutput.c (maybe_print_line): Always optimize newlines | |
112 | for output size with -P. | |
113 | ||
3c0d13bf PC |
114 | 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com> |
115 | ||
116 | * c-common.c (struct c_common_resword): Add __underlying_type. | |
117 | * c-common.h (enum rid): Add RID_UNDERLYING_TYPE. | |
118 | ||
04695783 JM |
119 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
120 | ||
121 | * c-format.c (init_dollar_format_checking): Remove useless | |
122 | if-before-free. | |
123 | ||
0dc33c3c NP |
124 | 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com> |
125 | ||
126 | * c-objc.h (objc_get_interface_ivars): Removed. | |
3c0d13bf | 127 | (objc_detect_field_duplicates): New. |
0dc33c3c | 128 | * stub-objc.c: Likewise. |
3c0d13bf | 129 | |
c59633d9 NP |
130 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
131 | ||
132 | * stub-objc.c (objc_declare_protocols): Renamed to | |
133 | objc_declare_protocol. | |
134 | * c-objc.h: Likewise. | |
3c0d13bf | 135 | |
32dabdaf NP |
136 | 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com> |
137 | ||
138 | * stub-objc.c (objc_declare_class): Updated argument name. | |
139 | ||
81f653d6 NF |
140 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> |
141 | ||
142 | * c-common.h (c_common_init_ts): Declare. | |
143 | * c-common.c (c_common_init_ts): Define. | |
144 | ||
eb345401 NP |
145 | 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com> |
146 | ||
147 | * c-objc.h (objc_build_message_expr): Updated prototype. | |
148 | * stub-objc.c (objc_build_message_expr): Likewise. | |
149 | ||
a358e188 MJ |
150 | 2011-04-12 Martin Jambor <mjambor@suse.cz> |
151 | ||
152 | * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead | |
153 | of cgraph_node. | |
154 | ||
e6313a78 RG |
155 | 2011-04-11 Richard Guenther <rguenther@suse.de> |
156 | ||
157 | * c-common.c (complete_array_type): Build a range type of | |
158 | proper type. | |
159 | ||
dcf0c47e NF |
160 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> |
161 | ||
162 | * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES. | |
163 | (handle_type_generic_attribute): Likewise. | |
164 | ||
1ee44b26 JM |
165 | 2011-04-07 Jason Merrill <jason@redhat.com> |
166 | ||
167 | PR c++/48450 | |
168 | * c-common.c (c_common_truthvalue_conversion): Don't ignore | |
169 | conversion from C++0x scoped enum. | |
170 | ||
acce4e77 JM |
171 | 2011-04-06 Joseph Myers <joseph@codesourcery.com> |
172 | ||
173 | * c-target-def.h: New file. | |
174 | * c-target.def: New file. | |
175 | * c-target.h: New file. | |
176 | * c-common.c (targetcm): Don't define here. | |
177 | * c-common.h (default_handle_c_option): Declare. | |
178 | * c-format.c: Include c-target.h instead of target.h. | |
179 | * c-opts.c: Include c-target.h instead of target.h. Explicitly | |
180 | include tm.h. | |
181 | (default_handle_c_option): Move from targhooks.c. | |
182 | ||
e2eefb55 JJ |
183 | 2011-03-29 Jakub Jelinek <jakub@redhat.com> |
184 | ||
185 | PR preprocessor/48248 | |
186 | * c-ppoutput.c (print): Add src_file field. | |
187 | (init_pp_output): Initialize it. | |
188 | (maybe_print_line): Don't optimize by adding up to 8 newlines | |
189 | if map->to_file and print.src_file are different file. | |
190 | (print_line): Update print.src_file. | |
191 | ||
ba78087b KT |
192 | 2011-03-25 Kai Tietz <ktietz@redhat.com> |
193 | ||
194 | * c-ada-spec.c (compare_comment): Use filename_cmp | |
195 | instead of strcmp for filename. | |
196 | ||
0edf1bb2 JL |
197 | 2011-03-25 Jeff Law <law@redhat.com> |
198 | ||
199 | * c-family/c-common.c (def_fn_type): Add missing va_end. | |
200 | ||
c7dc8804 JM |
201 | 2011-03-25 Jason Merrill <jason@redhat.com> |
202 | ||
203 | * c.opt: Add -std=c++03. | |
204 | ||
d1d879b1 EB |
205 | 2011-03-22 Eric Botcazou <ebotcazou@adacore.com> |
206 | ||
207 | * c-ada-spec.c (dump_ada_template): Skip non-class instances. | |
208 | ||
62d784f7 KT |
209 | 2011-03-17 Kai Tietz |
210 | ||
211 | PR target/12171 | |
5050afdf KT |
212 | * c-pretty-print.c (pp_c_specifier_qualifier_list): |
213 | Display allowed attributes for function pointer types. | |
214 | (pp_c_attributes_display): New function to display | |
215 | attributes having affects_type_identity flag set to true. | |
216 | * c-pretty-print.h (pp_c_attributes_display): New prototype. | |
217 | ||
62d784f7 KT |
218 | * c-common.c (c_common_attribute_table): |
219 | Add new element. | |
220 | (c_common_format_attribute_table): Likewise. | |
221 | ||
82d37118 JM |
222 | 2011-03-18 Jason Merrill <jason@redhat.com> |
223 | ||
49a000c3 JM |
224 | * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth). |
225 | * c-common.h: Don't declare it here. | |
226 | * c-common.c: Or define it here. | |
227 | * c-opts.c (c_common_handle_option): Or set it here. | |
228 | ||
82d37118 JM |
229 | PR c++/35315 |
230 | * c-common.c (handle_transparent_union_attribute): Don't | |
231 | make a duplicate type in C++. | |
232 | ||
17bc631c JM |
233 | 2011-03-15 Jason Merrill <jason@redhat.com> |
234 | ||
235 | * c-common.c (max_constexpr_depth): New. | |
236 | * c-common.h: Declare it. | |
237 | * c-opts.c (c_common_handle_option): Set it. | |
238 | * c.opt (fconstexpr-depth): New option. | |
239 | ||
1b9b91a6 JM |
240 | 2011-03-11 Jason Merrill <jason@redhat.com> |
241 | ||
f231b5ff JM |
242 | * c-common.c (attribute_takes_identifier_p): Add missing const. |
243 | ||
1b9b91a6 JM |
244 | PR c++/46803 |
245 | * c-common.c (attribute_takes_identifier_p): Assume that an | |
246 | unknown attribute takes an identifier. | |
247 | ||
a19e4d44 NF |
248 | 2011-03-07 Nathan Froyd <froydnj@codesourcery.com> |
249 | ||
250 | PR c/47786 | |
251 | * c-common.c (c_type_hash): Call list_length instead of iterating | |
252 | through DECL_CHAIN. Rename 'i' to 'n_elements'. | |
253 | ||
982d62f6 JJ |
254 | 2011-02-19 Jakub Jelinek <jakub@redhat.com> |
255 | ||
256 | PR c/47809 | |
257 | * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR. | |
258 | ||
0a256240 NP |
259 | 2011-02-17 Iain Sandoe <iains@gcc.gnu.org> |
260 | ||
261 | * c.opt (fobjc-abi-version=) New. | |
262 | (fobjc-nilcheck): New. | |
263 | ||
ba9e6dd5 NF |
264 | 2011-02-03 Nathan Froyd <froydnj@codesourcery.com> |
265 | ||
266 | PR c++/46890 | |
267 | * c-common.h (keyword_is_decl_specifier): Declare. | |
268 | * c-common.c (keyword_is_decl_specifier): Define. | |
269 | (keyword_is_function_specifier): New function. | |
270 | ||
7273813a JJ |
271 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
272 | ||
273 | PR c/47473 | |
274 | * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure | |
275 | EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of | |
276 | REAL_TYPE. | |
277 | ||
908ef79b AC |
278 | 2011-01-26 Arnaud Charlet <charlet@adacore.com> |
279 | ||
280 | * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type. | |
281 | ||
237e9384 JJ |
282 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> |
283 | ||
284 | PR pch/47430 | |
285 | * c-opts.c (c_common_post_options): Call c_common_no_more_pch | |
286 | after init_c_lex if pch_file is set. | |
287 | ||
47ea1edf DK |
288 | 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com> |
289 | ||
d4dba752 | 290 | PR c++/43601 |
47ea1edf DK |
291 | * c.opt (-fkeep-inline-dllexport): New switch. |
292 | ||
2aa9c6ae RG |
293 | 2011-01-12 Richard Guenther <rguenther@suse.de> |
294 | ||
295 | PR middle-end/32511 | |
296 | * c-common.c (handle_weak_attribute): Warn instead of error | |
297 | on declaring an inline function weak. | |
298 | ||
7bd11157 TT |
299 | 2011-01-05 Tom Tromey <tromey@redhat.com> |
300 | ||
301 | * c-common.h (lvalue_error): Update. | |
302 | * c-common.c (lvalue_error): Add 'loc' argument. Call error_at, | |
303 | not error. | |
304 | ||
0e66e494 NP |
305 | 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com> |
306 | ||
b4f588c4 NP |
307 | PR objc/47075 |
308 | * c-objc.h (objc_finish_message_expr): Added argument to | |
309 | prototype. | |
310 | ||
f4da8dce NF |
311 | 2010-12-22 Nathan Froyd <froydnj@codesourcery.com> |
312 | ||
313 | * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute): | |
314 | Use prototype_p. | |
315 | ||
46270f14 NP |
316 | 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com> |
317 | ||
318 | * c-objc.h (objc_maybe_warn_exceptions): New. | |
319 | * stub-objc.c (objc_maybe_warn_exceptions): New. | |
320 | ||
4816c593 NF |
321 | 2010-12-10 Nathan Froyd <froydnj@codesourcery.com> |
322 | ||
323 | * c-common.h (readonly_error): Declare. | |
324 | * c-common.c (readonly_error): Define. | |
325 | ||
7a6daeb0 NF |
326 | 2010-12-09 Nathan Froyd <froydnj@codesourcery.com> |
327 | ||
328 | * c-common.h (invalid_indirection_error): Declare. | |
329 | * c-common.c (invalid_indirection_error): Define. | |
330 | ||
892f6119 RG |
331 | 2010-12-03 Richard Guenther <rguenther@suse.de> |
332 | ||
333 | PR c/46745 | |
334 | * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF. | |
335 | (pp_c_unary_expression): Likewise. | |
336 | (pp_c_expression): Likewise. | |
337 | ||
6c39e757 NP |
338 | 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com> |
339 | ||
340 | * c-common.h (objc_finish_function): New. | |
341 | (objc_non_volatilized_type): Removed. | |
342 | (objc_type_quals_match): Removed. | |
343 | * stub-objc.c (objc_finish_function): New. | |
344 | (objc_non_volatilized_type): Removed. | |
345 | (objc_type_quals_match): Removed. | |
346 | ||
7c475d11 JM |
347 | 2010-11-30 Joseph Myers <joseph@codesourcery.com> |
348 | ||
349 | * c-common.h (parse_optimize_options): Declare. | |
350 | * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c, | |
351 | c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h. | |
352 | ||
71f3e391 JM |
353 | 2010-11-29 Joseph Myers <joseph@codesourcery.com> |
354 | ||
355 | * c-opts.c (check_deps_environment_vars): Use getenv instead of | |
356 | GET_ENVIRONMENT. | |
357 | * c-pch.c (O_BINARY): Don't define here. | |
358 | * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>. | |
359 | ||
d5fabb58 JM |
360 | 2010-11-25 Joseph Myers <joseph@codesourcery.com> |
361 | ||
362 | * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to | |
363 | targetm.except_unwind_info. | |
364 | ||
299404a1 JM |
365 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
366 | ||
367 | * c-opts.c (c_common_handle_option): Pass location to | |
368 | set_struct_debug_option. | |
369 | ||
c98cd5bf JM |
370 | 2010-11-23 Joseph Myers <joseph@codesourcery.com> |
371 | ||
372 | * c-common.c (visibility_options): Move from ../opts.c. | |
373 | * c-common.h (struct visibility_flags, visibility_options): | |
374 | Declare here. | |
375 | * c-opts.c (finish_options): Rename to c_finish_options. | |
376 | (c_common_init): Update call to finish_options. | |
377 | ||
a9546771 NP |
378 | 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com> |
379 | ||
380 | PR objc/34033 | |
381 | * c-lex.c (lex_string): Check that each string in an Objective-C | |
382 | string concat sequence starts with either one or zero '@', and | |
383 | that there are no spurious '@' signs at the end. | |
384 | ||
24a57808 JM |
385 | 2010-11-20 Joseph Myers <joseph@codesourcery.com> |
386 | ||
387 | * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK, | |
388 | HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and | |
389 | HANDLE_PRAGMA_VISIBILITY. | |
390 | * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK, | |
391 | HANDLE_PRAGMA_VISIBILITY): Don't define. | |
392 | (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test. | |
393 | ||
a9aa2c3a NF |
394 | 2010-11-20 Nathan Froyd <froydnj@codesourcery.com> |
395 | ||
396 | PR c++/16189 | |
397 | PR c++/36888 | |
398 | PR c++/45331 | |
399 | * c-common.h (keyword_begins_type_specifier): Declare. | |
400 | (keyword_is_storage_class_specifier): Declare. | |
401 | (keyword_is_type_qualifier): Declare. | |
402 | * c-common.c (keyword_begins_type_specifier): New function. | |
403 | (keyword_is_storage_class_specifier): New function. | |
404 | (keyword_is_type_qualifier): Declare. | |
405 | ||
5386338c JM |
406 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
407 | ||
408 | PR c/46547 | |
409 | * c-common.c (in_late_binary_op): Define. | |
410 | (c_common_truthvalue_conversion): Check in_late_binary_op before | |
411 | calling c_save_expr. | |
412 | * c-common.h (in_late_binary_op): Declare. | |
413 | ||
69ccdddb JM |
414 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
415 | ||
416 | * c-opts.c (c_common_handle_option): Update calls to | |
417 | set_struct_debug_option. | |
418 | ||
6b192a09 NP |
419 | 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com> |
420 | ||
421 | * c-common.h (objc_declare_protocols): Added additional argument. | |
422 | * stub-objc.c (objc_declare_protocol): Same change. | |
423 | ||
fb52b50a NF |
424 | 2010-11-18 Nathan Froyd <froydnj@codesourcery.com> |
425 | ||
426 | PR c/33193 | |
427 | * c-common.h (build_real_imag_expr): Declare. | |
428 | * c-semantics.c (build_real_imag_expr): Define. | |
429 | ||
b37421c6 JM |
430 | 2010-11-17 Joseph Myers <joseph@codesourcery.com> |
431 | ||
432 | * c-opts.c (c_common_parse_file): Take no arguments. | |
433 | * c-common.h (c_common_parse_file): Update prototype. | |
434 | ||
07078664 JJ |
435 | 2010-11-16 Jakub Jelinek <jakub@redhat.com> |
436 | ||
437 | PR c++/46401 | |
438 | * c-common.c (warning_candidate_p): Don't track non-const calls | |
439 | or STRING_CSTs. | |
440 | ||
c6a13190 ILT |
441 | 2010-11-15 Ian Lance Taylor <iant@google.com> |
442 | ||
443 | * c-lex.c (init_c_lex): Set macro debug callbacks if | |
444 | flag_dump_go_spec is set. | |
445 | ||
925e8657 NP |
446 | 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com> |
447 | ||
448 | * c-common.h (objc_build_incr_expr_for_property_ref): New. | |
449 | * stub-objc.c (objc_build_incr_expr_for_property_ref): New. | |
450 | ||
bb0a9581 NF |
451 | 2010-11-15 Nathan Froyd <froydnj@codesourcery.com> |
452 | ||
453 | PR preprocessor/45038 | |
454 | * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++ | |
455 | dialects. | |
456 | ||
c5fa0890 JM |
457 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
458 | ||
459 | * c-common.h (c_family_lang_mask): Declare. | |
460 | * c-opts.c (c_family_lang_mask): Make extern. | |
461 | * c-pragma.c (handle_pragma_diagnostic): Use | |
462 | control_warning_option. | |
463 | ||
a4d8c676 JM |
464 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
465 | ||
466 | * c-common.c (parse_optimize_options): Update call to | |
467 | decode_options. | |
468 | * c-common.h (c_common_handle_option): Update prototype. | |
469 | * c-opts.c (c_common_handle_option): Take location_t parameter and | |
470 | pass it to other functions. | |
471 | ||
f954bd2c JM |
472 | 2010-11-11 Joseph Myers <joseph@codesourcery.com> |
473 | ||
474 | * c-opts.c (warning_as_error_callback): Remove. | |
475 | (c_common_initialize_diagnostics): Don't call | |
476 | register_warning_as_error_callback. | |
477 | (c_common_handle_option): Handle -Werror=normalized= here. | |
478 | ||
d8a07487 JM |
479 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
480 | ||
481 | * c-common.c (handle_mode_attribute): Use %' and word "signedness" | |
482 | in diagnostic. | |
483 | * c-opts.c (c_common_parse_file): Start diagnostics with lowercase | |
484 | letter. | |
485 | * c-pragma.c (handle_pragma_target, handle_pragma_optimize): | |
486 | Remove trailing '.' from diagnostics. | |
487 | * c.opt (Wwrite-strings_: Avoid '`' in help text. | |
488 | ||
d5478783 JM |
489 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
490 | ||
491 | * c-common.c (parse_optimize_options): Pass global_dc to | |
492 | decode_options. | |
493 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
494 | set_Wstrict_aliasing. | |
495 | * c.opt (v): Don't mark Common or document here. | |
496 | ||
91ebb981 IS |
497 | 2010-11-06 Iain Sandoe <iains@gcc.gnu.org> |
498 | ||
499 | PR target/44981 | |
500 | * c-format.c (format_type): New type gcc_objc_string_format_type. | |
501 | (valid_stringptr_type_p): New. | |
502 | (handle_format_arg_attribute): Use valid_stringptr_type_p (). | |
503 | (check_format_string): Pass expected type, use | |
504 | valid_stringptr_type_p (), check that the format string types are | |
505 | consistent with the format specification. | |
506 | (decode_format_attr): Warn if NSString is used outside objective-c. | |
507 | (format_types_orig): Add NSString. | |
508 | (format_name): New. | |
509 | (format_flags): New. | |
510 | (check_format_arg): Handle format strings requiring an external parser. | |
511 | first_target_format_type: New variable. | |
512 | (handle_format_attribute): Set up first_target_format_type, pass the | |
513 | expected format arg string type to check_format_string(). | |
514 | * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag. | |
515 | * stub-objc.c (objc_string_ref_type_p): New. | |
516 | (objc_check_format_arg): New. | |
517 | ||
bede2adc NP |
518 | 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com> |
519 | ||
520 | Fixed using the Objective-C 2.0 dot-syntax with class names. | |
521 | * c-common.h (objc_build_class_component_ref): New. | |
522 | * stub-objc.c (objc_build_class_component_ref): New. | |
523 | ||
9a179d01 NP |
524 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
525 | ||
526 | * c.opt (Wproperty-assign-default): New option. | |
527 | ||
22d8d616 NP |
528 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
529 | ||
530 | Implemented -fobjc-std=objc1 flag. | |
531 | * c.opt (fobjc-std=objc1): New option. | |
532 | ||
2debdb4f NP |
533 | 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com> |
534 | ||
535 | Implemented format and noreturn attributes for Objective-C methods. | |
536 | * c-common.c (handle_noreturn_attribute): Recognize 'noreturn' | |
537 | attribute for Objective-C methods. | |
538 | ||
ec52b111 JM |
539 | 2010-10-31 Jason Merrill <jason@redhat.com> |
540 | ||
541 | * c-common.c (conversion_warning, warn_for_collisions_1): Use | |
542 | EXPR_LOC_OR_HERE. | |
543 | ||
46a88c12 NP |
544 | 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com> |
545 | ||
546 | Implemented Objective-C 2.0 @property, @synthesize and @dynamic. | |
547 | * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR. | |
548 | (objc_add_property_declaration): Removed arguments for copies and | |
549 | ivar. | |
550 | (objc_build_getter_call): Renamed to | |
551 | objc_maybe_build_component_ref. | |
552 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
553 | (objc_is_property_ref): New. | |
554 | * c-common.c (c_common_reswords): Removed copies and ivar. | |
555 | * stub-objc.c (objc_add_property_declaration): Removed arguments | |
556 | for copies and ivar. | |
557 | (objc_build_getter_call): Renamed to | |
558 | objc_maybe_build_component_ref. | |
559 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
560 | (objc_is_property_ref): New. | |
561 | ||
1e4bf85b AC |
562 | 2010-10-29 Arnaud Charlet <charlet@adacore.com> |
563 | Matthew Gingell <gingell@adacore.com> | |
564 | ||
565 | * c-ada-spec.c (separate_class_package): New function. | |
566 | (pp_ada_tree_identifier): Prefix references to C++ classes with the | |
567 | name of their enclosing package. | |
568 | (print_ada_declaration): Use separate_class_package. | |
569 | ||
81f0bab2 JM |
570 | 2010-10-27 Jason Merrill <jason@redhat.com> |
571 | ||
2b08f2c5 JM |
572 | * c-common.c (c_common_reswords): Add __is_literal_type. |
573 | * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE. | |
574 | ||
81f0bab2 JM |
575 | * c-common.c (check_case_value): Remove special C++ code. |
576 | ||
200290f2 NP |
577 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
578 | ||
579 | * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN, | |
580 | RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR | |
581 | and RID_LAST_PATTR. | |
582 | (objc_add_property_declaration): Added additional arguments. | |
583 | (objc_property_attribute_kind): Removed. | |
584 | (objc_set_property_attr): Removed. | |
585 | * c-common.c (c_common_reswords): Added readwrite, assign, retain, | |
586 | copy and nonatomic. | |
587 | * stub-objc.c (objc_add_property_declaration): Added additional | |
588 | arguments. | |
589 | (objc_set_property_attr): Removed. | |
590 | ||
f614132b NP |
591 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
592 | ||
593 | * c-common.h (objc_add_property_variable): Renamed to | |
594 | objc_add_property_declaration. Added location argument. | |
595 | * stub-objc.c (objc_add_property_variable): Same change. | |
596 | ||
b8a18805 NP |
597 | 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com> |
598 | ||
599 | * c-common.h (objc_maybe_printable_name): New. | |
600 | * stub-objc.c (objc_maybe_printable_name): New. | |
601 | ||
30cd1c5d AS |
602 | 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
603 | Andrew Pinski <pinskia@gmail.com> | |
604 | ||
605 | * c-common.h (c_common_mark_addressable_vec): Declare. | |
606 | * c-common.c (c_common_mark_addressable_vec): New function. | |
607 | ||
249a82c4 NP |
608 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
609 | ||
610 | * c-common.h (objc_set_method_type): Removed. | |
611 | (objc_add_method_declaration): Added boolean argument. | |
612 | (objc_start_method_definition): Same change. | |
613 | (objc_build_method_signature): Same change. | |
614 | * stub-objc.c (objc_set_method_type): Removed. | |
615 | (objc_add_method_declaration): Added boolean argument. | |
616 | (objc_start_method_definition): Same change. | |
617 | (objc_build_method_signature): Same change. | |
618 | ||
977e30bc NP |
619 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
620 | ||
621 | * c-common.h (finish_file): Removed. | |
622 | (objc_write_global_declarations): New. | |
623 | * c-opts.c (c_common_parse_file): Do not call finish_file. | |
624 | * stub-objc.c (objc_write_global_declarations): New. | |
625 | ||
da57d1b9 NP |
626 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
627 | ||
628 | Implemented parsing @synthesize and @dynamic for | |
629 | Objective-C/Objective-C++. | |
630 | * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC. | |
631 | (objc_add_synthesize_declaration): New. | |
632 | (objc_add_dynamic_declaration): New. | |
633 | * c-common.c (c_common_reswords): Add synthesize and dynamic. | |
634 | * stub-objc.c (objc_add_synthesize_declaration): New. | |
635 | (objc_add_dynamic_declaration): New. | |
636 | ||
0069111f MM |
637 | 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com> |
638 | ||
639 | PR target/46041 | |
640 | * c-cppbuiltin.c (mode_has_fma): Move function here from | |
641 | builtins.c. Don't use the fma optab, instead just use the | |
642 | HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when | |
643 | using -save-temps. | |
644 | ||
e426b47b NP |
645 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
646 | ||
647 | Merge from 'apple/trunk' branch on FSF servers. | |
0069111f | 648 | |
e426b47b NP |
649 | 2005-11-08 Fariborz Jahanian <fjahanian@apple.com> |
650 | ||
651 | Radar 4330422 | |
652 | * c-common.h (objc_non_volatilized_type): New declaration | |
653 | * stub-objc.c (objc_non_volatilized_type): New stub. | |
654 | ||
90fbfdc3 NP |
655 | 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com> |
656 | ||
e426b47b | 657 | Merge from 'apple/trunk' branch on FSF servers. |
90fbfdc3 NP |
658 | |
659 | 2006-03-27 Fariborz Jahanian <fjahanian@apple.com> | |
660 | ||
661 | Radar 4133425 | |
662 | * c-common.h (objc_diagnose_private_ivar): New decl. | |
0069111f | 663 | * stub-objc.c (objc_diagnose_private_ivar): New stub. |
90fbfdc3 | 664 | |
c37d8c30 IS |
665 | 2010-10-17 Iain Sandoe <iains@gcc.gnu.org> |
666 | ||
667 | * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE. | |
668 | * c-common.h (enum rid): Add RID_AT_PACKAGE. | |
669 | (objc_ivar_visibility_kind): New enum. | |
670 | (objc_set_visibility): Adjust prototype to use visibility enum. | |
0069111f | 671 | * stub-objc.c (objc_set_visibility): Adjust stub to use |
c37d8c30 IS |
672 | visibility enum. |
673 | ||
1b1562a5 MM |
674 | 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com> |
675 | ||
676 | * c-cppbuiltin.c (builtin_define_float_constants): Emit | |
677 | __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine | |
678 | has the appropriate fma builtins. | |
679 | (c_cpp_builtins): Adjust call to builtin_define_float_constants. | |
680 | ||
668ea4b1 IS |
681 | 2010-10-14 Iain Sandoe <iains@gcc.gnu.org> |
682 | ||
1b1562a5 | 683 | merge from FSF apple 'trunk' branch. |
668ea4b1 | 684 | 2006 Fariborz Jahanian <fjahanian@apple.com> |
1b1562a5 | 685 | |
668ea4b1 IS |
686 | Radars 4436866, 4505126, 4506903, 4517826 |
687 | * c-common.c (c_common_resword): Define @property and its attributes. | |
688 | * c-common.h: Define property attribute enum entries. | |
689 | (OBJC_IS_PATTR_KEYWORD): New. | |
690 | (objc_property_attribute_kind): New enum. | |
691 | Declare objc_set_property_attr (), objc_add_property_variable (), | |
692 | objc_build_getter_call () and objc_build_setter_call (). | |
693 | * stub-objc.c (objc_set_property_attr): New stub. | |
694 | (objc_add_property_variable): Likewise. | |
695 | (objc_build_getter_call): Likewise. | |
696 | (objc_build_setter_call) Likewise. | |
1b1562a5 | 697 | |
a1178b30 IS |
698 | 2010-10-13 Iain Sandoe <iains@gcc.gnu.org> |
699 | ||
1b1562a5 | 700 | merge from FSF apple 'trunk' branch. |
a1178b30 IS |
701 | 2006-04-26 Fariborz Jahanian <fjahanian@apple.com> |
702 | ||
703 | Radar 3803157 (method attributes) | |
704 | * c-common.c (handle_deprecated_attribute): Recognize | |
705 | objc methods as valid declarations. | |
706 | * c-common.h: Declare objc_method_decl (). | |
1b1562a5 | 707 | * stub-objc.c (objc_method_decl): New stub. |
a1178b30 | 708 | |
a75bfaa6 JM |
709 | 2010-10-08 Joseph Myers <joseph@codesourcery.com> |
710 | ||
711 | * c-common.c (parse_optimize_options): Call | |
712 | decode_cmdline_options_to_array_default_mask before | |
713 | decode_options. Update arguments to decode_options. | |
714 | * c-common.h (c_common_init_options_struct): Declare. | |
715 | * c-opts.c (c_common_init_options_struct): New. Split out from | |
716 | c_common_init_options. | |
717 | ||
f05b9d93 NP |
718 | 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com> |
719 | ||
720 | Implemented fast enumeration for Objective-C. | |
721 | * c-common.h (objc_finish_foreach_loop): New. | |
722 | * stub-objc.c (objc_finish_foreach_loop): New. | |
723 | ||
1ebe4b4f JM |
724 | 2010-10-05 Joseph Myers <joseph@codesourcery.com> |
725 | ||
726 | * c-common.h (struct diagnostic_context): Don't declare here. | |
727 | (c_common_initialize_diagnostics): Declare using | |
728 | diagnostic_context typedef. | |
729 | * c-opts.c (c_common_handle_option): Pass global_dc to | |
730 | handle_generated_option. | |
731 | ||
d4d24ba4 JM |
732 | 2010-10-04 Joseph Myers <joseph@codesourcery.com> |
733 | ||
734 | * c-opts.c (c_common_handle_option): Pass &global_options_set to | |
735 | handle_generated_option. | |
736 | ||
478a1c5b ILT |
737 | 2010-10-03 Ian Lance Taylor <iant@google.com> |
738 | ||
739 | * c.opt (-fplan9-extensions): New option. | |
740 | ||
82a1c2fe FXC |
741 | 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
742 | ||
743 | * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision): | |
744 | Remove. | |
745 | (c_cpp_builtins): Call functions from cppbuiltin.c instead | |
746 | of duplicating code. | |
747 | ||
92902b1b IS |
748 | 2010-09-30 Iain Sandoe <iains@gcc.gnu.org> |
749 | ||
750 | * c-common.c: Add two new entries for @optional | |
751 | and @required keywords. | |
752 | ||
753 | merge from FSF 'apple/trunk' branch. | |
754 | 2006-01-30 Fariborz Jahanian <fjahanian@apple.com> | |
755 | ||
756 | Radar 4386773 | |
757 | * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new | |
758 | objective-c keywords. | |
759 | (objc_set_method_opt): New declaration. | |
760 | * stub-objc.c (objc_set_method_opt): New stub. | |
761 | ||
46625112 JM |
762 | 2010-09-30 Joseph Myers <joseph@codesourcery.com> |
763 | ||
764 | * c-common.c (handle_optimize_attribute): Pass &global_options to | |
765 | cl_optimization_save and cl_optimization_restore. | |
766 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
767 | handle_generated_option. | |
768 | * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var. | |
769 | (handle_pragma_pop_options, handle_pragma_reset_options): Pass | |
770 | &global_options to cl_optimization_restore. | |
771 | ||
49b91f05 NP |
772 | 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com> |
773 | ||
774 | * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME | |
775 | Objective-C/Objective-C++ keywords. | |
776 | ||
13ed556f | 777 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
a6341d57 NP |
778 | |
779 | Merge from 'apple/trunk' branch on FSF servers. | |
780 | ||
781 | 2005-10-04 Fariborz Jahanian <fjahanian@apple.com> | |
782 | ||
783 | Radar 4281748 | |
784 | * c-common.h (objc_check_global_decl): New declaration. | |
785 | * stub-objc.c (objc_check_global_decl): New stub. | |
786 | ||
f0036cca JM |
787 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
788 | ||
789 | * c.opt: Don't use VarExists. | |
790 | ||
e3339d0f JM |
791 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
792 | ||
793 | * c-common.c (c_cpp_error): Update names of diagnostic_context | |
794 | members. | |
795 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of | |
796 | cl_optimization members. | |
797 | * c-opts.c (warning_as_error_callback, c_common_handle_option, | |
798 | sanitize_cpp_opts, finish_options): Update names of cpp_options | |
799 | members. | |
800 | ||
1973201f NP |
801 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
802 | ||
803 | * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments. | |
804 | (objc_is_reserved_word): Removed. | |
805 | * c-common.c: Updated comments. | |
806 | * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of | |
807 | objc_is_reserved_word. | |
808 | * stub-objc.c (objc_is_reserved_word): Removed. | |
809 | ||
f7e71da5 IS |
810 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
811 | ||
812 | * c-common.h (objc_add_method_declaration): Adjust prototype to | |
813 | include attributes. | |
814 | (objc_start_method_definition): Likewise. | |
815 | (objc_build_keyword_decl): Likewise. | |
816 | * stub-objc.c:(objc_add_method_declaration): Handle attributes. | |
817 | (objc_start_method_definition): Likewise. | |
818 | (objc_build_keyword_decl): Likewise. | |
819 | ||
c165dca7 IS |
820 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
821 | ||
822 | * c-common.h (objc_start_class_interface): Adjust prototype. | |
823 | (objc_start_category_interface): Likewise. | |
824 | (objc_start_protocol): Likewise. | |
825 | * stub-objc.c (objc_start_protocol): Adjust for extra argument. | |
826 | (objc_start_class_interface): Likewise. | |
827 | (objc_start_category_interface): Likewise. | |
828 | ||
7458026b ILT |
829 | 2010-09-27 Ian Lance Taylor <iant@google.com> |
830 | ||
831 | * c-common.c (c_common_attribute_table): Add no_split_stack. | |
832 | (handle_no_split_stack_attribute): New static function. | |
833 | ||
b581b85b NP |
834 | 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com> |
835 | ||
836 | Merge from 'apple/trunk' branch on FSF servers. | |
837 | ||
838 | 2005-12-15 Fariborz Jahanian <fjahanian@apple.com> | |
839 | ||
840 | Radar 4229905 | |
841 | * c-common.h (objc_have_common_type): New declaration. | |
842 | * stub-objc.c (objc_have_common_type): New stub. | |
843 | ||
844 | 2005-06-22 Ziemowit Laski <zlaski@apple.com> | |
845 | ||
846 | Radar 4154928 | |
847 | * c-common.h (objc_common_type): New prototype. | |
848 | * stub-objc.c (objc_common_type): New stub. | |
849 | ||
46a4da10 JH |
850 | 2010-09-24 Jan Hubicka <jh@suse.cz> |
851 | ||
852 | * c-common.c (handle_leaf_attribute): New function. | |
853 | (struct attribute_spec c_common_att): Add leaf. | |
854 | ||
e200444e JM |
855 | 2010-09-22 Joseph Myers <joseph@codesourcery.com> |
856 | ||
857 | * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments, | |
858 | -comments-in-macros, -define-macro, -define-macro=, -dependencies, | |
859 | -dump, -dump=, -imacros, -imacros=, -include, -include=, | |
860 | -include-barrier, -include-directory, -include-directory=, | |
861 | -include-directory-after, -include-directory-after=, | |
862 | -include-prefix, -include-prefix=, -include-with-prefix, | |
863 | -include-with-prefix=, -include-with-prefix-after, | |
864 | -include-with-prefix-after=, -include-with-prefix-before, | |
865 | -include-with-prefix-before=, -no-integrated-cpp, | |
866 | -no-line-commands, -no-standard-includes, -no-warnings, -output, | |
867 | -output=, -pedantic, -pedantic-errors, -preprocess, | |
868 | -print-missing-file-dependencies, -trace-includes, -traditional, | |
869 | -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=, | |
870 | -user-dependencies, -verbose, -write-dependencies, | |
871 | -write-user-dependencies, no-integrated-cpp, traditional): New. | |
872 | ||
29a80ea6 NP |
873 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> |
874 | ||
875 | PR objc/23710 | |
ac1fc2fc NP |
876 | * c-common.h (objc_start_method_definition): Return bool instead |
877 | of void. | |
878 | * stub-objc.c (objc_start_method_definition): Return bool instead | |
879 | of void. | |
880 | ||
881 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> | |
882 | ||
883 | PR objc/25965 | |
884 | * c-common.h (objc_get_interface_ivars): New declaration. | |
885 | * stub-objc.c (objc_get_interface_ivars): New stub. | |
29a80ea6 | 886 | |
de621752 ILT |
887 | 2010-09-15 Ian Lance Taylor <iant@google.com> |
888 | ||
889 | * c-common.c (parse_optimize_options): Do not capitalize warning | |
06730c5d | 890 | messages. Remove period at end of warning message. |
de621752 | 891 | |
ba885ec5 NS |
892 | 2010-09-09 Nathan Sidwell <nathan@codesourcery.com> |
893 | ||
894 | * c-common.c (handle_alias_ifunc_attribute): New, broken out of ... | |
895 | (handle_alias_attribute): ... here. | |
896 | (handle_ifunc_attribute): New. | |
897 | ||
c5ee1358 MM |
898 | 2010-09-06 Mark Mitchell <mark@codesourcery.com> |
899 | ||
900 | * c-common.h (do_warn_double_promotion): Declare. | |
901 | * c-common.c (do_warn_double_promotion): Define. | |
902 | ||
0a0b3574 MM |
903 | 2010-09-05 Mark Mitchell <mark@codesourcery.com> |
904 | ||
905 | * c.opt (Wdouble-promotion): New. | |
906 | ||
d1779886 JM |
907 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
908 | ||
909 | * c.opt (falt-external-templates, fhuge-objects, fvtable-gc, | |
910 | fvtable-thunks, fxref): Mark no longer supported in help text. | |
911 | ||
2d2bd949 JM |
912 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
913 | ||
914 | * c.opt (Wimport, fall-virtual, falt-external-templates, | |
915 | fdefault-inline, fenum-int-equiv, fexternal-templates, | |
916 | fguiding-decls, fhonor-std, fhuge-objects, flabels-ok, | |
917 | fname-mangling-version-, fnew-abi, fnonnull-objects, | |
918 | foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable, | |
919 | fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as | |
920 | applicable. | |
921 | (fhandle-exceptions): Mark with Alias and Warn. | |
922 | * c-opts.c (c_common_handle_option): Don't handle options marked | |
923 | as ignored. | |
924 | ||
5de8299c JM |
925 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
926 | ||
927 | * c.opt (Wcomments, Werror-implicit-function-declaration, | |
928 | ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x, | |
929 | std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as | |
930 | aliases. | |
931 | * c-common.c (option_codes): Use OPT_Wcomment instead of | |
932 | OPT_Wcomments. | |
933 | * c-opts.c (warning_as_error_callback, c_common_handle_option): | |
934 | Don't handle options marked as aliases. | |
935 | ||
0ceb0201 RG |
936 | 2010-08-25 Richard Guenther <rguenther@suse.de> |
937 | ||
938 | * c-common.c (c_common_get_alias_set): Remove special | |
939 | handling for pointers. | |
940 | ||
ac47786e NF |
941 | 2010-08-20 Nathan Froyd <froydnj@codesourcery.com> |
942 | ||
943 | * c-common.c: Use FOR_EACH_VEC_ELT. | |
944 | * c-gimplify.c: Likewise. | |
945 | * c-pragma.c: Likewise. | |
946 | ||
c878765b JM |
947 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
948 | ||
949 | * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of | |
950 | RejectDriver. | |
951 | (MMDX): Change back to MMD. Mark NoDriverArg instead of | |
952 | RejectDriver. | |
953 | * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD | |
954 | instead of OPT_MDX and OPT_MMDX. | |
955 | ||
603349bf JM |
956 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
957 | ||
958 | * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver. | |
959 | ||
644fa7ac JM |
960 | 2010-08-12 Joseph Myers <joseph@codesourcery.com> |
961 | ||
962 | * c.opt (MD, MMD): Change to MDX and MMDX. | |
963 | * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX. | |
964 | ||
481e1176 JM |
965 | 2010-08-11 Joseph Myers <joseph@codesourcery.com> |
966 | ||
967 | * c-opts.c (c_common_handle_option): Call handle_generated_option | |
968 | instead of handle_option. | |
969 | ||
ac8dc9f7 NF |
970 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
971 | ||
972 | * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push. | |
973 | (maybe_apply_renaming_pragma): Delete unneeded declarations. | |
974 | ||
4f8c876d NF |
975 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
976 | ||
977 | * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it. | |
978 | (pending_redefine_extname): Change type to a VEC. | |
979 | (add_to_renaming_pragma_list): Update for new type of | |
980 | pending_redefine_extname. | |
ac8dc9f7 | 981 | (maybe_apply_renaming_pragma): Likewise. |
4f8c876d | 982 | |
3b0c690e AC |
983 | 2010-08-04 Arnaud Charlet <charlet@adacore.com> |
984 | ||
985 | * c-ada-spec.c (dump_ada_template): Mark underlying instance type as | |
986 | visited. | |
987 | (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to | |
988 | decide whether a type has already been declared/seen. | |
989 | Do not go to the original type. | |
990 | (dump_nested_types): New parameter forward. | |
991 | Generate forward declaration if needed and mark type as visited. | |
992 | (print_ada_declaration): Call dump_nested_types if not already done. | |
993 | Mark types as visited. | |
994 | ||
1890bccc JM |
995 | 2010-08-03 Joseph Myers <joseph@codesourcery.com> |
996 | ||
997 | * c.opt (-print-pch-checksum): Remove option. | |
998 | * c-opts.c (c_common_handle_option): Don't handle | |
999 | OPT_print_pch_checksum. | |
1000 | ||
5f20c657 JM |
1001 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
1002 | ||
1003 | * c-common.h (c_common_handle_option): Update prototype and return | |
1004 | value type. | |
1005 | * c-opts.c (c_common_handle_option): Update prototype and return | |
1006 | value type. Update calls to handle_option and | |
1007 | enable_warning_as_error. | |
1008 | ||
f551f80c JJ |
1009 | 2010-07-27 Jakub Jelinek <jakub@redhat.com> |
1010 | ||
1011 | PR c/45079 | |
1012 | * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR. | |
1013 | ||
61ff2bdc JM |
1014 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
1015 | ||
1016 | * c-common.h (c_common_missing_argument): Remove. | |
1017 | * c-opts.c (c_common_missing_argument): Remove. | |
1018 | * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=, | |
1019 | idirafter, imacros, include, isysroot, isystem, iquote): Add | |
1020 | MissingArgError. | |
1021 | * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove. | |
1022 | ||
7a9bf9a4 JM |
1023 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
1024 | ||
1025 | * c-common.h (c_common_option_lang_mask, | |
1026 | c_common_initialize_diagnostics, c_common_complain_wrong_lang_p): | |
1027 | New. | |
1028 | (c_common_init_options): Update prototype. | |
1029 | * c-opts.c (c_common_option_lang_mask): New. | |
1030 | (c_common_initialize_diagnostics): Split out of | |
1031 | c_common_init_options. | |
1032 | (accept_all_c_family_options, c_common_complain_wrong_lang_p): | |
1033 | New. | |
1034 | (c_common_init_options): Update prototype. Use decoded options in | |
1035 | search for -lang-asm. | |
1036 | ||
910ad8de NF |
1037 | 2010-07-15 Nathan Froyd <froydnj@codesourcery.com> |
1038 | ||
1039 | * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN. | |
1040 | * c-format.c: Likewise. | |
1041 | ||
718f9c0f MLI |
1042 | 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1043 | ||
1044 | * c-common.h: Include diagnostic-core.h. Error if already | |
1045 | included. | |
1046 | * c-semantics.c: Do not define GCC_DIAG_STYLE here. | |
1047 | ||
4d451982 MLI |
1048 | 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1049 | ||
1050 | * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef. | |
1051 | Do not include expr.h | |
1052 | (vector_mode_valid_p): Move here. | |
1053 | ||
119fe915 SB |
1054 | 2010-06-21 DJ Delorie <dj@redhat.com> |
1055 | ||
1056 | * c-pragma.c (handle_pragma_diagnostic): Add push/pop, | |
1057 | allow these pragmas anywhere. | |
1058 | ||
1059 | 2010-06-14 Jakub Jelinek <jakub@redhat.com> | |
1060 | ||
1061 | PR bootstrap/44509 | |
1062 | * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h. | |
1063 | (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers. | |
1064 | (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use | |
1065 | ggc_strdup instead of xstrdup. | |
1066 | ||
1067 | 2010-06-10 Jakub Jelinek <jakub@redhat.com> | |
1068 | ||
1069 | * c-cppbuiltin.c: Include cpp-id-data.h. | |
1070 | (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables. | |
1071 | (lazy_hex_fp_value): New function. | |
1072 | (builtin_define_with_hex_fp_value): Provide definitions lazily. | |
1073 | ||
6662d794 MLI |
1074 | 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1075 | ||
1076 | * c-gimplify.c: Do not include tree-flow.h | |
1077 | ||
38f8b050 JR |
1078 | 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com> |
1079 | ||
1080 | PR other/44034 | |
1081 | * c-common.c: Rename targetm member: | |
1082 | targetm.enum_va_list -> targetm.enum_va_list_p | |
1083 | ||
9589f23e AS |
1084 | 2010-06-28 Anatoly Sokolov <aesok@post.ru> |
1085 | ||
1086 | * c-common.c (shorten_compare): Adjust call to force_fit_type_double. | |
1087 | ||
3b06d379 SB |
1088 | 2010-06-28 Steven Bosscher <steven@gcc.gnu.org> |
1089 | ||
1090 | * c-cppbuiltin.c: Do not include except.h. | |
1091 | ||
d166d4c3 AK |
1092 | 2010-06-24 Andi Kleen <ak@linux.intel.com> |
1093 | ||
1094 | * c-common.c (warn_for_omitted_condop): New. | |
1095 | * c-common.h (warn_for_omitted_condop): Add prototype. | |
1096 | ||
70cb8be6 JM |
1097 | 2010-06-21 Joseph Myers <joseph@codesourcery.com> |
1098 | ||
1099 | * c.opt (lang-objc): Remove. | |
1100 | * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc. | |
1101 | ||
a4c97feb JR |
1102 | 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com> |
1103 | ||
1104 | * c-opts.c: Include "tm_p.h". | |
1105 | ||
6e2f1956 JM |
1106 | 2010-06-20 Joseph Myers <joseph@codesourcery.com> |
1107 | ||
1108 | * c-common.c (parse_optimize_options): Update call to | |
1109 | decode_options. | |
1110 | ||
bc87224e NF |
1111 | 2010-06-18 Nathan Froyd <froydnj@codesourcery.com> |
1112 | ||
1113 | * c-common.c (record_types_used_by_current_var_decl): Adjust for | |
1114 | new type of types_used_by_cur_var_decl. | |
1115 | ||
b49cf425 JR |
1116 | 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com> |
1117 | ||
1118 | PR bootstrap/44512 | |
1119 | * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast | |
1120 | for C++ standard compliance. | |
1121 | ||
59f9c2ed JM |
1122 | 2010-06-16 Jason Merrill <jason@redhat.com> |
1123 | ||
1124 | * c.opt: Add -Wnoexcept. | |
1125 | ||
33766b66 RG |
1126 | 2010-06-16 Richard Guenther <rguenther@suse.de> |
1127 | ||
1128 | PR c/44555 | |
1129 | * c-common.c (c_common_truthvalue_conversion): Remove | |
1130 | premature and wrong optimization concering ADDR_EXPRs. | |
1131 | ||
eff7e30c AC |
1132 | 2010-06-15 Arnaud Charlet <charlet@adacore.com> |
1133 | ||
1134 | * c-ada-spec.c (dump_sloc): Remove column info. | |
1135 | (is_simple_enum): New function. | |
1136 | (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada | |
1137 | enum types when relevant. | |
1138 | ||
6312e84d MLI |
1139 | 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1140 | ||
1141 | * c-common.c (conversion_warning): Warn at expression | |
1142 | location. | |
1143 | ||
1cb42611 JM |
1144 | 2010-06-10 Joseph Myers <joseph@codesourcery.com> |
1145 | ||
1146 | * c-opts.c (c_common_handle_option): Don't handle | |
1147 | OPT_fshow_column. | |
1148 | ||
a9429e29 LB |
1149 | 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com> |
1150 | ||
1151 | * c-pragma.c (push_alignment): Use typed GC allocation. | |
1152 | (handle_pragma_push_options): Likewise. | |
1153 | ||
1154 | * c-common.c (parse_optimize_options): Likewise. | |
1155 | ||
1156 | * c-common.h (struct sorted_fields_type): Add variable_size GTY | |
1157 | option. | |
1158 | ||
5498f011 JM |
1159 | 2010-06-07 Joseph Myers <joseph@codesourcery.com> |
1160 | ||
1161 | * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin, | |
1162 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
1163 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
1164 | flag_signed_bitfields, warn_strict_null_sentinel, | |
1165 | flag_nil_receivers, flag_zero_link, flag_replace_objc_classes, | |
1166 | flag_gen_declaration, flag_no_gnu_keywords, | |
1167 | flag_implement_inlines, flag_implicit_templates, | |
1168 | flag_implicit_inline_templates, flag_optional_diags, | |
1169 | flag_elide_constructors, flag_default_inline, flag_rtti, | |
1170 | flag_conserve_space, flag_access_control, flag_check_new, | |
1171 | flag_new_for_scope, flag_weak, flag_working_directory, | |
1172 | flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr, | |
1173 | flag_enforce_eh_specs, flag_threadsafe_statics, | |
1174 | flag_pretty_templates): Remove. | |
1175 | * c-common.h (flag_preprocess_only, flag_nil_receivers, | |
1176 | flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link, | |
1177 | flag_replace_objc_classes, flag_undef, flag_no_builtin, | |
1178 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
1179 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
1180 | flag_const_strings, flag_signed_bitfields, flag_gen_declaration, | |
1181 | flag_no_gnu_keywords, flag_implement_inlines, | |
1182 | flag_implicit_templates, flag_implicit_inline_templates, | |
1183 | flag_optional_diags, flag_elide_constructors, flag_default_inline, | |
1184 | flag_rtti, flag_conserve_space, flag_access_control, | |
1185 | flag_check_new, flag_new_for_scope, flag_weak, | |
1186 | flag_working_directory, flag_use_cxa_atexit, | |
1187 | flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs, | |
1188 | flag_threadsafe_statics, flag_pretty_templates, | |
1189 | warn_strict_null_sentinel): Remove. | |
1190 | * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm, | |
1191 | fbuiltin, fcheck-new, fconserve-space, felide-constructors, | |
1192 | fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines, | |
1193 | fimplicit-inline-templates, fimplicit-templates, | |
1194 | flax-vector-conversions, fms-extensions, fnil-receivers, | |
1195 | fnonansi-builtins, fpretty-templates, freplace-objc-classes, | |
1196 | frtti, fshort-double, fshort-enums, fshort-wchar, | |
1197 | fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics, | |
1198 | funsigned-bitfields, funsigned-char, fuse-cxa-atexit, | |
1199 | fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link, | |
1200 | gen-decls, undef): Use Var. | |
1201 | (fdefault-inline, foptional-diags): Document as doing nothing. | |
1202 | * c-opts.c (c_common_handle_option): Remove cases for options now | |
1203 | using Var. Mark ignored options as such. | |
1204 | ||
39dabefd SB |
1205 | 2010-06-05 Steven Bosscher <steven@gcc.gnu.org> |
1206 | ||
1207 | * c-common.c: Moved to here from parent directory. | |
1208 | * c-common.def: Likewise. | |
1209 | * c-common.h: Likewise. | |
1210 | * c-cppbuiltin.c: Likewise. | |
1211 | * c-dump.c: Likewise. | |
1212 | * c-format.c: Likewise. | |
1213 | * c-format.h : Likewise. | |
1214 | * c-gimplify.c: Likewise. | |
1215 | * c-lex.c: Likewise. | |
1216 | * c-omp.c: Likewise. | |
1217 | * c.opt: Likewise. | |
1218 | * c-opts.c: Likewise. | |
1219 | * c-pch.c: Likewise. | |
1220 | * c-ppoutput.c: Likewise. | |
1221 | * c-pragma.c: Likewise. | |
1222 | * c-pragma.h: Likewise. | |
1223 | * c-pretty-print.c: Likewise. | |
1224 | * c-pretty-print.h: Likewise. | |
1225 | * c-semantics.c: Likewise. | |
1226 | * stub-objc.c: Likewise. | |
1227 | ||
1228 | * c-common.c: Include gt-c-family-c-common.h. | |
1229 | * c-pragma.c: Include gt-c-family-c-pragma.h. | |
1230 | \f | |
04695783 | 1231 | Copyright (C) 2010, 2011 Free Software Foundation, Inc. |
39dabefd SB |
1232 | |
1233 | Copying and distribution of this file, with or without modification, | |
1234 | are permitted in any medium without royalty provided the copyright | |
1235 | notice and this notice are preserved. |