]>
Commit | Line | Data |
---|---|---|
a9546771 NP |
1 | 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com> |
2 | ||
3 | PR objc/34033 | |
4 | * c-lex.c (lex_string): Check that each string in an Objective-C | |
5 | string concat sequence starts with either one or zero '@', and | |
6 | that there are no spurious '@' signs at the end. | |
7 | ||
24a57808 JM |
8 | 2010-11-20 Joseph Myers <joseph@codesourcery.com> |
9 | ||
10 | * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK, | |
11 | HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and | |
12 | HANDLE_PRAGMA_VISIBILITY. | |
13 | * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK, | |
14 | HANDLE_PRAGMA_VISIBILITY): Don't define. | |
15 | (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test. | |
16 | ||
a9aa2c3a NF |
17 | 2010-11-20 Nathan Froyd <froydnj@codesourcery.com> |
18 | ||
19 | PR c++/16189 | |
20 | PR c++/36888 | |
21 | PR c++/45331 | |
22 | * c-common.h (keyword_begins_type_specifier): Declare. | |
23 | (keyword_is_storage_class_specifier): Declare. | |
24 | (keyword_is_type_qualifier): Declare. | |
25 | * c-common.c (keyword_begins_type_specifier): New function. | |
26 | (keyword_is_storage_class_specifier): New function. | |
27 | (keyword_is_type_qualifier): Declare. | |
28 | ||
5386338c JM |
29 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
30 | ||
31 | PR c/46547 | |
32 | * c-common.c (in_late_binary_op): Define. | |
33 | (c_common_truthvalue_conversion): Check in_late_binary_op before | |
34 | calling c_save_expr. | |
35 | * c-common.h (in_late_binary_op): Declare. | |
36 | ||
69ccdddb JM |
37 | 2010-11-19 Joseph Myers <joseph@codesourcery.com> |
38 | ||
39 | * c-opts.c (c_common_handle_option): Update calls to | |
40 | set_struct_debug_option. | |
41 | ||
6b192a09 NP |
42 | 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com> |
43 | ||
44 | * c-common.h (objc_declare_protocols): Added additional argument. | |
45 | * stub-objc.c (objc_declare_protocol): Same change. | |
46 | ||
fb52b50a NF |
47 | 2010-11-18 Nathan Froyd <froydnj@codesourcery.com> |
48 | ||
49 | PR c/33193 | |
50 | * c-common.h (build_real_imag_expr): Declare. | |
51 | * c-semantics.c (build_real_imag_expr): Define. | |
52 | ||
b37421c6 JM |
53 | 2010-11-17 Joseph Myers <joseph@codesourcery.com> |
54 | ||
55 | * c-opts.c (c_common_parse_file): Take no arguments. | |
56 | * c-common.h (c_common_parse_file): Update prototype. | |
57 | ||
07078664 JJ |
58 | 2010-11-16 Jakub Jelinek <jakub@redhat.com> |
59 | ||
60 | PR c++/46401 | |
61 | * c-common.c (warning_candidate_p): Don't track non-const calls | |
62 | or STRING_CSTs. | |
63 | ||
c6a13190 ILT |
64 | 2010-11-15 Ian Lance Taylor <iant@google.com> |
65 | ||
66 | * c-lex.c (init_c_lex): Set macro debug callbacks if | |
67 | flag_dump_go_spec is set. | |
68 | ||
925e8657 NP |
69 | 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com> |
70 | ||
71 | * c-common.h (objc_build_incr_expr_for_property_ref): New. | |
72 | * stub-objc.c (objc_build_incr_expr_for_property_ref): New. | |
73 | ||
bb0a9581 NF |
74 | 2010-11-15 Nathan Froyd <froydnj@codesourcery.com> |
75 | ||
76 | PR preprocessor/45038 | |
77 | * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++ | |
78 | dialects. | |
79 | ||
c5fa0890 JM |
80 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
81 | ||
82 | * c-common.h (c_family_lang_mask): Declare. | |
83 | * c-opts.c (c_family_lang_mask): Make extern. | |
84 | * c-pragma.c (handle_pragma_diagnostic): Use | |
85 | control_warning_option. | |
86 | ||
a4d8c676 JM |
87 | 2010-11-12 Joseph Myers <joseph@codesourcery.com> |
88 | ||
89 | * c-common.c (parse_optimize_options): Update call to | |
90 | decode_options. | |
91 | * c-common.h (c_common_handle_option): Update prototype. | |
92 | * c-opts.c (c_common_handle_option): Take location_t parameter and | |
93 | pass it to other functions. | |
94 | ||
f954bd2c JM |
95 | 2010-11-11 Joseph Myers <joseph@codesourcery.com> |
96 | ||
97 | * c-opts.c (warning_as_error_callback): Remove. | |
98 | (c_common_initialize_diagnostics): Don't call | |
99 | register_warning_as_error_callback. | |
100 | (c_common_handle_option): Handle -Werror=normalized= here. | |
101 | ||
d8a07487 JM |
102 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
103 | ||
104 | * c-common.c (handle_mode_attribute): Use %' and word "signedness" | |
105 | in diagnostic. | |
106 | * c-opts.c (c_common_parse_file): Start diagnostics with lowercase | |
107 | letter. | |
108 | * c-pragma.c (handle_pragma_target, handle_pragma_optimize): | |
109 | Remove trailing '.' from diagnostics. | |
110 | * c.opt (Wwrite-strings_: Avoid '`' in help text. | |
111 | ||
d5478783 JM |
112 | 2010-11-10 Joseph Myers <joseph@codesourcery.com> |
113 | ||
114 | * c-common.c (parse_optimize_options): Pass global_dc to | |
115 | decode_options. | |
116 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
117 | set_Wstrict_aliasing. | |
118 | * c.opt (v): Don't mark Common or document here. | |
119 | ||
91ebb981 IS |
120 | 2010-11-06 Iain Sandoe <iains@gcc.gnu.org> |
121 | ||
122 | PR target/44981 | |
123 | * c-format.c (format_type): New type gcc_objc_string_format_type. | |
124 | (valid_stringptr_type_p): New. | |
125 | (handle_format_arg_attribute): Use valid_stringptr_type_p (). | |
126 | (check_format_string): Pass expected type, use | |
127 | valid_stringptr_type_p (), check that the format string types are | |
128 | consistent with the format specification. | |
129 | (decode_format_attr): Warn if NSString is used outside objective-c. | |
130 | (format_types_orig): Add NSString. | |
131 | (format_name): New. | |
132 | (format_flags): New. | |
133 | (check_format_arg): Handle format strings requiring an external parser. | |
134 | first_target_format_type: New variable. | |
135 | (handle_format_attribute): Set up first_target_format_type, pass the | |
136 | expected format arg string type to check_format_string(). | |
137 | * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag. | |
138 | * stub-objc.c (objc_string_ref_type_p): New. | |
139 | (objc_check_format_arg): New. | |
140 | ||
bede2adc NP |
141 | 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com> |
142 | ||
143 | Fixed using the Objective-C 2.0 dot-syntax with class names. | |
144 | * c-common.h (objc_build_class_component_ref): New. | |
145 | * stub-objc.c (objc_build_class_component_ref): New. | |
146 | ||
9a179d01 NP |
147 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
148 | ||
149 | * c.opt (Wproperty-assign-default): New option. | |
150 | ||
22d8d616 NP |
151 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
152 | ||
153 | Implemented -fobjc-std=objc1 flag. | |
154 | * c.opt (fobjc-std=objc1): New option. | |
155 | ||
2debdb4f NP |
156 | 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com> |
157 | ||
158 | Implemented format and noreturn attributes for Objective-C methods. | |
159 | * c-common.c (handle_noreturn_attribute): Recognize 'noreturn' | |
160 | attribute for Objective-C methods. | |
161 | ||
ec52b111 JM |
162 | 2010-10-31 Jason Merrill <jason@redhat.com> |
163 | ||
164 | * c-common.c (conversion_warning, warn_for_collisions_1): Use | |
165 | EXPR_LOC_OR_HERE. | |
166 | ||
46a88c12 NP |
167 | 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com> |
168 | ||
169 | Implemented Objective-C 2.0 @property, @synthesize and @dynamic. | |
170 | * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR. | |
171 | (objc_add_property_declaration): Removed arguments for copies and | |
172 | ivar. | |
173 | (objc_build_getter_call): Renamed to | |
174 | objc_maybe_build_component_ref. | |
175 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
176 | (objc_is_property_ref): New. | |
177 | * c-common.c (c_common_reswords): Removed copies and ivar. | |
178 | * stub-objc.c (objc_add_property_declaration): Removed arguments | |
179 | for copies and ivar. | |
180 | (objc_build_getter_call): Renamed to | |
181 | objc_maybe_build_component_ref. | |
182 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
183 | (objc_is_property_ref): New. | |
184 | ||
1e4bf85b AC |
185 | 2010-10-29 Arnaud Charlet <charlet@adacore.com> |
186 | Matthew Gingell <gingell@adacore.com> | |
187 | ||
188 | * c-ada-spec.c (separate_class_package): New function. | |
189 | (pp_ada_tree_identifier): Prefix references to C++ classes with the | |
190 | name of their enclosing package. | |
191 | (print_ada_declaration): Use separate_class_package. | |
192 | ||
81f0bab2 JM |
193 | 2010-10-27 Jason Merrill <jason@redhat.com> |
194 | ||
2b08f2c5 JM |
195 | * c-common.c (c_common_reswords): Add __is_literal_type. |
196 | * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE. | |
197 | ||
81f0bab2 JM |
198 | * c-common.c (check_case_value): Remove special C++ code. |
199 | ||
200290f2 NP |
200 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
201 | ||
202 | * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN, | |
203 | RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR | |
204 | and RID_LAST_PATTR. | |
205 | (objc_add_property_declaration): Added additional arguments. | |
206 | (objc_property_attribute_kind): Removed. | |
207 | (objc_set_property_attr): Removed. | |
208 | * c-common.c (c_common_reswords): Added readwrite, assign, retain, | |
209 | copy and nonatomic. | |
210 | * stub-objc.c (objc_add_property_declaration): Added additional | |
211 | arguments. | |
212 | (objc_set_property_attr): Removed. | |
213 | ||
f614132b NP |
214 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
215 | ||
216 | * c-common.h (objc_add_property_variable): Renamed to | |
217 | objc_add_property_declaration. Added location argument. | |
218 | * stub-objc.c (objc_add_property_variable): Same change. | |
219 | ||
b8a18805 NP |
220 | 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com> |
221 | ||
222 | * c-common.h (objc_maybe_printable_name): New. | |
223 | * stub-objc.c (objc_maybe_printable_name): New. | |
224 | ||
30cd1c5d AS |
225 | 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com> |
226 | Andrew Pinski <pinskia@gmail.com> | |
227 | ||
228 | * c-common.h (c_common_mark_addressable_vec): Declare. | |
229 | * c-common.c (c_common_mark_addressable_vec): New function. | |
230 | ||
249a82c4 NP |
231 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
232 | ||
233 | * c-common.h (objc_set_method_type): Removed. | |
234 | (objc_add_method_declaration): Added boolean argument. | |
235 | (objc_start_method_definition): Same change. | |
236 | (objc_build_method_signature): Same change. | |
237 | * stub-objc.c (objc_set_method_type): Removed. | |
238 | (objc_add_method_declaration): Added boolean argument. | |
239 | (objc_start_method_definition): Same change. | |
240 | (objc_build_method_signature): Same change. | |
241 | ||
977e30bc NP |
242 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
243 | ||
244 | * c-common.h (finish_file): Removed. | |
245 | (objc_write_global_declarations): New. | |
246 | * c-opts.c (c_common_parse_file): Do not call finish_file. | |
247 | * stub-objc.c (objc_write_global_declarations): New. | |
248 | ||
da57d1b9 NP |
249 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
250 | ||
251 | Implemented parsing @synthesize and @dynamic for | |
252 | Objective-C/Objective-C++. | |
253 | * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC. | |
254 | (objc_add_synthesize_declaration): New. | |
255 | (objc_add_dynamic_declaration): New. | |
256 | * c-common.c (c_common_reswords): Add synthesize and dynamic. | |
257 | * stub-objc.c (objc_add_synthesize_declaration): New. | |
258 | (objc_add_dynamic_declaration): New. | |
259 | ||
0069111f MM |
260 | 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com> |
261 | ||
262 | PR target/46041 | |
263 | * c-cppbuiltin.c (mode_has_fma): Move function here from | |
264 | builtins.c. Don't use the fma optab, instead just use the | |
265 | HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when | |
266 | using -save-temps. | |
267 | ||
e426b47b NP |
268 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
269 | ||
270 | Merge from 'apple/trunk' branch on FSF servers. | |
0069111f | 271 | |
e426b47b NP |
272 | 2005-11-08 Fariborz Jahanian <fjahanian@apple.com> |
273 | ||
274 | Radar 4330422 | |
275 | * c-common.h (objc_non_volatilized_type): New declaration | |
276 | * stub-objc.c (objc_non_volatilized_type): New stub. | |
277 | ||
90fbfdc3 NP |
278 | 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com> |
279 | ||
e426b47b | 280 | Merge from 'apple/trunk' branch on FSF servers. |
90fbfdc3 NP |
281 | |
282 | 2006-03-27 Fariborz Jahanian <fjahanian@apple.com> | |
283 | ||
284 | Radar 4133425 | |
285 | * c-common.h (objc_diagnose_private_ivar): New decl. | |
0069111f | 286 | * stub-objc.c (objc_diagnose_private_ivar): New stub. |
90fbfdc3 | 287 | |
c37d8c30 IS |
288 | 2010-10-17 Iain Sandoe <iains@gcc.gnu.org> |
289 | ||
290 | * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE. | |
291 | * c-common.h (enum rid): Add RID_AT_PACKAGE. | |
292 | (objc_ivar_visibility_kind): New enum. | |
293 | (objc_set_visibility): Adjust prototype to use visibility enum. | |
0069111f | 294 | * stub-objc.c (objc_set_visibility): Adjust stub to use |
c37d8c30 IS |
295 | visibility enum. |
296 | ||
1b1562a5 MM |
297 | 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com> |
298 | ||
299 | * c-cppbuiltin.c (builtin_define_float_constants): Emit | |
300 | __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine | |
301 | has the appropriate fma builtins. | |
302 | (c_cpp_builtins): Adjust call to builtin_define_float_constants. | |
303 | ||
668ea4b1 IS |
304 | 2010-10-14 Iain Sandoe <iains@gcc.gnu.org> |
305 | ||
1b1562a5 | 306 | merge from FSF apple 'trunk' branch. |
668ea4b1 | 307 | 2006 Fariborz Jahanian <fjahanian@apple.com> |
1b1562a5 | 308 | |
668ea4b1 IS |
309 | Radars 4436866, 4505126, 4506903, 4517826 |
310 | * c-common.c (c_common_resword): Define @property and its attributes. | |
311 | * c-common.h: Define property attribute enum entries. | |
312 | (OBJC_IS_PATTR_KEYWORD): New. | |
313 | (objc_property_attribute_kind): New enum. | |
314 | Declare objc_set_property_attr (), objc_add_property_variable (), | |
315 | objc_build_getter_call () and objc_build_setter_call (). | |
316 | * stub-objc.c (objc_set_property_attr): New stub. | |
317 | (objc_add_property_variable): Likewise. | |
318 | (objc_build_getter_call): Likewise. | |
319 | (objc_build_setter_call) Likewise. | |
1b1562a5 | 320 | |
a1178b30 IS |
321 | 2010-10-13 Iain Sandoe <iains@gcc.gnu.org> |
322 | ||
1b1562a5 | 323 | merge from FSF apple 'trunk' branch. |
a1178b30 IS |
324 | 2006-04-26 Fariborz Jahanian <fjahanian@apple.com> |
325 | ||
326 | Radar 3803157 (method attributes) | |
327 | * c-common.c (handle_deprecated_attribute): Recognize | |
328 | objc methods as valid declarations. | |
329 | * c-common.h: Declare objc_method_decl (). | |
1b1562a5 | 330 | * stub-objc.c (objc_method_decl): New stub. |
a1178b30 | 331 | |
a75bfaa6 JM |
332 | 2010-10-08 Joseph Myers <joseph@codesourcery.com> |
333 | ||
334 | * c-common.c (parse_optimize_options): Call | |
335 | decode_cmdline_options_to_array_default_mask before | |
336 | decode_options. Update arguments to decode_options. | |
337 | * c-common.h (c_common_init_options_struct): Declare. | |
338 | * c-opts.c (c_common_init_options_struct): New. Split out from | |
339 | c_common_init_options. | |
340 | ||
f05b9d93 NP |
341 | 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com> |
342 | ||
343 | Implemented fast enumeration for Objective-C. | |
344 | * c-common.h (objc_finish_foreach_loop): New. | |
345 | * stub-objc.c (objc_finish_foreach_loop): New. | |
346 | ||
1ebe4b4f JM |
347 | 2010-10-05 Joseph Myers <joseph@codesourcery.com> |
348 | ||
349 | * c-common.h (struct diagnostic_context): Don't declare here. | |
350 | (c_common_initialize_diagnostics): Declare using | |
351 | diagnostic_context typedef. | |
352 | * c-opts.c (c_common_handle_option): Pass global_dc to | |
353 | handle_generated_option. | |
354 | ||
d4d24ba4 JM |
355 | 2010-10-04 Joseph Myers <joseph@codesourcery.com> |
356 | ||
357 | * c-opts.c (c_common_handle_option): Pass &global_options_set to | |
358 | handle_generated_option. | |
359 | ||
478a1c5b ILT |
360 | 2010-10-03 Ian Lance Taylor <iant@google.com> |
361 | ||
362 | * c.opt (-fplan9-extensions): New option. | |
363 | ||
82a1c2fe FXC |
364 | 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> |
365 | ||
366 | * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision): | |
367 | Remove. | |
368 | (c_cpp_builtins): Call functions from cppbuiltin.c instead | |
369 | of duplicating code. | |
370 | ||
92902b1b IS |
371 | 2010-09-30 Iain Sandoe <iains@gcc.gnu.org> |
372 | ||
373 | * c-common.c: Add two new entries for @optional | |
374 | and @required keywords. | |
375 | ||
376 | merge from FSF 'apple/trunk' branch. | |
377 | 2006-01-30 Fariborz Jahanian <fjahanian@apple.com> | |
378 | ||
379 | Radar 4386773 | |
380 | * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new | |
381 | objective-c keywords. | |
382 | (objc_set_method_opt): New declaration. | |
383 | * stub-objc.c (objc_set_method_opt): New stub. | |
384 | ||
46625112 JM |
385 | 2010-09-30 Joseph Myers <joseph@codesourcery.com> |
386 | ||
387 | * c-common.c (handle_optimize_attribute): Pass &global_options to | |
388 | cl_optimization_save and cl_optimization_restore. | |
389 | * c-opts.c (c_common_handle_option): Pass &global_options to | |
390 | handle_generated_option. | |
391 | * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var. | |
392 | (handle_pragma_pop_options, handle_pragma_reset_options): Pass | |
393 | &global_options to cl_optimization_restore. | |
394 | ||
49b91f05 NP |
395 | 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com> |
396 | ||
397 | * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME | |
398 | Objective-C/Objective-C++ keywords. | |
399 | ||
13ed556f | 400 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
a6341d57 NP |
401 | |
402 | Merge from 'apple/trunk' branch on FSF servers. | |
403 | ||
404 | 2005-10-04 Fariborz Jahanian <fjahanian@apple.com> | |
405 | ||
406 | Radar 4281748 | |
407 | * c-common.h (objc_check_global_decl): New declaration. | |
408 | * stub-objc.c (objc_check_global_decl): New stub. | |
409 | ||
f0036cca JM |
410 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
411 | ||
412 | * c.opt: Don't use VarExists. | |
413 | ||
e3339d0f JM |
414 | 2010-09-29 Joseph Myers <joseph@codesourcery.com> |
415 | ||
416 | * c-common.c (c_cpp_error): Update names of diagnostic_context | |
417 | members. | |
418 | * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of | |
419 | cl_optimization members. | |
420 | * c-opts.c (warning_as_error_callback, c_common_handle_option, | |
421 | sanitize_cpp_opts, finish_options): Update names of cpp_options | |
422 | members. | |
423 | ||
1973201f NP |
424 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
425 | ||
426 | * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments. | |
427 | (objc_is_reserved_word): Removed. | |
428 | * c-common.c: Updated comments. | |
429 | * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of | |
430 | objc_is_reserved_word. | |
431 | * stub-objc.c (objc_is_reserved_word): Removed. | |
432 | ||
f7e71da5 IS |
433 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
434 | ||
435 | * c-common.h (objc_add_method_declaration): Adjust prototype to | |
436 | include attributes. | |
437 | (objc_start_method_definition): Likewise. | |
438 | (objc_build_keyword_decl): Likewise. | |
439 | * stub-objc.c:(objc_add_method_declaration): Handle attributes. | |
440 | (objc_start_method_definition): Likewise. | |
441 | (objc_build_keyword_decl): Likewise. | |
442 | ||
c165dca7 IS |
443 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
444 | ||
445 | * c-common.h (objc_start_class_interface): Adjust prototype. | |
446 | (objc_start_category_interface): Likewise. | |
447 | (objc_start_protocol): Likewise. | |
448 | * stub-objc.c (objc_start_protocol): Adjust for extra argument. | |
449 | (objc_start_class_interface): Likewise. | |
450 | (objc_start_category_interface): Likewise. | |
451 | ||
7458026b ILT |
452 | 2010-09-27 Ian Lance Taylor <iant@google.com> |
453 | ||
454 | * c-common.c (c_common_attribute_table): Add no_split_stack. | |
455 | (handle_no_split_stack_attribute): New static function. | |
456 | ||
b581b85b NP |
457 | 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com> |
458 | ||
459 | Merge from 'apple/trunk' branch on FSF servers. | |
460 | ||
461 | 2005-12-15 Fariborz Jahanian <fjahanian@apple.com> | |
462 | ||
463 | Radar 4229905 | |
464 | * c-common.h (objc_have_common_type): New declaration. | |
465 | * stub-objc.c (objc_have_common_type): New stub. | |
466 | ||
467 | 2005-06-22 Ziemowit Laski <zlaski@apple.com> | |
468 | ||
469 | Radar 4154928 | |
470 | * c-common.h (objc_common_type): New prototype. | |
471 | * stub-objc.c (objc_common_type): New stub. | |
472 | ||
46a4da10 JH |
473 | 2010-09-24 Jan Hubicka <jh@suse.cz> |
474 | ||
475 | * c-common.c (handle_leaf_attribute): New function. | |
476 | (struct attribute_spec c_common_att): Add leaf. | |
477 | ||
e200444e JM |
478 | 2010-09-22 Joseph Myers <joseph@codesourcery.com> |
479 | ||
480 | * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments, | |
481 | -comments-in-macros, -define-macro, -define-macro=, -dependencies, | |
482 | -dump, -dump=, -imacros, -imacros=, -include, -include=, | |
483 | -include-barrier, -include-directory, -include-directory=, | |
484 | -include-directory-after, -include-directory-after=, | |
485 | -include-prefix, -include-prefix=, -include-with-prefix, | |
486 | -include-with-prefix=, -include-with-prefix-after, | |
487 | -include-with-prefix-after=, -include-with-prefix-before, | |
488 | -include-with-prefix-before=, -no-integrated-cpp, | |
489 | -no-line-commands, -no-standard-includes, -no-warnings, -output, | |
490 | -output=, -pedantic, -pedantic-errors, -preprocess, | |
491 | -print-missing-file-dependencies, -trace-includes, -traditional, | |
492 | -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=, | |
493 | -user-dependencies, -verbose, -write-dependencies, | |
494 | -write-user-dependencies, no-integrated-cpp, traditional): New. | |
495 | ||
29a80ea6 NP |
496 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> |
497 | ||
498 | PR objc/23710 | |
ac1fc2fc NP |
499 | * c-common.h (objc_start_method_definition): Return bool instead |
500 | of void. | |
501 | * stub-objc.c (objc_start_method_definition): Return bool instead | |
502 | of void. | |
503 | ||
504 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> | |
505 | ||
506 | PR objc/25965 | |
507 | * c-common.h (objc_get_interface_ivars): New declaration. | |
508 | * stub-objc.c (objc_get_interface_ivars): New stub. | |
29a80ea6 | 509 | |
de621752 ILT |
510 | 2010-09-15 Ian Lance Taylor <iant@google.com> |
511 | ||
512 | * c-common.c (parse_optimize_options): Do not capitalize warning | |
06730c5d | 513 | messages. Remove period at end of warning message. |
de621752 | 514 | |
ba885ec5 NS |
515 | 2010-09-09 Nathan Sidwell <nathan@codesourcery.com> |
516 | ||
517 | * c-common.c (handle_alias_ifunc_attribute): New, broken out of ... | |
518 | (handle_alias_attribute): ... here. | |
519 | (handle_ifunc_attribute): New. | |
520 | ||
c5ee1358 MM |
521 | 2010-09-06 Mark Mitchell <mark@codesourcery.com> |
522 | ||
523 | * c-common.h (do_warn_double_promotion): Declare. | |
524 | * c-common.c (do_warn_double_promotion): Define. | |
525 | ||
0a0b3574 MM |
526 | 2010-09-05 Mark Mitchell <mark@codesourcery.com> |
527 | ||
528 | * c.opt (Wdouble-promotion): New. | |
529 | ||
d1779886 JM |
530 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
531 | ||
532 | * c.opt (falt-external-templates, fhuge-objects, fvtable-gc, | |
533 | fvtable-thunks, fxref): Mark no longer supported in help text. | |
534 | ||
2d2bd949 JM |
535 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
536 | ||
537 | * c.opt (Wimport, fall-virtual, falt-external-templates, | |
538 | fdefault-inline, fenum-int-equiv, fexternal-templates, | |
539 | fguiding-decls, fhonor-std, fhuge-objects, flabels-ok, | |
540 | fname-mangling-version-, fnew-abi, fnonnull-objects, | |
541 | foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable, | |
542 | fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as | |
543 | applicable. | |
544 | (fhandle-exceptions): Mark with Alias and Warn. | |
545 | * c-opts.c (c_common_handle_option): Don't handle options marked | |
546 | as ignored. | |
547 | ||
5de8299c JM |
548 | 2010-09-02 Joseph Myers <joseph@codesourcery.com> |
549 | ||
550 | * c.opt (Wcomments, Werror-implicit-function-declaration, | |
551 | ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x, | |
552 | std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as | |
553 | aliases. | |
554 | * c-common.c (option_codes): Use OPT_Wcomment instead of | |
555 | OPT_Wcomments. | |
556 | * c-opts.c (warning_as_error_callback, c_common_handle_option): | |
557 | Don't handle options marked as aliases. | |
558 | ||
0ceb0201 RG |
559 | 2010-08-25 Richard Guenther <rguenther@suse.de> |
560 | ||
561 | * c-common.c (c_common_get_alias_set): Remove special | |
562 | handling for pointers. | |
563 | ||
ac47786e NF |
564 | 2010-08-20 Nathan Froyd <froydnj@codesourcery.com> |
565 | ||
566 | * c-common.c: Use FOR_EACH_VEC_ELT. | |
567 | * c-gimplify.c: Likewise. | |
568 | * c-pragma.c: Likewise. | |
569 | ||
c878765b JM |
570 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
571 | ||
572 | * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of | |
573 | RejectDriver. | |
574 | (MMDX): Change back to MMD. Mark NoDriverArg instead of | |
575 | RejectDriver. | |
576 | * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD | |
577 | instead of OPT_MDX and OPT_MMDX. | |
578 | ||
603349bf JM |
579 | 2010-08-16 Joseph Myers <joseph@codesourcery.com> |
580 | ||
581 | * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver. | |
582 | ||
644fa7ac JM |
583 | 2010-08-12 Joseph Myers <joseph@codesourcery.com> |
584 | ||
585 | * c.opt (MD, MMD): Change to MDX and MMDX. | |
586 | * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX. | |
587 | ||
481e1176 JM |
588 | 2010-08-11 Joseph Myers <joseph@codesourcery.com> |
589 | ||
590 | * c-opts.c (c_common_handle_option): Call handle_generated_option | |
591 | instead of handle_option. | |
592 | ||
ac8dc9f7 NF |
593 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
594 | ||
595 | * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push. | |
596 | (maybe_apply_renaming_pragma): Delete unneeded declarations. | |
597 | ||
4f8c876d NF |
598 | 2010-08-08 Nathan Froyd <froydnj@codesourcery.com> |
599 | ||
600 | * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it. | |
601 | (pending_redefine_extname): Change type to a VEC. | |
602 | (add_to_renaming_pragma_list): Update for new type of | |
603 | pending_redefine_extname. | |
ac8dc9f7 | 604 | (maybe_apply_renaming_pragma): Likewise. |
4f8c876d | 605 | |
3b0c690e AC |
606 | 2010-08-04 Arnaud Charlet <charlet@adacore.com> |
607 | ||
608 | * c-ada-spec.c (dump_ada_template): Mark underlying instance type as | |
609 | visited. | |
610 | (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to | |
611 | decide whether a type has already been declared/seen. | |
612 | Do not go to the original type. | |
613 | (dump_nested_types): New parameter forward. | |
614 | Generate forward declaration if needed and mark type as visited. | |
615 | (print_ada_declaration): Call dump_nested_types if not already done. | |
616 | Mark types as visited. | |
617 | ||
1890bccc JM |
618 | 2010-08-03 Joseph Myers <joseph@codesourcery.com> |
619 | ||
620 | * c.opt (-print-pch-checksum): Remove option. | |
621 | * c-opts.c (c_common_handle_option): Don't handle | |
622 | OPT_print_pch_checksum. | |
623 | ||
5f20c657 JM |
624 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
625 | ||
626 | * c-common.h (c_common_handle_option): Update prototype and return | |
627 | value type. | |
628 | * c-opts.c (c_common_handle_option): Update prototype and return | |
629 | value type. Update calls to handle_option and | |
630 | enable_warning_as_error. | |
631 | ||
f551f80c JJ |
632 | 2010-07-27 Jakub Jelinek <jakub@redhat.com> |
633 | ||
634 | PR c/45079 | |
635 | * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR. | |
636 | ||
61ff2bdc JM |
637 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
638 | ||
639 | * c-common.h (c_common_missing_argument): Remove. | |
640 | * c-opts.c (c_common_missing_argument): Remove. | |
641 | * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=, | |
642 | idirafter, imacros, include, isysroot, isystem, iquote): Add | |
643 | MissingArgError. | |
644 | * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove. | |
645 | ||
7a9bf9a4 JM |
646 | 2010-07-27 Joseph Myers <joseph@codesourcery.com> |
647 | ||
648 | * c-common.h (c_common_option_lang_mask, | |
649 | c_common_initialize_diagnostics, c_common_complain_wrong_lang_p): | |
650 | New. | |
651 | (c_common_init_options): Update prototype. | |
652 | * c-opts.c (c_common_option_lang_mask): New. | |
653 | (c_common_initialize_diagnostics): Split out of | |
654 | c_common_init_options. | |
655 | (accept_all_c_family_options, c_common_complain_wrong_lang_p): | |
656 | New. | |
657 | (c_common_init_options): Update prototype. Use decoded options in | |
658 | search for -lang-asm. | |
659 | ||
910ad8de NF |
660 | 2010-07-15 Nathan Froyd <froydnj@codesourcery.com> |
661 | ||
662 | * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN. | |
663 | * c-format.c: Likewise. | |
664 | ||
718f9c0f MLI |
665 | 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org> |
666 | ||
667 | * c-common.h: Include diagnostic-core.h. Error if already | |
668 | included. | |
669 | * c-semantics.c: Do not define GCC_DIAG_STYLE here. | |
670 | ||
4d451982 MLI |
671 | 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org> |
672 | ||
673 | * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef. | |
674 | Do not include expr.h | |
675 | (vector_mode_valid_p): Move here. | |
676 | ||
119fe915 SB |
677 | 2010-06-21 DJ Delorie <dj@redhat.com> |
678 | ||
679 | * c-pragma.c (handle_pragma_diagnostic): Add push/pop, | |
680 | allow these pragmas anywhere. | |
681 | ||
682 | 2010-06-14 Jakub Jelinek <jakub@redhat.com> | |
683 | ||
684 | PR bootstrap/44509 | |
685 | * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h. | |
686 | (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers. | |
687 | (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use | |
688 | ggc_strdup instead of xstrdup. | |
689 | ||
690 | 2010-06-10 Jakub Jelinek <jakub@redhat.com> | |
691 | ||
692 | * c-cppbuiltin.c: Include cpp-id-data.h. | |
693 | (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables. | |
694 | (lazy_hex_fp_value): New function. | |
695 | (builtin_define_with_hex_fp_value): Provide definitions lazily. | |
696 | ||
6662d794 MLI |
697 | 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org> |
698 | ||
699 | * c-gimplify.c: Do not include tree-flow.h | |
700 | ||
38f8b050 JR |
701 | 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com> |
702 | ||
703 | PR other/44034 | |
704 | * c-common.c: Rename targetm member: | |
705 | targetm.enum_va_list -> targetm.enum_va_list_p | |
706 | ||
9589f23e AS |
707 | 2010-06-28 Anatoly Sokolov <aesok@post.ru> |
708 | ||
709 | * c-common.c (shorten_compare): Adjust call to force_fit_type_double. | |
710 | ||
3b06d379 SB |
711 | 2010-06-28 Steven Bosscher <steven@gcc.gnu.org> |
712 | ||
713 | * c-cppbuiltin.c: Do not include except.h. | |
714 | ||
d166d4c3 AK |
715 | 2010-06-24 Andi Kleen <ak@linux.intel.com> |
716 | ||
717 | * c-common.c (warn_for_omitted_condop): New. | |
718 | * c-common.h (warn_for_omitted_condop): Add prototype. | |
719 | ||
70cb8be6 JM |
720 | 2010-06-21 Joseph Myers <joseph@codesourcery.com> |
721 | ||
722 | * c.opt (lang-objc): Remove. | |
723 | * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc. | |
724 | ||
a4c97feb JR |
725 | 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com> |
726 | ||
727 | * c-opts.c: Include "tm_p.h". | |
728 | ||
6e2f1956 JM |
729 | 2010-06-20 Joseph Myers <joseph@codesourcery.com> |
730 | ||
731 | * c-common.c (parse_optimize_options): Update call to | |
732 | decode_options. | |
733 | ||
bc87224e NF |
734 | 2010-06-18 Nathan Froyd <froydnj@codesourcery.com> |
735 | ||
736 | * c-common.c (record_types_used_by_current_var_decl): Adjust for | |
737 | new type of types_used_by_cur_var_decl. | |
738 | ||
b49cf425 JR |
739 | 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com> |
740 | ||
741 | PR bootstrap/44512 | |
742 | * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast | |
743 | for C++ standard compliance. | |
744 | ||
59f9c2ed JM |
745 | 2010-06-16 Jason Merrill <jason@redhat.com> |
746 | ||
747 | * c.opt: Add -Wnoexcept. | |
748 | ||
33766b66 RG |
749 | 2010-06-16 Richard Guenther <rguenther@suse.de> |
750 | ||
751 | PR c/44555 | |
752 | * c-common.c (c_common_truthvalue_conversion): Remove | |
753 | premature and wrong optimization concering ADDR_EXPRs. | |
754 | ||
eff7e30c AC |
755 | 2010-06-15 Arnaud Charlet <charlet@adacore.com> |
756 | ||
757 | * c-ada-spec.c (dump_sloc): Remove column info. | |
758 | (is_simple_enum): New function. | |
759 | (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada | |
760 | enum types when relevant. | |
761 | ||
6312e84d MLI |
762 | 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org> |
763 | ||
764 | * c-common.c (conversion_warning): Warn at expression | |
765 | location. | |
766 | ||
1cb42611 JM |
767 | 2010-06-10 Joseph Myers <joseph@codesourcery.com> |
768 | ||
769 | * c-opts.c (c_common_handle_option): Don't handle | |
770 | OPT_fshow_column. | |
771 | ||
a9429e29 LB |
772 | 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com> |
773 | ||
774 | * c-pragma.c (push_alignment): Use typed GC allocation. | |
775 | (handle_pragma_push_options): Likewise. | |
776 | ||
777 | * c-common.c (parse_optimize_options): Likewise. | |
778 | ||
779 | * c-common.h (struct sorted_fields_type): Add variable_size GTY | |
780 | option. | |
781 | ||
5498f011 JM |
782 | 2010-06-07 Joseph Myers <joseph@codesourcery.com> |
783 | ||
784 | * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin, | |
785 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
786 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
787 | flag_signed_bitfields, warn_strict_null_sentinel, | |
788 | flag_nil_receivers, flag_zero_link, flag_replace_objc_classes, | |
789 | flag_gen_declaration, flag_no_gnu_keywords, | |
790 | flag_implement_inlines, flag_implicit_templates, | |
791 | flag_implicit_inline_templates, flag_optional_diags, | |
792 | flag_elide_constructors, flag_default_inline, flag_rtti, | |
793 | flag_conserve_space, flag_access_control, flag_check_new, | |
794 | flag_new_for_scope, flag_weak, flag_working_directory, | |
795 | flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr, | |
796 | flag_enforce_eh_specs, flag_threadsafe_statics, | |
797 | flag_pretty_templates): Remove. | |
798 | * c-common.h (flag_preprocess_only, flag_nil_receivers, | |
799 | flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link, | |
800 | flag_replace_objc_classes, flag_undef, flag_no_builtin, | |
801 | flag_no_nonansi_builtin, flag_short_double, flag_short_wchar, | |
802 | flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm, | |
803 | flag_const_strings, flag_signed_bitfields, flag_gen_declaration, | |
804 | flag_no_gnu_keywords, flag_implement_inlines, | |
805 | flag_implicit_templates, flag_implicit_inline_templates, | |
806 | flag_optional_diags, flag_elide_constructors, flag_default_inline, | |
807 | flag_rtti, flag_conserve_space, flag_access_control, | |
808 | flag_check_new, flag_new_for_scope, flag_weak, | |
809 | flag_working_directory, flag_use_cxa_atexit, | |
810 | flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs, | |
811 | flag_threadsafe_statics, flag_pretty_templates, | |
812 | warn_strict_null_sentinel): Remove. | |
813 | * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm, | |
814 | fbuiltin, fcheck-new, fconserve-space, felide-constructors, | |
815 | fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines, | |
816 | fimplicit-inline-templates, fimplicit-templates, | |
817 | flax-vector-conversions, fms-extensions, fnil-receivers, | |
818 | fnonansi-builtins, fpretty-templates, freplace-objc-classes, | |
819 | frtti, fshort-double, fshort-enums, fshort-wchar, | |
820 | fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics, | |
821 | funsigned-bitfields, funsigned-char, fuse-cxa-atexit, | |
822 | fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link, | |
823 | gen-decls, undef): Use Var. | |
824 | (fdefault-inline, foptional-diags): Document as doing nothing. | |
825 | * c-opts.c (c_common_handle_option): Remove cases for options now | |
826 | using Var. Mark ignored options as such. | |
827 | ||
39dabefd SB |
828 | 2010-06-05 Steven Bosscher <steven@gcc.gnu.org> |
829 | ||
830 | * c-common.c: Moved to here from parent directory. | |
831 | * c-common.def: Likewise. | |
832 | * c-common.h: Likewise. | |
833 | * c-cppbuiltin.c: Likewise. | |
834 | * c-dump.c: Likewise. | |
835 | * c-format.c: Likewise. | |
836 | * c-format.h : Likewise. | |
837 | * c-gimplify.c: Likewise. | |
838 | * c-lex.c: Likewise. | |
839 | * c-omp.c: Likewise. | |
840 | * c.opt: Likewise. | |
841 | * c-opts.c: Likewise. | |
842 | * c-pch.c: Likewise. | |
843 | * c-ppoutput.c: Likewise. | |
844 | * c-pragma.c: Likewise. | |
845 | * c-pragma.h: Likewise. | |
846 | * c-pretty-print.c: Likewise. | |
847 | * c-pretty-print.h: Likewise. | |
848 | * c-semantics.c: Likewise. | |
849 | * stub-objc.c: Likewise. | |
850 | ||
851 | * c-common.c: Include gt-c-family-c-common.h. | |
852 | * c-pragma.c: Include gt-c-family-c-pragma.h. | |
853 | \f | |
854 | Copyright (C) 2010 Free Software Foundation, Inc. | |
855 | ||
856 | Copying and distribution of this file, with or without modification, | |
857 | are permitted in any medium without royalty provided the copyright | |
858 | notice and this notice are preserved. |