]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
c-pch.c (c_common_write_pch): Remove unused variables.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
fbc873ad
UB
12012-07-01 Uros Bizjak <ubizjak@gmail.com>
2
3 * c-pch.c (c_common_write_pch): Remove unused variables.
4
d4a10d0a
SB
52012-06-29 Steven Bosscher <steven@gcc.gnu.org>
6
7 * cppspec.c: Moved from gcc/ to here.
8
6f3a2e23
KT
92012-06-27 Kai Tietz <ktietz@redhat.com>
10
11 PR preprocessor/37215
12 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
13
8ca92d04
SB
142012-06-21 Steven Bosscher <steven@gcc.gnu.org>
15
16 * c-common.h (c_common_print_pch_checksum): Remove.
17 * c-pch.c: Do not include output.h.
18 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
19 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
20 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
21 (struct c_pch_header): Remove.
22 (get_ident): Update gpch version.
23 (pch_init): Do not print executable_checksum to asm_out_file.
24 Do not fail if there is no asm_out_file to read back from. Set
25 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
26 (c_common_write_pch): Verify that nothing was written to asm_out_file
27 since pch_init was called. Do not write a c_pch_header, and do not
28 copy from asm_out_file to the PCH.
29 (c_common_read_pch): Do not read a c_pch_header, and do not restore
30 the content of asm_out_file from the PCH.
31 (c_common_print_pch_checksum): Remove.
32 * c-opts.c (c_common_init): Print out executable_checksum directly.
33
70f42967
SB
342012-06-19 Steven Bosscher <steven@gcc.gnu.org>
35
36 * c-target.def (objc_declare_unresolved_class_reference,
37 objc_declare_class_definition): Add new hooks.
38
a8781821
SB
392012-06-19 Steven Bosscher <steven@gcc.gnu.org>
40
41 * c-lex.c: Do not include output.h.
42 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
43 Remove uses of ASM_OUTPUT_IDENT.
44
9e1a8dd1
RR
452012-06-15 Marc Glisse <marc.glisse@inria.fr>
46
47 PR c++/51033
48 * c-common.h (c_build_vec_perm_expr): Move decl here.
49 * c-common.c (c_build_vec_perm_expr): Move definition
50 here.
51
6f07a821
SB
522012-06-06 Steven Bosscher <steven@gcc.gnu.org>
53
54 * c.opt (fconserve-space): Turn into a no-op.
55
c265f413
SA
562012-06-04 Sterling Augustine <saugustine@google.com>
57
58 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
59 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
60 both the start and end of the function.
61
a4b7d13c
SB
622012-06-04 Steven Bosscher <steven@gcc.gnu.org>
63
64 * c-common.c: Do not include output.h.
65 * c-pragma.c: Likewise.
66
c265f413
SA
672012-06-04 Steven Bosscher <steven@gcc.gnu.org>
68
69 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
70 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
71 (lang_decl_name): Handle namespace decls.
72
be7a421e
SB
732012-05-31 Steven Bosscher <steven@gcc.gnu.org>
74
75 * c-ada-spec.c: Do not include output.h.
76 * c-semantics.c: Likewise.
77
65de6659
JM
782012-05-29 Joseph Myers <joseph@codesourcery.com>
79
80 * c-common.c: Fix typo.
81
ca5f4331
MM
822012-05-29 Michael Matz <matz@suse.de>
83
84 * c-common.h (c_expand_decl): Remove prototype.
85
4f7f7aca
MLI
862012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
87
88 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
89 * c-opts.c (c_common_handle_option): Remove code handling
90 warn_missing_braces.
91
4a792f9b
PC
922012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
93
94 PR c++/25137
95 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
96 -Wmissing_braces.
97
650dc14a
DS
982012-05-22 Dodji Seketeli <dodji@redhat.com>
99
100 PR c++/53322
101 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
102
9b095bf1
MLI
1032012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
104
105 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
106 * c-opts.c (c_common_handle_option): Do not handle explicitly
107 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
108
0b2c4be5
DS
1092012-05-16 Dodji Seketeli <dodji@redhat.com>
110
111 PR preprocessor/7263
112 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
113 to cpp_classify_number. For diagnostics, use the precise location
114 instead of the global input_location.
115
a1bde5af
PC
1162012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
117
d02924ef 118 PR c++/11856
a1bde5af
PC
119 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
120
d1ede5f4
BS
1212012-05-14 Bernd Schmidt <bernds@codesourcery.com>
122
a1bde5af 123 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 124
f2bc201f
MLI
1252012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
126
127 PR 53063
128 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
129 Wreorder): Use LangEnabledBy.
130 * c-opts.c (c_common_handle_option): Do not enable them
131 explicitly. Call lang-specific generated functions.
132 (c_common_post_options): Do not set them here.
133
95744782
MLI
1342012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
135
136 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
137 Wmissing-field-initializers,Wmissing-parameter-type,
138 Wold-style-declaration,Woverride-init): Use EnabledBy.
139 * c-opts.c (c_common_post_options): Do not set here explicitly.
140
7d5a5747
MLI
1412012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
142
143 PR 53063
144 * c-opts.c (c_common_handle_option): Use handle_generated_option
145 to enable sub-options.
146
5a3c9cf2
PC
1472012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
148
149 PR c++/53158
150 * c-common.c (warnings_for_convert_and_check): Use warning_at.
151
3ac8781c
RG
1522012-05-10 Richard Guenther <rguenther@suse.de>
153
154 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
155 adjust commentary about TYPE_IS_SIZETYPE types.
156
1e537948
MLI
1572012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
158
159 PR c++/53261
160 * c-common.c (warn_logical_operator): Check that argument of
161 integer_zerop is not NULL.
162
f2c4a785
MLI
1632012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
164
165 PR c/43772
166 * c-common.c (warn_logical_operator): Do not warn if either side
167 is already true or false.
168
50f305ca
MLI
1692012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
170
171 PR c/51712
172 * c-common.c (expr_original_type): New.
173 (shorten_compare): Do not warn for enumeration types.
174
0c3641b0
MLI
1752012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
176
177 * c.opt (fpermissive): Add Var(flag_permissive).
178
7edaa4d2
MG
1792012-04-30 Marc Glisse <marc.glisse@inria.fr>
180
181 PR c++/51033
182 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
183 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
184
b9c8da34
DS
1852012-04-30 Dodji Seketeli <dodji@redhat.com>
186
187 Add -Wvarargs option
188 * c.opt (Wvarargs): Define new option.
189
e6c69da0
MLI
1902012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
191
192 * c-common.c (check_function_arguments): Replace
193 Wmissing-format-attribute with Wsuggest-attribute=format.
194
90137d8f
MLI
1952012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
196
197 * c.opt (Wsuggest-attribute=format): New. Alias of
198 Wmissing-format-attribute.
199 * c-format.c (decode_format_type): Replace
200 Wmissing-format-attribute with Wsuggest-attribute=format.
201 (check_function_format): Likewise.
202
7f5f5f98
OW
2032012-04-27 Ollie Wild <aaw@google.com>
204
205 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
206 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
207 * c.opt: Add Wliteral-suffix.
208
c1771a20
MLI
2092012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
210
211 PR c/44774
212 * c.opt (Wpedantic): New.
213 (pedantic): Alias Wpedantic.
214 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
215 (c_common_post_options): Likewise.
216 (sanitize_cpp_opts): Likewise.
217 * c-lex.c (interpret_float): Likewise.
218 * c-format.c (check_format_types): Likewise.
219 * c-common.c (pointer_int_sum): Likewise.
220 (c_sizeof_or_alignof_type): Likewise.
221 (c_add_case_label): Likewise.
222 (c_do_switch_warnings): Likewise.
223 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
224
04b391c1
JM
2252012-04-15 Jason Merrill <jason@redhat.com>
226
227 PR c++/52818
228 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
229 (C_STD_NAME): Distinguish between C++98 and C++11.
230
ac868f29
EB
2312012-04-11 Eric Botcazou <ebotcazou@adacore.com>
232
233 PR target/52624
234 * c-common.h (uint16_type_node): Rename into...
235 (c_uint16_type_node): ...this.
236 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
237 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
238
fd4116f4
MLI
2392012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
240
241 * c-common.c (warn_if_unused_value): Move definition to here.
242 * c-common.h (warn_if_unused_value): Move declaration to here.
243
573ac65e
WB
2442012-03-23 William Bader <williambader@hotmail.com>
245
246 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
247
552b8185
JM
2482012-03-20 Jason Merrill <jason@redhat.com>
249
250 * c-common.h (enum cxx_dialect): Add cxx1y.
251 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
252 test.
253 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
254 * c-opts.c (c_common_post_options): Likewise.
255 (set_std_cxx1y): New.
256 (c_common_handle_option): Call it.
257 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
258
04398fa8
PC
2592012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
260
261 PR c++/14710
262 * c.opt ([Wuseless-cast]): Add.
263
d2a12ae7
RG
2642012-03-16 Richard Guenther <rguenther@suse.de>
265
266 * c-pretty-print.c (pp_c_initializer_list): Adjust.
267
a12bf402
MLI
2682012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
269
270 PR c++/44783
271 * c.opt (ftemplate-backtrace-limit) Add.
272
5c30094f
RO
2732012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
274
275 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
276 handling.
277 * c-pragma.c (handle_pragma_extern_prefix): Remove.
278 (init_pragma): Don't register extern_prefix.
279
21fa2faf
RG
2802012-03-12 Richard Guenther <rguenther@suse.de>
281
282 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
283 (builtin_type_for_size): Likewise.
284
e3793c6f
JJ
2852012-02-13 Jakub Jelinek <jakub@redhat.com>
286
287 PR c++/52215
288 * c-common.c (sync_resolve_params): Don't decide whether to convert
289 or not based on TYPE_SIZE comparison, convert whenever arg_type
290 is unsigned INTEGER_TYPE.
291
93286335
PC
2922012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
293
294 PR c/52118
295 * c.opt ([Wunused-local-typedefs]): Fix description.
296
7a421706
MS
2972012-01-24 Mike Stump <mikestump@comcast.net>
298
299 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
300 exactly.
301
ba9b1f11
RG
3022012-01-18 Richard Guenther <rguenther@suse.de>
303
304 * c-opts.c (c_common_post_options): Reset LTO flags if
305 we are about to generate a PCH.
306
465406be
PC
3072012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
308
309 PR c++/51777
310 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
311 use pp_unsigned_wide_integer.
312
aee15221
RG
3132012-01-10 Richard Guenther <rguenther@suse.de>
314
315 PR middle-end/51806
316 * c-opts.c (c_common_handle_option): Move -Werror handling
317 to language independent code.
318
5720c0dc
RG
3192012-01-05 Richard Guenther <rguenther@suse.de>
320
321 PR middle-end/51764
322 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
323 from common.opt.
324
73ac190a
PC
3252011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
326
327 PR c++/51316
328 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
329 of array types with an unknown bound.
330
48b0b196
JM
3312011-12-20 Joseph Myers <joseph@codesourcery.com>
332
333 * c-common.c (flag_isoc99): Update comment to refer to C11.
334 (flag_isoc1x): Change to flag_isoc11.
335 * c-common.h (flag_isoc99): Update comment to refer to C11.
336 (flag_isoc1x): Change to flag_isoc11.
337 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
338 C11.
339 * c-opts.c (set_std_c1x): Change to set_std_c11.
340 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
341 Call set_std_c11.
342 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
343 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
344 * c.opt (std=c1x): Change to std=c11. Document as non-draft
345 standard.
346 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
347 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
348 (std=gnu1x): Make alias of std=gnu11.
349
d58d6eb5
JM
3502011-12-19 Jason Merrill <jason@redhat.com>
351
352 PR c++/51228
353 * c-common.c (handle_transparent_union_attribute): Check the first
354 field if the type is complete.
355
b3908fcc
JW
3562011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
357
358 PR libstdc++/51365
359 * c-common.c (RID_IS_FINAL): Add.
360 * c-common.h (RID_IS_FINAL): Add.
361
fea3ca91
IS
3622011-11-30 Iain Sandoe <iains@gcc.gnu.org>
363
364 * c.opt (fgnu-runtime): Provide full description.
365 (fnext-runtime): Likewise.
366 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
367
62bad7cd
AM
3682011-11-28 Andrew MacLeod <amacleod@redhat.com>
369
370 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
371 predefines in one place. Add LOCK_FREE predefines.
372 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
373 new func.
374
c466c4ff
AM
3752011-11-24 Andrew MacLeod <amacleod@redhat.com>
376
377 PR c/51256
378 * c-common.c (get_atomic_generic_size): Check for various error
379 conditions
380 (resolve_overloaded_atomic_exchange,
381 resolve_overloaded_atomic_compare_exchange,
382 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
383 error_mark_node for error conditions.
384
a5952633
RG
3852011-11-08 Richard Guenther <rguenther@suse.de>
386
387 PR middle-end/51010
388 c-family/
389
0a35513e
AH
3902011-11-07 Richard Henderson <rth@redhat.com>
391 Aldy Hernandez <aldyh@redhat.com>
392 Torvald Riegel <triegel@redhat.com>
393
394 Merged from transactional-memory.
395
396 * c-common.c (handle_tm_wrap_attribute,
397 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
398 (struct c_common_reswords): Added __transaction* keywords.
399 (struct c_common_attribute_table): Added transaction* and tm_regparm
400 attributes.
401 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
402 masks.
403 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
404 find_tm_attribute): Declare.
405
6d87092d
JM
4062011-11-07 Jason Merrill <jason@redhat.com>
407
408 PR c++/35688
409 * c-common.c, c-common.h: Revert yesterday's changes.
410
8e7860a1
JM
4112011-11-06 Jason Merrill <jason@redhat.com>
412
413 PR c++/35688
414 * c-common.c (decl_has_visibility_attr): Split out from...
415 (c_determine_visibility): ...here.
416 * c-common.h: Declare it.
417
d19fa6b5
JM
4182011-11-06 Joseph Myers <joseph@codesourcery.com>
419
420 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
421 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
422 type.
423 (check_user_alignment): New. Split out of
424 handle_aligned_attribute. Disallow integer constants with
425 noninteger types. Conditionally allow zero.
426 (handle_aligned_attribute): Use check_user_alignment.
427 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
428
86951993
AM
4292011-11-06 Andrew MacLeod <amacleod@redhat.com>
430 Richard Henderson <rth@redhat.com>
431
432 Merged from cxx-mem-model.
433
434 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
435 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
436 parameters that are the same type size.
437 (get_atomic_generic_size): New. Find size of generic
438 atomic function parameters and do typechecking.
439 (add_atomic_size_parameter): New. Insert size into parameter list.
440 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
441 either __atomic_exchange_n or external library call.
442 (resolve_overloaded_atomic_compare_exchange): Restructure
443 __atomic_compare_exchange to either _n variant or external library call.
444 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
445 __atomic_load_n or an external library call.
446 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
447 __atomic_store_n or an external library call.
448 (resolve_overloaded_builtin): Handle new __atomic builtins.
449
cf9e9959
EB
4502011-11-04 Eric Botcazou <ebotcazou@adacore.com>
451
452 PR c++/50608
453 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
454 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
455 <INDIRECT_REF>: Return the argument.
456 <ARRAY_REF>: Remove special code for negative offset.
457 Call fold_build_pointer_plus instead of size_binop.
458 (fold_offsetof): Remove STOP_REF argument and adjust.
459 * c-common.h (fold_offsetof_1): Declare.
460 (fold_offsetof): Remove STOP_REF argument.
461
25339f10
JM
4622011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
463
464 PR c++/50810
465 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
466 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
467 Wnarrowing for C++0x and C++98.
468 * c.opt ([Wnarrowing]): Update.
469
89401152
PC
4702011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
471
472 PR c++/44277
473 * c.opt: Add Wzero-as-null-pointer-constant.
474
97e3ad20
JM
4752011-10-31 Jason Merrill <jason@redhat.com>
476
15694fdd
JM
477 * c.opt (-fdeduce-init-list): Off by default.
478
97e3ad20
JM
479 PR c++/50920
480 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
481 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
482 and -Wc++11-compat.
483 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
484
fb9120e3
RAV
4852011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
486
487 PR c++/30066
488 * c.opt (fvisibility-inlines-hidden): Description change.
489
3ce4f9e4
ESR
4902011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
491
492 Implement C++11 user-defined literals.
493 * c-common.c (build_userdef_literal): New.
494 * c-common.def: New tree code.
495 * c-common.h (tree_userdef_literal): New tree struct and accessors.
496 * c-lex.c (interpret_float): Add suffix parm.
497 (c_lex_with_flags): Build literal tokens.
498
5f53c243
PC
4992011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
500
501 PR c++/50841
502 Revert:
503 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
504
505 PR c++/50810
506 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
507 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
508 Wnarrowing for C++0x and C++98.
509 * c.opt ([Wnarrowing]): Update.
510
263734e1
PC
5112011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
512
513 PR c++/50810
514 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
515 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
516 Wnarrowing for C++0x and C++98.
517 * c.opt ([Wnarrowing]): Update.
518
d2e312d7
PC
5192011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
520
521 PR c++/45385
522 * c-common.c (conversion_warning): Remove code looking for
523 artificial operands.
524
d17687f6
DS
5252011-10-18 Dodji Seketeli <dodji@redhat.com>
526
527 PR bootstrap/50760
528 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
529 !NO_IMPLICIT_EXTERN_C.
530
fc8396e9
PC
5312011-10-17 Michael Spertus <mike_spertus@symantec.com>
532
533 * c-common.c (c_common_reswords): Add __bases,
534 __direct_bases.
535 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
536
5372011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
538
539 PR c++/50757
540 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
541
847e697a
TT
5422011-10-15 Tom Tromey <tromey@redhat.com>
543 Dodji Seketeli <dodji@redhat.com>
544
545 * c.opt (fdebug-cpp): New option.
546 * c-opts.c (c_common_handle_option): Handle the option.
547 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
548 output stream in parameter. Factorized from ...
549 (maybe_print_line): ... this. Dump location debug information when
550 -fdebug-cpp is in effect.
551 (print_line_1): New static function. Takes an output stream in
552 parameter. Factorized from ...
553 (print_line): ... here. Dump location information when -fdebug-cpp
554 is in effect.
555 (scan_translation_unit): Dump location information when
556 -fdebug-cpp is in effect.
557
92582b75
TT
5582011-10-15 Tom Tromey <tromey@redhat.com>
559 Dodji Seketeli <dodji@redhat.com>
560
561 * c.opt (ftrack-macro-expansion): New option. Handle it with and
562 without argument.
563 * c-opts.c (c_common_handle_option)<case
564 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
565 cases. Handle -ftrack-macro-expansion with and without argument.
566
46427374
TT
5672011-10-15 Tom Tromey <tromey@redhat.com>
568 Dodji Seketeli <dodji@redhat.com>
569
570 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
571 (print_line, cb_define, do_line_change): Adjust to avoid touching
572 the internals of struct line_map. Use the public API instead.
573 * c-pch.c (c_common_read_pch): Likewise.
574 * c-lex.c (fe_file_change): Likewise.
575
fc8396e9
PC
5762011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
577
578 PR c++/17212
579 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
580
5812011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
582
583 PR c++/33067
584 * c-pretty-print.c (pp_c_floating_constant): Output
585 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
586
e79983f4
MM
5872011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
588
589 * c-common.c (def_builtin_1): Delete old interface with two
590 parallel arrays to hold standard builtin declarations, and replace
591 it with a function based interface that can support creating
592 builtins on the fly in the future. Change all uses, and poison
593 the old names. Make sure 0 is not a legitimate builtin index.
594 * c-omp.c (c_finish_omp_barrier): Ditto.
595 (c_finish_omp_taskwait): Ditto.
596 (c_finish_omp_flush): Ditto.
597
6637388f
TG
5982011-10-11 Tristan Gingold <gingold@adacore.com>
599
600 * c.opt: (fallow-parameterless-variadic-functions): New.
601
3797cb21
DS
6022011-09-08 Dodji Seketeli <dodji@redhat.com>
603
604 PR c++/33255 - Support -Wunused-local-typedefs warning
605 * c-common.h (struct c_language_function::local_typedefs): New
606 field.
607 (record_locally_defined_typedef, maybe_record_typedef_use)
608 (maybe_warn_unused_local_typedefs): Declare new functions.
609 * c-common.c (record_locally_defined_typedef)
610 (maybe_record_typedef_use)
611 (maybe_warn_unused_local_typedefs): Define new functions.
612 * c.opt: Declare new -Wunused-local-typedefs flag.
613
693ddb1b
EB
6142011-09-06 Eric Botcazou <ebotcazou@adacore.com>
615
616 PR middle-end/50266
617 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
618 computations.
619
830c740f
RG
6202011-09-05 Richard Guenther <rguenther@suse.de>
621
622 * c-common.c (complete_array_type): Use ssize_int (-1) instead
623 of integer_minus_one_node for empty array upper bounds.
624
892a371f
DS
6252011-08-28 Dodji Seketeli <dodji@redhat.com>
626
627 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
628 it's the first time it's being called on this main TU.
629
0e3fdb48
RB
6302011-08-24 Richard Guenther <rguenther@suse.de>
631
632 PR c/49396
633 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
634
6352011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
636
637 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
638 defined in cpp_init_builtins and c_cpp_builtins.
639
d4a83c10
JM
6402011-08-19 Joseph Myers <joseph@codesourcery.com>
641
642 * c-common.c (c_common_reswords): Add __builtin_complex.
643 * c-common.h (RID_BUILTIN_COMPLEX): New.
644
bbceee64
JM
6452011-08-18 Joseph Myers <joseph@codesourcery.com>
646
647 * c-common.c (c_common_reswords): Add _Noreturn.
648 (keyword_is_function_specifier): Handle RID_NORETURN.
649 * c-common.h (RID_NORETURN): New.
650
0e3a99ae
AS
6512011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
652
653 * c-common.c (unsafe_conversion_p): New function. Check if it is
654 unsafe to convert an expression to the type.
655 (conversion_warning): Adjust, use unsafe_conversion_p.
656 * c-common.h (unsafe_conversion_p): New function declaration.
657
20906c66
JJ
6582011-08-02 Jakub Jelinek <jakub@redhat.com>
659
660 * c-common.h (c_finish_omp_atomic): Adjust prototype.
661 (c_finish_omp_taskyield): New prototype.
662 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
663 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
664 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
665 or RHS1 have side-effects, evaluate those too in the right spot,
666 if it is a decl and LHS is also a decl, error out if they
667 aren't the same.
668 (c_finish_omp_taskyield): New function.
669 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
670 * c-pragma.c (omp_pragmas): Add taskyield.
671 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
672 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
673 PRAGMA_OMP_CLAUSE_MERGEABLE.
674
770e5a2e
DS
6752011-07-25 Dodji Seketeli <dodji@redhat.com>
676
677 * c-common.h (set_underlying_type): Remove parm name from
678 declaration.
679
1baae426
RG
6802011-07-25 Romain Geissler <romain.geissler@gmail.com>
681
682 * c-pretty-print.h: Search c-common.h in c-family.
683
fcb21722
JM
6842011-07-22 Jason Merrill <jason@redhat.com>
685
76f86d00
JM
686 PR c++/49793
687 * c.opt (Wnarrowing): New.
688
3a636414
JM
689 PR c++/30112
690 * c-common.h: Declare c_linkage_bindings.
691 * c-pragma.c (handle_pragma_redefine_extname): Use it.
692
fcb21722
JM
693 PR c++/49813
694 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
695 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
696 as flag_isoc99 for 'restrict'.
697 (pp_c_specifier_qualifier_list): Likewise for _Complex.
698
02614448
ILT
6992011-07-21 Ian Lance Taylor <iant@google.com>
700
701 PR middle-end/49705
702 * c-common.c (c_disable_warnings): New static function.
703 (c_enable_warnings): New static function.
704 (c_fully_fold_internal): Change local unused_p to bool. Call
705 c_disable_warnings and c_enable_warnings rather than change
706 c_inhibit_evaluation_warnings.
707
34429675
JM
7082011-07-20 Jason Merrill <jason@redhat.com>
709
710 PR c++/6709 (DR 743)
711 PR c++/42603 (DR 950)
712 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
713 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
714 (CPP_DECLTYPE): New.
715 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
716
5d49b6a7
RG
7172011-07-19 Richard Guenther <rguenther@suse.de>
718
719 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
720 * c-omp.c (c_finish_omp_for): Likewise.
721
e84a58ff
EB
7222011-07-12 Eric Botcazou <ebotcazou@adacore.com>
723
724 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
725 body on the next line.
726
329af3c7
JM
7272011-07-08 Jason Merrill <jason@redhat.com>
728
4063e61b
JM
729 PR c++/45437
730 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
731
329af3c7
JM
732 PR c++/49673
733 * c-common.c (c_apply_type_quals_to_decl): Don't check
734 TYPE_NEEDS_CONSTRUCTING.
735
1a072294
RG
7362011-07-06 Richard Guenther <rguenther@suse.de>
737
738 * c-common.c (c_common_nodes_and_builtins):
739 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
740
fce5dddd
RG
7412011-07-05 Richard Guenther <rguenther@suse.de>
742
743 * c-common.c (c_common_nodes_and_builtins): Build all common
744 tree nodes first.
745
45d439ac
JJ
7462011-06-27 Jakub Jelinek <jakub@redhat.com>
747
56300785
JJ
748 * c-common.h (c_tree_chain_next): New static inline function.
749
45d439ac
JJ
750 * c-common.c (check_builtin_function_arguments): Handle
751 BUILT_IN_ASSUME_ALIGNED.
752
e0a8ecf2
AM
7532011-06-21 Andrew MacLeod <amacleod@redhat.com>
754
755 * c-common.c: Add sync_ or SYNC__ to builtin names.
756 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
757
7582011-06-20 Pierre Vittet <piervit@pvittet.com>
759
760 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
761 handler.
762 (gen_pragma_handler): New union.
763 (internal_pragma_handler): New type.
764 (c_register_pragma_with_data)
765 (c_register_pragma_with_expansion_and_data): New functions.
766
767 * c-pragma.c (registered_pragmas, c_register_pragma_1)
768 (c_register_pragma, c_register_pragma_with_expansion)
769 (c_invoke_pragma_handler): Changed to work with
770 internal_pragma_handler.
771 (c_register_pragma_with_data)
772 (c_register_pragma_with_expansion_and_data): New functions.
773
677f3fa8
JM
7742011-06-14 Joseph Myers <joseph@codesourcery.com>
775
776 * c-common.c: Include common/common-target.h.
777 (handle_section_attribute): Use
778 targetm_common.have_named_sections.
779 * c-cppbuiltin.c: Include common/common-target.h.
780 (c_cpp_builtins): Use targetm_common.except_unwind_info.
781
d7fc8c14
RG
7822011-06-10 Richard Guenther <rguenther@suse.de>
783
784 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
785 to print a IDENTIFIER_NODE.
786
10e48e39
RO
7872011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
788 Joseph Myers <joseph@codesourcery.com>
789
790 * c.opt (fbuilding-libgcc): New option.
791 * c-cppbuiltin.c (c_cpp_builtins): Define
792 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
793
6976ae51
JM
7942011-06-07 Jason Merrill <jason@redhat.com>
795
3ff60975
JM
796 * c-common.c (max_tinst_depth): Lower default to 900.
797
6976ae51
JM
798 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
799
009db074
RG
8002011-06-07 Richard Guenther <rguenther@suse.de>
801
802 * c-common.c (c_common_nodes_and_builtins): Do not set
803 size_type_node or call set_sizetype.
804
b4592b92
DS
8052011-06-07 Dodji Seketeli <dodji@redhat.com>
806
807 PR debug/49130
808 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
809 type when using pointer comparison to compare types.
810
014ab419
JW
8112011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
812
813 * c.opt: Add -Wdelete-non-virtual-dtor.
814 * c-opts.c (c_common_handle_option): Include it in -Wall.
815
4f60111f
NF
8162011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
817
818 PR bootstrap/49190
819
820 Revert:
821 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
822
823 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
824 not tree_common.
825
4cc4f2f4
JJ
8262011-05-27 Jakub Jelinek <jakub@redhat.com>
827
828 PR c++/49165
829 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
830 C++ don't call c_common_truthvalue_conversion on void type arms.
831
38e01f9e
NF
8322011-05-27 Nathan Froyd <froydnj@codesourcery.com>
833
834 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
835 (stmt_list_stack): Define.
836 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
837 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
838
92e948a8
NF
8392011-05-26 Nathan Froyd <froydnj@codesourcery.com>
840
841 * c-common.c (warning_candidate_p): Check for BLOCKs.
842
a2fc3e63
NF
8432011-05-26 Nathan Froyd <froydnj@codesourcery.com>
844
845 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
846 not tree_common.
847
0957c029
JJ
8482011-05-25 Jakub Jelinek <jakub@redhat.com>
849
850 * c-common.c (def_fn_type): Remove extra va_end.
851
828fb3ba
JM
8522011-05-23 Jason Merrill <jason@redhat.com>
853
854 PR c++/48106
855 * c-common.c (c_common_get_narrower): New.
856 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
857
dde05067
NF
8582011-05-23 Nathan Froyd <froydnj@codesourcery.com>
859
860 * c-common.h (check_function_arguments): Tweak prototype of
861 check_function_arguments.
862 * c-common.c (check_function_arguments): Likewise. Adjust
863 calls to check_function_nonnull, check_function_format, and
864 check_function_sentinel.
865 (check_function_sentinel): Take a FUNCTION_TYPE rather than
866 separate attributes and typelist arguments. Use
867 FOREACH_FUNCTION_ARGS to iterate over argument types.
868
3c0d13bf
PC
8692011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
870
871 * c-common.c (c_common_reswords): Reorder.
872 * c-common.h (rid): Likewise.
873
8242dd04
NF
8742011-05-10 Nathan Froyd <froydnj@codesourcery.com>
875
876 * c-common.c (def_fn_type): Don't call build_function_type, call
877 build_function_type_array or build_varargs_function_type_array
878 instead.
879 (c_common_nodes_and_builtins): Likewise.
880
3d528853
NF
8812011-05-05 Nathan Froyd <froydnj@codesourcery.com>
882
883 * c-common.c (c_add_case_label): Omit the loc argument to
884 build_case_label.
885 * c-common.h (build_case_label): Remove.
886 * c-semantics.c (build_case_label): Remove.
887
a04a722b
JM
8882011-05-05 Joseph Myers <joseph@codesourcery.com>
889
890 * c-objc.h (objc_start_method_definition): Update prototype.
891 * stub-objc.c (objc_start_method_definition): Add extra parameter.
892
e19a18d4
NF
8932011-05-04 Nathan Froyd <froydnj@codesourcery.com>
894
895 * c-common.c (check_main_parameter_types): Reindent. Don't use
896 TYPE_ARG_TYPES directly.
897 (handle_nonnull_attribute): Likewise.
898 (sync_resolve_params): Likewise.
899 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
900 to check_format_string.
901 (handle_format_attribute): Likewise.
902 (check_format_string): Take a function type to examine instead of
903 a type list. Use a function_arg_iterator to step through argument
904 types.
905
c62c040f
RG
9062011-05-04 Richard Guenther <rguenther@suse.de>
907
908 * c-common.c (fix_string_type): Use size_int for index type bounds.
909 (start_fname_decls): Do not pass NULL to build_int_cst.
910 (c_init_attributes): Likewise.
911 * c-lex.c (c_lex_with_flags): Likewise.
912
c12ff9d8
JM
9132011-04-27 Jason Merrill <jason@redhat.com>
914
915 * c-common.c (make_tree_vector_from_list): New.
916 * c-common.h: Declare it.
917
304dfbe3
RG
9182011-04-26 Richard Guenther <rguenther@suse.de>
919
920 PR preprocessor/48248
921 * c-ppoutput.c (maybe_print_line): Always optimize newlines
922 for output size with -P.
923
3c0d13bf
PC
9242011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
925
926 * c-common.c (struct c_common_resword): Add __underlying_type.
927 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
928
04695783
JM
9292011-04-20 Jim Meyering <meyering@redhat.com>
930
931 * c-format.c (init_dollar_format_checking): Remove useless
932 if-before-free.
933
0dc33c3c
NP
9342011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
935
936 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 937 (objc_detect_field_duplicates): New.
0dc33c3c 938 * stub-objc.c: Likewise.
3c0d13bf 939
c59633d9
NP
9402011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
941
942 * stub-objc.c (objc_declare_protocols): Renamed to
943 objc_declare_protocol.
944 * c-objc.h: Likewise.
3c0d13bf 945
32dabdaf
NP
9462011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
947
948 * stub-objc.c (objc_declare_class): Updated argument name.
949
81f653d6
NF
9502011-04-12 Nathan Froyd <froydnj@codesourcery.com>
951
952 * c-common.h (c_common_init_ts): Declare.
953 * c-common.c (c_common_init_ts): Define.
954
eb345401
NP
9552011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
956
957 * c-objc.h (objc_build_message_expr): Updated prototype.
958 * stub-objc.c (objc_build_message_expr): Likewise.
959
a358e188
MJ
9602011-04-12 Martin Jambor <mjambor@suse.cz>
961
962 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
963 of cgraph_node.
964
e6313a78
RG
9652011-04-11 Richard Guenther <rguenther@suse.de>
966
967 * c-common.c (complete_array_type): Build a range type of
968 proper type.
969
dcf0c47e
NF
9702011-04-08 Nathan Froyd <froydnj@codesourcery.com>
971
972 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
973 (handle_type_generic_attribute): Likewise.
974
1ee44b26
JM
9752011-04-07 Jason Merrill <jason@redhat.com>
976
977 PR c++/48450
978 * c-common.c (c_common_truthvalue_conversion): Don't ignore
979 conversion from C++0x scoped enum.
980
acce4e77
JM
9812011-04-06 Joseph Myers <joseph@codesourcery.com>
982
983 * c-target-def.h: New file.
984 * c-target.def: New file.
985 * c-target.h: New file.
986 * c-common.c (targetcm): Don't define here.
987 * c-common.h (default_handle_c_option): Declare.
988 * c-format.c: Include c-target.h instead of target.h.
989 * c-opts.c: Include c-target.h instead of target.h. Explicitly
990 include tm.h.
991 (default_handle_c_option): Move from targhooks.c.
992
e2eefb55
JJ
9932011-03-29 Jakub Jelinek <jakub@redhat.com>
994
995 PR preprocessor/48248
996 * c-ppoutput.c (print): Add src_file field.
997 (init_pp_output): Initialize it.
998 (maybe_print_line): Don't optimize by adding up to 8 newlines
999 if map->to_file and print.src_file are different file.
1000 (print_line): Update print.src_file.
1001
ba78087b
KT
10022011-03-25 Kai Tietz <ktietz@redhat.com>
1003
1004 * c-ada-spec.c (compare_comment): Use filename_cmp
1005 instead of strcmp for filename.
1006
0edf1bb2
JL
10072011-03-25 Jeff Law <law@redhat.com>
1008
1009 * c-family/c-common.c (def_fn_type): Add missing va_end.
1010
c7dc8804
JM
10112011-03-25 Jason Merrill <jason@redhat.com>
1012
1013 * c.opt: Add -std=c++03.
1014
d1d879b1
EB
10152011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1016
1017 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1018
62d784f7
KT
10192011-03-17 Kai Tietz
1020
1021 PR target/12171
5050afdf
KT
1022 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1023 Display allowed attributes for function pointer types.
1024 (pp_c_attributes_display): New function to display
1025 attributes having affects_type_identity flag set to true.
1026 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1027
62d784f7
KT
1028 * c-common.c (c_common_attribute_table):
1029 Add new element.
1030 (c_common_format_attribute_table): Likewise.
1031
82d37118
JM
10322011-03-18 Jason Merrill <jason@redhat.com>
1033
49a000c3
JM
1034 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1035 * c-common.h: Don't declare it here.
1036 * c-common.c: Or define it here.
1037 * c-opts.c (c_common_handle_option): Or set it here.
1038
82d37118
JM
1039 PR c++/35315
1040 * c-common.c (handle_transparent_union_attribute): Don't
1041 make a duplicate type in C++.
1042
17bc631c
JM
10432011-03-15 Jason Merrill <jason@redhat.com>
1044
1045 * c-common.c (max_constexpr_depth): New.
1046 * c-common.h: Declare it.
1047 * c-opts.c (c_common_handle_option): Set it.
1048 * c.opt (fconstexpr-depth): New option.
1049
1b9b91a6
JM
10502011-03-11 Jason Merrill <jason@redhat.com>
1051
f231b5ff
JM
1052 * c-common.c (attribute_takes_identifier_p): Add missing const.
1053
1b9b91a6
JM
1054 PR c++/46803
1055 * c-common.c (attribute_takes_identifier_p): Assume that an
1056 unknown attribute takes an identifier.
1057
a19e4d44
NF
10582011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1059
1060 PR c/47786
1061 * c-common.c (c_type_hash): Call list_length instead of iterating
1062 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1063
982d62f6
JJ
10642011-02-19 Jakub Jelinek <jakub@redhat.com>
1065
1066 PR c/47809
1067 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1068
0a256240
NP
10692011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1070
1071 * c.opt (fobjc-abi-version=) New.
1072 (fobjc-nilcheck): New.
1073
ba9e6dd5
NF
10742011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1075
1076 PR c++/46890
1077 * c-common.h (keyword_is_decl_specifier): Declare.
1078 * c-common.c (keyword_is_decl_specifier): Define.
1079 (keyword_is_function_specifier): New function.
1080
7273813a
JJ
10812011-01-26 Jakub Jelinek <jakub@redhat.com>
1082
1083 PR c/47473
1084 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1085 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1086 REAL_TYPE.
1087
908ef79b
AC
10882011-01-26 Arnaud Charlet <charlet@adacore.com>
1089
1090 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1091
237e9384
JJ
10922011-01-26 Jakub Jelinek <jakub@redhat.com>
1093
1094 PR pch/47430
1095 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1096 after init_c_lex if pch_file is set.
1097
47ea1edf
DK
10982011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1099
d4dba752 1100 PR c++/43601
47ea1edf
DK
1101 * c.opt (-fkeep-inline-dllexport): New switch.
1102
2aa9c6ae
RG
11032011-01-12 Richard Guenther <rguenther@suse.de>
1104
1105 PR middle-end/32511
1106 * c-common.c (handle_weak_attribute): Warn instead of error
1107 on declaring an inline function weak.
1108
7bd11157
TT
11092011-01-05 Tom Tromey <tromey@redhat.com>
1110
1111 * c-common.h (lvalue_error): Update.
1112 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1113 not error.
1114
0e66e494
NP
11152010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
1116
b4f588c4
NP
1117 PR objc/47075
1118 * c-objc.h (objc_finish_message_expr): Added argument to
1119 prototype.
1120
f4da8dce
NF
11212010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1122
1123 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1124 Use prototype_p.
1125
46270f14
NP
11262010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1127
1128 * c-objc.h (objc_maybe_warn_exceptions): New.
1129 * stub-objc.c (objc_maybe_warn_exceptions): New.
1130
4816c593
NF
11312010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1132
1133 * c-common.h (readonly_error): Declare.
1134 * c-common.c (readonly_error): Define.
1135
7a6daeb0
NF
11362010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1137
1138 * c-common.h (invalid_indirection_error): Declare.
1139 * c-common.c (invalid_indirection_error): Define.
1140
892f6119
RG
11412010-12-03 Richard Guenther <rguenther@suse.de>
1142
1143 PR c/46745
1144 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1145 (pp_c_unary_expression): Likewise.
1146 (pp_c_expression): Likewise.
1147
6c39e757
NP
11482010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1149
1150 * c-common.h (objc_finish_function): New.
1151 (objc_non_volatilized_type): Removed.
1152 (objc_type_quals_match): Removed.
1153 * stub-objc.c (objc_finish_function): New.
1154 (objc_non_volatilized_type): Removed.
1155 (objc_type_quals_match): Removed.
1156
7c475d11
JM
11572010-11-30 Joseph Myers <joseph@codesourcery.com>
1158
1159 * c-common.h (parse_optimize_options): Declare.
1160 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1161 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1162
71f3e391
JM
11632010-11-29 Joseph Myers <joseph@codesourcery.com>
1164
1165 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1166 GET_ENVIRONMENT.
1167 * c-pch.c (O_BINARY): Don't define here.
1168 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1169
d5fabb58
JM
11702010-11-25 Joseph Myers <joseph@codesourcery.com>
1171
1172 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1173 targetm.except_unwind_info.
1174
299404a1
JM
11752010-11-23 Joseph Myers <joseph@codesourcery.com>
1176
1177 * c-opts.c (c_common_handle_option): Pass location to
1178 set_struct_debug_option.
1179
c98cd5bf
JM
11802010-11-23 Joseph Myers <joseph@codesourcery.com>
1181
1182 * c-common.c (visibility_options): Move from ../opts.c.
1183 * c-common.h (struct visibility_flags, visibility_options):
1184 Declare here.
1185 * c-opts.c (finish_options): Rename to c_finish_options.
1186 (c_common_init): Update call to finish_options.
1187
a9546771
NP
11882010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1189
1190 PR objc/34033
1191 * c-lex.c (lex_string): Check that each string in an Objective-C
1192 string concat sequence starts with either one or zero '@', and
1193 that there are no spurious '@' signs at the end.
1194
24a57808
JM
11952010-11-20 Joseph Myers <joseph@codesourcery.com>
1196
1197 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1198 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1199 HANDLE_PRAGMA_VISIBILITY.
1200 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1201 HANDLE_PRAGMA_VISIBILITY): Don't define.
1202 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1203
a9aa2c3a
NF
12042010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1205
1206 PR c++/16189
1207 PR c++/36888
1208 PR c++/45331
1209 * c-common.h (keyword_begins_type_specifier): Declare.
1210 (keyword_is_storage_class_specifier): Declare.
1211 (keyword_is_type_qualifier): Declare.
1212 * c-common.c (keyword_begins_type_specifier): New function.
1213 (keyword_is_storage_class_specifier): New function.
1214 (keyword_is_type_qualifier): Declare.
1215
5386338c
JM
12162010-11-19 Joseph Myers <joseph@codesourcery.com>
1217
1218 PR c/46547
1219 * c-common.c (in_late_binary_op): Define.
1220 (c_common_truthvalue_conversion): Check in_late_binary_op before
1221 calling c_save_expr.
1222 * c-common.h (in_late_binary_op): Declare.
1223
69ccdddb
JM
12242010-11-19 Joseph Myers <joseph@codesourcery.com>
1225
1226 * c-opts.c (c_common_handle_option): Update calls to
1227 set_struct_debug_option.
1228
6b192a09
NP
12292010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1230
1231 * c-common.h (objc_declare_protocols): Added additional argument.
1232 * stub-objc.c (objc_declare_protocol): Same change.
1233
fb52b50a
NF
12342010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1235
1236 PR c/33193
1237 * c-common.h (build_real_imag_expr): Declare.
1238 * c-semantics.c (build_real_imag_expr): Define.
1239
b37421c6
JM
12402010-11-17 Joseph Myers <joseph@codesourcery.com>
1241
1242 * c-opts.c (c_common_parse_file): Take no arguments.
1243 * c-common.h (c_common_parse_file): Update prototype.
1244
07078664
JJ
12452010-11-16 Jakub Jelinek <jakub@redhat.com>
1246
1247 PR c++/46401
1248 * c-common.c (warning_candidate_p): Don't track non-const calls
1249 or STRING_CSTs.
1250
c6a13190
ILT
12512010-11-15 Ian Lance Taylor <iant@google.com>
1252
1253 * c-lex.c (init_c_lex): Set macro debug callbacks if
1254 flag_dump_go_spec is set.
1255
925e8657
NP
12562010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1257
1258 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1259 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1260
bb0a9581
NF
12612010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1262
1263 PR preprocessor/45038
1264 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1265 dialects.
1266
c5fa0890
JM
12672010-11-12 Joseph Myers <joseph@codesourcery.com>
1268
1269 * c-common.h (c_family_lang_mask): Declare.
1270 * c-opts.c (c_family_lang_mask): Make extern.
1271 * c-pragma.c (handle_pragma_diagnostic): Use
1272 control_warning_option.
1273
a4d8c676
JM
12742010-11-12 Joseph Myers <joseph@codesourcery.com>
1275
1276 * c-common.c (parse_optimize_options): Update call to
1277 decode_options.
1278 * c-common.h (c_common_handle_option): Update prototype.
1279 * c-opts.c (c_common_handle_option): Take location_t parameter and
1280 pass it to other functions.
1281
f954bd2c
JM
12822010-11-11 Joseph Myers <joseph@codesourcery.com>
1283
1284 * c-opts.c (warning_as_error_callback): Remove.
1285 (c_common_initialize_diagnostics): Don't call
1286 register_warning_as_error_callback.
1287 (c_common_handle_option): Handle -Werror=normalized= here.
1288
d8a07487
JM
12892010-11-10 Joseph Myers <joseph@codesourcery.com>
1290
1291 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
1292 in diagnostic.
1293 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
1294 letter.
1295 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
1296 Remove trailing '.' from diagnostics.
1297 * c.opt (Wwrite-strings_: Avoid '`' in help text.
1298
d5478783
JM
12992010-11-10 Joseph Myers <joseph@codesourcery.com>
1300
1301 * c-common.c (parse_optimize_options): Pass global_dc to
1302 decode_options.
1303 * c-opts.c (c_common_handle_option): Pass &global_options to
1304 set_Wstrict_aliasing.
1305 * c.opt (v): Don't mark Common or document here.
1306
91ebb981
IS
13072010-11-06 Iain Sandoe <iains@gcc.gnu.org>
1308
1309 PR target/44981
1310 * c-format.c (format_type): New type gcc_objc_string_format_type.
1311 (valid_stringptr_type_p): New.
1312 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
1313 (check_format_string): Pass expected type, use
1314 valid_stringptr_type_p (), check that the format string types are
1315 consistent with the format specification.
1316 (decode_format_attr): Warn if NSString is used outside objective-c.
1317 (format_types_orig): Add NSString.
1318 (format_name): New.
1319 (format_flags): New.
1320 (check_format_arg): Handle format strings requiring an external parser.
1321 first_target_format_type: New variable.
1322 (handle_format_attribute): Set up first_target_format_type, pass the
1323 expected format arg string type to check_format_string().
1324 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
1325 * stub-objc.c (objc_string_ref_type_p): New.
1326 (objc_check_format_arg): New.
1327
bede2adc
NP
13282010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
1329
1330 Fixed using the Objective-C 2.0 dot-syntax with class names.
1331 * c-common.h (objc_build_class_component_ref): New.
1332 * stub-objc.c (objc_build_class_component_ref): New.
1333
9a179d01
NP
13342010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1335
1336 * c.opt (Wproperty-assign-default): New option.
1337
22d8d616
NP
13382010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
1339
1340 Implemented -fobjc-std=objc1 flag.
1341 * c.opt (fobjc-std=objc1): New option.
1342
2debdb4f
NP
13432010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
1344
1345 Implemented format and noreturn attributes for Objective-C methods.
1346 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
1347 attribute for Objective-C methods.
1348
ec52b111
JM
13492010-10-31 Jason Merrill <jason@redhat.com>
1350
1351 * c-common.c (conversion_warning, warn_for_collisions_1): Use
1352 EXPR_LOC_OR_HERE.
1353
46a88c12
NP
13542010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1355
1356 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1357 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
1358 (objc_add_property_declaration): Removed arguments for copies and
1359 ivar.
1360 (objc_build_getter_call): Renamed to
1361 objc_maybe_build_component_ref.
1362 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1363 (objc_is_property_ref): New.
1364 * c-common.c (c_common_reswords): Removed copies and ivar.
1365 * stub-objc.c (objc_add_property_declaration): Removed arguments
1366 for copies and ivar.
1367 (objc_build_getter_call): Renamed to
1368 objc_maybe_build_component_ref.
1369 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
1370 (objc_is_property_ref): New.
1371
1e4bf85b
AC
13722010-10-29 Arnaud Charlet <charlet@adacore.com>
1373 Matthew Gingell <gingell@adacore.com>
1374
1375 * c-ada-spec.c (separate_class_package): New function.
1376 (pp_ada_tree_identifier): Prefix references to C++ classes with the
1377 name of their enclosing package.
1378 (print_ada_declaration): Use separate_class_package.
1379
81f0bab2
JM
13802010-10-27 Jason Merrill <jason@redhat.com>
1381
2b08f2c5
JM
1382 * c-common.c (c_common_reswords): Add __is_literal_type.
1383 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
1384
81f0bab2
JM
1385 * c-common.c (check_case_value): Remove special C++ code.
1386
200290f2
NP
13872010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1388
1389 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
1390 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
1391 and RID_LAST_PATTR.
1392 (objc_add_property_declaration): Added additional arguments.
1393 (objc_property_attribute_kind): Removed.
1394 (objc_set_property_attr): Removed.
1395 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
1396 copy and nonatomic.
1397 * stub-objc.c (objc_add_property_declaration): Added additional
1398 arguments.
1399 (objc_set_property_attr): Removed.
1400
f614132b
NP
14012010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1402
1403 * c-common.h (objc_add_property_variable): Renamed to
1404 objc_add_property_declaration. Added location argument.
1405 * stub-objc.c (objc_add_property_variable): Same change.
1406
b8a18805
NP
14072010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
1408
1409 * c-common.h (objc_maybe_printable_name): New.
1410 * stub-objc.c (objc_maybe_printable_name): New.
1411
30cd1c5d
AS
14122010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1413 Andrew Pinski <pinskia@gmail.com>
1414
1415 * c-common.h (c_common_mark_addressable_vec): Declare.
1416 * c-common.c (c_common_mark_addressable_vec): New function.
1417
249a82c4
NP
14182010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1419
1420 * c-common.h (objc_set_method_type): Removed.
1421 (objc_add_method_declaration): Added boolean argument.
1422 (objc_start_method_definition): Same change.
1423 (objc_build_method_signature): Same change.
1424 * stub-objc.c (objc_set_method_type): Removed.
1425 (objc_add_method_declaration): Added boolean argument.
1426 (objc_start_method_definition): Same change.
1427 (objc_build_method_signature): Same change.
1428
977e30bc
NP
14292010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1430
1431 * c-common.h (finish_file): Removed.
1432 (objc_write_global_declarations): New.
1433 * c-opts.c (c_common_parse_file): Do not call finish_file.
1434 * stub-objc.c (objc_write_global_declarations): New.
1435
da57d1b9
NP
14362010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1437
1438 Implemented parsing @synthesize and @dynamic for
1439 Objective-C/Objective-C++.
1440 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1441 (objc_add_synthesize_declaration): New.
1442 (objc_add_dynamic_declaration): New.
1443 * c-common.c (c_common_reswords): Add synthesize and dynamic.
1444 * stub-objc.c (objc_add_synthesize_declaration): New.
1445 (objc_add_dynamic_declaration): New.
1446
0069111f
MM
14472010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1448
1449 PR target/46041
1450 * c-cppbuiltin.c (mode_has_fma): Move function here from
1451 builtins.c. Don't use the fma optab, instead just use the
1452 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
1453 using -save-temps.
1454
e426b47b
NP
14552010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1456
1457 Merge from 'apple/trunk' branch on FSF servers.
0069111f 1458
e426b47b
NP
1459 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
1460
1461 Radar 4330422
1462 * c-common.h (objc_non_volatilized_type): New declaration
1463 * stub-objc.c (objc_non_volatilized_type): New stub.
1464
90fbfdc3
NP
14652010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1466
e426b47b 1467 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
1468
1469 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1470
1471 Radar 4133425
1472 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 1473 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 1474
c37d8c30
IS
14752010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1476
1477 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
1478 * c-common.h (enum rid): Add RID_AT_PACKAGE.
1479 (objc_ivar_visibility_kind): New enum.
1480 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 1481 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
1482 visibility enum.
1483
1b1562a5
MM
14842010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1485
1486 * c-cppbuiltin.c (builtin_define_float_constants): Emit
1487 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
1488 has the appropriate fma builtins.
1489 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
1490
668ea4b1
IS
14912010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1492
1b1562a5 1493 merge from FSF apple 'trunk' branch.
668ea4b1 1494 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 1495
668ea4b1
IS
1496 Radars 4436866, 4505126, 4506903, 4517826
1497 * c-common.c (c_common_resword): Define @property and its attributes.
1498 * c-common.h: Define property attribute enum entries.
1499 (OBJC_IS_PATTR_KEYWORD): New.
1500 (objc_property_attribute_kind): New enum.
1501 Declare objc_set_property_attr (), objc_add_property_variable (),
1502 objc_build_getter_call () and objc_build_setter_call ().
1503 * stub-objc.c (objc_set_property_attr): New stub.
1504 (objc_add_property_variable): Likewise.
1505 (objc_build_getter_call): Likewise.
1506 (objc_build_setter_call) Likewise.
1b1562a5 1507
a1178b30
IS
15082010-10-13 Iain Sandoe <iains@gcc.gnu.org>
1509
1b1562a5 1510 merge from FSF apple 'trunk' branch.
a1178b30
IS
1511 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
1512
1513 Radar 3803157 (method attributes)
1514 * c-common.c (handle_deprecated_attribute): Recognize
1515 objc methods as valid declarations.
1516 * c-common.h: Declare objc_method_decl ().
1b1562a5 1517 * stub-objc.c (objc_method_decl): New stub.
a1178b30 1518
a75bfaa6
JM
15192010-10-08 Joseph Myers <joseph@codesourcery.com>
1520
1521 * c-common.c (parse_optimize_options): Call
1522 decode_cmdline_options_to_array_default_mask before
1523 decode_options. Update arguments to decode_options.
1524 * c-common.h (c_common_init_options_struct): Declare.
1525 * c-opts.c (c_common_init_options_struct): New. Split out from
1526 c_common_init_options.
1527
f05b9d93
NP
15282010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
1529
1530 Implemented fast enumeration for Objective-C.
1531 * c-common.h (objc_finish_foreach_loop): New.
1532 * stub-objc.c (objc_finish_foreach_loop): New.
1533
1ebe4b4f
JM
15342010-10-05 Joseph Myers <joseph@codesourcery.com>
1535
1536 * c-common.h (struct diagnostic_context): Don't declare here.
1537 (c_common_initialize_diagnostics): Declare using
1538 diagnostic_context typedef.
1539 * c-opts.c (c_common_handle_option): Pass global_dc to
1540 handle_generated_option.
1541
d4d24ba4
JM
15422010-10-04 Joseph Myers <joseph@codesourcery.com>
1543
1544 * c-opts.c (c_common_handle_option): Pass &global_options_set to
1545 handle_generated_option.
1546
478a1c5b
ILT
15472010-10-03 Ian Lance Taylor <iant@google.com>
1548
1549 * c.opt (-fplan9-extensions): New option.
1550
82a1c2fe
FXC
15512010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1552
1553 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
1554 Remove.
1555 (c_cpp_builtins): Call functions from cppbuiltin.c instead
1556 of duplicating code.
1557
92902b1b
IS
15582010-09-30 Iain Sandoe <iains@gcc.gnu.org>
1559
1560 * c-common.c: Add two new entries for @optional
1561 and @required keywords.
1562
1563 merge from FSF 'apple/trunk' branch.
1564 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
1565
1566 Radar 4386773
1567 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
1568 objective-c keywords.
1569 (objc_set_method_opt): New declaration.
1570 * stub-objc.c (objc_set_method_opt): New stub.
1571
46625112
JM
15722010-09-30 Joseph Myers <joseph@codesourcery.com>
1573
1574 * c-common.c (handle_optimize_attribute): Pass &global_options to
1575 cl_optimization_save and cl_optimization_restore.
1576 * c-opts.c (c_common_handle_option): Pass &global_options to
1577 handle_generated_option.
1578 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
1579 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
1580 &global_options to cl_optimization_restore.
1581
49b91f05
NP
15822010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
1583
1584 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
1585 Objective-C/Objective-C++ keywords.
1586
13ed556f 15872010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57
NP
1588
1589 Merge from 'apple/trunk' branch on FSF servers.
1590
1591 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
1592
1593 Radar 4281748
1594 * c-common.h (objc_check_global_decl): New declaration.
1595 * stub-objc.c (objc_check_global_decl): New stub.
1596
f0036cca
JM
15972010-09-29 Joseph Myers <joseph@codesourcery.com>
1598
1599 * c.opt: Don't use VarExists.
1600
e3339d0f
JM
16012010-09-29 Joseph Myers <joseph@codesourcery.com>
1602
1603 * c-common.c (c_cpp_error): Update names of diagnostic_context
1604 members.
1605 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
1606 cl_optimization members.
1607 * c-opts.c (warning_as_error_callback, c_common_handle_option,
1608 sanitize_cpp_opts, finish_options): Update names of cpp_options
1609 members.
1610
1973201f
NP
16112010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
1612
1613 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
1614 (objc_is_reserved_word): Removed.
1615 * c-common.c: Updated comments.
1616 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
1617 objc_is_reserved_word.
1618 * stub-objc.c (objc_is_reserved_word): Removed.
1619
f7e71da5
IS
16202010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1621
1622 * c-common.h (objc_add_method_declaration): Adjust prototype to
1623 include attributes.
1624 (objc_start_method_definition): Likewise.
1625 (objc_build_keyword_decl): Likewise.
1626 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
1627 (objc_start_method_definition): Likewise.
1628 (objc_build_keyword_decl): Likewise.
1629
c165dca7
IS
16302010-09-28 Iain Sandoe <iains@gcc.gnu.org>
1631
1632 * c-common.h (objc_start_class_interface): Adjust prototype.
1633 (objc_start_category_interface): Likewise.
1634 (objc_start_protocol): Likewise.
1635 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
1636 (objc_start_class_interface): Likewise.
1637 (objc_start_category_interface): Likewise.
1638
7458026b
ILT
16392010-09-27 Ian Lance Taylor <iant@google.com>
1640
1641 * c-common.c (c_common_attribute_table): Add no_split_stack.
1642 (handle_no_split_stack_attribute): New static function.
1643
b581b85b
NP
16442010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
1645
1646 Merge from 'apple/trunk' branch on FSF servers.
1647
1648 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
1649
1650 Radar 4229905
1651 * c-common.h (objc_have_common_type): New declaration.
1652 * stub-objc.c (objc_have_common_type): New stub.
1653
1654 2005-06-22 Ziemowit Laski <zlaski@apple.com>
1655
1656 Radar 4154928
1657 * c-common.h (objc_common_type): New prototype.
1658 * stub-objc.c (objc_common_type): New stub.
1659
46a4da10
JH
16602010-09-24 Jan Hubicka <jh@suse.cz>
1661
1662 * c-common.c (handle_leaf_attribute): New function.
1663 (struct attribute_spec c_common_att): Add leaf.
1664
e200444e
JM
16652010-09-22 Joseph Myers <joseph@codesourcery.com>
1666
1667 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1668 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1669 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1670 -include-barrier, -include-directory, -include-directory=,
1671 -include-directory-after, -include-directory-after=,
1672 -include-prefix, -include-prefix=, -include-with-prefix,
1673 -include-with-prefix=, -include-with-prefix-after,
1674 -include-with-prefix-after=, -include-with-prefix-before,
1675 -include-with-prefix-before=, -no-integrated-cpp,
1676 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1677 -output=, -pedantic, -pedantic-errors, -preprocess,
1678 -print-missing-file-dependencies, -trace-includes, -traditional,
1679 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1680 -user-dependencies, -verbose, -write-dependencies,
1681 -write-user-dependencies, no-integrated-cpp, traditional): New.
1682
29a80ea6
NP
16832010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1684
1685 PR objc/23710
ac1fc2fc
NP
1686 * c-common.h (objc_start_method_definition): Return bool instead
1687 of void.
1688 * stub-objc.c (objc_start_method_definition): Return bool instead
1689 of void.
1690
16912010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1692
1693 PR objc/25965
1694 * c-common.h (objc_get_interface_ivars): New declaration.
1695 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 1696
de621752
ILT
16972010-09-15 Ian Lance Taylor <iant@google.com>
1698
1699 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 1700 messages. Remove period at end of warning message.
de621752 1701
ba885ec5
NS
17022010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1703
1704 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1705 (handle_alias_attribute): ... here.
1706 (handle_ifunc_attribute): New.
1707
c5ee1358
MM
17082010-09-06 Mark Mitchell <mark@codesourcery.com>
1709
1710 * c-common.h (do_warn_double_promotion): Declare.
1711 * c-common.c (do_warn_double_promotion): Define.
1712
0a0b3574
MM
17132010-09-05 Mark Mitchell <mark@codesourcery.com>
1714
1715 * c.opt (Wdouble-promotion): New.
1716
d1779886
JM
17172010-09-02 Joseph Myers <joseph@codesourcery.com>
1718
1719 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1720 fvtable-thunks, fxref): Mark no longer supported in help text.
1721
2d2bd949
JM
17222010-09-02 Joseph Myers <joseph@codesourcery.com>
1723
1724 * c.opt (Wimport, fall-virtual, falt-external-templates,
1725 fdefault-inline, fenum-int-equiv, fexternal-templates,
1726 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1727 fname-mangling-version-, fnew-abi, fnonnull-objects,
1728 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1729 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1730 applicable.
1731 (fhandle-exceptions): Mark with Alias and Warn.
1732 * c-opts.c (c_common_handle_option): Don't handle options marked
1733 as ignored.
1734
5de8299c
JM
17352010-09-02 Joseph Myers <joseph@codesourcery.com>
1736
1737 * c.opt (Wcomments, Werror-implicit-function-declaration,
1738 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1739 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1740 aliases.
1741 * c-common.c (option_codes): Use OPT_Wcomment instead of
1742 OPT_Wcomments.
1743 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1744 Don't handle options marked as aliases.
1745
0ceb0201
RG
17462010-08-25 Richard Guenther <rguenther@suse.de>
1747
1748 * c-common.c (c_common_get_alias_set): Remove special
1749 handling for pointers.
1750
ac47786e
NF
17512010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1752
1753 * c-common.c: Use FOR_EACH_VEC_ELT.
1754 * c-gimplify.c: Likewise.
1755 * c-pragma.c: Likewise.
1756
c878765b
JM
17572010-08-16 Joseph Myers <joseph@codesourcery.com>
1758
1759 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1760 RejectDriver.
1761 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1762 RejectDriver.
1763 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1764 instead of OPT_MDX and OPT_MMDX.
1765
603349bf
JM
17662010-08-16 Joseph Myers <joseph@codesourcery.com>
1767
1768 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1769
644fa7ac
JM
17702010-08-12 Joseph Myers <joseph@codesourcery.com>
1771
1772 * c.opt (MD, MMD): Change to MDX and MMDX.
1773 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1774
481e1176
JM
17752010-08-11 Joseph Myers <joseph@codesourcery.com>
1776
1777 * c-opts.c (c_common_handle_option): Call handle_generated_option
1778 instead of handle_option.
1779
ac8dc9f7
NF
17802010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1781
1782 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1783 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1784
4f8c876d
NF
17852010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1786
1787 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1788 (pending_redefine_extname): Change type to a VEC.
1789 (add_to_renaming_pragma_list): Update for new type of
1790 pending_redefine_extname.
ac8dc9f7 1791 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 1792
3b0c690e
AC
17932010-08-04 Arnaud Charlet <charlet@adacore.com>
1794
1795 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1796 visited.
1797 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1798 decide whether a type has already been declared/seen.
1799 Do not go to the original type.
1800 (dump_nested_types): New parameter forward.
1801 Generate forward declaration if needed and mark type as visited.
1802 (print_ada_declaration): Call dump_nested_types if not already done.
1803 Mark types as visited.
1804
1890bccc
JM
18052010-08-03 Joseph Myers <joseph@codesourcery.com>
1806
1807 * c.opt (-print-pch-checksum): Remove option.
1808 * c-opts.c (c_common_handle_option): Don't handle
1809 OPT_print_pch_checksum.
1810
5f20c657
JM
18112010-07-27 Joseph Myers <joseph@codesourcery.com>
1812
1813 * c-common.h (c_common_handle_option): Update prototype and return
1814 value type.
1815 * c-opts.c (c_common_handle_option): Update prototype and return
1816 value type. Update calls to handle_option and
1817 enable_warning_as_error.
1818
f551f80c
JJ
18192010-07-27 Jakub Jelinek <jakub@redhat.com>
1820
1821 PR c/45079
1822 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1823
61ff2bdc
JM
18242010-07-27 Joseph Myers <joseph@codesourcery.com>
1825
1826 * c-common.h (c_common_missing_argument): Remove.
1827 * c-opts.c (c_common_missing_argument): Remove.
1828 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1829 idirafter, imacros, include, isysroot, isystem, iquote): Add
1830 MissingArgError.
1831 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1832
7a9bf9a4
JM
18332010-07-27 Joseph Myers <joseph@codesourcery.com>
1834
1835 * c-common.h (c_common_option_lang_mask,
1836 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1837 New.
1838 (c_common_init_options): Update prototype.
1839 * c-opts.c (c_common_option_lang_mask): New.
1840 (c_common_initialize_diagnostics): Split out of
1841 c_common_init_options.
1842 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1843 New.
1844 (c_common_init_options): Update prototype. Use decoded options in
1845 search for -lang-asm.
1846
910ad8de
NF
18472010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1848
1849 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1850 * c-format.c: Likewise.
1851
718f9c0f
MLI
18522010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1853
1854 * c-common.h: Include diagnostic-core.h. Error if already
1855 included.
1856 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1857
4d451982
MLI
18582010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1859
1860 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1861 Do not include expr.h
1862 (vector_mode_valid_p): Move here.
1863
119fe915
SB
18642010-06-21 DJ Delorie <dj@redhat.com>
1865
1866 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1867 allow these pragmas anywhere.
1868
18692010-06-14 Jakub Jelinek <jakub@redhat.com>
1870
1871 PR bootstrap/44509
1872 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1873 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1874 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1875 ggc_strdup instead of xstrdup.
1876
18772010-06-10 Jakub Jelinek <jakub@redhat.com>
1878
1879 * c-cppbuiltin.c: Include cpp-id-data.h.
1880 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1881 (lazy_hex_fp_value): New function.
1882 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1883
6662d794
MLI
18842010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1885
1886 * c-gimplify.c: Do not include tree-flow.h
1887
38f8b050
JR
18882010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1889
1890 PR other/44034
1891 * c-common.c: Rename targetm member:
1892 targetm.enum_va_list -> targetm.enum_va_list_p
1893
9589f23e
AS
18942010-06-28 Anatoly Sokolov <aesok@post.ru>
1895
1896 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1897
3b06d379
SB
18982010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1899
1900 * c-cppbuiltin.c: Do not include except.h.
1901
d166d4c3
AK
19022010-06-24 Andi Kleen <ak@linux.intel.com>
1903
1904 * c-common.c (warn_for_omitted_condop): New.
1905 * c-common.h (warn_for_omitted_condop): Add prototype.
1906
70cb8be6
JM
19072010-06-21 Joseph Myers <joseph@codesourcery.com>
1908
1909 * c.opt (lang-objc): Remove.
1910 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1911
a4c97feb
JR
19122010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1913
1914 * c-opts.c: Include "tm_p.h".
1915
6e2f1956
JM
19162010-06-20 Joseph Myers <joseph@codesourcery.com>
1917
1918 * c-common.c (parse_optimize_options): Update call to
1919 decode_options.
1920
bc87224e
NF
19212010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1922
1923 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1924 new type of types_used_by_cur_var_decl.
1925
b49cf425
JR
19262010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1927
1928 PR bootstrap/44512
1929 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1930 for C++ standard compliance.
1931
59f9c2ed
JM
19322010-06-16 Jason Merrill <jason@redhat.com>
1933
1934 * c.opt: Add -Wnoexcept.
1935
33766b66
RG
19362010-06-16 Richard Guenther <rguenther@suse.de>
1937
1938 PR c/44555
1939 * c-common.c (c_common_truthvalue_conversion): Remove
1940 premature and wrong optimization concering ADDR_EXPRs.
1941
eff7e30c
AC
19422010-06-15 Arnaud Charlet <charlet@adacore.com>
1943
1944 * c-ada-spec.c (dump_sloc): Remove column info.
1945 (is_simple_enum): New function.
1946 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1947 enum types when relevant.
1948
6312e84d
MLI
19492010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1950
1951 * c-common.c (conversion_warning): Warn at expression
1952 location.
1953
1cb42611
JM
19542010-06-10 Joseph Myers <joseph@codesourcery.com>
1955
1956 * c-opts.c (c_common_handle_option): Don't handle
1957 OPT_fshow_column.
1958
a9429e29
LB
19592010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1960
1961 * c-pragma.c (push_alignment): Use typed GC allocation.
1962 (handle_pragma_push_options): Likewise.
1963
1964 * c-common.c (parse_optimize_options): Likewise.
1965
1966 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1967 option.
1968
5498f011
JM
19692010-06-07 Joseph Myers <joseph@codesourcery.com>
1970
1971 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1972 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1973 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1974 flag_signed_bitfields, warn_strict_null_sentinel,
1975 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1976 flag_gen_declaration, flag_no_gnu_keywords,
1977 flag_implement_inlines, flag_implicit_templates,
1978 flag_implicit_inline_templates, flag_optional_diags,
1979 flag_elide_constructors, flag_default_inline, flag_rtti,
1980 flag_conserve_space, flag_access_control, flag_check_new,
1981 flag_new_for_scope, flag_weak, flag_working_directory,
1982 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1983 flag_enforce_eh_specs, flag_threadsafe_statics,
1984 flag_pretty_templates): Remove.
1985 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1986 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1987 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1988 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1989 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1990 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1991 flag_no_gnu_keywords, flag_implement_inlines,
1992 flag_implicit_templates, flag_implicit_inline_templates,
1993 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1994 flag_rtti, flag_conserve_space, flag_access_control,
1995 flag_check_new, flag_new_for_scope, flag_weak,
1996 flag_working_directory, flag_use_cxa_atexit,
1997 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1998 flag_threadsafe_statics, flag_pretty_templates,
1999 warn_strict_null_sentinel): Remove.
2000 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2001 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2002 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2003 fimplicit-inline-templates, fimplicit-templates,
2004 flax-vector-conversions, fms-extensions, fnil-receivers,
2005 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2006 frtti, fshort-double, fshort-enums, fshort-wchar,
2007 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2008 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2009 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2010 gen-decls, undef): Use Var.
2011 (fdefault-inline, foptional-diags): Document as doing nothing.
2012 * c-opts.c (c_common_handle_option): Remove cases for options now
2013 using Var. Mark ignored options as such.
2014
39dabefd
SB
20152010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2016
2017 * c-common.c: Moved to here from parent directory.
2018 * c-common.def: Likewise.
2019 * c-common.h: Likewise.
2020 * c-cppbuiltin.c: Likewise.
2021 * c-dump.c: Likewise.
2022 * c-format.c: Likewise.
2023 * c-format.h : Likewise.
2024 * c-gimplify.c: Likewise.
2025 * c-lex.c: Likewise.
2026 * c-omp.c: Likewise.
2027 * c.opt: Likewise.
2028 * c-opts.c: Likewise.
2029 * c-pch.c: Likewise.
2030 * c-ppoutput.c: Likewise.
2031 * c-pragma.c: Likewise.
2032 * c-pragma.h: Likewise.
2033 * c-pretty-print.c: Likewise.
2034 * c-pretty-print.h: Likewise.
2035 * c-semantics.c: Likewise.
2036 * stub-objc.c: Likewise.
2037
2038 * c-common.c: Include gt-c-family-c-common.h.
2039 * c-pragma.c: Include gt-c-family-c-pragma.h.
2040\f
04695783 2041Copyright (C) 2010, 2011 Free Software Foundation, Inc.
39dabefd
SB
2042
2043Copying and distribution of this file, with or without modification,
2044are permitted in any medium without royalty provided the copyright
2045notice and this notice are preserved.