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